|
|
"use strict";(self.webpackChunk_coze_studio_app=self.webpackChunk_coze_studio_app||[]).push([["7346"],{916672:function(e,t,i){i.d(t,{D:()=>A});var o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var n=i("252237"),a=i.n(n),l=i("455069"),s=0,d=1,c=2,u=3,p=4,g={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},m="bottom",h="left",f="right",b="top",v="bp5";"undefined"!=typeof BLUEPRINT_NAMESPACE?v=BLUEPRINT_NAMESPACE:"undefined"!=typeof REACT_APP_BLUEPRINT_NAMESPACE&&(v=REACT_APP_BLUEPRINT_NAMESPACE),k(b),k(m),k(h),k(f),y(s),y(d),y(c),y(u),y(p),w(g.PRIMARY),w(g.SUCCESS),w(g.WARNING),w(g.DANGER);var x="".concat(v,"-overflow-list"),_="".concat(x,"-spacer");function y(e){if(void 0!==e)return"".concat(v,"-elevation-").concat(e)}function w(e){if(null!=e&&e!==g.NONE)return"".concat(v,"-intent-").concat(e.toLowerCase())}function k(e){if(void 0!==e)return"".concat(v,"-position-").concat(e)}var j={START:"start",END:"end"},M="Blueprint5",I="[Blueprint] <OverflowList> does not support changing observeParents after mounting.";function N(e,t,i){if(null==e&&null==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e)||Array.isArray(t))return!1;else{if(null!=i)return T(e,t,i);var o=Object.keys(e),r=Object.keys(t);return T(e,t,{include:o})&&T(e,t,{include:r})}}function T(e,t,i){return(function(e,t,i){if(function(e){return null!=e&&null!=e.include}(i))return i.include;if(function(e){return null!=e&&null!=e.exclude}(i)){var o=Object.keys(e),r=Object.keys(t),n=function(e){return e.reduce(function(e,t){return e[t]=!0,e},{})}(o.concat(r));return i.exclude.forEach(function(e){return delete n[e]}),Object.keys(n)}return[]})(e,t,i).every(function(i){return e.hasOwnProperty(i)===t.hasOwnProperty(i)&&e[i]===t[i]})}function z(e){return"production"===e}var D=function(e){function t(){var t,i=e.apply(this,arguments)||this;return i.targetRef=null!==(t=i.props.targetRef)&&void 0!==t?t:l.createRef(),i.prevElement=void 0,i}return r(t,e),t.prototype.render=function(){var e=l.Children.only(this.props.children);return void 0!==this.props.targetRef?e:l.cloneElement(e,{ref:this.targetRef})},t.prototype.componentDidMount=function(){var e=this;this.observer=null!=globalThis.ResizeObserver?new ResizeObserver(function(t){var i,o;return null===(o=(i=e.props).onResize)||void 0===o?void 0:o.call(i,t)}):void 0,this.observeElement()},t.prototype.componentDidUpdate=function(e){this.observeElement(this.props.observeParents!==e.observeParents)},t.prototype.componentWillUnmount=function(){var e;null===(e=this.observer)||void 0===e||e.disconnect(),this.prevElement=void 0},t.prototype.observeElement=function(e){if(void 0===e&&(e=!1),void 0===this.observer)return;if(!(this.targetRef.current instanceof Element)){this.observer.disconnect();return}if(this.targetRef.current!==this.prevElement||!!e){this.observer.disconnect(),this.prevElement=this.targetRef.current;if(this.observer.observe(this.targetRef.current),this.props.observeParents){for(var t=this.targetRef.current.parentElement;null!=t;)this.observer.observe(t),t=t.parentElement}}},t.displayName="".concat(M,".ResizeSensor"),t}(function(e){function t(t){var i=e.call(this,t)||this;return i.timeoutIds=[],i.requestIds=[],i.clearTimeouts=function(){if(i.timeoutIds.length>0){for(var e=0,t=i.timeoutIds;e<t.length;e++){var o=t[e];window.clearTimeout(o)}i.timeoutIds=[]}},i.cancelAnimationFrames=function(){if(i.requestIds.length>0){for(var e=0,t=i.requestIds;e<t.length;e++){var o=t[e];window.cancelAnimationFrame(o)}i.requestIds=[]}},!z("production")&&i.validateProps(i.props),i}return r(t,e),t.prototype.componentDidUpdate=function(e,t,i){!z("production")&&this.validateProps(this.props)},t.prototype.componentWillUnmount=function(){this.clearTimeouts(),this.cancelAnimationFrames()},t.prototype.requestAnimationFrame=function(e){var t=window.requestAnimationFrame(e);return this.requestIds.push(t),function(){return window.cancelAnimationFrame(t)}},t.prototype.setTimeout=function(e,t){var i=window.setTimeout(e,t);return this.timeoutIds.push(i),function(){return window.clearTimeout(i)}},t.prototype.validateProps=function(e){},t}(l.PureComponent)),A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={chopSize:t.defaultChopSize(),lastChopSize:null,lastOverflowCount:0,overflow:[],repartitioning:!1,visible:t.props.items},t.spacer=null,t.resize=function(){t.repartition()},t}return r(t,e),t.ofType=function(){return t},t.prototype.componentDidMount=function(){this.repartition()},t.prototype.shouldComponentUpdate=function(e,t){return this.props!==e||!(this.state!==t&&N(this.state,t))},t.prototype.componentDidUpdate=function(e,t){e.observeParents!==this.props.observeParents&&console.warn(I),(e.collapseFrom!==this.props.collapseFrom||e.items!==this.props.items||e.minVisibleItems!==this.props.minVisibleItems||e.overflowRenderer!==this.props.overflowRenderer||e.alwaysRenderOverflow!==this.props.alwaysRenderOverflow||e.visibleItemRenderer!==this.props.visibleItemRenderer)&&this.setState({chopSize:this.defaultChopSize(),lastChopSize:null,lastOverflowCount:0,overflow:[],repartitioning:!0,visible:this.props.items});var i,o,r=this.state,n=r.repartitioning,a=r.overflow,l=r.lastOverflowCount;!1===n&&!0===t.repartitioning?a.length!==l&&(null===(o=(i=this.props).onOverflow)||void 0===o||o.call(i,a.slice())):!N(t,this.state)&&this.repartition()},t.prototype.render=function(){var e=this,t=this.props,i=t.className,o=t.collapseFrom,r=t.observeParents,n=t.style,s=t.tagName,d=t.visibleItemRenderer,c=this.maybeRenderOverflow(),u=l.createElement(void 0===s?"div":s,{className:a()(x,i),style:n},o===j.START?c:null,this.state.visible.map(d),o===j.END?c:null,l.createElement("div",{className:_,ref:function(t){return e.spacer=t}}));return l.createElement(D,{onResize:this.resize,observeParents:r},u)},t.prototype.maybeRenderOverflow=function(){var e=this.state.overflow;return 0!==e.length||this.props.alwaysRenderOverflow?this.props.overflowRenderer(e.slice()):null},t.prototype.repartition=function(){var e,t=this;if(null!=this.spacer){var i=1===this.state.lastChopSize,o=null!==(e=this.props.minVisibleItems)&&void 0!==e?e:0,r=this.spacer.offsetWidth<.9&&this.state.visible.length>o,n=(this.spacer.offsetWidth>=1||this.state.visible.length<o)&&this.state.overflow.length>0&&!i;r||n?this.setState(function(e){if(t.props.collapseFrom===j.END){var i,o,n=E(e.visible,e.overflow,t.state.chopSize*(r?1:-1));i=n[0],o=n[1]}else{var n=E(e.overflow,e.visible,t.state.chopSize*(r?-1:1));o=n[0],i=n[1]}return{chopSize:S(e.chopSize),lastChopSize:e.chopSize,lastOverflowCount:t.isFirstPartitionCycle(e.chopSize)?e.overflow.length:e.lastOverflowCount,overflow:o,repartitioning:!0,visible:i}}):this.setState({chopSize:this.defaultChopSize(),lastChopSize:null,repartitioning:!1})}},t.prototype.defaultChopSize=function(){return S(this.props.items.length)},t.prototype.isFirstPartitionCycle=function(e){return e===this.defaultChopSize()},t.displayName="".concat(M,".OverflowList"),t.defaultProps={alwaysRenderOverflow:!1,collapseFrom:j.START,minVisibleItems:0},t}(l.Component);function S(e){return Math.ceil(e/2)}function E(e,t,i){var o=e.concat(t),r=e.length-i;if(r<=0)return[[],o];if(r>=o.length)return[o,[]];var n=o.length-r;return[o.slice(0,-n),o.slice(-n)]}},481655:function(e,t,i){i.d(t,{DL:function(){return o}}),i(745304);let o=e=>{let{transform:t}=e;return{...t,x:0}}},49695:function(e,t,i){var o=i(455069),r=i(805366);let n=(0,r.A)(function(e){return o.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-9.5 5.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0ZM12 5a1.9 1.9 0 0 0-1.89 2l.3 5.5a1.59 1.59 0 0 0 3.17 0l.3-5.5c.07-1.09-.8-2-1.88-2Z",fill:"currentColor"}))},"alert_circle");t.Z=n},938382:function(e,t,i){var o=i(455069),r=i(805366);let n=(0,r.A)(function(e){return o.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08 7.6a1.5 1.5 0 0 1 2.12 0l5.66 5.65 5.66-5.65a1.5 1.5 0 1 1 2.12 2.12l-6.72 6.72a1.5 1.5 0 0 1-2.12 0L4.08 9.72a1.5 1.5 0 0 1 0-2.12Z",fill:"currentColor"}))},"chevron_down");t.Z=n},309673:function(e,t,i){var o=i(455069),r=i(805366);let n=(0,r.A)(function(e){return o.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.44 19.8a1.5 1.5 0 0 1 0-2.13l5.66-5.65-5.66-5.66a1.5 1.5 0 1 1 2.12-2.12l6.72 6.72a1.5 1.5 0 0 1 0 2.12L9.56 19.8a1.5 1.5 0 0 1-2.12 0Z",fill:"currentColor"}))},"chevron_right");t.Z=n},582529:function(e,t,i){i.r(t);var o=i(151064),r=i(157728),n=i(455069),a=i(22998),l=i(228962);t.default=()=>{var{plugin_id:e,space_id:t}=(0,r.useParams)(),i=(0,l.ob)();if(!e||!t)throw Error("[plugin render error]: need plugin id and space id");return(0,n.useEffect)(()=>{null==i||i.getState().init()},[]),(0,o.jsx)(a.Plugin,{})}},610382:function(e,t,i){i.d(t,{Hv:()=>P,rm:()=>o.rm,qz:()=>F.q});var o=i("910376");i("786406");var r=i("825955"),n=i("808549"),a=i("120454"),l=i("151064"),s=i("455069"),d=i("626389"),c=i.n(d),u=i("252237"),p=i.n(u),g=i("287487"),m=i("336205"),h=i("707107"),f=i("214942"),b=i("775699"),v=i("966219"),x=i("458949"),_=i("178385"),y=i("382534"),w=i("407821"),k=i.n(w),j=i("472772"),M=i.n(j),I=i("395245"),N=i.n(I),T=i("297998"),z=i.n(T),D=i("646576"),A=i.n(D),S=i("606121"),E=i.n(S),C=i("376756"),O={};O.styleTagTransform=E(),O.setAttributes=z(),O.insert=N().bind(null,"head"),O.domAPI=M(),O.insertStyleElement=A(),k()(C.Z,O);var L=C.Z&&C.Z.locals?C.Z.locals:void 0,Z=[{label:"cURL",value:x.gR.Curl},{label:"Wget",value:x.gR.Wget},{label:"Node.js",value:x.gR.NodeJS},{label:"Python",value:x.gR.Python},{label:"Golang",value:x.gR.Golang}],P=e=>{var{onCancel:t,visible:i,pluginAPIInfo:o}=e,[d,u]=(0,s.useState)(x.gR.Curl),[w,k]=(0,s.useState)(""),{id:j,space_type:M}=(0,f.rY)(e=>e.space),I=M===_.Sn.Personal,N=g.Z.useUserInfo();return(0,s.useEffect)(()=>{u(x.gR.Curl),k("")},[i]),(0,s.useEffect)(()=>{if(o){var e;(e=(0,r._)(function*(){k("");var e=yield y.Js.PluginAPI2Code({plugin_id:o.plugin_id||"",api_id:o.api_id||"",space_id:j||"",dev_id:(null==N?void 0:N.user_id_str)||"",program_lang:d});k((null==e?void 0:e.program_code)||"")}),function(){return e.apply(this,arguments)})()}},[d,o]),(0,l.jsx)(b.M5,{type:"base-composition",title:m.o.t("code_snippet"),visible:i,onCancel:t,footer:(0,l.jsx)(b.T,{children:(0,l.jsx)(b.y3,{theme:"solid",type:"primary",onClick:()=>{var e=c()(w),t={environment:"cn-boe",workspace_id:j||"",workspace_type:I?"personal_workspace":"team_workspace",tool_id:(null==o?void 0:o.api_id)||"",code_type:function(e){switch(e){case x.gR.Curl:return"curl";case x.gR.Wget:return"wget";case x.gR.NodeJS:return"javascript";case x.gR.Python:return"python";case x.gR.Golang:return"golang";default:return""}}(d)||"",status:1};e?(b.O$.success({content:m.o.t("copy_success")}),(0,h.Gg)(h.Kg.code_snippet_front,(0,a._)((0,n._)({},t),{status:0}))):(b.O$.warning({content:m.o.t("copy_failed")}),(0,h.Gg)(h.Kg.code_snippet_front,(0,a._)((0,n._)({},t),{status:1,error_message:"copy_failed"})))},children:m.o.t("copy")})}),maskClosable:!1,children:(0,l.jsxs)("div",{className:"h-[100%] flex flex-col min-h-0",children:[(0,l.jsx)("div",{children:(0,l.jsx)(b.FX,{type:"card",options:Z,defaultValue:d,className:"mb-[16px]",value:d,onChange:e=>u(e.target.value)})}),(0,l.jsx)("div",{className:p()(L["editor-container"],"flex-1 min-h-0"),children:(0,l.jsx)(v.Editor,{className:L.editor,options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1},language:function(e){switch(e){case x.gR.Curl:case x.gR.Wget:case x.gR.NodeJS:return"javascript";case x.gR.Python:return"python";case x.gR.Golang:return"go";default:return"javascript"}}(d),theme:"tomorrow",width:"100%",value:w})})]})})};i("3779"),i("512421");var F=i("317612")},317612:function(e,t,i){i.d(t,{q:()=>w});var o=i("808549"),r=i("473980"),n=i("151064"),a=i("455069"),l=i("550655"),s=i("120454"),d=i("664319"),c=i("252237"),u=i.n(c),p=i("277194"),g=i("336205"),m=i("775699"),h=i("30961"),f=i("458949");i("382534");var{Select:b,TextArea:v}=i("659596").l0;f.nw.NotFoundPlugin,g.o.t("plugin_feedback_modal_request_type_official_plugins_not_found"),f.nw.OfficialPlugin,g.o.t("plugin_feedback_modal_request_type_feedback_to_existing_plugin"),i("398778");var x=i("770131"),_=i("719894"),y=e=>{var{type:t,openMode:i,from:a,openModeCallback:l,showButton:c,showCopyPlugin:f,onCopyPluginCallback:b,pluginApiList:v,projectId:y,clickProjectPluginCallback:w,hideCreateBtn:k,initQuery:j}=e,M=(0,r._)(e,["type","openMode","from","openModeCallback","showButton","showCopyPlugin","onCopyPluginCallback","pluginApiList","projectId","clickProjectPluginCallback","hideCreateBtn","initQuery"]),{pluginApis:I,updateSkillPluginApis:N}=(0,p.Ee)((0,d.N)(e=>({pluginApis:e.pluginApis,updateSkillPluginApis:e.updateSkillPluginApis}))),{sider:T,filter:z,content:D}=(0,x.A)({pluginApiList:v?v:i===h.jG.OnlyOnceAdd?[]:I,onPluginApiListChange:N,openMode:i,from:a,openModeCallback:l,showButton:c,showCopyPlugin:f,onCopyPluginCallback:b,projectId:y,clickProjectPluginCallback:w,onCreateSuccess:null==M?void 0:M.onCreateSuccess,isShowStorePlugin:null==M?void 0:M.isShowStorePlugin,hideCreateBtn:k,initQuery:j});return(0,n.jsx)(m.FS,(0,s._)((0,o._)({"data-testid":"plugin-modal"},M),{header:g.o.t("bot_edit_plugin_select_title"),className:u()(_.Z["plugin-modal"],M.className),sider:T,extra:null,filter:z,content:D}))},w=e=>{var t=e||{},{closeCallback:i}=t,s=(0,r._)(t,["closeCallback"]),[d,c]=(0,a.useState)(!1),[u,p]=(0,a.useState)(1),[g,m]=(0,a.useState)();return{node:d?(0,n.jsx)(y,(0,o._)({type:u,visible:d,onCancel:()=>{c(!1),null==i||i()},initQuery:g,footer:null},s)):null,open:e=>{var t=(0,l.Z)(e)?e:null==e?void 0:e.openType,i=(0,l.Z)(e)?void 0:null==e?void 0:e.initQuery;c(!0),m(i),(0,l.Z)(t)&&p(t)},close:()=>{c(!1),m(void 0),null==i||i()}}}},381677:function(e,t,i){i.d(t,{Tj:function(){return o.Tj},_u:function(){return o._u},cC:function(){return o.cC},e2:function(){return o.e2}});var o=i(910376)},179164:function(e,t,i){i.d(t,{DT:()=>tJ,zU:()=>tW,sp:()=>eJ,sU:()=>iv});var o,r,n=i("825955"),a=i("808549"),l=i("120454"),s=i("151064"),d=i("157728"),c=i("455069"),u=i("664319"),p=i("735114"),g=i("136515"),m=i("252237"),h=i.n(m),f=i("336205"),b=i("298203"),v=i("775699"),x=i("189284"),_=i("458949"),y=i("382534"),w=i("581259"),k=i("228962"),j=i("44172"),M=i("407821"),I=i.n(M),N=i("472772"),T=i.n(N),z=i("395245"),D=i.n(z),A=i("297998"),S=i.n(A),E=i("646576"),C=i.n(E),O=i("606121"),L=i.n(O),Z=i("746509"),P={};P.styleTagTransform=L(),P.setAttributes=S(),P.insert=D().bind(null,"head"),P.domAPI=T(),P.insertStyleElement=C(),I()(Z.Z,P);var F=Z.Z&&Z.Z.locals?Z.Z.locals:void 0,{Text:B,Paragraph:R}=v.ZT,U=e=>{e.stopPropagation()},Q={[_.ji.Disable]:(0,s.jsx)(j.A$t,{}),[_.ji.Enable]:(0,s.jsx)(j.YOo,{}),[_.ji.Default]:(0,s.jsx)(j.$5C,{})},Y=e=>{var t,i=(0,k.av)(),{checkPluginIsLockedByOthers:o,wrapWithCheckLock:r}=(0,k.RQ)((0,u.N)(e=>({checkPluginIsLockedByOthers:e.checkPluginIsLockedByOthers,wrapWithCheckLock:e.wrapWithCheckLock}))),[a]=(0,x.V)(),{targetSwitchId:l,setTargetSwitchId:d,loading:c,canEdit:p,refreshPage:g,plugin_id:m,pluginInfo:M,updatedInfo:I,handleIdeJump:N,showDropdownItem:T,setShowDropDownItem:z,setCurAPIInfo:D,openExample:A,projectId:S,customRender:E}=null!=e?e:{};var C=(t=(0,n._)(function*(e){var{apiId:t,disabled:i}=e;(yield y.Js.UpdateAPI({plugin_id:m||"",api_id:t,edit_version:null==M?void 0:M.edit_version,disabled:i}))&&g()}),function(e){return t.apply(this,arguments)});return{getColumns:()=>[{title:f.o.t("plugin_api_list_table_toolname"),dataIndex:"name",className:F["min-width-200"],render:(e,t)=>(0,s.jsxs)("div",{children:[(0,s.jsx)(R,{strong:!0,ellipsis:{showTooltip:{opts:{style:{wordBreak:"break-word"}}}},children:t.name}),(0,s.jsx)(R,{className:F["tool-table-desc"],ellipsis:{showTooltip:{opts:{style:{wordBreak:"break-word",maxWidth:"560px"},stopPropagation:!0}}},children:t.desc})]})},{title:f.o.t("plugin_api_list_table_Parameter"),dataIndex:"request_params",width:200,render:(e,t)=>{if(!t.request_params||(null===(i=t.request_params)||void 0===i?void 0:i.length)===0)return"-";var i,o,r,n=null===(o=t.request_params)||void 0===o?void 0:o.map(e=>({tagName:e.name,key:e.id})),a=null===(r=t.request_params)||void 0===r?void 0:r.map(e=>e.name);return(0,s.jsx)(v.Dj,{items:n,overflowRenderer:e=>e.length?(0,s.jsx)(v.u,{style:{wordBreak:"break-word"},content:null==a?void 0:a.join("、"),children:(0,s.jsxs)(v.fS,{color:"grey",size:"small",style:{fontVariantNumeric:"tabular-nums"},children:["+",e.length]})}):null,visibleItemRenderer:e=>(0,s.jsx)(v.fS,{color:"grey",size:"small",style:{marginRight:"8px",width:"fit-content",minWidth:"fit-content"},children:e.tagName},e.key),collapseFrom:"end"})}},{title:f.o.t("plugin_service_status"),dataIndex:"online_status",width:130,render:(e,t)=>{if(!("online_status"in t)||void 0===t.online_status)return"-";var i=w._5.get(t.online_status);return(0,s.jsxs)(v.T,{spacing:4,children:[(0,s.jsx)("span",{className:F["circle-point"],style:{background:null==i?void 0:i.color}}),null==i?void 0:i.label]})}},{title:f.o.t("plugin_api_list_table_status"),dataIndex:"plugin_type",width:130,render:(e,t)=>{if(!("debug_status"in t))return"-";var i=w.CG.get(t.debug_status||_.vw.DebugWaiting);return(0,s.jsx)(v.fS,{color:null==i?void 0:i.color,children:null==i?void 0:i.label})}},{title:f.o.t("plugin_api_list_table_botUsing"),dataIndex:"statistic_data",width:100,render:(e,t)=>{var i;return(null===(i=t.statistic_data)||void 0===i?void 0:i.bot_quote)?(0,s.jsx)(B,{style:{color:"rgba(28, 29, 35, 0.60)"},ellipsis:{showTooltip:!0},children:(0,b.uf)(t.statistic_data.bot_quote)}):"-"}},{title:f.o.t("plugin_api_list_table_Create_time"),dataIndex:"create_time",width:150,sorter:!0,render:(e,t)=>t.create_time?(0,s.jsx)("div",{children:(0,b.p6)(Number(t.create_time),"YYYY-MM-DD HH:mm")}):"-"},{title:f.o.t("dataset_detail_tableTitle_enable"),dataIndex:"disabled",width:80,render:(e,t)=>{var i;return(0,s.jsx)("div",{style:{display:"flex"},onClick:e=>{U(e)},children:(0,s.jsx)(v.rs,{loading:l===t.api_id&&c,disabled:!p,checked:!(null==t?void 0:t.disabled),onChange:(i=(0,n._)(function*(e,i){if(z(void 0),i.stopPropagation(),!(yield o()))d(t.api_id||""),C({apiId:t.api_id||"",disabled:!e})}),function(e,t){return i.apply(this,arguments)})})})}},{title:f.o.t("plugin_api_list_table_action"),dataIndex:"action",width:215,render:(e,t)=>{var o,l,d=(null==t?void 0:null===(o=t.response_params)||void 0===o?void 0:o.length)===0||!(null==M?void 0:M.published)||(null==M?void 0:M.status)&&(null==I?void 0:I.created_api_names)&&!!I.created_api_names.includes((null==t?void 0:t.name)||"");return(0,s.jsx)("div",{onClick:e=>{U(e)},children:(0,s.jsxs)(v.T,{spacing:16,children:[(0,s.jsx)(v.u,{content:f.o.t("Edit"),children:(0,s.jsx)(v._3,{type:"secondary",disabled:!p,icon:(0,s.jsx)(j.pV2,{}),className:h()(!p&&F["icon-btn-disable"]),onClick:r(()=>{z(void 0),N(w.jG.SELECT_TOOL,t.api_id)})})}),null==E?void 0:E({pluginInfo:M,pluginApiInfo:t,canEdit:p,setShowDropDownItem:z}),(null==M?void 0:M.creation_method)!==_.x9.IDE&&(0,s.jsx)(v.u,{content:f.o.t("plugin_api_list_table_debugicon_tooltip"),children:(0,s.jsx)(v._3,{type:"secondary",disabled:!p,icon:(0,s.jsx)(j.OlV,{}),className:h()(!p&&F["debug-btn-disable"]),onClick:r(()=>{if(z(void 0),null==t?void 0:t.api_id){var e;null===(e=i.tool)||void 0===e||e.call(i,t.api_id,{toStep:"3"})}})})}),"debug_example_status"in t?(0,s.jsx)(v.u,{content:f.o.t("plugin_edit_tool_test_run_example_tip"),children:(0,s.jsx)(v._3,{type:"secondary",disabled:!p,icon:Q[null!==(l=null==t?void 0:t.debug_example_status)&&void 0!==l?l:""],className:h()(!p&&F["icon-example-disabled"]),onClick:r(()=>{z(void 0),(null==t?void 0:t.api_id)&&A(t)})})}):null,(0,s.jsx)(v.Lt,{position:"bottomRight",zIndex:1010,trigger:S?"hover":"custom",visible:t.api_id===(null==T?void 0:T.api_id),render:(0,s.jsxs)(v.Lt.Menu,{className:"px-[4px]",children:[a["bot.devops.plugin_import_export"]?(0,s.jsx)(v.Lt.Item,{disabled:(null==M?void 0:M.plugin_type)===_.zV.LOCAL||(null==M?void 0:M.creation_method)===_.x9.IDE,className:"rounded-[4px]",onClick:()=>{z(void 0),D(t)},children:f.o.t("code_snippet")}):null,a["bot.devops.plugin_mockset"]?(0,s.jsx)(v.Lt.Item,{className:"rounded-[4px]",disabled:d,onClick:()=>{if(z(void 0),null==t?void 0:t.api_id){var e;null===(e=i.mocksetList)||void 0===e||e.call(i,t.api_id)}},children:(0,s.jsx)(v.u,{position:"left",style:{display:d?"block":"none"},content:f.o.t("cannot_enable_mock_set_due_empty_return"),children:(0,s.jsx)("span",{children:f.o.t("manage_mockset")})})}):null,(0,s.jsx)(v.Lt.Item,{className:"rounded-[4px]",disabled:!p||(null==M?void 0:M.plugin_product_status)===_.Pt.Listed||(null==M?void 0:M.creation_method)===_.x9.IDE,children:(0,s.jsx)(v.u,{position:"left",style:{display:(null==M?void 0:M.plugin_product_status)===_.Pt.Listed?"block":"none"},content:f.o.t("mkpl_plugin_disable_delete"),children:(0,s.jsx)(v.gn,{style:{width:400},okType:"danger",trigger:"click",onVisibleChange:e=>{e?z(t):z(void 0)},onConfirm:r((0,n._)(function*(){yield y.Js.DeleteAPI({plugin_id:t.plugin_id||"",api_id:t.api_id||"",edit_version:null==M?void 0:M.edit_version}),g()})),title:f.o.t("project_plugin_delete_modal_title",{pluginName:t.name}),content:f.o.t("project_plugin_delete_modal_description"),okText:f.o.t("Remove"),cancelText:f.o.t("Cancel"),disabled:!p||(null==M?void 0:M.plugin_product_status)===_.Pt.Listed||(null==M?void 0:M.creation_method)===_.x9.IDE,children:f.o.t("delete_tool")})})})]}),children:(0,s.jsx)(v._3,{theme:"borderless",className:F["icon-more"],icon:(0,s.jsx)(j.NKR,{}),onClick:()=>{T&&(null==T?void 0:T.api_id)===(null==t?void 0:t.api_id)?z(void 0):z(t)}})})]})})}}]}},V=e=>{var{getColumns:t}=Y(e);return{getColumns:t}},W=i("297158"),G=i("659596"),H=i("335740"),q="version_desc",K="version_name",J=e=>(0,s.jsxs)(G.l0,(0,l._)((0,a._)({},e),{children:[(0,s.jsx)(G.l0.Input,{noErrorMessage:!0,field:K,label:f.o.t("plugin_publish_form_version"),rules:[{required:!0}],maxLength:40}),(0,s.jsx)(G.l0.TextArea,{noErrorMessage:!0,field:q,label:f.o.t("plugin_publish_form_version_desc"),rules:[{required:!0}],maxLength:800})]})),X=e=>{var t,i;return!e||!(null===(t=e.version_desc)||void 0===t?void 0:t.trim())||!(null===(i=e.version_name)||void 0===i?void 0:i.trim())},$=e=>{var{onClickPublish:t,className:i,style:o,publishButtonProps:r,initialVersionName:n}=e,d=(0,c.useRef)(),[u,p]=(0,c.useState)();return(0,s.jsxs)("div",{className:i,style:o,children:[(0,s.jsx)(J,{onValueChange:e=>{p((0,H.Z)(e))},getFormApi:e=>{d.current=e},initValues:{version_name:n}}),(0,s.jsx)(G.zx,(0,l._)((0,a._)({className:"w-full mt-16px",disabled:X(u),onClick:()=>{var e,i=null===(e=d.current)||void 0===e?void 0:e.getValues();if(!!i)t({versionDescValue:i})}},r),{children:"发布"}))]})},ee=e=>{var t,{children:i,pluginId:o,spaceId:r,isPluginHasPublished:l,visible:d,onClickOutside:c,onPublishSuccess:u,pluginInfo:g,isInLibraryScope:m}=e,h=(0,k.av)(),{data:b,refresh:v}=(0,p.Z)((0,n._)(function*(){if(!!r)return(yield y.Js.GetPluginNextVersion({space_id:r,plugin_id:o})).next_version_name}),{ready:m});var{run:x,loading:_}=(0,p.Z)((t=(0,n._)(function*(e){var{versionDescValue:t}=e;return yield y.Js.PublishPlugin((0,a._)({plugin_id:o},t))}),function(e){return t.apply(this,arguments)}),{manual:!0,onSuccess:()=>{var e;u(),G.FN.success({content:f.o.t("Plugin_publish_update_toast_success"),showClose:!1}),null===(e=h.toResource)||void 0===e||e.call(h,"plugin"),v()},onError:(e,t)=>{var[i]=t;W.kg.persist.error({eventName:"fail_to_publish_plugin",error:e})}});return(0,s.jsx)(G.J2,{visible:d,onClickOutSide:c,trigger:"custom",content:(0,s.jsx)($,{onClickPublish:x,className:"w-[400px] px-20px pt-16px pb-20px",publishButtonProps:{loading:_},initialVersionName:b}),children:i})},et=i("824113"),ei=i("487377"),eo=i("458620"),er=i("214942"),en=i("727914"),ea=i("577413"),el=i("900021"),es=i("364112"),ed=i("818373"),ec={};ec.styleTagTransform=L(),ec.setAttributes=S(),ec.insert=D().bind(null,"head"),ec.domAPI=T(),ec.insertStyleElement=C(),I()(ed.Z,ec);var eu=ed.Z&&ed.Z.locals?ed.Z.locals:void 0,ep=e=>{var{value:t,onValueChange:i}=e,[o,r]=(0,c.useState)(!1);return(0,s.jsxs)("div",{className:eu.checkbox,children:[(0,s.jsxs)("div",{className:eu.content,children:[(0,s.jsx)(v.u,{content:f.o.t("plugin_edit_tool_test_run_cancel_example"),visible:o,trigger:"custom",children:(0,s.jsx)(v.XZ,{onChange:e=>{i(e.target.checked),!e.target.checked&&r(!1)},checked:t,onMouseEnter:()=>t&&r(!0),onMouseLeave:()=>r(!1)})}),(0,s.jsx)("div",{className:eu.label,children:f.o.t("plugin_edit_tool_test_run_save_results_as_example")})]}),(0,s.jsx)("div",{className:eu.line})]})},eg=e=>{var t,{btnLoading:i,apiInfo:o,dugStatus:r,loading:a,nextStep:l,editVersion:d}=e,[u,g]=(0,c.useState)((null==o?void 0:o.debug_example_status)===_.ji.Enable),[m,h]=(0,c.useState)(),{loading:b,runAsync:x}=(0,p.Z)(e=>y.Js.UpdateAPI(e),{manual:!0}),{pluginInfo:w}=(0,k.RQ)(e=>({pluginInfo:e.pluginInfo}));var j=(t=(0,n._)(function*(e){var t,i;e.stopPropagation(),yield x({plugin_id:null!==(t=null==w?void 0:w.plugin_id)&&void 0!==t?t:"",api_id:null!==(i=null==o?void 0:o.api_id)&&void 0!==i?i:"",edit_version:null!=d?d:null==w?void 0:w.edit_version,save_example:u,debug_example:m}),v.O$.success(f.o.t("Save_success")),l()}),function(e){return t.apply(this,arguments)});return(0,c.useEffect)(()=>{g((null==o?void 0:o.debug_example_status)===_.ji.Enable),h((null==o?void 0:o.debug_example_status)===_.ji.Enable?null==o?void 0:o.debug_example:void 0)},[o]),{debugFooterNode:(0,s.jsxs)(v.T,{spacing:12,children:[(0,s.jsx)(ep,{value:u,onValueChange:g}),(0,s.jsx)(v.y3,{disabled:a||r!==el.Q.PASS&&(null==w?void 0:w.plugin_type)!==_.zV.LOCAL,style:{minWidth:98,margin:0},loading:i||b,type:"primary",theme:"solid",onClick:j,children:f.o.t("Create_newtool_s4_done")})]}),debugExample:m,setDebugExample:h}},em=e=>{var t,{visible:i,onCancel:o,apiInfo:r,pluginId:n,pluginName:a,onSave:l}=e,[d,u]=(0,c.useState)(el.Q.FAIL),{debugFooterNode:p,setDebugExample:g,debugExample:m}=eg({apiInfo:r,loading:!1,dugStatus:d,btnLoading:!1,nextStep:()=>{null==l||l(),u(void 0)}});return(0,s.jsx)(v.M5,{title:f.o.t("plugin_edit_tool_edit_example"),visible:i,width:1280,style:{height:"calc(100vh - 140px)",minWidth:"1040px"},centered:!0,onCancel:()=>{o(),u(void 0)},footer:(0,s.jsx)("div",{children:p}),children:r?(0,s.jsx)(es.Debug,{disabled:!1,isViewExample:!0,setDebugStatus:u,pluginId:n,apiId:null!==(t=null==r?void 0:r.api_id)&&void 0!==t?t:"",apiInfo:r,pluginName:a,setDebugExample:g,debugExample:m}):null})},eh=i("849201"),ef=e=>{var t,i,o,{onUpdate:r}=e,[n,d]=(0,c.useState)(!1),[u,p]=(0,c.useState)(),{pluginInfo:g}=(0,k.RQ)(e=>({pluginInfo:e.pluginInfo})),m=()=>{d(!1)};return(0,c.useEffect)(()=>{!n&&p(void 0)},[n]),{exampleNode:(0,s.jsx)(em,{visible:n,onCancel:m,pluginId:null!==(i=null==g?void 0:g.plugin_id)&&void 0!==i?i:"",apiInfo:u,pluginName:null!==(o=null==g?void 0:null===(t=g.meta_info)||void 0===t?void 0:t.name)&&void 0!==o?o:"",onSave:()=>{null==r||r(),m()}}),openExample:e=>{var t;if(d(!0),(null==e?void 0:null===(t=e.debug_example)||void 0===t?void 0:t.req_example)&&(null==e?void 0:e.debug_example_status)===_.ji.Enable){var i,o,r=(0,H.Z)(null!==(o=null==e?void 0:e.request_params)&&void 0!==o?o:[]);(0,eh.C$)(r,JSON.parse(null==e?void 0:null===(i=e.debug_example)||void 0===i?void 0:i.req_example)),(0,ea.eO)(r),p((0,l._)((0,a._)({},e),{request_params:r}))}else(0,ea.eO)(e.request_params),p(e)}}},eb=i("805366");let ev=(0,eb.A)(function(e){return c.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5.88-13.18-6.2 7.6a1.5 1.5 0 0 1-2.37 0l-3.5-4a1.5 1.5 0 1 1 2.37-1.84l2.3 2.46L15.5 8a1.5 1.5 0 1 1 2.38 1.82Z",fill:"currentColor"}))},"tick_circle"),ex=(0,eb.A)(function(e){return c.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm1.5-16.5v4.88l3.56 3.56a1.5 1.5 0 0 1-2.12 2.12l-4-4A1.5 1.5 0 0 1 10.5 12V6.5a1.5 1.5 0 0 1 3 0Z",fill:"currentColor"}))},"clock");var e_=i("873183"),ey=i("537845"),ew=()=>{var{pluginInfo:e,canEdit:t}=(0,k.RQ)((0,u.N)(e=>({pluginInfo:e.pluginInfo,canEdit:e.canEdit}))),{data:i,refresh:o}=(0,p.Z)((0,n._)(function*(){return yield y.Js.GetOAuthStatus({plugin_id:(null==e?void 0:e.plugin_id)||""})}),{refreshDeps:[e],ready:(null==e?void 0:e.plugin_id)!==void 0&&t,refreshOnWindowFocus:!0}),{run:r,loading:a}=(0,p.Z)((0,n._)(function*(){try{yield y.Js.RevokeAuthToken({plugin_id:(null==e?void 0:e.plugin_id)||""}),o()}catch(e){W.kg.error(e)}}),{manual:!0,ready:t}),l=(0,c.useMemo)(()=>null==i?void 0:i.is_oauth,[i]),s=(0,c.useMemo)(()=>(null==i?void 0:i.status)===_.OZ.Authorized,[i]),d=(0,c.useMemo)(()=>null==i?void 0:i.content,[i]),g=(0,ey.Z)((0,n._)(function*(){yield r()}));return{canEdit:t,needAuth:l,isHasAuth:s,doCancelOauth:g,isUpdateLoading:a,doOauth:(0,ey.Z)(()=>{window.open(d,"_blank")})}},ek=e=>{v.u_.info({title:f.o.t("plugin_tool_config_auth_modal_auth_required"),content:f.o.t("plugin_tool_config_auth_modal_auth_required_desc"),onOk:e,okText:f.o.t("Confirm"),cancelText:f.o.t("Cancel")})},ej=e=>{v.u_.warning({title:f.o.t("plugin_tool_config_auth_modal_cancel_confirmation"),content:f.o.t("plugin_tool_config_auth_modal_cancel_confirmation_desc"),onOk:e,okText:f.o.t("Confirm"),cancelText:f.o.t("Cancel")})},eM=()=>{var{needAuth:e,isHasAuth:t,doCancelOauth:i,isUpdateLoading:o,doOauth:r,canEdit:n}=ew();if(!n)return(0,s.jsx)(s.Fragment,{});var a=e&&t,l=e&&!t;return(0,s.jsxs)(G.T,{spacing:8,children:[e?(0,s.jsx)("span",{className:"rounded-[4px] bg-[#EDD5FC] px-[8px] py-[2px] text-[#6C2CC6] text-[12px] font-medium leading-[16px]",children:f.o.t("plugin_mark_created_by_existing_services")}):null,e?(0,s.jsx)(G.ZT.Text,{disabled:o,onClick:()=>{if(l){ek(r);return}a&&ej(i)},icon:t?(0,s.jsx)(e_.P03,{}):void 0,className:h()("overflow-hidden text-[#4C54F0] overflow-ellipsis text-[14px] font-normal leading-[20px]",(l||a)&&"cursor-pointer"),children:t?f.o.t("plugin_tool_config_status_authorized"):f.o.t("plugin_tool_config_status_unauthorized")}):null,!t&&e?(0,s.jsx)(e_.x5d,{className:"w-[12px] h-[12px] ml-[-6px]"}):null]})},eI=e=>{var{className:t}=e,{needAuth:i,isHasAuth:o,doCancelOauth:r,isUpdateLoading:n,doOauth:a,canEdit:l}=ew();return l?i?(0,s.jsx)(G.ZT.Text,{disabled:n,onClick:e=>{e.preventDefault(),e.stopPropagation(),console.log("click"),o?ej(r):ek(a)},icon:o?(0,s.jsx)(e_.P03,{}):void 0,className:"overflow-hidden text-[#4C54F0] overflow-ellipsis text-[14px] font-normal leading-[20px] cursor-pointer px-[12px] py-[0] items-center ".concat(t),children:o?f.o.t("plugin_tool_config_status_authorized"):f.o.t("plugin_tool_config_status_unauthorized")}):null:(0,s.jsx)(s.Fragment,{})};_.zV.APP,f.o.t("plugin_type_app"),_.zV.PLUGIN,f.o.t("plugin_type_plugin"),_.zV.FUNC,f.o.t("plugin_type_func"),_.zV.WORKFLOW,f.o.t("plugin_type_workflow");var eN=new Map([[!1,{label:f.o.t("Unpublished_1"),color:"var(--coz-fg-secondary)"}],[!0,{label:f.o.t("Published_1"),color:"var(--coz-fg-hglt-green)"}]]),eT=i("84089"),ez={};ez.styleTagTransform=L(),ez.setAttributes=S(),ez.insert=D().bind(null,"head"),ez.domAPI=T(),ez.insertStyleElement=C(),I()(eT.Z,ez);var eD=eT.Z&&eT.Z.locals?eT.Z.locals:void 0,{Text:eA}=G.ZT,eS=e=>{var t,i,o,r,n,a,l,{pluginInfo:d,loading:c,canEdit:u,extraRight:p,onClickEdit:g}=e;return(0,s.jsxs)(G.T,{className:h()(eD["plugin-detail-info"],"w-full","px-[16px]","py-[16px]","shrink-0","grow-0"),spacing:20,children:[(0,s.jsxs)(G.T,{style:{flex:1},spacing:12,children:[(0,s.jsx)(G.qE,{className:h()(eD["plugin-detail-avatar"]),size:"medium",shape:"square",src:null==d?void 0:null===(i=d.meta_info)||void 0===i?void 0:null===(t=i.icon)||void 0===t?void 0:t.url}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{children:(0,s.jsxs)(G.T,{spacing:4,className:"mb-1",children:[(0,s.jsx)(eA,{ellipsis:{showTooltip:{opts:{style:{wordBreak:"break-word"}}}},className:h()(eD["plugin-detail-title"]),children:null==d?void 0:null===(o=d.meta_info)||void 0===o?void 0:o.name}),c?null:(0,s.jsx)(G.hU,{icon:u?(0,s.jsx)(j.yl5,{}):(0,s.jsx)(j.ia5,{}),size:"small",color:"secondary",className:h()(eD["edit-plugin-btn"],{[eD.edit]:u}),onClick:g})]})}),(0,s.jsxs)(G.T,{spacing:4,children:[(0,s.jsx)(G.Vp,{size:"mini",color:"primary",children:(0,s.jsxs)(G.T,{spacing:2,children:[(null==d?void 0:d.published)?(0,s.jsx)(ev,{size:"small",style:{color:null===(r=eN.get(!!d.published))||void 0===r?void 0:r.color}}):(0,s.jsx)(ex,{size:"small",style:{color:null===(n=eN.get(!!(null==d?void 0:d.published)))||void 0===n?void 0:n.color}}),null===(a=eN.get(!!(null==d?void 0:d.published)))||void 0===a?void 0:a.label]})}),(null==d?void 0:d.creation_method)===_.x9.IDE&&(0,s.jsx)(G.Vp,{size:"mini",color:"purple",children:f.o.t("plugin_mark_created_by_ide")}),(0,s.jsx)(eA,{ellipsis:{showTooltip:{opts:{style:{wordBreak:"break-word",maxWidth:"560px"}}}},className:h()(eD["plugin-detail-desc"]),children:null==d?void 0:null===(l=d.meta_info)||void 0===l?void 0:l.desc}),(0,s.jsx)(eM,{})]})]})]}),p?(0,s.jsx)(G.T,{spacing:12,children:p}):null]})},eE=i("381677"),eC=i("610382"),eO=i("156133"),eL=i("947578"),eZ=i("252793"),eP=e=>{var t,{space_id:i,pluginId:o,apiId:r="",baseInfo:d={},setApiId:u,showModal:p,disabled:g,showSecurityCheckFailedMsg:m,setShowSecurityCheckFailedMsg:h,editVersion:b,showFunctionName:x=!1,pluginType:w,onSuccess:k,renderEnhancedComponent:j}=e,M=(0,c.useRef)(null),[I,N]=(0,c.useState)(void 0);(0,c.useEffect)(()=>{var e;N(null==d?void 0:d.desc),null===(e=M.current)||void 0===e||e.formApi.setValues({name:d.name,desc:d.desc})},[d.name,d.desc,p,g]);var T=(0,ey.Z)(e=>{var t;null===(t=M.current)||void 0===t||t.formApi.setValue("desc",e)});var z=(t=(0,n._)(function*(){if(!(yield null===(e=M.current)||void 0===e?void 0:e.formApi.validate().then(()=>!0).catch(()=>!1)))return!1;var e,t,i,n=null===(t=M.current)||void 0===t?void 0:t.formApi.getValues(),s={plugin_id:o,name:n.name,desc:n.desc,edit_version:b,function_name:n.function_name};try{return r?i=yield y.Js.UpdateAPI((0,l._)((0,a._)({},s),{api_id:r}),{__disableErrorToast:!0}):(i=yield y.Js.CreateAPI((0,l._)((0,a._)({},s),{method:_.fM.POST,path:"/".concat(s.name)}),{__disableErrorToast:!0}),null==u||u(i.api_id||"")),null==k||k(i),!0}catch(e){var{code:d,msg:c}=e;return Number(d)===el.B.SAFE_CHECK?null==h||h(!0):v.FN.error({content:(0,eL.u)(c)}),!1}}),function(){return t.apply(this,arguments)}),D=()=>{m&&(null==h||h(!1))};return{submitBaseInfo:z,baseInfoNode:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(v.l0,{showValidateIcon:!1,ref:M,disabled:g,className:eZ.Z["base-info-form"],children:()=>g?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.l0.Slot,{label:{text:f.o.t("Create_newtool_s1_name"),required:!0},children:d.name}),(0,s.jsx)(v.l0.Slot,{label:{text:f.o.t("Create_newtool_s1_dercribe"),required:!0},children:d.desc})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.P6,{"data-testid":"plugin-create-tool-base-info-name",className:eZ.Z["textarea-single-line"],field:"name",label:f.o.t("Create_newtool_s1_name"),placeholder:f.o.t("Create_newtool_s1_title_empty"),trigger:["blur","change"],maxCount:30,maxLength:30,rows:1,onKeyDown:e=>{var t=window.event||e;if("Enter"===t.key||"Enter"===t.code||13===t.keyCode)return t.returnValue=!1,!1},onChange:D,rules:[{required:!0,message:f.o.t("Create_newtool_s1_title_empty")},{pattern:/^[a-zA-Z0-9_]+$/,message:f.o.t("Create_newtool_s1_title_error1")}]}),(0,s.jsxs)("div",{className:"relative",children:[null==j?void 0:j({disabled:!I,originDesc:I,className:"absolute right-[0] top-[12px]",plugin_id:o,space_id:i,onSetDescription:T}),(0,s.jsx)(v.P6,{"data-testid":"plugin-create-tool-base-info-desc",field:"desc",label:f.o.t("Create_newtool_s1_dercribe"),placeholder:f.o.t("Create_newtool_s1_dercribe_error"),rows:2,trigger:["blur","change"],maxCount:600,maxLength:600,rules:[{required:!0,message:f.o.t("Create_newtool_s1_dercribe_empty")},!1],onChange:e=>{D(),N(e)}}),x&&w===_.zV.LOCAL?(0,s.jsx)(v.P6,{className:eZ.Z["textarea-single-line"],field:"function_name",label:f.o.t("create_local_plugin_basic_tool_function"),placeholder:f.o.t("create_local_plugin_basic_tool_function_input_placeholder"),rows:1,trigger:["blur","change"],maxCount:30,maxLength:30,rules:[{required:!0,message:f.o.t("create_local_plugin_basic_warning_no_tool_function_entered")}],onChange:D}):null]})]})})})}},eF=i("827666"),eB=i("3779"),eR=i("966171"),eU={};eU.styleTagTransform=L(),eU.setAttributes=S(),eU.insert=D().bind(null,"head"),eU.domAPI=T(),eU.insertStyleElement=C(),I()(eR.Z,eU);var eQ=eR.Z&&eR.Z.locals?eR.Z.locals:void 0,eY=e=>{var{step:t}=e;return(0,s.jsxs)("div",{className:eQ["error-msg"],children:[t!==eF.dT?f.o.t("plugin_parameter_create_modal_safe_error"):f.o.t("plugin_tool_create_modal_safe_error"),(0,s.jsx)(eB.v,{})]})},eV=e=>{let t;var{text:i,plugin_id:o,onClickWrapper:r,onBeforeClick:d,disabled:p,isShowBtn:g=!0,space_id:m}=e,h=(0,k.av)(),[f,b]=(0,c.useState)(!1),[x,_]=(0,c.useState)(!1),[y,w]=(0,c.useState)(!1),[j,M]=(0,c.useState)(!1),{pluginInfo:I,unlockPlugin:N,setPluginInfo:T}=(0,k.RQ)((0,u.N)(e=>({pluginInfo:e.pluginInfo,unlockPlugin:e.unlockPlugin,setPluginInfo:e.setPluginInfo}))),{baseInfoNode:z,submitBaseInfo:D}=eP({pluginId:o||"",setApiId:e=>{var t;b(!1),null===(t=h.tool)||void 0===t||t.call(h,e,{toStep:"1"},{replace:!0})},showModal:!1,disabled:p,showSecurityCheckFailedMsg:j,setShowSecurityCheckFailedMsg:M,editVersion:null==I?void 0:I.edit_version,space_id:m||"",pluginType:null==I?void 0:I.plugin_type,showFunctionName:!0,onSuccess:e=>{T((0,l._)((0,a._)({},I),{edit_version:null==e?void 0:e.edit_version}))}}),A=()=>{var e=null==d?void 0:d();if(!(0,eO.Z)(e)||!!e)w(!0),_(!1)};return{content:(0,s.jsxs)(s.Fragment,{children:[g?(0,s.jsx)(G.zx,{disabled:p,loading:x,color:"primary",onClick:(t=r?r(A):A,()=>{_(!0),t()}),children:i}):null,(0,s.jsxs)(v.u_,{title:i,loading:f,visible:y,onOk:(0,n._)(function*(){b(!0),yield D(),N(),b(!1)}),onCancel:()=>{N(),w(!1)},closeOnEsc:!0,children:[z,j?(0,s.jsx)(eY,{step:eF.dT}):null]})]}),openModal:()=>{r?r(A)():A()},closeModal:()=>{N(),w(!1)}}},eW=e=>{var{content:t}=eV((0,a._)({},e));return(0,s.jsx)(s.Fragment,{children:t})},eG=i("452058"),eH={};eH.styleTagTransform=L(),eH.setAttributes=S(),eH.insert=D().bind(null,"head"),eH.domAPI=T(),eH.insertStyleElement=C(),I()(eG.Z,eH);var eq=eG.Z&&eG.Z.locals?eG.Z.locals:void 0,eK={[_.x9.COZE]:f.o.t("create_tool"),[_.x9.IDE]:f.o.t("plugin_creation_create_tool_in_ide")},eJ=e=>{var t,i,o,r,m,h,x,M,{projectId:I,keepDocTitle:N,renderHeaderSlot:T,usePreloadIDE:z}=e,D=(0,er.rY)(e=>e.space.id),{wrapWithCheckLock:A,checkPluginIsLockedByOthers:S,updatedInfo:E,pluginInfo:C,canEdit:O,initPlugin:L,unlockPlugin:Z,initSuccessed:P,pluginID:F,version:B,updatePluginInfoByImmer:R}=(0,k.RQ)((0,u.N)(e=>({wrapWithCheckLock:e.wrapWithCheckLock,checkPluginIsLockedByOthers:e.checkPluginIsLockedByOthers,updatedInfo:e.updatedInfo,pluginInfo:e.pluginInfo,canEdit:e.canEdit,initPlugin:e.initPlugin,unlockPlugin:e.unlockPlugin,initSuccessed:e.initSuccessed,pluginID:e.pluginId,version:e.version,updatePluginInfoByImmer:e.updatePluginInfoByImmer}))),U=(null==C?void 0:C.creation_method)===_.x9.IDE,Q=(null==C?void 0:C.creation_method)===_.x9.COZE,Y=void 0===I,H=(0,k.Np)(),{onStatusChange:q,onUpdateDisplayName:K}=(0,k.sF)(),J=(0,k.av)(),X=(0,d.useNavigate)(),$=(0,W.UQ)(),[ea]=(0,d.useSearchParams)(),[el,es]=(0,c.useState)(),[ed,ec]=(0,c.useState)(!1),[eu,ep]=(0,c.useState)(!1),[eg,em]=(0,c.useState)({}),[eh,eb]=(0,c.useState)({page:1,size:10,plugin_id:F,preview_version_ts:B}),[ev,ex]=(0,c.useState)(""),[e_,ey]=(0,c.useState)(),{modal:ew,setShowCodePluginModel:ek}=(0,eE.Tj)({modalProps:{onSuccess:()=>eL()}}),{modal:ej,setShowFormPluginModel:eM}=(0,eE.e2)({modalProps:{onSuccess:()=>eL()}}),{modal:eI,setShowImportToolModal:eN}=(0,eE.cC)({modalProps:{onSuccess:()=>eL()}});(0,k.A2)(F);var{data:eT,loading:ez}=(0,p.Z)(()=>y.Js.GetPluginAPIs(eh),{refreshDeps:[eh],onError:e=>{$(new en.sH(eo.b.PluginGetApis,"get Plugin Detail Error: ".concat(e.message)))}});(0,c.useEffect)(()=>{var e,t=ea.get("edit_example_id"),i=ea.get("edit_plugin"),o=null==eT?void 0:null===(e=eT.api_info)||void 0===e?void 0:e.find(e=>e.api_id===t);o&&t&&(eB(o),ea.delete("edit_example_id"),X({search:ea.toString()},{replace:!0})),eT&&i&&(eX(),ea.delete("edit_plugin"),X({search:ea.toString()},{replace:!0}))},[eT,ea]),(0,c.useEffect)(()=>{var e,t;null==K||K(null!==(t=null==C?void 0:null===(e=C.meta_info)||void 0===e?void 0:e.name)&&void 0!==t?t:"")},[null==C?void 0:null===(m=C.meta_info)||void 0===m?void 0:m.name]),(0,ei.a)({isLive:!!eT&&!ez,extra:{renderSize:"".concat(null==eT?void 0:null===(h=eT.api_info)||void 0===h?void 0:h.length)}});var eD=null==eT?void 0:eT.api_info;var eA=(t=(0,n._)(function*(){(yield y.Js.NoUpdatedPrompt({plugin_id:F}))&&eL()}),function(){return t.apply(this,arguments)});var eO=(i=(0,n._)(function*(){if(!(null==C?void 0:C.published)){ec(!0);return}var e=yield y.Js.GetUpdatedAPIs({plugin_id:F});e.created_api_names&&e.created_api_names.length>0||e.deleted_api_names&&e.deleted_api_names.length>0||e.updated_api_names&&e.updated_api_names.length>0?(em(e),ep(!0)):ec(!0)}),function(){return i.apply(this,arguments)}),eL=()=>{var e;null===(e=eY.current)||void 0===e||e.reset(),L(),eb(e=>(0,l._)((0,a._)({},e),{page:1,size:10}))},eZ=null==z?void 0:z({onBack:eL,pluginID:F});(0,g.Z)(()=>{P?(null==q||q("normal"),U&&(null==eZ||eZ.handleInitIde(!O))):null==q||q("error")},[P]);var eP=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w.jG.DEFAULT,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";U?null==eZ||eZ.handleShowIde({initialAction:t,toolId:i}):i&&(null===(e=J.tool)||void 0===e||e.call(J,i))},{exampleNode:eF,openExample:eB}=ef({onUpdate:eL}),{getColumns:eR,reactNode:eU}=V({targetSwitchId:ev,setTargetSwitchId:ex,loading:ez,canEdit:O,refreshPage:eL,plugin_id:F,pluginInfo:C,updatedInfo:E,showDropdownItem:e_,setShowDropDownItem:ey,handleIdeJump:eP,setCurAPIInfo:es,openExample:eB,projectId:I,unlockPlugin:Z}),eQ=eR(),eY=(0,c.useRef)(null),eG=eK[null==C?void 0:C.creation_method]||"",{openModal:eH,content:eJ}=eV({text:eG,isShowBtn:!1,disabled:!O,onClickWrapper:A,onBeforeClick:()=>{ey(void 0)},plugin_id:F,space_id:D});var eX=(o=(0,n._)(function*(){if(ey(void 0),!(O&&(yield S())))eM(!0)}),function(){return o.apply(this,arguments)}),e$=!U,e0=O&&!!(null==eT?void 0:eT.total),e1=O&&!U,e2=e0&&Y,e4=e2&&U;return(0,s.jsxs)("div",{className:eq["tool-wrapper"],children:[ew,ej,eI,eU,eF,(0,s.jsxs)(G.Ar,{className:"flex",title:(0,b.Z$)(f.o.t("tab_plugin_detail",{plugin_name:null!==(M=null==C?void 0:null===(x=C.meta_info)||void 0===x?void 0:x.name)&&void 0!==M?M:""})),keepDocTitle:N,children:[Y?(0,s.jsx)(G.Ar.Header,{className:eq["layout-header"],breadcrumb:(0,s.jsx)(et.g3,{showTooltip:{width:"300px"},pluginInfo:null==C?void 0:C.meta_info,compact:!1})}):null,(0,s.jsxs)(G.Ar.Content,{className:eq["layout-content"],children:[(null==C?void 0:C.status)&&(null==C?void 0:C.published)&&O&&Y?(0,s.jsx)(G.jL,{className:eq.banner,type:"info",bordered:!0,fullMode:!1,description:(0,s.jsxs)("div",{children:[f.o.t("plugin_update_tip"),(0,s.jsx)(G.ZT.Text,{className:eq.notips,onClick:()=>{eA()},children:f.o.t("not_show_again")})]})}):null,C?(0,s.jsx)(eS,{pluginInfo:C,loading:ez,canEdit:O,onClickEdit:eX,extraRight:(0,s.jsxs)(s.Fragment,{children:[null==T?void 0:T({pluginInfo:C}),e$?(0,s.jsx)(G.u,{position:"left",content:f.o.t("Plugin_button_code_tooltip"),children:(0,s.jsx)(G.hU,{icon:(0,s.jsx)(j.WTs,{}),onClick:()=>{ey(void 0),ek(!0)}})}):null,e0?(0,s.jsx)(eW,{text:eG,disabled:!O,onClickWrapper:A,onBeforeClick:()=>(ey(void 0),!U||(null==eZ||eZ.handleShowIde({initialAction:w.jG.CREATE_TOOL,toolId:""}),!1)),plugin_id:F,space_id:D}):null,e1?(0,s.jsx)(G.zx,{color:"primary",disabled:!O||(null==C?void 0:C.plugin_type)===_.zV.LOCAL,onClick:A(()=>{ey(void 0),eN(!0)}),children:f.o.t("import")}):null,e4?(0,s.jsx)(G.u,{position:"left",content:f.o.t("Plugin_button_publish_tooltip"),children:(0,s.jsx)(G.zx,{disabled:!(null==eT?void 0:eT.total),theme:"solid",onClick:()=>{ey(void 0),eP()},children:f.o.t("Publish")})}):null,e2&&Q?(0,s.jsx)(G.gn,{visible:eu,onCancel:()=>ep(!1),onClickOutSide:()=>{ep(!1)},style:{width:400},trigger:"custom",onConfirm:()=>{ep(!1),ec(!0)},title:f.o.t("Plugin_update_info_title"),content:(0,s.jsx)(s.Fragment,{children:(r=[...eg.created_api_names||[],...eg.deleted_api_names||[],...eg.updated_api_names||[]],f.o.t("Plugin_update_info_text",{number:r.length,array:r.join("、")}))}),okText:f.o.t("Confirm"),cancelText:f.o.t("Cancel"),children:(0,s.jsx)("span",{children:(0,s.jsx)(ee,{spaceId:D,pluginInfo:C,pluginId:F,isInLibraryScope:Y,isPluginHasPublished:!!C.published,visible:ed,onClickOutside:()=>ec(!1),onPublishSuccess:()=>{var e;null===(e=H.current)||void 0===e||e.reload(),ec(!1),R(e=>{if(!!e)e.published=!0})},children:(0,s.jsx)("span",{children:(0,s.jsx)(G.u,{position:"left",content:f.o.t("Plugin_button_publish_tooltip"),children:(0,s.jsx)(G.zx,{disabled:!(null==eT?void 0:eT.total),theme:"solid",onClick:eO,children:f.o.t("Publish")})})})})})}):null]})}):null,!!(null==eD?void 0:eD.length)&&(0,s.jsx)("div",{className:"mb-[24px] mt-[36px] text-[18px] weight-[600]",children:f.o.t("plugin_api_list_table_name")}),(0,s.jsx)(G.iA,{ref:eY,offsetY:390,tableProps:{rowKey:"api_id",loading:ez,dataSource:eD,columns:eQ,onRow:e=>({onClick:()=>{if(null==e?void 0:e.api_id){var t;if(ey(void 0),U){eP(w.jG.SELECT_TOOL,null==e?void 0:e.api_id);return}null===(t=J.tool)||void 0===t||t.call(J,e.api_id,O?{mode:"preview"}:{})}}}),onChange:e=>{var t;(null===(t=e.sorter)||void 0===t?void 0:t.sortOrder)&&eb(t=>{var i;return(0,l._)((0,a._)({},t),{page:1,size:10,order:{desc:(null===(i=e.sorter)||void 0===i?void 0:i.sortOrder)==="descend"}})})}},empty:(0,s.jsx)(v.YZ,{empty:{title:f.o.t("plugin_empty_desc"),btnText:O?eG:void 0,btnOnClick:()=>{if(U){null==eZ||eZ.handleShowIde({initialAction:w.jG.CREATE_TOOL,toolId:""});return}eH()}}}),enableLoad:!0,total:Number((null==eT?void 0:eT.total)||0),onLoad:()=>{eb(e=>{var t;return(0,l._)((0,a._)({},e),{page:(null!==(t=eh.page)&&void 0!==t?t:0)+1})})}}),eJ]})]}),(0,s.jsx)(eC.Hv,{visible:!!el,onCancel:()=>{es(void 0)},pluginAPIInfo:el})]})},eX=i("716069"),e$=i("287487"),e0=i("378925"),e1=i("707107"),e2=i("178385"),e4=i("824833"),e5=i("583193"),e3=i("30961"),e6=i("11869"),e8=i("345822"),e9=i("473980"),e7=i("428468"),te={};te.styleTagTransform=L(),te.setAttributes=S(),te.insert=D().bind(null,"head"),te.domAPI=T(),te.insertStyleElement=C(),I()(e7.Z,te);var tt=e7.Z&&e7.Z.locals?e7.Z.locals:void 0;function ti(e){var{children:t,ellipsis:i,tooltipText:o}=e,r=(0,e9._)(e,["children","ellipsis","tooltipText"]),n=!1===i?i:(0,a._)({showTooltip:{opts:{content:(0,s.jsx)(v.ZT.Text,{className:h()(tt["long-text-tooltip"],tt["long-text"]),onClick:e=>e.stopPropagation(),ellipsis:{showTooltip:!1,rows:16},children:o||e.children})}}},"object"!=typeof i?{}:i);return(0,s.jsx)(v.ZT.Text,(0,l._)((0,a._)({ellipsis:n},r),{children:e.children}))}var to=i("972588"),tr={};tr.styleTagTransform=L(),tr.setAttributes=S(),tr.insert=D().bind(null,"head"),tr.domAPI=T(),tr.insertStyleElement=C(),I()(to.Z,tr);var tn=to.Z&&to.Z.locals?to.Z.locals:void 0;function ta(e){var{isFullHeader:t=!0,readOnly:i=!0,mockSetInfo:o,onUpdateMockSetInfo:r,bizCtx:n}=e,[a,l]=(0,c.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(v.T,{spacing:t?2:4,className:h()(tn["mock-set-intro-title"],t?tn["mock-set-intro-title_full"]:""),children:[(0,s.jsx)(ti,{className:h()(tn["mock-set-intro-name"],t?tn["mock-set-intro-name_full"]:""),children:o.name}),!i&&o.name?(0,s.jsx)(v._3,{icon:(0,s.jsx)(j.mGJ,{className:h()(tn["mock-set-intro-edit"],t?tn["mock-set-intro-edit_full"]:"")}),size:"small",theme:"borderless",onClick:()=>l(!0)}):null,(0,s.jsx)(e8.a,{visible:a,initialInfo:{bindSubjectInfo:o.mockSubject||{},bizCtx:n,id:String(o.id),name:o.name,desc:o.description},onSuccess:e=>{null==r||r(e),l(!1)},onCancel:()=>l(!1)})]}),o.description?(0,s.jsx)(ti,{className:h()(tn["mock-set-intro-desc"],tn["mock-set-intro-desc_priority"],t?tn["mock-set-intro-desc_full"]:""),children:o.description}):null]})}var tl=i("746278");function ts(e){var t,{pluginId:i,apiInfo:o,mockSetInfo:r}=e,a=(0,e3.fR)(e3.GV.PLUGIN_MOCK_DATA),[l,d]=(0,c.useState)({name:null==a?void 0:a.pluginName});var u=(t=(0,n._)(function*(){try{var e=yield y.nA.GetPluginInfo({plugin_id:i||""},{__disableErrorToast:!0});(null==e?void 0:e.code)===0&&d(e.meta_info||{})}catch(e){W.kg.error({error:e,eventName:"get_plugin_info_fail"})}}),function(){return t.apply(this,arguments)});return(0,c.useEffect)(()=>{u()},[i]),(0,s.jsx)(v._n.Header,{className:tn["layout-header"],breadcrumb:(0,s.jsx)(et.g3,{showTooltip:{width:"300px"},pluginInfo:l,pluginToolInfo:o,mockSetInfo:r,compact:!1})})}var td=i("763055"),tc=i("49695");function tu(e){var{height:t,width:i}=e;return(0,s.jsx)("div",{style:{width:i,height:t,display:i?"inline-block":"block"}})}var tp=i("286518"),tg=i("177625"),tm=i("998600"),th=i("966219"),tf=i("937373"),tb={};tb.styleTagTransform=L(),tb.setAttributes=S(),tb.insert=D().bind(null,"head"),tb.domAPI=T(),tb.insertStyleElement=C(),I()(tf.Z,tb);var tv=tf.Z&&tf.Z.locals?tf.Z.locals:void 0,tx=i("792795"),t_={};t_.styleTagTransform=L(),t_.setAttributes=S(),t_.insert=D().bind(null,"head"),t_.domAPI=T(),t_.insertStyleElement=C(),I()(tx.Z,t_);var ty=tx.Z&&tx.Z.locals?tx.Z.locals:void 0,tw=(0,c.forwardRef)((e,t)=>{var i,o,r,{mockInfo:n,readOnly:a,className:l,onValidate:d,onEditorPaste:u,onEditorReady:p}=e,{mock:g,mergedResultExample:m,schema:f,incompatible:b}=n,[x,_]=(0,c.useState)(!1),y=(0,c.useRef)(null),w=(0,c.useRef)(null),k=(0,c.useCallback)(e=>{var t,i=e.map(e=>({message:e.message}));(null===(t=y.current)||void 0===t?void 0:t.getValue().trim().length)===0&&i.push({message:"no data"}),null==d||d(i)},[d]),{run:j}=(0,tm.Z)(()=>{var e,t,i=null===(e=y.current)||void 0===e?void 0:e.getModel();if(null==i?void 0:i.id){;k((null===(t=w.current)||void 0===t?void 0:t.editor.getModelMarkers)(i.id).filter(e=>e.resource.path===i.id.replace("$model","/"))||[])}},{wait:200}),M=(0,c.useCallback)(()=>{var e;null===(e=y.current)||void 0===e||e.trigger("editor","editor.action.formatDocument",{})},[]),I=(e,t)=>{y.current=e,w.current=t;var i,o=f?(0,e5.KD)(f):void 0,r=e.getModel(),n=null==r?void 0:r.uri.toString();o&&n&&t.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemaValidation:"error",schemas:[{uri:"https://plugin-mock-set/tool_schema_".concat(null==r?void 0:r.id),fileMatch:[n],schema:o}]}),e.onDidBlurEditorText(M),e.onDidPaste(()=>{!1!==(null==u?void 0:u())&&M()}),e.onDidChangeModelDecorations(j),null===(i=e.getModel())||void 0===i||i.updateOptions({tabSize:tg.S9}),null==p||p(),setTimeout(()=>{_(!0)})};return(0,c.useImperativeHandle)(t,()=>({getValue:()=>{var e;return null===(e=y.current)||void 0===e?void 0:e.getValue()}})),(0,c.useEffect)(()=>{M()},[null==g?void 0:null===(i=g.responseExpect)||void 0===i?void 0:i.responseExpectRule,m]),(0,s.jsxs)("div",{className:h()(ty["editor-container"],a?ty["editor-container_disabled"]:"",tv.light,l),children:[x?null:(0,s.jsx)(v.Od,{className:ty.skeleton,placeholder:(0,s.jsx)(v.Od.Image,{})}),b&&!a?(0,s.jsx)(th.DiffEditor,{className:h()(ty.editor,x?"":ty.editor_hidden),theme:"vs-dark",original:null==g?void 0:null===(o=g.responseExpect)||void 0===o?void 0:o.responseExpectRule,modified:m,language:"json",options:{unicodeHighlight:{ambiguousCharacters:!1},wordWrap:"on",readOnly:a,formatOnPaste:!0,formatOnType:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,contextmenu:!1},onMount:(e,t)=>{I(e.getModifiedEditor(),t)},loading:null}):(0,s.jsx)(th.Editor,{className:h()(ty.editor,x?"":ty.editor_hidden),theme:"vs-dark",language:"json",options:{unicodeHighlight:{ambiguousCharacters:!1},wordWrap:"on",readOnly:a,formatOnPaste:!0,formatOnType:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,scrollbar:{alwaysConsumeMouseWheel:!a},contextmenu:!1},value:(null==g?void 0:null===(r=g.responseExpect)||void 0===r?void 0:r.responseExpectRule)||m,onMount:I,loading:null})]})}),tk=i("209684"),tj={};tj.styleTagTransform=L(),tj.setAttributes=S(),tj.insert=D().bind(null,"head"),tj.domAPI=T(),tj.insertStyleElement=C(),I()(tk.Z,tj);var tM=tk.Z&&tk.Z.locals?tk.Z.locals:void 0,tI=(0,c.forwardRef)((e,t)=>{var{onValidate:i,mockInfo:o,environment:r,isCreateScene:n,className:d}=e,u=(0,e9._)(e,["onValidate","mockInfo","environment","isCreateScene","className"]),p=(0,c.useRef)([]),[g,m]=(0,c.useState)({current:0,valid:[!0],data:o.mergedResultExample?[o.mergedResultExample]:[]}),b=(e,t)=>{var o=g.valid.slice();o[t]=!e.length,m((0,l._)((0,a._)({},g),{valid:o})),null==i||i(o)},x=e=>{var t,i=null===(t=p.current[e])||void 0===t?void 0:t.getValue();if((i?(0,e5.Vv)(i):0)>tg.Fc)return v.FN.error(f.o.t("mockset_toast_data_size_limit")),!1},_=()=>{var e;return null===(e=p.current)||void 0===e?void 0:e.slice(0,g.data.length).map(e=>(null==e?void 0:e.getValue())||"")};return(0,c.useImperativeHandle)(t,()=>({getValue:_})),(0,s.jsx)("div",{className:h()(d,tM["mock-tab-container"]),children:(0,s.jsx)("div",{className:tM["mock-tab-panels"],children:g.data.map((e,t)=>(0,s.jsx)(tw,(0,a._)({className:h()(t===g.current?tM["mock-tab-panel_visible"]:tM["mock-tab-panel_invisible"],0===t?tM["mock-tab-panel_static"]:tM["mock-tab-panel_absolute"]),mockInfo:(0,l._)((0,a._)({},o),{mergedResultExample:e}),ref:e=>p.current[t]=e,onValidate:e=>b(e,t),onEditorPaste:()=>x(t)},u),t))})})}),tN=i("939619"),tT=i("450599"),tz={schema:"",result:void 0},tD="response_for_model";function tA(e,t){var i,o=(i=e,(0,c.useMemo)(()=>{if(i&&tz.schema===i)return tz.result;if(i){tz.schema=i;var e=(0,e5.KD)(i),t=(0,e5.Zg)(tg.dz,e);return tz.result=t,t}},[i])),{result:r,merged:n,incompatible:a,formatted:l}=(0,c.useMemo)(()=>{var{result:e,incompatible:i}=(0,tT.Lt)(o,t);if(!e)return{incompatible:i};var r,n=null===(r=(0,e5.Cu)(e,void 0!==t))||void 0===r?void 0:r[tg.dz];return{merged:e,result:n,formatted:(0,e5._v)(n),incompatible:i}},[o,t]),s=(0,c.useCallback)(e=>{var t;if(null==o?void 0:null===(t=o.children)||void 0===t?void 0:t.some(e=>e.label===tD&&e.type===tN.U.STRING)){var i=(0,b.dj)(e);if("object"==typeof i&&("string"!=typeof i[tD]||0===i[tD].length))return!1}return!0},[o]);return{result:o,mergedResult:n,mergedResultExample:r,formattedResultExample:l,incompatible:a,isInit:void 0===t,testValueValid:s}}var tS=i("936721");var tE=((o={}).MODAL="modal",o.CARD="card",o);function tC(e){var{mode:t,mockInfo:i,visible:o,onCancel:r,onSuccess:u,bizCtx:g,forceGenerate:m}=e,{schema:h}=i||{},b=(0,c.useRef)(null),[x,_]=(0,c.useState)(!1),[w,k]=(0,c.useState)(!1),{testValueValid:j,formattedResultExample:M}=tA(h),{mock_set_id:I,tool_id:N}=(0,d.useParams)(),T=(0,er.rY)(e=>e.space.space_type)===tp.Sn.Personal,z={environment:(0,e5.zj)(),workspace_id:g.bizSpaceID||"",workspace_type:T?"personal_workspace":"team_workspace",tool_id:N||"",mock_set_id:I||""},{save:D,loading:A}=function(e){var t,{mockSetId:i,basicParams:o,bizCtx:r,onSuccess:s,onError:d}=e;var{runAsync:c,loading:u}=(0,p.Z)((t=(0,n._)(function*(e,t){var c,u,p,g,m=e.map((c=(0,n._)(function*(e){var o={id:t,mocksetID:i,responseExpect:{responseExpectType:tS.K7.JSON,responseExpectRule:e}};try{var{id:n}=yield y.xd.SaveMockRule((0,a._)({bizCtx:r},o),{__disableErrorToast:!0});return(0,l._)((0,a._)({status:"success"},o),{id:n||t})}catch(e){return W.kg.error({error:e,eventName:"save_mock_info_fail"}),{status:"fail",error:e}}}),function(e){return c.apply(this,arguments)})),h=yield Promise.all(m),b=h.filter(e=>"success"===e.status),x=h.filter(e=>"success"!==e.status);b.length&&(0,e1.Gg)(e1.Kg.create_mock_front,(0,l._)((0,a._)({},o),{mock_counts:b.length,status:0})),x.length&&(0,e1.Gg)(e1.Kg.create_mock_front,(0,l._)((0,a._)({},o),{mock_counts:x.length,status:1,error:null===(u=x[0].error)||void 0===u?void 0:u.message})),0===b.length?(v.FN.error({content:(0,eL.u)((null===(g=x[0])||void 0===g?void 0:null===(p=g.error)||void 0===p?void 0:p.message)||f.o.t("error")),showClose:!1}),null==d||d()):null==s||s(b)}),function(e,i){return t.apply(this,arguments)}),{manual:!0});return{save:c,loading:u}}({mockSetId:I,basicParams:z,bizCtx:g,onSuccess:u}),S=()=>{var e,t,o=null===(e=b.current)||void 0===e?void 0:e.getValue();if(!!o){for(var r of o){if(!r){v.FN.error("no data");return}if((0,e5.Vv)(r)>tg.Fc){v.FN.error({content:f.o.t("mockset_toast_data_size_limit"),showClose:!1});return}if(!j(r)){v.FN.error({content:f.o.t("mockdata_field_empty",{fieldName:tD}),showClose:!1});return}}D(o,String((null==i?void 0:null===(t=i.mock)||void 0===t?void 0:t.id)||0))}},E=e=>{_(e.some(e=>!e))};return(0,c.useEffect)(()=>{var e=e=>{var t=f.o.t("mockset_tip_data_will_lose");return e.preventDefault(),e.returnValue=t,t};return("modal"===t&&o||"card"===t)&&window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[t,o]),(0,c.useEffect)(()=>{if(m){var e,t;null===(t=b.current)||void 0===t||null===(e=t.forceStartGenerate)||void 0===e||e.call(t,m.mode,m.count)}},[]),"modal"===t?(0,s.jsx)(v.M5,{visible:o,title:(null==i?void 0:i.mock)?f.o.t("edit_mock_data"):f.o.t("add_mock_data"),className:tn["mock-creation-modal"],keepDOM:!1,footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"mr-[8px]",children:f.o.t("mockset_save_description")}),(0,s.jsx)(v.iz,{layout:"vertical",margin:"0px"}),(0,s.jsx)(v.y3,{type:"tertiary",onClick:r,children:f.o.t("cancel")},"Cancel"),(0,s.jsx)(v.y3,{type:"primary",theme:"solid",onClick:S,loading:A,disabled:x||w,children:f.o.t("confirm")},"Confirm")]}),width:1e3,maskClosable:!1,onCancel:r,children:(0,s.jsx)(tI,{className:tn["mock-creation-modal-editor"],mockInfo:(0,a._)({mergedResultExample:M},i),readOnly:!1,ref:b,onValidate:E,environment:{spaceId:g.bizSpaceID,mockSetId:I,basicParams:z},isCreateScene:!(null==i?void 0:i.mock),onGenerationStatusChange:e=>k(e)})}):(0,s.jsxs)("div",{className:tn["mock-creation-card"],children:[(0,s.jsx)("div",{className:tn["mock-creation-card-editor"],children:(0,s.jsx)(tI,{mockInfo:(0,a._)({mergedResultExample:M},i),ref:b,onValidate:E,environment:{spaceId:g.bizSpaceID,mockSetId:I,basicParams:z},isCreateScene:!(null==i?void 0:i.mock),onGenerationStatusChange:e=>k(e)})}),(0,s.jsx)("div",{className:tn["mock-creation-card-operation"],children:(0,s.jsxs)(v.T,{children:[(0,s.jsx)(v.ZT.Text,{children:f.o.t("mockset_save_description")}),(0,s.jsx)(v.iz,{layout:"vertical",margin:"0px"}),(0,s.jsx)(v.y3,{type:"primary",theme:"solid",onClick:S,loading:A,disabled:x||w,children:f.o.t("mockset_save")})]})})]})}var tO=i("773568");var tL=((r={})[r.NONE=0]="NONE",r[r.VISIBLE=1]="VISIBLE",r[r.HALF=2]="HALF",r),tZ=i("393288"),tP={};tP.styleTagTransform=L(),tP.setAttributes=S(),tP.insert=D().bind(null,"head"),tP.domAPI=T(),tP.insertStyleElement=C(),I()(tZ.Z,tP);var tF=tZ.Z&&tZ.Z.locals?tZ.Z.locals:void 0;function tB(e){var t,i,{mock:o,readOnly:r,schema:n,onEdit:d,onRemove:u}=e,{formattedResultExample:p,incompatible:g,mergedResult:m}=tA(n,null==o?void 0:null===(t=o.responseExpect)||void 0===t?void 0:t.responseExpectRule),{branchInfo:b,prunedData:x}=function(e){var[t,i]=(0,c.useState)({}),[o,r]=(0,c.useState)(),n=e=>{if(!!(null==e?void 0:e.children)){var t=e.children.map(e=>e.type!==tO.U.ARRAY&&e.type!==tO.U.OBJECT?(0,a._)({},e):!1===e.isRequired&&e.status===tO.M.ADDED?(0,l._)((0,a._)({},e),{children:void 0}):n(e));return(0,l._)((0,a._)({},e),{children:t})}},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i={};if(null==e?void 0:e.children){var{length:o}=e.children;null==e||e.children.forEach((e,r)=>{var n=r===o-1;i[e.key]={isLast:n,v:n&&t.length>0?[...t.slice(0,-1),2]:t},Object.assign(i,s(e,n&&t.length>0?[...t.slice(0,-1),0,1]:[...t,1]))})}return i};return(0,c.useEffect)(()=>{var t=n(e),o=s(t);r(t),i(o)},[e]),{branchInfo:t,prunedData:o}}(m),_=(e,t)=>{var i=(null==e?void 0:e.key)?b[e.key]:void 0;return(0,s.jsxs)("span",{className:tF["card-branches"],children:[null==i?void 0:i.v.map((e,t)=>(0,s.jsx)("span",{className:h()(tF["card-branch-v"],e!==tL.NONE?tF["card-branch-v_visible"]:"",e===tL.HALF?tF["card-branch-v_half"]:"")},t)),t?"":(0,s.jsx)("span",{className:h()(tF["card-branch-h"],(null==e?void 0:e.children)?"":tF["card-branch-h_long"])})]})},y=e=>{var t=(null==e?void 0:e.status)===tO.M.REMOVED;return(null==e?void 0:e.status)===tO.M.ADDED?(0,s.jsx)(tR,{val:e.isRequired?f.o.t("mockset_field_is_required",{field:null==e?void 0:e.label}):void 0,className:h()("ms-[8px]",e.isRequired?tF["card-item-text_highlighted"]:"")}):((null==e?void 0:e.type)===tO.U.ARRAY||(null==e?void 0:e.type)===tO.U.OBJECT)&&(null==e?void 0:e.children)?"":(0,s.jsx)(tR,{val:null==e?void 0:e.displayValue,className:h()("ms-[8px]",t?tF["card-item-text_highlighted"]:"")})},w=(e,t)=>{var i="".concat(tg.dz,"-").concat(null==t?void 0:t.label)===(null==t?void 0:t.key),o=(null==t?void 0:t.status)===tO.M.REMOVED,r=(null==t?void 0:t.status)===tO.M.ADDED&&t.isRequired;return t?(0,s.jsxs)(s.Fragment,{children:[_(t,i),(0,s.jsxs)("span",{className:h()(tF["card-item"],o||r?tF["card-item-text_highlighted"]:"",o?tF["card-item_deleted"]:""),children:[(0,s.jsx)("span",{className:h()(tF["card-item-text"],i?tF["card-item-text_primary"]:"",o||r?tF["card-item-text_highlighted"]:""),children:null==t?void 0:t.label}),(null==t?void 0:t.isRequired)?(0,s.jsx)("span",{className:h()(tF["card-item-text"],tF["card-item-text_required"]),children:"*"}):null,o||r?null:(0,s.jsxs)("span",{className:h()(tF["card-item-tag"],"ms-[8px]"),children:[(0,tT.jy)(null==t?void 0:t.type),(null==t?void 0:t.type)===tO.U.ARRAY?"<".concat((0,tT.jy)(null==t?void 0:t.childrenType),">"):""]}),y(t)]})]}):""};return(null==o?void 0:null===(i=o.responseExpect)||void 0===i?void 0:i.responseExpectRule)?(0,s.jsxs)("div",{className:tF["mock-data-card"],children:[(0,s.jsx)("div",{className:tF["mock-data-content"],children:(()=>{var e;if((null==x?void 0:x.type)!==tO.U.ARRAY&&(null==x?void 0:x.type)!==tO.U.OBJECT)return(0,s.jsx)("div",{className:tF["card-non-tree-container"],children:(0,s.jsx)(tR,{val:null==x?void 0:x.displayValue})});return(null===(e=x.children)||void 0===e?void 0:e.length)?(0,s.jsx)(v.mp,{defaultExpandAll:!0,treeData:x.children,renderLabel:w}):(0,s.jsx)("div",{className:tF["card-non-tree-container"],children:(0,s.jsx)("span",{className:h()(tF["card-item-text"],tF["card-item-text_invalid"]),children:"Empty"})})})()}),r?null:(0,s.jsxs)(v.T,{className:tF["mock-data-card-operations"],spacing:12,children:[(0,s.jsx)(v._3,{icon:(0,s.jsx)(j.mGJ,{className:tF["mock-data-card-edit"]}),size:"small",theme:"borderless",onClick:()=>{null==d||d({schema:n,mock:o,mergedResultExample:p,incompatible:g})}}),(0,s.jsx)(v._3,{icon:(0,s.jsx)(j.WDf,{className:tF["mock-data-card-edit"]}),size:"small",theme:"borderless",onClick:()=>{null==u||u({schema:n,mock:o})}})]})]}):null}var tR=e=>e.val?(0,s.jsx)("span",{className:h()(e.className,tF["card-item-text"]),children:e.val}):(0,s.jsx)("span",{className:h()(e.className,tF["card-item-text"],tF["card-item-text_invalid"]),children:"Undefined"}),tU=(0,c.forwardRef)((e,t)=>{var i,o,{mockSetID:r,perm:u,toolSchema:p,bizCtx:g,onListUpdate:m}=e,[b,x]=(0,c.useState)(!1),[_,w]=(0,c.useState)([]),[k,j]=(0,c.useState)(!1),[M,I]=(0,c.useState)(!1),[N,T]=(0,c.useState)(!1),[z,D]=(0,c.useState)(),A=(0,e3.fR)(e3.GV.PLUGIN_MOCK_DATA),{mock_set_id:S,space_id:E,tool_id:C}=(0,d.useParams)(),O=(0,er.rY)(e=>e.space.space_type)===e2.Sn.Personal,L=e=>{D(e),j(!0)},Z=e=>{D(e),I(!0)};var P=(i=(0,n._)(function*(e){try{x(!0);var t,i=yield y.xd.MGetMockRule({bizCtx:g,mockSetID:S,orderBy:e4.d$.UpdateTime,desc:!0});w(i.mockRules||[]),null==m||m((null===(t=i.mockRules)||void 0===t?void 0:t.length)||0,e)}catch(e){W.kg.error({error:e,eventName:"get_mock_data_fail"})}finally{x(!1)}}),function(e){return i.apply(this,arguments)});var F=(o=(0,n._)(function*(){var{mock:e}=z||{};if(!!e){var t={environment:(0,e5.zj)(),workspace_id:E||"",workspace_type:O?"personal_workspace":"team_workspace",tool_id:C||"",mock_set_id:S||"",mock_counts:1};try{T(!0),yield y.xd.DeleteMockRule({bizCtx:g,id:String(e.id)}),B(e,2),D(void 0),I(!1),(0,e1.Gg)(e1.Kg.del_mock_front,(0,l._)((0,a._)({},t),{status:0}))}catch(e){W.kg.error({error:e,eventName:"delete_mock_fail"}),(0,e1.Gg)(e1.Kg.del_mock_front,(0,l._)((0,a._)({},t),{status:1,error:e}))}finally{T(!1)}}}),function(){return o.apply(this,arguments)}),B=(e,t)=>{var i=0;0===t?P(!0):2===t?(i=_.length-1,w(t=>{var o=t.findIndex(t=>t.id===(null==e?void 0:e.id));return -1!==o&&t.splice(o,1),i=t.length,[...t]}),null==m||m(i)):(i=_.length,w(t=>{var o=t.findIndex(t=>t.id===(null==e?void 0:e.id));return -1!==o&&(t.splice(o,1),t.unshift(e)),i=t.length,[...t]}),null==m||m(i,!0))};return(0,c.useImperativeHandle)(t,()=>({update:P,create:()=>{D(void 0),j(!0)}})),(0,c.useEffect)(()=>{P()},[r]),(0,c.useEffect)(()=>{if(null==A?void 0:A.generationMode){var e=(0,l._)((0,a._)({},history.state),{usr:(0,l._)((0,a._)({},history.state.usr||{}),{generationMode:void 0})});history.replaceState(e,"")}},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tu,{height:24}),b||u.uninitialized?(0,s.jsx)("div",{className:tn["list-container-no-header_flexible"],children:(0,s.jsx)(v.yC,{size:"large",spinning:!0,style:{height:"80%",width:"100%"}})}):u.readOnly&&0===_.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h1",{className:h()(tn["content-title"]),children:f.o.t("mockset_data")}),(0,s.jsx)("div",{className:tn["list-container_flexible"],children:(0,s.jsx)(v.HY,{className:tn.empty,image:(0,s.jsx)(td.ts,{}),darkModeImage:(0,s.jsx)(td.Id,{}),description:f.o.t("no_mock_yet")})})]}):u.readOnly||0!==_.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h1",{className:h()(tn["content-title"]),children:f.o.t("mockset_data")}),(0,s.jsx)("div",{className:tn["list-container_scroll"],children:_.map(e=>(0,s.jsx)(tB,{readOnly:u.readOnly,mock:e,schema:p,onEdit:e=>L(e),onRemove:e=>Z(e),bizCtx:g},e.id))})]}):(0,s.jsx)("div",{className:tn["list-container-no-header_flexible"],children:(0,s.jsx)(tC,{mode:tE.CARD,mockInfo:{schema:p},onSuccess:e=>{e&&B(e[0],0)},bizCtx:g,forceGenerate:(null==A?void 0:A.generationMode)?{mode:A.generationMode,count:1}:void 0})}),(0,s.jsx)(tC,{mode:tE.MODAL,mockInfo:z||{schema:p},visible:k,onCancel:()=>{D(void 0),j(!1)},onSuccess:e=>{D(void 0),j(!1),(null==e?void 0:e[0])&&B(e[0],z?1:0)},bizCtx:g}),(0,s.jsx)(v.M5,{type:"info",icon:(0,s.jsx)(tc.Z,{size:"extra-large",className:"inline-flex text-[#FF2710]"}),title:f.o.t("delete_mock_data"),visible:M,onCancel:()=>{D(void 0),I(!1)},okText:f.o.t("confirm"),cancelText:f.o.t("cancel"),confirmLoading:N,onOk:()=>F(),okType:"danger",children:f.o.t("operation_cannot_be_reversed")})]})}),tQ=i("928002"),tY={};tY.styleTagTransform=L(),tY.setAttributes=S(),tY.insert=D().bind(null,"head"),tY.domAPI=T(),tY.insertStyleElement=C(),I()(tQ.Z,tY);var tV=tQ.Z&&tQ.Z.locals?tQ.Z.locals:void 0,tW=e=>{var t,i,o,r,{toolID:u,mocksetID:p,pluginID:g,spaceID:m,version:x}=e,_=(0,c.useMemo)(()=>eX.Z.parse(location.search),[]),w=(0,e3.fR)(e3.GV.PLUGIN_MOCK_DATA),[k,M]=(0,c.useState)({name:null==w?void 0:w.toolName}),[I,N]=(0,c.useState)({id:p,name:null==w?void 0:w.mockSetName}),[T,z]=(0,c.useState)(""),[D,A]=(0,c.useState)({readOnly:!0,uninitialized:!0}),S=(0,c.useRef)(null),E=(0,c.useRef)(null),C=_.hideMenu?"full_page":"embed",O=(null==w?void 0:w.fromSource)?w.fromSource:"mock_set",[L,Z]=(0,c.useState)(0),P=e$.Z.useUserInfo(),F=(0,e0.$_)(m),B=(null==F?void 0:F.space_type)===e2.Sn.Personal,R=(0,d.useNavigate)(),U=(0,c.useMemo)(()=>({connectorID:tl.FQ,connectorUID:null==P?void 0:P.user_id_str,bizSpaceID:m}),[tl.FQ,P,m]),Q=(0,c.useMemo)(()=>({componentType:e4.re.CozeTool,componentID:u,parentComponentType:e4.re.CozePlugin,parentComponentID:g}),[u,g]);var Y=(t=(0,n._)(function*(){try{var{api_info:e=[]}=yield y.Js.GetPluginAPIs({plugin_id:g,api_ids:[u],preview_version_ts:x},{__disableErrorToast:!0});if(e.length>0){var t=e.length>0?e[0]:{};M(t)}}catch(e){W.kg.error({error:e,eventName:"get_tool_info_fail"})}}),function(){return t.apply(this,arguments)});var V=(i=(0,n._)(function*(){if(!!p)try{var e,t,i,o,r=yield y.xd.MGetMockSet({bizCtx:U,mockSubject:Q,ids:[p],pageLimit:1});(null===(e=r.mockSets)||void 0===e?void 0:e[0])&&N(r.mockSets[0]),r.schema&&z(r.schema),A({readOnly:(null==P?void 0:P.user_id_str)!==(null===(o=r.mockSets)||void 0===o?void 0:null===(i=o[0])||void 0===i?void 0:null===(t=i.creator)||void 0===t?void 0:t.ID),uninitialized:!1})}catch(e){W.kg.error({error:e,eventName:"get_mockset_info_fail"})}}),function(){return i.apply(this,arguments)}),G=()=>{var e;null===(e=S.current)||void 0===e||e.create()};var H=(o=(0,n._)(function*(){var e=(0,e6.dj)((null==w?void 0:w.bizCtx)||""),t={environment:(0,e5.zj)(),workspace_id:m,workspace_type:B?"personal_workspace":"team_workspace",tool_id:u,status:1,mock_set_id:p,where:(0,e6.G)(null==e?void 0:e.trafficScene)};try{yield y.xd.BindMockSet({mockSetID:p,bizCtx:e,mockSubject:(0,e6.dj)((null==w?void 0:w.bindSubjectInfo)||"")}),(0,e1.Gg)(e1.Kg.use_mockset_front,(0,l._)((0,a._)({},t),{status:0})),R(-1);var i=f.o.t("toolname_used_mockset_mocksetname",{toolName:(null==w?void 0:w.toolName)||"",mockSetName:I.name||""});i&&v.FN.success({content:i,showClose:!1})}catch(e){W.kg.error({error:e,eventName:"change_mockset_fail"}),(0,e1.Gg)(e1.Kg.use_mockset_front,(0,l._)((0,a._)({},t),{status:1,error:null==e?void 0:e.msg}))}}),function(){return o.apply(this,arguments)});return(0,c.useEffect)(()=>{V()},[]),(0,c.useEffect)(()=>{Y()},[g,u]),(0,s.jsxs)(v._n,{title:(0,b.Z$)(I.name||f.o.t("mockset")),children:["embed"===C?(0,s.jsx)(ts,{pluginId:g,apiInfo:k,mockSetInfo:I}):null,(0,s.jsxs)("div",{className:h()(tV["page-header"],"full_page"===C?tV["page-header_full"]:""),children:["full_page"===C?(0,s.jsx)(v.y3,{className:h()(tV["page-header-back"]),icon:(0,s.jsx)(j.s3j,{}),onClick:()=>{R(-1)},theme:"borderless"}):null,(0,s.jsx)("div",{className:h()(tV["page-header-intro"],"full_page"===C?tV["page-header-intro_center"]:tV["page-header-intro_top"]),children:(0,s.jsx)(ta,{isFullHeader:"full_page"===C,mockSetInfo:(0,a._)({mockSubject:Q},I),bizCtx:U,readOnly:D.readOnly,onUpdateMockSetInfo:e=>{e&&N(t=>(0,a._)({},t,e))}})}),(0,s.jsx)(v.T,{className:h()(tV["page-header-operations"]),spacing:12,children:(r=[],!D.readOnly&&0!==L&&r.push({label:f.o.t("add_mock_data"),handler:G}),("bot"===O||"workflow"===O)&&r.push({label:f.o.t("bot"===O?"use_in_bot":"use_in_workflow"),handler:H,disabled:0===L}),r.map((e,t)=>(0,s.jsx)(v.y3,{type:t===r.length-1?"primary":"tertiary",theme:t===r.length-1?"solid":void 0,onClick:e.handler,disabled:e.disabled,children:e.label},e.label)))})]}),(0,s.jsx)(v._n.Content,{className:h()(tV["layout-content"]),ref:E,children:(0,s.jsx)(tU,{mockSetID:p,toolSchema:T,perm:D,ref:S,bizCtx:U,onListUpdate:(e,t)=>{if(Z(e),t){var i;null===(i=E.current)||void 0===i||i.scrollTo({top:0,behavior:"smooth"})}}})})]})},tG=e=>{var t,{visible:i,mockSetInfo:o,onSuccess:r,onCancel:d,zIndex:u,needResetPopoverContainer:g}=e,{detail:{id:m},ctx:h}=o||{},[b,x]=(0,c.useState)(-1),_=(0,er.rY)(e=>e.space.space_type)===e2.Sn.Personal,{run:w}=(0,p.Z)((0,n._)(function*(){try{var{spaceID:e}=(0,e5.MX)((null==h?void 0:h.bizCtx)||{},(null==h?void 0:h.mockSubjectInfo)||{}),{usersUsageCount:t}=yield y.xd.GetMockSetUsageInfo({mockSetID:m,spaceID:e});x(Number(null!=t?t:0))}catch(e){W.kg.error({error:e,eventName:"fetch_mockset_ref_fail"}),x(0)}}),{manual:!0});(0,c.useEffect)(()=>{w()},[o]);var k=b>0?f.o.t("people_using_mockset_delete",{num:b}):f.o.t("delete_the_mockset");var j=(t=(0,n._)(function*(){var{toolID:e,spaceID:t}=(0,e5.MX)((null==h?void 0:h.bizCtx)||{},(null==h?void 0:h.mockSubjectInfo)||{}),i={environment:(0,e5.zj)(),workspace_id:t||"",workspace_type:_?"personal_workspace":"team_workspace",tool_id:e||"",mock_set_id:String(m)||"",status:1};try{m&&(yield y.xd.DeleteMockSet({id:m,bizCtx:null==h?void 0:h.bizCtx})),null==r||r(),(0,e1.Gg)(e1.Kg.del_mockset_front,(0,l._)((0,a._)({},i),{status:0}))}catch(e){(0,e1.Gg)(e1.Kg.del_mockset_front,(0,l._)((0,a._)({},i),{status:1,error:null==e?void 0:e.message}))}}),function(){return t.apply(this,arguments)});return(0,s.jsx)(v.M5,{type:"info",zIndex:u,icon:(0,s.jsx)(tc.Z,{size:"extra-large",className:"inline-flex text-[#FF2710]"}),title:k,visible:b>=0&&i,onCancel:d,onOk:j,getPopupContainer:g?()=>document.body:void 0,okType:"danger",children:f.o.t("operation_cannot_be_reversed")})},tH=i("751238"),tq={};tq.styleTagTransform=L(),tq.setAttributes=S(),tq.insert=D().bind(null,"head"),tq.domAPI=T(),tq.insertStyleElement=C(),I()(tH.Z,tq);var tK=tH.Z&&tH.Z.locals?tH.Z.locals:void 0,tJ=e=>{var t,i,o,r,d,g,{toolID:m}=e,x=(0,k.av)(),_=e$.Z.useUserInfo(),[w,M]=(0,c.useState)({pageSize:10,pageNo:1}),{pluginInfo:I,initPlugin:N,pluginID:T,spaceID:z,version:D}=(0,k.RQ)((0,u.N)(e=>({pluginInfo:e.pluginInfo,initPlugin:e.initPlugin,pluginID:e.pluginId,spaceID:e.spaceID,version:e.version}))),A=(0,e0.$_)(z),S=(null==A?void 0:A.space_type)===e2.Sn.Personal,[E,C]=(0,c.useState)(),[O,L]=(0,c.useState)(!1),[Z,P]=(0,c.useState)(),F=(0,c.useRef)(),B=(0,c.useRef)(null),[R,U]=(0,c.useState)(!1),Q={bizCtx:{trafficScene:e4.zE.Undefined,connectorID:tl.FQ,bizSpaceID:z,connectorUID:null==_?void 0:_.user_id_str},mockSubject:{componentType:e4.re.CozeTool,componentID:m,parentComponentType:e4.re.CozePlugin,parentComponentID:T}};var Y=[...(t=S,i=[{title:f.o.t("mockset_name"),dataIndex:"name",className:"min-w-[200px]",render:(e,t)=>(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(v.ZT.Text,{strong:!0,ellipsis:{showTooltip:{opts:{style:{wordBreak:"break-word"}}}},className:"min-w-[0px]",children:t.name||"-"}),(null==t?void 0:t.schemaIncompatible)?(0,s.jsx)(v.fS,{className:"ml-[10px]",shape:"circle",color:"orange",children:f.o.t("update_required")}):null]}),t.description?(0,s.jsx)(ti,{children:t.description}):"-"]})},{title:f.o.t("mock_data_counts"),dataIndex:"mockRuleQuantity",width:116,render:(e,t)=>void 0===t.mockRuleQuantity?"-":(0,s.jsx)(v.ZT.Text,{ellipsis:{showTooltip:!0},className:"text-[#1C1D2359]",children:(0,b.uf)(t.mockRuleQuantity)})},{title:f.o.t("edit_time"),dataIndex:"updateTimeInSec",width:150,sorter:!0,render:(e,t)=>t.updateTimeInSec?(0,s.jsx)("div",{children:(0,b.p6)(Number(t.updateTimeInSec),"YYYY-MM-DD HH:mm")}):"-"}],o=[{title:f.o.t("creators"),dataIndex:"creatorID",width:132,render:(e,t)=>{var i,o,r;return(null===(i=t.creator)||void 0===i?void 0:i.ID)?(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(v.qE,{src:null===(o=t.creator)||void 0===o?void 0:o.avatarUrl,size:"extra-extra-small",className:"mr-[8px]",alt:"User"}),(0,s.jsx)(v.ZT.Text,{ellipsis:{showTooltip:!0},className:"flex-1 text-[#1C1D2359]",children:null===(r=t.creator)||void 0===r?void 0:r.name})]}):"-"}}],t?i:[...i,...o]),{title:f.o.t("actions"),dataIndex:"action",width:108,render:(e,t)=>{var i,o=(null==_?void 0:_.user_id_str)===(null==t?void 0:null===(i=t.creator)||void 0===i?void 0:i.ID);return(0,s.jsx)("div",{onClick:e=>{e.stopPropagation()},children:(0,s.jsxs)(v.T,{spacing:16,children:[(0,s.jsx)(v.u,{content:f.o.t("Edit"),children:(0,s.jsx)(v._3,{disabled:!o||R,icon:(0,s.jsx)(j.fkE,{}),onClick:()=>{G(t)},className:!o||R?tK["icon-disabled"]:tK["icon-default"]})}),(0,s.jsx)(v.u,{content:f.o.t("Delete"),children:(0,s.jsx)(v._3,{icon:(0,s.jsx)(j.WDf,{}),className:h()(tK["icon-delete"],!o||R?tK["icon-disabled"]:tK["icon-default"]),disabled:!o||R,onClick:()=>{P(t)}})})]})})}}],V=()=>{L(!0)},G=(e,t)=>{var i,o,{id:r}=e||{};r&&(null===(o=x.mocksetDetail)||void 0===o||o.call(x,m,String(r),{},{state:{spaceId:z,pluginId:T,pluginName:null==I?void 0:null===(i=I.meta_info)||void 0===i?void 0:i.name,toolId:m,toolName:null==E?void 0:E.name,mockSetId:String(r),mockSetName:null==e?void 0:e.name,generationMode:null==t?void 0:t.generateMode}}))};var H=(r=(0,n._)(function*(){try{var{api_info:e=[]}=yield y.Js.GetPluginAPIs({plugin_id:T,api_ids:[m],preview_version_ts:D});if(e.length>0){var t=e.length>0?e[0]:{};C(t)}}catch(e){W.kg.error({error:e,eventName:"fetch_tool_info_fail"}),C({})}}),function(){return r.apply(this,arguments)}),{data:q,loading:K}=(0,p.Z)((0,n._)(function*(){if(!Q.mockSubject.componentID||!Q.mockSubject.parentComponentID)return{total:0,list:[]};try{var e,t,{mockSets:i,pageToken:o,count:r}=yield y.xd.MGetMockSet({bizCtx:Q.bizCtx,mockSubject:Q.mockSubject,pageLimit:w.pageSize,pageToken:w.pageToken,desc:null===(t=null===(e=w.order)||void 0===e?void 0:e.desc)||void 0===t||t,orderBy:e4.d$.UpdateTime});return F.current=o,{total:r,list:i||[]}}catch(e){var{code:n}=e||{};return("600303107"===n||"600303108"===n)&&U(!0),{total:0,list:[]}}}),{refreshDeps:[w],onError:e=>{W.kg.error({error:e,eventName:"fetch_mockset_list_fail"})}}),J=()=>{var e;null===(e=B.current)||void 0===e||e.reset(),M(e=>(0,l._)((0,a._)({},e),{pageSize:10,pageToken:void 0,pageNo:1}))};return(0,c.useEffect)(()=>{N(),H()},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:tK.page,children:(0,s.jsxs)(v._n,{title:(0,b.Z$)(f.o.t("manage_mockset")),children:[(0,s.jsx)(v._n.Header,{className:tK["layout-header"],breadcrumb:(0,s.jsx)(et.g3,{showTooltip:{width:"300px"},pluginInfo:null==I?void 0:I.meta_info,pluginToolInfo:E,compact:!1,mockSetInfo:{}})}),(0,s.jsxs)(v._n.Content,{className:tK["layout-content"],children:[(0,s.jsxs)("div",{className:tK["header-info"],children:[(0,s.jsx)(v.ZT.Text,{className:tK["layout-header-title"],children:(null==I?void 0:null===(d=I.meta_info)||void 0===d?void 0:d.name)?f.o.t("mockset_of_toolname",{toolName:null==I?void 0:null===(g=I.meta_info)||void 0===g?void 0:g.name}):f.o.t("mockset")}),(0,s.jsx)(v.u,{style:{display:R?"block":"none"},content:f.o.t("unreleased_plugins_tool_cannot_create_mockset"),children:(0,s.jsx)(v.y3,{onClick:V,theme:"solid",disabled:R,children:f.o.t("create_mockset")})})]}),(0,s.jsx)(v.$,{ref:B,offsetY:207,tableProps:{loading:K,dataSource:(null==q?void 0:q.list)||[],columns:Y,onRow:e=>({onClick:()=>{!R&&G(e)}}),onChange:e=>{var t,i;(null===(t=e.sorter)||void 0===t?void 0:t.sortOrder)&&(null===(i=B.current)||void 0===i||i.reset(),M(t=>{var i;return(0,l._)((0,a._)({},t),{pageSize:10,pageNo:1,pageToken:void 0,order:{desc:(null===(i=e.sorter)||void 0===i?void 0:i.sortOrder)==="descend"}})}))}},empty:(0,s.jsx)(v.YZ,{empty:{title:f.o.t("no_mockset_yet"),description:R?void 0:f.o.t("click_button_to_create_mockset"),btnText:R?void 0:f.o.t("create_mockset"),btnOnClick:R?void 0:V}}),enableLoad:!0,total:Number((null==q?void 0:q.total)||0),onLoad:()=>{M(e=>{var t;return(0,l._)((0,a._)({},e),{pageToken:F.current,pageNo:(null!==(t=e.pageNo)&&void 0!==t?t:0)+1})})}})]})]})}),O?(0,s.jsx)(e8.a,{visible:O,initialInfo:{bizCtx:Q.bizCtx,bindSubjectInfo:Q.mockSubject,name:null==E?void 0:E.name},onSuccess:G,onCancel:()=>L(!1)}):null,Z?(0,s.jsx)(tG,{visible:!!Z,mockSetInfo:{detail:Z,ctx:{bizCtx:Q.bizCtx,mockSubjectInfo:Q.mockSubject}},onSuccess:()=>{P(void 0),J()},onCancel:()=>P(void 0)}):null]})},tX=i("962289"),t$=i("671261"),t0=i("62851"),t1=i("944970"),t2=i("437134"),t4=e=>(null==e?void 0:e.assist_type)?[eF.rN.DEFAULT,(0,eF.Eo)(e.assist_type)]:[e.type],{Text:t5}=v.ZT,t3=e=>{var t,{check:i=0,useBlockWrap:o=!1,record:r,disabled:n,selectCallback:a,enableFileType:l=!1}=e,[d,u]=(0,c.useState)(t4(r)),[p,g]=(0,c.useState)(0),m=r.name===eF.sp,b=(null!==(t=r.deep)&&void 0!==t?t:0)>1&&r.name!==eF.sp;(0,c.useEffect)(()=>{if(0!==i)x(d)},[i]);var x=e=>{g((null==e?void 0:e[0])?0:1)},_=(0,eF.YA)(m,l&&!b);return(0,s.jsxs)("span",{style:o?{display:"inline-block",width:"100%"}:{},children:[(0,s.jsx)(v.oL,{treeData:_,validateStatus:p?"error":"default",value:d,disabled:n,onChange:e=>{e[1]?a([e[0],(0,eF.RE)(e[1])]):a([e[0]]),u(e),x(e)},displayRender:(e,t)=>{var i=e[0];return d[1]&&(i=d[1]===eF.rN.DEFAULT?(0,eF.Zo)(eF.rN.DEFAULT,m):e[1]),(0,s.jsx)(t5,{ellipsis:{showTooltip:!0},children:i})},dropdownClassName:eZ.Z.cascaderDropdown,style:{width:"100%"}}),(0,s.jsx)("br",{}),0!==p&&(0,s.jsx)("div",{style:{position:"relative"},children:(0,s.jsxs)("span",{className:h()(eZ.Z["form-check-tip"],"errorClassTag",eZ.Z.w110),children:[(0,s.jsx)(tc.Z,{className:eZ.Z["plugin-icon-error"]}),(0,s.jsx)(t5,{component:"span",ellipsis:{showTooltip:{type:"tooltip",opts:{style:{maxWidth:"100%"}}}},className:eZ.Z["plugin-tooltip-error"],children:1===p&&(0,s.jsx)("span",{children:f.o.t("plugin_Parameter_type")})})]})})]})},t6=e=>{var{record:t,disabled:i,data:o,setData:r,checkFlag:n,isResponse:d,updateNodeWithData:c,addChildNode:u,enableFileType:p=!1}=e,g=e=>{var t=(0,H.Z)(o);(0,ea.Rm)(t,e[eF.Fc])&&r(t)};return i?(0,s.jsx)(s.Fragment,{children:(0,eF.lR)(t,t.name===eF.sp)}):(0,s.jsx)(t3,{check:n,record:t,enableFileType:p,selectCallback:e=>{var[i,o]=e,r=i;i===eF.rN.DEFAULT&&(r=_.rH.String),!d&&t.global_default&&c({record:t,key:["global_default","global_disable"],value:["",!1],updateData:!0});var n={record:t,key:["type","assist_type"],value:[r,null!=o?o:null]},s=null==t?void 0:t.type;r===_.rH.Array?(c((0,l._)((0,a._)({},n),{updateData:!0})),u({record:t,isArray:!0,type:r,recordType:s})):r===_.rH.Object?(c((0,l._)((0,a._)({},n),{updateData:!0})),u({record:t,isArray:!1,type:r,recordType:s})):(null==t?void 0:t.type)===_.rH.Array||(null==t?void 0:t.type)===_.rH.Object?(c(n),g(t)):c((0,l._)((0,a._)({},n),{updateData:!0}))}})},t8=e=>{var{data:t,checkFlag:i,isResponse:o=!1,disabled:r,setCheckFlag:n,setData:d,showSecurityCheckFailedMsg:c,setShowSecurityCheckFailedMsg:u,enableFileType:p=!1}=e,g=e=>{var{record:i,isArray:o=!1,type:r,recordType:s}=e,c=(0,H.Z)(t),u=(e,t)=>{var i=e[t[0]];i&&i.type===_.rH.Array?(i.global_default="",i.global_disable=!1):i&&i.sub_parameters&&u(i.sub_parameters,t.slice(1))};n(0);var p={};(0,ea.bd)({data:t,callback:(e,t)=>{e[eF.Fc]===i[eF.Fc]&&(p=(0,l._)((0,a._)({},e),{path:t}),u(c,t))}});var g=((null==p?void 0:p.path)||[]).map(e=>[e,eF.Il]).flat();if(s){var m=(0,H.Z)(g);m.pop(),m.push("type"),(0,tX.Z)(c,m)!==s&&(0,ea.Rm)(c,i[eF.Fc]),(0,t$.Z)(c,m,r)}Array.isArray((0,tX.Z)(c,g))?(0,t$.Z)(c,g,[...(0,tX.Z)(c,g),(0,ea.ub)({isArray:o,iscChildren:!0,deep:i.deep+1})]):(0,t$.Z)(c,g,[(0,ea.ub)({isArray:o,iscChildren:!0,deep:i.deep+1})]),d(c)},m=e=>{var i=(0,H.Z)(t);(0,ea.IK)(i,e[eF.Fc])&&d(i)},h=e=>{var{record:i,key:o,value:r,updateData:n=!1,inherit:a=!1}=e;Array.isArray(o)?o.forEach((e,o)=>{(0,ea.jd)({data:t,targetKey:i[eF.Fc],field:e,value:r[o]})}):(0,ea.jd)({data:t,targetKey:i[eF.Fc],field:o,value:r,inherit:a}),n&&d((0,H.Z)(t))},x=[{title:()=>(0,s.jsx)(t1.vw,{name:f.o.t("Create_newtool_s3_table_name"),required:!0,toolTipText:o?f.o.t("Create_newtool_s3_table_name_tooltip"):f.o.t("Create_newtool_s2_table_name_tooltip")}),key:"name",className:eZ.Z["no-wrap-min-width"],render:e=>r?(0,s.jsx)(v.ZT.Text,{component:"span",ellipsis:{showTooltip:{type:"tooltip",opts:{style:{maxWidth:"100%"}}}},style:{maxWidth:"calc(100% - ".concat(20*(e.deep||1),"px)")},children:e.name}):(0,s.jsx)(t1.O6,{check:i,val:null==e?void 0:e.name,data:t,placeholder:f.o.t("Create_newtool_s2_table_name_empty"),useBlockWrap:!0,checkSame:!0,targetKey:e[eF.Fc],dynamicWidth:!0,deep:e.deep,callback:t=>{h({record:e,key:"name",value:t,updateData:!0}),c&&(null==u||u(!1))}})},{title:()=>(0,s.jsx)(t1.vw,{name:f.o.t("Create_newtool_s2_table_des"),required:!o,toolTipText:o?f.o.t("Create_newtool_s3_table_des_tooltip"):f.o.t("Create_newtool_s2_table_des_tooltip")}),key:"desc",render:e=>r?(0,s.jsx)(v.ZT.Text,{component:"div",ellipsis:{showTooltip:{opts:{style:{wordBreak:"break-word"}}}},style:{maxWidth:"100%"},children:e.desc}):(0,s.jsx)(t1.O6,{check:i,width:"100%",placeholder:f.o.t("plugin_Parameter_des"),val:null==e?void 0:e.desc,useCheck:!1,checkAscii:!0,filterSpace:!1,max:300,isRequired:!o,callback:t=>{h({record:e,key:"desc",value:t}),c&&(null==u||u(!1))}})},{title:()=>(0,s.jsx)(t1.vw,{name:f.o.t("Create_newtool_s3_table_type"),required:!0}),key:"type",width:120,render:e=>(0,s.jsx)(t6,{record:e,disabled:r,data:t,setData:d,checkFlag:i,updateNodeWithData:h,addChildNode:g,enableFileType:p})},{title:()=>(0,s.jsx)(t1.vw,{name:f.o.t("Create_newtool_s2_table_method"),required:!0}),key:"location",width:120,render:e=>{if(void 0===e.location)return(0,s.jsx)(s.Fragment,{});var t=b.gS.array2Map(eF.pq,"value","label");return r?t[e.location]:(0,s.jsx)(v.Cj,{theme:"light",defaultValue:e.location,onChange:t=>{h({record:e,key:"location",value:t,updateData:!0,inherit:!0})},style:{width:"100%"},children:eF.pq.map(t=>(0,s.jsx)(v.Cj.Option,{value:t.value,children:t.label},(null==e?void 0:e.id)+t.label))})}},{title:f.o.t("Create_newtool_s2_table_required"),width:80,key:"default",render:e=>(0,s.jsx)(v.XZ,{style:{position:"relative",left:18},disabled:r,defaultChecked:e.is_required,onChange:t=>{t.target.checked&&!e.global_default&&h({record:e,key:"global_disable",value:!1,updateData:!0,inherit:!0}),h({record:e,key:"is_required",value:t.target.checked,updateData:!0,inherit:!0})}})},{title:f.o.t("plugin_api_list_table_action"),key:"addChild",width:107,render:e=>(0,s.jsxs)(v.T,{children:[e.type===_.rH.Object&&(0,s.jsx)(v.u,{content:f.o.t("plugin_form_add_child_tooltip"),children:(0,s.jsx)(v._3,{disabled:r,style:{marginLeft:"8px"},onClick:()=>g({record:e}),icon:(0,s.jsx)(j.h16,{}),type:"secondary"})}),(0,ea.Hn)(t,e[eF.Fc])&&(0,s.jsx)(v.u,{content:f.o.t("Delete"),children:(0,s.jsx)(v._3,{disabled:r,style:{marginLeft:"8px"},onClick:()=>m(e),icon:(0,s.jsx)(j.WDf,{}),type:"secondary"})})]})}];if(!o&&x.splice(-1,0,{title:()=>(0,s.jsx)(t1.vw,{name:f.o.t("plugin_edit_tool_default_value_config_item_default_value")}),key:"global_default",width:120,render:e=>(0,s.jsx)(t2.Z,{record:e,data:t,setData:d})},{title:(0,s.jsx)(t1.vw,{name:f.o.t("plugin_edit_tool_default_value_config_item_enable"),toolTipText:f.o.t("plugin_edit_tool_default_value_config_item_enable_tip")}),key:"global_disable",width:78,render:e=>{if(void 0===e.global_default)return(0,s.jsx)(s.Fragment,{});var t=(0,s.jsx)(v.rs,{style:{position:"relative",top:3,left:12},defaultChecked:!e.global_disable,disabled:e.is_required&&!e.global_default,onChange:t=>{h({record:e,key:"global_disable",value:!t,updateData:!0,inherit:!0})}});return e.is_required&&!e.global_default?(0,s.jsx)(v.u,{content:f.o.t("plugin_edit_tool_default_value_config_item_enable_disable_tip"),children:t}):t}}),o){var y=x.findIndex(e=>"default"===e.key);x.splice(y,1),x.splice(-1,0,{title:(0,s.jsx)(t1.vw,{name:f.o.t("plugin_edit_tool_default_value_config_item_enable"),toolTipText:f.o.t("plugin_edit_tool_output_param_enable_tip")}),key:"global_disable",width:78,render:e=>void 0===e.global_default?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(v.rs,{style:{position:"relative",top:3,left:12},defaultChecked:!e.global_disable,onChange:t=>{h({record:e,key:"global_disable",value:!t,updateData:!0,inherit:!0})}})})}return(0,t0.Z)(()=>x,e=>r?e.slice(0,o?-3:-4):e,e=>o?e.filter(e=>"location"!==e.key):e)()},t9=i("851645"),t7=e=>{var t,i,{apiInfo:o,pluginId:r,requestParams:a,responseParams:l,apiId:d,disabled:u,showSecurityCheckFailedMsg:p,setShowSecurityCheckFailedMsg:g,editVersion:m,pluginType:b,functionName:x,spaceID:w,onSuccess:k,renderEnhancedComponent:M}=e,[I,N]=(0,c.useState)(l||[]),[T,z]=(0,c.useState)(!1),[D,A]=(0,c.useState)(0),[S,E]=(0,c.useState)(!1),[C,O]=(0,c.useState)(!1),L=(0,ey.Z)(function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=e;t&&(i=(0,ea.w)(e,"global_default")),N(i)});(0,c.useEffect)(()=>{if(!(Array.isArray(l)&&0===l.length&&Array.isArray(I))||0!==I.length)L(l||[])},[u,l]);var Z=t8({data:I,flag:T,checkFlag:D,setCheckFlag:A,setFlag:z,setData:L,isResponse:!0,disabled:u,showSecurityCheckFailedMsg:p,setShowSecurityCheckFailedMsg:g,enableFileType:!0});var P=(t=(0,n._)(function*(){if(A(D+1),yield(0,ea._v)(100),!d||document.getElementsByClassName("errorClassTag").length>0)return(0,ea.$S)(".errorClassTag"),v.FN.error({content:(0,eL.u)(f.o.t("tool_new_S2_feedback_failed")),duration:3,theme:"light",showClose:!1}),!1;if(!d)return!1;try{var e={plugin_id:r,api_id:d,response_params:(0,ea.Vv)(I,!1),edit_version:m,function_name:x},t=yield y.Js.UpdateAPI(e,{__disableErrorToast:!0});return null==k||k(t),!0}catch(e){var{code:i,msg:o}=e;return Number(i)===el.B.SAFE_CHECK?null==g||g(!0):v.FN.error({content:(0,eL.u)(o)}),!1}}),function(){return t.apply(this,arguments)});var F=(i=(0,n._)(function*(){try{O(!0);var e,t=yield y.Js.DebugAPI({plugin_id:r,api_id:d,parameters:JSON.stringify({}),operation:2});(null==t?void 0:t.success)&&(null==t?void 0:t.response_params)?(L(t.response_params),v.FN.success({content:f.o.t("plugin_s3_success"),duration:3,theme:"light",showClose:!1})):v.FN.error({content:(0,eL.u)(null!==(e=null==t?void 0:t.reason)&&void 0!==e?e:f.o.t("plugin_s3_failed")),duration:3,theme:"light",showClose:!1})}catch(e){v.FN.error({content:(0,eL.u)(f.o.t("plugin_s3_failed")),duration:3,theme:"light",showClose:!1}),W.kg.persist.error({message:"Custom Error: debug api failed",error:e})}O(!1)}),function(){return i.apply(this,arguments)}),B=(0,ea.lf)(I);return{submitResponseParams:P,responseParamsNode:(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:eZ.Z["table-wrapper"],style:{minWidth:1008,overflowY:"auto"},children:[(0,s.jsx)(v.iA,{style:{minWidth:"calc(1008px + ".concat((B-6)*20,"px)")},pagination:!1,columns:Z,dataSource:I,rowKey:eF.Fc,childrenRecordName:eF.Il,expandAllRows:!0,className:h()(u?eZ.Z["request-params"]:eZ.Z["request-params-edit"],eZ.Z["table-style-list"]),empty:(0,s.jsx)("div",{})}),!u&&(0,s.jsx)("div",{className:eZ.Z["add-params-btn-wrap"],style:Array.isArray(I)&&0===I.length?{borderTop:0}:{},children:(0,s.jsx)(v.y3,{disabled:u,icon:(0,s.jsx)(j.N_R,{}),style:{marginTop:12},type:"tertiary",onClick:()=>{A(0);var e=(0,H.Z)(I);e.push((0,ea.ub)()),L(e),z(!T),setTimeout(()=>{(0,ea.Og)(document.getElementsByClassName("semi-table-body")[0])},100)},children:f.o.t("Create_newtool_s3_table_new")})})]}),(0,s.jsx)(v.M5,{visible:S,title:f.o.t("plugin_s3_Parse"),className:eZ.Z["input-modal"],keepDOM:!1,footer:(0,s.jsx)(s.Fragment,{}),width:800,maskClosable:!1,onCancel:()=>E(!1),children:(0,s.jsx)(t9.y,{disabled:u,pluginId:r,apiId:d,requestParams:a,operation:2,btnText:f.o.t("Create_newtool_s3_button_auto"),callback:e=>{var{response_params:t,status:i,failReason:o}=e;i===el.Q.PASS&&t?((0,ea.eO)(t),L(t),v.FN.success({content:f.o.t("plugin_s3_success"),duration:3,theme:"light",showClose:!1})):v.FN.error({content:(0,eL.u)(null!=o?o:f.o.t("plugin_s3_failed")),duration:3,theme:"light",showClose:!1}),E(!1)}})})]}),extra:(0,s.jsxs)(s.Fragment,{children:[null==M?void 0:M({disabled:!(null==I?void 0:I.length)||u,src:"response",originParams:I,apiInfo:o,onSetParams:e=>L(e),spaceID:w,pluginId:r}),(0,s.jsx)(G.zx,{disabled:u||b===_.zV.LOCAL,className:"!mr-2",color:"primary",loading:C,onClick:e=>{e.stopPropagation(),Array.isArray(a)&&a.length>0?E(!0):F()},children:C?f.o.t("plugin_s3_Parsing"):f.o.t("Create_newtool_s3_button_auto")})]})}},ie=e=>{var t,{apiInfo:i,plugin_id:o,tool_id:r,editVersion:d,pluginInfo:u,canEdit:p,handleInit:g,wrapWithCheckLock:m,debugApiInfo:h,setDebugApiInfo:b,spaceID:v,onSuccess:x,renderParamsComponent:y}=e,[w,k]=(0,c.useState)(!1),[M,I]=(0,c.useState)(!0),{responseParamsNode:N,submitResponseParams:T,extra:z}=t7({apiInfo:i,pluginId:o||"",responseParams:null==i?void 0:i.response_params,requestParams:null==i?void 0:i.request_params,apiId:r||"",disabled:M,showSecurityCheckFailedMsg:w,setShowSecurityCheckFailedMsg:k,editVersion:d,pluginType:null==u?void 0:u.plugin_type,functionName:(null==u?void 0:u.plugin_type)===_.zV.LOCAL?null==i?void 0:i.function_name:void 0,spaceID:v,onSuccess:x,renderEnhancedComponent:y});return(0,c.useEffect)(()=>{!M&&b((0,l._)((0,a._)({},h),{debug_example:{},debug_example_status:_.ji.Disable}))},[M]),{isResponseParamsDisabled:M,header:f.o.t("Create_newtool_s3_Outputparameters"),itemKey:"response",extra:(0,s.jsxs)(s.Fragment,{children:[w?(0,s.jsx)(eY,{step:eF.TS}):null,!M&&p?(0,s.jsx)(eI,{}):null,M?null:z,M?null:(0,s.jsx)(G.zx,{onClick:e=>{e.stopPropagation(),I(!0)},color:"primary",className:"mr-2",children:f.o.t("project_plugin_setup_metadata_cancel")}),p&&!M?(0,s.jsx)(G.zx,{onClick:(t=(0,n._)(function*(e){e.stopPropagation(),(yield T())&&(g(),I(!0))}),function(e){return t.apply(this,arguments)}),className:"mr-2",children:f.o.t("project_plugin_setup_metadata_save")}):null,p&&M?(0,s.jsx)(G.zx,{icon:(0,s.jsx)(j.yl5,{className:"!pr-0"}),color:"primary",className:"!bg-transparent !coz-fg-secondary",onClick:e=>{var t,i=document.querySelector(".plugin-tool-detail-response .semi-collapsible-wrapper");0!==parseInt(null==i?void 0:null===(t=i.style)||void 0===t?void 0:t.height)&&e.stopPropagation(),m(()=>{I(!1)})()},children:f.o.t("project_plugin_setup_metadata_edit")}):null]}),content:N,classNameWrap:"plugin-tool-detail-response"}},it=e=>{var t,{apiInfo:i,pluginId:o,apiId:r,requestParams:a,disabled:l,showSecurityCheckFailedMsg:d,setShowSecurityCheckFailedMsg:u,editVersion:p,functionName:g,spaceID:m,onSuccess:b,renderEnhancedComponent:x}=e,[_,w]=(0,c.useState)(a||[]),k=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=e;t&&(i=(0,ea.w)(e,"global_default")),w(i)},[M,I]=(0,c.useState)(!1),[N,T]=(0,c.useState)(0),z=t8({data:_,flag:M,checkFlag:N,setCheckFlag:T,setFlag:I,setData:k,disabled:l,showSecurityCheckFailedMsg:d,setShowSecurityCheckFailedMsg:u,enableFileType:!0});(0,c.useEffect)(()=>{if(!(Array.isArray(a)&&0===a.length&&Array.isArray(_))||0!==_.length)k(a||[])},[l,a]);var D=(t=(0,n._)(function*(){T(N+1);if(yield(0,ea._v)(100),!r||document.getElementsByClassName("errorClassTag").length>0)return(0,ea.$S)(".errorClassTag"),v.FN.error({content:f.o.t("tool_new_S2_feedback_failed"),duration:3,theme:"light",showClose:!1}),!1;try{var e=yield y.Js.UpdateAPI({plugin_id:o,api_id:r,request_params:_,edit_version:p,function_name:g},{__disableErrorToast:!0});return null==b||b(e),!0}catch(e){var{code:t,msg:i}=e;return Number(t)===el.B.SAFE_CHECK?null==u||u(!0):v.FN.error({content:(0,eL.u)(i)}),!1}}),function(){return t.apply(this,arguments)}),A=(0,ea.lf)(_);return{submitRequestParams:D,requestParamsNode:(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:eZ.Z["table-wrapper"],style:{minWidth:1008,overflowY:"auto"},children:[(0,s.jsx)(v.iA,{style:{minWidth:"calc(1008px + ".concat((A-4)*(A<13?19:40),"px)")},pagination:!1,columns:z,dataSource:_,rowKey:eF.Fc,childrenRecordName:eF.Il,expandAllRows:!0,className:h()(l?eZ.Z["request-params"]:eZ.Z["request-params-edit"],eZ.Z["table-style-list"]),empty:(0,s.jsx)("div",{})}),!l&&(0,s.jsx)("div",{style:Array.isArray(_)&&0===_.length?{borderTop:0}:{},className:eZ.Z["add-params-btn-wrap"],children:(0,s.jsx)(v.y3,{disabled:l,icon:(0,s.jsx)(j.N_R,{}),style:{marginTop:12},type:"tertiary",onClick:()=>{T(0);var e=(0,H.Z)(_);e.push((0,ea.ub)()),k(e),setTimeout(()=>{(0,ea.Og)(document.getElementsByClassName("semi-table-body")[0])},100)},children:f.o.t("Create_newtool_s3_table_new")})})]})}),nlTool:null==x?void 0:x({disabled:!(null==_?void 0:_.length)||l,src:"request",originParams:_,apiInfo:i,onSetParams:e=>w(e),spaceID:m,pluginId:o})}},ii=e=>{var t,{apiInfo:i,plugin_id:o,tool_id:r,pluginInfo:a,canEdit:l,handleInit:d,wrapWithCheckLock:u,editVersion:p,spaceID:g,onSuccess:m,renderParamsComponent:h}=e,[b,v]=(0,c.useState)(!1),[x,y]=(0,c.useState)(!0),{requestParamsNode:w,submitRequestParams:k,nlTool:M}=it({apiInfo:i,pluginId:o||"",requestParams:null==i?void 0:i.request_params,apiId:r,disabled:x,showSecurityCheckFailedMsg:b,setShowSecurityCheckFailedMsg:v,editVersion:p,functionName:(null==a?void 0:a.plugin_type)===_.zV.LOCAL?null==i?void 0:i.function_name:void 0,spaceID:g,onSuccess:m,renderEnhancedComponent:h});return{isRequestParamsDisabled:x,itemKey:"request",header:f.o.t("Create_newtool_s2"),extra:(0,s.jsxs)(s.Fragment,{children:[b?(0,s.jsx)(eY,{step:eF.TS}):null,x?null:M,x?null:(0,s.jsx)(G.zx,{onClick:e=>{e.stopPropagation(),y(!0)},color:"primary",className:"mr-2",children:f.o.t("project_plugin_setup_metadata_cancel")}),l&&!x?(0,s.jsx)(G.zx,{onClick:(t=(0,n._)(function*(e){e.stopPropagation(),(yield k())&&(d(),y(!0))}),function(e){return t.apply(this,arguments)}),className:"mr-2",children:f.o.t("project_plugin_setup_metadata_save")}):null,l&&x?(0,s.jsx)(G.zx,{icon:(0,s.jsx)(j.yl5,{className:"!pr-0"}),color:"primary",className:"!bg-transparent !coz-fg-secondary",onClick:e=>{var t,i=document.querySelector(".plugin-tool-detail-request .semi-collapsible-wrapper");0!==parseInt(null==i?void 0:null===(t=i.style)||void 0===t?void 0:t.height)&&e.stopPropagation(),u(()=>{y(!1)})()},children:f.o.t("project_plugin_setup_metadata_edit")}):null]}),content:w,classNameWrap:"plugin-tool-detail-request"}},io=e=>{var t,{space_id:i,plugin_id:o,tool_id:r,apiInfo:a,canEdit:l,handleInit:d,wrapWithCheckLock:u,editVersion:p,renderDescComponent:g}=e,[m,h]=(0,c.useState)(!1),[b,v]=(0,c.useState)(!0),{baseInfoNode:x,submitBaseInfo:_}=eP({pluginId:o||"",apiId:r,baseInfo:a,showModal:!1,disabled:b,showSecurityCheckFailedMsg:m,setShowSecurityCheckFailedMsg:h,editVersion:p,space_id:i,renderEnhancedComponent:g});return{isBaseInfoDisabled:b,header:f.o.t("Create_newtool_s1_title"),itemKey:"baseInfo",extra:(0,s.jsxs)(s.Fragment,{children:[m?(0,s.jsx)(eY,{step:eF.dT}):null,!b&&(0,s.jsx)(G.zx,{color:"primary",className:"mr-2",onClick:e=>{e.stopPropagation(),v(!0)},children:f.o.t("project_plugin_setup_metadata_cancel")}),l&&!b?(0,s.jsx)(G.zx,{onClick:(t=(0,n._)(function*(e){e.stopPropagation(),(yield _())&&d(),v(!0)}),function(e){return t.apply(this,arguments)}),className:"mr-2",children:f.o.t("project_plugin_setup_metadata_save")}):null,l&&b?(0,s.jsx)(G.zx,{icon:(0,s.jsx)(j.yl5,{className:"!pr-0"}),color:"primary",className:"!bg-transparent !coz-fg-secondary",onClick:e=>{var t,i=document.querySelector(".plugin-tool-detail-baseInfo .semi-collapsible-wrapper");0!==parseInt(null==i?void 0:null===(t=i.style)||void 0===t?void 0:t.height)&&e.stopPropagation(),u(()=>{v(!1)})()},children:f.o.t("project_plugin_setup_metadata_edit")}):null]}),content:x,classNameWrap:"plugin-tool-detail-baseInfo"}},ir=i("625196"),{Option:ia}=v.N5,il=e=>{var t,i,{pluginId:o,pluginMeta:r,apiId:a="",baseInfo:l={},showModal:d,disabled:u,showSecurityCheckFailedMsg:p,setShowSecurityCheckFailedMsg:g,editVersion:m,pluginType:h,onSuccess:b}=e,{url:x}=r,w=(0,c.useRef)(null);(0,c.useEffect)(()=>{var e,t;null===(t=w.current)||void 0===t||t.formApi.setValues({path:l.path,method:l.method||_.fM.GET,function_name:l.function_name,auth_mode:(null===(e=l.api_extend)||void 0===e?void 0:e.auth_mode)||_.ZZ.Required})},[l.path,d,u,r,l.method,l.function_name,null===(i=l.api_extend)||void 0===i?void 0:i.auth_mode]);var k=(t=(0,n._)(function*(){if(!(yield null===(e=w.current)||void 0===e?void 0:e.formApi.validate().then(()=>!0).catch(()=>!1))||!a)return!1;var e,t,i,r=null===(t=w.current)||void 0===t?void 0:t.formApi.getValues(),n={api_id:a,plugin_id:o,path:r.path,method:r.method,api_extend:{auth_mode:r.auth_mode},edit_version:m,function_name:r.function_name};try{return i=yield y.Js.UpdateAPI(n,{__disableErrorToast:!0}),null==b||b(i),!0}catch(e){var{code:l,msg:s}=e;return Number(l)===el.B.SAFE_CHECK?null==g||g(!0):v.FN.error({content:(0,eL.u)(s)}),!1}}),function(){return t.apply(this,arguments)}),M=()=>{p&&(null==g||g(!1))};return{submitBaseInfo:k,baseInfoNode:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(v.l0,{showValidateIcon:!1,ref:w,disabled:u,className:eZ.Z["base-info-form"],children:()=>{var e,t,i,o;return u?(0,s.jsxs)(s.Fragment,{children:[h===_.zV.LOCAL&&(0,s.jsx)(v.l0.Slot,{label:{text:f.o.t("create_local_plugin_basic_tool_function"),required:!0},children:null!==(o=l.function_name)&&void 0!==o?o:"-"}),h===_.zV.PLUGIN&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.l0.Slot,{label:{text:f.o.t("Create_newtool_s1_url"),required:!0},children:String(x)+l.path}),(0,s.jsx)(v.l0.Slot,{label:{text:f.o.t("Create_newtool_s1_method"),required:!0,extra:(0,s.jsx)(ir.O,{data:eF.iq})},children:is[(null==l?void 0:l.method)||_.fM.GET]})]}),(null==r?void 0:null===(e=r.auth_type)||void 0===e?void 0:e.includes(_.Mv.OAuth))?(0,s.jsx)(v.l0.Slot,{label:{text:f.o.t("plugin_edit_tool_oauth_enabled_title"),required:!0,extra:(0,s.jsx)(v.u,{content:f.o.t("plugin_edit_tool_oauth_enabled_title_hover_tip"),children:(0,s.jsx)(j.aUG,{style:{color:"rgba(28, 29, 35, 0.35)"}})})},children:id[(null===(t=l.api_extend)||void 0===t?void 0:t.auth_mode)||_.ZZ.Required]}):null]}):(0,s.jsxs)(s.Fragment,{children:[h===_.zV.LOCAL&&(0,s.jsx)(v.P6,{className:eZ.Z["textarea-single-line"],field:"function_name",label:f.o.t("create_local_plugin_basic_tool_function"),placeholder:f.o.t("create_local_plugin_basic_tool_function_input_placeholder"),rows:1,trigger:["blur","change"],maxCount:30,maxLength:30,rules:[{required:!0,message:f.o.t("create_local_plugin_basic_warning_no_tool_function_entered")}],onChange:M}),h===_.zV.PLUGIN&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.K9,{field:"path",label:{text:f.o.t("Create_newtool_s1_url")},trigger:["blur","change"],addonBefore:(0,s.jsx)("div",{className:eZ.Z["plugin-url-prefix"],children:(0,s.jsx)(v.ZT.Text,{ellipsis:{showTooltip:{type:"tooltip",opts:{content:x,style:{wordBreak:"break-word"}}}},children:x})}),style:{width:"100%"},className:eZ.Z["plugin-url-input"],placeholder:f.o.t("Create_newtool_s1_url_empty"),rules:[{required:!0,message:f.o.t("Create_newtool_s1_url_error2")},{pattern:/^\//,message:f.o.t("Create_newtool_s1_url_error1")},{pattern:/^[\x00-\x7F]+$/,message:f.o.t("tool_new_S1_URL_error")}]}),(0,s.jsx)(v.N5,{field:"method",initValue:_.fM.GET,label:{text:f.o.t("Create_newtool_s1_method"),extra:(0,s.jsx)(ir.O,{data:eF.iq})},showClear:!0,trigger:["blur","change"],style:{width:"100%",borderRadius:"8px"},placeholder:f.o.t("workflow_detail_condition_pleaseselect"),rules:[{required:!0,message:f.o.t("workflow_detail_condition_pleaseselect")}],children:[_.fM.GET,_.fM.POST,_.fM.PUT,_.fM.DELETE,_.fM.PATCH].map(e=>(0,s.jsx)(ia,{value:e,children:is[e]},e))}),(null==r?void 0:null===(i=r.auth_type)||void 0===i?void 0:i.includes(_.Mv.OAuth))?(0,s.jsx)(v.N5,{field:"auth_mode",initValue:_.ZZ.Required,label:{text:f.o.t("plugin_edit_tool_oauth_enabled_title"),extra:(0,s.jsx)(v.u,{content:f.o.t("plugin_edit_tool_oauth_enabled_title_hover_tip"),children:(0,s.jsx)(j.aUG,{style:{color:"rgba(28, 29, 35, 0.35)"}})})},showClear:!0,trigger:["blur","change"],style:{width:"100%",borderRadius:"8px"},placeholder:f.o.t("workflow_detail_condition_pleaseselect"),rules:[{required:!0,message:f.o.t("workflow_detail_condition_pleaseselect")}],children:[_.ZZ.Required,_.ZZ.Supported,_.ZZ.Disable].map(e=>(0,s.jsx)(ia,{value:e,children:id[e]},e))}):null]})]})}})})}},is={[_.fM.GET]:f.o.t("Create_newtool_s1_method_get"),[_.fM.POST]:f.o.t("Create_newtool_s1_method_post"),[_.fM.PUT]:f.o.t("Create_newtool_s1_method_put"),[_.fM.DELETE]:f.o.t("Create_newtool_s1_method_delete"),[_.fM.PATCH]:f.o.t("Create_tool_s1_method_patch_name")},id={[_.ZZ.Required]:f.o.t("plugin_edit_tool_oauth_enabled_status_auth_required"),[_.ZZ.Supported]:f.o.t("plugin_edit_tool_oauth_enabled_status_auth_optional"),[_.ZZ.Disable]:f.o.t("plugin_edit_tool_oauth_enabled_status_auth_disabled")},ic=e=>{var t,{plugin_id:i,pluginInfo:o,tool_id:r,apiInfo:a,space_id:l,canEdit:d,handleInit:u,wrapWithCheckLock:p,editVersion:g,onSuccess:m}=e,[h,b]=(0,c.useState)(!1),[v,x]=(0,c.useState)(!0),{baseInfoNode:_,submitBaseInfo:y}=il({pluginId:i||"",pluginMeta:(null==o?void 0:o.meta_info)||{},apiId:r,baseInfo:a,showModal:!1,disabled:v,showSecurityCheckFailedMsg:h,setShowSecurityCheckFailedMsg:b,editVersion:g,pluginType:null==o?void 0:o.plugin_type,spaceId:l,onSuccess:m});return{isBaseMoreDisabled:v,header:f.o.t("project_plugin_setup_metadata_more_info"),itemKey:"baseMore",extra:(0,s.jsxs)(s.Fragment,{children:[h?(0,s.jsx)(eY,{step:eF.ls}):null,!v&&(0,s.jsx)(G.zx,{color:"primary",className:"mr-2",onClick:e=>{e.stopPropagation(),x(!0)},children:f.o.t("project_plugin_setup_metadata_cancel")}),d&&!v?(0,s.jsx)(G.zx,{onClick:(t=(0,n._)(function*(e){e.stopPropagation(),(yield y())&&u(),x(!0)}),function(e){return t.apply(this,arguments)}),className:"mr-2",children:f.o.t("project_plugin_setup_metadata_save")}):null,d&&v?(0,s.jsx)(G.zx,{icon:(0,s.jsx)(j.yl5,{className:"!pr-0"}),color:"primary",className:"!bg-transparent !coz-fg-secondary",onClick:e=>{var t,i=document.querySelector(".plugin-tool-detail-baseMore .semi-collapsible-wrapper");0!==parseInt(null==i?void 0:null===(t=i.style)||void 0===t?void 0:t.height)&&e.stopPropagation(),p(()=>{x(!1)})()},children:f.o.t("project_plugin_setup_metadata_edit")}):null]}),content:_,classNameWrap:"plugin-tool-detail-baseMore"}};let iu=(0,eb.A)(function(e){return c.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.28 4.24a1.5 1.5 0 0 1 0 2.12l-5.66 5.66 5.66 5.65a1.5 1.5 0 1 1-2.12 2.13l-6.72-6.72a1.5 1.5 0 0 1 0-2.12l6.72-6.72a1.5 1.5 0 0 1 2.12 0Z",fill:"currentColor"}))},"chevron_left");var ip=e=>{var t,i,{debugApiInfo:o,canEdit:r,plugin_id:n,tool_id:a,unlockPlugin:l,editVersion:d,pluginInfo:u,onDebugSuccessCallback:p}=e,g=(0,k.av)(),[m,h]=(0,c.useState)(),[b,v]=(0,c.useState)(!1),[x]=(0,c.useState)(!1),{debugFooterNode:_,setDebugExample:y,debugExample:w}=eg({apiInfo:o,loading:x,dugStatus:m,btnLoading:!1,nextStep:()=>{var e;null===(e=g.toResource)||void 0===e||e.call(g,"plugin",n),l()},editVersion:d});return{itemKey:"tool_debug",header:f.o.t("Create_newtool_s4_debug"),extra:(0,s.jsx)(s.Fragment,{children:r?_:null}),content:o&&a?(0,s.jsx)(es.Debug,{pluginType:null==u?void 0:u.plugin_type,disabled:!1,setDebugStatus:h,pluginId:String(n),apiId:String(a),apiInfo:o,pluginName:String(null==u?void 0:null===(t=u.meta_info)||void 0===t?void 0:t.name),setDebugExample:y,debugExample:w}):(0,s.jsx)(s.Fragment,{}),modalContent:(0,s.jsxs)(s.Fragment,{children:[o&&a?(0,s.jsx)(G.zx,{onClick:()=>{v(!0)},icon:(0,s.jsx)(e_.NvC,{}),color:"highlight",children:f.o.t("project_plugin_testrun")}):null,(0,s.jsx)(G.u_,{title:f.o.t("project_plugin_testrun"),width:1e3,visible:b,onOk:()=>v(!1),onCancel:()=>v(!1),closeOnEsc:!0,footer:_,children:(0,s.jsx)(es.Debug,{pluginType:null==u?void 0:u.plugin_type,disabled:!1,setDebugStatus:h,pluginId:String(n),apiId:String(a),apiInfo:o,pluginName:String(null==u?void 0:null===(i=u.meta_info)||void 0===i?void 0:i.name),setDebugExample:y,debugExample:w,onSuccessCallback:p})})]})}},ig=i("523878"),im={};im.styleTagTransform=L(),im.setAttributes=S(),im.insert=D().bind(null,"head"),im.domAPI=T(),im.insertStyleElement=C(),I()(ig.Z,im);var ih=ig.Z&&ig.Z.locals?ig.Z.locals:void 0,ib=e=>{var{space_id:t,plugin_id:i,unlockPlugin:o,tool_id:r,pluginInfo:n,updatedInfo:a,apiInfo:l,editVersion:d,canEdit:u,debugApiInfo:p,onDebugSuccessCallback:g}=e,m=(0,k.av)(),[h]=(0,x.V)(),b=(0,c.useMemo)(()=>(null==n?void 0:n.plugin_type)===_.zV.LOCAL||!(null==n?void 0:n.published)||(null==n?void 0:n.status)&&(null==a?void 0:a.created_api_names)&&!!a.created_api_names.includes((null==l?void 0:l.name)||""),[n,a,l]),{modalContent:v}=ip({debugApiInfo:p,canEdit:u,space_id:t||"",plugin_id:i||"",tool_id:r||"",unlockPlugin:o,editVersion:d,pluginInfo:n,onDebugSuccessCallback:g});return(0,s.jsx)("div",{className:ih.header,children:(0,s.jsxs)("div",{className:ih["simple-title"],children:[(0,s.jsx)(G.hU,{icon:(0,s.jsx)(iu,{style:{color:"rgba(29, 28, 35, 0.6)"}}),onClick:()=>{var e;null===(e=m.toResource)||void 0===e||e.call(m,"plugin",i),o()},size:"small",color:"secondary"}),(0,s.jsx)("span",{className:ih.title,children:f.o.t("plugin_edit_tool_title")}),(0,s.jsx)(eI,{}),h["bot.devops.plugin_mockset"]?(0,s.jsx)(G.u,{style:{display:b?"block":"none"},content:f.o.t("unreleased_plugins_tool_cannot_create_mockset"),position:"left",trigger:"hover",children:(0,s.jsx)(G.zx,{onClick:()=>{var e;null===(e=m.mocksetList)||void 0===e||e.call(m,r)},disabled:b,color:"primary",style:{marginRight:8},children:f.o.t("manage_mockset")})}):null,u?v:null]})})},iv=e=>{var t,{toolID:i,onDebugSuccessCallback:o,renderDescComponent:r,renderParamsComponent:d}=e,p=(0,W.UQ)(),[m,h]=(0,c.useState)(),[f,b]=(0,c.useState)(),[v,x]=(0,c.useState)(),[w,j]=(0,c.useState)(!0),{canEdit:M,init:I,pluginInfo:N,updatedInfo:T,wrapWithCheckLock:z,unlockPlugin:D,spaceID:A,pluginID:S,updatePluginInfoByImmer:E,version:C}=(0,k.RQ)((0,u.N)(e=>({canEdit:e.canEdit,init:e.init,pluginInfo:e.pluginInfo,updatedInfo:e.updatedInfo,wrapWithCheckLock:e.wrapWithCheckLock,unlockPlugin:e.unlockPlugin,spaceID:e.spaceID,pluginID:e.pluginId,updatePluginInfoByImmer:e.updatePluginInfoByImmer,version:e.version}))),O=e=>{E(t=>{if(!!t)t.edit_version=null==e?void 0:e.edit_version})},L=e=>{var t,i,o,r=(0,H.Z)(e.request_params);return(null==e?void 0:e.debug_example_status)===_.ji.Enable&&(null==e?void 0:null===(t=e.debug_example)||void 0===t?void 0:t.req_example)&&(0,eh.C$)(r,JSON.parse(null!==(o=null==e?void 0:null===(i=e.debug_example)||void 0===i?void 0:i.req_example)&&void 0!==o?o:"{}")),(0,ea.eO)(r),r};var Z=(t=(0,n._)(function*(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];b((0,l._)((0,a._)({},f),{debug_example_status:_.ji.Disable})),e&&j(!0);try{var{api_info:t=[],msg:o,edit_version:r}=yield y.Js.GetPluginAPIs({plugin_id:S,api_ids:[i],preview_version_ts:C});if(t.length>0){var n=t.length>0?t[0]:{};x((0,l._)((0,a._)({},n),{request_params:L(n)})),(0,ea.eO)(n.request_params),(0,ea.eO)(n.response_params),b(n),h(r)}else p(new en.sH(eo.b.responseValidation,o||"GetPluginAPIs error"))}catch(e){p(new en.sH(eo.b.PluginInitError,"plugin init error: ".concat(e.message)))}e&&j(!1)}),function(){return t.apply(this,arguments)}),{isBaseInfoDisabled:P,header:F,itemKey:B,extra:R,content:U,classNameWrap:Q}=io({space_id:A,plugin_id:S,tool_id:i,apiInfo:f,canEdit:M,handleInit:Z,wrapWithCheckLock:z,editVersion:m,renderDescComponent:r}),{isBaseMoreDisabled:Y,header:V,itemKey:q,extra:K,content:J,classNameWrap:X}=ic({plugin_id:S,pluginInfo:N,tool_id:i,apiInfo:f,canEdit:M,handleInit:Z,wrapWithCheckLock:z,editVersion:m,space_id:A,onSuccess:O}),{isRequestParamsDisabled:$,itemKey:ee,header:et,extra:ei,content:er,classNameWrap:el}=ii({apiInfo:f,plugin_id:S,tool_id:i,pluginInfo:N,canEdit:M,handleInit:Z,wrapWithCheckLock:z,editVersion:m,spaceID:A,onSuccess:O,renderParamsComponent:d}),{isResponseParamsDisabled:es,itemKey:ed,header:ec,extra:eu,content:ep,classNameWrap:eg}=ie({apiInfo:f,plugin_id:S,tool_id:i,editVersion:m,pluginInfo:N,canEdit:M,handleInit:Z,wrapWithCheckLock:z,debugApiInfo:v,setDebugApiInfo:x,spaceID:A,onSuccess:O,renderParamsComponent:d}),em=[{header:F,itemKey:B,extra:R,content:U,classNameWrap:Q},{header:V,itemKey:q,extra:K,content:J,classNameWrap:X},{header:et,itemKey:ee,extra:ei,content:er,classNameWrap:el},{header:ec,itemKey:ed,extra:eu,content:ep,classNameWrap:eg}];return(0,c.useEffect)(()=>((0,n._)(function*(){yield I(),Z(!0)})(),()=>{D()}),[]),(0,g.Z)(()=>{if(!!P&&!!$&&!!es&&!!Y)D()},[P,$,es,Y]),w?(0,s.jsx)(G.yC,{size:"large",spinning:!0,style:{height:"100%",width:"100%"}}):(0,s.jsxs)("div",{className:ih.toolWrap,children:[(0,s.jsx)(ib,{space_id:A,plugin_id:S,unlockPlugin:D,tool_id:i,pluginInfo:N,updatedInfo:T,apiInfo:f,editVersion:m||0,canEdit:M,debugApiInfo:v,onDebugSuccessCallback:o}),(0,s.jsx)(G.UO,{keepDOM:!0,defaultActiveKey:em.map(e=>e.itemKey),children:em.map((e,t)=>(0,s.jsx)(G.UO.Panel,{className:e.classNameWrap,header:e.header,itemKey:e.itemKey,extra:e.extra,children:e.content},"".concat(t,"collapse")))})]})}},770131:function(e,t,i){i.d(t,{A:()=>U});var o=i("808549"),r=i("120454"),n=i("151064"),a=i("455069"),l=i("664319"),s=i("287487"),d=i("76672"),c=i("388993"),u=i("214942"),p=i("117140"),g=i("178385"),m=i("833047"),h=i("252237"),f=i.n(h),b=i("336205"),v=i("775699"),x=i("44172"),_=i("150838"),y=e=>{var{isSearching:t,type:i,onChange:o,projectId:r,from:a,isShowStorePlugin:l=!0}=e,s=(0,u.rY)(e=>e.space.space_type),d=(0,m.ir)().id,c=e=>{if(t){o(e);return}if(e!==i)o(e)};return(0,n.jsxs)("div",{className:_.Z["tool-tag-list"],children:[s===g.Sn.Personal&&(0,n.jsxs)("div",{"data-testid":"plugin.modal.filter.option.mine",className:f()(_.Z["tool-tag-list-cell"],{[_.Z.active]:i===m.eL.Mine}),onClick:()=>c(m.eL.Mine),children:[(0,n.jsx)(x.ckl,{className:_.Z["tool-tag-list-cell-icon"]}),b.o.t("add_resource_modal_sidebar_library_tools")]}),r&&a===m.tx.ProjectWorkflow?(0,n.jsxs)("div",{className:f()(_.Z["tool-tag-list-cell"],{[_.Z.active]:i===m.eL.Project}),onClick:()=>c(m.eL.Project),children:[(0,n.jsx)(x.Qi1,{className:_.Z["tool-tag-list-cell-icon"]}),b.o.t("add_resource_modal_sidebar_project_tools")]}):null,l?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.yh.Divider,{}),(0,n.jsx)("div",{className:_.Z["tool-content-area"],children:(0,n.jsx)("div",{className:f()(_.Z["tool-tag-list-cell"],{[_.Z.active]:i===d}),onClick:()=>c(d),children:b.o.t("explore_tools")})})]}):null]})},w=i("881305"),k=[{label:b.o.t("Create_time"),value:g.d$.CreateTime},{label:b.o.t("Update_time"),value:g.d$.UpdateTime}],j=e=>{var{query:t,setQuery:i}=e;return(0,n.jsx)("div",{className:w.Z["plugin-modal-filter"],children:t.type===m.eL.Mine||t.type===m.eL.Team||t.type===m.eL.Project?(0,n.jsxs)(v.Cj,{label:b.o.t("Sort"),value:t.orderBy,optionList:k,onChange:e=>{i({orderBy:e})},children:[(0,n.jsx)(v.Ph.Option,{value:g.d$.CreateTime,children:b.o.t("Create_time")}),(0,n.jsx)(v.Ph.Option,{value:g.d$.UpdateTime,children:b.o.t("Edit_time_2")})]}):null})},M=i("998600"),I=i("824113"),N=i("910376"),T=i("196163"),z=e=>{var{query:t,setQuery:i,from:o,onCreateSuccess:r,isShowStorePlugin:l,hideCreateBtn:s}=e,[d,c]=(0,a.useState)(!1),p=(0,u.rY)(e=>e.space.id),g=e=>{i({search:null!=e?e:""})},{run:h,cancel:f}=(0,M.Z)(e=>{g(e)},{wait:300});return(0,n.jsxs)(n.Fragment,{children:[s?null:(0,n.jsx)(N.rm,{projectId:t.projectId,isCreate:!0,visible:d,onSuccess:e=>{null==r||r({spaceId:p,pluginId:e})},onCancel:()=>{c(!1)}}),(0,n.jsxs)(v.yh,{style:{paddingTop:16},children:[(0,n.jsxs)(v.yh.Header,{children:[(0,n.jsx)(I.yO,{tabIndex:-1,value:t.search,maxLength:100,onSearch:e=>{e?h(e):(f(),g(e))},placeholder:b.o.t("Search"),"data-testid":"plugin.modal.search"}),s?null:(0,n.jsx)(v.y3,{"data-testid":"plugin.modal.create.plugin",className:T.Z.addbtn,theme:"solid",onClick:()=>{if(r&&(o===m.tx.ProjectIde||o===m.tx.ProjectWorkflow)){c(!0);return}window.open("/space/".concat(p,"/library?type=1"))},children:b.o.t("plugin_create")})]}),(0,n.jsx)(v.yh.Content,{children:(0,n.jsx)(y,{isSearching:""!==t.search,type:t.type,onChange:e=>{i({type:e})},from:o,projectId:t.projectId,isShowStorePlugin:l})})]})]})},D=i("322512"),A=i("136515"),S=i("309673"),E=i("938382"),C=i("364676"),O=i("44099"),L=i("825955"),Z=i("298203"),P=i("366714"),F=(e,t,i,o)=>(t||i)&&!o?{text:{emptyTitle:b.o.t("plugin_empty_desc"),emptyDesc:b.o.t("plugin_empty_description")},btn:{emptyClick:()=>{window.open("/space/".concat(e,"/library?type=1"))},emptyText:b.o.t("plugin_create")}}:{text:{emptyTitle:b.o.t("plugin_empty_desc"),emptyDesc:""},btn:{emptyClick:()=>{window.open("/store/plugin")},emptyText:b.o.t("mkl_plugin_to_plugin_gallery")}},B=e=>{var{query:t,pluginApiList:i,onPluginApiListChange:s,openMode:d,from:c,openModeCallback:p,showButton:g,showCopyPlugin:h,onCopyPluginCallback:b,clickProjectPluginCallback:x}=e,{type:_,mineActive:y,search:w,isOfficial:k,orderBy:j,orderByPublic:M,orderByFavorite:I,agentId:N,pluginType:T}=t,z=(0,u.rY)(e=>e.space.id),B=(0,a.useRef)(null),[R,U]=(0,a.useState)([]),Q=(0,a.useRef)(null),{scroll2Top:Y,loadData:V,isSearching:W,isFavorite:G,isTemplate:H,isProject:q,isMine:K,isTeam:J}=function(e){var t,{scrollContainer:i,query:n,triggerService:l,formatCacheKey:s,onSetScrollData:d}=e,{search:c,type:u,mineActive:p}=n,g=""!==c,h=u===m.eL.Mine,f=u===m.eL.Team,b=u===m.eL.Favorite,v=u===m.eL.Project,x=p===m.gp.Mine,_=Number(u)>=0||"recommend"===u,y=(e,t,i)=>{var n=(0,Z.lJ)(t);if(!t||!n)return!1;var{data:a}=n;if(!i)return n.data;var l=(null==e?void 0:e.nextPage)||1,{list:s,total:c}=a||{list:[],total:0},u=c>0&&l*m.L8<c;return d((0,r._)((0,o._)({},e),{hasMore:u,list:[...(null==l?void 0:l.list)||[],...s]})),!1},w=(e,t,i)=>{if(!!e)(0,Z.K7)(e,t,{time:Date.now(),data:i})};var k=(t=(0,L._)(function*(e){var t=(null==e?void 0:e.nextPage)||1,i=s({query:n,isSearching:g,isTemplate:_,page:t})||"";!h&&!f&&(i="");var o=y(e,i,!_);!o&&w(i,3e5,o=yield l(n,{nextPage:t,isMine:h,isTeam:f,isCreatorMine:x,isTemplate:_,isFavorite:b,isProject:v}));var{list:r,hasMore:a}=o||{list:[],total:0},d=t+1,c={};return((null==e?void 0:e.list)||[]).map(e=>{var t;c[null==e?void 0:null===(t=e.pluginInfo)||void 0===t?void 0:t.id]=!0}),{list:(r||[]).filter(e=>{var t,i=null==e?void 0:null===(t=e.pluginInfo)||void 0===t?void 0:t.id;return(!i||!c[i])&&!0})||[],hasMore:a,nextPage:d}}),function(e){return t.apply(this,arguments)});return(0,a.useEffect)(()=>{(0,Z.LK)()},[]),{scroll2Top:()=>{i.current&&i.current.scrollTo({top:0})},isSearching:g,loadData:k,isFavorite:b,isTemplate:_,isMine:h,isTeam:f,isProject:v}}({query:t,formatCacheKey:m.TB,scrollContainer:B,triggerService:m.Ht,onSetScrollData:e=>{var t;null===(t=Q.current)||void 0===t||t.mutate(e)}}),{nodes:X}=(0,C.I)((0,l.N)(e=>({nodes:e.nodes})));return(0,A.Z)(()=>{Y()},[]),(0,n.jsx)(v.vy,{children:(0,n.jsx)("div",{className:P.Z["plugin-content"],ref:B,children:(0,n.jsx)(v.vy.Content,{style:{minHeight:"100%",display:"flex"},children:(0,n.jsx)(v.UO,{className:P.Z["plugin-collapse"],activeKey:R,onChange:e=>{U(e)},expandIcon:(0,n.jsx)(S.Z,{className:P.Z["collapse-icon"],"data-testid":"plugin-collapse-panel-expand"}),collapseIcon:(0,n.jsx)(E.Z,{className:P.Z["collapse-icon"],"data-testid":"plugin-collapse-panel-collapse"}),children:(0,n.jsx)(O.$r,{ref:Q,itemClassName:P.Z["item-container"],renderItem:(e,t)=>{var a,l,u,v=null==e?void 0:null===(a=e.pluginInfo)||void 0===a?void 0:a.id;return(0,n.jsx)(m.WB,{agentId:N,index:t,pluginApiList:i,onPluginApiListChange:s,onCopyPluginCallback:b,showButton:g,showCopyPlugin:h,openMode:d,from:c,workflowNodes:X,openModeCallback:p,highlightWords:[w],showCreator:!0,showMarketLink:G||H,showCreateTime:0===j||"number"==typeof _,showPublishTime:!K&&!J&&!q,activeKey:R,scrollContainerRef:B,isFromMarket:null==e?void 0:e.isFromMarket,info:(0,r._)((0,o._)({},null==e?void 0:e.pluginInfo),{id:v,listed_at:null==e?void 0:null===(l=e.productInfo)||void 0===l?void 0:l.listed_at,plugin_apis:(0,D.Z)(null==e?void 0:null===(u=e.pluginInfo)||void 0===u?void 0:u.plugin_apis,e=>e.name)}),productInfo:null==e?void 0:e.productInfo,commercialSetting:null==e?void 0:e.commercial_setting,type:String(_||""),className:f()(P.Z["plugin-collapse"],{[P.Z.activePanel]:null==R?void 0:R.includes(null!=v?v:"")}),showProjectPluginLink:q,clickProjectPluginCallback:x},v)},emptyConf:F(z,K,J,q),scrollConf:{reloadDeps:[_,y,w,k,j,M,I,T],targetRef:B,loadData:V},isSearching:W})})})})})},R=(e,t)=>e!==m.tx.ProjectWorkflow&&e===m.tx.ProjectIde&&t&&e?t===g.Sn.Personal?m.eL.Mine:t===g.Sn.Team&&e===m.tx.ProjectIde?m.eL.Team:"":"",U=e=>{var t,i,{pluginApiList:h,onPluginApiListChange:f,agentId:b,openMode:v,from:x,openModeCallback:_,showButton:y,showCopyPlugin:w,onCopyPluginCallback:k,projectId:M,clickProjectPluginCallback:I,onCreateSuccess:N,isShowStorePlugin:T,hideCreateBtn:D,initQuery:A}=e,S=s.Z.useUserInfo(),E=(0,u.rY)(e=>e.space.space_type),[C,O]=(0,a.useState)({agentId:b,projectId:M,devId:(null==S?void 0:S.user_id_str)||"",search:"",page:m.XJ,type:null!==(t=null==A?void 0:A.type)&&void 0!==t?t:R(x,E),orderBy:g.d$.CreateTime,orderByPublic:p.ER.Heat,orderByFavorite:p.ER.Newest,mineActive:m.gp.All,isOfficial:null!==(i=null==A?void 0:A.isOfficial)&&void 0!==i?i:void 0,pluginType:x===m.tx.ProjectWorkflow?p.zV.CLoudPlugin:void 0}),{botId:L}=(0,c.G)((0,l.N)(e=>({botId:e.botId}))),{version:Z}=(0,d.c2)((0,l.N)(e=>({version:e.baseVersion}))),P=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i={current_entity_type:p._J.Bot,current_entity_id:L,current_entity_version:Z};O(n=>t?(0,r._)((0,o._)({},n,e),{page:m.XJ,botInfo:i}):(0,r._)((0,o._)({},n,e),{botInfo:i}))},F=(0,n.jsx)(z,{hideCreateBtn:D,query:C,setQuery:P,from:x,onCreateSuccess:N,isShowStorePlugin:T}),U=(0,n.jsx)(j,{from:x,query:C,setQuery:P});return{sider:F,content:(0,n.jsx)(B,{query:C,setQuery:P,pluginApiList:h,onPluginApiListChange:f,openMode:v,from:x,openModeCallback:_,showButton:y,showCopyPlugin:w,onCopyPluginCallback:k,clickProjectPluginCallback:I}),filter:U}}},910376:function(e,t,i){i.d(t,{Tj:()=>ei,cC:()=>en,e2:()=>er,rm:()=>X,_u:()=>eo});var o,r,n=i("825955"),a=i("151064"),l=i("455069"),s=i("808549"),d=i("120454"),c=i("735114"),u=i("215451"),p=i("581259"),g=i("368696"),m=i("75117"),h=i("297158"),f=i("336205"),b=i("873183"),v=i("659596"),x=i("298203"),_=i("189284"),y=i("178385"),w=i("382534"),k=i("625196"),j=i("458949"),M={name:[{required:!0,message:f.o.t("create_plugin_modal_name1_error")},{pattern:RegExp("^[\\w\\s\\u4e00-\\u9fa5]+$","u"),message:f.o.t("create_plugin_modal_nameerror_cn")}],desc:[{required:!0,message:f.o.t("create_plugin_modal_descrip1_error")},{}],url:[{required:!0,message:f.o.t("create_plugin_modal_url1_error")}],key:[{required:!0,message:f.o.t("create_plugin_modal_Parameter_error")},{pattern:/^[\x00-\x7F]+$/,message:f.o.t("plugin_Parametename_error")}],service_token:[{required:!0,message:f.o.t("create_plugin_modal_Servicetoken_error")}]},I=e=>{var t,i;if(!!e)return[{url:(null===(t=e.icon)||void 0===t?void 0:t.url)||"",uid:(null==e?void 0:null===(i=e.icon)||void 0===i?void 0:i.uri)||""}]},N=(e,t,i)=>{if((null==t?void 0:t[0])===0)return e.find(e=>0===e.value);if((null==t?void 0:t[0])===1){var o=e.find(e=>1===e.value);return null==o?void 0:o.children.find(e=>e.value===i)}if((null==t?void 0:t[0])===3){var r=e.find(e=>3===e.value);return null==r?void 0:r.children.find(e=>e.value===i)}},T=()=>{var e,[t,i]=(0,l.useState)([]),[o,r]=(0,l.useState)([]),[a,s]=(0,l.useState)("1");var d=(e=(0,n._)(function*(){var e,t,o=yield w.Js.GetOAuthSchema();i([{label:f.o.t("create_plugin_modal_Authorization_no"),value:0,key:"None"},{label:f.o.t("create_plugin_modal_Authorization_service"),value:1,key:"Service",children:[{label:f.o.t("plugin_auth_method_service_api_key"),value:0,key:"Service Token / API Key"}]},{label:f.o.t("create_plugin_modal_Authorization_oauth"),value:3,key:"OAuth",children:(0,x.dj)(o.oauth_schema)}]);var n=null===(t=(0,x.dj)(o.ide_conf,[]))||void 0===t?void 0:null===(e=t.find)||void 0===e?void 0:e.call(t,e=>"code_runtime_enum"===e.key);n&&(r(n.options.map(e=>({value:e.value,label:e.name}))),s(n.default))}),function(){return e.apply(this,arguments)});return(0,l.useEffect)(()=>{d()},[]),{authOption:t,runtimeOptions:o,defaultRuntime:a}},z=e=>{var t,i,o,r,n,{val:a,spaceId:l,headerList:c,projectId:u,creationMethod:p,defaultRuntime:g,pluginType:m,extItemsJSON:h}=e,f=null===(t=a.auth_type)||void 0===t?void 0:t.at(0),b=null===(i=a.auth_type)||void 0===i?void 0:i.at(-1),v=(0,d._)((0,s._)({},a),{icon:{uri:null==a?void 0:null===(r=a.plugin_uri)||void 0===r?void 0:null===(o=r[0])||void 0===o?void 0:o.uid},auth_type:f,common_params:{[j.Pi.Header]:c,[j.Pi.Body]:[],[j.Pi.Path]:[],[j.Pi.Query]:[]},space_id:l,project_id:u,creation_method:p,ide_code_runtime:null!==(n=a.ide_code_runtime)&&void 0!==n?n:g,plugin_type:Number(m),private_link_id:"0"===a.private_link_id?void 0:a.private_link_id});return 1===f?(0,d._)((0,s._)({},v),{sub_auth_type:b,auth_payload:JSON.stringify(h)}):(0,d._)((0,s._)({},v),{sub_auth_type:3===f?b:void 0,oauth_info:JSON.stringify(h)})};var D=(o=(0,n._)(function*(e){var{params:t}=e;return(yield w.Js.RegisterPluginMeta((0,s._)({},t),{__disableErrorToast:!0})).plugin_id}),function(e){return o.apply(this,arguments)});var A=(r=(0,n._)(function*(e){var{params:t,editInfo:i}=e;return yield w.Js.UpdatePluginMeta((0,d._)((0,s._)({},t),{plugin_id:(null==i?void 0:i.plugin_id)||"",edit_version:null==i?void 0:i.edit_version}),{__disableErrorToast:!0}),""}),function(e){return r.apply(this,arguments)}),S=i("274038"),E=e=>e?"".concat(null==e?void 0:e.plugin_type,"-").concat(null==e?void 0:e.creation_method):"",C=(0,v.Q2)(v.vT),O=()=>[{label:f.o.t("plugin_creation_method_cloud_plugin_use_existing_services"),value:p.Qb}],L=e=>{var t,i,o,r,j,T,z,D,A,L,Z,P,F,B,R,U,Q,Y,V,{pluginState:W,disabled:G,editInfo:H,isCreate:q,visible:K}=e,{formApi:J,extItems:X,setExtItems:$,headerList:ee,setHeaderList:et,isValidCheckResult:ei,setIsValidCheckResult:eo,pluginTypeCreationMethod:er,setPluginTypeCreationMethod:en,authOption:ea}=W,[el]=(0,_.V)(),{compareLevel:es}=(0,u.th)(),ed=(0,g.HU)(),[ec,eu]=(0,l.useState)(0),[ep,eg]=(0,l.useState)(0),[em,eh]=(0,l.useState)(!1),ef=()=>{!ei&&eo(!0)},eb=O(),ev=(0,p.C5)(),[ex,e_]=(0,l.useState)(),{data:ey}=(0,c.Z)((0,n._)(function*(){var e,{data:t}=yield w.Js.PrivateLinkList({enterprise_id:null==ed?void 0:ed.enterprise_id});e_(null==t?void 0:t.private_links);var i=null==t?void 0:null===(e=t.private_links)||void 0===e?void 0:e.map(e=>({label:e.name,value:e.id}));return[{label:f.o.t("vpc_plugin_create_plugin_2"),value:"0"},...null!=i?i:[]]}),{ready:es===u.aZ.Enterprise&&el["bot.studio.plugin_vpc"]&&!1});var ew=(t=(0,n._)(function*(){try{var e,t,i,o=yield w.nA.GetIcon({icon_type:y.Tu.Plugin}),r=null===(t=o.data)||void 0===t?void 0:null===(e=t.icon_list)||void 0===e?void 0:e[0];if(!r)return;var{url:n="",uri:a=""}=r;null===(i=J.current)||void 0===i||i.setValue("plugin_uri",[{url:n,uid:a}])}catch(e){h.kg.info("getIcon error: ".concat(e))}}),function(){return t.apply(this,arguments)});(0,l.useEffect)(()=>{if(!!K)if(!q&&H){var e,t,i,o,r,n,a,l,s,d,c,p,g,m,h,f,b,v;if((null===(t=H.meta_info)||void 0===t?void 0:null===(e=t.auth_type)||void 0===e?void 0:e.at(0))===1)switch(null===(g=H.meta_info)||void 0===g?void 0:g.sub_auth_type){case 0:eg(5);break;case 1:eg(6);break;case 2:eg(7);break;default:eg(0)}else eg(null!==(f=null===(h=H.meta_info)||void 0===h?void 0:null===(m=h.auth_type)||void 0===m?void 0:m.at(-1))&&void 0!==f?f:0);eu(null!==(b=null===(o=H.meta_info)||void 0===o?void 0:null===(i=o.auth_type)||void 0===i?void 0:i.at(0))&&void 0!==b?b:0),$((null===(r=N(ea,null===(n=H.meta_info)||void 0===n?void 0:n.auth_type,null!==(v=null===(l=H.meta_info)||void 0===l?void 0:null===(a=l.auth_type)||void 0===a?void 0:a[1])&&void 0!==v?v:null===(s=H.meta_info)||void 0===s?void 0:s.sub_auth_type))||void 0===r?void 0:r.items)||[]),et([...(null===(c=H.meta_info)||void 0===c?void 0:null===(d=c.common_params)||void 0===d?void 0:d[4])||[]]),en("".concat(H.plugin_type,"-").concat(H.creation_method)),(null==H?void 0:null===(p=H.meta_info)||void 0===p?void 0:p.private_link_id)&&es===u.aZ.Enterprise&&el["bot.studio.plugin_vpc"]&&eh(!0)}else ek()},[K]);var ek=()=>{ew(),eg(0),eg(0),$([]),et([{name:"User-Agent",value:"Coze/1.0"}]),eo(!0),en(void 0)},ej=()=>{et(e=>[...e,{name:"",value:""}])},eM=e=>{et(t=>t.length<=1?[{name:"",value:""}]:t.filter((t,i)=>i!==e))},eI=(e,t)=>{et(i=>i.map((i,o)=>o===e?t:i))};return(0,a.jsxs)(v.l0,{getFormApi:e=>J.current=e,autoScrollToError:!0,showValidateIcon:!1,className:S.Z["upload-form"],onValueChange:e=>{if("auth_type"in e){if(1===e.auth_type.at(0))switch(e.auth_type.at(-1)){case 0:eg(5);break;case 1:eg(6);break;case 2:eg(7);break;default:eg(0)}else eg(e.auth_type.at(-1));eu(e.auth_type.at(0))}},children:[(0,a.jsx)(m.s,{noLabel:!0,disabled:G,fieldClassName:S.Z["upload-field"],field:"plugin_uri",iconType:y.Tu.Plugin,fileBizType:y.ym.BIZ_PLUGIN_ICON,initValue:I(null==H?void 0:H.meta_info),onChange:ef}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v.ld,{disabled:G,initValue:null==H?void 0:null===(Q=H.meta_info)||void 0===Q?void 0:Q.name,field:"name",className:S.Z["textarea-single-line"],label:f.o.t("create_plugin_modal_name1"),placeholder:f.o.t("create_plugin_modal_name2"),trigger:["blur","change"],maxCount:30,maxLength:30,rows:1,onBlur:()=>{var e,t,i;null===(i=J.current)||void 0===i||i.setValue("name",null===(t=J.current)||void 0===t?void 0:null===(e=t.getValue("name"))||void 0===e?void 0:e.trim())},onChange:ef,rules:M.name}),(0,a.jsx)(v.ld,{disabled:G,initValue:null==H?void 0:null===(Y=H.meta_info)||void 0===Y?void 0:Y.desc,field:"desc",label:f.o.t("create_plugin_modal_descrip1"),trigger:["blur","change"],placeholder:f.o.t("create_plugin_modal_descrip2"),rows:2,maxCount:600,maxLength:600,onBlur:()=>{var e,t,i;null===(i=J.current)||void 0===i||i.setValue("desc",null===(t=J.current)||void 0===t?void 0:null===(e=t.getValue("desc"))||void 0===e?void 0:e.trim())},onChange:ef,rules:M.desc}),(0,a.jsx)(v.l0.Slot,{label:{text:f.o.t("plugin_creation_method"),required:!0,extra:(0,a.jsx)(k.O,{data:ev})},children:q?(0,a.jsx)(v.l0.RadioGroup,{noLabel:!0,className:S.Z["creation-method"],direction:"vertical",rules:[{required:!0,message:f.o.t("plugin_creation_select_creation_method_warning")}],field:"creation_method",disabled:G,options:eb,initValue:H?E(H):void 0,onChange:e=>en(e.target.value)}):(0,a.jsx)(v.ZT.Text,{fontSize:"14px",children:null===(V=eb.find(e=>e.value===er))||void 0===V?void 0:V.label})})]}),er===p.Qb?(U=[0],!H&&(U=[0]),(null==H?void 0:null===(o=H.meta_info)||void 0===o?void 0:null===(i=o.auth_type)||void 0===i?void 0:i.length)===2?U=null==H?void 0:null===(A=H.meta_info)||void 0===A?void 0:A.auth_type:(null==H?void 0:null===(Z=H.meta_info)||void 0===Z?void 0:null===(L=Z.auth_type)||void 0===L?void 0:L.at(0))===0?U=null==H?void 0:null===(P=H.meta_info)||void 0===P?void 0:P.auth_type:void 0!==(null==H?void 0:null===(F=H.meta_info)||void 0===F?void 0:F.sub_auth_type)&&(U=[...(null==H?void 0:null===(B=H.meta_info)||void 0===B?void 0:B.auth_type)||[],null==H?void 0:null===(R=H.meta_info)||void 0===R?void 0:R.sub_auth_type]),(0,a.jsxs)(a.Fragment,{children:[es===u.aZ.Enterprise&&el["bot.studio.plugin_vpc"]?(0,a.jsx)(v.ih,{label:{text:f.o.t("vpc_plugin_create_plugin_1"),required:!0,extra:(0,a.jsx)(k.O,{data:p.HW.private_link_id})},field:"private_link_id",style:{width:"100%"},initValue:(null==H?void 0:null===(r=H.meta_info)||void 0===r?void 0:r.private_link_id)||"0",onChange:e=>{var t,i,o;eh("0"!==e),"0"===e?null===(t=J.current)||void 0===t||t.setValue("url",""):null===(o=J.current)||void 0===o||o.setValue("url",null==ex?void 0:null===(i=ex.find(t=>t.id===e))||void 0===i?void 0:i.plugin_access_url)},optionList:ey}):null,G?null:(0,a.jsx)(v.yt,{disabled:em,className:S.Z["textarea-single-line"],initValue:null==H?void 0:null===(j=H.meta_info)||void 0===j?void 0:j.url,trigger:["blur","change"],field:"url",label:f.o.t("create_plugin_modal_url1"),placeholder:f.o.t("create_plugin_modal_url2"),onBlur:()=>{var e,t,i;null===(i=J.current)||void 0===i||i.setValue("url",null===(t=J.current)||void 0===t?void 0:null===(e=t.getValue("url"))||void 0===e?void 0:e.trim())},rules:em?[]:M.url}),(0,a.jsx)(v.l0.Slot,{className:S.Z["header-list"],label:{text:f.o.t("plugin_create_header_list_title"),align:"right",extra:(0,a.jsxs)("div",{className:S.Z["header-list-extra"],children:[(0,a.jsx)(k.O,{data:p.HW.header_list}),ee.length<20&&!G&&(0,a.jsx)(v.hU,{size:"small",color:"secondary",icon:(0,a.jsx)(b.PwN,{className:"coz-fg-hglt text-[16px]"}),onClick:ej})]})},children:(0,a.jsxs)("div",{className:S.Z["header-list-box"],children:[(0,a.jsxs)(v.X2,{className:S.Z["header-row"],children:[(0,a.jsx)(v.JX,{span:9,children:(0,a.jsx)("div",{className:S.Z["header-col-content"],children:"Key"})}),(0,a.jsx)(v.JX,{span:12,children:(0,a.jsx)("div",{className:S.Z["header-col-content"],children:"Value"})}),(0,a.jsx)(v.JX,{span:3,children:(0,a.jsx)("div",{className:S.Z["header-col-content"],children:f.o.t("plugin_create_action_btn")})})]}),(0,a.jsx)("div",{children:null==ee?void 0:ee.map((e,t)=>(0,a.jsxs)(v.X2,{type:"flex",justify:"space-between",align:"middle",children:[(0,a.jsx)(v.JX,{span:9,children:(0,a.jsx)("div",{className:S.Z["col-content"],children:(0,a.jsx)(v.II,{placeholder:"Name",value:e.name,onChange:i=>{eI(t,(0,d._)((0,s._)({},e),{name:i}))},maxLength:100,disabled:G})})}),(0,a.jsx)(v.JX,{span:12,children:(0,a.jsx)("div",{className:S.Z["col-content"],children:(0,a.jsx)(v.II,{placeholder:"Value",value:e.value,onChange:i=>{eI(t,(0,d._)((0,s._)({},e),{value:i}))},maxLength:2e3,disabled:G})})}),(0,a.jsx)(v.JX,{span:3,children:(0,a.jsx)("div",{className:S.Z["col-content"],children:(0,a.jsx)(v.hU,{size:"small",color:"secondary",icon:(0,a.jsx)(b.dVD,{className:"coz-fg-secondary text-[14px]"}),disabled:G,onClick:()=>eM(t)})})})]},t))})]})}),(0,a.jsx)(C,{disabled:G,rules:[{required:!0}],style:{width:"100%"},initValue:U,field:"auth_type",label:{text:f.o.t("create_plugin_modal_auth1"),extra:(0,a.jsx)(k.O,{data:p.HW.auth})},placeholder:f.o.t("please_select_an_authorization_method"),treeData:ea,displayRender:e=>"".concat(e.at(-1)),onChange:e=>{var t;$((null===(t=N(ea,[e.at(0)],e.at(-1)))||void 0===t?void 0:t.items)||[])}}),1===ec&&5===ep&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v.l0.RadioGroup,{disabled:G,rules:[{required:!0}],field:"location",label:{text:f.o.t("create_plugin_modal_location"),extra:(0,a.jsx)(k.O,{data:p.HW.location})},options:p.cg,initValue:(null==H?void 0:null===(T=H.meta_info)||void 0===T?void 0:T.location)||1}),(0,a.jsx)(v.yt,{disabled:G,initValue:null==H?void 0:null===(z=H.meta_info)||void 0===z?void 0:z.key,trigger:["blur","change"],field:"key",label:{text:f.o.t("create_plugin_modal_Parameter"),extra:(0,a.jsx)(k.O,{data:p.HW.key})},placeholder:f.o.t("create_plugin_modal_Parameter_empty"),maxLength:100,rules:M.key}),(0,a.jsx)(v.yt,{disabled:G,initValue:null==H?void 0:null===(D=H.meta_info)||void 0===D?void 0:D.service_token,trigger:["blur","change"],field:"service_token",label:{text:f.o.t("create_plugin_modal_Servicetoken"),extra:(0,a.jsx)(k.O,{data:p.HW.service_token})},placeholder:f.o.t("create_plugin_modal_Servicetoken_empty"),maxLength:2e3,rules:M.service_token})]}),null==X?void 0:X.map((e,t)=>{var i,o,r,n,s={};return((null==H?void 0:null===(o=H.meta_info)||void 0===o?void 0:null===(i=o.auth_type)||void 0===i?void 0:i.at(0))===1&&(s=(0,x.dj)(H.meta_info.auth_payload)),(null==H?void 0:null===(n=H.meta_info)||void 0===n?void 0:null===(r=n.auth_type)||void 0===r?void 0:r.at(0))===3&&(s=(0,x.dj)(H.meta_info.oauth_info)),"select"===e.type)?(0,a.jsx)(v.ih,{disabled:G,label:(null==e?void 0:e.label)||e.key,field:e.key,optionList:p.Cx,initValue:(null==s?void 0:s[e.key])||e.default,style:{width:"100%"},rules:[{required:e.required,message:p.VF[e.key]}]},e.key+t):(0,a.jsx)(l.Fragment,{children:(0,a.jsx)(v.yt,{disabled:G,trigger:["blur","change"],field:e.key,label:{text:(null==e?void 0:e.label)||e.key,extra:p.HW[e.key]&&(0,a.jsx)(k.O,{data:p.HW[e.key]})},placeholder:p.VF[e.key],initValue:(null==s?void 0:s[e.key])||e.default,maxLength:e.max_len,rules:[{required:e.required,message:p.VF[e.key]},"url"===e.type?{pattern:/^(http|https):\/\/.+$/,message:f.o.t("create_plugin_modal_URLerror")}:{pattern:/^[\x00-\x7F]+$/,message:f.o.t("create_plugin_modal_descrip_error")},...(null==e?void 0:e.ruleList)||[]]},e.key)},e.key+t)})]})):null]})},Z=()=>{var e=(0,l.useRef)(),{authOption:t,runtimeOptions:i,defaultRuntime:o}=T(),[r,n]=(0,l.useState)([]),[a,s]=(0,l.useState)([{name:"User-Agent",value:"Coze/1.0"}]),[d,c]=(0,l.useState)(!0),[u,p]=(0,l.useState)();return{formApi:e,extItems:r,setExtItems:n,headerList:a,setHeaderList:s,isValidCheckResult:d,setIsValidCheckResult:c,pluginTypeCreationMethod:u,setPluginTypeCreationMethod:p,authOption:t,runtimeOptions:i,defaultRuntime:o}},P=i("947578"),F=i("214942"),B=i("900021"),R=i("927070"),U=i("3779"),Q=i("786406"),Y=e=>{var{onCancel:t,onSuccess:i,projectId:o}=e,[r,n]=(0,l.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.iy,{projectId:o,visible:r,onSuccess:e=>{var t=null==e?void 0:e.plugin_id;t?null==i||i(t):null==i||i()},onCancel:()=>n(!1)}),(0,a.jsx)(v.zx,{color:"primary",onClick:()=>{n(!0),null==t||t()},children:f.o.t("import")})]})},V=i("44172"),W=i("252237"),G=i.n(W),H=i("775699"),q=i("512421"),K=e=>{var t,{isCreate:i=!0,onCancel:o,editInfo:r,visible:c,onSuccess:u,disabled:p=!1,actions:g,projectId:m}=e,[h,b]=(0,l.useState)(),[v,_]=(0,l.useState)(),[y,k]=(0,l.useState)(),[j,M]=(0,l.useState)(),[I,N]=(0,l.useState)();(0,l.useEffect)(()=>{if(c){var e,t,i,o,n;b(JSON.stringify((0,x.dj)(null==r?void 0:null===(e=r.code_info)||void 0===e?void 0:e.plugin_desc),null,2)||""),N((null==r?void 0:null===(t=r.code_info)||void 0===t?void 0:t.openapi_desc)||""),_(null==r?void 0:null===(i=r.code_info)||void 0===i?void 0:i.client_id),k(null==r?void 0:null===(o=r.code_info)||void 0===o?void 0:o.client_secret),M(null==r?void 0:null===(n=r.code_info)||void 0===n?void 0:n.service_token)}},[c]);var T=(t=(0,n._)(function*(){var e,t,n={ai_plugin:h,client_id:v,client_secret:y,service_token:j,openapi:I};i?t=yield w.Js.RegisterPlugin((0,d._)((0,s._)({},n),{project_id:m,space_id:F.rY.getState().getSpaceId()})):yield w.Js.UpdatePlugin((0,d._)((0,s._)({},n),{plugin_id:null==r?void 0:r.plugin_id,edit_version:null==r?void 0:r.edit_version})),H.FN.success({content:i?f.o.t("register_success"):f.o.t("Plugin_update_success"),showClose:!1}),null==u||u(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.plugin_id),null==o||o()}),function(){return t.apply(this,arguments)});return(0,a.jsx)(H.M5,{fullScreen:!0,className:"full-screen-modal",title:(0,a.jsxs)("div",{className:R.Z["bot-code-edit-title-action"],children:[(0,a.jsx)("span",{children:i?f.o.t("plugin_create"):f.o.t("plugin_Update")}),(0,a.jsx)("div",{children:g})]}),visible:c,onCancel:()=>null==o?void 0:o(),footer:p?null:(0,a.jsxs)(H.T,{children:[(0,a.jsx)(H.y3,{type:"tertiary",onClick:()=>null==o?void 0:o(),children:f.o.t("Cancel")}),(0,a.jsx)(H.y3,{type:"primary",onClick:T,children:f.o.t("Confirm")})]}),maskClosable:!1,children:(0,a.jsx)("div",{className:G()(R.Z.flex),children:(0,a.jsx)("div",{className:G()(R.Z["plugin-height"],R.Z.flex5),children:(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("div",{style:{flex:1,borderRight:"1px solid rgb(215,218,221)"},children:[(0,a.jsx)("div",{className:R.Z.title,children:f.o.t("ai_plugin_(fill_in_json)_*")}),(0,a.jsx)(q.M,{dataTestID:"create-plugin-code-editor-json",disabled:p,theme:"tomorrow",mode:"json",height:560,value:h,useValidate:!1,onChange:e=>b(e)})]}),(0,a.jsxs)("div",{style:{flex:1},children:[(0,a.jsx)("div",{className:R.Z.title,children:f.o.t("openapi_(fill_in_yaml)_*")}),(0,a.jsx)(q.M,{dataTestID:"create-plugin-code-editor-yaml",disabled:p,theme:"tomorrow",mode:"yaml",height:560,value:I,useValidate:!1,onChange:e=>N(e)})]})]})})})})},J=e=>{var{onCancel:t,onSuccess:i,projectId:o}=e,[r,n]=(0,l.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(K,{isCreate:!0,visible:r,onSuccess:e=>{null==i||i(e)},onCancel:()=>{n(!1)},projectId:o}),(0,a.jsx)(v.zx,{"data-testid":"create-plugin-code-modal-button",color:"primary",icon:(0,a.jsx)(V.WTs,{}),onClick:()=>{n(!0),null==t||t()}})]})},X=e=>{var t,{onCancel:i,editInfo:o,isCreate:r=!0,visible:s,onSuccess:d,disabled:c=!1,projectId:u}=e,{id:p}=(0,F.rY)(e=>e.space),g=(0,l.useMemo)(()=>r?(0,a.jsxs)("div",{className:"w-full flex justify-between items-center pr-[8px]",children:[(0,a.jsx)("div",{children:f.o.t("create_plugin_modal_title1")}),(0,a.jsxs)(v.T,{children:[(0,a.jsx)(J,{onCancel:i,onSuccess:d,projectId:u}),(0,a.jsx)(Y,{onCancel:i,onSuccess:d,projectId:u}),(0,a.jsx)(v.iz,{layout:"vertical",className:"h-5"})]})]}):c?f.o.t("plugin_detail_view_modal_title"):f.o.t("plugin_detail_edit_modal_title"),[r,c]),[m,h]=(0,l.useState)(!1),x=Z(),{formApi:_,extItems:y,headerList:w,isValidCheckResult:k,setIsValidCheckResult:j,pluginTypeCreationMethod:M,defaultRuntime:I}=x;(0,l.useEffect)(()=>{if(!!r)if(s){var e,t=document.querySelector(".create-plugin-modal-content .semi-modal-body");t&&(t.scrollTop=0)}else null==_||null===(e=_.current)||void 0===e||e.reset()},[s]);var N=(t=(0,n._)(function*(){yield null===(e=_.current)||void 0===e?void 0:e.validate();var e,t,n=r?"create":"edit",a=null===(t=_.current)||void 0===t?void 0:t.getValues();if(!!a&&!!M){var l={};null==y||y.forEach(e=>{e.key in a&&(l[e.key]=a[e.key])});var[s,c]=M.split("-"),g=z({val:a,spaceId:String(p),headerList:w,projectId:u,creationMethod:Number(c),defaultRuntime:I,pluginType:Number(s),extItemsJSON:l});try{h(!0);var m=yield({create:()=>D({params:g}),edit:()=>A({params:g,editInfo:o})})[n]();v.FN.success({content:r?f.o.t("Plugin_new_toast_success"):f.o.t("Plugin_update_toast_success"),showClose:!1}),null==i||i(),null==d||d(m)}catch(e){var{code:b,msg:x}=e;Number(b)===B.B.SAFE_CHECK?j(!1):v.FN.error({content:(0,P.u)(x)})}finally{h(!1)}}}),function(){return t.apply(this,arguments)});return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(v.u_,{title:g,className:"[&_.semi-modal-header]:items-center",visible:s,keepDOM:r,onCancel:()=>null==i?void 0:i(),modalContentClass:"create-plugin-modal-content",footer:!c&&(0,a.jsxs)("div",{children:[!k&&(0,a.jsx)("div",{className:R.Z["error-msg-box"],children:(0,a.jsx)("span",{className:R.Z["error-msg"],children:f.o.t("plugin_create_modal_safe_error")})}),(0,a.jsxs)(v.ZT.Paragraph,{type:"secondary",fontSize:"12px",className:"text-start mb-[16px]",children:[(0,a.jsx)(b.DIY,{className:"coz-fg-hglt text-[14px] align-sub"}),(0,a.jsx)("span",{className:"mx-[4px]",children:f.o.t("plugin_create_draft_desc")}),(0,a.jsx)(U.v,{})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(v.zx,{color:"primary",onClick:()=>{null==i||i()},children:f.o.t("create_plugin_modal_button_cancel")}),(0,a.jsx)(v.zx,{loading:m,onClick:()=>{N()},children:f.o.t("create_plugin_modal_button_confirm")})]})]}),children:(0,a.jsx)(L,{pluginState:x,visible:s,isCreate:r,disabled:c,editInfo:o})})})},$=i("664319"),ee=i("228962"),et=i("172742"),ei=e=>{var{modalProps:t}=e,{pluginInfo:i,canEdit:o,unlockPlugin:r,wrapWithCheckLock:n}=(0,ee.RQ)((0,$.N)(e=>({pluginInfo:e.pluginInfo,canEdit:e.canEdit,unlockPlugin:e.unlockPlugin,wrapWithCheckLock:e.wrapWithCheckLock}))),[c,u]=(0,l.useState)(!1),[p,g]=(0,l.useState)(!1),m=(0,l.useMemo)(()=>o?(0,a.jsx)("div",{className:et.Z.actions,children:p?(0,a.jsx)(H.y3,{onClick:()=>{g(!1),r()},children:f.o.t("Cancel")}):(0,a.jsx)(H.y3,{theme:"solid",onClick:n(()=>g(!0)),children:f.o.t("Edit")})}):null,[p,o]);return(0,l.useEffect)(()=>{c&&g(!1)},[c]),{modal:(0,a.jsx)(K,(0,d._)((0,s._)({},t),{isCreate:!1,visible:c,onCancel:()=>{u(!1),r()},disabled:!p||!o,editInfo:i,actions:m})),setShowCodePluginModel:u}},eo=e=>{var t,{modalProps:i}=e,[o,r]=(0,l.useState)({}),[c,u]=(0,l.useState)(!1),[p,g]=(0,l.useState)(!1),[m,h]=(0,l.useState)(!1),b=(null==o?void 0:o.plugin_id)||"",v=(0,l.useMemo)(()=>m?null:(0,a.jsx)("div",{className:et.Z.actions,children:p?(0,a.jsx)(H.y3,{onClick:()=>{g(!1),(0,ee.zO)(b)},children:f.o.t("Cancel")}):(0,a.jsx)(H.y3,{theme:"solid",onClick:(0,n._)(function*(){if(!(yield(0,ee.EA)(b)))g(!0)}),children:f.o.t("Edit")})}),[p,b,m]);(0,l.useEffect)(()=>{c&&g(!1)},[c]);var x=(0,a.jsx)(K,(0,d._)((0,s._)({},i),{editInfo:o,isCreate:!1,visible:c,onCancel:()=>{u(!1),!m&&(0,ee.zO)(b)},disabled:!p,actions:v}));return{modal:x,open:(0,l.useCallback)((t=(0,n._)(function*(e,t){var i,o,n,a,l,s=yield w.Js.GetPluginInfo({plugin_id:e||""});r({plugin_id:e,code_info:{plugin_desc:null===(i=s.code_info)||void 0===i?void 0:i.plugin_desc,openapi_desc:null===(o=s.code_info)||void 0===o?void 0:o.openapi_desc,client_id:null===(n=s.code_info)||void 0===n?void 0:n.client_id,client_secret:null===(a=s.code_info)||void 0===a?void 0:a.client_secret,service_token:null===(l=s.code_info)||void 0===l?void 0:l.service_token}}),h(t),u(!0)}),function(e,i){return t.apply(this,arguments)}),[])}},er=e=>{var{modalProps:t}=e,{pluginInfo:i,canEdit:o,unlockPlugin:r}=(0,ee.RQ)(e=>({pluginInfo:e.pluginInfo,canEdit:e.canEdit,unlockPlugin:e.unlockPlugin})),[n,c]=(0,l.useState)(!1);return{modal:(0,a.jsx)(X,(0,d._)((0,s._)({},t),{isCreate:!1,visible:n,editInfo:i,onCancel:()=>{r(),c(!1)},disabled:!o})),setShowFormPluginModel:c}},en=e=>{var t,i,o,{modalProps:r}=e,{pluginInfo:n,unlockPlugin:c}=(0,ee.RQ)(e=>({pluginInfo:e.pluginInfo,unlockPlugin:e.unlockPlugin})),[u,p]=(0,l.useState)(!1);return{modal:(0,a.jsx)(Q.JI,(0,d._)((0,s._)({},r),{pluginInfo:{pluginID:null==n?void 0:n.plugin_id,pluginName:null==n?void 0:null===(t=n.meta_info)||void 0===t?void 0:t.name,pluginUrl:null==n?void 0:null===(i=n.meta_info)||void 0===i?void 0:i.url,pluginDesc:null==n?void 0:null===(o=n.meta_info)||void 0===o?void 0:o.desc,editVersion:null==n?void 0:n.edit_version},visible:u,onCancel:()=>{c(),p(!1)}})),setShowImportToolModal:p}}},512421:function(e,t,i){i.d(t,{M:()=>a});var o=i("151064"),r=i("455069"),n=i("966219"),a=e=>{var{mode:t,value:i,onChange:a,height:l=500,theme:s="monokai",disabled:d=!1,dataTestID:c}=e,[u,p]=(0,r.useState)(l);return(0,r.useEffect)(()=>{p(l)},[l]),(0,o.jsx)("div",{style:{position:"relative"},"data-testid":c,children:(0,o.jsx)(n.Editor,{options:{readOnly:d},language:t,theme:s,width:"100%",onChange:a,height:u,value:i})})}},786406:function(e,t,i){i.d(t,{JI:()=>eb,iy:()=>eh});var o=i("825955"),r=i("808549"),n=i("120454"),a=i("151064"),l=i("455069"),s=i("287487"),d=i("947578"),c=i("297158"),u=i("336205"),p=i("707107"),g=i("214942"),m=i("775699"),h=i("44172"),f=i("178385"),b=i("382534"),v=i("473980"),x=i("494308"),_=i("64605"),y=i("165882"),w=i("298203"),k=i("727914"),j=i("458949");function M(e){var t=e.lastIndexOf(".");return e.slice(t+1)}function I(){return(I=(0,o._)(function*(e,t){return new Promise((i,o)=>{var r=new FileReader;r.onload=e=>{var t,r=null===(t=e.target)||void 0===t?void 0:t.result;if(!r||"string"!=typeof r){o(new k.sH("normal_error","file read fail"));return}i(r)},r.onprogress=e=>{e.total&&t({total:e.total,loaded:e.loaded})},r.readAsText(e)})})).apply(this,arguments)}function N(){return(N=(0,o._)(function*(e){var t=y.Z.create({responseType:"text"});return(yield t.get(e)).data})).apply(this,arguments)}var T={none:f.Mv.None,service_http:f.Mv.Service,oauth:f.Mv.OAuth},z={Header:f.Ot.Header,Query:f.Ot.Query};function D(e){var{aiPlugin:t,openAPI:i}=e;return{aiPlugin:(0,w.dj)(t||"{}"),openAPI:(0,x.Qc)(i||"")}}function A(e,t){if(void 0!==t){for(var[i,o]of Object.entries(e))if(o===t)return i}}function S(e){switch(e){case j.wL.Curl:return"curl";case j.wL.OpenAPI:return"openapi";case j.wL.Postman:return"postman";case j.wL.Swagger:return"swagger";default:return""}}var E=e=>(0,_.Z)(e)&&"paths_duplicated"in e;function C(e){var{duplicateInfos:t=[],onCancel:i,onOk:o}=e;m.M5.warning({title:u.o.t("duplicate_tools_within_plugin"),content:null==t?void 0:t.map(e=>(0,a.jsx)("div",{children:"".concat(e.method," ").concat(u.o.t("path_has_duplicates",{path:e.path,num:e.count}))})),okText:u.o.t("merge_duplicate_tools"),cancelText:u.o.t("Cancel"),centered:!0,icon:(0,a.jsx)(h.O5N,{}),okButtonProps:{type:"warning"},onOk:o,onCancel:i})}var O=i("75117");function L(){return"cn-boe"}var Z={SAFE_CHECK:0x2aebbb74,DUP_PATH:0x29d916dd},P=["json","yaml"],F=P.map(e=>".".concat(e)),B={environment:L(),workspace_id:"",workspace_type:"",status:1,create_type:"import"},R={environment:L(),workspace_id:"",workspace_type:"",status:1,create_type:"import",plugin_id:""},U=i("3779"),Q={name:[{required:!0,message:u.o.t("create_plugin_modal_name1_error")},{pattern:RegExp("^[\\w\\s\\u4e00-\\u9fa5]+$","u"),message:u.o.t("create_plugin_modal_nameerror_cn")}],desc:[{required:!0,message:u.o.t("create_plugin_modal_descrip1_error")},!1],url:[{required:!0,message:u.o.t("create_plugin_modal_url1_error")}],key:[{required:!0,message:u.o.t("create_plugin_modal_Parameter_error")},{pattern:/^[\x00-\x7F]+$/,message:u.o.t("plugin_Parametename_error")}],service_token:[{required:!0,message:u.o.t("create_plugin_modal_Servicetoken_error")}]},Y=function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var o of e){if(o.value===i)return o;if((null===(t=o.children)||void 0===t?void 0:t.length)>0)return Y(o.children,i)}},V=i("335740"),W=i("824113"),G=i("581259"),H=i("625196"),q=i("153796"),K=e=>{var{disabled:t}=e,i=(0,m.XQ)(),o=i.getValues();return t?(0,a.jsx)(m.l0.Slot,{label:{text:u.o.t("create_plugin_modal_name1"),required:!0},children:(0,a.jsx)("div",{children:null==o?void 0:o.name})}):(0,a.jsx)(m.P6,{field:"name",className:q.Z["textarea-single-line"],label:u.o.t("create_plugin_modal_name1"),placeholder:u.o.t("create_plugin_modal_name2"),trigger:["blur","change"],maxCount:30,maxLength:30,rows:1,onBlur:()=>{var e;i.setValue("name",null===(e=i.getValue("name"))||void 0===e?void 0:e.trim())},rules:Q.name})},J=e=>{var{disabled:t}=e,i=(0,m.XQ)(),o=i.getValues();return t?(0,a.jsx)(m.l0.Slot,{label:{text:u.o.t("create_plugin_modal_descrip1"),required:!0},children:(0,a.jsx)("div",{children:null==o?void 0:o.desc})}):(0,a.jsx)(m.P6,{field:"desc",label:u.o.t("create_plugin_modal_descrip1"),trigger:["blur","change"],placeholder:u.o.t("create_plugin_modal_descrip2"),rows:2,maxCount:600,maxLength:600,onBlur:()=>{var e;i.setValue("desc",null==o?void 0:null===(e=o.desc)||void 0===e?void 0:e.trim())},rules:Q.desc})},X=e=>{var{disabled:t}=e,i=(0,m.XQ)(),o=i.getValues();return t?(0,a.jsx)(m.l0.Slot,{label:{text:u.o.t("create_plugin_modal_url1"),required:!0},children:(0,a.jsx)("div",{children:null==o?void 0:o.url})}):(0,a.jsx)(m.K9,{className:q.Z["textarea-single-line"],trigger:["blur","change"],field:"url",label:u.o.t("create_plugin_modal_url1"),placeholder:u.o.t("create_plugin_modal_url2"),onBlur:()=>{var e;i.setValue("url",null==o?void 0:null===(e=o.url)||void 0===e?void 0:e.trim())},rules:Q.url})},$=(0,m.Q2)(e=>{var{disabled:t,value:i=[],onChange:o}=e,r=e=>{var t=(0,V.Z)(i);t.splice(e,1),null==o||o(t)};return(0,a.jsx)(m.l0.Slot,{className:q.Z["header-list"],label:{text:u.o.t("plugin_create_header_list_title"),align:"right",extra:(0,a.jsxs)("div",{className:q.Z["header-list-extra"],children:[(0,a.jsx)(H.O,{data:G.HW.header_list}),i.length<20&&!t&&(0,a.jsx)(m._3,{size:"large",icon:(0,a.jsx)(h.N_R,{}),onClick:e=>{var t=[...i];t.push(e.name?e:{name:"",value:""}),null==o||o(t)}})]})},children:(0,a.jsxs)("div",{className:q.Z["herder-list-box"],children:[(0,a.jsxs)(m.X2,{className:q.Z["header-row"],gutter:8,children:[(0,a.jsx)(m.JX,{span:9,children:(0,a.jsx)("div",{className:q.Z["header-col-content"],children:"Key"})}),(0,a.jsx)(m.JX,{span:12,children:(0,a.jsx)("div",{className:q.Z["header-col-content"],children:"Value"})}),(0,a.jsx)(m.JX,{span:3,children:(0,a.jsx)("div",{className:q.Z["header-col-content"],style:{textAlign:"right"},children:u.o.t("plugin_create_action_btn")})})]}),(0,a.jsx)("div",{className:q.Z["herder-list-cotent"],children:null==i?void 0:i.map((e,n)=>(0,a.jsxs)(m.X2,{gutter:8,type:"flex",justify:"space-between",align:"middle",children:[(0,a.jsx)(m.JX,{span:9,children:(0,a.jsx)("div",{className:q.Z["col-content"],children:(0,a.jsx)(m.u3,{placeholder:"Name",value:e.name,onChange:e=>{var t=(0,V.Z)(i);t[n].name=e,null==o||o(t)},maxLength:100,disabled:t})})}),(0,a.jsx)(m.JX,{span:12,children:(0,a.jsx)("div",{className:q.Z["col-content"],children:(0,a.jsx)(m.u3,{placeholder:"Value",value:e.value,onChange:e=>{var t=(0,V.Z)(i);t[n].value=e,null==o||o(t)},maxLength:200,disabled:t})})}),(0,a.jsx)(m.JX,{span:3,children:(0,a.jsx)("div",{className:q.Z["col-content"],children:(0,a.jsx)(m._3,{icon:(0,a.jsx)(h.WDf,{}),type:"secondary",disabled:t,onClick:()=>{r(n)}})})})]},n))})]})})},{valueKey:"value",onKeyChangeFnName:"onChange"}),ee=e=>(0,a.jsx)($,(0,n._)((0,r._)({},e),{field:"headerList",label:{text:""}})),et=e=>{var t,i,{disabled:o,authOption:r,onChange:n}=e,l=(0,m.XQ)().getValues();return o?(0,a.jsx)(m.l0.Slot,{label:{text:u.o.t("create_plugin_modal_auth1"),extra:(0,a.jsx)(H.O,{data:G.HW.auth}),required:!0},children:(0,a.jsx)("div",{children:null===(t=Y(r,null==l?void 0:null===(i=l.auth_type)||void 0===i?void 0:i.at(-1)))||void 0===t?void 0:t.label})}):(0,a.jsx)(m.oL.FormItem,{rules:[{required:!0}],style:{width:"100%"},initValue:(null==l?void 0:l.auth_type)||[0],field:"auth_type",label:{text:u.o.t("create_plugin_modal_auth1"),extra:(0,a.jsx)(H.O,{data:G.HW.auth})},placeholder:u.o.t("please_select_an_authorization_method"),treeData:r,displayRender:e=>"".concat(null==e?void 0:e.at(-1)),onChange:e=>{n(e)}})},ei=e=>{var t,i,o,{disabled:r}=e,n=(0,m.XQ)(),l=n.getValues();return(0,a.jsxs)(a.Fragment,{children:[r?(0,a.jsx)(m.l0.Slot,{label:{text:u.o.t("create_plugin_modal_location"),extra:(0,a.jsx)(H.O,{data:G.HW.location}),required:!0},children:(0,a.jsx)("div",{children:null===(t=Y(G.cg,null===(i=n.getValues())||void 0===i?void 0:i.location))||void 0===t?void 0:t.label})}):(0,a.jsx)(m.l0.RadioGroup,{rules:[{required:!0}],field:"location",label:{text:u.o.t("create_plugin_modal_location"),extra:(0,a.jsx)(H.O,{data:G.HW.location})},options:G.cg}),r?(0,a.jsx)(m.l0.Slot,{label:{text:u.o.t("create_plugin_modal_Parameter"),extra:(0,a.jsx)(H.O,{data:G.HW.key}),required:!0},children:(0,a.jsx)("div",{children:null===(o=n.getValues())||void 0===o?void 0:o.key})}):(0,a.jsx)(W.sI,{initValue:null==l?void 0:l.key,trigger:["blur","change"],field:"key",label:{text:u.o.t("create_plugin_modal_Parameter"),extra:(0,a.jsx)(H.O,{data:G.HW.key})},placeholder:u.o.t("create_plugin_modal_Parameter_empty"),maxLength:100,rules:Q.key}),r?(0,a.jsx)(m.l0.Slot,{label:{text:u.o.t("create_plugin_modal_Servicetoken"),extra:(0,a.jsx)(H.O,{data:G.HW.service_token}),required:!0},children:(0,a.jsx)("div",{children:null==l?void 0:l.service_token})}):(0,a.jsx)(W.sI,{initValue:null==l?void 0:l.service_token,trigger:["blur","change"],field:"service_token",label:{text:u.o.t("create_plugin_modal_Servicetoken"),extra:(0,a.jsx)(H.O,{data:G.HW.service_token})},placeholder:u.o.t("create_plugin_modal_Servicetoken_empty"),maxLength:400,rules:Q.service_token})]})},eo=e=>{var{disabled:t,extItems:i}=e,o=(0,m.XQ)().getValues();return(0,a.jsx)(a.Fragment,{children:null==i?void 0:i.map(e=>(0,a.jsx)(a.Fragment,{children:t?(0,a.jsx)(m.l0.Slot,{label:{text:e.key,extra:G.HW[e.key]&&(0,a.jsx)(H.O,{data:G.HW[e.key]}),required:e.required},children:(0,a.jsx)("div",{children:(null==o?void 0:o.oauth_info)?(0,w.dj)(o.oauth_info)[e.key]:null})},e.key):(0,a.jsx)(W.sI,{trigger:["blur","change"],field:e.key,label:{text:e.key,extra:G.HW[e.key]&&(0,a.jsx)(H.O,{data:G.HW[e.key]})},placeholder:G.VF[e.key],initValue:(null==o?void 0:o.oauth_info)&&(0,w.dj)(o.oauth_info)[e.key]||e.default,maxLength:e.max_len,rules:[{required:e.required,message:G.VF[e.key]},"url"===e.type?{pattern:/^(http|https):\/\/.+$/,message:u.o.t("create_plugin_modal_URLerror")}:{pattern:/^[\x00-\x7F]+$/,message:u.o.t("create_plugin_modal_descrip_error")}]},e.key)}))})},er={headerList:[{name:"User-Agent",value:"Coze/1.0"}]},en=e=>{var t,i,s,c,_,{onCancel:y,importInfo:k,visible:M,onSuccess:I,disabled:N=!1,projectId:S}=e,[E,C]=(0,l.useState)([]),[L,P]=(0,l.useState)(!0),[F,R]=(0,l.useState)([]),[Q,V]=(0,l.useState)(!1),W=(null==k?void 0:null===(s=k.metaInfo)||void 0===s?void 0:null===(i=s.common_params)||void 0===i?void 0:i[4])||[],G=k?(0,n._)((0,r._)({},null==k?void 0:k.metaInfo),{headerList:W||[]}):er,H=(0,l.useRef)(),$=null===(_=H.current)||void 0===_?void 0:null===(c=_.getFormState())||void 0===c?void 0:c.values,en=(0,g.rY)(e=>e.space.id);(0,l.useEffect)(()=>{(0,o._)(function*(){var e,t=yield b.nA.GetOAuthSchema();C((e=null==t?void 0:t.oauth_schema,[{label:u.o.t("create_plugin_modal_Authorization_no"),value:0,key:"None"},{label:u.o.t("create_plugin_modal_Authorization_service"),value:1,key:"Service"},{label:u.o.t("create_plugin_modal_Authorization_oauth"),value:3,key:"OAuth",children:(0,w.dj)(e)}]))})()},[]),(0,l.useEffect)(()=>{if(k){var e,t,i;R((null===(e=Y(E,(null===(i=k.metaInfo)||void 0===i?void 0:null===(t=i.auth_type)||void 0===t?void 0:t.at(-1))||0))||void 0===e?void 0:e.items)||[])}else R([])},[E,k]);var ea=(t=(0,o._)(function*(){yield null===(o=H.current)||void 0===o?void 0:o.validate();var e=null===(a=H.current)||void 0===a?void 0:a.getValues();if(!!e){var{openAPI:t,aiPlugin:i}=el(e);try{V(!0);var o,a,l,{data:s}=yield b.Js.RegisterPlugin({ai_plugin:i,openapi:t,plugin_type:j.zV.PLUGIN,client_id:null==e?void 0:e.client_id,client_secret:null==e?void 0:e.client_secret,service_token:null==e?void 0:e.service_token,import_from_file:!0,space_id:en,project_id:S},{__disableErrorToast:!0});m.O$.success(u.o.t("plugin_imported_successfully")),null==y||y(),yield null==I?void 0:I({plugin_id:null==s?void 0:s.plugin_id}),(0,p.Gg)(p.Kg.create_plugin_front,(0,n._)((0,r._)({},(null==k?void 0:null===(l=k.extra)||void 0===l?void 0:l.reportParams)||B),{status:0}))}catch(e){var c,{code:g,msg:h}=e;(0,p.Gg)(p.Kg.create_plugin_front,(0,n._)((0,r._)({},(null==k?void 0:null===(c=k.extra)||void 0===c?void 0:c.reportParams)||B),{status:1,error_message:h})),Number(g)===Z.SAFE_CHECK?P(!1):m.O$.error({content:(0,d.u)(h)})}finally{V(!1)}}}),function(){return t.apply(this,arguments)}),el=e=>{var t,{headerList:i,plugin_uri:o=[]}=e,a=(0,v._)(e,["headerList","plugin_uri"]),l={};return null==F||F.forEach(t=>{t.key in e&&(l[t.key]=e[t.key])}),function(e,t){var{aiPlugin:i,openAPI:o}=D(t),{name:a,desc:l,auth_type:s,common_params:d,location:c,key:u,service_token:p,oauth_info:g,icon:m}=e,h={name_for_human:a,name_for_model:a,description_for_human:l,description_for_model:l,logo_url:null==m?void 0:m.uri,common_params:{header:null==d?void 0:d[f.Pi.Header],body:null==d?void 0:d[f.Pi.Body],path:null==d?void 0:d[f.Pi.Path],query:null==d?void 0:d[f.Pi.Query]},auth:(0,r._)({type:A(T,null==s?void 0:s.at(0)),location:A(z,c),key:u,service_token:p},JSON.parse(g||"{}"))},b=(0,r._)({},i,h),v=(0,n._)((0,r._)({},o||{}),{info:(0,n._)((0,r._)({},(null==o?void 0:o.info)||{}),{title:a,description:l}),servers:[{url:e.url}]});return{aiPlugin:JSON.stringify(b),openAPI:(0,x.Pz)(v)}}((0,n._)((0,r._)({},a),{oauth_info:JSON.stringify(l),icon:{uri:null===(t=o[0])||void 0===t?void 0:t.uid},common_params:{[j.Pi.Header]:(null==e?void 0:e.headerList)||[],[j.Pi.Body]:[],[j.Pi.Path]:[],[j.Pi.Query]:[]}}),{openAPI:null==k?void 0:k.openAPI,aiPlugin:null==k?void 0:k.aiPlugin})};return(0,l.useEffect)(()=>{!L&&P(!0)},[(null==$?void 0:$.name)||(null==$?void 0:$.desc)]),(0,a.jsx)(a.Fragment,{children:M?(0,a.jsx)(m.M5,{type:"action-small",title:u.o.t("confirm_plugin_information"),visible:M,onCancel:()=>null==y?void 0:y(),footer:!N&&(0,a.jsxs)("div",{children:[!L&&(0,a.jsx)("div",{className:q.Z["error-msg-box"],children:(0,a.jsx)("span",{className:q.Z["error-msg"],children:u.o.t("plugin_create_modal_safe_error")})}),(0,a.jsxs)("div",{children:[(0,a.jsx)(m.y3,{type:"tertiary",onClick:()=>{null==y||y()},children:u.o.t("create_plugin_modal_button_cancel")}),(0,a.jsx)(m.y3,{type:"primary",theme:"solid",loading:Q,onClick:()=>{ea()},children:u.o.t("create_plugin_modal_button_confirm")})]})]}),children:(0,a.jsx)(m.l0,{getFormApi:e=>H.current=e,showValidateIcon:!1,initValues:(0,r._)({},G||{}),className:q.Z["upload-form"],children:e=>{var{values:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(O.s,{noLabel:!0,disabled:N,fieldClassName:q.Z["upload-field"],field:"plugin_uri",iconType:f.Tu.Plugin,fileBizType:f.ym.BIZ_PLUGIN_ICON}),(0,a.jsx)(K,{disabled:N}),(0,a.jsx)(J,{disabled:N}),(0,a.jsx)(X,{disabled:!0}),(0,a.jsx)(ee,{disabled:N}),(0,a.jsx)(et,{disabled:N,authOption:E,onChange:e=>{var t;R((null===(t=Y(E,null==e?void 0:e.at(-1)))||void 0===t?void 0:t.items)||[])}}),1===t.auth_type.at(-1)&&(0,a.jsx)(ei,{disabled:N}),(0,a.jsx)(eo,{disabled:N,extItems:F}),!N&&(0,a.jsxs)(m.T,{spacing:8,className:q.Z["footer-draft"],children:[(0,a.jsx)(h.Us8,{style:{fontSize:"16px",color:"#4D53E8"}}),(0,a.jsxs)("span",{children:[u.o.t("plugin_create_draft_desc"),(0,a.jsx)(U.v,{})]})]})]})}})}):null})},ea=i("252237"),el=i.n(ea),es=i("623159"),ed=i("68344"),ec=i("468163"),eu=e=>{var t,{onUpload:i,disabled:r}=e,[n,s]=(0,l.useState)([]);var d=(t=(0,o._)(function*(e){var{onSuccess:t,file:i,onError:o,onProgress:r}=e;if("string"!=typeof i)try{var{name:n,fileInstance:a}=i;if(a){var l=M(n);if(!P.includes(l))return;var s=yield function(e,t){return I.apply(this,arguments)}(a,r);t(s)}}catch(e){c.kg.error({eventName:"fail_to_read_file",error:e}),o({status:0})}}),function(e){return t.apply(this,arguments)});return(0,a.jsx)(m.gq,{accept:F.join(","),action:"",onAcceptInvalid:()=>{m.O$.warning(u.o.t("file_format_not_supported"))},onSuccess:e=>{i(e)},disabled:r,fileList:n,onChange:e=>{var{fileList:t}=e;s(t),!t.length&&i()},className:el()(ec.Z["upload-file-area"],n.length&&ec.Z["drag-area-disabled"]),dragMainText:u.o.t("click_upload_or_drag_files"),draggable:!0,dragSubText:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:u.o.t("supports_uploading_json_or_yaml_files")}),(0,a.jsx)("a",{href:"/open/docs/guides/import",target:"_blank",onClick:e=>e.stopPropagation(),children:u.o.t("view_detailed_information")})]}),renderFileItem:e=>{var{name:t,onRemove:i,onRetry:o,percent:n,status:l}=e;return(0,a.jsxs)("div",{className:el()(ec.Z["upload-file-item"],r&&ec.Z.disabled),children:[(0,a.jsx)(m.Ee,{preview:!1,className:ec.Z["file-icon"],src:"yaml"===M(t)?es:ed}),(0,a.jsx)(m.ZT.Text,{className:ec.Z.text,ellipsis:{showTooltip:{opts:{content:t}}},children:t}),(0,a.jsx)("div",{className:ec.Z.progress,children:(()=>{switch(l){case"success":return(0,a.jsx)(m.ZT.Text,{className:ec.Z["upload-text"],ellipsis:!0,children:u.o.t("file_upload_success")});case"uploadFail":case"validateFail":return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.Ucq,{}),(0,a.jsx)(m.y3,{theme:"borderless",className:"ml-[8px]",onClick:o,children:u.o.t("retry")})]});default:return(0,a.jsx)("div",{className:el()("w-[90px]"),children:(0,a.jsx)(m.Ex,{percent:n})})}})()}),(0,a.jsx)(m._3,{icon:(0,a.jsx)(h.WDf,{className:ec.Z["delete-icon"],onClick:i})})]})},limit:1,customRequest:d})},ep=(0,l.forwardRef)((e,t)=>{var{onChange:i}=e,o=(0,v._)(e,["onChange"]);return(0,a.jsx)(m.Kx,(0,n._)((0,r._)({placeholder:u.o.t("enter_raw_content_or_url"),rows:17},o),{ref:t,onChange:e=>{i(e.trim())},className:ec.Z["text-area"]}))}),eg=i("170992"),em=e=>{var t,{onCancel:i,visible:r,onOk:n,title:s}=e,[d,p]=(0,l.useState)("File"),[g,h]=(0,l.useState)(),[f,b]=(0,l.useState)(),[v,x]=(0,l.useState)(!1),_=(0,l.useRef)(null),y=e=>{h(e)},w=()=>{p("File"),h(void 0)};var k=(t=(0,o._)(function*(){x(!0),b(void 0);var e=g,t="Text"===d?"raw_txt":"file";if("Text"===d&&function(e){try{return!!RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*","i").test(e||"")}catch(e){return!1}}(g))try{e=yield function(e){return N.apply(this,arguments)}(g||""),t="file_url"}catch(e){return c.kg.error({error:e,eventName:"fetch_url_resource_fail"}),b(u.o.t("unable_to_access_input_url")),x(!1),Promise.reject(e)}try{var i=yield null==n?void 0:n({type:t,content:e});!(null==i?void 0:i.success)&&b(null==i?void 0:i.errMsg)}finally{x(!1)}}),function(){return t.apply(this,arguments)});return(0,l.useEffect)(()=>{f&&b(void 0)},[g]),(0,l.useEffect)(()=>{r&&w()},[r]),(0,l.useEffect)(()=>{if("Text"===d&&_.current){var e;null==_||null===(e=_.current)||void 0===e||e.focus()}},[d]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(m.M5,{afterClose:w,keepDOM:!1,type:"action-small",title:s,visible:r,onCancel:i,onOk:k,footer:(0,a.jsx)(m.y3,{theme:"solid",type:"primary",disabled:!g,onClick:k,loading:v,children:u.o.t("next")}),className:eg.Z["import-modal"],children:(0,a.jsxs)("div",{className:"min-h-[472px]",children:[(0,a.jsx)("div",{className:"flex justify-center mb-[24px]",children:(0,a.jsxs)(m.FX,{onChange:e=>{p(e.target.value),h(void 0)},type:"button",buttonSize:"middle",defaultValue:d,disabled:v,className:eg.Z["radio-group"],children:[(0,a.jsx)(m.Y8,{value:"File",children:u.o.t("local_file")}),(0,a.jsx)(m.Y8,{value:"Text",children:u.o.t("url_raw_data")})]})}),(0,a.jsx)("div",{children:"File"===d?(0,a.jsx)(eu,{onUpload:y,disabled:v}):(0,a.jsx)(ep,{onChange:y,disabled:v,ref:_})}),(0,a.jsxs)("div",{className:eg.Z["error-msg"],children:[" ",f?(0,a.jsx)(m.ZT.Text,{ellipsis:{showTooltip:{opts:{content:f}}},children:f}):null]})]})})})},eh=e=>{var{visible:t}=e;return t?(0,a.jsx)(ef,(0,r._)({},e)):null},ef=e=>{var t,i,{onCancel:s,visible:h,onSuccess:x,projectId:_}=e,[y,w]=(0,l.useState)(),{id:k,space_type:j}=(0,g.rY)(e=>e.space),M=(0,l.useRef)(B),I=j===f.Sn.Personal;(0,l.useEffect)(()=>{M.current=(0,n._)((0,r._)({},M.current),{environment:L(),workspace_id:k||"",workspace_type:I?"personal_workspace":"team_workspace",status:1,create_type:"import"})},[k,I]);var N=(t=(0,o._)(function*(e){try{var t,{openapi:i,ai_plugin:a,plugin_data_format:l}=yield b.Js.Convert2OpenAPI(e,{__disableErrorToast:!0}),s=D({aiPlugin:a,openAPI:i}),g=function(e){var t,i,o,r,n,a,{aiPlugin:l,openAPI:s}=e,d=(null==l?void 0:l.auth)||{},{type:c,location:u,key:p,service_token:g}=d,m=(0,v._)(d,["type","location","key","service_token"]);return{name:null==l?void 0:l.name_for_human,desc:null==l?void 0:l.description_for_human,url:null==s?void 0:null===(i=s.servers)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.url,icon:{uri:null==l?void 0:l.logo_url},auth_type:[T[c||"none"]],location:z[u||""],key:p,service_token:g,oauth_info:JSON.stringify(m),common_params:{[f.Pi.Header]:(null==l?void 0:null===(o=l.common_params)||void 0===o?void 0:o.header)||[],[f.Pi.Body]:(null==l?void 0:null===(r=l.common_params)||void 0===r?void 0:r.body)||[],[f.Pi.Path]:(null==l?void 0:null===(n=l.common_params)||void 0===n?void 0:n.path)||[],[f.Pi.Query]:(null==l?void 0:null===(a=l.common_params)||void 0===a?void 0:a.query)||[]}}}(s);return w({aiPlugin:a,openAPI:i,metaInfo:g}),M.current=(0,n._)((0,r._)({},M.current),{import_format_type:S(l),import_tools_count:Object.entries((null==s?void 0:null===(t=s.openAPI)||void 0===t?void 0:t.paths)||{}).length}),{success:!0}}catch(t){var h,x,_,{msg:y,code:k,response:j}=t;if(c.kg.error({error:t,eventName:"plugin_convert_openapi_fail"}),M.current=(0,n._)((0,r._)({},M.current),{import_format_type:S(null==j?void 0:null===(x=j.data)||void 0===x?void 0:x.plugin_data_format),import_tools_count:0}),(0,p.Gg)(p.Kg.create_plugin_front,(0,n._)((0,r._)({},M.current),{status:1,error_message:y})),!(Number(k)===Z.DUP_PATH||E(null==j?void 0:j.data)))return{success:!1,errMsg:y||u.o.t("error")};return C({onOk:(h=(0,o._)(function*(){var{errMsg:t,success:i}=yield N((0,n._)((0,r._)({},e),{merge_same_paths:!0}));if(!i)return m.O$.error({content:(0,d.u)(t||u.o.t("error"))}),Promise.reject(t)}),function(){return h.apply(this,arguments)}),duplicateInfos:null==j?void 0:null===(_=j.data)||void 0===_?void 0:_.duplicate_api_infos}),{success:!1,errMsg:""}}}),function(e){return t.apply(this,arguments)});var A=(i=(0,o._)(function*(e){var{content:t,type:i}=e;return M.current=(0,n._)((0,r._)({},M.current),{import_way_type:i}),yield N({data:t||"",space_id:k,merge_same_paths:!1})}),function(e){return i.apply(this,arguments)});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(em,{title:u.o.t("import_plugin"),visible:h,onCancel:s,onOk:A}),y?(0,a.jsx)(en,{visible:!!y,projectId:_,onCancel:()=>w(void 0),importInfo:{metaInfo:y.metaInfo,openAPI:y.openAPI,aiPlugin:y.aiPlugin,extra:{reportParams:M.current}},onSuccess:e=>{null==s||s(),null==x||x(e)}}):null]})},eb=e=>{var{visible:t}=e;return t?(0,a.jsx)(ev,(0,r._)({},e)):null},ev=e=>{var t,i,v,x,{onCancel:_,visible:y,onSuccess:w,pluginInfo:k}=e,j=(0,l.useRef)(R),{id:M,space_type:I}=(0,g.rY)(e=>e.space),N=I===f.Sn.Personal,T=s.Z.useUserInfo();(0,l.useEffect)(()=>{j.current=(0,n._)((0,r._)({},j.current),{environment:L(),workspace_id:M||"",workspace_type:N?"personal_workspace":"team_workspace",status:1,create_type:"import",plugin_id:(null==k?void 0:k.pluginID)||""})},[null==k?void 0:k.pluginID,M,N]);var z=(t=(0,o._)(function*(e){try{var t,i,o,a=yield b.Js.BatchCreateAPI(e,{__disableErrorToast:!0}),l=(null==e?void 0:e.replace_same_paths)?null==e?void 0:null===(t=e.paths_to_replace)||void 0===t?void 0:t.length:null==a?void 0:null===(i=a.paths_created)||void 0===i?void 0:i.length;(0,p.Gg)(p.Kg.create_plugin_tool_front,(0,n._)((0,r._)({},j.current),{status:0,import_tools_count:l||0})),a&&!(null==a?void 0:null===(o=a.paths_duplicated)||void 0===o?void 0:o.length)&&(m.O$.success((null==e?void 0:e.replace_same_paths)?u.o.t("plugin_tool_replace_success"):u.o.t("plugin_tool_import_succes")),null==_||_(),null==w||w())}catch(t){var s,d,{code:c,response:g}=t;if(Number(c)!==Z.DUP_PATH&&!E(null==g?void 0:g.data))return Promise.reject(t);(0,p.Gg)(p.Kg.create_plugin_tool_front,(0,n._)((0,r._)({},j.current),{status:0,import_tools_count:(null==g?void 0:null===(d=g.data)||void 0===d?void 0:null===(s=d.paths_created)||void 0===s?void 0:s.length)||0})),D(e,null==g?void 0:g.data)}}),function(e){return t.apply(this,arguments)}),D=(e,t)=>{var{paths_created:i=[],paths_duplicated:l=[]}=t||{},s=i.length,c=l.length,g=u.o.t("failed_to_import_tool",{num:c}),f=u.o.t("tools_imported_successfully",{num:s});m.M5.warning({title:s?"".concat(f,", ").concat(g):g,content:c?u.o.t("plugin_tool_exists_tips",{num:c}):null,okText:u.o.t("replace"),cancelText:u.o.t("Cancel"),centered:!0,icon:(0,a.jsx)(h.O5N,{}),okButtonProps:{type:"warning"},onOk:(0,o._)(function*(){var t=(0,n._)((0,r._)({},e),{replace_same_paths:!0,paths_to_replace:l});try{yield z(t)}catch(e){var{msg:i}=e;m.O$.error({content:(0,d.u)(i||u.o.t("error"))}),(0,p.Gg)(p.Kg.create_plugin_tool_front,(0,n._)((0,r._)({},j.current),{import_tools_count:0,status:1,error_message:i||""}))}}),onCancel:s?(0,o._)(function*(){null==_||_(),yield null==w?void 0:w()}):void 0})};var A=(i=(0,o._)(function*(e){return yield b.Js.Convert2OpenAPI((0,n._)((0,r._)({},e),{plugin_description:null==k?void 0:k.pluginDesc}),{__disableErrorToast:!0})}),function(e){return i.apply(this,arguments)});var O=(v=(0,o._)(function*(e){try{var t=yield A(e);j.current=(0,n._)((0,r._)({},j.current),{import_format_type:S(null==t?void 0:t.plugin_data_format)});var i={plugin_id:null==k?void 0:k.pluginID,ai_plugin:null==t?void 0:t.ai_plugin,openapi:null==t?void 0:t.openapi,replace_same_paths:!1,space_id:M,dev_id:null==T?void 0:T.user_id_str,edit_version:null==k?void 0:k.editVersion};return yield z(i),{success:!0}}catch(t){var a,l,s,{msg:g,code:h,response:f}=t;if(c.kg.error({error:t,eventName:"batch_create_fail"}),j.current=(0,n._)((0,r._)({},j.current),{import_format_type:S(null==f?void 0:null===(l=f.data)||void 0===l?void 0:l.plugin_data_format)}),(0,p.Gg)(p.Kg.create_plugin_tool_front,(0,n._)((0,r._)({},j.current),{import_tools_count:0,status:1,error_message:g||""})),!(Number(h)===Z.DUP_PATH||E(null==f?void 0:f.data)))return{success:!1,errMsg:g||u.o.t("error")};return C({onOk:(a=(0,o._)(function*(){var{success:i,errMsg:o}=yield O((0,n._)((0,r._)({},e),{merge_same_paths:!0}));if(!i)return m.O$.error({content:(0,d.u)(o||u.o.t("error"))}),Promise.reject(t)}),function(){return a.apply(this,arguments)}),duplicateInfos:null==f?void 0:null===(s=f.data)||void 0===s?void 0:s.duplicate_api_infos}),{success:!1}}}),function(e){return v.apply(this,arguments)});var P=(x=(0,o._)(function*(e){var{content:t,type:i}=e||{};return j.current=(0,n._)((0,r._)({},j.current),{import_way_type:i}),yield O({data:t||"",plugin_name:null==k?void 0:k.pluginName,plugin_url:null==k?void 0:k.pluginUrl,merge_same_paths:!1,space_id:M})}),function(e){return x.apply(this,arguments)});return(0,a.jsx)(em,{title:u.o.t("import_plugin_tool"),visible:y,onCancel:_,onOk:P})}},3779:function(e,t,i){i.d(t,{v:function(){return l}});var o=i(151064),r=i(455069),n=i(336205),a=i(659596),l=()=>{var e=(0,r.useMemo)(()=>({"zh-CN":"/docs/guides/plugin",en:"/docs/en_guides/en_plugin"})[n.o.language],[]);return(0,o.jsx)(a.ZT.Text,{link:{href:e,target:"_blank"},fontSize:"12px",children:n.o.t("plugin_create_guide_link")})}},746278:function(e,t,i){i.d(t,{FQ:function(){return n},aj:function(){return r}});var o=i(336205),r={id:"0",name:o.o.t("real_data")},n="10000010"},11869:function(e,t,i){i.d(t,{G:function(){return u},dj:function(){return s.dj},nr:function(){return d},sq:function(){return c}});var o=i(473980),r=i(615655),n=i(298203),a=i(824833),l=i(746278),s=i(450599);function d(e){return e.id===l.aj.id}function c(e,t){var{bindSubjectInfo:i,bizCtx:l}=e,{bindSubjectInfo:s,bizCtx:d}=t,c=(0,r.Z)(i,s),u=l||{},{ext:p}=u,g=(0,o._)(u,["ext"]),m=d||{},{ext:h}=m,f=function(e,t){return e.bizSpaceID===t.bizSpaceID&&e.trafficScene===t.trafficScene&&e.trafficCallerID===t.trafficCallerID}(g,(0,o._)(m,["ext"])),b=(null==l?void 0:l.trafficScene)!==a.zE.CozeWorkflowDebug||function(e,t){var i=(0,n.dj)(e||"{}"),o=(0,n.dj)(t||"{}");return(0,r.Z)(i,o)}((null==p?void 0:p.mockSubjectInfo)||"",(null==h?void 0:h.mockSubjectInfo)||"");return c&&f&&b}function u(e){switch(e){case a.zE.CozeSingleAgentDebug:return"bot";case a.zE.CozeMultiAgentDebug:return"agent";case a.zE.CozeWorkflowDebug:return"flow";case a.zE.CozeToolDebug:default:return"bot"}}},773568:function(e,t,i){i.d(t,{M:function(){return a},U:function(){return n}});var o,r,n=((o={}).STRING="string",o.INTEGER="integer",o.NUMBER="number",o.OBJECT="object",o.ARRAY="array",o.BOOLEAN="boolean",o);var a=((r={}).DEFAULT="default",r.REMOVED="removed",r.ADDED="added",r)},450599:function(e,t,i){i.d(t,{Lt:function(){return c},dj:function(){return d},jy:function(){return s}});var o=i(808549),r=i(120454),n=i(583193),a=i(177625),l=i(773568);function s(e){return e?"".concat(e.slice(0,1).toUpperCase()).concat(e.slice(1)):""}function d(e,t){try{return JSON.parse(e)}catch(e){return null==t?void 0:t()}}function c(e,t){var i=void 0===t;if(!e||i)return{result:e,incompatible:!1};var s="string"==typeof t&&d(t)||t,c=function e(t,i,o){var r,a,{defaultStatus:s=l.M.DEFAULT}=o||{},d=u(i);if(!!d){var[c,p]=(r=d,a=i,(0,n.Ki)(r,{getBooleanValue:()=>!!a,getNumberValue:()=>Number(a),getStringValue:()=>String(a)})),g=(null==o?void 0:o.keyPrefix)?"".concat(null==o?void 0:o.keyPrefix,"-").concat(t):t,m={label:t,realValue:c,displayValue:p,isRequired:!1,type:d,status:s,key:g};if(d===l.U.OBJECT){var h=[];for(var f of Object.keys(i))if(f){var b=e(f,i[f],{defaultStatus:s,keyPrefix:g});b&&h.push(b)}m.children=h}if(d===l.U.ARRAY){m.childrenType=u(i[0]);var v=[];for(var x in i)if(void 0!==i[x]){var _=e((0,n.pB)(x),i[x],{defaultStatus:s,keyPrefix:g});_&&v.push(_)}m.children=v}return m}}(a.dz,s,{defaultStatus:l.M.REMOVED}),{merged:p,incompatible:g}=m(e.children,null==c?void 0:c.children,e.type===l.U.ARRAY);return{result:(0,r._)((0,o._)({},e),{children:p}),incompatible:g}}function u(e){var t=typeof e;return e instanceof Array&&(t=l.U.ARRAY),t}function p(e,t){return e===l.U.NUMBER?t===l.U.NUMBER||t===l.U.INTEGER:e===t}function g(e,t){var i=!1,n=(0,r._)((0,o._)({},e),{key:t.key,label:t.label,realValue:t.realValue,displayValue:t.displayValue,status:l.M.DEFAULT});if(t.type===l.U.ARRAY||t.type===l.U.OBJECT){var{merged:a,incompatible:s}=m(e.children,t.children,e.type===l.U.ARRAY);n.children=a,i=i||s}return{result:n,incompatible:i}}function m(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return void 0===e||void 0===t?{merged:[...e||[],...t||[]],incompatible:e!==t}:0===t.length&&i?{merged:[],incompatible:!1}:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1,r=[...t],n=[...e];for(var a in n)!function(e){if(n[e]){var t=n[e],i=r.findIndex(e=>e.label===t.label&&p(e.type,t.type)&&p(e.childrenType,t.childrenType));if(-1!==i){var{result:a,incompatible:l}=g(t,r.splice(i,1)[0]);n[e]=a,o=o||l}else t.isRequired&&(o=!0)}}(a);if(r.length&&i){var l=e[0];r.forEach(e=>{var{result:t,incompatible:i}=g(l,e);n.push(t),o=o||i}),r=[]}return r.length&&(o=!0),{merged:[...n,...r],incompatible:o}}(e,t,i)}},625196:function(e,t,i){i.d(t,{O:()=>l});var o=i("151064"),r=i("455069"),n=i("873183"),a=i("659596"),l=e=>{var{data:t}=e;return(0,o.jsx)(a.u,{showArrow:!0,theme:"dark",position:"right",arrowPointAtCenter:!0,className:"!max-w-[320px]",content:null==t?void 0:t.map((e,t)=>(0,o.jsxs)(r.Fragment,{children:["title"===e.type?(0,o.jsx)(a.ZT.Text,{fontSize:"14px",className:"dark coz-fg-primary",children:e.text}):null,"text"===e.type?(0,o.jsx)(a.ZT.Paragraph,{fontSize:"12px",className:"dark coz-fg-secondary",children:e.text}):null,"br"===e.type?(0,o.jsx)("div",{className:"h-[8px]"}):null,"demo"===e.type?(0,o.jsx)("div",{className:"dark mt-[4px] p-[10px] border border-solid coz-stroke-primary",children:(0,o.jsx)(a.ZT.Paragraph,{fontSize:"12px",className:"dark coz-fg-secondary",children:e.text})}):null]},"".concat(e.type).concat(t))),children:(0,o.jsx)(n.L03,{className:"coz-fg-secondary"})})}},827666:function(e,t,i){i.d(t,{Eo:function(){return _},Fc:function(){return p},Il:function(){return u},JN:function(){return C},Oz:function(){return E},RE:function(){return y},TS:function(){return b},UR:function(){return m},YA:function(){return N},Zo:function(){return D},dT:function(){return h},iq:function(){return S},lR:function(){return A},ls:function(){return f},pq:function(){return v},rN:function(){return x},sp:function(){return g},w5:function(){return j}});var o,r,n=i(808549),a=i(120454),l=i(335740),s=i(336205),d=i(458949),c=i(187151),u="sub_parameters",p="id",g="[Array Item]",m="[Root Item]",h=0,f=1,b=2,v=[{label:"Body",value:d.Pi.Body},{label:"Path",value:d.Pi.Path},{label:"Query",value:d.Pi.Query},{label:"Header",value:d.Pi.Header}];var x=((o={})[o.DEFAULT=10001]="DEFAULT",o[o.IMAGE=10002]="IMAGE",o[o.DOC=10003]="DOC",o[o.CODE=10004]="CODE",o[o.PPT=10005]="PPT",o[o.TXT=10006]="TXT",o[o.EXCEL=10007]="EXCEL",o[o.AUDIO=10008]="AUDIO",o[o.ZIP=10009]="ZIP",o[o.VIDEO=10010]="VIDEO",o),_=e=>e+1e4,y=e=>e-1e4,w=[{label:"String",value:d.rH.String},{label:"Integer",value:d.rH.Integer},{label:"Number",value:d.rH.Number},{label:"Object",value:d.rH.Object},{label:"Array",value:d.rH.Array},{label:"Boolean",value:d.rH.Bool}],k=[{label:"Array<String>",value:d.rH.String},{label:"Array<Integer>",value:d.rH.Integer},{label:"Array<Number>",value:d.rH.Number},{label:"Array<Object>",value:d.rH.Object},{label:"Array<Boolean>",value:d.rH.Bool}],j={10001:{label:"File",listLabel:"Array<File>",fileTypes:[c.Wz.DEFAULT_UNKNOWN]},10002:{label:"Image",listLabel:"Array<Image>",fileTypes:[c.Wz.IMAGE]},10003:{label:"Doc",listLabel:"Array<Doc>",fileTypes:[c.Wz.DOCX,c.Wz.PDF]},10004:{label:"Code",listLabel:"Array<Code>",fileTypes:[c.Wz.CODE]},10005:{label:"PPT",listLabel:"Array<PPT>",fileTypes:[c.Wz.PPT]},10006:{label:"TXT",listLabel:"Array<TXT>",fileTypes:[c.Wz.TXT]},10007:{label:"Excel",listLabel:"Array<Excel>",fileTypes:[c.Wz.EXCEL,c.Wz.CSV]},10008:{label:"Audio",listLabel:"Array<Audio>",fileTypes:[c.Wz.AUDIO]},10009:{label:"Zip",listLabel:"Array<Zip>",fileTypes:[c.Wz.ARCHIVE]},10010:{label:"Video",listLabel:"Array<Video>",fileTypes:[c.Wz.VIDEO]}},M=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)return w;var t=(0,l.Z)(w);return t.splice(1,0,{label:"File",value:10001,children:Object.entries(j).map(e=>{var[t,{label:i}]=e;return{label:i,value:Number(t)}})}),t},I=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)return k;var t=(0,l.Z)(k);return t.splice(1,0,{label:"Array<File>",value:10001,children:Object.entries(j).map(e=>{var[t,{listLabel:i}]=e;return{label:i,value:Number(t)}})}),t},N=(e,t)=>e?I(t):M(t),T=w.reduce((e,t)=>(e[t.value]=t.label,e),(0,a._)((0,n._)({},Object.entries(j).reduce((e,t)=>{var[i,{label:o}]=t;return e[i]=o,e},{})),{10001:"File"})),z=k.reduce((e,t)=>(e[t.value]=t.label,e),(0,a._)((0,n._)({},Object.entries(j).reduce((e,t)=>{var[i,{listLabel:o}]=t;return e[i]=o,e},{})),{10001:"Array<File>"})),D=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?z[e]:T[e]},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.type;return(null==e?void 0:e.assist_type)&&(i=_(e.assist_type)),D(i,t)},S=[{type:"title",text:"Get"},{type:"text",text:s.o.t("plugin_tooltip_url")},{type:"demo",text:"GET /users?userId=123"},{type:"text",text:s.o.t("used_to_obtain_user_information_with_id_123")},{type:"br"},{type:"title",text:"Post"},{type:"text",text:s.o.t("submit_data_to_a_specified_resource__often_used_to_submit_forms_or_upload_files_")},{type:"demo",text:"POST /users"},{type:"text",text:s.o.t("attach_user_data_to_create_a_new_user_")},{type:"title",text:"Put"},{type:"text",text:s.o.t("upload_data_or_resources_to_a_specified_location__often_used_to_update_existing_")},{type:"demo",text:"PUT /users/123"},{type:"text",text:s.o.t("used_to_update_user_information_with_id_123_")},{type:"title",text:"Delete"},{type:"text",text:s.o.t("requests_the_server_to_delete_the_specified_resource__example_")},{type:"demo",text:"DELETE /users/123"},{type:"text",text:s.o.t("used_to_delete_the_user_with_id_123_")},{type:"title",text:s.o.t("Create_tool_s1_method_patch_tooltip_title")},{type:"text",text:s.o.t("Create_tool_s1_method_patch_tooltip_desp")},{type:"demo",text:s.o.t("Create_tool_s1_method_patch_tooltip_url")},{type:"text",text:s.o.t("Create_tool_s1_method_patch_tooltip_explain")}];var E=((r={})[r.NO_ERROR=0]="NO_ERROR",r[r.NAME_EMPTY=1]="NAME_EMPTY",r[r.CHINESE=2]="CHINESE",r[r.REPEAT=3]="REPEAT",r[r.ASCII=4]="ASCII",r[r.DESC_EMPTY=5]="DESC_EMPTY",r),C={0:"",1:s.o.t("Create_newtool_s2_table_name_error1"),2:s.o.t("Create_newtool_s2_table_name_error2"),3:s.o.t("plugin_Parameter_name_error"),4:s.o.t("create_plugin_modal_descrip_error"),5:s.o.t("Create_newtool_s3_table_des_empty")}},851645:function(e,t,i){i.d(t,{y:function(){return h}});var o=i(825955),r=i(151064),n=i(455069),a=i(947578),l=i(336205),s=i(775699),d=i(458949),c=i(382534),u=i(577413),p=i(900021),g=i(252793),m=i(541509),h=e=>{var t,{requestParams:i=[],pluginId:h,apiId:f,operation:b=1,btnText:v=l.o.t("Create_newtool_s4_run"),callback:x,disabled:_,debugExampleStatus:y=d.ji.Default,showExampleTag:w=!1,pluginType:k}=e,[j,M]=(0,n.useState)(!1),[I,N]=(0,n.useState)(0),T=(0,n.useRef)(null);var z=(t=(0,o._)(function*(){N(I+1),yield(0,u._v)(100);var e,t,i,o=document.getElementsByClassName("errorDebugClassTag");if(!f||o.length>0)return(0,u.$S)(".errorDebugClassTag"),s.FN.error({content:(0,a.u)(l.o.t("tool_new_S2_feedback_failed")),duration:3,theme:"light",showClose:!1}),!1;var r={};M(!0),Array.isArray(null===(e=T.current)||void 0===e?void 0:e.data)&&((null===(t=T.current)||void 0===t?void 0:t.data)||[]).length>0&&(r=(0,u.SR)(null===(i=T.current)||void 0===i?void 0:i.data));try{var n=yield c.Js.DebugAPI({plugin_id:h,api_id:f,parameters:JSON.stringify(r),operation:b});null==x||x({status:n.success?p.Q.PASS:p.Q.FAIL,request:n.raw_req,response:n.resp,failReason:n.reason,response_params:n.response_params,rawResp:n.raw_resp})}catch(e){null==x||x({status:p.Q.FAIL,request:JSON.stringify(r,null,2),response:l.o.t("plugin_exception"),failReason:l.o.t("plugin_exception")})}M(!1)}),function(){return t.apply(this,arguments)}),D=(0,n.useMemo)(()=>(0,u.qE)(i),[i]);return(0,r.jsxs)("div",{className:g.Z["debug-params-box"],children:[(0,r.jsx)(m.Z,{height:443,ref:T,requestParams:D,defaultKey:"global_default",disabled:_,check:I,debugExampleStatus:y,showExampleTag:w,supportFileTypeUpload:!0}),!_&&(0,r.jsx)("div",{className:g.Z.runbtn,children:(0,r.jsxs)(s.y3,{disabled:_||k===d.zV.LOCAL,style:{width:98},loading:j,type:"tertiary",onClick:z,children:[v===l.o.t("Create_newtool_s3_button_auto")&&(j?l.o.t("plugin_s3_Parsing"):l.o.t("Create_newtool_s3_button_auto")),v===l.o.t("Create_newtool_s4_run")&&(j?l.o.t("plugin_s3_running"):l.o.t("Create_newtool_s4_run"))]})})]})}},541509:function(e,t,i){i.d(t,{Z:()=>ed});var o=i("808549"),r=i("120454"),n=i("151064"),a=i("455069"),l=i("335740"),s=i("962289"),d=i("671261"),c=i("336205"),u=i("659596"),p=i("775699"),g=i("44172"),m=i("458949"),h=i("805366");let f=(0,h.A)(function(e){return a.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 5V4h4v1h-4ZM8 5V3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2h4a1 1 0 1 1 0 2h-1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V7H4a1 1 0 0 1 0-2h4Zm7 2H7v13h10V7h-2ZM9 9.5c0-.28.22-.5.5-.5h1c.28 0 .5.22.5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7Zm4 0c0-.28.22-.5.5-.5h1c.28 0 .5.22.5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7Z",fill:"currentColor"}))},"delete_stroked");var b=i("71569"),v=i("577413"),x=i("827666"),_=e=>e.global_disable?"disable":"normal",y=i("252237"),w=i.n(y),k=i("407821"),j=i.n(k),M=i("472772"),I=i.n(M),N=i("395245"),T=i.n(N),z=i("297998"),D=i.n(z),A=i("646576"),S=i.n(A),E=i("606121"),C=i.n(E),O=i("216599"),L={};L.styleTagTransform=C(),L.setAttributes=D(),L.insert=T().bind(null,"head"),L.domAPI=I(),L.insertStyleElement=S(),j()(O.Z,L);var Z=O.Z&&O.Z.locals?O.Z.locals:void 0,P=e=>{var{withDescription:t=!1,tip:i=c.o.t("plugin_empty")}=e;return(0,n.jsx)("div",{className:Z["check-box"],children:(0,n.jsx)("span",{className:w()("whitespace-nowrap",Z["form-check-tip"],t?"!top-[16px]":"!top-0","errorDebugClassTag"),children:i})})},F=i("187151"),B=i("372707"),R={label:c.o.t("shortcut_modal_upload_component_file_format_table"),icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAzMiA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Imljb24iPgo8cGF0aCBpZD0iUmVjdGFuZ2xlIDI1MjYiIGQ9Ik0xIDQuOTk5OTZDMSAzLjE1OTAxIDIuNDkyMzggMS42NjY2MyA0LjMzMzMzIDEuNjY2NjNIMjAuMzA5NkMyMC43NTE3IDEuNjY2NjMgMjEuMTc1NiAxLjg0MjIyIDIxLjQ4ODIgMi4xNTQ3OEwzMC41MTE4IDExLjE3ODVDMzAuODI0NCAxMS40OTEgMzEgMTEuOTE1IDMxIDEyLjM1N1YzNUMzMSAzNi44NDA5IDI5LjUwNzYgMzguMzMzMyAyNy42NjY3IDM4LjMzMzNINC4zMzMzM0MyLjQ5MjM4IDM4LjMzMzMgMSAzNi44NDA5IDEgMzVWNC45OTk5NloiIGZpbGw9IiMzMkE2NDUiLz4KPHBhdGggaWQ9IlJlY3RhbmdsZSAyNTI3IiBvcGFjaXR5PSIwLjkiIGQ9Ik0yMSAyLjI3MDE4QzIxIDIuMDQ3NDUgMjEuMjY5MyAxLjkzNTkxIDIxLjQyNjggMi4wOTM0TDMwLjU3MzIgMTEuMjM5OEMzMC43MzA3IDExLjM5NzMgMzAuNjE5MiAxMS42NjY2IDMwLjM5NjQgMTEuNjY2NkgyNC4zMzMzQzIyLjQ5MjQgMTEuNjY2NiAyMSAxMC4xNzQyIDIxIDguMzMzMjlWMi4yNzAxOFoiIGZpbGw9IiMyNTg4MzIiLz4KPHBhdGggaWQ9Imljb25fZmlsZV9leGNlbF9ub3IiIGQ9Ik0xMC4yNDQzIDE2LjUxNTFIMTIuMDY0QzEyLjE0NDcgMTYuNTE1MSAxMi4yMjAyIDE2LjU1NDggMTIuMjY2IDE2LjYyMTJMMTUuNzYzNyAyMS42ODk4TDE5LjI3OTggMTYuNjIwN0MxOS4zMjU2IDE2LjU1NDYgMTkuNDAxIDE2LjUxNTEgMTkuNDgxNSAxNi41MTUxSDIxLjMwMDlDMjEuNDM2NSAxNi41MTUxIDIxLjU0NjQgMTYuNjI1IDIxLjU0NjQgMTYuNzYwNkMyMS41NDY0IDE2LjgxMTcgMjEuNTMwNCAxNi44NjE1IDIxLjUwMDggMTYuOTAzMUwxNi45NDU4IDIzLjI5MjVMMjEuODYzMiAzMC4yMTg1QzIxLjk0MTYgMzAuMzI5IDIxLjkxNTYgMzAuNDgyMyAyMS44MDUxIDMwLjU2MDdDMjEuNzYzNiAzMC41OTAyIDIxLjcxMzkgMzAuNjA2IDIxLjY2MyAzMC42MDZIMTkuODQzNEMxOS43NjI4IDMwLjYwNiAxOS42ODc0IDMwLjU2NjUgMTkuNjQxNiAzMC41MDAyTDE1Ljc2MzYgMjQuODk1NEwxMS45MDQyIDMwLjQ5OThDMTEuODU4NCAzMC41NjYzIDExLjc4MjggMzAuNjA2IDExLjcwMjEgMzAuNjA2SDkuODgyMTdDOS43NDY2MSAzMC42MDYgOS42MzY3MiAzMC40OTYyIDkuNjM2NzIgMzAuMzYwNkM5LjYzNjcyIDMwLjMxIDkuNjUyMzcgMzAuMjYwNiA5LjY4MTUzIDMwLjIxOTJMMTQuNTYyMyAyMy4yOTI1TDEwLjA0MzggMTYuOTAyM0M5Ljk2NTU4IDE2Ljc5MTYgOS45OTE4NiAxNi42Mzg0IDEwLjEwMjUgMTYuNTYwMkMxMC4xNDQgMTYuNTMwOSAxMC4xOTM1IDE2LjUxNTEgMTAuMjQ0MyAxNi41MTUxWiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L3N2Zz4K"},U={label:c.o.t("shortcut_modal_upload_component_file_format_doc"),icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAzMiA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Imljb24iPgo8cGF0aCBpZD0iUmVjdGFuZ2xlIDI1MjgiIGQ9Ik00IDQuOTk5OTdDNCAzLjE1OTAyIDUuMTkzOTEgMS42NjY2NCA2LjY2NjY3IDEuNjY2NjRIMTkuNDQ3N0MxOS44MDEzIDEuNjY2NjQgMjAuMTQwNSAxLjg0MjI0IDIwLjM5MDUgMi4xNTQ4TDI3LjYwOTUgMTEuMTc4NUMyNy44NTk1IDExLjQ5MSAyOCAxMS45MTUgMjggMTIuMzU3VjM1QzI4IDM2Ljg0MDkgMjYuODA2MSAzOC4zMzMzIDI1LjMzMzMgMzguMzMzM0g2LjY2NjY3QzUuMTkzOTEgMzguMzMzMyA0IDM2Ljg0MDkgNCAzNVY0Ljk5OTk3WiIgZmlsbD0iIzMzNkRGNCIvPgo8cGF0aCBpZD0iUmVjdGFuZ2xlIDI1MzAiIGQ9Ik0xIDQuOTk5OTdDMSAzLjE1OTAyIDIuNDkyMzggMS42NjY2NCA0LjMzMzMzIDEuNjY2NjRIMjAuMzA5NkMyMC43NTE3IDEuNjY2NjQgMjEuMTc1NiAxLjg0MjI0IDIxLjQ4ODIgMi4xNTQ4TDMwLjUxMTggMTEuMTc4NUMzMC44MjQ0IDExLjQ5MSAzMSAxMS45MTUgMzEgMTIuMzU3VjM1QzMxIDM2Ljg0MDkgMjkuNTA3NiAzOC4zMzMzIDI3LjY2NjcgMzguMzMzM0g0LjMzMzMzQzIuNDkyMzggMzguMzMzMyAxIDM2Ljg0MDkgMSAzNVY0Ljk5OTk3WiIgZmlsbD0iIzMzNkRGNCIvPgo8cGF0aCBpZD0iUmVjdGFuZ2xlIDI1MzEiIG9wYWNpdHk9IjAuNyIgZD0iTTIxIDIuMjcwMTlDMjEgMi4wNDc0NyAyMS4yNjkzIDEuOTM1OTMgMjEuNDI2OCAyLjA5MzQyTDMwLjU3MzIgMTEuMjM5OUMzMC43MzA3IDExLjM5NzQgMzAuNjE5MiAxMS42NjY2IDMwLjM5NjQgMTEuNjY2NkgyNC4zMzMzQzIyLjQ5MjQgMTEuNjY2NiAyMSAxMC4xNzQzIDIxIDguMzMzMzFWMi4yNzAxOVoiIGZpbGw9IiMwNDQyRDIiLz4KPHBhdGggaWQ9Imljb25fZmlsZV93b3JkX25vciIgZD0iTTE2LjAwNzQgMjAuNDE1OEwxMy41NDk5IDI5LjUxQzEzLjUyIDI5LjYyMDQgMTMuNDE5OSAyOS42OTcgMTMuMzA1NiAyOS42OTdIMTEuODU4MUMxMS43NDQ5IDI5LjY5NyAxMS42NDU1IDI5LjYyMTkgMTEuNjE0NyAyOS41MTNMOC4yODIxIDE3Ljc0NjNDOC4yNDQwMiAxNy42MTE5IDguMzIyMTUgMTcuNDcyIDguNDU2NjIgMTcuNDMzOUM4LjQ3OTA1IDE3LjQyNzUgOC41MDIyNiAxNy40MjQzIDguNTI1NTcgMTcuNDI0M0g5Ljk3NzE5QzEwLjA5MjYgMTcuNDI0MyAxMC4xOTMzIDE3LjUwMjMgMTAuMjIyMiAxNy42MTRMMTIuNTkzNyAyNi43ODYzTDE1LjA1NjQgMTcuNjExOEMxNS4wODYgMTcuNTAxMiAxNS4xODYzIDE3LjQyNDMgMTUuMzAwOCAxNy40MjQzSDE2LjcxNTNDMTYuODI5OSAxNy40MjQzIDE2LjkzMDIgMTcuNTAxNCAxNi45NTk4IDE3LjYxMjFMMTkuNDA2NyAyNi43ODRMMjEuNzc3NiAxNy42MTRDMjEuODA2NCAxNy41MDIzIDIxLjkwNzIgMTcuNDI0MyAyMi4wMjI2IDE3LjQyNDNIMjMuNDc0MkMyMy42MTM5IDE3LjQyNDMgMjMuNzI3MiAxNy41Mzc2IDIzLjcyNzIgMTcuNjc3NEMyMy43MjcyIDE3LjcwMDcgMjMuNzI0IDE3LjcyMzkgMjMuNzE3NyAxNy43NDYzTDIwLjM4NTEgMjkuNTEzQzIwLjM1NDIgMjkuNjIxOSAyMC4yNTQ4IDI5LjY5NyAyMC4xNDE2IDI5LjY5N0gxOC42OTQyQzE4LjU3OTcgMjkuNjk3IDE4LjQ3OTUgMjkuNjIwMiAxOC40NDk4IDI5LjUwOTZMMTYuMDA3NCAyMC40MTU4WiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L3N2Zz4K"},Q={[B.W.IMAGE]:{label:c.o.t("shortcut_modal_upload_component_file_format_img"),icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAzMiA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Imljb24iPgo8cGF0aCBpZD0iUmVjdGFuZ2xlIDI1MjgiIGQ9Ik0xIDQuOTk5OTZDMSAzLjE1OTAxIDIuNDkyMzggMS42NjY2MyA0LjMzMzMzIDEuNjY2NjNIMjAuMzA5NkMyMC43NTE3IDEuNjY2NjMgMjEuMTc1NiAxLjg0MjIyIDIxLjQ4ODIgMi4xNTQ3OEwzMC41MTE4IDExLjE3ODVDMzAuODI0NCAxMS40OTEgMzEgMTEuOTE1IDMxIDEyLjM1N1YzNUMzMSAzNi44NDA5IDI5LjUwNzYgMzguMzMzMyAyNy42NjY3IDM4LjMzMzNINC4zMzMzM0MyLjQ5MjM4IDM4LjMzMzMgMSAzNi44NDA5IDEgMzVWNC45OTk5NloiIGZpbGw9IiNGRkM2MEEiLz4KPHBhdGggaWQ9IlJlY3RhbmdsZSAyNTI5IiBvcGFjaXR5PSIwLjgiIGQ9Ik0yMSAyLjI3MDE4QzIxIDIuMDQ3NDUgMjEuMjY5MyAxLjkzNTkxIDIxLjQyNjggMi4wOTM0TDMwLjU3MzIgMTEuMjM5OEMzMC43MzA3IDExLjM5NzMgMzAuNjE5MiAxMS42NjY2IDMwLjM5NjQgMTEuNjY2NkgyNC4zMzMzQzIyLjQ5MjQgMTEuNjY2NiAyMSAxMC4xNzQyIDIxIDguMzMzMjlWMi4yNzAxOFoiIGZpbGw9IiNEOTk5MDQiLz4KPGcgaWQ9IiYjMjI5OyYjMTg5OyYjMTYyOyYjMjMxOyYjMTM4OyYjMTgyOyYjMjMxOyYjMTg3OyYjMTQ3OyYjMjI5OyYjMTQ0OyYjMTM2OyI+CjxwYXRoIGQ9Ik05Ljk1MzEyIDE2LjY2NjZDOS4wMzI2NSAxNi42NjY2IDguMjg2NDYgMTcuNDEyOCA4LjI4NjQ2IDE4LjMzMzNWMTguNjM2M0M4LjI4NjQ2IDE5LjU1NjggOS4wMzI2NSAyMC4zMDMgOS45NTMxMiAyMC4zMDNIMTAuMjU2MkMxMS4xNzY2IDIwLjMwMyAxMS45MjI4IDE5LjU1NjggMTEuOTIyOCAxOC42MzYzVjE4LjMzMzNDMTEuOTIyOCAxNy40MTI4IDExLjE3NjYgMTYuNjY2NiAxMC4yNTYyIDE2LjY2NjZIOS45NTMxMloiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yMy44MjU0IDIxLjI2NjNDMjQuNDQzNCAyMC41OTg5IDI1LjU1OTIgMjEuMDM2MiAyNS41NTkyIDIxLjk0NTdWMzAuODMzM0MyNS41NTkyIDMxLjI5MzUgMjUuMTg2MSAzMS42NjY2IDI0LjcyNTkgMzEuNjY2Nkw4LjMzNDk0IDMxLjY2NjZDNy43Njg3OSAzMS42NjY2IDcuNDYwMzMgMzEuMDA1NSA3LjgyNDA1IDMwLjU3MTZMMTIuNyAyNC43NTU0QzEzLjM2NjEgMjMuOTYwOSAxNC41ODgzIDIzLjk2MDkgMTUuMjU0NCAyNC43NTU0TDE3Ljc5MiAyNy43ODI0TDIzLjgyNTQgMjEuMjY2M1oiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9nPgo8L3N2Zz4K"},[B.W.EXCEL]:R,[B.W.CSV]:R,[B.W.PDF]:U,[B.W.DOCX]:U,[B.W.DEFAULT_UNKNOWN]:{label:c.o.t("plugin_file_unknown"),icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAzMiA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Imljb24iPgo8cGF0aCBpZD0iUmVjdGFuZ2xlIDI1MzAiIG9wYWNpdHk9IjAuOSIgZD0iTTEgNC45OTk5N0MxIDMuMTU5MDIgMi40OTIzOCAxLjY2NjY0IDQuMzMzMzMgMS42NjY2NEgyMC4zMDk2QzIwLjc1MTcgMS42NjY2NCAyMS4xNzU2IDEuODQyMjQgMjEuNDg4MiAyLjE1NDhMMzAuNTExOCAxMS4xNzg1QzMwLjgyNDQgMTEuNDkxIDMxIDExLjkxNSAzMSAxMi4zNTdWMzVDMzEgMzYuODQwOSAyOS41MDc2IDM4LjMzMzMgMjcuNjY2NyAzOC4zMzMzSDQuMzMzMzNDMi40OTIzOCAzOC4zMzMzIDEgMzYuODQwOSAxIDM1VjQuOTk5OTdaIiBmaWxsPSIjOEY5NTlFIi8+CjxwYXRoIGlkPSJSZWN0YW5nbGUgMjUzMSIgb3BhY2l0eT0iMC42IiBkPSJNMjEgMi4yNzAxOUMyMSAyLjA0NzQ3IDIxLjI2OTMgMS45MzU5MyAyMS40MjY4IDIuMDkzNDJMMzAuNTczMiAxMS4yMzk5QzMwLjczMDcgMTEuMzk3NCAzMC42MTkyIDExLjY2NjYgMzAuMzk2NCAxMS42NjY2SDI0LjMzMzNDMjIuNDkyNCAxMS42NjY2IDIxIDEwLjE3NDMgMjEgOC4zMzMzMVYyLjI3MDE5WiIgZmlsbD0iIzY0NkE3MyIvPgo8cGF0aCBpZD0iJiMyMzk7JiMxODg7JiMxNTk7IiBkPSJNMTkuODEzNiAxNi40NDA3QzE4LjkwNCAxNS41NzkgMTcuNzEwMyAxNS4xNTE0IDE2LjIyNTggMTUuMTUxNEMxNC41NTgxIDE1LjE1MTQgMTMuMjUxMSAxNS42ODYgMTIuMzA0MiAxNi43NzVDMTEuNTAyMSAxNy43MTA4IDExLjA3IDE4LjYwNzcgMTEuMDA4MiAyMC4wMjE3QzExLjAwNjcgMjAuMDU1IDExLjAwNTUgMjAuMTE2MiAxMS4wMDQ0IDIwLjE4N0MxMS4wMDEgMjAuNDE3OSAxMS4xODg0IDIwLjYwNTkgMTEuNDE5NSAyMC42MDU5SDEyLjQwNDVDMTIuNjMzNyAyMC42MDU5IDEyLjgxOTIgMjAuNDIwOSAxMi44MjMgMjAuMTkxOEMxMi44MjQyIDIwLjEyMjggMTIuODI1NSAyMC4wNjMzIDEyLjgyNzEgMjAuMDMxNUMxMi44NzU1IDE5LjA1NDcgMTMuMTMwMyAxOC41NDM2IDEzLjU4NSAxNy45NzUyQzE0LjE1OTIgMTcuMjA5OCAxNS4wMDE0IDE2LjgzMzIgMTYuMTU3NiAxNi44MzMyQzE3LjE4OTMgMTYuODMzMiAxNy45NjI5IDE3LjA5NjMgMTguNDk2OSAxNy42MzAzQzE5LjAwNTggMTguMTYwNSAxOS4yNzEyIDE4Ljg4MjMgMTkuMjcxMiAxOS43ODc3QzE5LjI3MTIgMjAuNDA1OCAxOS4wNDcyIDIwLjk5NDUgMTguNTkxOCAyMS41OEMxOC40NDY3IDIxLjc2MTMgMTguMjM3OCAyMS45NzcgMTcuNTY1IDIyLjY0OThDMTYuNTAyMiAyMy41NzkgMTUuODQ1OCAyNC4zMzQ5IDE1LjQ5OTEgMjUuMDc4QzE1LjIxNCAyNS42NDggMTUuMDY4NyAyNi4yOTU5IDE1LjA2ODcgMjYuOTkyM1YyNy40NjJDMTUuMDY4NyAyNy42OTIxIDE1LjI1NTIgMjcuODc4NiAxNS40ODUzIDI3Ljg3ODZIMTYuNDkyOUMxNi43MjMgMjcuODc4NiAxNi45MDk2IDI3LjY5MjEgMTYuOTA5NiAyNy40NjJWMjYuOTkyM0MxNi45MDk2IDI2LjQwMjEgMTcuMDU0OSAyNS44NzI4IDE3LjM1NTkgMjUuMzU2OEMxNy41ODEzIDI0Ljk3MzYgMTcuODcwOCAyNC42NzMgMTguMzc1NCAyNC4yMzE1QzE5LjM4NzIgMjMuMzE2MSAxOS45NDg1IDIyLjc3MDggMjAuMTk5OSAyMi40NTA5QzIwLjgwMzggMjEuNjUzOCAyMS4xMTIxIDIwLjc0MDkgMjEuMTEyMSAxOS43NDIzQzIxLjExMjEgMTguMzY0MSAyMC42Nzk0IDE3LjI1ODQgMTkuODEzNiAxNi40NDA3Wk0xNS41MDgxIDI5LjY5NjhDMTUuMjc3OSAyOS42OTY4IDE1LjA5MTQgMjkuODgzNCAxNS4wOTE0IDMwLjExMzVWMzEuMDk4M0MxNS4wOTE0IDMxLjMyODUgMTUuMjc3OSAzMS41MTUgMTUuNTA4MSAzMS41MTVIMTYuNDkyOUMxNi43MjMgMzEuNTE1IDE2LjkwOTYgMzEuMzI4NSAxNi45MDk2IDMxLjA5ODNWMzAuMTEzNUMxNi45MDk2IDI5Ljg4MzQgMTYuNzIzIDI5LjY5NjggMTYuNDkyOSAyOS42OTY4SDE1LjUwODFaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+Cjwvc3ZnPgo="},[B.W.AUDIO]:{label:c.o.t("shortcut_modal_upload_component_file_format_audio"),icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAzMiA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Imljb24iPgo8cGF0aCBpZD0iUmVjdGFuZ2xlIDI1MjYiIGQ9Ik0xIDQuOTk5OTZDMSAzLjE1OTAxIDIuNDkyMzggMS42NjY2MyA0LjMzMzMzIDEuNjY2NjNIMjAuMzA5NkMyMC43NTE3IDEuNjY2NjMgMjEuMTc1NiAxLjg0MjIyIDIxLjQ4ODIgMi4xNTQ3OEwzMC41MTE4IDExLjE3ODVDMzAuODI0NCAxMS40OTEgMzEgMTEuOTE1IDMxIDEyLjM1N1YzNUMzMSAzNi44NDA5IDI5LjUwNzYgMzguMzMzMyAyNy42NjY3IDM4LjMzMzNINC4zMzMzM0MyLjQ5MjM4IDM4LjMzMzMgMSAzNi44NDA5IDEgMzVWNC45OTk5NloiIGZpbGw9IiMzMkE2NDUiLz4KPHBhdGggaWQ9IlJlY3RhbmdsZSAyNTI3IiBvcGFjaXR5PSIwLjkiIGQ9Ik0yMSAyLjI3MDE4QzIxIDIuMDQ3NDUgMjEuMjY5MyAxLjkzNTkxIDIxLjQyNjggMi4wOTM0TDMwLjU3MzIgMTEuMjM5OEMzMC43MzA3IDExLjM5NzMgMzAuNjE5MiAxMS42NjY2IDMwLjM5NjQgMTEuNjY2NkgyNC4zMzMzQzIyLjQ5MjQgMTEuNjY2NiAyMSAxMC4xNzQyIDIxIDguMzMzMjlWMi4yNzAxOFoiIGZpbGw9IiMyNTg4MzIiLz4KPHBhdGggaWQ9Im11c2ljX25vdGUiIGQ9Ik0xMy4wODMzIDMxLjI1QzEyLjE2NjcgMzEuMjUgMTEuMzgxOSAzMC45MjM2IDEwLjcyOTIgMzAuMjcwOEMxMC4wNzY0IDI5LjYxODEgOS43NSAyOC44MzMzIDkuNzUgMjcuOTE2N0M5Ljc1IDI3IDEwLjA3NjQgMjYuMjE1MyAxMC43MjkyIDI1LjU2MjVDMTEuMzgxOSAyNC45MDk3IDEyLjE2NjcgMjQuNTgzMyAxMy4wODMzIDI0LjU4MzNDMTMuNDAyOCAyNC41ODMzIDEzLjY5NzkgMjQuNjIxNSAxMy45Njg4IDI0LjY5NzlDMTQuMjM5NiAyNC43NzQzIDE0LjUgMjQuODg4OSAxNC43NSAyNS4wNDE3VjE3LjVDMTQuNzUgMTYuODA5NiAxNS4zMDk2IDE2LjI1IDE2IDE2LjI1SDIxVjE4Ljc1SDE3LjA0MTdDMTYuNjk2NSAxOC43NSAxNi40MTY3IDE5LjAyOTggMTYuNDE2NyAxOS4zNzVWMjcuOTE2N0MxNi40MTY3IDI4LjgzMzMgMTYuMDkwMyAyOS42MTgxIDE1LjQzNzUgMzAuMjcwOEMxNC43ODQ3IDMwLjkyMzYgMTQgMzEuMjUgMTMuMDgzMyAzMS4yNVoiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg=="},[B.W.CODE]:{label:c.o.t("shortcut_modal_upload_component_file_format_code"),icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAzMiA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Imljb24iPgo8cGF0aCBpZD0iUmVjdGFuZ2xlIDI1MjgiIGQ9Ik0xIDUuMDAwMDhDMSAzLjE1OTEzIDIuNDkyMzggMS42NjY3NSA0LjMzMzMzIDEuNjY2NzVIMjAuMzA5NkMyMC43NTE3IDEuNjY2NzUgMjEuMTc1NiAxLjg0MjM0IDIxLjQ4ODIgMi4xNTQ5TDMwLjUxMTggMTEuMTc4NkMzMC44MjQ0IDExLjQ5MTIgMzEgMTEuOTE1MSAzMSAxMi4zNTcxVjM1LjAwMDFDMzEgMzYuODQxIDI5LjUwNzYgMzguMzMzNCAyNy42NjY3IDM4LjMzMzRINC4zMzMzM0MyLjQ5MjM4IDM4LjMzMzQgMSAzNi44NDEgMSAzNS4wMDAxVjUuMDAwMDhaIiBmaWxsPSIjMzM2REY0Ii8+CjxwYXRoIGlkPSJSZWN0YW5nbGUgMjUyOSIgb3BhY2l0eT0iMC43IiBkPSJNMjEgMi4yNzAzQzIxIDIuMDQ3NTcgMjEuMjY5MyAxLjkzNjAzIDIxLjQyNjggMi4wOTM1MkwzMC41NzMyIDExLjI0QzMwLjczMDcgMTEuMzk3NSAzMC42MTkyIDExLjY2NjcgMzAuMzk2NCAxMS42NjY3SDI0LjMzMzNDMjIuNDkyNCAxMS42NjY3IDIxIDEwLjE3NDQgMjEgOC4zMzM0MVYyLjI3MDNaIiBmaWxsPSIjMDQ0MkQyIi8+CjxwYXRoIGlkPSJpY29uX2ZpbGVfY29kZV9ub3IiIGQ9Ik0xMy4xNTgzIDE5LjEyNzNMOC45NDY1MyAyMy41NjA1TDEzLjE1ODMgMjcuOTkzNkMxMy4zMDk0IDI4LjE1MjcgMTMuMzA2NyAyOC40MDc4IDEzLjE1MjMgMjguNTYzNUwxMy4xNTA2IDI4LjU2NTJMMTIuNTg0OCAyOS4xMjg5QzEyLjQzMDEgMjkuMjgzMSAxMi4xODM2IDI5LjI3OTYgMTIuMDMzIDI5LjEyMTFMNy4wMTc4OCAyMy44NDIzQzYuODY5MDQgMjMuNjg1NyA2Ljg2OTA0IDIzLjQzNTIgNy4wMTc4OCAyMy4yNzg2TDEyLjAzMyAxNy45OTk4QzEyLjE4MzYgMTcuODQxNCAxMi40MzAxIDE3LjgzNzkgMTIuNTg0OCAxNy45OTJMMTMuMTUwNiAxOC41NTU4QzEzLjMwNiAxOC43MTA1IDEzLjMxMDEgMTguOTY1NyAxMy4xNTk4IDE5LjEyNTdMMTMuMTU4MyAxOS4xMjczWk0yMy4xOTM1IDIzLjU2MDVMMTkuMjgyNiAxOS4xMjczQzE5LjE0MjMgMTguOTY4MyAxOS4xNDQ4IDE4LjcxMzEgMTkuMjg4MiAxOC41NTc0TDE5LjI4OTcgMTguNTU1OEwxOS44MTUyIDE3Ljk5MkMxOS45NTg4IDE3LjgzNzkgMjAuMTg3NyAxNy44NDE0IDIwLjMyNzUgMTcuOTk5OEwyNC45ODQ0IDIzLjI3ODZDMjUuMTIyNiAyMy40MzUyIDI1LjEyMjYgMjMuNjg1NyAyNC45ODQ0IDIzLjg0MjNMMjAuMzI3NSAyOS4xMjExQzIwLjE4NzcgMjkuMjc5NiAxOS45NTg4IDI5LjI4MzEgMTkuODE1MiAyOS4xMjg5TDE5LjI4OTcgMjguNTY1MkMxOS4xNDU1IDI4LjQxMDQgMTkuMTQxNiAyOC4xNTUyIDE5LjI4MTIgMjcuOTk1MkwxOS4yODI2IDI3Ljk5MzZMMjMuMTkzNSAyMy41NjA1Wk0xNy4wNDQ4IDE1LjE1MzlMMTcuODY0NSAxNS4yNDE4QzE4LjA4ODIgMTUuMjY1OCAxOC4yNDg3IDE1LjQ1MzYgMTguMjIyOCAxNS42NjExTDE2LjI2NjIgMzEuMTgwNUMxNi4yNDAxIDMxLjM4NzkgMTYuMDM3OCAzMS41MzY0IDE1LjgxNDMgMzEuNTEyNUwxNC45OTQ2IDMxLjQyNDZDMTQuNzcwOCAzMS40MDA2IDE0LjYxMDQgMzEuMjEyOCAxNC42MzYzIDMxLjAwNTJMMTYuNTkyOCAxNS40ODU4QzE2LjYxOSAxNS4yNzg1IDE2LjgyMTIgMTUuMTI5OSAxNy4wNDQ4IDE1LjE1MzlaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+Cjwvc3ZnPgo="},[B.W.ARCHIVE]:{label:c.o.t("shortcut_modal_upload_component_file_format_zip"),icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAzMiA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Imljb24iPgo8cGF0aCBpZD0iUmVjdGFuZ2xlIDI1MjgiIGQ9Ik0xIDQuOTk5OTdDMSAzLjE1OTAyIDIuNDkyMzggMS42NjY2NCA0LjMzMzMzIDEuNjY2NjRIMjAuMzA5NkMyMC43NTE3IDEuNjY2NjQgMjEuMTc1NiAxLjg0MjI0IDIxLjQ4ODIgMi4xNTQ4TDMwLjUxMTggMTEuMTc4NUMzMC44MjQ0IDExLjQ5MSAzMSAxMS45MTUgMzEgMTIuMzU3VjM1QzMxIDM2Ljg0MDkgMjkuNTA3NiAzOC4zMzMzIDI3LjY2NjcgMzguMzMzM0g0LjMzMzMzQzIuNDkyMzggMzguMzMzMyAxIDM2Ljg0MDkgMSAzNVY0Ljk5OTk3WiIgZmlsbD0iIzMzNkRGNCIvPgo8cGF0aCBpZD0iUmVjdGFuZ2xlIDI1MjkiIG9wYWNpdHk9IjAuNyIgZD0iTTIxIDIuMjcwMTlDMjEgMi4wNDc0NyAyMS4yNjkzIDEuOTM1OTMgMjEuNDI2OCAyLjA5MzQyTDMwLjU3MzIgMTEuMjM5OUMzMC43MzA3IDExLjM5NzQgMzAuNjE5MiAxMS42NjY2IDMwLjM5NjQgMTEuNjY2NkgyNC4zMzMzQzIyLjQ5MjQgMTEuNjY2NiAyMSAxMC4xNzQzIDIxIDguMzMzMzFWMi4yNzAxOVoiIGZpbGw9IiMwNDQyRDIiLz4KPHBhdGggaWQ9IiYjMjI5OyYjMTQ0OyYjMTM2OyYjMjI5OyYjMTg1OyYjMTgyOyYjMjI5OyYjMTg5OyYjMTYyOyYjMjMxOyYjMTM4OyYjMTgyOyIgZD0iTTIxLjcxNCAxNS44MzM0QzIyLjIzOTkgMTUuODMzNCAyMi42NjYzIDE2LjI1MzEgMjIuNjY2MyAxNi43NzA5VjI5Ljg5NTlDMjIuNjY2MyAzMC40MTM2IDIyLjIzOTkgMzAuODMzNCAyMS43MTQgMzAuODMzNEgxMC4yODU0QzkuNzU5NCAzMC44MzM0IDkuMzMzMDEgMzAuNDEzNiA5LjMzMzAxIDI5Ljg5NTlWMTYuNzcwOUM5LjMzMzAxIDE2LjI1MzEgOS43NTk0IDE1LjgzMzQgMTAuMjg1NCAxNS44MzM0SDIxLjcxNFpNMTcuOTA0NCAyNi4xNDU5SDE0LjA5NDlWMjkuNDI3MUgxNy45MDQ0VjI2LjE0NTlaTTE2Ljk1MjEgMjcuMDgzNFYyOC4xNjgySDE1LjA0NzNWMjcuMDgzNEgxNi45NTIxWk0xNy45NDg0IDE5LjU4MzRIMTUuOTk5N1YyMS40NTg0SDE0LjA5NDlWMjMuMzMzNEgxNS45OTk3VjI1LjIwODRIMTcuOTQ4NFYyMy4zMzM0SDE2LjA0MzZWMjEuNDU4NEgxNy45NDg0VjE5LjU4MzRaTTE1Ljk5OTcgMTcuNzA4NEgxNC4wOTQ5VjE5LjU4MzRIMTUuOTk5N1YxNy43MDg0WiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L3N2Zz4K"},[B.W.PPT]:{label:c.o.t("shortcut_modal_upload_component_file_format_ppt"),icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAzMiA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Imljb24iPgo8cGF0aCBpZD0iUmVjdGFuZ2xlIDI1MzAiIGQ9Ik0xIDUuMDAwMDhDMSAzLjE1OTEzIDIuNDkyMzggMS42NjY3NSA0LjMzMzMzIDEuNjY2NzVIMjAuMzA5NkMyMC43NTE3IDEuNjY2NzUgMjEuMTc1NiAxLjg0MjM0IDIxLjQ4ODIgMi4xNTQ5TDMwLjUxMTggMTEuMTc4NkMzMC44MjQ0IDExLjQ5MTIgMzEgMTEuOTE1MSAzMSAxMi4zNTcxVjM1LjAwMDFDMzEgMzYuODQxIDI5LjUwNzYgMzguMzMzNCAyNy42NjY3IDM4LjMzMzRINC4zMzMzM0MyLjQ5MjM4IDM4LjMzMzQgMSAzNi44NDEgMSAzNS4wMDAxVjUuMDAwMDhaIiBmaWxsPSIjRkY4MTFBIi8+CjxwYXRoIGlkPSJSZWN0YW5nbGUgMjUzMSIgb3BhY2l0eT0iMC44IiBkPSJNMjEgMi4yNzAzQzIxIDIuMDQ3NTcgMjEuMjY5MyAxLjkzNjAzIDIxLjQyNjggMi4wOTM1MkwzMC41NzMyIDExLjI0QzMwLjczMDcgMTEuMzk3NSAzMC42MTkyIDExLjY2NjcgMzAuMzk2NCAxMS42NjY3SDI0LjMzMzNDMjIuNDkyNCAxMS42NjY3IDIxIDEwLjE3NDQgMjEgOC4zMzM0MVYyLjI3MDNaIiBmaWxsPSIjRUQ2RDBDIi8+CjxwYXRoIGlkPSJTdWJ0cmFjdCIgZD0iTTEzLjMwMzggMzAuODI1MVYyNC44NDc3SDE2LjE0MDJDMTYuODIxOCAyNC44NDc3IDE3LjUwMDEgMjQuNzg3OCAxOC4xNzQ5IDI0LjY2OEMxOC44NjIxIDI0LjU0NiAxOS40NzkgMjQuMzMxNiAyMC4wMjQzIDI0LjAyNDRDMjAuNTc5MyAyMy43MTE3IDIxLjAzMiAyMy4yODM3IDIxLjM3OTkgMjIuNzQyOUMyMS43MzMyIDIyLjE5MzggMjEuOTA3NyAyMS41MDUzIDIxLjkwNzcgMjAuNjgxNEMyMS45MDc3IDIwLjEzODMgMjEuODM0NSAxOS42MTc5IDIxLjY4OCAxOS4xMjA2QzIxLjUzNzEgMTguNjA4MyAyMS4yNzA1IDE4LjE1NDYgMjAuODkwMiAxNy43NjIyQzIwLjUwODIgMTcuMzY4MSAxOS45OTQ3IDE3LjA2MTcgMTkuMzUyOSAxNi44NDEzQzE4LjcxNyAxNi42MjI5IDE3LjkyIDE2LjUxNTEgMTYuOTYwNSAxNi41MTUxSDExLjY4ODZDMTEuNTU4NiAxNi41MTUxIDExLjQ1MzEgMTYuNjIwNiAxMS40NTMxIDE2Ljc1MDZWMzAuODI1MUMxMS40NTMxIDMwLjk1NTIgMTEuNTU4NiAzMS4wNjA2IDExLjY4ODYgMzEuMDYwNkgxMy4wNjgzQzEzLjE5ODMgMzEuMDYwNiAxMy4zMDM4IDMwLjk1NTIgMTMuMzAzOCAzMC44MjUxWk0xNy44NjI3IDIzLjEyMTdDMTcuMzY5MiAyMy4xOTc4IDE2LjgwODIgMjMuMjM2IDE2LjE4MDEgMjMuMjM2SDEzLjMwMzdWMTguMTI2OEgxNi41ODAzQzE3LjgyNDMgMTguMTI2OCAxOC43MTcyIDE4LjM0MjQgMTkuMjYwMSAxOC43NTk0QzE5Ljc5MTIgMTkuMTY3MyAyMC4wNTcgMTkuNzY3OSAyMC4wNTcgMjAuNTgzN0MyMC4wNTcgMjEuMTQ3OSAxOS45Njc1IDIxLjU5NjggMTkuNzkzNSAyMS45MzA4QzE5LjYyMDIgMjIuMjYzNCAxOS4zNzczIDIyLjUyMzYgMTkuMDYyIDIyLjcxNTRDMTguNzM4IDIyLjkxMjMgMTguMzM4NyAyMy4wNDgzIDE3Ljg2MjcgMjMuMTIxN1oiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg=="},[B.W.VIDEO]:{label:c.o.t("shortcut_modal_upload_component_file_format_video"),icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAzMiA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Imljb24iPgo8cGF0aCBpZD0iUmVjdGFuZ2xlIDI1MjgiIGQ9Ik0xIDUuMDAwMDhDMSAzLjE1OTEzIDIuNDkyMzggMS42NjY3NSA0LjMzMzMzIDEuNjY2NzVIMjAuMzA5NkMyMC43NTE3IDEuNjY2NzUgMjEuMTc1NiAxLjg0MjM0IDIxLjQ4ODIgMi4xNTQ5TDMwLjUxMTggMTEuMTc4NkMzMC44MjQ0IDExLjQ5MTIgMzEgMTEuOTE1MSAzMSAxMi4zNTcxVjM1LjAwMDFDMzEgMzYuODQxIDI5LjUwNzYgMzguMzMzNCAyNy42NjY3IDM4LjMzMzRINC4zMzMzM0MyLjQ5MjM4IDM4LjMzMzQgMSAzNi44NDEgMSAzNS4wMDAxVjUuMDAwMDhaIiBmaWxsPSIjMzM2REY0Ii8+CjxwYXRoIGlkPSJSZWN0YW5nbGUgMjUyOSIgb3BhY2l0eT0iMC43IiBkPSJNMjEgMi4yNzAzQzIxIDIuMDQ3NTcgMjEuMjY5MyAxLjkzNjAzIDIxLjQyNjggMi4wOTM1MkwzMC41NzMyIDExLjI0QzMwLjczMDcgMTEuMzk3NSAzMC42MTkyIDExLjY2NjcgMzAuMzk2NCAxMS42NjY3SDI0LjMzMzNDMjIuNDkyNCAxMS42NjY3IDIxIDEwLjE3NDQgMjEgOC4zMzM0MVYyLjI3MDNaIiBmaWxsPSIjMDQ0MkQyIi8+CjxwYXRoIGlkPSImIzIyOTsmIzE4OTsmIzE2MjsmIzIzMTsmIzEzODsmIzE4MjsiIGQ9Ik03LjY2NDA2IDE3LjkxNjVDNy42NjQwNiAxNy4yMjYxIDguMjIzNzEgMTYuNjY2NSA4LjkxNDA2IDE2LjY2NjVIMTcuNjY0MUMxOC4zNTQ0IDE2LjY2NjUgMTguOTE0MSAxNy4yMjYxIDE4LjkxNDEgMTcuOTE2NVYxOS40MDA5TDIwLjgwMTIgMTguMzM5M0MyMS42MzQ1IDE3Ljg3MDYgMjIuNjY0MSAxOC40NzI4IDIyLjY2NDEgMTkuNDI4OFYyNS4xNTQyQzIyLjY2NDEgMjYuMTEwMiAyMS42MzQ1IDI2LjcxMjQgMjAuODAxMiAyNi4yNDM3TDE4LjkxNDEgMjUuMTgyMVYyNi42NjY1QzE4LjkxNDEgMjcuMzU2OSAxOC4zNTQ0IDI3LjkxNjUgMTcuNjY0MSAyNy45MTY1SDguOTE0MDZDOC4yMjM3MSAyNy45MTY1IDcuNjY0MDYgMjcuMzU2OSA3LjY2NDA2IDI2LjY2NjVWMTcuOTE2NVpNMTEuNDE0MSAyMS42NjY1QzEyLjEwNDQgMjEuNjY2NSAxMi42NjQxIDIxLjEwNjkgMTIuNjY0MSAyMC40MTY1QzEyLjY2NDEgMTkuNzI2MSAxMi4xMDQ0IDE5LjE2NjUgMTEuNDE0MSAxOS4xNjY1QzEwLjcyMzcgMTkuMTY2NSAxMC4xNjQxIDE5LjcyNjEgMTAuMTY0MSAyMC40MTY1QzEwLjE2NDEgMjEuMTA2OSAxMC43MjM3IDIxLjY2NjUgMTEuNDE0MSAyMS42NjY1WiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L3N2Zz4K"},[B.W.TXT]:{label:c.o.t("shortcut_modal_upload_component_file_format_txt"),icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAzMiA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Imljb24iPgo8cGF0aCBpZD0iUmVjdGFuZ2xlIDI1MjYiIGQ9Ik0xIDUuMDAwMDhDMSAzLjE1OTEzIDIuNDkyMzggMS42NjY3NSA0LjMzMzMzIDEuNjY2NzVIMjAuMzA5NkMyMC43NTE3IDEuNjY2NzUgMjEuMTc1NiAxLjg0MjM0IDIxLjQ4ODIgMi4xNTQ5TDMwLjUxMTggMTEuMTc4NkMzMC44MjQ0IDExLjQ5MTIgMzEgMTEuOTE1MSAzMSAxMi4zNTcxVjM1LjAwMDFDMzEgMzYuODQxIDI5LjUwNzYgMzguMzMzNCAyNy42NjY3IDM4LjMzMzRINC4zMzMzM0MyLjQ5MjM4IDM4LjMzMzQgMSAzNi44NDEgMSAzNS4wMDAxVjUuMDAwMDhaIiBmaWxsPSIjMzM2REY0Ii8+CjxwYXRoIGlkPSJSZWN0YW5nbGUgMjUyNyIgb3BhY2l0eT0iMC43IiBkPSJNMjEgMi4yNzAzQzIxIDIuMDQ3NTcgMjEuMjY5MyAxLjkzNjAzIDIxLjQyNjggMi4wOTM1MkwzMC41NzMyIDExLjI0QzMwLjczMDcgMTEuMzk3NSAzMC42MTkyIDExLjY2NjcgMzAuMzk2NCAxMS42NjY3SDI0LjMzMzNDMjIuNDkyNCAxMS42NjY3IDIxIDEwLjE3NDQgMjEgOC4zMzM0MVYyLjI3MDNaIiBmaWxsPSIjMDQ0MkQyIi8+CjxwYXRoIGlkPSJVbmlvbiIgZD0iTTE2LjkwNyAxNy44Nzg3VjMwLjM3ODdDMTYuOTA3IDMwLjUwNDIgMTYuODA1MiAzMC42MDYgMTYuNjc5NyAzMC42MDZIMTUuMzE2MUMxNS4xOTA1IDMwLjYwNiAxNS4wODg4IDMwLjUwNDIgMTUuMDg4OCAzMC4zNzg3VjE3Ljg3ODdIOS40MDY5NkM5LjI4MTQ0IDE3Ljg3ODcgOS4xNzk2OSAxNy43NzcgOS4xNzk2OSAxNy42NTE1VjE2LjI4NzhDOS4xNzk2OSAxNi4xNjIzIDkuMjgxNDQgMTYuMDYwNSA5LjQwNjk2IDE2LjA2MDVIMjIuNTg4OEMyMi43MTQzIDE2LjA2MDUgMjIuODE2MSAxNi4xNjIzIDIyLjgxNjEgMTYuMjg3OFYxNy42NTE1QzIyLjgxNjEgMTcuNzc3IDIyLjcxNDMgMTcuODc4NyAyMi41ODg4IDE3Ljg3ODdIMTYuOTA3WiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L3N2Zz4K"}},Y=e=>{var{fileTypes:t}=x.w5[(0,x.Eo)(e)],i=null==t?void 0:t.reduce((e,t)=>{var i=F.Co.find(e=>e.fileType===t);return i?e="".concat(e).concat(e?",":"").concat(i.accept.join(",")):e},"");if(!!i&&"*"!==i)return i},V=e=>{if(!e)return null;var t=(0,x.Eo)(e),i=Object.entries(x.w5).find(e=>{var[i]=e;return Number(i)===t});if(!i)return null;for(var o of i[1].fileTypes)if(Q[o])return o;return null},W=i("825955"),G=i("871873"),H=i("61111"),q=i("287487"),K=i("298203"),J=e=>(0,G.Z)({uri:"",url:"",name:"",type:null,uploading:!1,abortSignal:new AbortController().signal},e),X=e=>{var t,{disabled:i=!1,uploadProps:l,render:s,onUploadSuccess:d,defaultUrl:p,defaultFileType:g}=e,m=q.Z.useUserInfo().user_id_str,[h,f]=(0,a.useReducer)((e,t)=>(0,H.Uy)(e,e=>{if(!!t)Object.keys(t).forEach(i=>{var o;e[i]=null!==(o=t[i])&&void 0!==o?o:e[i]})}),J({url:null!=p?p:"",type:null!=g?g:null}));var b=(t=(0,W._)(function*(e){var{file:t,fileInstance:i}=e,o=(0,F.hr)(i).fileType;f({uploading:!0,url:t.url,name:t.name}),yield(0,K.ku)({userId:m,fileItemList:[{file:i,fileType:o===F.Wz.IMAGE?"image":"object"}],signal:h.abortSignal,timeout:void 0,onSuccess:e=>{var t,i=null==e?void 0:null===(t=e.uploadResult)||void 0===t?void 0:t.Uri;if(!!i)f({uploading:!1,uri:i,type:o}),null==d||d(i)},onUploadError:()=>{f({uploading:!1})}})}),function(e){return t.apply(this,arguments)});return"function"!=typeof s?null:(0,n.jsx)(u.gq,(0,r._)((0,o._)({className:"w-full",draggable:!0,limit:1,disabled:i,onAcceptInvalid:()=>{u.FN.error(c.o.t("shortcut_Illegal_file_format"))},onSizeError:()=>{(null==l?void 0:l.maxSize)&&u.FN.error(c.o.t("file_too_large",{max_size:"".concat(l.maxSize/1024,"MB")}))},customRequest:b,showUploadList:!1},l),{children:s({fileState:h,clearFile:()=>f(J())})}))},$=i("391875"),ee={};ee.styleTagTransform=C(),ee.setAttributes=D(),ee.insert=T().bind(null,"head"),ee.domAPI=I(),ee.insertStyleElement=S(),j()($.Z,ee);var et=$.Z&&$.Z.locals?$.Z.locals:void 0,{Text:ei}=p.ZT,eo=Q[F.Wz.DEFAULT_UNKNOWN].icon,er=e=>{var{onChange:t,required:i=!1,withDescription:o=!1,check:r=0,defaultValue:l,disabled:s=!1,assistParameterType:d}=e,[u,h]=(0,a.useState)(!1),[f,b]=(0,a.useState)(l),v=V(d),x=d===m.K9.IMAGE,_=x?c.o.t("plugin_file_upload_image"):c.o.t("plugin_file_upload"),y=x?c.o.t("plugin_file_upload_mention_image"):c.o.t("plugin_file_upload_mention"),k=Y(d);(0,a.useEffect)(()=>{if(0!==r)h(i&&!f)},[r]);var j=e=>{b(e),null==t||t(e),h(i&&!e)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(X,{defaultUrl:f,defaultFileType:v,onUploadSuccess:j,uploadProps:{accept:k,disabled:s,maxSize:20480},render:e=>{var{fileState:t,clearFile:i}=e,{uploading:o,uri:r,url:a,name:l,type:d}=t,u=!!a&&!r,m=a,h=(0,n.jsx)(p.y3,{icon:(0,n.jsx)(g.rRB,{className:et.icon}),loading:o,disabled:s,className:"w-full",children:o?c.o.t("plugin_file_uploading"):_});if(o)return h;if(u&&d===F.Wz.IMAGE)m=eo;else if(!x){var b,v=null===(b=Q[d])||void 0===b?void 0:b.icon;m=v?v:void 0}return u||r?(0,n.jsxs)("div",{className:w()("flex items-center justify-between w-full h-[32px]",s?"cursor-not-allowed":""),children:[(0,n.jsxs)("div",{className:"flex items-center min-w-0",children:[m?(0,n.jsx)("img",{src:m,className:"w-[20px] h-[20px] mr-[5px] rounded-[0.5px]"}):null,(0,n.jsx)(ei,{ellipsis:{showTooltip:!0},className:"mr-[2px]",children:u?f:l})]}),(0,n.jsx)(p._3,{icon:(0,n.jsx)(g.WDf,{}),disabled:s,onClick:e=>{e.stopPropagation(),i(),j("")}})]}):h}}),u?(0,n.jsx)(P,{withDescription:o,tip:y}):null]})},en=e=>{var{val:t="",callback:i,check:r=0,width:l="100%",useCheck:s=!1,useBlockWrap:d=!1,disabled:c,desc:u}=e,[g,m]=(0,a.useState)(t),[h,f]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(0!==r&&g!==x.sp&&g!==x.UR)b(g)},[r]);var b=e=>{if(!!s)f(""===(e?String(e).replace(/\s+/g,""):""))};return(0,n.jsxs)("span",{style:(0,o._)({width:l},d?{display:"inline-block"}:{}),children:[(0,n.jsx)(p.u3,{disabled:c,value:g,validateStatus:h?"error":"default",onChange:e=>{m(e),i(e),b(e)}}),(0,n.jsx)("br",{}),h?(0,n.jsx)(P,{withDescription:!!u}):null]})},ea=e=>{var{record:t,data:i,disabled:o=!1,check:r,needCheck:a,defaultKey:l,supportFileTypeUpload:s=!1}=e,d=!((null==t?void 0:t.type)===m.rH.Object||(null==t?void 0:t.type)===m.rH.Array||o&&void 0===t.value),c=(null==t?void 0:t.type)===m.rH.String&&!!(null==t?void 0:t.assist_type),u=(0,n.jsx)(n.Fragment,{});return s&&c?u=(0,n.jsx)(er,{defaultValue:t.value||(null==t?void 0:t[l]),assistParameterType:t.assist_type,onChange:e=>{(0,v.jd)({data:i,targetKey:t[x.Fc],field:"value",value:e||null})},withDescription:!!(null==t?void 0:t.desc),required:a||(null==t?void 0:t.is_required),check:r,disabled:o}):d&&(u=(0,n.jsx)("div",{className:_(t),children:(0,n.jsx)(en,{disabled:o,useBlockWrap:!0,val:t.value||(null==t?void 0:t[l]),check:r,useCheck:a||(null==t?void 0:t.is_required),callback:e=>{(0,v.jd)({data:i,targetKey:t[x.Fc],field:"value",value:e}),(0,v.jd)({data:i,targetKey:t[x.Fc],field:l,value:e})},desc:t.desc})})),(0,n.jsxs)("div",{className:"mr-[3px]",children:[u,t.desc?(0,n.jsx)(p.ZT.Text,{size:"small",ellipsis:{showTooltip:{opts:{content:t.desc}}},style:{verticalAlign:d?"top":"middle"},children:t.desc}):null]})},el=e=>{var t=(0,x.lR)(e);return(0,n.jsxs)("span",{className:_(e),children:[(0,n.jsx)(p.ZT.Text,{component:"span",ellipsis:{showTooltip:{type:"tooltip",opts:{style:{maxWidth:"100%"}}}},style:{maxWidth:"calc(100% - ".concat(20*(e.deep||1)+49,"px)")},children:null==e?void 0:e.name}),(null==e?void 0:e.is_required)?(0,n.jsx)(p.ZT.Text,{style:{color:"red"},children:" * "}):null,t?(0,n.jsx)(u.Vp,{size:"mini",prefixIcon:null,className:"!coz-fg-color-blue !coz-mg-color-blue shrink-0 font-normal px-6px rounded-[36px] ml-4px align-middle",children:t}):null]})},es=(e,t)=>e?(0,n.jsxs)(p.T,{children:[(0,n.jsx)("div",{children:c.o.t(t?"mkpl_plugin_tool_parameter_description":"Create_newtool_s4_value")}),(0,n.jsx)(p.fS,{children:c.o.t("plugin_edit_tool_test_run_example_tip")})]}):c.o.t(t?"mkpl_plugin_tool_parameter_description":"Create_newtool_s4_value"),ed=(0,a.forwardRef)((e,t)=>{var{requestParams:i,disabled:u,check:h,needCheck:y=!1,height:w=236,defaultKey:k="global_default",debugExampleStatus:j=m.ji.Default,showExampleTag:M=!1,supportFileTypeUpload:I=!1}=e,[N,T]=(0,a.useState)((0,l.Z)(i||[])),[z,D]=(0,a.useState)((0,l.Z)(i||[]));(0,a.useEffect)(()=>{T(i?(0,l.Z)(i):[]),D(i?(0,l.Z)(i):[])},[i]),(0,a.useImperativeHandle)(t,()=>({data:N}));var[A,S]=(0,a.useState)(!1),E=e=>{if(!!N){var t={};(0,v.bd)({data:N,callback:(i,n)=>{i[x.Fc]===e[x.Fc]&&(t=(0,r._)((0,o._)({},i),{path:n}))}});var i=((null==t?void 0:t.path)||[]).map(e=>[e,x.Il]).flat(),n=(0,v.UK)(z,i),a=(0,l.Z)(N);if(Array.isArray((0,s.Z)(a,i))){var c=(0,v.$F)((0,s.Z)(z,n)[0]);(0,d.Z)(a,i,[...(0,s.Z)(a,i),c])}T(a)}},C=u&&M&&j===m.ji.Enable,O=(0,v.lf)(N),L=[{title:c.o.t("Create_newtool_s4_name"),key:"name",className:b.Z["no-wrap"],width:180+20*(O-1),minWidth:220,render:e=>el(e)},{title:es(C,u),key:"value",className:b.Z["no-wrap"],width:200,render:e=>(0,n.jsx)(ea,{record:e,data:N,disabled:u,check:h,needCheck:y,defaultKey:k,supportFileTypeUpload:I})},{title:c.o.t("dataset_detail_tableTitle_actions"),key:"operation",width:120,render:e=>(0,n.jsxs)("div",{className:_(e),children:[(null==e?void 0:e.type)===m.rH.Array&&(0,n.jsx)(p.y3,{onClick:()=>{E(e),S(!A)},icon:(0,n.jsx)(g.h16,{}),type:"secondary",theme:"borderless"}),(null==e?void 0:e.name)===x.sp&&(0,v.Hn)(N,e[x.Fc])&&(0,n.jsx)(p.y3,{onClick:()=>{var t=(0,l.Z)(N);(null==e?void 0:e.id)&&((0,v.IK)(t,null==e?void 0:e.id),T(t))},icon:(0,n.jsx)(f,{}),type:"secondary",theme:"borderless"})]})}],Z=u||!(0,v.sl)(i)?L.filter(e=>"operation"!==e.key):L,P=(0,a.useMemo)(()=>({y:w,x:"100%"}),[]);return(0,n.jsx)(p.iA,{className:b.Z["debug-params-table"],pagination:!1,columns:Z,dataSource:N,rowKey:x.Fc,childrenRecordName:x.Il,expandAllRows:!0,scroll:P,empty:!u&&(0,n.jsx)("div",{className:b.Z.empty,children:c.o.t("plugin_form_no_result_desc")})})})},364112:function(e,t,i){i.r(t),i.d(t,{Debug:()=>T});var o,r=i("808549"),n=i("120454"),a=i("151064"),l=i("455069"),s=i("336205"),d=i("775699"),c=i("900021"),u=i("851645"),p=i("252237"),g=i.n(p),m=i("44172"),h=i("626389"),f=i.n(h),b=i("193893"),v=i("71569");var x=((o={})[o.Request=1]="Request",o[o.Response=2]="Response",o),_=e=>{var{markDown:t,headingType:i,rawResponse:o,showRaw:r}=e;return(0,a.jsxs)("div",{className:v.Z["mb-content"],children:[(0,a.jsx)("div",{className:v.Z["mb-header"],children:(0,a.jsxs)(d.T,{spacing:8,children:[(0,a.jsx)("span",{children:"Json"}),(0,a.jsx)(m.vUr,{className:v.Z["icon-copy"],onClick:()=>{f()(t),d.FN.success(s.o.t("copy_success"))}})]})}),(0,a.jsxs)("div",{className:v.Z["mb-main"],children:[(0,a.jsx)("div",{className:g()(v.Z["mb-left"],{[v.Z["half-width"]]:r&&2===i}),children:(0,a.jsx)(b.HK,{markDown:"```json\n".concat(t,"\n```")})}),r&&2===i?(0,a.jsx)("div",{className:v.Z["mb-right"],children:(0,a.jsx)(b.HK,{markDown:"```json\n".concat(o?o.length<3e4?o:"".concat(o.slice(0,3e4),"..."):"{}","\n```")})}):null]})]})},y=e=>{var{activeTab:t,setActiveTab:i,hideRawResponse:o,showRaw:r,setShowRaw:n}=e;return(0,a.jsxs)("div",{className:v.Z["debug-check-header"],children:[(0,a.jsxs)("div",{className:v.Z["debug-check-tab"],children:[(0,a.jsx)("div",{className:g()(v.Z["debug-check-tab-item"],{[v.Z["debug-check-tab-item-active"]]:t===x.Request}),onClick:()=>i(x.Request),children:"Request"}),(0,a.jsx)("div",{className:v.Z["debug-check-tab-line"]}),(0,a.jsx)("div",{className:g()(v.Z["debug-check-tab-item"],{[v.Z["debug-check-tab-item-active"]]:t===x.Response}),onClick:()=>i(x.Response),children:"Response"})]}),t!==x.Response||o?null:(0,a.jsxs)(d.T,{spacing:8,children:[(0,a.jsx)("span",{children:"Raw Response"}),(0,a.jsx)(m.VKQ,{className:g()(v.Z.icon,{[v.Z.open]:r}),onClick:()=>{n(!r)}})]})]})},w=e=>{var{children:t}=e;return(0,a.jsx)("div",{className:v.Z["process-content"],children:t})},k=e=>{var{toolMessageUnit:t}=e,{request:i,response:o,failReason:r,rawResp:n}=t,[c,u]=(0,l.useState)(1),[p,g]=(0,l.useState)(!1);return(0,a.jsx)(a.Fragment,{children:i||o?(0,a.jsxs)("div",{className:v.Z["debug-result-content"],children:[(0,a.jsx)(y,{activeTab:c,setActiveTab:u,hideRawResponse:!(!r&&n),showRaw:p,setShowRaw:g}),1===c?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:v.Z["llm-api-content"],children:(0,a.jsx)(_,{markDown:i?JSON.stringify(JSON.parse(i||"{}"),null,2):"",headingType:c,showRaw:p})})}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:v.Z["llm-api-content"],children:r?(0,a.jsx)("div",{className:v.Z["error-reason-box"],children:(0,a.jsx)(d.jL,{className:v.Z["error-reason"],fullMode:!1,icon:null,closeIcon:null,type:"danger",description:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{children:s.o.t("plugin_s4_debug_detail")}),(0,a.jsx)("div",{style:{wordBreak:"break-word"},children:r})]})})}):(0,a.jsx)(_,{headingType:c,markDown:JSON.stringify(JSON.parse(o||"{}"),null,2),rawResponse:JSON.stringify(JSON.parse(n||"{}"),null,2),showRaw:p})})})]}):(0,a.jsx)("div",{className:v.Z["llm-debug-empty"],children:(0,a.jsx)("div",{className:v.Z["llm-debug-empty-content"],children:s.o.t("plugin_s4_debug_empty")})})})},j=e=>{var{checkParams:t}=e;return(0,a.jsx)(w,{children:(0,a.jsx)(k,{toolMessageUnit:t})})},M=i("252793"),{Text:I}=d.ZT,N=(e,t,i)=>(0,a.jsxs)(I,{className:M.Z["card-title"],ellipsis:{showTooltip:{opts:{content:"".concat(e,".").concat(t),style:{wordBreak:"break-word"}}}},children:[e,".",t," ",s.o.t(i)]}),T=e=>{var{disabled:t,apiInfo:i,pluginId:o,apiId:p,pluginName:g,setDebugStatus:m,debugExample:h,setDebugExample:f,isViewExample:b=!1,pluginType:v,onSuccessCallback:x}=e,[_,y]=(0,l.useState)({}),[w,k]=(0,l.useState)();return(0,l.useEffect)(()=>{h?y((0,n._)((0,r._)({},_),{request:null==h?void 0:h.req_example,response:null==h?void 0:h.resp_example,failReason:""})):y({})},[h]),(0,a.jsx)("div",{className:M.Z["debug-check"],"data-testid":"plugin.tool.debug-modal-content",children:(0,a.jsxs)(d.X2,{gutter:16,children:[(0,a.jsx)(d.JX,{span:12,children:(0,a.jsxs)("div",{className:M.Z["main-container"],children:[(0,a.jsx)("div",{className:M.Z["card-header"],children:b?(0,a.jsx)(I,{className:M.Z["card-title"],children:s.o.t("Create_newtool_s4_title")}):N(g,i.name,"Create_newtool_s4_title")}),(0,a.jsx)("div",{style:{maxHeight:b?"calc(100% - 55px)":542,display:"flex"},children:(0,a.jsx)(u.y,{pluginType:v,disabled:t,pluginId:o,apiId:p,requestParams:null==i?void 0:i.request_params,callback:e=>{var{status:t,request:i,response:o,failReason:r,rawResp:n}=e;k(t),y({status:t,request:i,response:o,failReason:r,rawResp:n}),null==m||m(t),t===c.Q.PASS&&(null==f||f({req_example:i,resp_example:o})),t===c.Q.PASS&&(null==x||x())},debugExampleStatus:null==i?void 0:i.debug_example_status,showExampleTag:!b})})]})}),(0,a.jsx)(d.JX,{span:12,children:(0,a.jsxs)("div",{className:M.Z["main-container"],children:[(0,a.jsx)("div",{className:M.Z["card-header"],children:(0,a.jsxs)(d.T,{style:{width:"100%"},children:[b?(0,a.jsx)(I,{className:M.Z["card-title"],children:s.o.t("plugin_edit_tool_test_run_debugging_example")}):N(g,i.name,"Create_newtool_s4_result"),w===c.Q.PASS&&(0,a.jsx)(d.fS,{color:"green",children:s.o.t("plugin_s4_debug_pass")}),w===c.Q.FAIL&&(0,a.jsx)(d.fS,{color:"red",children:s.o.t("plugin_s4_debug_failed")})]})}),(0,a.jsx)("div",{className:M.Z["card-debug-check"],style:{height:b?"100%":542},children:(0,a.jsx)(j,{checkParams:_})})]})})]})})}},437134:function(e,t,i){i.d(t,{Z:()=>O});var o=i("151064"),r=i("455069"),n=i("335740"),a=i("947578"),l=i("336205"),s=i("775699"),d=i("44172"),c=i("458949"),u=i("577413"),p=i("407821"),g=i.n(p),m=i("472772"),h=i.n(m),f=i("395245"),b=i.n(f),v=i("297998"),x=i.n(v),_=i("646576"),y=i.n(_),w=i("606121"),k=i.n(w),j=i("326046"),M={};M.styleTagTransform=k(),M.setAttributes=x(),M.insert=b().bind(null,"head"),M.domAPI=h(),M.insertStyleElement=y(),g()(j.Z,M);var I=j.Z&&j.Z.locals?j.Z.locals:void 0,N=e=>{var{record:t,disabled:i,onSourceChange:r,onReferenceChange:n,onValueChange:a,referenceOption:d}=e;return(0,o.jsxs)(s.BZ,{style:{width:"100%",flexWrap:"nowrap"},children:[(0,o.jsx)(s.Cj,{theme:"light",className:I["action-input-value-pre"],value:t.default_param_source||c.qi.Input,disabled:i,optionList:[{label:l.o.t("bot_ide_plugin_setting_modal_default_value_select_mode_reference"),value:c.qi.Variable},{label:l.o.t("bot_ide_plugin_setting_modal_default_value_select_mode_input"),value:c.qi.Input}],onChange:e=>{null==r||r(Number(e)),null==n||n(""),null==a||a("")}}),t.default_param_source===c.qi.Variable?(0,o.jsx)(s.Cj,{theme:"light",disabled:i,style:{width:"100%",overflow:"hidden"},className:I["action-input-value-content"],placeholder:l.o.t("bot_ide_plugin_setting_modal_default_value_select_mode_reference_placeholder"),value:t.variable_ref,onChange:e=>{null==n||n(String(e))},children:null==d?void 0:d.map(e=>(0,o.jsx)(s.Cj.Option,{value:String(e.label),children:(0,o.jsxs)("div",{className:I["reference-option-item"],children:[(0,o.jsx)(s.ZT.Text,{className:I["reference-option-text"],ellipsis:{showTooltip:{opts:{content:e.label,style:{wordBreak:"break-word"}}}},children:e.label}),(0,o.jsx)(s.ZT.Text,{className:I["reference-option-subtext"],ellipsis:{showTooltip:{opts:{content:e.value,style:{wordBreak:"break-word"}}}},children:e.value})]})},String(e.label)))}):(0,o.jsx)(s.u3,{disabled:i,className:I["action-input-value-content"],placeholder:l.o.t("bot_ide_plugin_setting_modal_default_value_select_mode_input_placeholder"),value:t.local_default,onChange:e=>{null==a||a(String(e))}})]})},T=i("541509"),z=i("827666"),D=i("944970"),A=i("336940"),S={};S.styleTagTransform=k(),S.setAttributes=x(),S.insert=b().bind(null,"head"),S.domAPI=h(),S.insertStyleElement=y(),g()(A.Z,S);var E=A.Z&&A.Z.locals?A.Z.locals:void 0,C=e=>{var{record:t,defaultKey:i,disableKey:c,updateNodeAndData:p}=e,[g,m]=(0,r.useState)(0),[h,f]=(0,r.useState)(!1),b=(0,r.useRef)(null),[v,x]=(0,r.useState)({}),_=(0,r.useCallback)(()=>{f(!0);var e=(0,n.Z)(t);if(e[i]){var o=(0,u.aE)(JSON.parse(e[i]||"[]"),e.sub_parameters||[]);e.sub_parameters=o}x(e)},[t]),y=()=>{f(!1),x({})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.y3,{disabled:t.is_required&&t[c],icon:(0,o.jsx)(d.yl5,{}),className:E["arr-edit-btn"],style:{width:"100%"},onClick:_,children:l.o.t("plugin_edit_tool_default_value_array_edit_button")}),h?(0,o.jsx)(s.M5,{title:l.o.t("plugin_edit_tool_default_value_array_edit_modal_title"),width:792,okText:l.o.t("Save"),visible:h,onCancel:y,hasCancel:!1,onOk:()=>{var e;if(m(g+1),document.getElementsByClassName("errorDebugClassTag").length>0){(0,u.$S)(".errorDebugClassTag"),s.FN.error({content:(0,a.u)(l.o.t("tool_new_S2_feedback_failed")),duration:3,theme:"light",showClose:!1});return}p(i,JSON.stringify(Object.values((0,u.SR)(null===(e=b.current)||void 0===e?void 0:e.data,!1))[0])),y()},zIndex:1050,children:(0,o.jsx)(T.Z,{ref:b,requestParams:[v],defaultKey:i,disabled:!1,check:g,needCheck:!1,height:400})}):null]})},O=e=>{var{record:t,data:i,setData:r,canReference:a=!1,defaultKey:s="global_default",disableKey:d="global_disable",referenceOption:p}=e,g=(e,o)=>{(0,u.jd)({data:i,targetKey:t[z.Fc],field:e,value:o}),r((0,n.Z)(i))};return void 0===t[s]?(0,o.jsx)(o.Fragment,{}):t.type===c.rH.Array?(0,o.jsx)("div",{className:E["modal-wrapper"],children:(0,o.jsx)(C,{record:t,defaultKey:s,disableKey:d,updateNodeAndData:g})}):(0,o.jsx)(o.Fragment,{children:a?(0,o.jsx)(N,{record:t,disabled:!!t[d],referenceOption:p,onSourceChange:e=>{g("default_param_source",e)},onReferenceChange:e=>{g("variable_ref",e)},onValueChange:e=>{g(s,e)}}):(0,o.jsx)(D.O6,{width:"100%",placeholder:l.o.t("plugin_edit_tool_default_value_input_placeholder"),max:2e3,val:t[s],useCheck:!1,filterSpace:!1,disabled:!!t[d],callback:e=>{g(s,e)}})})}},944970:function(e,t,i){i.d(t,{O6:function(){return g},vw:function(){return m}});var o=i(151064),r=i(455069),n=i(252237),a=i.n(n);i(336205);var l=i(775699),s=i(44172),d=i(458949),c=i(577413),u=i(252793),p=i(827666),g=e=>{var{val:t="",max:i=500,check:n=0,width:s=200,useCheck:g=!0,filterSpace:m=!0,placeholder:h,callback:f,targetKey:b="",checkSame:v=!1,checkAscii:x=!1,isRequired:_=!1,data:y,useBlockWrap:w=!1,disabled:k,dynamicWidth:j=!1,deep:M=1}=e,[I,N]=(0,r.useState)(t),[T,z]=(0,r.useState)(0);(0,r.useEffect)(()=>{N(t)},[t]),(0,r.useEffect)(()=>{if(0!==n&&I!==p.sp&&I!==p.UR)D(I)},[n]);var D=e=>{var t=""===e?p.Oz.NAME_EMPTY:p.Oz.NO_ERROR;if(_&&""===e){z(p.Oz.DESC_EMPTY);return}if(x){z(p.Oz.NO_ERROR);return}if(!!g)!t&&(t=/^[\w-]+$/.test(e)?p.Oz.NO_ERROR:p.Oz.CHINESE),!t&&y&&v&&(t=(0,c.aY)(y,b,e)?p.Oz.REPEAT:p.Oz.NO_ERROR),z(t)},A=e=>(m&&(e=e.replace(/\s+/g,"")),i>0&&(e=e.slice(0,i)),e),S=1!==M||(null==y?void 0:y.some(e=>e.type===d.rH.Array||e.type===d.rH.Object)),E=j?"calc(100% - ".concat(20*M,"px)"):s,C=j?"calc(100% - ".concat(20*M,"px - 8px)"):s,O=()=>(0,o.jsxs)(o.Fragment,{children:[j&&!S?(0,o.jsx)("span",{style:{display:"inline-block",width:22}}):null,(0,o.jsx)(l.ZT.Text,{component:"span",ellipsis:{showTooltip:{type:"tooltip",opts:{style:{maxWidth:"100%"}}}},className:u.Z["plugin-tooltip-error"],children:(0,o.jsx)("span",{children:p.JN[T]})})]});return(0,o.jsxs)("span",{style:w?{display:"inline-block",width:"100%"}:{},children:[j&&!S?(0,o.jsx)("span",{style:{display:"inline-block",width:20}}):null,(0,o.jsx)(l.u3,{placeholder:h,disabled:k||I===p.sp||I===p.UR,style:{width:E},value:I,validateStatus:T?"error":"default",onChange:e=>{var t=A(e);null==f||f(t),N(t),D(t)},onBlur:()=>{D(I)}}),(0,o.jsx)("br",{}),0!==T&&j?(0,o.jsx)("div",{className:u.Z["check-box"],style:{width:C},children:(0,o.jsx)("span",{className:a()(u.Z["form-check-tip"],"errorClassTag",u.Z.w110),children:O()})}):null,0!==T&&!j&&(0,o.jsx)("div",{className:u.Z["check-box"],style:{width:C},children:(0,o.jsx)("span",{style:{marginLeft:4,right:-15},className:a()(u.Z["form-check-tip"],"errorClassTag"),children:O()})})]})},m=e=>(0,o.jsxs)("div",{className:"whitespace-nowrap",children:[e.name,e.required?(0,o.jsx)(l.ZT.Text,{style:{color:"red",marginLeft:-3},children:" * "}):null,e.toolTipText?(0,o.jsx)(l.u,{content:e.toolTipText,children:(0,o.jsx)(s.aUG,{style:{color:"#5f5f5f9e",position:"relative",top:3,left:2}})}):null]})},900021:function(e,t,i){i.d(t,{B:function(){return n},Q:function(){return r}});var o,r=((o={}).PASS="PASS",o.FAIL="FAIL",o.WAIT="WAIT",o),n={SAFE_CHECK:0x2aebbb74}},577413:function(e,t,i){i.d(t,{$F:function(){return j},$S:function(){return D},Hn:function(){return M},IK:function(){return v},Og:function(){return A},Rm:function(){return x},SR:function(){return k},UK:function(){return w},Vv:function(){return L},_v:function(){return z},aE:function(){return E},aY:function(){return I},bd:function(){return g},eO:function(){return m},jd:function(){return y},lf:function(){return f},qE:function(){return O},sl:function(){return N},ub:function(){return b},w:function(){return S}});var o=i(808549),r=i(120454),n=i(801815),a=i(550655),l=i(335740),s=i(788637),d=i(278796),c=i(64605),u=i(458949),p=i(827666),g=e=>{for(var{data:t,callback:i,childrenName:o=p.Il,path:r=[]}=e,n=0;n<t.length;n++){var a=JSON.parse(JSON.stringify(r));a.push(n),i(t[n],a),t[n][o]&&t[n][o].length>0&&g({data:t[n][o],callback:i,childrenName:o,path:a})}},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global_default",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(!!Array.isArray(e))for(var o of e)o.deep=i,o[t]&&(o.value=o[t]),o[p.Il]&&m(o[p.Il],t,i+1)},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!!Array.isArray(e))for(var i of e)(0,a.Z)(i.deep)&&t.push(i.deep),i[p.Il]&&h(i[p.Il],t)},f=e=>{if(!Array.isArray(e)||0===e.length)return 0;var t=[];return h(e,t),Math.max.apply(null,t)},b=function(){var{isArray:e=!1,iscChildren:t=!1,deep:i=1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{[p.Fc]:(0,n.x0)(),name:e?p.sp:"",desc:"",type:u.rH.String,location:t?void 0:u.Pi.Query,is_required:!0,sub_parameters:[],deep:i}},v=(e,t)=>{for(var i=0;i<e.length;i++){if(e[i][p.Fc]===t)return e.splice(i,1),!0;if(e[i][p.Il]&&e[i][p.Il].length>0&&v(e[i][p.Il],t))return!0}return!1},x=(e,t)=>{for(var i of e){if(i[p.Fc]===t)return i[p.Il]=[],!0;if(Array.isArray(i[p.Il])&&i[p.Il].length>0&&x(i[p.Il],t))return!0}return!1},_=(e,t,i)=>{for(var o of e)o[t]=i,Array.isArray(o[p.Il])&&_(o[p.Il],t,i)},y=e=>{var{data:t,targetKey:i,field:o,value:r,inherit:n=!1}=e;for(var a of t){if(a[p.Fc]===i){a[o]=r,n&&Array.isArray(a[p.Il])&&a[p.Il].length>0&&_(a[p.Il],o,r);return}Array.isArray(a[p.Il])&&a[p.Il].length>0&&y({data:a[p.Il],targetKey:i,field:o,value:r})}},w=(e,t)=>{for(var i=(0,l.Z)(e),o=[...t],r=0;r<t.length;r++)i[t[r]]?i=i[t[r]]:(i=i[0],o[r]=0);return o},k=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e.reduce((e,i)=>{var o=[];switch(i.type){case u.rH.String:i.value&&(e[i.name]=i.value),!t&&(e[i.name]=i.value);break;case u.rH.Integer:case u.rH.Number:i.value&&(e[i.name]=Number(i.value)),!t&&(e[i.name]=i.value);break;case u.rH.Bool:i.value&&(e[i.name]="true"===i.value),!t&&(e[i.name]=i.value);break;case u.rH.Object:if(i.sub_parameters){var r=k(i.sub_parameters,t);!(0,s.Z)(r)&&(e[i.name]=r)}break;case u.rH.Array:if(o=i.sub_parameters,[u.rH.Bool,u.rH.Integer,u.rH.Number,u.rH.String].includes(i.sub_parameters[0].type)&&(o=i.sub_parameters.filter(e=>e.value)),(0,s.Z)(o))break;e[i.name]=o.map(e=>[u.rH.Bool].includes(e.type)?t?"true"===e.value:e.value:[u.rH.Integer,u.rH.Number].includes(e.type)?t?Number(e.value):e.value:[u.rH.String].includes(e.type)?e.value:e.type===u.rH.Object?k(e.sub_parameters,t):void 0)}return e},{})},j=e=>{var t,i,o={};for(var r in e)(null===(t=e[r])||void 0===t?void 0:t.constructor)===Object?o[r]=j(e[r]):o[r]=e[r];return"sub_parameters"in o&&(o.sub_parameters=null===(i=o.sub_parameters)||void 0===i?void 0:i.map(j)),o[p.Fc]&&(o[p.Fc]=(0,n.x0)()),o.value&&(o.value=null),o},M=(e,t)=>!!e.map(e=>e[p.Fc]).includes(t)||T(e,t),I=(e,t,i)=>{for(var o of e){if(o[p.Fc]===t)return e.filter(e=>e.name===i).length>1;if(Array.isArray(o[p.Il])&&o[p.Il].length>0&&I(o[p.Il],t,i))return!0}},N=e=>{if(!Array.isArray(e))return!1;for(var t of e){if(t.type===u.rH.Array)return!0;if(Array.isArray(t[p.Il])&&t[p.Il].length>0&&N(t[p.Il]))return!0}return!1},T=(e,t)=>{for(var i of e){if(i[p.Fc]===t)return e.length>1;if(Array.isArray(i[p.Il])&&i[p.Il].length>0&&T(i[p.Il],t))return!0}},z=e=>new Promise(t=>{setTimeout(()=>{t(0)},e)}),D=e=>{var t=document.querySelector(e);t&&("function"==typeof t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded():t.scrollIntoView({behavior:"smooth",block:"start"}))},A=e=>{e.scrollTo({left:0,top:e.scrollHeight,behavior:"smooth"})},S=(e,t)=>{var i=(0,l.Z)(e),o=e=>{"local_default"===t&&!(0,d.Z)(e,"local_default")&&(e[t]=e.global_default),!e[t]&&(e[t]=""),e.default_param_source===u.qi.Input&&"local_default"===t&&e.is_required&&!e.local_default&&e.local_disable&&(e.local_disable=!1)},r=function(e){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,a=e.length;n<a;n++){var l=e[n];i?(l[t]=void 0,l.sub_parameters&&l.sub_parameters.length>0&&r(l.sub_parameters,!0)):l.type===u.rH.Array?(o(l),l.sub_parameters&&l.sub_parameters.length>0&&r(l.sub_parameters,!0)):(l.type===u.rH.Object?l[t]=void 0:o(l),l.sub_parameters&&l.sub_parameters.length>0&&r(l.sub_parameters))}};return r(i),i},E=(e,t)=>{var i=[];return Array.isArray(e)&&e.forEach(e=>{var o=C(e,t[0]);i.push(o)}),i},C=(e,t)=>{var i={};if(Array.isArray(e))i=(0,r._)((0,o._)({},t),{id:(0,n.x0)(),sub_parameters:[]}),e.forEach(e=>{var o,r=C(e,t.sub_parameters[0]);null===(o=i.sub_parameters)||void 0===o||o.push(r)});else if((0,c.Z)(e)){i=(0,r._)((0,o._)({},t),{id:(0,n.x0)(),sub_parameters:[]});var a={};Object.keys(e).map(l=>{if(Object.prototype.hasOwnProperty.call(e,l)){var s,d=e[l];if(Array.isArray(d)||"object"==typeof d){var c,u=C(d,t.sub_parameters.find(e=>e.name===l));null===(c=i.sub_parameters)||void 0===c||c.push(u)}else(a=(0,r._)((0,o._)({},t.sub_parameters.find(e=>e.name===l)),{id:(0,n.x0)(),sub_parameters:[]})).value=String(d),null===(s=i.sub_parameters)||void 0===s||s.push(a)}})}else(i=(0,r._)((0,o._)({},t),{id:(0,n.x0)(),sub_parameters:[]})).value=String(e);return i},O=e=>{for(var t=(0,l.Z)(e),i=0,o=t.length;i<o;i++)if(t[i].type===u.rH.Array){var r=JSON.parse(t[i].global_default||"[]");if(r.length>0){var n=E(r,t[i].sub_parameters||[]);t[i].sub_parameters=n}}else t[i].sub_parameters=O(t[i].sub_parameters||[]);return t},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.length)return[];for(var i=(0,l.Z)(e),o=0,r=i.length;o<r;o++){var n,a=i[o];void 0===a.global_default&&(a.global_disable=void 0),a.global_default=void 0,!t&&(a.is_required=void 0),a.sub_parameters=L(null!==(n=a.sub_parameters)&&void 0!==n?n:[],t)}return i}},834557:function(e,t,i){i.d(t,{p:function(){return g}});var o=i(825955),r=i(151064),n=i(455069),a=i(335740),l=i(336205),s=i(775699),d=i(458949),c=i(577413),u=i(849201),p=(0,n.lazy)((0,o._)(function*(){var{Debug:e}=yield i.e("6226").then(i.bind(i,364112));return{default:e}})),g=e=>{var t,[i,o]=(0,n.useState)(!1),[g,m]=(0,n.useState)();return(0,n.useEffect)(()=>{!i&&m(void 0)},[i]),{exampleNode:(0,r.jsx)(s.M5,{title:l.o.t("plugin_edit_tool_test_run_example_tip"),visible:i,width:1280,style:{height:"calc(100vh - 140px)",minWidth:"1040px"},centered:!0,onCancel:()=>{o(!1)},footer:null,getPopupContainer:null==e?void 0:e.getPopupContainer,children:g?(0,r.jsx)(n.Suspense,{fallback:null,children:(0,r.jsx)(p,{disabled:!0,pluginId:"",apiId:null!==(t=null==g?void 0:g.api_id)&&void 0!==t?t:"",apiInfo:g,pluginName:"",debugExample:null==g?void 0:g.debug_example,isViewExample:!0})}):null}),doShowExample:e=>{var{scene:t,requestParams:i,debugExample:r}=e;if(!!i&&!!(null==r?void 0:r.req_example)){var n=(0,a.Z)(i);if("workflow"===t)(0,u.$T)(n,JSON.parse(null==r?void 0:r.req_example));else{if("bot"!==t)return;(0,u.rl)(n,JSON.parse(null==r?void 0:r.req_example))}(0,c.eO)(n),m({debug_example_status:d.ji.Enable,request_params:n,debug_example:r}),o(!0)}}}}},849201:function(e,t,i){i.d(t,{$T:function(){return u},C$:function(){return l},rl:function(){return c}});var o=i(801815),r=i(962289),n=i(458949),a={string:n.rH.String,integer:n.rH.Integer,number:n.rH.Number,object:n.rH.Object,array:n.rH.Array,bool:n.rH.Bool,list:n.rH.Array,float:n.rH.Number,boolean:n.rH.Bool},l=(e,t)=>{var i=(e,t)=>{e.forEach(e=>{var o,a,l=(0,r.Z)(t,null!==(o=null==e?void 0:e.name)&&void 0!==o?o:"");void 0!==l&&(e.type===n.rH.Object?i(null!==(a=e.sub_parameters)&&void 0!==a?a:[],l):e.type===n.rH.Array?e.global_default=JSON.stringify(l):e.global_default=l)})};i(e,t)},s=e=>{if(Array.isArray(e))e.forEach(e=>{s(e)});else{if(e.type=a[e.type],e.sub_type=a[e.sub_type],e.is_required=e.required,e.global_disable=!1,e.local_disable=!1,e.location=void 0,e.id=(0,o.x0)(),e.desc=e.description,"schema"in e){if(e.type===n.rH.Array){var t,i,r;e.sub_parameters=[{name:"[Array Item]",is_required:e.required,type:a[null===(t=e.schema)||void 0===t?void 0:t.type],global_disable:!1,local_disable:!1,location:void 0,sub_type:0,sub_parameters:null!==(r=null===(i=e.schema)||void 0===i?void 0:i.schema)&&void 0!==r?r:[]}]}else e.type===n.rH.Object?e.sub_parameters=[...e.schema]:e.sub_parameters=[]}else e.sub_parameters=[];s(e.type===n.rH.Array?e.sub_parameters[0].sub_parameters:null==e?void 0:e.sub_parameters)}},d=e=>{Array.isArray(e)?e.forEach(e=>{d(e)}):(e.type=a[e.type],e.sub_type=a[e.sub_type],e.is_required=e.required,e.global_disable=!1,e.local_disable=!1,e.location=void 0,e.id=(0,o.x0)(),!("sub_parameters"in e)&&(e.sub_parameters=[]),"sub_params"in e&&(e.sub_parameters=e.sub_params),e.type===n.rH.Array?(e.sub_parameters=[{name:"[Array Item]",is_required:e.required,type:e.sub_type,global_disable:!1,local_disable:!1,location:void 0,sub_type:0,sub_parameters:[...e.sub_parameters]}],d(e.sub_parameters[0].sub_parameters)):d(e.sub_parameters))},c=(e,t)=>{d(e),l(e,t)},u=(e,t)=>{s(e),l(e,t)}},833047:function(e,t,i){i.d(t,{eL:()=>c,YS:()=>b,gp:()=>l,WB:()=>ec,L8:()=>d,o_:()=>v,TB:()=>E,tx:()=>p,XJ:()=>s,Ht:()=>S,ir:()=>f});var o,r,n,a,l=((o={}).All="1",o.Mine="2",o),s=1,d=10;var c=((r={}).Mine="mine",r.Team="team",r.Favorite="favorite",r.Project="project",r),u=i("30961");var p=((n={}).WorkflowAddNode="workflow_addNode",n.BotSkills="bot_skills",n.BotTrigger="bot_trigger",n.ProjectIde="project_ide",n.ProjectWorkflow="project_workflow",n),g=i("336205"),m=i("656927"),h=i("318281");i("915100"),i("789716");var f=()=>({active_icon_url:m.Z,icon_url:h.Z,id:"",name:g.o.t("All")}),b=e=>{var t,i;return(null!==(t=e.plugin_id)&&void 0!==t?t:"0")+(null!==(i=e.name)&&void 0!==i?i:"")},v=e=>{var{apiInfo:t}=e;return(null==t?void 0:t.name)&&(null==t?void 0:t.plugin_id)?"".concat(t.name,"_").concat(t.plugin_id):""},x=i("825955"),_=i("808549"),y=i("517465"),w=i.n(y),k=i("721566"),j=i("117140"),M=i("458949"),I=i("382534"),N=(e,t)=>{if(!(e in{current_entity_id:"current_entity_id",current_entity_version:"current_entity_version"}))return t;if(""!==t)return t};function T(e,t){var i,o,r,n,a,l,s,d,c,u,p,g,m,h,f,b,v,x,y,w,k,j,M,I,N,T,z,D,A,S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{productInfo:(0,_._)({id:String(null==e?void 0:null===(d=e.meta_info)||void 0===d?void 0:d.id),category:null==e?void 0:null===(c=e.meta_info)||void 0===c?void 0:c.category,entity_type:null==e?void 0:null===(u=e.meta_info)||void 0===u?void 0:u.entity_type,favorite_count:null==e?void 0:null===(p=e.meta_info)||void 0===p?void 0:p.favorite_count,heat:null==e?void 0:null===(g=e.meta_info)||void 0===g?void 0:g.heat,is_favorited:null==e?void 0:null===(m=e.meta_info)||void 0===m?void 0:m.is_favorited,is_free:null==e?void 0:null===(h=e.meta_info)||void 0===h?void 0:h.is_free,favorite_time:String(S||""),status:null==e?void 0:null===(f=e.meta_info)||void 0===f?void 0:f.status,listed_at:null==e?void 0:null===(b=e.meta_info)||void 0===b?void 0:b.listed_at,user_info:e.meta_info.user_info},e.plugin_extra),pluginInfo:{name:null==e?void 0:null===(v=e.meta_info)||void 0===v?void 0:v.name,plugin_apis:(a=null==(i=e)?void 0:null===(o=i.meta_info)||void 0===o?void 0:o.name,l="".concat((null==i?void 0:null===(r=i.meta_info)||void 0===r?void 0:r.entity_id)||""),null==(s=null==i?void 0:null===(n=i.plugin_extra)||void 0===n?void 0:n.tools)?void 0:s.map(e=>{var t,i;return{api_id:"".concat((null==e?void 0:e.id)||""),desc:null==e?void 0:e.description,name:null==e?void 0:e.name,plugin_id:l,plugin_name:a,record_id:"",card_binding_info:{thumbnail:null==e?void 0:null===(t=e.card_info)||void 0===t?void 0:t.card_url},parameters:null==e?void 0:null===(i=e.parameters)||void 0===i?void 0:i.map(e=>({name:null==e?void 0:e.name,desc:null==e?void 0:e.description,required:null==e?void 0:e.required,type:null==e?void 0:e.type,sub_params:null==e?void 0:e.sub_params})),debug_example:null==e?void 0:e.example}})),id:"".concat((null==e?void 0:null===(x=e.meta_info)||void 0===x?void 0:x.entity_id)||""),plugin_icon:null==e?void 0:null===(y=e.meta_info)||void 0===y?void 0:y.icon_url,desc_for_human:null==e?void 0:null===(w=e.meta_info)||void 0===w?void 0:w.description,creator:{id:"".concat((null==e?void 0:null===(j=e.meta_info)||void 0===j?void 0:null===(k=j.user_info)||void 0===k?void 0:k.user_id)||""),name:null==e?void 0:null===(I=e.meta_info)||void 0===I?void 0:null===(M=I.user_info)||void 0===M?void 0:M.name,avatar_url:null==e?void 0:null===(T=e.meta_info)||void 0===T?void 0:null===(N=T.user_info)||void 0===N?void 0:N.avatar_url},statistic_data:{bot_quote:(null==e?void 0:null===(z=e.plugin_extra)||void 0===z?void 0:z.bots_use_count)||0},tag:null==e?void 0:null===(A=e.meta_info)||void 0===A?void 0:null===(D=A.category)||void 0===D?void 0:D.id},isFromMarket:!0,belong_page:t,commercial_setting:e.commercial_setting}}function z(){return(z=(0,x._)(function*(e,t){var i,o,{nextPage:r}=t,{search:n,type:a,orderByPublic:l,botInfo:s={},isOfficial:d,pluginType:c}=e,u=yield I.yF.PublicGetProductList((0,_._)({entity_type:j._J.Plugin,category_id:void 0,sort_type:l,page_num:r,page_size:20,keyword:n,source:"recommend"===a?j.QJ.CustomizedRecommend:void 0,is_official:d,plugin_type:c},s),{paramsSerializer:e=>w().stringify(e,{filter:N})}),p=((null==u?void 0:null===(i=u.data)||void 0===i?void 0:i.products)||[]).map(e=>T(e,r)),g=p.length>0&&(null==u?void 0:null===(o=u.data)||void 0===o?void 0:o.has_more)||!1;return{list:p,total:-1,hasMore:g}})).apply(this,arguments)}function D(){return(D=(0,x._)(function*(e,t){var i,o,r,{nextPage:n}=t,{search:a,orderByFavorite:l}=e,s=yield I.yF.PublicGetUserFavoriteList({entity_type:j._J.Plugin,sort_type:l,page_num:n,page_size:20,key_wrod:a}),d=null===(i=(null==s?void 0:null===(o=s.data)||void 0===o?void 0:o.favorite_products)||[])||void 0===i?void 0:i.map(e=>T(e.product,n,"".concat((null==e?void 0:e.created_at)||""))),c=d.length>0&&(null==s?void 0:null===(r=s.data)||void 0===r?void 0:r.has_more)||!1;return{list:d,total:-1,hasMore:c}})).apply(this,arguments)}function A(){return(A=(0,x._)(function*(e,t){var i,{nextPage:o}=t,{search:r,projectId:n,devId:a,orderBy:l}=e,s=yield I.Js.GetDevPluginList({page:o,size:d,space_id:k.rY.getState().getSpaceId(),name:r,dev_id:a,project_id:n,order_by:l}),c=null===(i=(null==s?void 0:s.plugin_list)||[])||void 0===i?void 0:i.map(e=>({pluginInfo:e,isFromMarket:!1,belong_page:o})),u=c.length>0&&o*d<Number(null==s?void 0:s.total);return{list:c,total:-1,hasMore:u}})).apply(this,arguments)}var S=(e,t)=>{var{isMine:i,isTeam:o,isFavorite:r,isProject:n}=t;if(console.log("[div] params:",e,t),i||o)return function(e,t){var{isMine:i,isTeam:o,isCreatorMine:r,isTemplate:n,nextPage:a}=t,l=[M.zV.PLUGIN,M.zV.APP,M.zV.LOCAL],{search:s,orderByPublic:c,orderBy:u}=e,p={page:a||1,size:d,name:s||void 0,self_created:!!i||!!o&&!!r||void 0,order_by:n?c:u,plugin_types:l,space_id:k.rY.getState().getSpaceId(),channel_id:1};return I.Js.GetPlaygroundPluginList(p).then(e=>{var t,i,o,r=(null===(i=e.data)||void 0===i?void 0:null===(t=i.plugin_list)||void 0===t?void 0:t.map(e=>({pluginInfo:e,isFromMarket:!1,belong_page:a})))||[],n=r.length>0&&a*d<Number(null===(o=e.data)||void 0===o?void 0:o.total);return{list:r,total:-1,hasMore:n}})}(e,t);if(r)return function(e,t){return D.apply(this,arguments)}(e,t);if(n)return function(e,t){return A.apply(this,arguments)}(e,t);return function(e,t){return z.apply(this,arguments)}(e,t)},E=e=>{var{query:t,isSearching:i,isTemplate:o,page:r}=e,{orderBy:n,orderByPublic:a,type:l,mineActive:s}=t;return i?void 0:o?"plugin-".concat(l,"-").concat(r,"-").concat(a):"plugin-".concat(l,"-").concat(r,"-").concat(n,"-").concat(s)},C=i("151064"),O=i("455069"),L=i("252237"),Z=i.n(L),P=i("584466"),F=i("998262"),B=i("775699"),R=i("44172"),U=i("44099"),Q=i("298203"),Y=i("707107"),V=i("388993"),W=i("214942"),G=i("982997"),H=i("322512"),q=i("689951"),K=i("13194"),J=i("824113"),X=i("834557"),$=i("659596"),ee=i("916672"),et=i("873183");i("298188");var ei=e=>{var{avgExecTime:t,callAmount:i,successRate:o,botsUseCount:r,className:n}=e;return null},eo=e=>{var t,i,o,{isAdded:r,onApiToggle:n,pluginApi:a,marketStatus:l,showButton:s,from:d,workflowNodes:c,loading:u,marketPluginInfo:m,isLocalPlugin:h,connectors:f}=e,{name:b,desc:v,parameters:x,debug_example:_}=a,{exampleNode:y,doShowExample:w}=(0,X.p)(),[k,{setFalse:M,setTrue:I}]=(0,q.Z)(!1),[N,T]=(0,O.useState)((c||[]).length),z=d===p.WorkflowAddNode||d===p.ProjectWorkflow,D=l===(null===j.Pt||void 0===j.Pt?void 0:j.Pt.Unlisted),A=h&&(!z&&!r||z&&0===N);return(0,C.jsxs)(C.Fragment,{children:[y,(0,C.jsxs)("div",{className:G.Z["plugin-item"],children:[(0,C.jsxs)("div",{className:G.Z["plugin-api-main"],children:[(0,C.jsxs)(B.T,{className:G.Z["plugin-api-name"],children:[(0,C.jsx)(B.ZT.Text,{ellipsis:{showTooltip:{opts:{content:b,style:{wordBreak:"break-word"}}}},children:b}),(null==a?void 0:null===(t=a.card_binding_info)||void 0===t?void 0:t.thumbnail)?(0,C.jsx)(J.br,{url:null==a?void 0:null===(i=a.card_binding_info)||void 0===i?void 0:i.thumbnail}):null]}),(0,C.jsxs)("div",{className:G.Z["plugin-api-desc"],children:[(0,C.jsx)(B.ZT.Text,{style:{width:640},ellipsis:{showTooltip:{opts:{content:v,style:{wordBreak:"break-word",maxWidth:"560px"}}},rows:1},children:v}),!!(null==x?void 0:x.length)&&(0,C.jsxs)("div",{className:G.Z["api-params"],children:[(0,C.jsx)(ee.D,{items:null===(o=(0,H.Z)(x,e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.length}))||void 0===o?void 0:o.map((e,t)=>({tagName:e.name,key:String(t)})),overflowRenderer:e=>e.length?(0,C.jsxs)(B.fS,{className:G.Z["tag-item"],size:"small",children:["+",e.length]}):null,visibleItemRenderer:e=>(0,C.jsx)(B.fS,{className:G.Z["tag-item"],size:"small",children:e.tagName},e.key),collapseFrom:"end",className:G.Z["params-tags"]}),(0,C.jsx)(K.C,{pluginApi:a,children:(0,C.jsx)("div",{className:G.Z["params-desc"],children:g.o.t("parameters")})}),_?(0,C.jsx)("div",{className:G.Z["params-desc"],style:{marginLeft:"8px"},onClick:()=>w({scene:"bot",requestParams:x,debugExample:_}),children:g.o.t("plugin_edit_tool_view_example")}):null]}),(0,C.jsx)(ei,{className:G.Z["store-plugin-tools"],callAmount:null==m?void 0:m.call_amount,avgExecTime:null==m?void 0:m.avg_exec_time,successRate:null==m?void 0:m.success_rate,botsUseCount:null==m?void 0:m.bots_use_count})]})]}),(0,C.jsx)("div",{className:G.Z["plugin-api-method"],children:s?(0,C.jsx)($.gn,{trigger:!D&&A?"click":"custom",position:"bottomRight",title:g.o.t("store_service_plugin_connector_only",{connector_names:null==f?void 0:f.join("、")}),okText:g.o.t("Add_1"),cancelText:g.o.t("Cancel"),onConfirm:()=>{null==n||n().then(e=>{e&&T(e=>e+1)})},children:(0,C.jsx)("div",{children:(0,C.jsx)(B.u,{content:g.o.t("mkpl_plugin_delisted_tips"),trigger:D?"hover":"custom",children:(0,C.jsx)(B.y3,{"data-testid":"bot.ide.plugin.plugin-panel-plugin-item-btn",className:Z()(G.Z["operator-btn"],{[G.Z.added]:!D&&r,[G.Z.addedMouseIn]:!D&&r&&k}),onClick:()=>{if(!A)null==n||n().then(e=>{e&&T(e=>e+1)})},onMouseEnter:()=>{I()},disabled:D,loading:u&&z,onMouseLeave:()=>{M()},children:r&&!D?k?g.o.t("Remove"):g.o.t("Added"):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("span",{children:g.o.t("Add_1")}),z&&0!==N?(0,C.jsx)("span",{className:G.Z.workflow_count_span,children:N}):null]})})})})},"".concat(A)):null})]})]})},er=(e,t)=>{var i,o,r,n=t.find(t=>t.name===e);return null!==(r=null==n?void 0:null===(o=n.input)||void 0===o?void 0:null===(i=o.value)||void 0===i?void 0:i.content)&&void 0!==r?r:""},en=i("947578"),ea=i("346707"),el=i("156133");var es=((a={})[a.NoAuth=0]="NoAuth",a[a.Required=1]="Required",a[a.Configured=2]="Configured",a[a.Supported=3]="Supported",a),ed=e=>{var{onApiToggle:t}=e;return(0,C.jsx)(B.y3,{onClick:e=>{e.stopPropagation(),null==t||t()},children:g.o.t("add_resource_modal_copy_to_project")})},ec=e=>{var t,i,o,r,n,a,l,s,d,c,m,{info:h,highlightWords:f,showCreator:v=!1,showCreateTime:y=!0,showPublishTime:w=!1,showButton:k=!0,showCopyPlugin:N=!1,className:T="",pluginApiList:z,productInfo:D,showMarketLink:A,showProjectPluginLink:S,clickProjectPluginCallback:E,isFromMarket:L,onPluginApiListChange:H,openMode:q,from:K,workflowNodes:X,openModeCallback:ee,onCopyPluginCallback:ec,scrollContainerRef:eu,type:ep,activeKey:eg,agentId:em,index:eh=0,addonBefore:ef,addonAfter:eb}=e,{name:ev,plugin_apis:ex,id:e_,plugin_icon:ey,project_id:ew,desc_for_human:ek,create_time:ej=0,update_time:eM=0,statistic_data:eI,listed_at:eN,plugin_product_status:eT,plugin_type:ez,is_official:eD,version_name:eA,version_ts:eS}=h,eE=(0,V.G)(e=>e.botId),{id:eC,status:eO,auth_mode:eL}=D||{},eZ=(0,O.useRef)(null),eP=(0,O.useRef)(!1),eF=(0,O.useRef)(""),[eB,eR]=(0,O.useState)(!1),eU=(0,O.useMemo)(()=>(0,F.Z)(X||[],e=>{var t,i,o,r=null!==(o=null===(i=e.data)||void 0===i?void 0:null===(t=i.inputs)||void 0===t?void 0:t.apiParam)&&void 0!==o?o:[],n=er("pluginID",r),a=er("apiID",r);return"".concat(n,"_").concat(a)}),[X]),[eQ]=(0,P.Z)(eZ,{root:()=>null==eu?void 0:eu.current}),eY=(0,O.useMemo)(()=>!!e_&&(!!(eg===e_||(null==eg?void 0:eg.includes(e_)))||!1),[eg,e_]);(0,O.useEffect)(()=>{eY&&(0,Y.Gg)(Y.Kg.product_click_front,{plugin_id:h.id,product_id:"".concat(null==D?void 0:D.id),product_name:(null==h?void 0:h.name)||"",entity_type:"plugin",source:"add_plugin_menu",from:"add_plugin_menu",filter_tag:ep||"",action:"expand_tools",c_position:eh})},[eY,null==D?void 0:D.id]),(0,O.useEffect)(()=>{if(!!L&&!eP.current)eQ&&(eP.current=!0,(0,Y.Gg)(Y.Kg.product_show_front,{plugin_id:h.id,product_id:"".concat(null==D?void 0:D.id),product_name:(null==h?void 0:h.name)||"",entity_type:"plugin",source:"add_plugin_menu",from:"add_plugin_menu",filter_tag:ep||"",c_position:eh}))},[eQ,D,h,ep]);var eV=w?g.o.t("mkl_plugin_publish"):y?g.o.t("mkl_plugin_created"):g.o.t("mkl_plugin_updated"),eW=(w?Number(eN):y?Number(ej):Number(eM))||0;return(0,C.jsx)(B.UO.Panel,{"data-testid":"plugin-collapse-panel",className:Z()(G.Z["plugin-panel"],T),disabled:!(null==ex?void 0:ex.length),header:(0,C.jsxs)("div",{className:G.Z["plugin-panel-header"],ref:eZ,children:[(0,C.jsx)(U.vC,{size:"small",visible:null!==(m=null==D?void 0:D.is_official)&&void 0!==m&&m,children:(0,C.jsx)(B.Ee,{className:G.Z["header-icon"],src:ey,preview:!1})}),(0,C.jsxs)("div",{className:G.Z["header-main"],children:[(0,C.jsx)("div",{className:G.Z["header-name"],children:(0,C.jsxs)(B.T,{spacing:8,className:"flex-1",children:[(0,C.jsx)(B.ZT.Text,{children:(0,C.jsx)(B.y$,{sourceString:ev,searchWords:f,component:"strong"})}),(0,ea.Z)(eL)||eL===es.NoAuth?null:eL===es.Required||eL===es.Supported?(0,C.jsx)($.Vp,{color:"yellow",className:"font-medium !py-2px !px-4px !h-20px",children:g.o.t("plugin_tool_config_status_unauthorized")}):(0,C.jsx)($.Vp,{color:"brand",className:"font-medium !py-2px !px-4px !h-20px",children:g.o.t("plugin_tool_config_status_authorized")}),S&&E?(0,C.jsx)(R.WXt,{className:G.Z["market-link-icon"],onClick:e=>{e.stopPropagation(),null==E||E((0,_._)({},h))}}):null,A&&Number(eC)>0?(0,C.jsx)(R.WXt,{className:G.Z["market-link-icon"],onClick:e=>{e.stopPropagation(),(0,Y.Gg)(Y.Kg.product_click_front,{plugin_id:h.id,product_id:"".concat(null==D?void 0:D.id),product_name:(null==h?void 0:h.name)||"",entity_type:"plugin",source:"add_plugin_menu",from:"add_plugin_menu",filter_tag:ep||"",action:"enter_detailpage",c_position:eh}),window.open("/store/plugin/".concat(eC,"?from=add_plugin_menu"))}}):null]})}),(0,C.jsxs)("div",{className:Z()(G.Z["header-desc"],"flex items-center"),children:[ez===M.zV.LOCAL?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)($.Vp,{color:"cyan",size:"mini",children:g.o.t("local_plugin_label")}),(0,C.jsx)(B.iz,{layout:"vertical",margin:"4px",className:"h-[9px]"})]}):null,(0,C.jsx)(B.ZT.Text,{ellipsis:{showTooltip:{opts:{content:ek,style:{wordWrap:"break-word",maxWidth:"560px"}}},rows:1},children:ek})]}),(0,C.jsx)("div",{className:"my-[8px] leading-[16px]",children:(0,C.jsxs)(B.T,{spacing:4,children:[ef,(null==D?void 0:D.plugin_type)===j.zV.LocalPlugin?(0,C.jsx)($.Vp,{color:"cyan",prefixIcon:(0,C.jsx)(et.ztm,{className:"coz-fg-color-cyan text-[10px]"}),size:"mini",children:g.o.t("store_service_plugin")}):null,(0,C.jsx)($.Vp,{color:"primary",size:"mini",children:g.o.t("bot_edit_page_plugin_list_plugin_has_n_tools",{n:null==ex?void 0:ex.length})}),!!(null==eI?void 0:eI.bot_quote)&&(0,C.jsx)($.Vp,{color:"primary",size:"mini",children:g.o.t("bot_edit_page_plugin_list_plugin_n_bots_using",{n:(0,Q.uf)(null==eI?void 0:eI.bot_quote)})}),(null==D?void 0:null===(t=D.connectors)||void 0===t?void 0:t.length)?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(B.iz,{layout:"vertical",margin:0,className:"coz-stroke-primary"}),(0,C.jsxs)("div",{className:"ml-auto coz-fg-secondary text-base flex items-center gap-6px",children:[g.o.t("store_service_plugin_connector"),(0,C.jsx)(U.Hm,{connectors:null==D?void 0:D.connectors}),(0,C.jsx)($.u,{content:g.o.t("store_add_connector_tootip"),theme:"dark",children:(0,C.jsx)(et.L03,{className:"coz-fg-secondary text-lg"})})]})]}):null]})}),(0,C.jsxs)("div",{className:"flex justify-between",children:[(0,C.jsxs)(B.T,{className:G.Z["header-info"],children:[v?(0,C.jsx)("span",{className:"max-w-[260px]",children:(0,C.jsx)(J.gj,{avatar:null==D?void 0:null===(i=D.user_info)||void 0===i?void 0:i.avatar_url,username:null==D?void 0:null===(o=D.user_info)||void 0===o?void 0:o.user_name,name:null==D?void 0:null===(r=D.user_info)||void 0===r?void 0:r.name,label:{name:null==D?void 0:null===(a=D.user_info)||void 0===a?void 0:null===(n=a.user_label)||void 0===n?void 0:n.label_name,icon:null==D?void 0:null===(s=D.user_info)||void 0===s?void 0:null===(l=s.user_label)||void 0===l?void 0:l.icon_url,href:null==D?void 0:null===(c=D.user_info)||void 0===c?void 0:null===(d=c.user_label)||void 0===d?void 0:d.jump_link},nameMaxWidth:150})}):null,v?(0,C.jsx)(B.iz,{layout:"vertical"}):null,(0,C.jsxs)("div",{className:G.Z["creator-time"],children:["".concat(eV," "),(0,Q.p6)(eW,"YYYY-MM-DD HH:mm")]}),eb]}),(0,C.jsx)(ei,{className:G.Z["plugin-total"],successRate:null==D?void 0:D.success_rate,callAmount:null==D?void 0:D.call_amount,avgExecTime:null==D?void 0:D.avg_exec_time,botsUseCount:null==D?void 0:D.bots_use_count})]})]}),N?(0,C.jsx)("div",{children:(0,C.jsx)(ed,{onApiToggle:()=>{null==ec||ec({pluginID:e_,name:ev})}})}):null]}),itemKey:"".concat(e_),children:null==ex?void 0:ex.map(e=>{var t,i,o,r,n,a,l=z.some(t=>{var i,o,r,n,a,l;return t.api_id&&t.api_id===e.api_id||(null!==(r=null===(i=t.plugin_id)||void 0===i?void 0:i.toString())&&void 0!==r?r:"0")+(null!==(n=t.name)&&void 0!==n?n:"")===(null!==(a=null===(o=e.plugin_id)||void 0===o?void 0:o.toString())&&void 0!==a?a:"0")+(null!==(l=e.name)&&void 0!==l?l:"")});return(0,C.jsx)(eo,{"data-testid":"plugin-panel-item-pluginapi",isAdded:l,pluginApi:e,from:K,workflowNodes:null!==(r=eU["".concat(null==e?void 0:e.plugin_id,"_").concat(null==e?void 0:e.api_id)])&&void 0!==r?r:[],marketPluginInfo:L?null==D?void 0:null===(t=D.tools)||void 0===t?void 0:t.find(t=>t.id===e.api_id):void 0,isLocalPlugin:(null==D?void 0:D.plugin_type)===j.zV.LocalPlugin,connectors:null==D?void 0:null===(i=D.connectors)||void 0===i?void 0:i.map(e=>{var t;return null!==(t=e.name)&&void 0!==t?t:""}),marketStatus:L?eO:void 0,onApiToggle:(0,x._)(function*(){var t=!0;if((0,Q.Kn)(Q.Ij.PLUGIN_API_BLOCK_OPEN),l)H(z.filter(t=>b(t)!==b(e)&&(!(null==t?void 0:t.api_id)||(null==t?void 0:t.api_id)!==(null==e?void 0:e.api_id)))),B.FN.success({content:g.o.t("bot_edit_tool_removed_toast",{api_name:e.name}),showClose:!1}),(0,Y.Gg)(Y.Kg.click_tool_select,{operation:"remove",bot_id:eE,operation_type:"single",tool_id:(null==e?void 0:e.api_id)||"",tool_name:(null==e?void 0:e.name)||"",product_id:"".concat(null==D?void 0:D.id),product_name:(null==h?void 0:h.name)||"",source:"add_plugin_list",from:"bot_develop"});else{var i={plugin_icon:ey,plugin_type:ez,is_official:eD,project_id:ew,version_name:eA,version_ts:eS};if(z.map(e=>{var t;return(null!==(t=e.plugin_name)&&void 0!==t?t:"")+e.name}).includes((null!==(r=e.plugin_name)&&void 0!==r?r:"")+(null!==(n=e.name)&&void 0!==n?n:"")))B.FN.error({content:g.o.t("plugin_name_conflict_error"),showClose:!1}),t=!1;else{if(L){if(e.plugin_id&&(null==e?void 0:e.api_id)&&(null==e?void 0:e.api_id)!=="0"){eR(!0),eF.current=e.api_id;var o,r,n,a,s,d,c,m,f,v=yield I.Js.GetPlaygroundPluginList({page:1,size:1,plugin_ids:[e.plugin_id],plugin_types:[M.zV.PLUGIN,M.zV.APP,M.zV.LOCAL],space_id:W.rY.getState().getSpaceId()});eR(!1);var x=null==v?void 0:null===(c=v.data)||void 0===c?void 0:null===(d=c.plugin_list)||void 0===d?void 0:null===(s=d[0])||void 0===s?void 0:null===(a=s.plugin_apis)||void 0===a?void 0:a.find(t=>(null==t?void 0:t.api_id)===(null==e?void 0:e.api_id));x&&Object.assign(x,(0,_._)({plugin_product_status:null==v?void 0:null===(f=v.data)||void 0===f?void 0:null===(m=f.plugin_list)||void 0===m?void 0:m[0].plugin_product_status},i)),o=x}}else o=Object.assign((0,_._)({},e),(0,_._)({plugin_product_status:eT},i));if(o){if(q===u.jG.OnlyOnceAdd||K&&[p.WorkflowAddNode,p.ProjectIde,p.ProjectWorkflow].includes(K)){var y=yield null==ee?void 0:ee((0,_._)({},o,i));return(0,el.Z)(y)?y:t}H([...z,o]),B.FN.success({content:g.o.t("bot_edit_tool_added_toast",{api_name:e.name}),showClose:!1})}else B.FN.error({content:(0,en.u)(g.o.t("bot_edit_tool_added_toast_error",{api_name:e.name})),showClose:!1}),t=!1}(0,Y.Gg)(Y.Kg.click_tool_select,{operation:"add",bot_id:eE,operation_type:"single",tool_id:(null==e?void 0:e.api_id)||"",tool_name:(null==e?void 0:e.name)||"",product_id:"".concat(null==D?void 0:D.id),product_name:(null==h?void 0:h.name)||"",source:"add_plugin_list",from:"bot_develop"})}return t}),showButton:k,loading:eB&&(null==e?void 0:e.api_id)===eF.current},(null!==(n=null===(o=e.plugin_id)||void 0===o?void 0:o.toString())&&void 0!==n?n:"")+(null!==(a=e.name)&&void 0!==a?a:""))})})}},189284:function(e,t,i){i.d(t,{V:function(){return a}});var o=i(455069),r=i(864114),n=i(839974),a=()=>{var e=(0,n.L)(),[,t]=(0,o.useState)(0);return(0,o.useEffect)(()=>{var e=()=>{t(Date.now())};return r.l.on("change",e),()=>{r.l.off("change",e)}},[]),[e]}},966219:function(e,t,i){i.r(t),i.d(t,{DiffEditor:()=>p,Editor:()=>u});var o=i("825955"),r=i("808549"),n=i("151064"),a=i("455069"),l={init(){return(0,o._)(function*(){return(yield this.config()).init()}).apply(this)},config(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o._)(function*(){var t=yield Promise.all([i.e("4783"),i.e("6961"),i.e("7079")]).then(i.bind(i,66557)),{loader:o}=yield i.e("38").then(i.bind(i,354428));return o.config((0,r._)({monaco:t},e)),o})()}},s=(0,a.lazy)((0,o._)(function*(){yield l.config();var{Editor:e}=yield i.e("3617").then(i.bind(i,257073));return{default:e}})),d=(0,a.lazy)((0,o._)(function*(){yield l.config();var{DiffEditor:e}=yield i.e("3617").then(i.bind(i,257073));return{default:e}})),c=(0,n.jsx)("div",{children:"Loading Editor..."}),u=e=>(0,n.jsx)(a.Suspense,{fallback:c,children:(0,n.jsx)(s,(0,r._)({},e))}),p=e=>(0,n.jsx)(a.Suspense,{fallback:c,children:(0,n.jsx)(d,(0,r._)({},e))})},622103:function(e,t,i){i.d(t,{Nh:function(){return n},aZ:function(){return a}});var o,r,n=((o={})[o.Bot=0]="Bot",o[o.Project=1]="Project",o);var a=((r={})[r.Free=0]="Free",r[r.PremiumLite=10]="PremiumLite",r[r.Premium=15]="Premium",r[r.PremiumPlus=20]="PremiumPlus",r[r.V1ProInstance=100]="V1ProInstance",r[r.ProPersonal=110]="ProPersonal",r[r.Team=120]="Team",r[r.Enterprise=130]="Enterprise",r)},824833:function(e,t,i){i.d(t,{d$:function(){return l},re:function(){return a},zE:function(){return s}});var o,r,n,a=((o={})[o.Undefined=0]="Undefined",o[o.CozePlugin=1e4]="CozePlugin",o[o.CozeTool=10001]="CozeTool",o[o.CozeWorkflow=10002]="CozeWorkflow",o[o.CozeSubWorkflow=10003]="CozeSubWorkflow",o[o.CozeLLMNode=10004]="CozeLLMNode",o[o.CozeCodeNode=10005]="CozeCodeNode",o[o.CozeKnowledgeNode=10006]="CozeKnowledgeNode",o[o.CozeToolNode=10007]="CozeToolNode",o[o.CozeStartNode=10008]="CozeStartNode",o[o.CozeVariableNode=10009]="CozeVariableNode",o[o.CozeVariableBot=2e4]="CozeVariableBot",o[o.CozeVariableChat=20001]="CozeVariableChat",o);var l=((r={})[r.UpdateTime=1]="UpdateTime",r);var s=((n={})[n.Undefined=0]="Undefined",n[n.CozeSingleAgentDebug=1e4]="CozeSingleAgentDebug",n[n.CozeMultiAgentDebug=10001]="CozeMultiAgentDebug",n[n.CozeToolDebug=10002]="CozeToolDebug",n[n.CozeWorkflowDebug=10003]="CozeWorkflowDebug",n)},602876:function(e,t,i){i.d(t,{wp:function(){return r}});var o,r=((o={})[o.Text=1]="Text",o[o.Number=2]="Number",o[o.Date=3]="Date",o[o.Float=4]="Float",o[o.Boolean=5]="Boolean",o)},672958:function(e,t,i){i.d(t,{n:function(){return r}});var o,r=((o={})[o.AllData=0]="AllData",o[o.OnlySchema=1]="OnlySchema",o[o.OnlyPreview=2]="OnlyPreview",o)},458949:function(e,t,i){i.d(t,{K9:function(){return M},Mv:function(){return I},OZ:function(){return S},Pi:function(){return C},Pt:function(){return B},Yz:function(){return E},ZZ:function(){return P},fM:function(){return j},gR:function(){return R},ji:function(){return T},nw:function(){return D},qJ:function(){return A},qi:function(){return z},rH:function(){return O},vF:function(){return Z},vw:function(){return k},wA:function(){return U},wL:function(){return L},x9:function(){return N},zV:function(){return F}});var o,r,n,a,l,s,d,c,u,p,g,m,h,f,b,v,x,_,y,w,k=((o={})[o.DebugWaiting=0]="DebugWaiting",o[o.DebugPassed=1]="DebugPassed",o);var j=((r={})[r.GET=1]="GET",r[r.POST=2]="POST",r[r.PUT=3]="PUT",r[r.DELETE=4]="DELETE",r[r.PATCH=5]="PATCH",r);var M=((n={})[n.DEFAULT=1]="DEFAULT",n[n.IMAGE=2]="IMAGE",n[n.DOC=3]="DOC",n[n.CODE=4]="CODE",n[n.PPT=5]="PPT",n[n.TXT=6]="TXT",n[n.EXCEL=7]="EXCEL",n[n.AUDIO=8]="AUDIO",n[n.ZIP=9]="ZIP",n[n.VIDEO=10]="VIDEO",n[n.VOICE=12]="VOICE",n);var I=((a={})[a.None=0]="None",a[a.Service=1]="Service",a[a.OAuth=3]="OAuth",a);var N=((l={})[l.COZE=0]="COZE",l[l.IDE=1]="IDE",l);var T=((s={})[s.Default=0]="Default",s[s.Enable=1]="Enable",s[s.Disable=2]="Disable",s);var z=((d={})[d.Input=0]="Input",d[d.Variable=1]="Variable",d);var D=((c={})[c.Unknown=0]="Unknown",c[c.NotFoundPlugin=1]="NotFoundPlugin",c[c.OfficialPlugin=2]="OfficialPlugin",c);var A=((u={})[u.TokenExchange=1]="TokenExchange",u[u.ClientCredential=2]="ClientCredential",u);var S=((p={})[p.Authorized=1]="Authorized",p[p.Unauthorized=2]="Unauthorized",p);var E=((g={})[g.OFFLINE=0]="OFFLINE",g[g.ONLINE=1]="ONLINE",g);var C=((m={})[m.Path=1]="Path",m[m.Query=2]="Query",m[m.Body=3]="Body",m[m.Header=4]="Header",m);var O=((h={})[h.String=1]="String",h[h.Integer=2]="Integer",h[h.Number=3]="Number",h[h.Object=4]="Object",h[h.Array=5]="Array",h[h.Bool=6]="Bool",h);var L=((f={})[f.OpenAPI=1]="OpenAPI",f[f.Curl=2]="Curl",f[f.Postman=3]="Postman",f[f.Swagger=4]="Swagger",f);var Z=((b={})[b.Draft=0]="Draft",b[b.SUBMITTED=1]="SUBMITTED",b[b.REVIEWING=2]="REVIEWING",b[b.PREPARED=3]="PREPARED",b[b.PUBLISHED=4]="PUBLISHED",b[b.OFFLINE=5]="OFFLINE",b[b.BANNED=6]="BANNED",b);var P=((v={})[v.Required=0]="Required",v[v.Supported=1]="Supported",v[v.Disable=2]="Disable",v);var F=((x={})[x.PLUGIN=1]="PLUGIN",x[x.APP=2]="APP",x[x.FUNC=3]="FUNC",x[x.WORKFLOW=4]="WORKFLOW",x[x.IMAGEFLOW=5]="IMAGEFLOW",x[x.LOCAL=6]="LOCAL",x);var B=((_={})[_.NeverListed=0]="NeverListed",_[_.Listed=1]="Listed",_[_.Unlisted=2]="Unlisted",_[_.Banned=3]="Banned",_);var R=((y={})[y.Curl=1]="Curl",y[y.Wget=2]="Wget",y[y.NodeJS=3]="NodeJS",y[y.Python=4]="Python",y[y.Golang=5]="Golang",y);var U=((w={})[w.Default=0]="Default",w[w.Owner=1]="Owner",w[w.Admin=2]="Admin",w[w.Member=3]="Member",w)},487377:function(e,t,i){i.d(t,{a:function(){return n}});var o=i(455069),r=i(579367),n=e=>{var{isLive:t,extra:i,scene:n=r.ik}=e;(0,o.useEffect)(()=>{t&&(0,r.WQ)(i,n)},[t])}},579367:function(e,t,i){i.d(t,{WQ:function(){return d},ik:function(){return s}});var o=i(808549),r=i(120454),n=i(297158),a="first-contentful-paint",l={name:"",reportScene:[]},s="init",d=(e,t)=>{var i=null!=t?t:s,d=performance.now(),p=performance.getEntriesByName("route_change"),g=p.at(-1);if(!((null==g?void 0:null===(f=g.detail)||void 0===f?void 0:null===(h=f.location)||void 0===h?void 0:h.pathname)&&g.detail.location.pathname===l.name&&l.reportScene.includes(i))){if("hidden"===document.visibilityState){n.E7.info({message:"page_hidden_on_tti_report",namespace:"performance"});return}if(l.name=null==g?void 0:null===(v=g.detail)||void 0===v?void 0:null===(b=v.location)||void 0===b?void 0:b.pathname,l.reportScene.push(i),p.length>1){u(d-(null!==(x=null==g?void 0:g.startTime)&&void 0!==x?x:0),e);return}var m=performance.getEntriesByName(a)[0];if(m)c(d>m.startTime?d:m.startTime,(0,r._)((0,o._)({},e),{fcpTime:"".concat(m.startTime)}));else if(window.PerformanceObserver){var h,f,b,v,x,_,y=new PerformanceObserver(t=>{var i=t.getEntriesByName(a)[0];i&&(c(i.startTime,(0,r._)((0,o._)({},e),{fcpTime:"".concat(i.startTime)})),y.disconnect())});try{y.observe({type:"paint",buffered:!0})}catch(e){if(null===(_=PerformanceObserver.supportedEntryTypes)||void 0===_?void 0:_.includes("paint"))try{y.observe({entryTypes:["paint"]})}catch(e){n.E7.info({message:e.message,namespace:"performance"})}n.E7.info({message:e.message,namespace:"performance"})}}}},c=(e,t)=>{var i;null===(i=(0,n.f5)())||void 0===i||i("sendCustomPerfMetric",{value:e,name:"coze_custom_tti",type:"perf",extra:(0,o._)({},t)}),n.kg.info({message:"coze_custom_tti",meta:{value:e,extra:t}})},u=(e,t)=>{var i;null===(i=(0,n.f5)())||void 0===i||i("sendCustomPerfMetric",{value:e,name:"coze_custom_tti_hot",type:"perf",extra:(0,o._)({},t)}),n.kg.info({message:"coze_custom_tti_hot",meta:{value:e,extra:t}})}},44099:function(e,t,i){i.d(t,{iN:()=>ed,WL:()=>eg,vE:()=>V,$r:()=>A,Hm:()=>E,wh:()=>el,pw:()=>em,vC:()=>g,N0:()=>Y});var o,r=i("151064"),n=i("455069"),a=i("252237"),l=i.n(a),s=i("336205"),d=i("659596"),c=i("44172"),u=i("384174"),p={small:u.Z.small,default:u.Z.default,large:u.Z.large},g=e=>{var{size:t="default",children:i,visible:o,className:n}=e;return(0,r.jsxs)("div",{className:"relative w-fit h-fit",children:[(0,r.jsx)(d.u,{spacing:12,trigger:o?"hover":"custom",content:s.o.t("mkpl_plugin_tooltip_official"),children:o?(0,r.jsx)(c.mQT,{className:l()(u.Z["official-label"],p[t],n)}):null}),i]})},m=i("808549"),h=i("120454"),f=i("100282"),b=i("775699"),v=i("825955"),x=i("974235"),_=i("537845"),y=i("136515"),w=i("998600"),k=function(e){var t,i,o,{targetRef:r,loadData:a,threshold:l,reloadDeps:s,isNeedBtnLoadMore:d,resetDataIfReload:c=!0}=e,[u,p]=(0,n.useState)(!1),g=(0,n.useRef)(0),f=(0,n.useRef)();var{loading:b,data:k,loadingMore:j,loadMore:M,noMore:I,cancel:N,mutate:T,reload:z}=(0,x.Z)((t=(0,v._)(function*(e){var t=g.current;f.current&&f.current((0,h._)((0,m._)({},e||{}),{list:[]}));var i=yield new Promise((t,i)=>{f.current=t,a(e).then(e=>t(e)).catch(e=>i(e))});return(f.current=null,g.current!==t)?(e&&(e.list=[]),{list:[],nextPage:1}):i}),function(e){return t.apply(this,arguments)}),{target:u||d?null:r,threshold:l,onBefore:()=>{},isNoMore:e=>(null==e?void 0:e.hasMore)!==void 0&&!(null==e?void 0:e.hasMore),onSuccess:()=>{u&&p(!1)},onError:e=>{var t,i;1===k.nextPage&&(null!==(i=null==k?void 0:null===(t=k.list)||void 0===t?void 0:t.length)&&void 0!==i?i:0)>0&&T((0,h._)((0,m._)({},k),{list:[]})),p(!0)}});var{insertData:D,removeData:A,getDataList:S}=(i=k,o=T,{insertData:(e,t)=>{i.list.splice(t,0,e),o((0,h._)((0,m._)({},i),{list:[...(null==i?void 0:i.list)||[]]}))},removeData:e=>{i.list.splice(e,1),o((0,h._)((0,m._)({},i),{list:[...(null==i?void 0:i.list)||[]]}))},getDataList:()=>null==i?void 0:i.list});(0,n.useEffect)(()=>{d&&!(b||j)&&z()},[]);var E=(0,_.Z)(()=>{var e;T({list:c?[]:null!==(e=null==k?void 0:k.list)&&void 0!==e?e:[],hasMore:void 0,nextPage:1}),N(),p(!1),z()});(0,y.Z)(()=>{g.current++,E()},[...s||[]]);var C=b||j||e.isLoading,{run:O}=(0,w.Z)(()=>{if(!C)!d&&M()},{wait:500});(0,n.useEffect)(()=>{var e=()=>{O()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);var{list:L}=k||{};return{dataList:L,isLoading:C,loadMore:()=>{!C&&M()},reload:E,noMore:I,cancel:N,isLoadingError:u,mutate:T,insertData:D,removeData:A,getDataList:S}},j=i("30961"),M=i("772650"),I=function(e){var{isLoading:t,loadRetry:i,isError:o,renderFooter:n,isNeedBtnLoadMore:a,noMore:d}=e,c=(0,j.Fm)();return(0,r.jsx)("div",{className:l()(M.Z["footer-container"],{[M.Z["responsive-foot-container"]]:c}),children:(null==n?void 0:n(e))||(t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.yC,{}),(0,r.jsx)("span",{className:M.Z.loading,children:s.o.t("Loading")})]}):o?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.yC,{}),(0,r.jsx)("span",{className:M.Z["error-retry"],onClick:i,children:s.o.t("inifinit_list_retry")})]}):a&&!d?(0,r.jsx)(b.y3,{onClick:i,className:M.Z["load-more-btn"],theme:"borderless",children:s.o.t("mkpl_load_btn")}):null)})},N=i("763055"),T=i("918966"),z=function(e){var{isLoading:t,isSearching:i,loadRetry:o,isError:n,renderEmpty:a,text:l,btn:d,icon:c}=e;return(0,r.jsx)("div",{className:T.Z.empty,children:(null==a?void 0:a(e))||(n?(0,r.jsx)(b.YZ,{empty:{title:s.o.t("inifinit_list_load_fail"),icon:(0,r.jsx)(N.My,{}),btnText:o&&s.o.t("inifinit_list_retry"),btnOnClick:()=>{null==o||o()}}}):t?(0,r.jsx)(b.yC,{tip:(0,r.jsx)("span",{className:T.Z["loading-text"],children:s.o.t("Loading")}),wrapperClassName:T.Z.spin,size:"middle"}):(0,r.jsx)(b.YZ,{isNotFound:!!i,empty:{title:(null==l?void 0:l.emptyTitle)||s.o.t("inifinit_list_empty_title"),description:(null==l?void 0:l.emptyTitle)?null==l?void 0:l.emptyDesc:"",btnText:null==d?void 0:d.emptyText,btnOnClick:null==d?void 0:d.emptyClick,icon:c},notFound:{title:(null==l?void 0:l.searchEmptyTitle)||s.o.t("inifinit_search_not_found")}}))})},D=i("565922"),A=(0,n.forwardRef)(function(e,t){var{isSearching:i,className:o,emptyContent:a,grid:s,renderItem:d,itemClassName:c,renderFooter:u,scrollConf:p,emptyConf:g,onChangeState:v,canShowData:x=!0,isNeedBtnLoadMore:_=!1,isResponsive:y,retryFunc:w,responsiveConf:j,containerClassName:M}=e,{dataList:N,isLoading:T,loadMore:A,noMore:S,isLoadingError:E,mutate:C,reload:O,insertData:L,removeData:Z,getDataList:P}=k((0,h._)((0,m._)({},p),{isNeedBtnLoadMore:_}));return(0,n.useImperativeHandle)(t,()=>({mutate:C,reload:O,insertData:L,removeData:Z,getDataList:P}),[C,O,L,Z,P]),(0,n.useEffect)(()=>{null==v||v(T,N)},[N,T]),(0,r.jsx)("div",{className:l()(D.Z["height-whole-100"],M),children:(null==N?void 0:N.length)&&x?y?(0,r.jsx)(f.gz,{className:o,emptyContent:T?(0,r.jsx)(r.Fragment,{}):a,dataSource:N,renderItem:(e,t)=>null==d?void 0:d(e,t),gridCols:null==j?void 0:j.gridCols,gridGapXs:{basic:4},footer:(0,r.jsx)("div",{className:"text-sm px-6 py-3",children:(0,r.jsx)(I,{isError:E,noMore:S,isLoading:T,loadRetry:w||A,renderFooter:u,isNeedBtnLoadMore:_})})}):(0,r.jsx)(b.aV,{className:o,emptyContent:a,grid:s,emptyContent:T?(0,r.jsx)(r.Fragment,{}):a,dataSource:N,split:!1,renderItem:(e,t)=>(0,r.jsx)(b.aV.Item,{className:"string"==typeof c?c:null==c?void 0:c(e),children:null==d?void 0:d(e,t)}),footer:(0,r.jsx)(I,{isError:E,noMore:S,isLoading:T,loadRetry:w||A,renderFooter:u,isNeedBtnLoadMore:_,dataNum:null==N?void 0:N.length})}):(0,r.jsx)(z,(0,m._)({isError:!!x&&E,isSearching:i,isLoading:!x||T,loadRetry:w||A},g))})}),S=i("121022"),E=e=>{var{connectors:t,className:i,visibleNum:o=3}=e,n=t.length-o;return(0,r.jsxs)("div",{className:l()("ml-auto flex gap-4px",i),children:[t.slice(0,o).map(e=>(0,r.jsx)(d.u,{content:e.name,theme:"dark",children:(0,r.jsx)(d.EZ,{className:"border coz-stroke-primary border-solid",size:"micro",src:e.icon,type:"platform"})},e.id)),n>0?(0,r.jsx)(d.u,{position:"right",content:(0,r.jsx)("div",{className:"flex flex-col gap-8px max-w-[200px] max-h-[188px] overflow-y-auto overflow-x-hidden",children:t.slice(o).map(e=>(0,r.jsxs)("div",{className:"flex gap-8px items-center max-w-full",children:[(0,r.jsx)(d.EZ,{className:"border coz-stroke-primary border-solid",size:"micro",src:e.icon,type:"platform"}),(0,r.jsx)(d.ZT.Text,{ellipsis:!0,className:"flex-1 overflow-hidden",children:e.name})]},e.id))}),children:(0,r.jsxs)(d.Vp,{className:S.Z.more,size:"mini",color:"primary",children:["+",n]})}):null]})},C=i("382534"),O=i("664679"),L=e=>{var t,{productId:i,entityType:o,entityId:r,topicId:n,onChange:a,setIsFavorite:l}=e;return{changeFavoriteStatus:(0,_.Z)((t=(0,v._)(function*(e,t){l(!e);try{yield C.yF.PublicFavoriteProduct({product_id:i||void 0,entity_type:o,is_cancel:e,entity_id:r,topic_id:n}),null==a||a(e?-1:1),O.k.emit("refreshFavList",{id:r,numDelta:"add"===t?1:-1,emitPosition:"favorite-icon-btn"})}catch(t){l(e)}}),function(e,i){return t.apply(this,arguments)}))}},Z=e=>{var{isVisible:t}=e,[i,o]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{!t&&o(!1)},[t]),{isShowAni:i,changeAnimationStatus:(0,_.Z)(e=>{e?o(!1):o(!0)})}},P=e=>e?"cancel":"add",F=e=>{var t,i,{isFavoriteDefault:o,onReportTea:r,productId:a,entityId:l,entityType:s,onChange:d,onClickBefore:c,topicId:u,isVisible:p,onFavoriteStateChange:g}=e,[m,h]=(0,n.useState)(null!=o&&o),{isShowAni:f,changeAnimationStatus:b}=Z({isVisible:p}),x=(0,n.useRef)(!1);var w=(0,_.Z)((t=(0,v._)(function*(e,t){return(yield null==c?void 0:c(e,t))!==!1}),function(e,i){return t.apply(this,arguments)})),{changeFavoriteStatus:k}=L({productId:a,entityType:s,entityId:l,topicId:u,onChange:d,setIsFavorite:h});var j=(0,n.useCallback)((i=(0,v._)(function*(e){if(x.current){null==e||null===(t=e.stopPropagation)||void 0===t||t.call(e),null==e||null===(i=e.preventDefault)||void 0===i||i.call(e);return}var t,i,o,n=P(m);x.current=!0;try{(yield w(n,e))!==!1&&(null==e||null===(o=e.stopPropagation)||void 0===o||o.call(e),null==r||r(n),b(m),yield k(m,n))}catch(e){console.error("useFavoriteChange:",e)}x.current=!1}),function(e){return i.apply(this,arguments)}),[m,r]);return(0,y.Z)(()=>{null==g||g(m)},[m]),{isFavorite:m,onClick:j,isShowAni:f}},B=e=>{var{isFavorite:t}=e;return(0,r.jsx)(r.Fragment,{children:t?(0,r.jsx)(c.Aj,{}):(0,r.jsx)(c.ubE,{})})},R=i("261008"),U=e=>{var{isFavorite:t,isShowAni:i,className:o,unCollectedIconCls:n,useButton:a}=e,s={className:l()(t?R.Z["icon-filled"]:R.Z["icon-stroked"],t?o:n,{[R.Z["show-ani"]]:t&&i,[R.Z["show-btn"]]:a})},u=t?(0,r.jsx)(c._h$,(0,m._)({},s)):(0,r.jsx)(c.q5R,(0,m._)({},s));return a?(0,r.jsx)(d.hU,{size:"default",color:"primary",icon:u}):u},Q=i("420666"),Y=(0,n.forwardRef)((e,t)=>{var{topicId:i,productId:o,entityType:a,entityId:l,isFavorite:s,onChange:d,isVisible:c,onReportTea:u,unCollectedIconCls:p,onClickBefore:g,onFavoriteStateChange:m,isMobile:h,className:f,useButton:b=!1,isForbiddenClick:v=!1}=e,{isFavorite:x,onClick:_,isShowAni:y}=F({isFavoriteDefault:s,onReportTea:u,productId:o,entityId:l,entityType:a,onChange:d,onClickBefore:g,topicId:i,isVisible:c,onFavoriteStateChange:m});return((0,n.useImperativeHandle)(t,()=>({favorite:_}),[_]),c)?(0,r.jsx)("div",{onClick:v?void 0:_,className:Q.Z["favorite-icon-btn"],"data-testid":"bot-card-favorite-icon",children:h?(0,r.jsx)(B,{isFavorite:x}):(0,r.jsx)(U,{useButton:b,isFavorite:x,isShowAni:y,unCollectedIconCls:p,className:f})}):null});i("546410");var V=e=>{var{icon:t=null,title:i,activeIcon:o=null,isActive:n,suffix:a,onClick:s}=e;return(0,r.jsxs)("div",{onClick:s,className:l()("flex items-center gap-[8px]","transition-colors","rounded-[8px]","h-[32px] w-full","px-[8px]","cursor-pointer","hover:coz-mg-primary-hovered",n?"coz-bg-primary coz-fg-plus":"coz-fg-primary coz-bg-max"),children:[(0,r.jsx)("div",{className:"text-[16px] leading-none leading-none w-[16px] h-[16px]",children:n?o:t}),(0,r.jsx)(d.ZT.Text,{ellipsis:{showTooltip:!0,rows:1},fontSize:"14px",weight:500,className:"flex-1 text-[14px] leading-[20px] font-[500]",children:i}),a]})},W=i("903124"),G=i("721566"),H=i("873183"),q=i("117140"),K={[q._J.BotTemplate]:{icon:(0,r.jsx)(H.Cr5,{}),i18nKey:"template_agent"},[q._J.WorkflowTemplateV2]:{icon:(0,r.jsx)(H.eTH,{}),i18nKey:"template_workflow"},[q._J.ImageflowTemplateV2]:{icon:(0,r.jsx)(H.eTH,{}),i18nKey:"template_workflow"},[q._J.ProjectTemplate]:{icon:(0,r.jsx)(H.wmN,{}),i18nKey:"project_store_search"}},J={[q._J.BotTemplate]:"primary",[q._J.WorkflowTemplateV2]:"primary",[q._J.ImageflowTemplateV2]:"primary",[q._J.ProjectTemplate]:"brand"},X=e=>{var t,{type:i}=e,o=K[i];return o?(0,r.jsxs)(d.Vp,{color:null!==(t=J[i])&&void 0!==t?t:"primary",className:"h-[20px] !px-[4px] !py-[2px] coz-fg-primary font-medium shrink-0",children:[o.icon,(0,r.jsx)("span",{className:"ml-[2px]",children:s.o.t(o.i18nKey)})]}):null},$=i("824113"),ee=e=>{var t,i,o,{title:n,description:a,userInfo:s,renderCardTag:c,descClassName:u,renderDescBottomSlot:p}=e;return(0,r.jsxs)("div",{className:l()("mt-[8px] px-[4px] grow","flex flex-col"),children:[(0,r.jsxs)("div",{className:"flex items-center gap-[8px] overflow-hidden",children:[(0,r.jsx)(d.ZT.Text,{className:"!font-medium text-[16px] leading-[22px] coz-fg-primary !max-w-[180px]",ellipsis:{showTooltip:!0,rows:1},children:n}),null==c?void 0:c()]}),(0,r.jsx)($.gj,{className:"mt-[4px]",avatar:null==s?void 0:s.avatar_url,name:null==s?void 0:s.name,username:null==s?void 0:s.user_name,label:{name:null==s?void 0:null===(t=s.user_label)||void 0===t?void 0:t.label_name,icon:null==s?void 0:null===(i=s.user_label)||void 0===i?void 0:i.icon_url,href:null==s?void 0:null===(o=s.user_label)||void 0===o?void 0:o.jump_link}}),(0,r.jsxs)("div",{className:l()("mt-[8px] flex flex-col justify-between grow",u),children:[(0,r.jsx)(d.ZT.Text,{className:"min-h-[40px] leading-[20px] coz-fg-secondary",ellipsis:{showTooltip:!0,rows:2},children:a}),null==p?void 0:p()]})]})},et=i("872457"),ei=e=>{var{className:t,children:i,onClick:o,shadowMode:n}=e;return(0,r.jsx)("div",{className:l()("coz-bg-max",et.Z.container,et.Z.width100,t,et.Z["shadow-".concat(n)]),onClick:o,children:i})},eo=e=>(0,r.jsx)("div",{className:l()("coz-mg-primary",et.Z.container,et.Z.width100,et.Z.skeleton,e.className),children:null==e?void 0:e.children}),er=i("207265"),en=e=>{var{className:t,onClick:i,children:o}=e;return(0,r.jsx)("button",{className:l()(er.Z["card-button"],t),color:"primary",onClick:i,children:o})},ea=i("651242"),el=e=>{var t,i,o,a,l,[c,u]=(0,n.useState)(!1);return(0,r.jsxs)(ei,{className:ea.Z.template,shadowMode:"default",children:[(0,r.jsxs)("div",{className:ea.Z["template-wrapper"],children:[(0,r.jsx)(ec,{title:null===(t=e.meta_info)||void 0===t?void 0:t.name,description:null===(i=e.meta_info)||void 0===i?void 0:i.description,userInfo:null===(o=e.meta_info)||void 0===o?void 0:o.user_info,entityType:e.meta_info.entity_type,imgSrc:null===(a=e.meta_info.covers)||void 0===a?void 0:a[0].url}),(0,r.jsx)(d.T,{className:ea.Z["btn-container"],children:(0,r.jsx)(en,{onClick:()=>{u(!0)},className:"w-full",children:s.o.t("copy")})})]}),c?(0,r.jsx)(es,{productId:e.meta_info.id,entityType:e.meta_info.entity_type,defaultTitle:"".concat(null===(l=e.meta_info)||void 0===l?void 0:l.name,"(").concat(s.o.t("duplicate_rename_copy"),")"),hide:()=>u(!1)}):null]})},es=e=>{var t,{defaultTitle:i,hide:o,productId:a,entityType:l}=e,[c,u]=(0,n.useState)(i),{spaces:p}=(0,G.B3)(),g=null==p?void 0:null===(t=p[0])||void 0===t?void 0:t.id;return(0,r.jsx)(d.u_,{type:"modal",title:s.o.t("creat_project_use_template"),visible:!0,onOk:(0,v._)(function*(){try{yield W.K.PublicDuplicateProduct({product_id:a,entity_type:l,space_id:g,name:c}),d.FN.success(s.o.t("copy_success")),o()}catch(e){console.error("PublicDuplicateProduct",e),d.FN.error(s.o.t("copy_failed"))}}),onCancel:o,cancelText:s.o.t("Cancel"),okText:s.o.t("Confirm"),children:(0,r.jsxs)(d.T,{vertical:!0,spacing:4,className:"w-full",children:[(0,r.jsxs)(d.T,{className:"w-full",children:[(0,r.jsx)("span",{className:"coz-fg-primary font-medium leading-[20px]",children:s.o.t("creat_project_project_name")}),(0,r.jsx)("span",{className:"coz-fg-hglt-red",children:"*"})]}),(0,r.jsx)(d.II,{className:"w-full",placeholder:"",defaultValue:i,onChange:e=>{u(e)}})]})})},ed=()=>(0,r.jsx)(eo,{className:l()("h-[278px]",ea.Z.template)}),ec=e=>{var{title:t,imgSrc:i,description:o,entityType:n,userInfo:a,renderImageBottomSlot:l,renderDescBottomSlot:s}=e;return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"relative w-full h-[140px] rounded-[8px] overflow-hidden",children:[(0,r.jsx)(d.Ee,{preview:!1,src:i,className:"w-full h-full",imgCls:"w-full h-full object-cover object-center"}),null==l?void 0:l()]}),(0,r.jsx)(ee,{title:t,description:o,userInfo:a,renderCardTag:()=>n?(0,r.jsx)(X,{type:n}):null,descClassName:ea.Z.description,renderDescBottomSlot:s})]})};var eu=((o={})[o.NoAuth=0]="NoAuth",o[o.Required=1]="Required",o[o.Configured=2]="Configured",o[o.Supported=3]="Supported",o),ep=i("784636"),eg=e=>(0,r.jsx)(ei,{className:ep.Z.plugin,shadowMode:"default",children:(0,r.jsxs)("div",{className:ep.Z["plugin-wrapper"],children:[(0,r.jsx)(eh,(0,m._)({},e)),(0,r.jsx)(d.T,{className:l()(ep.Z["btn-container"],{[ep.Z["one-column-grid"]]:e.isInstalled||!e.isShowInstallButton}),children:!e.isInstalled&&e.isShowInstallButton?(0,r.jsx)(en,{onClick:()=>{d.FN.success(s.o.t("plugin_install_success"))},children:s.o.t("plugin_store_install")}):null})]})}),em=()=>(0,r.jsx)(eo,{className:l()("h-[186px]",ep.Z.plugin)}),eh=e=>{var t,i,o,n;return(0,r.jsxs)("div",{children:[(0,r.jsx)(d.qE,{className:ep.Z["card-avatar"],src:null===(t=e.meta_info)||void 0===t?void 0:t.icon_url,shape:"square"}),(0,r.jsx)(ee,{title:null===(i=e.meta_info)||void 0===i?void 0:i.name,description:null===(o=e.meta_info)||void 0===o?void 0:o.description,userInfo:null===(n=e.meta_info)||void 0===n?void 0:n.user_info,authMode:e.plugin_extra.auth_mode,renderCardTag:()=>e.plugin_extra.auth_mode===eu.Required||e.plugin_extra.auth_mode===eu.Supported?(0,r.jsx)(d.Vp,{color:"yellow",className:"h-[20px] !px-[4px] !py-[2px] coz-fg-primary font-medium shrink-0",children:(0,r.jsx)("span",{className:"ml-[2px]",children:s.o.t("plugin_store_unauthorized")})}):e.plugin_extra.auth_mode===eu.Configured?(0,r.jsx)(d.u,{content:s.o.t("plugin_store_contact_deployer"),children:(0,r.jsx)(d.Vp,{color:"brand",className:"h-[20px] !px-[4px] !py-[2px] coz-fg-primary font-medium shrink-0",children:(0,r.jsx)("span",{className:"ml-[2px]",children:s.o.t("plugin_store_authorized")})})}):null})]})}},936731:function(e,t,i){i.d(t,{v:function(){return o.v}});var o=i(888461)},888461:function(e,t,i){i.d(t,{v:function(){return u}});var o=i(151064),r=i(455069),n=i(252237),a=i.n(n),l=i(385038),s=i(659596),d=i(561119),c=i(105452),u=e=>{var{className:t,style:i,mainText:n,subText:u,percent:p=10,percentFormat:g,avatar:m,status:h,actions:f,tipText:b=""}=e;return(0,o.jsxs)("div",{className:a()(c.Z["progress-wrap"],"flex justify-between relative mb-[8px]",h===d.N.Failed?c.Z["processing-failed"]:"",h===d.N.Processing?c.Z.processing:"",t),style:i,children:[(0,o.jsx)("div",{className:a()(c.Z.content,"process-progress-item-content","max-w-[calc(100%-100px)]"),children:(0,o.jsxs)("div",{className:a()("flex items-center",c.Z.info),children:[m,(0,o.jsxs)("div",{className:a()("pl-[10px] max-w-full"),children:[(0,o.jsx)("div",{className:c.Z["main-text"],children:(0,o.jsx)(s.ZT.Text,{"data-dtestid":"".concat(l.w.CreateUnitListProgressName,".").concat(n),className:"coz-fg-primary text-14px",ellipsis:{showTooltip:{opts:{content:n}}},children:n})}),(0,o.jsxs)("div",{className:c.Z["sub-text"],children:[(0,o.jsx)("div",{className:c.Z.desc,children:u}),b?(0,o.jsx)("div",{className:c.Z["tip-desc"],children:b}):null]})]})]})}),(0,o.jsx)("div",{className:a()(c.Z.right,"process-progress-item-right"),children:h===d.N.Processing?(0,o.jsx)("span",{className:c.Z.percent,children:g||"".concat(p,"%")}):(0,o.jsx)("div",{className:a()(c.Z.actions,"process-progress-item-actions"),children:Array.isArray(f)?(0,o.jsx)(s.T,{spacing:"tight",children:f.map((e,t)=>(0,o.jsx)(r.Fragment,{children:e},t))}):null})}),h===d.N.Processing?(0,o.jsx)("div",{className:c.Z.progress,style:{width:"".concat(p,"%")}}):null]},n)}},392902:function(e,t,i){i.d(t,{u3:()=>R,zx:()=>U,IO:()=>T,tM:()=>x});var o=i("808549"),r=i("120454"),n=i("473980"),a=i("151064"),l=i("455069"),s=i("962289"),d=i("550655"),c=i("252237"),u=i.n(c),p=i("385038"),g=i("336205"),m=i("775699"),h=i("659596"),f=i("528751"),b=(e,t)=>{for(var i=e>50?50:e,o=[],r=t;r<i;r++)o.push({label:g.o.t("datasets_createFileModel_tab_dataStarRow_value",{LineNumber:r+1}),value:r});return o},v=i("151359"),x=e=>{var{className:t="",data:i={},tableSettings:c,setTableSettings:x}=e,{preview_data:_,sheet_list:y}=i;if(!_||!y||!y.length)return(0,a.jsx)(a.Fragment,{});var w=(0,l.useRef)(),k=(0,l.useMemo)(()=>(0,s.Z)(y,c[f.hD.SHEET]),[y,c]),j=(0,l.useMemo)(()=>c,[y]),M=(0,l.useMemo)(()=>{var e=k.id||0===k.id?b(Number(null==k?void 0:k.total_row)>1?Number(k.total_row):2,0):[];return[{e2e:p.w.TableLocalTableConfigurationDataSheet,field:f.hD.SHEET,label:g.o.t("datasets_createFileModel_tab_DataSheet"),options:y.map(e=>({value:e.id,label:e.sheet_name}))},{e2e:p.w.TableLocalTableConfigurationSheetHeader,field:f.hD.KEY_START_ROW,label:g.o.t("datasets_createFileModel_tab_header"),options:e.slice(0,e.length-1)},{e2e:p.w.TableLocalTableConfigurationStarRow,field:f.hD.DATA_START_ROW,label:g.o.t("datasets_createFileModel_tab_dataStarRow"),options:e.slice(Number(c[f.hD.KEY_START_ROW])+1)}]},[i,k]),I=(e,t)=>{x&&x((0,o._)({},e));var i=(0,s.Z)(t,f.hD.SHEET),r=(0,s.Z)(t,f.hD.KEY_START_ROW);(0,d.Z)(i)&&w.current&&(w.current.setValue(f.hD.KEY_START_ROW,0),w.current.setValue(f.hD.DATA_START_ROW,1)),r&&w.current&&!(r<(0,s.Z)(e,f.hD.DATA_START_ROW))&&w.current.setValue(f.hD.DATA_START_ROW,r+1)};return(0,a.jsx)("div",{className:u()(v.Z["table-setting-bar"],t),children:(0,a.jsx)(m.l0,{layout:"horizontal",initValues:j,getFormApi:e=>w.current=e,onValueChange:(e,t)=>{I(e,t)},children:M.map(e=>{var{options:t}=e,i=(0,n._)(e,["options"]);return(0,a.jsx)(h.ih,(0,r._)((0,o._)({"data-testid":e.e2e,optionList:t},i),{onChange:t=>{if(!!t)I((0,r._)((0,o._)({},c),{[e.field]:t}),{[e.field]:t})}}),e.field)})})})},_=i("763055"),y=i("263825"),w=i("461190"),k=i("594022"),j=i("690612"),M=i("210208"),I=e=>(0,a.jsx)(h.Vp,{color:"primary",className:M.Z["column-type"],size:"mini",children:(0,y.y8)(e.columnType)}),N="table-preview",T=e=>{var{data:t,settings:i}=e,{sheet_list:o=[],table_meta:r={},preview_data:n={}}=t,s=Number(i[f.hD.DATA_START_ROW])||0,d=(0,l.useMemo)(()=>i[f.hD.SHEET]||0,[i]),c=(0,l.useMemo)(()=>{var e;return null===(e=(o||[]).find(e=>(null==e?void 0:e.id)===d))||void 0===e?void 0:e.sheet_name},[o,d]),u=(0,l.useMemo)(()=>{var e;return Number((null===(e=(o||[]).find(e=>(null==e?void 0:e.id)===d))||void 0===e?void 0:e.total_row)||0)-s||0},[o,d]),m=(r[d]||[]).map(e=>{var{sequence:t,column_name:i,is_semantic:o,column_type:r=k.QD.Unknown}=e;return r===k.QD.Image?{title:(0,a.jsxs)("div",{className:M.Z["td-title"],children:[(0,a.jsx)("div",{children:i}),(0,a.jsx)(I,{columnType:r})]}),dataIndex:t,render:(e,t)=>{var i=(0,j.bp)(e);return(0,a.jsx)(w.e0,{srcList:i,editable:!1})}}:{title:o?(0,a.jsxs)("div",{className:M.Z["td-title"],children:[i,o?(0,a.jsx)(h.Vp,{size:"mini",color:"green",className:M.Z["semantic-tag"],"data-testid":p.w.TableLocalPreviewSemantic,children:g.o.t("knowledge_1226_001")}):null,(0,a.jsx)(I,{columnType:r})]}):(0,a.jsxs)("div",{className:M.Z["td-title"],children:[i,(0,a.jsx)(I,{columnType:r})]}),width:180,dataIndex:t,ellipsis:{showTitle:!1},render:e=>(0,a.jsx)(h.ZT.Text,{ellipsis:{showTooltip:!0},children:e})}}),b=(0,l.useMemo)(()=>(n[d]||[]).slice(0,10).sort((e,t)=>JSON.stringify(e)>JSON.stringify(t)?1:-1),[n,d]);return(0,a.jsx)("div",{className:M.Z[N],children:b.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:M.Z["".concat(N,"-title")],"data-testid":p.w.TableLocalPreviewTitle,children:c}),(0,a.jsx)("div",{className:M.Z["".concat(N,"-content")],children:(0,a.jsx)(h.iA,{tableProps:{dataSource:b,columns:m}})}),(0,a.jsx)("div",{className:M.Z["preview-tips"],"data-testid":p.w.TableLocalPreviewFooterTotal,children:g.o.t("datasets_unit_tableformat_tips1",{TotalRows:u,ShowRows:Number(u)>10?10:u})})]}):(0,a.jsxs)("div",{className:M.Z["no-result"],children:[(0,a.jsx)(_.xs,{}),(0,a.jsx)("div",{className:M.Z["no-result-tips"],children:g.o.t("knowledge_1221_02")})]})})},z=i("745304"),D=i("306785"),A=i("481655"),S=i("410517"),E=i("537714"),C=i("873183"),O=i("44172"),L=i("274971"),Z=i("391757"),P="table-structure",F=e=>{var{children:t,tooltip:i,dataTestId:o}=e;return(0,a.jsxs)("div",{className:Z.Z["".concat(P,"-required-container")],"data-testid":o,children:[t,(0,a.jsx)("span",{className:Z.Z["".concat(P,"-col-required")],children:" *"}),i]})},B=e=>{var{onChange:t,record:i,value:o,autofocus:r=!1,isBlurValid:n=!1,initValid:s,validate:d,isPreview:c,placeholder:u,maxStrLen:p}=e,m=e=>{var t=null==d?void 0:d(e,g.o.t("datasets_segment_tableStructure_field_errEmpty"));return{valid:!s||!!(d?null==t?void 0:t.valid:e&&""!==e),errorMsg:(null==t?void 0:t.errorMsg)||g.o.t("datasets_segment_tableStructure_field_errEmpty")}},[f,b]=(0,l.useState)(o),[v,x]=(0,l.useState)(()=>{var e=m(o);return{valid:!!n||e.valid,errorMsg:e.errorMsg}}),_=e=>{x(m(e))},y=(null==i?void 0:i.errMsg)||"",w=(0,l.useMemo)(()=>y?"error":v.valid?"default":"error",[v,y]),k=(0,l.useCallback)(()=>y?(0,a.jsx)("div",{className:Z.Z["input-error-msg"],children:y}):(0,a.jsx)(a.Fragment,{children:!v.valid&&(0,a.jsx)("div",{className:Z.Z["input-error-msg"],children:v.errorMsg})}),[y,v]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.II,{autoFocus:r,value:f,maxLength:p,onChange:e=>{b(e.substring(0,p)),n||_(e)},disabled:c,validateStatus:w,suffix:(0,a.jsxs)("span",{className:Z.Z["input-suffix"],children:[(f||"").length,"/",p]}),onBlur:()=>{t((null==f?void 0:f.substring(0,p))||""),_(f)},placeholder:u}),k()]})},R=e=>{var{data:t=[],setData:i,verifyMap:l={},initValid:s=!1,isBlurValid:d=!1,isPreview:c=!1,baseKey:f,showTitle:b=!1,children:v,tipsNode:x,isDragTable:_=!1}=e,w=(0,n._)(e,["data","setData","verifyMap","initValid","isBlurValid","isPreview","baseKey","showTitle","children","tipsNode","isDragTable"]),j=(0,L.l$)()===E.VP.RESEGMENT,M=[{title:()=>(0,a.jsx)(F,{dataTestId:p.w.TableLocalTableConfigurationIndex,tooltip:(0,a.jsx)(h.u,{className:"whitespace-pre-line",content:g.o.t("knowledge_multi_index"),children:(0,a.jsx)(m.y3,{size:"small",theme:"borderless",type:"tertiary",style:{marginLeft:4},icon:(0,a.jsx)(C.L03,{className:"coz-fg-secondary"})})}),children:(0,a.jsx)("div",{className:Z.Z["table-header-tooltip"],"data-testid":p.w.TableLocalTableConfigurationIndex,children:(0,a.jsx)("span",{children:g.o.t("knowledge_table_structure_semantic")})})}),dataIndex:"is_semantic",width:90,align:"left",render:(e,o,r)=>{var n,{sequence:s}=o;var d=!!Object.keys(l).length&&!(null===(n=l[s||r])||void 0===n?void 0:n.valid)||c;return(0,a.jsxs)("div",{className:Z.Z["semantic-radio"],children:[_?(0,a.jsx)(O.lls,{className:"structure-table-drag-icon"}):null,(0,a.jsx)(e=>{var t,i,{children:o}=e;return d&&(null===(t=l[s||r])||void 0===t?void 0:t.msg)?(0,a.jsx)(h.u,{trigger:"hover",content:null===(i=l[s||r])||void 0===i?void 0:i.msg,children:o}):o},{children:(0,a.jsx)(h.XZ,{checked:e,disabled:d,onChange:e=>{var o=[...t];o[r].is_semantic=!!e.target.checked,i(o)},"data-testid":p.w.TableStructureIndexCheckbox})})]})}},{title:()=>(0,a.jsx)(F,{dataTestId:p.w.TableLocalTableConfigurationColumnName,children:g.o.t("knowledge_table_structure_column_name")}),dataIndex:"column_name",align:"left",render:(e,o,r)=>{var{autofocus:n=!1}=o;return(0,a.jsx)("div",{className:Z.Z["column-item"],children:(0,a.jsx)(B,{initValid:s,isBlurValid:d,onChange:e=>{var o=[...t];o[r].column_name=e,i(o)},record:o,value:e,validate:(e,i)=>(null==t?void 0:t.filter(t=>t.column_name===e).length)>=2?{valid:!1,errorMsg:g.o.t("Manual_crawling_040")}:(0,L.OP)(e,i),autofocus:n,isPreview:c,maxStrLen:30},"".concat(f).concat(null==o?void 0:o.sequence))})}},{title:()=>(0,a.jsx)("div",{"data-testid":p.w.TableLocalTableConfigurationDesc,children:g.o.t("knowledge_table_structure_desc")}),dataIndex:"desc",align:"left",render:(e,o,r)=>(0,a.jsx)("div",{className:Z.Z["column-item"],children:(0,a.jsx)(B,{initValid:!1,isBlurValid:!1,placeholder:g.o.t("knowledge_variable_description_placeholder"),onChange:e=>{var o=[...t];o[r].desc=e,i(o)},record:o,value:e,autofocus:!1,isPreview:c,maxStrLen:2e3},"column-desc.".concat(f).concat(null==o?void 0:o.sequence))})},{title:()=>(0,a.jsx)(F,{dataTestId:p.w.TableLocalTableConfigurationType,children:g.o.t("knowledge_table_structure_data_type")}),dataIndex:"column_type",align:"left",render:(e,n,l)=>{var s=!!d||!!e;return(0,a.jsx)("div",{className:"pr-[16px] ".concat(Z.Z["column-item"]),children:c?(0,a.jsx)(m.ZT.Text,{className:Z.Z["column-item-value"],children:(0,y.y8)(e)}):(0,a.jsx)(y.L5,{value:e||"",selectProps:{disabled:!n.is_new_column&&j,optionList:(0,y.iQ)().map(e=>e.value===k.QD.Image?(0,r._)((0,o._)({},e),{disabled:n.is_semantic}):e),placeholder:g.o.t("db_table_save_exception_fieldtype")},errorMsg:s?void 0:g.o.t("datasets_segment_tableStructure_field_type_errEmpty"),handleChange:e=>{var o=[...t];o[l].column_type=e,i(o)}})},n.sequence)}},{title:(0,a.jsx)("div",{"data-testid":p.w.TableLocalTableConfigurationAction,children:g.o.t("datasets_unit_upload_field_action")}),dataIndex:"operate",width:82,align:"left",render:(e,o,r)=>(0,a.jsx)("div",{className:Z.Z["column-item-action"],onClick:()=>{i(t.filter((e,t)=>r!==t))},children:(0,a.jsx)(h.u,{content:g.o.t(o.is_semantic?"datasets_segment_tableStructure_delTips":"datasets_table_title_actions_delete"),children:(0,a.jsx)(C.dVD,{"aria-disabled":!!o.is_semantic,className:Z.Z["column-item-action-delete"]})})})}];c&&M.pop();var I=(0,S.Dy)((0,S.VT)(S.we,{activationConstraint:{distance:1}})),N=e=>{var{active:o,over:r}=e;if(o&&r&&o.id!==r.id){var n=Array.from(t),a=n.findIndex(e=>e.key===o.id),l=n.findIndex(e=>e.key===r.id);i((0,D.Rp)(n,a,l))}},T=e=>{var{attributes:t,listeners:i,setNodeRef:n,transform:l,transition:s,isDragging:d}=(0,D.nB)({id:e["data-row-key"]}),c=(0,o._)((0,r._)((0,o._)({},e.style),{transform:z.ux.Transform.toString(l),transition:s,cursor:d?"grabbing":"grab"}),d?{zIndex:999,position:"relative",background:"rgba(217, 220, 250, 1)"}:{});return(0,a.jsx)("tr",(0,o._)((0,r._)((0,o._)({},e),{ref:n,style:c}),t,i))};return(0,a.jsxs)("div",{className:Z.Z["structure-wrapper"],children:[b?(0,a.jsx)(U,{}):null,x||null,_?(0,a.jsx)(S.LB,{autoScroll:!0,sensors:I,modifiers:[A.DL],onDragEnd:N,children:(0,a.jsx)(D.Fo,{items:t.map(e=>e.key||""),strategy:D.qw,children:(0,a.jsx)(h.iA,{wrapperClassName:u()(Z.Z["".concat(P,"-wrapper")],Z.Z["drag-table"]),tableProps:(0,o._)({sticky:!0,dataSource:t,columns:M,pagination:!1,className:Z.Z[P],components:{body:{row:T}}},w)},f)})}):(0,a.jsx)(h.iA,{wrapperClassName:Z.Z["".concat(P,"-wrapper")],tableProps:(0,o._)({sticky:!0,dataSource:t,columns:M,pagination:!1,className:Z.Z[P]},w)},f),v]})},U=()=>(0,a.jsxs)("div",{className:Z.Z["table-structure-bar-title"],"data-testid":p.w.TableLocalTableStructureTitle,children:[(0,a.jsx)("span",{children:g.o.t("datasets_segment_tableStructure_title")}),(0,a.jsx)(h.u,{content:g.o.t("knowledge_table_structure_column_tooltip"),children:(0,a.jsx)(C.L03,{className:u()(Z.Z.icon,"coz-fg-secondary")})})]})},270917:function(e,t,i){i.d(t,{p:()=>B});var o,r=i("808549"),n=i("120454"),a=i("473980"),l=i("151064"),s=i("455069"),d=i("252237"),c=i.n(d),u=i("763055"),p=i("263825"),g=i("385038"),m=i("336205"),h=i("873183"),f=i("659596"),b=i("528751"),v=i("537714"),x=i("695673"),_=i("900539"),y=e=>e.substring(0,e.lastIndexOf(".")),w=(e,t)=>{var i;return null==e?void 0:null===(i=e[t])||void 0===i?void 0:i.name},k=e=>e.reduce((e,t)=>(e[t.uid||""]=t,e),{}),j=(e,t)=>e.filter(e=>null==t?void 0:t.find(t=>{var i;return t.uri===(null==e?void 0:null===(i=e.response)||void 0===i?void 0:i.upload_uri)})),M=(e,t)=>{var i,o,r,n;return{type:(0,_.mD)((null==e?void 0:null===(i=e.response)||void 0===i?void 0:i.upload_uri)||e.name),uri:null==e?void 0:null===(o=e.response)||void 0===o?void 0:o.upload_uri,url:null==e?void 0:null===(r=e.response)||void 0===r?void 0:r.upload_url,name:(null!==(n=null==t?void 0:t.filename)&&void 0!==n?n:y(e.name)).slice(0,x.I1),size:e.size,status:e.status,percent:e.percent||0,fileInstance:e.fileInstance,uid:e.uid,validateMessage:e.validateMessage||""}},I=e=>e.filter(e=>!(!e.shouldUpload&&e.status===v.Dm.VALIDATE_FAIL)).map((t,i)=>M(t,{filename:w(e,i)})),N=(e,t)=>{var i=k(t);return e.filter(e=>{var t=i[e.uid||""];return!!t.shouldUpload||t.status!==v.Dm.VALIDATE_FAIL||!1}).map((e,o)=>{var n=i[e.uid||""],a=w(t,o);return(0,r._)({},e,M(n,{filename:a}))})},T=i("44172"),z=e=>{var t=(0,_.mD)(e.name)||"unknown",i={unknown:T.dd3,pdf:T.t1r,text:T.mBV,docx:T.yA0}[t]||T.dd3;return(0,l.jsx)(i,{})},D=i("825955"),A=i("745474"),S=i("458620"),E=i("727914"),C=i("178385"),O=i("382534"),L=i("274971");var Z=(o=(0,D._)(function*(e){var{onSuccess:t,onError:i,onProgress:o,file:r}=e;try{var{name:n,fileInstance:a}=r;if(a){var l=(0,L.mD)(n),s=yield(0,L.y3)(a),d=yield O.nA.UploadFile({file_head:{file_type:l,biz_type:C.ym.BIZ_BOT_DATASET},data:s},{onUploadProgress:e=>{var t,i=null==r?void 0:r.status,n=null==r?void 0:r.response;if(i!==v.Dm.SUCCESS&&i!==v.Dm.UPLOAD_FAIL&&i!==v.Dm.VALIDATE_FAIL&&(null==n?!void 0:!n.upload_url)){var{total:l,loaded:s}=e;void 0!==l&&s<l&&o({total:null!==(t=e.total)&&void 0!==t?t:a.size,loaded:e.loaded})}}});t(d.data)}else i({status:0}),A.s5.errorEvent(A.xW.KNOWLEDGE,{eventName:S.b.KnowledgeUploadFile,error:new E.sH(S.b.KnowledgeUploadFile,"".concat(S.b.KnowledgeUploadFile,": Failed to upload file"))})}catch(e){i({status:0}),A.s5.errorEvent(A.xW.KNOWLEDGE,{eventName:S.b.KnowledgeUploadFile,error:e})}}),function(e){return o.apply(this,arguments)}),P=e=>{var t,{maxSizeMB:o}=e;return t=(0,D._)(function*(e){var t={fileInstance:e.file.fileInstance,status:e.file.status,validateMessage:e.file.validateMessage,shouldUpload:!0,autoRemove:!1},{fileInstance:a}=e.file;if(!a)return(0,n._)((0,r._)({},t),{status:v.Dm.UPLOAD_FAIL,shouldUpload:!1});var l=o||b.G2;if(a.size>1048576*l)return f.FN.warning({showClose:!1,content:m.o.t("file_too_large",{max_size:"".concat(l,"MB")})}),(0,n._)((0,r._)({},t),{shouldUpload:!1,status:v.Dm.VALIDATE_FAIL,validateMessage:m.o.t("file_too_large",{max_size:"".concat(l,"MB")})});if("pdf"===(0,L.mD)(a.name).toLowerCase())try{var{getDocument:s,initPdfJsWorker:d}=yield i.e("7841").then(i.bind(i,187394));d();var c=yield(0,L.JD)(a);if((yield s({data:c}).promise).numPages>b.XC)return f.FN.warning({showClose:!1,content:m.o.t("atasets_createpdf_over250")}),{shouldUpload:!1,status:v.Dm.VALIDATE_FAIL}}catch(e){if(A.s5.errorEvent(A.xW.KNOWLEDGE,{eventName:S.b.KnowledgeParseFile,error:e}),(null==e?void 0:e.name)==="PasswordException")return f.FN.error({showClose:!1,content:m.o.t("pdf_encrypted")}),{shouldUpload:!1,status:v.Dm.VALIDATE_FAIL}}return t}),function(e){return t.apply(this,arguments)}},F=i("928589"),B=e=>{var{unitList:t,onFinish:i,setUnitList:o,showIllustration:d=!0,multiple:v=!0,maxSizeMB:x=b.G2}=e,_=(0,a._)(e,["unitList","onFinish","setUnitList","showIllustration","multiple","maxSizeMB"]),{limit:y}=_,[w,k]=(0,s.useState)([]);(0,s.useEffect)(()=>{t.length<w.length&&k(j(w,t))},[t.length]);var M=(0,s.useCallback)(()=>{f.FN.warning({showClose:!1,content:m.o.t("knowledge_upload_format_error")})},[]),T=(0,p.hJ)(),D=(0,p.S2)(e=>{k(e.fileList),o(I(e.fileList))},T),A=(0,p.S2)(()=>{i(N(t,w))},T),S=(0,s.useMemo)(()=>t.length>=y,[t,y]),E=P({maxSizeMB:x});return(0,l.jsx)(f.gq,(0,n._)((0,r._)({draggable:!0,"data-testid":g.w.UploadUnitFile,multiple:v,fileList:w,disabled:S,previewFile:z,onAcceptInvalid:M,beforeUpload:E,customRequest:Z,onChange:D,onSuccess:A,dragIcon:(0,l.jsx)(h.Isu,{className:F.Z["upload-icon"]})},_),{className:c()(F.Z.upload,_.className),children:t.length>=y&&d?(0,l.jsxs)("div",{className:F.Z["create-enough-file"],onClick:e=>e.stopPropagation(),children:[(0,l.jsx)(u.ns,{className:F.Z.picture}),(0,l.jsx)("div",{className:F.Z.text,children:m.o.t("knowledge_1218_001",{MaxDocs:y})})]}):null}))}},47522:function(e,t,i){i.d(t,{vL:()=>g,k1:()=>p,Zq:()=>u,nC:()=>o.n,G8:()=>c});var o=i("735997"),r=i("151064"),n=i("695673"),a=i("385038"),l=i("336205"),s=i("873183"),d=i("659596");function c(e){return(0,r.jsx)("div",{"data-dtestid":"".concat(a.w.LocalUploadListFileSize,".").concat(e.name),className:"coz-fg-secondary text-12px",children:null==e?void 0:e.size})}function u(e){var{index:t,record:i,params:o}=e,{onChange:n,unitList:a,onDelete:c}=o;return(0,r.jsx)(d.u,{spacing:12,content:l.o.t("Delete"),position:"top",children:(0,r.jsx)(d.hU,{color:"secondary",icon:(0,r.jsx)(s.dVD,{className:"text-14px"}),iconPosition:"left",size:"small",onClick:()=>{n(a.filter((e,i)=>t!==i)),"function"==typeof c&&(null==c||c(i,t))}})})}function p(e){var t,{index:i,record:o,params:a}=e,{onChange:c,unitList:u}=a,{node:p,open:g}=(0,n.i0)({name:null!==(t=null==o?void 0:o.name)&&void 0!==t?t:"",onOk:e=>{var t=[...u];t[i].name=e,c(t)}});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.u,{spacing:12,content:l.o.t("Edit"),position:"top",children:(0,r.jsx)(d.hU,{color:"secondary",icon:(0,r.jsx)(s.JAz,{className:"text-14px"}),iconPosition:"left",size:"small",onClick:()=>g()})}),p]})}function g(e){var{index:t,record:i,params:o}=e;if(o.disableRetry)return null;var{onRetry:n}=o;return(0,r.jsx)(d.u,{spacing:12,content:l.o.t("datasets_unit_update_retry"),position:"top",children:(0,r.jsx)(d.hU,{color:"secondary",icon:(0,r.jsx)(s.mxP,{className:"text-14px"}),iconPosition:"left",size:"small",onClick:()=>{null==n||n(i,t)}})})}i("274971"),i("237365")},735997:function(e,t,i){i.d(t,{n:function(){return p}});var o=i(808549),r=i(120454),n=i(151064);i(455069);var a=i(385038),l=i(336205),s=i(888461),d=i(561119),c=i(237365),u=(e,t,i)=>e===d.N.Failed?(0,n.jsx)("div",{"data-dtestid":"".concat(a.w.CreateUnitListProgressName,".","subText"),className:"text-12px",children:t||l.o.t("datasets_unit_upload_fail")}):i,p=e=>{var{unitList:t=[],getColumns:i}=e;return 0===t.length?null:(0,n.jsx)("div",{className:"upload-container",children:t.map((e,t)=>{var p=(0,c.Z)(null==e?void 0:e.status),g=(null==e?void 0:e.statusDescript)||"",{subText:m,actions:h,formatType:f}=i?i(e,t):{};return(0,n.jsx)(s.v,{mainText:e.name||"--",subText:u(p,g,m),tipText:(0,n.jsx)("span",{"data-dtestid":"".concat(a.w.LocalUploadListStatus,".").concat(e.name),children:p===d.N.Failed?g||l.o.t("datasets_unit_upload_fail"):l.o.t("datasets_unit_upload_success")}),status:p,avatar:(0,c.a)((0,r._)((0,o._)({},e),{formatType:f})),actions:h,percent:e.percent||10},e.uid)})})}},237365:function(e,t,i){i.d(t,{Z:function(){return c},a:function(){return d}});var o=i(151064),r=i(537714),n=i(280053),a=i(775699),l=i(44172),s=i(561119),d=e=>{var{type:t,formatType:i,url:r}=e;return i===n.a5.Image&&["jpg","jpeg","png","webp"].includes(t)?(0,o.jsx)(a.Ee,{src:r,width:24,height:24,style:{borderRadius:"4px",marginRight:"12px",flexShrink:0}}):"md"===t?(0,o.jsx)(l.s7F,{}):"pdf"===t?(0,o.jsx)(l.I2v,{}):"docx"===t?(0,o.jsx)(l.KHq,{}):"txt"===t?(0,o.jsx)(l.KNN,{}):"xlsx"===t||"xltx"===t||"xls"===t?(0,o.jsx)(l.$lV,{}):"csv"===t?(0,o.jsx)(l.tsT,{}):i===n.a5.Table?(0,o.jsx)(l.LAr,{}):(0,o.jsx)(l.Hnk,{})},c=e=>e===r.Dm.UPLOADING||e===r.Dm.VALIDATING||e===r.Dm.WAIT||e===n.Vq.Handling||e===r.Ao.EntityStatusProcess?s.N.Processing:e===r.Dm.SUCCESS||e===n.Vq.Finish||e===r.Ao.EntityStatusSuccess?s.N.Complete:e===r.Dm.VALIDATE_FAIL||e===r.Dm.UPLOAD_FAIL||e===n.Vq.Failed||e===r.Ao.EntityStatusFail?s.N.Failed:s.N.Processing},861445:function(e,t,i){i.d(t,{O7:function(){return o},WT:function(){return l},Yg:function(){return r},xT:function(){return n}});var o=100,r=3e3,n=[".xls",".xlsx",".csv"],a={DOUYIN:{acceptFileTypes:[".pdf",".txt",".doc",".docx"],fileFormatString:"PDF、TXT、DOC、DOCX",addUnitMaxLimit:100},DEFAULT:{acceptFileTypes:[".pdf",".txt",".docx",".md"],fileFormatString:"PDF、TXT、DOCX、MD",addUnitMaxLimit:300}},l=e=>e&&a[e]||a.DEFAULT},116497:function(e,t,i){i.d(t,{G2:function(){return n},XC:function(){return a},ge:function(){return r}});var o,r=((o={})[o.ZERO=0]="ZERO",o[o.ONE=1]="ONE",o[o.THREE=3]="THREE",o[o.SEVEN=7]="SEVEN",o[o.THIRTY=30]="THIRTY",o),n=1e3,a=5e3},528751:function(e,t,i){i.d(t,{pL:()=>l,O7:()=>n.O7,Q:()=>c,ge:()=>g.ge,hD:()=>d,XC:()=>g.XC,z2:()=>u,DU:()=>s,c3:()=>a,v1:()=>p.v,Px:()=>p.P,G2:()=>g.G2,Yg:()=>n.Yg});var o,r,n=i("861445");var a=((o={}).ERROR="error",o.LOADING="loading",o.NORMAL="normal",o),l=50,s=30;var d=((r={}).SHEET="sheet_id",r.KEY_START_ROW="header_line_idx",r.DATA_START_ROW="start_line_idx",r),c={sheet_id:0,header_line_idx:0,start_line_idx:1},u={sheet_id:0,header_line_idx:0,start_line_idx:0},p=i("461334"),g=i("116497")},461334:function(e,t,i){i.d(t,{P:function(){return a},v:function(){return l}});var o=i(336205),r=i(288391),n=()=>({[r.IB.LINE_BREAK]:o.o.t("datasets_Custom_segmentID_linebreak"),[r.IB.LINE_BREAK2]:o.o.t("datasets_Custom_segmentID_2linebreak"),[r.IB.CN_PERIOD]:o.o.t("datasets_Custom_segmentID_cnperiod"),[r.IB.CN_EXCLAMATION]:o.o.t("datasets_Custom_segmentID_cn_exclamation"),[r.IB.EN_PERIOD]:o.o.t("datasets_Custom_segmentID_enperiod"),[r.IB.EN_EXCLAMATION]:o.o.t("datasets_Custom_segmentID_en_exclamation"),[r.IB.CN_QUESTION]:o.o.t("datasets_Custom_segmentID_cn_question"),[r.IB.EN_QUESTION]:o.o.t("datasets_Custom_segmentID_en_question"),[r.IB.CUSTOM]:o.o.t("datasets_Custom_segmentID_custom")}),a=()=>Object.entries(n()).map(e=>{var[t,i]=e;return{value:t,label:i}}),l={separator:{type:r.IB.LINE_BREAK,customValue:"###"},maxTokens:800,preProcessRules:[],overlap:10}},771242:function(e,t,i){i.d(t,{nC:function(){return n.nC},p:function(){return r.p},uA:function(){return o.uA},vS:function(){return a.v},zP:function(){return o.zP}}),i(528751);var o=i(274971),r=i(270917),n=i(47522),a=i(936731);i(237365)},561119:function(e,t,i){i.d(t,{N:function(){return r}});var o,r=((o={})[o.Processing=0]="Processing",o[o.Complete=1]="Complete",o[o.Failed=2]="Failed",o)},288391:function(e,t,i){i.d(t,{IB:function(){return s},OX:function(){return a},dV:function(){return l}});var o,r,n,a=((o={})[o.AUTO=0]="AUTO",o[o.CUSTOM=1]="CUSTOM",o[o.LEVEL=2]="LEVEL",o);var l=((r={}).REMOVE_SPACES="remove_extra_spaces",r.REMOVE_EMAILS="remove_urls_emails",r);var s=((n={}).LINE_BREAK="\n",n.LINE_BREAK2="\n\n",n.CN_PERIOD="。",n.CN_EXCLAMATION="!",n.EN_PERIOD=".",n.EN_EXCLAMATION="!",n.CN_QUESTION="?",n.EN_QUESTION="?",n.CUSTOM="custom",n)},900539:function(e,t,i){i.d(t,{As:function(){return j},BD:function(){return N},JD:function(){return k},V1:function(){return I},l$:function(){return x},mD:function(){return y},mZ:function(){return M},td:function(){return _},te:function(){return f},uA:function(){return v},wV:function(){return h},y3:function(){return w},zP:function(){return b}});var o=i(808549),r=i(120454),n=i(962289),a=i(22916),l=i(745474),s=i(537714),d=i(458620),c=i(336205),u=i(727914),p=i(280053),g=i(659596),m=i(528751),h=e=>{var{unitList:t,data:i,fileInstance:n,index:a}=e;return i?t.map((e,t)=>a===t?(0,r._)((0,o._)({},e),{uri:i.upload_uri||"",status:s.Dm.SUCCESS,percent:100,fileInstance:n}):e):t};function f(e){var t=e.filter(e=>e.status===p._m.Failed);t.length&&l.s5.errorEvent(l.xW.KNOWLEDGE,{eventName:d.b.KnowledgeGetTaskProgress,error:new u.sH(d.b.KnowledgeGetTaskProgress,"".concat(d.b.KnowledgeGetTaskProgress,": get progress fail. ").concat(JSON.stringify(t))),meta:{failIds:t}})}function b(e){return e.length>0&&e.every(e=>e.progress===m.O7||e.status===p._m.Failed)}var v=e=>{e.current&&(clearTimeout(e.current),e.current=void 0)};function x(){var e=(0,a.kF)();return(0,n.Z)(e,"opt",s.VP.ADD)}function _(){var e=(0,a.kF)();return(0,n.Z)(e,"docID",void 0)}var y=e=>{var t=e.lastIndexOf(".");return e.slice(t+1).toLowerCase()},w=e=>new Promise((t,i)=>{var o=new FileReader;o.onload=e=>{var o,r=null===(o=e.target)||void 0===o?void 0:o.result;if(!r||"string"!=typeof r){i(new u.sH("getBase64","file read invalid"));return}t(r.replace(/^.*?,/,""))},o.onerror=()=>{g.FN.error(c.o.t("read_file_failed_please_retry")),i(new u.sH("getBase64","file read fail"))},o.onabort=()=>{i(new u.sH("getBase64","file read abort"))},o.readAsDataURL(e)}),k=e=>new Promise((t,i)=>{var o=new FileReader;o.onload=e=>{var o;(null===(o=e.target)||void 0===o?void 0:o.result)?t(new Uint8Array(e.target.result)):i(new u.sH("getUint8Array","file read invalid"))},o.readAsArrayBuffer(e)});function j(e,t){var i=e.filter(e=>e.status===p._m.Failed);i.length>0&&l.s5.errorEvent(l.xW.KNOWLEDGE,{eventName:t,error:new u.sH(t,"".concat(t,": fail document_ids are ").concat(JSON.stringify(i))),meta:{failDocumentIds:i}})}var M=e=>c.o.t("knowledge_add_unit_process_notice"),I=(e,t)=>e===s.VP.RESEGMENT&&t&&[s.Cm.TABLE_GOOGLE_DRIVE,s.Cm.TABLE_FEISHU].includes(t),N=e=>e===s.VP.INCREMENTAL},274971:function(e,t,i){i.d(t,{wO:()=>o.wO,hd:()=>o.hd,l$:()=>r.l$,VR:()=>n.VR,V1:()=>r.V1,y3:()=>r.y3,mZ:()=>r.mZ,mD:()=>r.mD,zP:()=>r.zP,JD:()=>r.JD,td:()=>r.td,As:()=>r.As,UQ:()=>a,te:()=>r.te,wV:()=>r.wV,BD:()=>r.BD,OP:()=>o.OP,uA:()=>r.uA});var o=i("690612"),r=i("900539"),n=i("417062");function a(e){return!1}i("888711")},690612:function(e,t,i){i.d(t,{OP:function(){return l},bp:function(){return s},hd:function(){return a},wO:function(){return c}});var o=i(962289),r=i(336205),n=i(528751),a=e=>({[n.ge.ZERO]:r.o.t("datasets_frequencyModal_frequency_noUpdate"),[n.ge.ONE]:r.o.t("datasets_frequencyModal_frequency_day",{num:1}),[n.ge.THREE]:r.o.t("datasets_frequencyModal_frequency_day",{num:3}),[n.ge.SEVEN]:r.o.t("datasets_frequencyModal_frequency_day",{num:7}),[n.ge.THIRTY]:r.o.t("datasets_frequencyModal_frequency_day",{num:30})})[e],l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=!0,o="";return e?(/["'`\\]+/g.test(e)&&(i=!1,o=r.o.t("knowledge_tableStructure_field_errLegally")),["_knowledge_slice_id"].includes(e)&&(i=!1,o=r.o.t("knowledge_tableStructure_errSystemField")),{valid:i,errorMsg:o}):{valid:!1,errorMsg:t}},s=e=>{if(!e)return[];var t=e.match(/<img[^>]+src\s*=\s*['"]([^'"]+)['"][^>]*>/g),i=[];if(t)for(var o=0;o<t.length;o++){var r,n=null===(r=t[o].match(/src\s*=\s*['"]([^'"]+)['"]/))||void 0===r?void 0:r[1];n&&i.push(n)}return i},d=e=>Object.values(n.hD).includes(e),c=e=>{var t={sheet_id:"",header_line_idx:"",start_line_idx:""};return Object.keys(e).reduce((t,i)=>(d(i)&&(t[i]=String((0,o.Z)(e,i))),t),t),t}},417062:function(e,t,i){i.d(t,{VR:function(){return l}});var o=i(280053),r=i(461334),n=i(288391),a=e=>e.chunk_type===o.x2.CustomChunk?n.OX.CUSTOM:e.chunk_type===o.x2.LevelChunk?n.OX.LEVEL:n.OX.AUTO,l=e=>{if(e&&Object.keys(e)&&(null==e?void 0:e.chunk_strategy))try{var t=(null==e?void 0:e.chunk_strategy)||{},i=[];return t.remove_extra_spaces&&i.push(n.dV.REMOVE_SPACES),t.remove_urls_emails&&i.push(n.dV.REMOVE_EMAILS),{docInfo:e,segmentMode:a(null==e?void 0:e.chunk_strategy),segmentRule:{separator:t.separator?s(t.separator):r.v.separator,maxTokens:t.max_tokens?Number(t.max_tokens):r.v.maxTokens,preProcessRules:i,overlap:t.overlap?Number(t.overlap):r.v.overlap}}}catch(e){}},s=e=>(function(e){var t=[];for(var[,i]of Object.entries(e))i!==e.CUSTOM&&t.push(i);return t})(n.IB).indexOf(e)>-1?{type:e}:{type:n.IB.CUSTOM,customValue:e}},888711:function(e,t,i){i.d(t,{Y:function(){return n}});var o=i(537714),r=i(288391),n=(e,t)=>{if(e===r.OX.CUSTOM){var i=(null==t?void 0:t.maxTokens)||0,n=null==t?void 0:t.separator,a=(null==n?void 0:n.type)===r.IB.CUSTOM&&!(null==n?void 0:n.customValue);if(0===i||a||"number"!=typeof t.overlap||Number.isNaN(t.overlap))return o.xZ.DISABLE}return o.xZ.ENABLE}},299464:function(e,t,i){i.d(t,{q9:()=>tv,Gx:()=>ex,a8:()=>eA,it:()=>t_,hP:()=>eS});var o,r,n,a,l,s=i("151064"),d=i("455069"),c=i("287487"),u=i("22916"),p=i("825955"),g=i("808549"),m=i("120454"),h=i("263825"),f=i("75117"),b=i("336205"),v=i("659596"),x=i("653598"),_=i("178385"),y=i("382534"),w=i("658665");var k=((o={}).CREATE="create",o.EDIT="edit",o),j=e=>{var{onSubmit:t,onClose:i,initValues:o,mode:r="create",renderAutoGenerate:n}=e,[a,l]=(0,d.useState)(!1),c=()=>{l(!1),null==i||i()};return{visible:a,open:()=>{l(!0)},close:c,modal:(0,s.jsx)(M,{visible:a,onClose:c,onSubmit:t,initValues:o,mode:r,renderAutoGenerate:n})}},M=e=>{var t,i,o,r,n,a,l,c,u,k,{visible:j,initValues:M,onClose:I,onSubmit:N,mode:T,renderAutoGenerate:z}=e,D=(0,d.useRef)(null);var A=(t=(0,p._)(function*(){if(!!D.current){var e,t,i,o,r,n,a=yield D.current.validate();N((0,m._)((0,g._)({},a),{icon_uri:[{url:null!==(r=null==a?void 0:null===(t=a.icon_uri)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.url)&&void 0!==r?r:"",uri:null!==(n=null==a?void 0:null===(o=a.icon_uri)||void 0===o?void 0:null===(i=o[0])||void 0===i?void 0:i.uid)&&void 0!==n?n:""}]}))}}),function(){return t.apply(this,arguments)}),[S,E]=(0,d.useState)({uri:null!==(l=null==M?void 0:null===(r=M.icon_uri)||void 0===r?void 0:null===(o=r[0])||void 0===o?void 0:o.uri)&&void 0!==l?l:"",url:null!==(c=null==M?void 0:null===(a=M.icon_uri)||void 0===a?void 0:null===(n=a[0])||void 0===n?void 0:n.url)&&void 0!==c?c:""}),[C,O]=(0,d.useState)({name:null!==(u=null==M?void 0:M.name)&&void 0!==u?u:"",desc:null!==(k=null==M?void 0:M.description)&&void 0!==k?k:""});var L=(i=(0,p._)(function*(){var e,t,i,o,r,n,{icon:a}=yield y.MJ.GetIcon({format_type:x.a5.Database});E({uri:null!==(t=null==a?void 0:a.uri)&&void 0!==t?t:"",url:null!==(i=null==a?void 0:a.url)&&void 0!==i?i:""}),null===(e=D.current)||void 0===e||e.setValue("icon_uri",[{url:null!==(o=null==a?void 0:a.url)&&void 0!==o?o:"",uri:null!==(r=null==a?void 0:a.uri)&&void 0!==r?r:"",uid:null!==(n=null==a?void 0:a.uri)&&void 0!==n?n:"",isDefault:!0}])}),function(){return i.apply(this,arguments)}),Z=(0,d.useCallback)(e=>{var{name:t,description:i,icon_uri:o}=e;if(!!D.current){if(D.current.setValue("name",t),D.current.setValue("description",i),O({name:null!=t?t:"",desc:null!=i?i:""}),!o||!o[0].url){L();return}D.current.setValue("icon_uri",[{url:o[0].url,uri:o[0].uri,uid:o[0].uri,isDefault:!0}])}},[D]);return(0,d.useEffect)(()=>{if(!!j&&!!M)Z(M)},[j,M,Z]),(0,s.jsx)(v.u_,{title:"create"===T?b.o.t("db_add_table_title"):b.o.t("db_edit_title"),closable:!0,visible:j,onCancel:()=>{if(D.current){var e;null===(e=D.current)||void 0===e||e.reset(["name","description","icon_uri"])}null==I||I()},className:"w-[480px]",okText:b.o.t("db2_004"),okButtonProps:{"data-testid":"database.info_modal.button.confirm"},cancelText:b.o.t("db_del_field_confirm_no"),onOk:A,maskClosable:!1,children:(0,s.jsx)(v.l0,{className:w.Z["database-model-content"],getFormApi:e=>{D.current=e},initValues:M,children:e=>{var{formState:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.NB,{"data-testid":"database.info_modal.input.name",field:"name",label:b.o.t("db_add_table_name"),placeholder:b.o.t("db_add_table_name_tips"),required:!0,maxLength:50,disabled:"edit"===T,onChange:e=>{O(t=>(0,m._)((0,g._)({},t),{name:(null==e?void 0:e.trim())||""}))},rules:[{required:!0,message:b.o.t("db2_005")},{pattern:/^[a-z][a-z0-9_]{0,63}$/,message:b.o.t("db_new_0004")}]}),(0,s.jsx)(h.eI,{"data-testid":"database.info_modal.input.description",field:"description",label:b.o.t("db_add_table_desc"),placeholder:b.o.t("db_add_table_desc_tips"),maxCount:100,maxlength:100,onChange:e=>{O(t=>(0,m._)((0,g._)({},t),{desc:(null==e?void 0:e.trim())||""}))}}),(0,s.jsx)(f.s,{label:b.o.t("datasets_model_create_avatar"),field:"icon_uri",fileBizType:_.ym.BIZ_DATASET_ICON,iconType:_.Tu.Dataset,uploadClassName:"w-auto",generateInfo:C,withAutoGenerate:!!z,renderAutoGenerate:z,initValue:[{url:null==S?void 0:S.url,uid:null==S?void 0:S.uri,isDefault:!0}]})]})}})})},I=i("177198"),N=i("873183"),T=i("252237"),z=i.n(T),D={info:"bg-[rgba(var(--coze-brand-1),var(--coze-brand-1-alpha))]",warning:"bg-[rgba(var(--coze-yellow-1),var(--coze-yellow-1-alpha))]",danger:"bg-[rgba(var(--coze-red-1),var(--coze-red-1-alpha))]",success:"bg-[rgba(var(--coze-green-1),var(--coze-green-1-alpha))]"};function A(e){var{type:t,persistentKey:i,className:o,children:r}=e,[n,a]=(0,d.useState)(!!localStorage.getItem(i)),[l,c]=(0,d.useState)(!1);return n||l?null:(0,s.jsxs)("div",{className:z()("p-[8px] flex justify-center",D[null!=t?t:"info"],o),children:[(0,s.jsx)("div",{className:"flex grow justify-center text-[14px] leading-[20px]",children:r}),(0,s.jsxs)("div",{className:"flex items-center gap-[10px] leading-none",children:[(0,s.jsx)(v.ZT.Text,{type:"secondary",fontSize:"12px",className:"cursor-pointer",onClick:()=>{localStorage.setItem(i,"1"),a(!0)},children:b.o.t("not_show_again")}),(0,s.jsx)(v.hU,{color:"secondary",size:"mini",className:"!h-[unset]",icon:(0,s.jsx)(N.rmE,{className:"w-[16px] h-[16px]"}),onClick:()=>c(!0)})]})]})}var S=i("801815"),E=i("392300"),C=i("689951"),O=i("745474"),L=i("458620"),Z=i("707107"),P=i("775699"),F=i("44172"),B=i("499283"),R=i("33630"),U=i("826256"),Q=e=>{var{errorMsg:t,errorMsgFloat:i}=e;return(0,s.jsxs)("div",{className:z()({[U.Z["select-wrapper"]]:!0,[U.Z["error-wrapper"]]:!!t}),children:[(0,s.jsx)(v.Ph,(0,m._)((0,g._)({},e.selectProps),{style:{width:"100%"},value:e.value,onChange:t=>{var i;null==e||null===(i=e.handleChange)||void 0===i||i.call(e,t)},dropdownClassName:U.Z["selected-option"]})),t?(0,s.jsx)("div",{className:z()({[U.Z["error-content"]]:!0,[U.Z["error-float"]]:!!i}),children:(0,s.jsx)("div",{className:U.Z["error-text"],children:t})}):null]})},Y=i("550655"),V=i("626862"),W=i("125915"),G=e=>{var t,i,o,r,{ellipsis:n=!0,maxCount:a,errorMsgFloat:l}=e,c=(0,Y.Z)(a)&&a>0;(0,d.useImperativeHandle)(e.onRef,()=>({triggerFocus:h}));var u=(0,V.Z)({value:e.value,inputOnFocus:!1,inputEle:!1}),p=(0,d.useRef)(null),h=()=>{var e;u.inputEle=!0,null==p||null===(e=p.current)||void 0===e||e.focus()},f=(0,d.useMemo)(()=>{var e,t;return((null===(e=p.current)||void 0===e?void 0:e.clientWidth)||0)<((null===(t=p.current)||void 0===t?void 0:t.scrollWidth)||0)-1},[n,u.inputOnFocus,u.value,null===(t=p.current)||void 0===t?void 0:t.clientWidth,null===(i=p.current)||void 0===i?void 0:i.scrollWidth,u.inputEle]);(0,d.useEffect)(()=>{u.value=e.value},[e.value]);var b=(0,s.jsxs)("span",{className:W.Z["limit-count"],children:[(null===(o=u.value)||void 0===o?void 0:o.length)||0,"/",a]});return(0,s.jsxs)("div",{className:z()(W.Z["input-wrapper"],e.className),style:e.style,children:[!u.inputEle&&f?(0,s.jsx)(v.u,(0,m._)((0,g._)({content:(0,s.jsx)("article",{style:{maxWidth:200,wordWrap:"break-word",wordBreak:"normal"},children:u.value}),position:"top",showArrow:!0,mouseEnterDelay:300},e.tooltipProps),{children:(0,s.jsx)("div",{className:z()((null==e?void 0:e.errorMsg)?W.Z["error-wrapper"]:null),onClick:()=>{!u.inputEle&&setTimeout(()=>{var e;null==p||null===(e=p.current)||void 0===e||e.focus()},10),u.inputEle=!0},children:(0,s.jsx)(v.II,(0,m._)((0,g._)({},e.inputProps),{ref:p,value:u.value,className:n?W.Z.input:"",suffix:c?b:void 0}))})})):(0,s.jsx)("div",{className:z()((null==e?void 0:e.errorMsg)?W.Z["error-wrapper"]:null),children:(0,s.jsx)(v.J2,(0,m._)((0,g._)({},e.onFocusPopoverProps),{trigger:"custom",visible:!!(null===(r=e.onFocusPopoverProps)||void 0===r?void 0:r.content)&&u.inputOnFocus,showArrow:!0,children:(0,s.jsx)(v.II,(0,m._)((0,g._)({},e.inputProps),{ref:p,value:u.value,className:n?W.Z.input:"",onChange:t=>{var i;u.value=t,null==e||null===(i=e.handleChange)||void 0===i||i.call(e,t)},onFocus:()=>{var t;u.inputOnFocus=!0,u.inputEle=!0,null==e||null===(t=e.handleFocus)||void 0===t||t.call(e,u.value||"")},onBlur:t=>{var i,o;u.inputOnFocus=!1,null==e||null===(i=e.handleBlur)||void 0===i||i.call(e,u.value||""),null==e||null===(o=e.onBlur)||void 0===o||o.call(e,t),u.inputEle=!1},suffix:c?b:void 0}))}))}),(null==e?void 0:e.errorMsg)?(0,s.jsx)("div",{className:z()({[W.Z["error-content"]]:!0,[W.Z["error-float"]]:!!l}),children:(0,s.jsx)("div",{className:W.Z["error-text"],children:null==e?void 0:e.errorMsg})}):null]})},H=(0,v.Q2)(G,{valueKey:"value",onKeyChangeFnName:"handleChange"}),q=i("602876"),K=[{value:q.wp.Text,label:b.o.t("db_add_table_field_type_txt")},{value:q.wp.Number,label:b.o.t("db_add_table_field_type_int")},{value:q.wp.Date,label:b.o.t("db_add_table_field_type_time")},{value:q.wp.Float,label:b.o.t("db_add_table_field_type_number")},{value:q.wp.Boolean,label:b.o.t("db_add_table_field_type_bool")}];b.o.t("db_add_table_temp_desc"),R.mx.LimitedReadWrite,(0,S.x0)(),b.o.t("db_add_table_temp_field_desc1"),q.wp.Text,(0,S.x0)(),b.o.t("db_add_table_temp_field_desc2"),q.wp.Number,(0,S.x0)(),b.o.t("db_add_table_temp_field_desc3"),q.wp.Text,R.mx.LimitedReadWrite,b.o.t("db_table_0129_005"),b.o.t("db_table_0129_002"),R.mx.ReadOnly,b.o.t("db_table_0129_006"),b.o.t("db_table_0129_003"),R.mx.UnlimitedReadWrite,b.o.t("db_table_0129_007"),b.o.t("db_table_0129_004"),R.mx.RWModeMax;var J={excel:[R.mx.LimitedReadWrite],normal:[R.mx.LimitedReadWrite],expert:[R.mx.LimitedReadWrite,R.mx.UnlimitedReadWrite]},X={name:"uuid",desc:b.o.t("workflow_240221_01"),type:q.wp.Text,must_required:!0,nanoid:(0,S.x0)(),isSystemField:!0},$={name:"id",desc:b.o.t("database_240520_01"),type:q.wp.Number,must_required:!0,nanoid:(0,S.x0)(),isSystemField:!0},ee={name:"sys_platform",desc:b.o.t("db_optimize_002"),type:q.wp.Text,must_required:!0,nanoid:(0,S.x0)(),isSystemField:!0},et=[$,ee,X,{name:"bstudio_create_time",desc:b.o.t("db_optimize_003"),type:q.wp.Date,must_required:!0,nanoid:(0,S.x0)(),isSystemField:!0}],ei={id:"bstudio_id",sys_platform:"bstudio_connector_id",uuid:"bstudio_connector_uid",bstudio_create_time:"bstudio_create_time"};function eo(e){var t,i,{field:o,textType:r="secondary",type:n,tip:a,required:l}=e;return(0,s.jsxs)("div",{className:"flex flex-row items-center",children:[(0,s.jsx)(v.ZT.Text,{type:r,weight:500,fontSize:"12px",ellipsis:!0,children:o}),l?(0,s.jsx)("span",{className:"coz-fg-hglt-red text-[12px] leading-[16px]",children:"*"}):null,a?(0,s.jsx)(v.u,{content:a,style:{maxWidth:"unset"},children:(0,s.jsx)(N.L03,{className:"w-[12px] h-[12px] ml-[3px] coz-fg-secondary"})}):null,"number"==typeof n?(0,s.jsx)(v.Vp,{color:"primary",size:"mini",className:"ml-[4px]",children:null!==(i=null===(t=K.find(e=>e.value===n))||void 0===t?void 0:t.label)&&void 0!==i?i:n}):null]})}var er=i("736351");var en=((r={}).custom="custom",r.template="template",r.excel="excel",r.recommend="recommend",r.naturalLanguage="naturalLanguage",r);var ea=((n={})[n.Required=1]="Required",n[n.Unique=2]="Unique",n[n.Naming=3]="Naming",n),el=[{type:1,regex:/[^a-z0-9_]/,errorMsg:b.o.t("db_add_table_field_name_tips2")},{type:2,regex:/^[^a-z]/,errorMsg:b.o.t("db_add_table_field_name_tips3")},{type:3,regex:/[\s\S]{64,}/,errorMsg:b.o.t("db_add_table_field_name_tips4")}],es=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=[...t];return el.forEach(t=>{i=i.filter(e=>e!==t.errorMsg),t.regex.test(e||"")&&i.push(t.errorMsg)}),i},ed=[{label:b.o.t("db_add_table_field_name"),key:"name",validator:[{type:ea.Naming,message:""},{type:ea.Required,message:b.o.t("db_table_save_exception_nofieldname")},{type:ea.Unique,message:b.o.t("db_table_save_exception_fieldname")}],defaultValue:"",require:!0},{label:b.o.t("db_add_table_field_desc"),key:"desc",require:!1,validator:[],defaultValue:""},{label:b.o.t("db_add_table_field_type"),key:"type",require:!0,validator:[{type:ea.Required,message:b.o.t("db_table_save_exception_fieldtype")}],defaultValue:""},{label:b.o.t("db_add_table_field_necessary"),key:"must_required",require:!1,validator:[],defaultValue:!0}],ec=(e,t)=>e.map(i=>{var o=(0,g._)({},i);return ed.forEach(i=>{var r=i.key;i.validator.forEach(i=>{!(null==o?void 0:o.errorMapper)&&(o.errorMapper={});var n,a=null==o?void 0:null===(n=o.errorMapper)||void 0===n?void 0:n[r],l=o[r];!a&&(o.errorMapper[r]=[],a=[]);var s=i.message;switch(i.type){case ea.Required:"save"===t&&!l&&ed.find(e=>!!o[e.key]&&!e.defaultValue)&&o.errorMapper[r].push(s),"change"===t&&l&&(o.errorMapper[r]=a.filter(e=>e!==s));break;case ea.Unique:"save"===t&&l&&1!==e.filter(e=>e[r]===o[r]).length&&o.errorMapper[r].push(s),"change"===t&&l&&1===e.filter(e=>e[r]===o[r]).length&&(o.errorMapper[r]=a.filter(e=>e!==s));break;case ea.Naming:("save"===t||"blur"===t||"change"===t&&a.length)&&(o.errorMapper[r]=es(l,a))}o.errorMapper[r]=Array.from(new Set(o.errorMapper[r]))})}),o}),eu=i("824113"),ep=i("606526"),eg=()=>(0,s.jsx)(eu.yk,{className:ep.Z["modal-key-tip"],children:"- ".concat(b.o.t("db_add_table_field_name_tips1"),"\n- ").concat(b.o.t("db_add_table_field_name_tips2"),"\n- ").concat(b.o.t("db_add_table_field_name_tips3"),"\n- ").concat(b.o.t("db_add_table_field_name_tips4"))}),em=i("777432"),eh=(0,d.forwardRef)((e,t)=>{var i,o,r,{data:n,botId:a="",spaceId:l="",creatorId:c="",onSave:u,onCancel:h,onDeleteField:f,forceEdit:x=!1,maxColumnNum:_=20,useComputingEnableGoToNextStep:w,readAndWriteModeOptions:k,onlyShowDatabaseInfoRWMode:j,enableAdd:M=!0,loading:N=!1,setContentCheckErrorMsg:T=E.Z,createType:D,showDatabaseBaseInfo:A,hiddenTableBorder:U,isReadonlyMode:Y,projectID:V,renderModeSelect:W}=e,[q,X]=(0,d.useState)([]),$=(0,d.useRef)(null),ee=(0,d.useRef)(null),ei=(0,d.useRef)(),en=!!n.tableId,[ea,{setTrue:el,setFalse:ed}]=(0,C.Z)(!1),eu=q.filter(e=>!e.isSystemField),ep=eu.length>=_,eh=eu.length>_,ef=eu.filter(e=>e.name||e.desc||e.type).length<=0,eb=[0x2a339708,0x2a3851f8],ev=e=>{(0,B.k0)(e)&&eb.includes(Number(null==e?void 0:e.code))&&T((null==e?void 0:e.msg)||b.o.t("knowledge_bot_update_databse_tnserr_msg"))},ex=function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(!ea)X([...q,{nanoid:(0,S.x0)(),name:"",desc:"",type:void 0,must_required:!1}]),e&&setTimeout(()=>{var e,t,i;null===(t=$.current)||void 0===t||null===(e=t.triggerFocus)||void 0===e||e.call(t),null===(i=ee.current)||void 0===i||i.scrollIntoView({block:"end",behavior:"smooth"})},100)},e_=e=>{X(t=>ec(t,e))};var ey=(i=(0,p._)(function*(){var e=ec(q,"save");if(X(e),A)try{yield ei.current.formApi.validate(["name"])}catch(e){return!1}return!e.find(e=>Object.keys(e.errorMapper||{}).find(t=>{var i,o;return!!(null==e?void 0:null===(o=e.errorMapper)||void 0===o?void 0:null===(i=o[t])||void 0===i?void 0:i.length)}))&&!ef&&!0}),function(){return i.apply(this,arguments)});var ew=(o=(0,p._)(function*(){var e,t,i={};i=ei.current?ei.current.formApi.getValues():{name:n.name,desc:n.desc,readAndWriteMode:n.readAndWriteMode,prompt_disabled:(null===(e=n.extra_info)||void 0===e?void 0:e.prompt_disabled)==="true"},en?(0,Z.Gg)(Z.Kg.edit_table_click,{need_login:!0,have_access:!0,bot_id:a,table_name:i.name}):(0,Z.Gg)(Z.Kg.create_table_click,{need_login:!0,have_access:!0,bot_id:a,table_name:i.name,database_create_type:D});var o={table_name:j?n.name:i.name,table_desc:j?n.desc:i.desc,icon_uri:n.icon_uri,prompt_disabled:!!i.prompt_disabled,field_list:q.filter(e=>!!e.name&&!e.isSystemField).map(e=>({name:e.name,desc:e.desc||"",type:e.type,must_required:e.must_required,id:null==e?void 0:e.id,alterId:null==e?void 0:e.alterId})),rw_mode:i.readAndWriteMode};if(en)try{t=yield y.v6.UpdateDatabase((0,m._)((0,g._)({},o),{id:n.tableId}))}catch(e){O.s5.errorEvent(O.xW.DATABASE,{eventName:L.b.DatabaseAlterTable,error:e}),ev(e);return}else try{t=yield y.v6.AddDatabase((0,m._)((0,g._)({},o),{space_id:l,creator_id:c,project_id:V}))}catch(e){O.s5.errorEvent(O.xW.DATABASE,{eventName:L.b.DatabaseAddTable,error:e}),ev(e);return}u&&(yield u({response:t})),null==h||h()}),function(){return o.apply(this,arguments)});var ek=(r=(0,p._)(function*(){try{if(el(),!(yield ey()))return;yield ew()}finally{ed()}}),function(){return r.apply(this,arguments)}),ej=e=>{if(!e)return b.o.t("db_add_table_name_tips");var t=es(e);return t.length>0?t.join("; "):""};(0,d.useImperativeHandle)(t,()=>({submit:()=>(0,p._)(function*(){return yield ek()})(),validate:()=>(0,p._)(function*(){return yield ey()})(),setTableFieldsList:X,isReadonly:ea,tableBasicInfoFormRef:ei,tableFieldsList:q}),[ea,q,ei]),null==w||w(q,ef);var eM=M?[...q,{operate:"add"}]:q,eI=()=>{T("")};return(0,d.useEffect)(()=>{if(X([...et,...n.tableMemoryList]),ei.current&&!N){var e;ei.current.formApi.setValues({name:(null==n?void 0:n.name)||"",desc:(null==n?void 0:n.desc)||"",prompt_disabled:!!en&&(null===(e=n.extra_info)||void 0===e?void 0:e.prompt_disabled)==="true",readAndWriteMode:(null==n?void 0:n.readAndWriteMode)||R.mx.LimitedReadWrite})}},[n,N]),(0,s.jsxs)("div",{className:z()(em.Z["table-structure-wrapper"],{[em.Z["hidden-form-border"]]:U}),children:[A?(0,s.jsxs)(v.l0,{ref:ei,layout:"vertical",className:em.Z["table-structure-form"],onValueChange:(e,t)=>{("name"in t||"desc"in t)&&eI()},children:[j?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(H,{field:"name",label:{text:b.o.t("db_add_table_name"),required:!0},validate:e=>ej(e),trigger:["change","blur"],fieldClassName:em.Z["table-name-form-field"],disabled:Y,inputProps:{"data-testid":I.A.BotDatabaseAddModalTableNameInput,disabled:!x&&(ea||en),placeholder:b.o.t("db_add_table_name_tips")},onFocusPopoverProps:{style:{padding:"2px 12px"},position:"left",content:(0,s.jsx)(eg,{})}}),(0,s.jsx)(v.l0.TextArea,{"data-testid":I.A.BotDatabaseAddModalTableDescInput,field:"desc",label:b.o.t("db_add_table_desc"),disabled:ea||Y,rows:2,placeholder:b.o.t("db_add_table_desc_tips"),fieldClassName:em.Z["table-desc-form-field"]})]}),W&&k?W({dataTestId:I.A.BotDatabaseAddModalTableQueryModeSelect,field:"readAndWriteMode",label:b.o.t("db_table_0129_001"),type:"select",options:J[k]}):null]}):null,eh?(0,s.jsx)(P.jL,{type:"warning",description:b.o.t("db_table_0126_027",{ColumNum:_}),className:em.Z["max-row-banner"]}):null,(0,s.jsx)(P.$,{tableProps:{loading:N,columns:[{dataIndex:"name",title:(0,s.jsx)(eo,{field:b.o.t("db_add_table_field_name"),required:!0,tip:(0,s.jsxs)("div",{className:em.Z["th-tip-name"],children:[(0,s.jsx)("span",{style:{width:494,marginBottom:8},children:b.o.t("db_add_table_field_name_tips")}),(0,s.jsx)(P.Ee,{preview:!1,width:494,height:163,src:er})]})}),render:(e,t,i)=>{var o,r,n;return"add"!==t.operate?(0,s.jsx)(G,{style:{position:"static"},onRef:$,value:t.name,inputProps:{"data-testid":I.A.BotDatabaseAddModalFieldNameInput,"data-dtestid":I.A.BotDatabaseAddModalFieldNameInput,disabled:ea||t.isSystemField||Y,placeholder:"Enter Name"},errorMsgFloat:!0,onFocusPopoverProps:{style:{padding:"2px 12px"},position:"left",content:(0,s.jsx)(eg,{})},errorMsg:null===(n=q[i])||void 0===n?void 0:null===(r=n.errorMapper)||void 0===r?void 0:null===(o=r.name)||void 0===o?void 0:o.join("; "),handleChange:e=>{var t=[...q];t[i].name=e,X(t),e_("change"),eI()},handleBlur:()=>{e_("blur")}}):(0,s.jsx)("div",{ref:ee,"data-testid":I.A.BotDatabaseAddModalAddBtn,children:ep?(0,s.jsx)("div",{style:{paddingRight:10},children:(0,s.jsx)(P.u,{position:"top",content:b.o.t("bot_database_add_field",{number:_}),children:(0,s.jsx)(v.zx,{color:"secondary",disabled:!0,icon:(0,s.jsx)(F.N_R,{}),children:b.o.t("bot_userProfile_add")})})}):(0,s.jsx)(v.zx,{color:"primary",disabled:ea,onClick:()=>ex(!0),icon:(0,s.jsx)(F.N_R,{}),children:b.o.t("bot_userProfile_add")})})},width:261},{dataIndex:"desc",title:(0,s.jsx)(eo,{field:b.o.t("db_add_table_field_desc"),tip:(0,s.jsx)("article",{style:{width:327},children:b.o.t("db_add_table_field_desc_tips")})}),render:(e,t,i)=>"add"!==t.operate?(0,s.jsx)(G,{value:t.desc,maxCount:300,inputProps:{"data-testid":"".concat(I.A.BotDatabaseAddModalFieldDescInput,".").concat(i,".").concat(t.name),"data-dtestid":"".concat(I.A.BotDatabaseAddModalFieldDescInput,".").concat(i,".").concat(t.name),maxLength:300,disabled:ea||t.isSystemField||Y,placeholder:b.o.t("bot_edit_variable_description_placeholder")},errorMsgFloat:!0,handleChange:e=>{var t=[...q];t[i].desc=e,X(t),eI()}}):null,width:369},{dataIndex:"type",title:(0,s.jsx)(eo,{field:b.o.t("db_add_table_field_type"),required:!0,tip:(0,s.jsx)("article",{style:{width:327},children:b.o.t("db_add_table_field_type_tips")})}),render:(e,t,i)=>{var o,r,n;return"add"!==t.operate?(0,s.jsx)(Q,{value:t.type,selectProps:{"data-testid":"".concat(I.A.BotDatabaseAddModalFieldTypeSelect,".").concat(i,".").concat(t.name),"data-dtestid":"".concat(I.A.BotDatabaseAddModalFieldTypeSelect,".").concat(i,".").concat(t.name),disabled:ea||en&&!!t.id||t.isSystemField||Y,placeholder:b.o.t("db_table_save_exception_fieldtype"),optionList:K},errorMsgFloat:!0,errorMsg:null===(n=q[i])||void 0===n?void 0:null===(r=n.errorMapper)||void 0===r?void 0:null===(o=r.type)||void 0===o?void 0:o.join("; "),handleChange:e=>{var t=[...q];t[i].type=e,X(t),e_("change")}}):null},width:214},{dataIndex:"must_required",title:(0,s.jsx)(eo,{field:b.o.t("db_add_table_field_necessary"),tip:(0,s.jsxs)("article",{style:{width:327},children:[(0,s.jsx)("p",{className:em.Z["th-tip-dot"],children:b.o.t("db_add_table_field_necessary_tips1")}),(0,s.jsx)("p",{className:em.Z["th-tip-dot"],children:b.o.t("db_add_table_field_necessary_tips2")})]})}),render:(e,t,i)=>"add"!==t.operate?(0,s.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,s.jsx)(v.rs,{"data-testid":"".concat(I.A.BotDatabaseAddModalFieldRequiredSwitch,".").concat(i,".").concat(t.name),"data-dtestid":"".concat(I.A.BotDatabaseAddModalFieldRequiredSwitch,".").concat(i,".").concat(t.name),disabled:ea||t.disableMustRequired||t.isSystemField||Y,checked:t.must_required,onChange:e=>{var t=[...q];t[i].must_required=e,X(t)},size:"small","aria-label":"a switch for semi demo"})}):null,width:108},{dataIndex:"operate",title:(0,s.jsx)(eo,{field:b.o.t("db_table_0126_021")}),render:(e,t,i)=>"add"!==t.operate?(0,s.jsx)(P.gl,{deleteProps:{handleClick:()=>{if(!ea){var e=[...q.slice(0,i),...q.slice(i+1)];X(e),e_("change"),null==f||f(e)}},popconfirm:{defaultVisible:!1,visible:!1},tooltip:{content:b.o.t("datasets_table_title_actions_delete")},disabled:t.isSystemField||Y},editProps:{hide:!0}}):null,width:85}],dataSource:eM,pagination:!1,className:em.Z["table-structure-table"],rowKey:"nanoid"},wrapperClassName:em.Z["table-structure-table-wrapper"]}),ef&&!N?(0,s.jsx)("div",{className:em.Z["table-empty-tips"],children:b.o.t("db_table_save_exception_nofield")}):null]})}),ef=e=>{var{onReturn:t,onSubmit:i,initValue:o,showDatabaseBaseInfo:r,extraParams:n,onlyShowDatabaseInfoRWMode:a,projectID:l,renderGenerate:c,renderModeSelect:u}=e,[p,g]=(0,d.useState)(!1),m=()=>{g(!1)};return{visible:p,open:()=>{g(!0)},close:m,modal:(0,s.jsx)(eb,{visible:p,onClose:m,onReturn:t,onSubmit:i,initValue:o,showDatabaseBaseInfo:r,extraParams:n,onlyShowDatabaseInfoRWMode:a,projectID:l,renderGenerate:c,renderModeSelect:u})}};function eb(e){var t,i,{visible:o,onClose:r,onReturn:n,onSubmit:a,initValue:l,showDatabaseBaseInfo:c,onlyShowDatabaseInfoRWMode:u,extraParams:{botId:h="",spaceId:f="",creatorId:x=""}={},projectID:_,renderGenerate:y,renderModeSelect:w}=e,[k,j]=(0,d.useState)(!1),[M,T]=(0,d.useState)(!1),[z,D]=(0,d.useState)(!1),[S,E]=(0,d.useState)(l),C=(0,d.useRef)(null),O=(0,d.useMemo)(()=>!!l.tableId,[l]);var L=(t=(0,p._)(function*(e){var{response:t}=e;yield null==a?void 0:a(t)}),function(e){return t.apply(this,arguments)});var Z=(i=(0,p._)(function*(){if(C.current)try{T(!0),yield C.current.submit()}finally{T(!1)}}),function(){return i.apply(this,arguments)});return(0,d.useEffect)(()=>{E(l)},[l]),(0,s.jsx)(v.u_,{closable:!0,maskClosable:!1,visible:o,onCancel:void 0,onOk:Z,size:"xxl",header:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex flex-row items-center",children:[(0,s.jsx)("div",{className:"flex-1 text-[20px] font-medium coz-fg-plus",children:O?b.o.t("db_edit_title"):b.o.t("db_add_table_title")}),O?null:null==y?void 0:y({tableStructureRef:C,onGenerateChange:e=>{E((0,m._)((0,g._)({},S),{tableMemoryList:e}))},onGenerating:j,botId:h}),(0,s.jsx)("div",{children:(0,s.jsx)(v.hU,{color:"secondary",icon:(0,s.jsx)(N.rmE,{className:"text-[20px] coz-fg-secondary"}),onClick:r})})]}),O?(0,s.jsx)(A,{type:"warning",persistentKey:"_coze_database_edit_warning",className:"mx-[-24px]",children:b.o.t("db_edit_tips1")}):null]}),footer:(0,s.jsxs)("div",{className:"coz-modal-footer",children:[(0,s.jsx)(v.zx,{color:"primary",onClick:()=>{if(n){n();return}},children:O?b.o.t("db_del_field_confirm_no"):b.o.t("db2_003")}),(0,s.jsx)(v.zx,{"data-testid":I.A.BotDatabaseAddModalSubmitBtn,loading:M,onClick:Z,disabled:z,children:b.o.t("db_edit_save")})]}),children:(0,s.jsx)("div",{children:(0,s.jsx)(eh,{data:S,ref:C,loading:k,loadingTips:b.o.t("bot_database_ai_waiting"),botId:h,spaceId:f,creatorId:x,maxColumnNum:20,useComputingEnableGoToNextStep:(e,t)=>{if(t||e.filter(e=>!e.isSystemField).length>20){D(!0);return}D(!e.every(e=>{var t,i;if(!(null==e?void 0:e.errorMapper))return!0;return!((null===(t=e.errorMapper.name)||void 0===t?void 0:t.length)>0)&&!((null===(i=e.errorMapper.type)||void 0===i?void 0:i.length)>0)&&!0}))},createType:en.custom,hiddenTableBorder:!0,readAndWriteModeOptions:"expert",showDatabaseBaseInfo:c,onlyShowDatabaseInfoRWMode:u,onSave:L,onCancel:r,projectID:_,renderModeSelect:w})})})}var ev=i("214942"),ex=e=>{var t,{projectID:i,onFinish:o}=e,r=(0,d.useRef)(0),n=(0,u.EV)(),a=(0,ev.rY)(e=>e.getSpaceId()),l=null===(t=c.Z.useUserInfo())||void 0===t?void 0:t.user_id_str,[p,g]=(0,d.useState)({name:"",description:"",icon_uri:[{uri:"",url:"",uid:""}]}),m=(0,d.useMemo)(()=>{var e,t;return{tableId:"",name:null==p?void 0:p.name,desc:null==p?void 0:p.description,icon_uri:null===(t=p.icon_uri)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.uri,readAndWriteMode:R.mx.LimitedReadWrite,tableMemoryList:[]}},[p]),h=()=>{v(),y(),r.current=0},{modal:f,open:b,close:v}=j({onSubmit:e=>{g(e),r.current=1,v(),w()},initValues:p,mode:k.CREATE}),{modal:x,open:_,close:y}=ef({onClose:()=>{console.log("open"),r.current=0,w()},onReturn:()=>{r.current=0,w(),y()},onSubmit:e=>{var t,i,{id:r,draft_id:a}=null!==(t=e.database_info)&&void 0!==t?t:{};if(r&&a){if(o){o(r,a);return}null===(i=n.toResource)||void 0===i||i.call(n,"database",r,{page_modal:"normal",from:"create"}),h()}},initValue:m,showDatabaseBaseInfo:!0,onlyShowDatabaseInfoRWMode:!0,extraParams:{spaceId:a,creatorId:l},projectID:i}),w=()=>{0===r.current?b():_()};return{modal:(0,s.jsxs)(s.Fragment,{children:[f,x]}),open:w,close:h}},e_=i("311807"),ey=i("974235"),ew=i("763055"),ek=i("197960"),ej=i("280053"),eM=i("951003"),eI=i("75991"),eN=e=>{var{label:t,onClick:i,selected:o}=e;return(0,s.jsxs)("div",{onClick:i,className:z()(["flex items-center gap-[8px] px-[12px]","px-[12px] py-[6px] rounded-[8px]","cursor-pointer","hover:text-[var(--light-usage-text-color-text-0,#1c1f23)]","hover:bg-[var(--light-usage-fill-color-fill-0,rgba(46,50,56,5%))]",o&&"text-[var(--light-usage-text-color-text-0,#1c1d23)] bg-[var(--light-usage-fill-color-fill-0,rgba(46,47,56,5%))]"]),children:[(0,s.jsx)(N.Iqn,{}),t]})},eT=i("367275"),ez=e=>{var[t,{setFalse:i,setTrue:o}]=(0,C.Z)(!1);return(0,s.jsx)(P.zx,(0,m._)((0,g._)({onMouseEnter:()=>{o()},onMouseLeave:()=>{i()}},e),{className:z()(eT.Z["database-added"],{[eT.Z["added-mousein"]]:t}),children:t?b.o.t("Remove"):b.o.t("Added")}))},eD=e=>{var{icon:t,title:i,description:o,isAdd:r,onClick:n,onAdd:a,onRemove:l}=e,d=()=>{if(r){null==l||l();return}null==a||a()};return(0,s.jsxs)("div",{onClick:n,className:"flex flex-row items-center p-[16px] border-t-0 border-l-0 border-r-0 border-b-[1px] border-solid coz-stroke-primary last:border-b-0 cursor-pointer",children:[(0,s.jsx)("img",{src:t,className:"w-[36px] h-[36px] rounded-[8px]"}),(0,s.jsxs)("div",{className:"flex flex-col ml-[12px] min-w-0 flex-grow",children:[(0,s.jsx)("p",{className:"text-[14px] font-medium leading-[20px] coz-fg-primary mb-[4px]",children:i}),(0,s.jsx)(P.ZT.Text,{ellipsis:{showTooltip:{opts:{content:o}}},className:"text-[12px] leading-[16px] coz-fg-secondary truncate !max-w-[680px]",children:o})]}),(0,s.jsx)("div",{className:"ml-[16px]",children:r?(0,s.jsx)(ez,{onClick:e=>{e.stopPropagation(),d()}}):(0,s.jsx)(P.zx,{"data-testid":"bot.database.add.modal.add.button",className:z()("w-[53px] flex justify-center items-center",eT.Z["database-add"]),onClick:e=>{e.stopPropagation(),d()},children:b.o.t("Add_2")})})]})},eA=e=>{var t,i,{visible:o,onClose:r,onAddDatabase:n,onRemoveDatabase:a,onClickDatabase:l,onCreateDatabase:u,enterFrom:h,botId:f,spaceId:x,workflowAddList:_=[],projectID:w,tips:k}=e,j=(0,b.D)(),M=c.Z.useUserInfo(),I=(0,d.useRef)(null),[N,T]=(0,d.useState)(w?"project":"library"),[D,A]=(0,d.useState)(!1),[S,E]=(0,d.useState)(!0),[C,O]=(0,d.useState)("all"),[L,Z]=(0,d.useState)("create_time"),[B,U]=(0,d.useState)(""),[Q,Y]=(0,d.useState)({tableId:"",name:"",desc:"",icon_uri:"",readAndWriteMode:R.mx.LimitedReadWrite,tableMemoryList:[]}),[V,W]=(0,d.useState)(!1);var G=(t=(0,p._)(function*(e){var{key_word:t,filter_creator:i,page_offset:o,sort_by:r}=e,n=yield y.v6.ListDatabase((0,m._)((0,g._)({},"project"===N?{project_id:w}:{}),{bot_id:"bot"===h?f:"0",space_id:x,table_type:"bot"===h?R.Nd.DraftTable:R.Nd.OnlineTable,table_name:t,creator_id:"all"===i?"0":i,limit:50,offset:o,order_by:[{field:r,direction:R.Sr.Desc}]}));return{list:n.database_info_list||[],nextOffset:o+1,total:n.total_count,hasMore:n.has_more}}),function(e){return t.apply(this,arguments)}),{loading:H,data:q,loadingMore:K,reload:J}=(0,ey.Z)(e=>G({key_word:B,filter_creator:C,page_offset:(null==e?void 0:e.nextOffset)||0,sort_by:L}),{manual:!0,isNoMore:e=>!!(!(null==e?void 0:e.total)||!e.hasMore),reloadDeps:[B,C,L,N,w],target:I}),X=()=>{if(!!I.current){var{scrollTop:e,scrollHeight:t,clientHeight:i}=I.current;t-(e+i)<1?E(!1):E(!0)}},$=e=>{n&&e.id&&(null==n||n(e.id,J))},ee=e=>{a&&e.id&&(null==a||a(e.id,J))},et=e=>{l&&e.id&&(null==l||l(e.id))},ei=e=>{"template"===e?Y((0,m._)((0,g._)({},Q),{name:"reading_notes",desc:"for saving reading notes",readAndWriteMode:R.mx.LimitedReadWrite,extra_info:{prompt_disabled:"true"},tableMemoryList:[{name:"name",desc:"",type:1,must_required:!0},{name:"section",desc:"",type:2,must_required:!0},{name:"note",desc:"",type:1,must_required:!0}]})):Y({tableId:"",name:"",desc:"",readAndWriteMode:R.mx.LimitedReadWrite,tableMemoryList:[]}),W(!0)},eo=()=>(0,s.jsxs)("div",{className:eT.Z["tips-wrapper"],children:[(0,s.jsxs)("div",{className:eT.Z["tip-title"],children:[b.o.t("db2_018"),":"]}),(0,s.jsxs)("p",{className:"my-[8px]",children:["\uD83D\uDCA1 ",(0,s.jsxs)("em",{className:eT.Z["tip-desc"],children:[b.o.t("db2_019"),":"]})]}),(0,s.jsx)(P.Ee,{height:136,src:"zh-CN"===j?eI:eM}),(0,s.jsxs)("div",{className:eT.Z["tip-title"],children:[b.o.t("db2_020"),":"]}),(0,s.jsxs)("div",{className:eT.Z["bot-bg"],children:[(0,s.jsxs)("div",{className:z()(eT.Z["bot-item"],"mb-[12px]"),children:[(0,s.jsx)("div",{className:z()(eT.Z["bot-img"],eT.Z["img-user"]),children:b.o.t("db2_021")}),(0,s.jsx)("div",{className:z()(eT.Z["bot-content"],eT.Z["content-user"]),children:b.o.t("db2_022")})]}),(0,s.jsxs)("div",{className:eT.Z["bot-item"],children:[(0,s.jsx)("div",{className:z()(eT.Z["bot-img"],eT.Z["img-bot"]),children:b.o.t("db2_023")}),(0,s.jsx)("div",{className:z()(eT.Z["bot-content"],eT.Z["content-bot"]),children:b.o.t("db2_024")})]})]})]}),er=()=>(0,s.jsx)(v.II,{placeholder:b.o.t("db2_014"),className:"w-full",value:B,onChange:(0,e_.Z)(e=>{U(e)},500)}),en=()=>(0,s.jsx)("div",{className:"flex flex-row items-center w-full justify-between pr-[12px]",children:(0,s.jsxs)("div",{className:z()(eT.Z.select,"flex flex-row flex-1"),children:[(0,s.jsx)("div",{className:"flex flex-row items-center",children:(0,s.jsxs)(v.Ph,{showArrow:!0,size:"default",className:"border-none ml-[4px] hover:border-none bg-transparent outline-none",value:C,onChange:e=>O(e),insetLabel:(0,s.jsx)("p",{className:eT.Z.label,children:b.o.t("db2_009")}),children:[(0,s.jsx)(v.Ph.Option,{value:"all",label:b.o.t("db2_010")}),M?(0,s.jsx)(v.Ph.Option,{value:M.user_id_str,label:M.name},M.user_id_str):null]})}),(0,s.jsx)("div",{className:"flex flex-row items-center ml-[12px]",children:(0,s.jsxs)(v.Ph,{showArrow:!0,size:"default",className:"border-none ml-[4px] hover:border-none bg-transparent outline-none",value:L,onChange:e=>Z(e),insetLabel:(0,s.jsx)("p",{className:eT.Z.label,children:b.o.t("db2_011")}),children:[(0,s.jsx)(v.Ph.Option,{value:"create_time",label:b.o.t("db2_012")}),(0,s.jsx)(v.Ph.Option,{value:"update_time",label:b.o.t("db2_013")})]})})]})}),ea=()=>(0,s.jsxs)("div",{className:"overflow-y-auto relative h-full",ref:I,onScroll:X,children:[null==q?void 0:q.list.map((e,t)=>(0,s.jsx)(eD,{icon:e.icon_url,title:e.table_name,description:e.table_desc,isAdd:"workflow"===h?!!(e.id&&(null==_?void 0:_.length)&&(null==_?void 0:_.includes(e.id))):!!e.is_added_to_bot,onClick:()=>et(e),onAdd:()=>$(e),onRemove:()=>ee(e)},t)),K?(0,s.jsxs)("div",{className:eT.Z["loading-more"],children:[(0,s.jsx)(ek.Z,{spin:!0,style:{marginRight:"4px"}}),(0,s.jsx)("div",{children:b.o.t("Loading")})]}):null]}),el=()=>(0,s.jsx)("div",{className:"overflow-y-auto relative w-full h-full flex justify-center items-center",children:(0,s.jsx)(v.HY,{image:(0,s.jsx)(ew.ts,{style:{width:150,height:150}})})}),es=()=>{r()},ed=e=>{es();var t,{id:i,draft_id:o}=null!==(t=e.database_info)&&void 0!==t?t:{};i&&o&&(null==u||u(i,o))};var ec=(i=(0,p._)(function*(){var e,t,i=yield y.MJ.GetIcon({format_type:ej.a5.Database});(null===(e=i.icon)||void 0===e?void 0:e.uri)&&Y((0,m._)((0,g._)({},Q),{icon_uri:null===(t=i.icon)||void 0===t?void 0:t.uri}))}),function(){return i.apply(this,arguments)});(0,d.useEffect)(()=>{o&&(J(),ec())},[o]);var{modal:eu,open:ep,close:eg}=ex({projectID:w,enterFrom:"library",onFinish:(e,t)=>{eg(),null==u||u(e,t)}}),em=()=>(0,s.jsxs)(s.Fragment,{children:[k,(0,s.jsx)(v.yC,{spinning:H,wrapperClassName:z()(["overflow-hidden",eT.Z.list]),children:(null==q?void 0:q.list.length)!==0?ea():el()}),S?(0,s.jsx)("div",{className:z()(eT.Z["bottom-shadow"],"w-full h-[80px] absolute left-0 bottom-0","pointer-events-none")}):null]});return{renderDatabase:()=>(0,s.jsxs)(d.Fragment,{children:[eu,(0,s.jsx)(P.FS,{closable:!0,visible:o,onCancel:es,header:b.o.t("db2_025"),filter:en(),sider:(0,s.jsxs)(P.yh,{className:"!pt-[16px]",children:[(0,s.jsxs)(P.yh.Header,{className:"mb-[16px] gap-[12px]",children:[er(),(0,s.jsx)(v.Lt,{trigger:"custom",visible:D,render:(0,s.jsxs)(v.Lt.Menu,{className:"w-[196px]",children:[(0,s.jsx)(v.Lt.Item,{className:"!pl-[8px]",onClick:()=>{A(!1),ep()},children:b.o.t("db2_015")}),(0,s.jsx)(v.Lt.Item,{className:"!pl-[8px] [&_.coz-item-text]:w-full",onClick:()=>{A(!1),ei("template")},children:(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("span",{children:b.o.t("db2_016")}),(0,s.jsx)(v.J2,{style:{maxWidth:"460px",backgroundColor:"var(--Bg-COZ-bg-max, #363D4D)",boxShadow:"0 4px 12px 0 rgba(0, 0, 0, 8%), 0 8px 24px 0 rgba(0, 0, 0, 4%)"},trigger:"hover",content:eo(),zIndex:9999,showArrow:!0,children:(0,s.jsx)(v.Vp,{color:"primary",size:"small",className:"ml-[8px]",children:b.o.t("db2_017")})})]})})]}),onClickOutSide:()=>{A(!1)},children:(0,s.jsx)(v.zx,{color:"brand",iconPosition:"right",icon:(0,s.jsx)(F.Wdl,{}),onClick:()=>A(!0),children:b.o.t("db_add_table_title")})})]}),(0,s.jsxs)(P.yh.Content,{className:"flex flex-col gap-[4px]",children:[(0,s.jsx)(eN,{label:b.o.t("project_resource_modal_library_resources",{resource:b.o.t("resource_type_database")}),onClick:()=>{T("library")},selected:"library"===N}),w?(0,s.jsx)(eN,{label:b.o.t("project_resource_modal_project_resources",{resource:b.o.t("resource_type_database")}),onClick:()=>{T("project")},selected:"project"===N}):null]})]}),content:(0,s.jsx)(P.vy,{className:"relative px-[12px] gap-[16px]",children:em()})}),(0,s.jsx)(eb,{visible:V,onClose:()=>W(!1),onReturn:()=>W(!1),onSubmit:ed,showDatabaseBaseInfo:!0,onlyShowDatabaseInfoRWMode:!1,initValue:Q,extraParams:{botId:f,spaceId:x,creatorId:null==M?void 0:M.user_id_str}})]}),renderContent:em,renderInput:er,renderFilter:en}},eS=e=>{var{renderDatabase:t}=eA(e);return(0,s.jsx)(s.Fragment,{children:t()})},eE=i("157728"),eC=i("997516");var eO=((a={}).Structure="structure",a.Draft="draft",a.Online="online",a),eL=()=>(0,s.jsx)(s.Fragment,{});(0,v.Q2)(eL,{valueKey:"value",onKeyChangeFnName:"onChange"});var eZ=()=>(0,s.jsx)(s.Fragment,{}),eP=i("40009"),eF=i("955751");function eB(e){var{loading:t,fieldList:i}=e,o=[{title:(0,s.jsx)(eo,{field:b.o.t("db_add_table_field_name"),tip:(0,s.jsxs)("article",{className:"w-[494px]",children:[(0,s.jsx)("p",{className:"mb-[8px]",children:b.o.t("db_add_table_field_name_tips")}),(0,s.jsx)(v.Ee,{preview:!1,width:494,height:163,src:eP})]})}),dataIndex:"name",width:261},{title:(0,s.jsx)(eo,{field:b.o.t("db_add_table_field_desc"),tip:(0,s.jsx)("article",{className:"w-[327px]",children:b.o.t("db_add_table_field_desc_tips")})}),dataIndex:"desc"},{title:(0,s.jsx)(eo,{field:b.o.t("db_add_table_field_type"),tip:(0,s.jsx)("article",{className:"w-[327px]",children:b.o.t("db_add_table_field_type_tips")})}),dataIndex:"type",width:214,render:(e,t)=>{var i,o;return null!==(o=null===(i=K.find(e=>e.value===t.type))||void 0===i?void 0:i.label)&&void 0!==o?o:t.type}},{title:(0,s.jsx)(eo,{field:b.o.t("db_add_table_field_necessary"),tip:(0,s.jsxs)("article",{className:"w-[327px]",children:[(0,s.jsx)("p",{children:b.o.t("db_add_table_field_necessary_tips1")}),(0,s.jsx)("p",{children:b.o.t("db_add_table_field_necessary_tips2")})]})}),dataIndex:"must_required",width:108,render:(e,t)=>b.o.t(t.must_required?"db_optimize_037":"db_optimize_038")}],r=et.concat(i),[n,a]=(0,d.useState)(0),l=(0,d.useRef)(null);return(0,d.useEffect)(()=>{var e=new ResizeObserver(e=>{for(var t of e)t.target===l.current&&a(t.contentRect.height)});return l.current&&e.observe(l.current),()=>e.disconnect()},[]),(0,s.jsx)("div",{className:"h-full mt-[8px]",ref:l,children:(0,s.jsx)(v.iA,{tableProps:{loading:t,columns:o,dataSource:r,scroll:{y:n>40?n-40:"auto"}},className:eF.Z["table-structure-wrapper"]})})}var eR=i("735114"),eU=i("479886"),eQ=i.n(eU),eY=BigInt("9223372036854775807"),eV=BigInt("-9223372036854775808"),eW=e=>{if(""===e||null==e||Number.isNaN(e))return!1;try{var t=BigInt(e);if(t>eY||t<eV)return!1;return!0}catch(e){return!1}},eG={0x9896f2:"10000120",0x9896f3:"10000121"};function eH(){var e,t,{includeMigrated:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{space_id:o}=(0,eE.useParams)(),[r]=(0,eE.useSearchParams)(),n=null!==(e=null!=o?o:r.get("space_id"))&&void 0!==e?e:"",{data:a}=(0,eR.Z)((0,p._)(function*(){var e=(yield y.v6.GetConnectorName({SpaceId:n,Version:"inhouse",ListAll:!0})).ConnectorList;return null==e?void 0:e.map(t=>{var i,o,r,n=null!==(o=null===(i=t.ConnectorID)||void 0===i?void 0:i.toString())&&void 0!==o?o:"";if(eG[n]){var a=e.find(e=>{var t;return(null===(t=e.ConnectorID)||void 0===t?void 0:t.toString())===eG[n]});if(null==a?void 0:a.ConnectorName)return{label:a.ConnectorName,value:n,migrated:!0}}return{label:null!==(r=t.ConnectorName)&&void 0!==r?r:"",value:n}})}),{refreshDeps:[n],cacheKey:"db_connector_name_".concat(n)});return null!==(t=i?a:null==a?void 0:a.filter(e=>!e.migrated))&&void 0!==t?t:[]}var eq=(0,v.Q2)(v.Kx),eK=(0,v.Q2)(v.k7),eJ=(0,v.Q2)(e=>(0,s.jsx)(v.Mt,(0,m._)((0,g._)({},e),{type:"dateTime",format:"yyyy-MM-dd HH:mm:ss",onChange:t=>{var i;return null===(i=e.onChange)||void 0===i?void 0:i.call(e,eQ()(t).format("YYYY-MM-DD HH:mm:ss"))}}))),eX=(0,v.Q2)(v.Ph);function e$(e){return Object.fromEntries(Object.values(e).map(e=>{var t,i;return[e.fieldName,null!==(i=null===(t=e.value)||void 0===t?void 0:t.toString())&&void 0!==i?i:""]}))}function e0(e){var{visible:t,fields:i,tableType:o,initialValues:r,onSubmit:n,onCancel:a}=e,l="object"!=typeof r,[c,u]=(0,d.useState)(!1),h=(0,d.useRef)(null);(0,d.useEffect)(()=>{if(t&&r){var e,i;null===(i=h.current)||void 0===i||null===(e=i.formApi)||void 0===e||e.setValues(e$(r))}},[t,r]);var f=eH();return(0,s.jsx)(v.u_,{visible:t,title:b.o.t(l?"db_optimize_022":"db_optimize_023"),okText:b.o.t(l?"db_optimize_025":"db_edit_save"),okButtonProps:{loading:c},onOk:(0,p._)(function*(){u(!0);try{var e,t,i,o,a=yield null===(i=h.current)||void 0===i?void 0:null===(t=i.formApi)||void 0===t?void 0:t.validate();if(a){;yield n(Object.assign(r?e$(r):{},(e=a,Object.fromEntries(Object.entries(e).map(e=>{var t,[i,o]=e;return[i,null!==(t=null==o?void 0:o.toString())&&void 0!==t?t:""]})))),null==r?void 0:null===(o=r.bstudio_connector_id)||void 0===o?void 0:o.value)}}finally{u(!1)}}),cancelText:b.o.t("db_optimize_024"),onCancel:()=>{var e,t;a(),null===(t=h.current)||void 0===t||null===(e=t.formApi)||void 0===e||e.reset()},children:(0,s.jsxs)(v.l0,{allowEmpty:!0,ref:h,children:[o===R.Nd.OnlineTable?(0,s.jsx)(eX,(0,m._)((0,g._)({},function(e){var t,i;return{key:e.name,field:null!==(i=ei[null!==(t=e.name)&&void 0!==t?t:""])&&void 0!==i?i:"",label:(0,s.jsx)(eo,{field:e.name,textType:"primary",type:e.type,tip:e.desc,required:!0})}}(ee)),{optionList:f,className:"w-full"})):null,i.map(e=>{var t=function(e){return{key:e.fieldName,field:e.fieldName,rules:[{required:e.required}],label:{text:(0,s.jsx)(eo,{field:e.fieldName,textType:"primary",type:e.type,tip:e.fieldDescription,required:e.required}),required:!1}}}(e);switch(e.type){case q.wp.Text:return(0,s.jsx)(eq,(0,m._)((0,g._)({},t),{autosize:{minRows:1,maxRows:5}}));case q.wp.Number:return(0,s.jsx)(v.l0.Input,(0,m._)((0,g._)({},t),{className:z()("w-full","[&_.semi-input-wrapper]:coz-stroke-plus","focus-within:[&_.semi-input-wrapper]:coz-stroke-hglt","[&_.semi-input-wrapper.semi-input-wrapper-error]:coz-stroke-hglt-red"),validate:e=>{var t;return eW(null!==(t=null==e?void 0:e.toString())&&void 0!==t?t:"")?"":"invalid Integer"}}));case q.wp.Date:return(0,s.jsx)(eJ,(0,m._)((0,g._)({},t),{className:z()("w-full","[&_.semi-datepicker-input]:w-full","[&_.coz-date-picker-select]:w-full","[&[aria-invalid]_.coz-date-picker-select]:coz-stroke-hglt-red")}));case q.wp.Float:return(0,s.jsx)(eK,(0,m._)((0,g._)({},t),{className:z()("w-full","[&_.semi-input-wrapper]:coz-stroke-plus","focus-within:[&_.semi-input-wrapper]:coz-stroke-hglt","[&_.semi-input-wrapper.semi-input-wrapper-error]:coz-stroke-hglt-red"),validate:e=>Number.isNaN(e)||Math.abs(e)===1/0?"invalid Float":""}));case q.wp.Boolean:return(0,s.jsx)(eX,(0,m._)((0,g._)({},t),{optionList:[{value:"true",label:"true"},{value:"false",label:"false"}],className:"w-full"}));default:return null}})]})})}var e1=e=>"column-selection"===e.key?(0,m._)((0,g._)({},e),{resizable:!1,width:60}):e.fixed?(0,m._)((0,g._)({},e),{resizable:!1}):(0,m._)((0,g._)({},e),{width:100>Number(e.width)?100:Number(e.width)}),e2=i("537714"),e4=i("47522"),e5=i("771242");function e3(e){var t,{databaseId:i,tableType:o,unitList:r,onUnitListChange:n}=e;(0,d.useEffect)(()=>{n(r)},[n,r]);var a=(t=(0,p._)(function*(){var e=yield y.v6.GetDatabaseTemplate({database_id:i,table_type:o});e.TosUrl&&window.open(e.TosUrl,"_blank")}),function(){return t.apply(this,arguments)});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(e5.p,{unitList:r,setUnitList:n,onFinish:n,limit:1,multiple:!1,accept:".csv,.xlsx",maxSizeMB:20,showRetry:!1,dragMainText:b.o.t("datasets_createFileModel_step2_UploadDoc"),dragSubText:b.o.t("datasets_unit_update_exception_tips3"),action:"",className:z()("[&_.semi-upload-drag-area]:!h-[290px]",{hidden:r.length>0}),showIllustration:!1}),(0,s.jsxs)(v.ZT.Paragraph,{type:"secondary",className:z()("mt-[8px]",{hidden:r.length>0}),children:[b.o.t("db_optimize_018"),(0,s.jsx)(v.ZT.Text,{link:!0,className:"ml-[8px]",onClick:a,children:b.o.t("db_optimize_019")})]}),(0,s.jsx)(e5.nC,{edit:!1,type:e2.Cm.TABLE_DOC,unitList:r,onChange:n,disableRetry:!0,getColumns:(e,t)=>({actions:[(0,s.jsx)(e4.Zq,{record:e,index:t,params:{unitList:r,onChange:n,type:e2.Cm.TABLE_DOC,edit:!1}})]})})]})}var e6=i("561119"),e8=i("298203"),e9={[e6.N.Processing]:"datasets_createFileModel_step4_processing",[e6.N.Complete]:"datasets_createFileModel_step4_Finish",[e6.N.Failed]:"datasets_createFileModel_step4_failed"};function e7(e){var{databaseId:t,tableType:i,fileItem:o,tableSheet:r,connectorId:n}=e,a=(0,d.useMemo)(()=>{var e,t;return(0,e8.td)(null!==(t=null===(e=o.fileInstance)||void 0===e?void 0:e.size)&&void 0!==t?t:0)},[o]),[l,c]=(0,d.useState)({mainText:o.name,subText:a,tipText:a,percent:10,status:e6.N.Processing}),{run:u,cancel:p}=(0,eR.Z)(()=>y.v6.DatabaseFileProgressData({database_id:t,table_type:i}),{manual:!0,pollingInterval:3e3,onSuccess:e=>{var{data:t}=e;if(t){if(t.status_descript){var i=t.status_descript;c(e=>(0,m._)((0,g._)({},e),{subText:i,tipText:i,status:e6.N.Failed})),p()}else c(e=>{var i;return(0,m._)((0,g._)({},e),{percent:null!==(i=t.progress)&&void 0!==i?i:0})}),100===t.progress&&(c(e=>(0,m._)((0,g._)({},e),{status:e6.N.Complete,actions:[b.o.t("datasets_unit_process_success")]})),p())}}});return(0,d.useEffect)(()=>{y.v6.SubmitDatabaseInsertTask({database_id:t,table_type:i,file_uri:o.uri,table_sheet:r,connector_id:n}).finally(()=>{u()})},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"h-[32px] leading-[32px] mb-[8px]",children:(0,s.jsx)(v.ZT.Text,{fontSize:"14px",weight:500,children:b.o.t(e9[l.status])})}),(0,s.jsx)(e5.vS,(0,m._)((0,g._)({avatar:(0,s.jsx)(F.$lV,{})},l),{className:"[&_.process-progress-item-actions]:!block"}))]})}var te=i("392902"),tt=i("672958"),ti=i("594022"),to=i("532267");function tr(e){var t,i,o,r,{databaseId:n,tableFields:a,fileUri:l,tableSheet:c}=e,[u,p]=(0,d.useState)(),g=(0,d.useMemo)(()=>a.map((e,t)=>({column_name:e.fieldName,column_type:function(e){switch(e){case to.wp.Text:return ti.QD.Text;case to.wp.Number:return ti.QD.Number;case to.wp.Date:return ti.QD.Date;case to.wp.Float:return ti.QD.Float;case to.wp.Boolean:return ti.QD.Boolean;default:return ti.QD.Text}}(e.type),desc:e.fieldDescription,sequence:"".concat(t),is_semantic:!1,id:"".concat(t)})),[a]),{loading:m}=(0,eR.Z)(()=>y.v6.GetTableSchema({database_id:n,source_file:{tos_uri:l},table_data_type:tt.n.OnlyPreview,table_sheet:c}),{onSuccess:e=>{var t,i=null==c?void 0:c.sheet_id;i&&p({sheet_list:e.sheet_list,table_meta:{[i]:g},preview_data:{[i]:null!==(t=e.preview_data)&&void 0!==t?t:[]}})}});return!m&&u&&c?(0,s.jsx)(te.IO,{data:u,settings:{sheet_id:Number.parseInt(null!==(i=null==(t=c)?void 0:t.sheet_id)&&void 0!==i?i:"0"),header_line_idx:Number.parseInt(null!==(o=null==t?void 0:t.header_line_idx)&&void 0!==o?o:"0"),start_line_idx:Number.parseInt(null!==(r=null==t?void 0:t.start_line_idx)&&void 0!==r?r:"0")}}):(0,s.jsx)(v.yC,{size:"large",wrapperClassName:"w-full h-[288px]"})}function tn(e){var t,i,o,r,n,a;return{sheet_id:null!==(r=null==e?void 0:null===(t=e.sheet_id)||void 0===t?void 0:t.toString())&&void 0!==r?r:"",header_line_idx:null!==(n=null==e?void 0:null===(i=e.header_line_idx)||void 0===i?void 0:i.toString())&&void 0!==n?n:"",start_line_idx:null!==(a=null==e?void 0:null===(o=e.start_line_idx)||void 0===o?void 0:o.toString())&&void 0!==a?a:""}}function ta(e){var{databaseId:t,tableType:i,tableFields:o,fileUri:r,onTableSheetChange:n}=e,[a,l]=(0,d.useState)(),[c,u]=(0,d.useState)({sheet_id:0,header_line_idx:0,start_line_idx:1}),[p,g]=(0,d.useState)([]),{loading:m}=(0,eR.Z)(()=>y.v6.GetTableSchema({database_id:t,source_file:{tos_uri:r},table_data_type:tt.n.OnlySchema,table_sheet:tn(c)}),{refreshDeps:[r,c],onSuccess:e=>{l({sheet_list:e.sheet_list,preview_data:{}}),e.table_meta&&g(e.table_meta.map(e=>{var t,i,r=o.find(t=>t.fieldName===e.column_name);return null!=r?r:{fieldName:null!==(t=e.column_name)&&void 0!==t?t:"-",fieldDescription:null!==(i=e.desc)&&void 0!==i?i:"-",type:function(e){switch(e){case x.QD.Text:return q.wp.Text;case x.QD.Number:return q.wp.Number;case x.QD.Date:return q.wp.Date;case x.QD.Float:return q.wp.Float;case x.QD.Boolean:return q.wp.Boolean;default:return q.wp.Text}}(e.column_type),required:!1}}))}});return(0,d.useEffect)(()=>{y.v6.ValidateTableSchema({database_id:t,source_file:{tos_uri:r},table_type:i,table_sheet:tn(c)}).then(e=>{e.schema_valid_result?n():n(tn(c))}).catch(()=>{n()})},[c]),a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(te.tM,{data:a,tableSettings:c,setTableSettings:u}),(0,s.jsx)(v.iA,{tableProps:{loading:m,columns:function(){return[{title:(0,s.jsx)(eo,{field:b.o.t("db_add_table_field_name")}),render:(e,t)=>t.fieldName},{title:(0,s.jsx)(eo,{field:b.o.t("db_add_table_field_desc")}),render:(e,t)=>t.fieldDescription},{title:(0,s.jsx)(eo,{field:b.o.t("db_add_table_field_type")}),render:(e,t)=>{var i,o;return null!==(o=null===(i=K.find(e=>e.value===t.type))||void 0===i?void 0:i.label)&&void 0!==o?o:"-"}}]}(),dataSource:p},className:z()("[&_.semi-table-row-head]:!border-b-[1px]","[&_.semi-table-row-cell]:!h-[56px]","[&_.semi-table-row-cell]:!border-b-0","[&_.semi-table-row-cell]:!bg-none","[&_.semi-table-row-cell]:!bg-transparent")})]}):(0,s.jsx)(v.yC,{size:"large",wrapperClassName:"w-full h-[288px]"})}var tl=((l={})[l.Upload=0]="Upload",l[l.Config=1]="Config",l[l.Preview=2]="Preview",l[l.Process=3]="Process",l);function ts(e){var{step:t}=e;return(0,s.jsxs)(v.Rg,{type:"basic",hasLine:!1,current:t,className:z()("my-[24px] justify-center","[&_.semi-steps-item]:flex-none","[&_.semi-steps-item-title]:!max-w-[unset]"),children:[(0,s.jsx)(v.Rg.Step,{title:b.o.t("db_optimize_014")}),(0,s.jsx)(v.Rg.Step,{title:b.o.t("db_optimize_015")}),(0,s.jsx)(v.Rg.Step,{title:b.o.t("db_optimize_016")}),(0,s.jsx)(v.Rg.Step,{title:b.o.t("db_optimize_017")})]})}function td(e){var{visible:t,databaseId:i,tableFields:o,tableType:r,connectorId:n,onClose:a,onComplete:l}=e,[c,u]=(0,d.useState)(tl.Upload),[p,g]=(0,d.useState)([]),[m,h]=(0,d.useState)(),f=()=>{u(tl.Upload),g([]),h(void 0)};return(0,s.jsxs)(v.u_,{visible:t,title:b.o.t("db_optimize_013"),onCancel:a,width:1120,className:"[&_.semi-modal-content]:min-h-[520px]",footer:(0,s.jsx)(s.Fragment,{children:c!==tl.Process?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.zx,{color:"primary",disabled:c===tl.Upload,onClick:()=>u(c-1),children:b.o.t("db_optimize_020")}),(0,s.jsx)(v.zx,{disabled:(()=>{switch(c){case tl.Upload:return p.length<=0||p.some(e=>e.status!==e2.Dm.SUCCESS);case tl.Config:return!m;case tl.Preview:case tl.Process:default:return!1}})(),onClick:()=>u(c+1),children:b.o.t("db_optimize_021")})]}):(0,s.jsx)(v.zx,{onClick:()=>{null==a||a(),null==l||l(),f()},children:b.o.t("db2_004")})}),children:[(0,s.jsx)(ts,{step:c}),c===tl.Upload?(0,s.jsx)(e3,{databaseId:i,tableType:r,unitList:p,onUnitListChange:g}):null,c===tl.Config?(0,s.jsx)(ta,{databaseId:i,tableFields:o,tableType:r,fileUri:p[0].uri,onTableSheetChange:h}):null,c===tl.Preview?(0,s.jsx)(tr,{databaseId:i,tableFields:o,fileUri:p[0].uri,tableSheet:m}):null,c===tl.Process?(0,s.jsx)(e7,{databaseId:i,tableType:r,fileItem:p[0],tableSheet:m,connectorId:n}):null]})}function tc(e){var{readonly:t,databaseId:i,tableType:o,tableFields:r,onNewRow:n,onRefresh:a}=e,[l,c]=(0,d.useState)(!1),[u,g]=(0,d.useState)(!1),[m,h]=(0,d.useState)(),f=eH(),x=e=>{c(!1),g(!0),h(e)};return(0,s.jsxs)("div",{className:"flex gap-[8px] mt-[8px] mb-[12px]",children:[(0,s.jsx)(v.zx,{color:"secondary",icon:(0,s.jsx)(N.PwN,{className:t?"":"coz-fg-hglt"}),disabled:t,onClick:n,children:(0,s.jsx)("span",{className:t?"":"coz-fg-hglt",children:b.o.t("db_optimize_022")})}),o===R.Nd.DraftTable?(0,s.jsx)(v.zx,{color:"secondary",icon:(0,s.jsx)(N.nBN,{}),disabled:t,onClick:()=>x(),children:b.o.t("db_optimize_013")}):(0,s.jsx)(v.Lt,{trigger:"custom",visible:l,onClickOutSide:()=>c(!1),position:"bottomLeft",render:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.Lt.Title,{className:"pl-[32px] border-0 border-b border-solid coz-stroke-primary",children:b.o.t("database_optimize_100")}),(0,s.jsx)("div",{className:"min-w-[170px] max-h-[220px] overflow-auto",children:(0,s.jsx)(v.Lt.Menu,{children:f.map(e=>(0,s.jsx)(v.Lt.Item,{onClick:()=>x(e.value),children:e.label},e.value))})})]}),children:(0,s.jsxs)(v.zx,{color:"secondary",icon:(0,s.jsx)(N.nBN,{}),disabled:t,onClick:()=>c(!0),children:[(0,s.jsx)("span",{children:b.o.t("db_optimize_013")}),(0,s.jsx)(N.Wdl,{className:"ml-[4px]"})]})}),(0,s.jsx)("div",{className:"ml-auto"}),o===R.Nd.DraftTable?(0,s.jsx)(v.zx,{color:"secondary",icon:(0,s.jsx)(N.dVD,{}),disabled:t,onClick:()=>v.u_.confirm({title:b.o.t("dialog_240305_01"),content:b.o.t("dialog_240305_02"),okText:b.o.t("dialog_240305_03"),okButtonColor:"red",cancelText:b.o.t("dialog_240305_04"),onOk:(0,p._)(function*(){yield y.v6.ResetBotTable({database_info_id:i,table_type:o}),a()})}),children:b.o.t("db_optimize_011")}):null,(0,s.jsx)(v.zx,{color:"secondary",icon:(0,s.jsx)(N.mxP,{}),onClick:a,children:b.o.t("db_optimize_012")}),(0,s.jsx)(td,{visible:u,databaseId:i,tableFields:r,tableType:o,connectorId:m,onClose:()=>g(!1),onComplete:a})]})}var tu={id:200,sys_platform:180,uuid:260,bstudio_create_time:200};function tp(e){var t,{value:i}=e,o=null!==(t=null==i?void 0:i.toString())&&void 0!==t?t:"";return(0,s.jsx)(v.ZT.Text,{ellipsis:{showTooltip:{opts:{className:z()("[&_.semi-tooltip-content]:max-h-[110px]","[&_.semi-tooltip-content]:line-clamp-5")}}},children:o})}var tg=e=>{var{fieldList:t,connectorNames:i,isReadonlyMode:o,handleEditRow:r,handleDeleteRow:n}=e,a=[];return a.push(...et.map(e=>{var t,o,r;return{title:()=>(0,s.jsx)(eo,{field:e.name,type:e.type,tip:e.desc,required:!0}),dataIndex:ei[null!==(t=e.name)&&void 0!==t?t:""],width:null!==(r=tu[null!==(o=e.name)&&void 0!==o?o:""])&&void 0!==r?r:260,render:e=>{var t;return"bstudio_connector_id"===e.fieldName?(0,s.jsx)(v.ZT.Text,{ellipsis:!0,children:null!==(t=i[e.value])&&void 0!==t?t:e.value}):(0,s.jsx)(tp,{value:e.value})}}})),a.push(...t.map(e=>({title:()=>(0,s.jsx)(eo,{field:e.fieldName,type:e.type,tip:e.fieldDescription,required:e.required}),dataIndex:e.fieldName,width:260,render:e=>(0,s.jsx)(tp,{value:null==e?void 0:e.value})}))),a.push({title:b.o.t("db_table_0126_021"),width:100,resize:!1,fixed:"right",render:(e,t,i)=>o?(0,s.jsxs)(v.T,{children:[(0,s.jsx)(v.hU,{disabled:!0,icon:(0,s.jsx)(N.JAz,{}),size:"small",color:"secondary"}),(0,s.jsx)(v.hU,{disabled:!0,icon:(0,s.jsx)(N.dVD,{}),size:"small",color:"secondary"})]}):(0,s.jsxs)(v.T,{children:[(0,s.jsx)(v.hU,{icon:(0,s.jsx)(N.JAz,{}),size:"default",color:"secondary",onClick:()=>r(t)}),(0,s.jsx)(v.gn,{title:b.o.t("db_optimize_026"),content:b.o.t("db_optimize_027"),okText:b.o.t("db_optimize_028"),okButtonColor:"red",cancelText:b.o.t("db_optimize_029"),onConfirm:()=>n(t),children:(0,s.jsx)(v.hU,{icon:(0,s.jsx)(N.dVD,{}),size:"default",color:"secondary"})})]})}),a};function tm(e){var{selectedCount:t=0,onDelete:i,onCancel:o}=e;return(0,s.jsxs)("div",{className:z()("flex items-center p-[8px] gap-[8px] rounded-[12px]","coz-bg-max border-solid coz-stroke-primary coz-shadow-default","fixed bottom-[8px] left-[50%] translate-x-[-50%] z-10",{hidden:t<=0}),children:[(0,s.jsx)(v.ZT.Text,{type:"secondary",children:b.o.t("db_optimize_031",{n:t})}),(0,s.jsx)(v.iz,{layout:"vertical"}),(0,s.jsx)(v.zx,{color:"red",icon:(0,s.jsx)(N.dVD,{}),onClick:i,children:b.o.t("db_optimize_030")}),(0,s.jsx)(v.iz,{layout:"vertical"}),(0,s.jsx)(v.hU,{color:"secondary",icon:(0,s.jsx)(N.rmE,{}),onClick:o})]})}var th=i("873688");function tf(e){var t,i,{databaseId:o,tableType:r,tableFields:n,isReadonlyMode:a,enterFrom:l,onAfterEditRecords:c}=e,u=(0,d.useMemo)(()=>n.map(e=>{var t,i,o,r;return{fieldName:null!==(t=e.name)&&void 0!==t?t:"",fieldDescription:null!==(i=e.desc)&&void 0!==i?i:"",required:null!==(o=e.must_required)&&void 0!==o&&o,type:null!==(r=e.type)&&void 0!==r?r:q.wp.Text}}),[n]),[m,h]=(0,d.useState)(20),[f,x]=(0,d.useState)(1),[_,w]=(0,d.useState)(0),[k,j]=(0,d.useState)([]),{loading:M,refresh:I}=(0,eR.Z)(()=>y.v6.ListDatabaseRecords({database_id:o,table_type:r,offset:(f-1)*m,limit:m}),{onSuccess:e=>{w(e.TotalNum),j(e.data)},refreshDeps:[o,r,m,f]}),N=(0,d.useMemo)(()=>{var e;return e=u,k.map(t=>{var i=Object.keys(t),o={};return i.forEach(i=>{var r=e.find(e=>e.fieldName===i);if(!r){o[i]={fieldName:i,type:q.wp.Text,required:!0,value:t[i]};return}switch(r.type){case q.wp.Boolean:o[i]={fieldName:i,value:t[i],type:q.wp.Boolean,required:r.required};break;case q.wp.Number:o[i]={fieldName:i,value:t[i],type:q.wp.Number,required:r.required};break;case q.wp.Date:o[i]={fieldName:i,value:t[i],type:q.wp.Date,required:r.required};break;case q.wp.Float:o[i]={fieldName:i,value:t[i],type:q.wp.Float,required:r.required};break;case q.wp.Text:o[i]={fieldName:i,value:t[i],type:q.wp.Text,required:r.required}}}),o})},[u,k]),T=()=>{I(),null==c||c()},D=eH({includeMigrated:!0}),A=(0,d.useMemo)(()=>Object.fromEntries(D.map(e=>[e.value,e.label])),[D]),[S,E]=(0,d.useState)([]),[C,O]=(0,d.useState)(!1),[L,Z]=(0,d.useState)(),P=e=>{Z(e),O(!0)};var F=(t=(0,p._)(function*(e,t){t?yield y.v6.UpdateDatabaseRecords({database_id:o,table_type:r,record_data_alter:[e],ori_connector_id:t}):yield y.v6.UpdateDatabaseRecords({database_id:o,table_type:r,record_data_add:[e]}),O(!1),Z(void 0),T()}),function(e,i){return t.apply(this,arguments)});var B=(i=(0,p._)(function*(e){yield y.v6.UpdateDatabaseRecords({database_id:o,table_type:r,record_data_delete:[{bstudio_id:e.bstudio_id.value}]}),T()}),function(e){return i.apply(this,arguments)}),R=(0,d.useMemo)(()=>tg({fieldList:u,isReadonlyMode:a,connectorNames:A,handleDeleteRow:B,handleEditRow:P}),[u,a,A]),[U,Q]=(0,d.useState)(0),Y=(0,d.useRef)(null);return(0,d.useEffect)(()=>{var e=new ResizeObserver(e=>{for(var t of e)t.target===Y.current&&Q(t.contentRect.height)});return Y.current&&e.observe(Y.current),()=>e.disconnect()},[]),(0,s.jsxs)("div",{className:th.Z.table,ref:Y,children:[(0,s.jsx)(tc,{readonly:a,databaseId:o,tableType:r,tableFields:u,onNewRow:()=>P(),onRefresh:I}),(0,s.jsx)(v.iA,{tableProps:{loading:M,columns:R,dataSource:N,rowSelection:{fixed:!0,selectedRowKeys:S.map(e=>{var t;return null===(t=e.bstudio_id)||void 0===t?void 0:t.value}),onChange:(e,t)=>E(null!=t?t:[])},resizable:{onResize:e1},rowKey:e=>{var t;return null==e?void 0:null===(t=e.bstudio_id)||void 0===t?void 0:t.value},scroll:{y:U>128?U-128:"auto"},pagination:{total:_,currentPage:f,pageSize:m,onChange:(e,t)=>{x(e),h(t),E([])}},renderPagination:e=>(0,s.jsxs)("div",{className:"w-full flex gap-[8px] items-center justify-end",children:[(0,s.jsx)(v.ZT.Text,{type:"secondary",fontSize:"12px",children:b.o.t("db_optimize_032",{n:_})}),(0,s.jsx)(v.iz,{layout:"vertical",className:"h-[16px]"}),(0,s.jsx)(v.U8,(0,g._)({size:"small",showSizeChanger:!0,pageSizeOpts:[20,50,100]},e))]})},wrapperClassName:z()(th.Z["table-wrapper"],{[th.Z["table-wrapper-project"]]:"project"===l}),empty:(0,s.jsx)(v.HY,{image:(0,s.jsx)(ew.ts,{className:"w-[140px] h-[140px]"}),title:b.o.t("timecapsule_0108_003")}),indexRowSelection:!0}),(0,s.jsx)(tm,{selectedCount:S.length,onDelete:()=>v.u_.confirm({title:b.o.t("db_optimize_026"),content:b.o.t("db_optimize_027"),okText:b.o.t("dialog_240305_03"),okButtonColor:"red",cancelText:b.o.t("dialog_240305_04"),onOk:(0,p._)(function*(){yield y.v6.UpdateDatabaseRecords({database_id:o,table_type:r,record_data_delete:S.map(e=>({bstudio_id:e.bstudio_id.value}))}),E([]),T()})}),onCancel:()=>E([])}),(0,s.jsx)(e0,{fields:u,visible:C,tableType:r,initialValues:L,onSubmit:F,onCancel:()=>O(!1)})]})}var tb=i("175706"),tv=e=>{var t,i,o,r,n,a,l,u,{version:h,enterFrom:f,initialTab:x,needHideCloseIcon:_=!1,addRemoveButtonText:w,onClose:j,onClickAddRemoveButton:T,onIDECallback:D,onAfterEditBasicInfo:S,onAfterEditRecords:E,databaseId:C}=e,O=null===(n=c.Z.useUserInfo())||void 0===n?void 0:n.user_id_str,[L,Z]=(0,d.useState)(!1),[P,F]=(0,d.useState)(!1),[B,U]=(0,d.useState)({}),[Q,Y]=(0,d.useState)(h?eO.Structure:null!=x?x:eO.Structure),[V,W]=(0,d.useState)(!1),[G,H]=(0,d.useState)(!0);var q=(t=(0,p._)(function*(){try{H(!0);var e,t,i,o,r=yield y.v6.GetDatabaseByID((0,g._)({id:C},h?{version:h}:{}));r.database_info?(U(r.database_info),r.database_info.table_name&&(null==D||null===(t=D.onUpdateDisplayName)||void 0===t||t.call(D,r.database_info.table_name),null==D||null===(i=D.onStatusChange)||void 0===i||i.call(D,"normal"))):null==D||null===(o=D.onStatusChange)||void 0===o||o.call(D,"error")}catch(t){null==D||null===(e=D.onStatusChange)||void 0===e||e.call(D,"error")}finally{H(!1)}}),function(){return t.apply(this,arguments)}),K=B.creator_id!==O||!!h,J=(0,d.useMemo)(()=>({tableId:B.id||"",name:B.table_name||"",desc:B.table_desc||"",icon_uri:B.icon_uri||"",readAndWriteMode:B.rw_mode||R.mx.LimitedReadWrite,tableMemoryList:B.field_list||[]}),[B]),X=(0,d.useMemo)(()=>({name:B.table_name||"",description:B.table_desc||"",icon_uri:[{url:B.icon_url||"",uri:B.icon_uri||"",uid:B.icon_uri||"",isDefault:!0}]}),[B]);var $=(i=(0,p._)(function*(e){var t,i=yield y.v6.UpdateDatabase((0,g._)({},(0,eC.Z)(B,["id","icon_uri","table_name","table_desc","field_list","rw_mode","prompt_disabled","extra_info"]),e));(null==i?void 0:null===(t=i.database_info)||void 0===t?void 0:t.id)?(yield q(),S&&S(),L&&Z(!1)):v.FN.error("Update database failed")}),function(e){return i.apply(this,arguments)});var ee=(o=(0,p._)(function*(e){var t,i=yield y.v6.UpdateDatabase((0,m._)((0,g._)({},B),{rw_mode:e}));(null==i?void 0:null===(t=i.database_info)||void 0===t?void 0:t.id)&&(yield q(),S&&S())}),function(e){return o.apply(this,arguments)});var et=(r=(0,p._)(function*(){yield q(),S&&S()}),function(){return r.apply(this,arguments)});(0,d.useEffect)(()=>{q()},[]);var ei=["create","library"].includes(f);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:z()("h-full w-full max-w-[100vw] flex flex-col overflow-hidden","project"===f?"coz-bg-max rounded-b-[8px] border-solid coz-stroke-primary":"coz-bg-plus"),children:[(0,s.jsxs)("div",{className:z()("flex flex-row items-center justify-between shrink-0",ei?"h-[40px] m-[24px]":"h-[64px] px-[16px] py-[12px] border-0 border-b border-solid coz-stroke-primary"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-[8px]",children:[_?null:(0,s.jsx)(v.hU,{color:"secondary",icon:ei?(0,s.jsx)(N.$1i,{}):(0,s.jsx)(N.rmE,{}),onClick:j}),(0,s.jsx)(v.EZ,{type:"bot",color:"grey",src:null===(l=X.icon_uri)||void 0===l?void 0:null===(a=l[0])||void 0===a?void 0:a.url}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("div",{className:"flex flex-row items-center gap-[2px] leading-none",children:[(0,s.jsx)(v.ZT.Text,{weight:500,fontSize:"14px",children:X.name}),K?null:(0,s.jsx)(v.hU,{size:"mini",color:"secondary",icon:(0,s.jsx)(N.JAz,{className:"coz-fg-secondary"}),onClick:()=>Z(!0)})]}),(0,s.jsx)(v.ZT.Text,{fontSize:"12px",children:X.description})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,s.jsx)(eL,{disabled:K,value:B.rw_mode,onChange:ee}),f.includes("bot")||"workflow"===f?(0,s.jsx)(v.zx,{disabled:K,loading:V,onClick:()=>{if(T)try{W(!0),T("workflow"===f?C:null==B?void 0:B.draft_id)}finally{W(!1)}},children:w}):null]})]}),(0,s.jsx)("div",{className:z()("grow overflow-hidden",ei?"mx-[24px]":"mx-[16px]"),children:(0,s.jsxs)(v.nj,{className:tb.Z.tab,type:"text",align:"left",tabBarExtraContent:(0,s.jsxs)(v.T,{spacing:16,children:[(0,s.jsx)(eZ,{}),Q===eO.Structure?(0,s.jsx)(v.zx,{"data-testid":I.A.BotDatabaseEditTableStructureBtn,onClick:()=>F(!0),icon:(0,s.jsx)(N.JAz,{}),color:"highlight",disabled:K,children:b.o.t("db_new_0003")}):null]}),tabBarClassName:"flex flex-row items-center w-full",activeKey:Q,onChange:e=>Y(e),lazyRender:!0,children:[(0,s.jsx)(v.nj.TabPanel,{tab:b.o.t("db_new_0001"),itemKey:eO.Structure,children:(0,s.jsx)(eB,{loading:G,fieldList:null!==(u=B.field_list)&&void 0!==u?u:[]})}),(0,s.jsxs)(v.nj.TabPanel,{tab:b.o.t("db_optimize_009"),itemKey:eO.Draft,disabled:!!h,children:[(0,s.jsx)(A,{type:"info",persistentKey:"_coze_database_draft_data_warning",children:b.o.t("db_optimize_010")}),(0,s.jsx)(tf,{databaseId:C,tableType:R.Nd.DraftTable,tableFields:B.field_list||[],isReadonlyMode:!1,enterFrom:f,onAfterEditRecords:E})]}),(0,s.jsxs)(v.nj.TabPanel,{tab:b.o.t("db_new_0002"),itemKey:eO.Online,disabled:!!h,children:[(0,s.jsx)(A,{type:"info",persistentKey:"_coze_database_online_data_warning",children:b.o.t("database_optimize_200")}),(0,s.jsx)(tf,{databaseId:C,tableType:R.Nd.OnlineTable,tableFields:B.field_list||[],isReadonlyMode:K,enterFrom:f,onAfterEditRecords:E})]})]})})]}),(0,s.jsx)(M,{visible:L,onSubmit:e=>{var t,i;return $({table_name:e.name,icon_uri:null===(i=e.icon_uri)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.uri,table_desc:e.description})},initValues:X,mode:k.EDIT,onClose:()=>Z(!1)}),(0,s.jsx)(eb,{visible:P,initValue:J,onSubmit:et,showDatabaseBaseInfo:!1,onlyShowDatabaseInfoRWMode:!0,onReturn:()=>F(!1),onClose:()=>F(!1)})]})},tx=e=>{var t,i,{version:o,botId:r,spaceId:n,databaseId:a,enterFrom:l,needHideCloseIcon:c,initialTab:g}=e,{onStatusChange:m,onUpdateDisplayName:h}=(0,u.kJ)(),f=(0,eE.useNavigate)(),[x,_]=(0,d.useState)("bot_add"===l?"Add":"Remove");var w=(t=(0,p._)(function*(e){var t=yield y.v6.BindDatabase({database_id:e,bot_id:r});0===t.code?(v.FN.success("Add database success"),_("Remove")):v.FN.error(t.msg)}),function(e){return t.apply(this,arguments)});var k=(i=(0,p._)(function*(e){var t=yield y.v6.UnBindDatabase({database_id:e,bot_id:r});0===t.code?(v.FN.success("Remove database success"),_("Add")):v.FN.error(t.msg)}),function(e){return i.apply(this,arguments)}),j=(0,d.useMemo)(()=>"Add"===x?b.o.t("db2_030"):"Remove"===x?b.o.t("db2_031"):"",[x]);return(0,s.jsx)(tv,{version:o,enterFrom:l,databaseId:a,initialTab:g,addRemoveButtonText:j,onIDECallback:{onStatusChange:m,onUpdateDisplayName:h},onClickAddRemoveButton:e=>{if(!!e)if("Add"===x)w(e);else{if("Remove"!==x)return;k(e)}},needHideCloseIcon:c,onClose:()=>{1===window.history.length&&f("/space/".concat(n,"/library")),f(-1)}})},t_=e=>{var{version:t,needHideCloseIcon:i,initialTab:o}=e,r=(0,u.kF)(),{botID:n,tableID:a,biz:l}=r,d=(0,ev.rY)(e=>e.getSpaceId());return a?(0,s.jsx)(tx,{version:t,botId:null!=n?n:"",databaseId:a,needHideCloseIcon:i,enterFrom:null!=l?l:"",spaceId:null!=d?d:"",initialTab:null!=o?o:r.initialTab}):(0,s.jsx)("div",{children:"no database id!"})}},13194:function(e,t,i){i.d(t,{C:function(){return b}});var o=i(808549),r=i(120454),n=i(473980),a=i(151064),l=i(322512),s=i(252237),d=i.n(s),c=i(336205),u=i(775699),p=i(178385),g=i(573049),m={1:"File",2:"Image",3:"Doc",4:"Code",5:"PPT",6:"Txt",7:"Excel",8:"Audio",9:"Zip",10:"Video",11:"Svg"},h=e=>{var{type:t,format:i}=e,{assist_type:o}=e,r=t;return"string"===t&&i===p.vG.ImageUrl?r="image":"string"===t&&o&&(r=m[o]),r},f=e=>{var{parameter:t}=e,{name:i,desc:o,required:r}=t;return(0,a.jsxs)("div",{className:g.Z["parameter-item"],children:[(0,a.jsxs)(u.T,{className:g.Z["parameter-text"],wrap:!0,children:[(0,a.jsx)("span",{className:g.Z["parameter-name"],children:i}),(0,a.jsx)("span",{className:g.Z["parameter-type"],children:h(t)}),r?(0,a.jsx)("span",{className:g.Z["parameter-required"],children:c.o.t("tool_para_required")}):null]}),(0,a.jsx)("div",{className:g.Z["parameter-desc"],children:o})]})},b=e=>{var t,{children:i,pluginApi:s,callback:c,onVisibleChange:p}=e,m=(0,n._)(e,["children","pluginApi","callback","onVisibleChange"]);return(0,a.jsx)(u.J2,(0,r._)((0,o._)({trigger:(null==m?void 0:m.trigger)||"hover",position:"right",showArrow:!0,onVisibleChange:p,content:(0,a.jsxs)("div",{className:d()("max-h-[400px] overflow-x-hidden overflow-y-auto",g.Z["popover-content"]),onClick:e=>{null==c||c(e)},children:[s.name?(0,a.jsx)("div",{className:g.Z["popover-api-name"],children:s.name}):null,s.desc?(0,a.jsx)("div",{className:g.Z["popover-api-desc"],children:s.desc}):null,null===(t=(0,l.Z)(s.parameters||[],e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.length}))||void 0===t?void 0:t.map(e=>e?(0,a.jsx)(f,{parameter:e},e.name):null)]})},m),{children:(0,a.jsx)("div",{children:i})}))}},345822:function(e,t,i){i.d(t,{m:()=>E,a:()=>C});var o=i("825955"),r=i("808549"),n=i("120454"),a=i("151064"),l=i("455069"),s=i("947578"),d=i("336205"),c=i("707107"),u=i("214942"),p=i("775699"),g=i("178385"),m=i("382534"),h=i("583193"),f=i("177625"),b=i("407821"),v=i.n(b),x=i("472772"),_=i.n(x),y=i("395245"),w=i.n(y),k=i("297998"),j=i.n(k),M=i("646576"),I=i.n(M),N=i("606121"),T=i.n(N),z=i("565050"),D={};D.styleTagTransform=T(),D.setAttributes=j(),D.insert=w().bind(null,"head"),D.domAPI=_(),D.insertStyleElement=I(),v()(z.Z,D);var A=z.Z&&z.Z.locals?z.Z.locals:void 0,S={name:[{required:!0,message:d.o.t("please_enter_mockset_name")},{pattern:RegExp("^[\\w\\s\\u4e00-\\u9fa5]+$","u"),message:d.o.t("create_plugin_modal_nameerror_cn")}],desc:[]},E=e=>{p.O$.success(d.o.t("created_mockset_please_add_mock_data"))},C=e=>{var t,i,{visible:b,zIndex:v,disabled:x,initialInfo:_,onSuccess:y,onCancel:w,needResetPopoverContainer:k}=e,j=(0,l.useRef)(),M=!_.id,I=(0,u.rY)(e=>e.space.space_type)===g.Sn.Personal;var N=(t=(0,o._)(function*(e){var{id:t,name:i,desc:o,bindSubjectInfo:a,bizCtx:l}=e,{toolID:u,spaceID:g}=(0,h.MX)(l,a),b={environment:(0,h.zj)(),workspace_id:g||"",workspace_type:I?"personal_workspace":"team_workspace",tool_id:u||"",status:1,mock_set_id:"",auto_gen_mode:c.eM.MANUAL,mock_counts:1};try{var{id:v}=yield m.xd.SaveMockSet({name:i,description:o,mockSubject:(0,h.AX)(l,a),bizCtx:l,id:t||"0"},{__disableErrorToast:!0});null==y||y({id:v,name:i,description:o}),(0,c.Gg)(c.Kg.create_mockset_front,(0,n._)((0,r._)({},b),{status:0,mock_set_id:String(v)||""}))}catch(e){var x,{msg:_,code:w}=e,k=(0,n._)((0,r._)({},b),{status:1,error:null==e?void 0:e.msg,error_type:"unknown"});Number(w)===f.M3.REPEAT_NAME?(null===(x=j.current)||void 0===x||x.setError("name",d.o.t("name_already_taken")),(0,c.Gg)(c.Kg.create_mockset_front,(0,n._)((0,r._)({},k),{error_type:"repeat_name"}))):(p.O$.error({content:(0,s.u)(_)}),(0,c.Gg)(c.Kg.create_mockset_front,(0,n._)((0,r._)({},k),{error_type:"unknown"})))}}),function(e){return t.apply(this,arguments)});var T=(i=(0,o._)(function*(){var e;yield null===(e=j.current)||void 0===e?void 0:e.submitForm()}),function(){return i.apply(this,arguments)});return(0,a.jsx)(p.M5,{type:"action-small",zIndex:v,title:"".concat(M?d.o.t("create_mockset"):d.o.t("edit_mockset")),visible:b,getPopupContainer:k?()=>document.body:void 0,onCancel:w,okButtonProps:{onClick:T,disabled:x},children:(0,a.jsx)(p.l0,{getFormApi:e=>j.current=e,showValidateIcon:!1,initValues:M?(0,n._)((0,r._)({},_),{name:function(e){if(!!e){var t=Math.floor(90*Math.random()+10);return"".concat(e," mockset").concat(t)}}(_.name)}):_,onSubmit:e=>N(e),className:A["mockset-create-form"],children:e=>{var{formState:t}=e;return(0,a.jsxs)(a.Fragment,{children:[x?(0,a.jsx)(p.l0.Slot,{label:{text:d.o.t("mockset_name"),required:!0},children:(0,a.jsx)("div",{children:null==_?void 0:_.name})}):(0,a.jsx)(p.P6,{field:"name",label:d.o.t("mockset_name"),placeholder:d.o.t("good_mockset_name_descriptive_concise"),trigger:["blur","change"],maxCount:50,maxLength:50,rows:1,onBlur:()=>{var e,t,i;null===(i=j.current)||void 0===i||i.setValue("name",null===(t=j.current)||void 0===t?void 0:null===(e=t.getValue("name"))||void 0===e?void 0:e.trim())},rules:S.name}),x?(0,a.jsx)(p.l0.Slot,{label:{text:d.o.t("mockset_description")},children:(0,a.jsx)("div",{children:null==_?void 0:_.desc})}):(0,a.jsx)(p.P6,{field:"desc",label:{text:d.o.t("mockset_description")},trigger:["blur","change"],placeholder:d.o.t("describe_use_scenarios_of_mockset"),rows:2,maxCount:2e3,maxLength:2e3,rules:S.desc,onBlur:()=>{var e,t,i;null===(i=j.current)||void 0===i||i.setValue("desc",null===(t=j.current)||void 0===t?void 0:null===(e=t.getValue("desc"))||void 0===e?void 0:e.trim())}})]})}})})}},177625:function(e,t,i){i.d(t,{Fc:function(){return r},M3:function(){return s},Ow:function(){return n},S9:function(){return o},dz:function(){return l},fO:function(){return a}});var o=4,r=102400,n='"',a='"',l="mock",s={REPEAT_NAME:0x23c7e5fc}},939619:function(e,t,i){i.d(t,{M:function(){return a},U:function(){return n}});var o,r,n=((o={}).STRING="string",o.INTEGER="integer",o.NUMBER="number",o.OBJECT="object",o.ARRAY="array",o.BOOLEAN="boolean",o);var a=((r={}).DEFAULT="default",r.REMOVED="removed",r.ADDED="added",r)},583193:function(e,t,i){i.d(t,{AX:function(){return f},Cu:function(){return function e(t,i){var r,a;if(t.status===n.M.REMOVED)return{};switch(t.type){case n.U.ARRAY:return{[t.label]:null===(r=t.children)||void 0===r?void 0:r.reduce((t,o)=>{var r=e(o,i)[d(0)];return void 0!==r&&t.push(r),t},[])};case n.U.OBJECT:return{[t.label]:null===(a=t.children)||void 0===a?void 0:a.reduce((t,r)=>t=(0,o._)({},t,e(r,i)),{})};default:return{[t.label]:t.realValue}}}},KD:function(){return s},Ki:function(){return u},MX:function(){return h},Vv:function(){return c},Zg:function(){return function e(t,i,o){var r,a=g(null==i?void 0:i.type);if(!!i&&!!a){var{generateFn:l=p}=o||{},[s,c]=l(a),u=(null==o?void 0:o.keyPrefix)?"".concat(null==o?void 0:o.keyPrefix,"-").concat(t):t,m={label:t,realValue:s,displayValue:c,description:i.description,isRequired:(null==o?void 0:null===(r=o.required)||void 0===r?void 0:r.includes(t))||!1,type:a,status:n.M.ADDED,key:u};if(a===n.U.OBJECT){var h=[];for(var f in i.properties)if(f&&"object"==typeof i.properties[f]){var b=e(f,i.properties[f],{required:i.required,keyPrefix:u,generateFn:l});b&&h.push(b)}m.children=h}if(a===n.U.ARRAY&&"object"==typeof i.items){var v=i.items instanceof Array?i.items[0]:i.items;if("object"==typeof v){m.childrenType=g(v.type);var x=e(d(0),v,{required:i.required,keyPrefix:u,generateFn:l});x&&(m.children=[x])}}return m}}},_v:function(){return m},pB:function(){return d},zj:function(){return b}});var o=i(808549),r=i(824833),n=i(939619),a=i(177625);function l(e,t){try{return JSON.parse(e)}catch(e){return null==t?void 0:t()}}function s(e){return l(e)}function d(e){return"".concat("item_").concat(e)}var c=e=>{if(!e)return 0;var{size:t}=new Blob([e]);return t};function u(e,t){switch(e){case n.U.STRING:var i=t.getStringValue();return[i,"".concat(a.Ow).concat(i).concat(a.fO)];case n.U.BOOLEAN:var o=t.getBooleanValue();return[o,"".concat(o)];case n.U.NUMBER:case n.U.INTEGER:var r=t.getNumberValue();return[r,"".concat(r)];default:return[void 0,void 0]}}function p(e){return u(e,{getBooleanValue:()=>!1,getNumberValue:()=>0,getStringValue:()=>""})}function g(e){var t="object"==typeof e?e[0]:e;return"null"===t?void 0:t}function m(e){return JSON.stringify(e,null,a.S9)}function h(e,t){var{bizSpaceID:i,ext:o,trafficScene:n}=e||{},a=l((null==o?void 0:o.mockSubjectInfo)||"{}"),{componentID:s,parentComponentID:d}=t;switch(n){case r.zE.CozeWorkflowDebug:return{spaceID:i,toolID:null==a?void 0:a.componentID,pluginID:null==a?void 0:a.parentComponentID};case r.zE.CozeSingleAgentDebug:case r.zE.CozeMultiAgentDebug:case r.zE.CozeToolDebug:default:return{spaceID:i,toolID:s,pluginID:d}}}function f(e,t){var{ext:i,trafficScene:o}=e||{},n=l((null==i?void 0:i.mockSubjectInfo)||"{}");switch(o){case r.zE.CozeWorkflowDebug:return n;case r.zE.CozeSingleAgentDebug:case r.zE.CozeMultiAgentDebug:case r.zE.CozeToolDebug:default:return t}}function b(){return"cn-boe"}},581259:function(e,t,i){i.d(t,{cg:()=>a,VF:()=>s,_5:()=>g,HW:()=>l,jG:()=>m,Qb:()=>d,C5:()=>c,Cx:()=>u,CG:()=>p});var o,r=i("336205"),n=i("458949");r.o.t("form_mode"),r.o.t("code_mode");var a=[{label:r.o.t("create_plugin_modal_header"),value:1},{label:r.o.t("create_plugin_modal_query"),value:2}],l={header_list:[{type:"title",text:r.o.t("create_plugin_modal_header_list")},{type:"text",text:r.o.t("create_plugin_modal_header_list1")}],auth:[{type:"title",text:r.o.t("create_plugin_modal_info_all")},{type:"br"},{type:"title",text:r.o.t("create_plugin_modal_info_None1")},{type:"text",text:r.o.t("create_plugin_modal_info_None2")},{type:"br"},{type:"title",text:r.o.t("create_plugin_modal_info_Service1")},{type:"text",text:r.o.t("create_plugin_modal_info_Service2")},{type:"br"},{type:"title",text:r.o.t("create_plugin_modal_info_Oauth1")},{type:"text",text:r.o.t("create_plugin_modal_info_Oauth2")}],location:[{type:"title",text:r.o.t("plugin_location_info_all")},{type:"br"},{type:"title",text:r.o.t("plugin_location_info_query")},{type:"text",text:r.o.t("plugin_location_info_query1")},{type:"demo",text:r.o.t("plugin_location_info_query2")},{type:"br"},{type:"title",text:r.o.t("plugin_location_header")},{type:"text",text:r.o.t("plugin_location_header1")},{type:"demo",text:r.o.t("plugin_location_header2")}],service_token:[{type:"title",text:r.o.t("create_plugin_modal_Servicetoken_info1")},{type:"text",text:r.o.t("create_plugin_modal_Servicetoken_info2")}],key:[{type:"title",text:r.o.t("create_plugin_modal_Parameter_info1")},{type:"text",text:r.o.t("create_plugin_modal_Parameter_info2")}],client_id:[{type:"text",text:r.o.t("create_plugin_modal_client_id4")},{type:"demo",text:r.o.t("create_plugin_modal_client_id5")}],client_secret:[{type:"text",text:r.o.t("create_plugin_modal_client_secret4")}],client_url:[{type:"text",text:r.o.t("create_plugin_modal_client_url_info1")},{type:"demo",text:r.o.t("create_plugin_modal_client_url_info2")}],scope:[{type:"text",text:r.o.t("create_plugin_modal_scope_info1")},{type:"demo",text:r.o.t("create_plugin_modal_scope_info2")}],authorization_url:[{type:"text",text:r.o.t("create_plugin_modal_authorization_url_info1")},{type:"demo",text:r.o.t("create_plugin_modal_authorization_url_info2")}],authorization_content_type:[{type:"text",text:r.o.t("create_plugin_modal_authorization_content_type_info1")},{type:"demo",text:r.o.t("create_plugin_modal_authorization_content_type_info2")}],creation_method:[{type:"title",text:r.o.t("plugin_creation_method_hover_tip_using_existing_services_title")},{type:"text",text:r.o.t("plugin_creation_method_hover_tip_using_existing_services_desc")}],private_link_id:[{type:"title",text:r.o.t("vpc_plugin_create_plugin_1")},{type:"text",text:r.o.t("vpc_plugin_tooltips")}]},s={client_id:r.o.t("create_plugin_modal_client_id2"),client_secret:r.o.t("create_plugin_modal_client_secret2"),client_url:r.o.t("create_plugin_modal_client_url_empty"),scope:r.o.t("create_plugin_modal_scope_empty"),authorization_url:r.o.t("create_plugin_modal_authorization_url_empty"),authorization_content_type:r.o.t("create_plugin_modal_authorization_content_type_empty"),service_token:r.o.t("create_plugin_modal_Servicetoken_empty"),key:r.o.t("create_plugin_modal_Parameter_empty")},d="".concat(n.zV.PLUGIN,"-").concat(n.x9.COZE);"".concat(n.zV.PLUGIN,"-").concat(n.x9.IDE),"".concat(n.zV.LOCAL,"-").concat(n.x9.COZE);var c=()=>l.creation_method,u=[{label:"TokenExchange",value:n.qJ.TokenExchange},{label:"ClientCredential",value:n.qJ.ClientCredential}],p=new Map([[n.vw.DebugWaiting,{label:r.o.t("plugin_api_type_fail"),color:"red"}],[n.vw.DebugPassed,{label:r.o.t("plugin_api_type_pass"),color:"green"}]]),g=new Map([[n.Yz.ONLINE,{label:r.o.t("plugin_service_status_online"),color:"var(--plugin-unpublished-color)"}],[n.Yz.OFFLINE,{label:r.o.t("plugin_service_status_offline"),color:"var(--plugin-published-color)"}]]);var m=((o={}).DEFAULT="default",o.CREATE_TOOL="create_tool",o.SELECT_TOOL="select_tool",o.PUHSLISH="publish",o)},215451:function(e,t,i){i.d(t,{LZ:()=>u,th:()=>g,aZ:()=>f.aZ,D1:()=>h});var o,r=i("825955"),n=i("808549"),a=i("120454"),l=i("479910"),s=i("598208");var d=((o={})[o.Free=0]="Free",o[o.PremiumLite=10]="PremiumLite",o[o.Premium=15]="Premium",o[o.PremiumPlus=20]="PremiumPlus",o[o.V1ProInstance=100]="V1ProInstance",o[o.ProPersonal=110]="ProPersonal",o[o.Team=120]="Team",o[o.Enterprise=130]="Enterprise",o),c={polling:!1,plans:[],subs:{},currentPlan:{},hasTrial:!1,connections:[],benefit:{user_basic_info:{user_level:d.Free}},plansCN:[],volcanoInfo:{}},u=(0,s.Ue)()((0,l.mW)((e,t)=>(0,a._)((0,n._)({},c),{reset:()=>{console.log("unImplement usePremiumStore reset ")},setPolling:e=>{console.log("unImplement usePremiumStore setPolling ")},fetchPremiumPlans:(0,r._)(function*(){var{plans:e,subs:i,hasTrial:o}=t();return yield 0,{plans:e,subs:i,hasTrial:o}}),setPremiumPlansCN:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e({plansCN:t})},fetchPremiumPlan:(0,r._)(function*(){return yield 0,t().currentPlan}),cancelCurrentPlan:()=>{console.log("unImplement usePremiumStore cancelCurrentPlan ")},renewCurrentPlan:e=>{console.log("unImplement usePremiumStore renewCurrentPlan ")},fetchConnections:(0,r._)(function*(){yield 0,console.log("unImplement usePremiumStore fetchConnections ")}),disconnectUser:e=>{console.log("unImplement usePremiumStore disconnectUser ")},setUserBenefit:e=>{console.log("unImplement usePremiumStore setUserBenefit ")},setVolcanoInfo:e=>{console.log("unImplement usePremiumStore setVolcanoInfo ")}}),{enabled:!1,name:"botStudio.premiumStore"})),p={name:"",level:d.Free,compareLevel:d.Free,currPlan:{},nextPlan:{},accountPlan:{},instanceStatus:1,isOverdue:!1,isExpired:!1,isTerminated:!1,maxMember:-1};function g(){return p}var m={isFree:!1,isPremiumPlus:!1,hasLowLevelActive:!1,hasHighLevelActive:!1,sub:{},activeSub:{}};function h(){return m}var f=i("622103")},228962:function(e,t,i){i.d(t,{ob:()=>D,pn:()=>T,A2:()=>O,Np:()=>E,RQ:()=>z,EA:()=>L,zO:()=>Z,sF:()=>A,av:()=>S});var o,r,n=i("151064"),a=i("455069"),l=i("716894"),s=i("992499"),d=i("363036"),c=i("458620"),u=i("727914"),p=i("479910"),g=i("598208"),m=()=>(0,g.Ue)()((0,p.mW)((e,t)=>({isVisible:!1,setVisible:i=>e({isVisible:"boolean"==typeof i?i:i(t().isVisible)},!1,"setVisible")}),{enabled:!1,name:"botStudio.plugin-history-panel-ui"})),h=i("825955"),f=i("808549"),b=i("120454"),v=i("61111"),x=i("336205"),_=i("775699"),y=i("382534"),w=e=>"[PluginStore.Error]: ".concat(e),k=i("458949"),j={[k.wA.Owner]:x.o.t("team_management_role_owner",{},"Owner"),[k.wA.Admin]:x.o.t("team_management_role_admin",{},"Admin"),[k.wA.Member]:x.o.t("team_management_role_member",{},"Member"),[k.wA.Default]:"-"},M=e=>{var{pluginID:t,spaceID:i,projectID:o,version:r}=e;return(0,g.Ue)()((0,p.mW)((0,p.XR)((e,n)=>({version:r,canEdit:!r,isUnlocking:!1,pluginId:t,spaceID:i,projectID:o,pluginInfo:{},initSuccessed:!1,getIsIdePlugin:()=>{var{pluginInfo:e}=n();return(null==e?void 0:e.creation_method)===k.x9.IDE},setInitSuccessed:t=>e((0,v.Uy)(e=>{e.initSuccessed=t}),!1,"setInitSuccessed"),setPluginInfo:t=>e((0,v.Uy)(e=>{e.pluginInfo=t}),!1,"setPluginInfo"),setUpdatedInfo:t=>e((0,v.Uy)(e=>{e.updatedInfo=t}),!1,"setUpdatedInfo"),initUserPluginAuth:(0,h._)(function*(){var i,{setCanEdit:a}=n(),l=yield y.Js.GetUserAuthority({project_id:o,plugin_id:t,creation_method:k.x9.COZE});if(0!==l.code)throw new u.sH(c.b.normalError,w("auth init"));e((0,v.Uy)(e=>{e.auth=l.data}),!1,"initUserPluginAuth"),a(!!(null===(i=l.data)||void 0===i?void 0:i.can_edit)&&!r)}),setCanEdit(t){e((0,v.Uy)(e=>{e.canEdit=t}),!1,"setCanEdit")},wrapWithCheckLock:e=>(0,h._)(function*(){var{checkPluginIsLockedByOthers:t}=n();if(!(yield t()))e()}),initPlugin:(0,h._)(function*(){var{pluginId:e,setPluginInfo:t}=n(),i=yield y.Js.GetPluginInfo({plugin_id:e||"",preview_version_ts:r});if((null==i?void 0:i.code)!==0)throw new u.sH(c.b.normalError,w("getPluginInfo error"));t((0,b._)((0,f._)({},i),{plugin_id:e||""}))}),initTool:(0,h._)(function*(){var{pluginId:e,setUpdatedInfo:t}=n(),i=yield y.Js.GetUpdatedAPIs({plugin_id:e||""},{__disableErrorToast:!0});if((null==i?void 0:i.code)!==0)throw new u.sH(c.b.normalError,w("getToolInfo error"));t({updated_api_names:(null==i?void 0:i.updated_api_names)||[],created_api_names:(null==i?void 0:i.created_api_names)||[]})}),init:(0,h._)(function*(){var{initPlugin:e,initTool:t,initUserPluginAuth:i,setInitSuccessed:o}=n();yield Promise.all([e(),t(),i()]),o(!0)}),checkPluginIsLockedByOthers:(0,h._)(function*(){var{pluginId:e,getIsIdePlugin:t}=n();if(t())return!1;var i=yield y.Js.CheckAndLockPluginEdit({plugin_id:e});if(0!==i.code)return!1;var{data:o}=i,r=null==o?void 0:o.user;return(null==o?!!void 0:!!o.Occupied)&&!!r&&!r.self&&(_.M5.info({okText:x.o.t("guidance_got_it"),title:x.o.t("plugin_team_edit_tip_unable_to_edit"),content:"".concat(r.name,"(").concat(j[r.space_roly_type],") ").concat(x.o.t("plugin_team_edit_tip_another_user_is_editing")),hasCancel:!1}),!0)}),unlockPlugin:(0,h._)(function*(){var{pluginId:t,canEdit:i,isUnlocking:o,getIsIdePlugin:r}=n();if(!r()&&!!i&&!o)try{e((0,v.Uy)(e=>{e.isUnlocking=!0}),!1,"unlocking-true");var a=yield y.Js.UnlockPluginEdit({plugin_id:t});if(0!==a.code)throw new u.sH(c.b.normalError,w("unlock"))}finally{e((0,v.Uy)(e=>{e.isUnlocking=!1}),!1,"unlocking-false")}}),updatePluginInfoByImmer:t=>e((0,v.Uy)(e=>{t(e.pluginInfo)}),!1,"updatePluginInfoByImmer")})),{enabled:!1,name:"botStudio.botPlugin"}))},I=(0,a.createContext)({storeRef:{plugin:void 0},callbacks:{},resourceNavigate:{},memorizedStoreSet:null}),N=(0,a.createContext)({pluginHistoryController:{current:null},registryPluginHistoryController:()=>0}),T=e=>{var t,{pluginID:i,spaceID:o,projectID:r,version:l,children:s,onUpdateDisplayName:c,onStatusChange:u,resourceNavigate:p}=e,g=(0,a.useRef)({}),h=(0,d.Z)(()=>m(),[]),f=(0,a.useRef)(null);return!(null===(t=g.current)||void 0===t?void 0:t.plugin)&&(g.current.plugin=M({pluginID:i,spaceID:o,projectID:r,version:l})),(0,n.jsx)(I.Provider,{value:{storeRef:g.current,memorizedStoreSet:{usePluginHistoryPanelUIStore:h},callbacks:{onUpdateDisplayName:c,onStatusChange:u},resourceNavigate:p},children:(0,n.jsx)(N.Provider,{value:{pluginHistoryController:f,registryPluginHistoryController:e=>{f.current=e}},children:s})})},z=e=>{var t=(0,a.useContext)(I);if(!t.storeRef.plugin)throw new u.sH(c.b.normalError,"plugin store context");return(0,l.s)(t.storeRef.plugin,e,s.X)},D=()=>{var e=(0,a.useContext)(I);if(!e.storeRef.plugin)throw new u.sH(c.b.normalError,"plugin store context");return e.storeRef.plugin},A=()=>{var{callbacks:{onStatusChange:e,onUpdateDisplayName:t}}=(0,a.useContext)(I);return{onStatusChange:e,onUpdateDisplayName:t}},S=()=>{var{resourceNavigate:e}=(0,a.useContext)(I);return e},E=()=>{var{pluginHistoryController:e}=(0,a.useContext)(N);return e},C=e=>fetch("/api/plugin_api/unlock_plugin_edit",{keepalive:!0,method:"POST",body:JSON.stringify({plugin_id:e}),headers:{"Content-Type":"application/json"}}),O=e=>{(0,a.useEffect)(()=>{var t=()=>C(e);return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}},[])};var L=(o=(0,h._)(function*(e){var t=yield y.Js.CheckAndLockPluginEdit({plugin_id:e});if(0!==t.code)return!1;var{data:i}=t,o=null==i?void 0:i.user;return(null==i?!!void 0:!!i.Occupied)&&!!o&&!o.self&&(_.M5.info({okText:x.o.t("guidance_got_it"),title:x.o.t("plugin_team_edit_tip_unable_to_edit"),content:"".concat(o.name,"(").concat(j[o.space_roly_type],") ").concat(x.o.t("plugin_team_edit_tip_another_user_is_editing")),hasCancel:!1}),!0)}),function(e){return o.apply(this,arguments)});var Z=(r=(0,h._)(function*(e){if(0!==(yield y.Js.UnlockPluginEdit({plugin_id:e})).code)throw new u.sH(c.b.normalError,w("unlock out"))}),function(e){return r.apply(this,arguments)})},708329:function(e,t,i){i.d(t,{g:function(){return r}});var o=i(151064),r=e=>{var{avatar:t,name:i,extra:r}=e;return(0,o.jsxs)("div",{className:"flex items-center gap-x-[4px] h-[16px] coz-fg-secondary text-[12px] leading-16px",children:[null,(0,o.jsx)("div",{className:"text-ellipsis whitespace-nowrap overflow-hidden",children:r})]})}},431827:function(e,t,i){i.d(t,{Ar:function(){return c},Gh:function(){return p},VY:function(){return b},Vo:function(){return h},bU:function(){return m},h4:function(){return u},kP:function(){return g},v7:function(){return f}});var o=i(808549),r=i(120454),n=i(473980),a=i(151064),l=i(455069),s=i(252237),d=i.n(s),c=(0,l.forwardRef)((e,t)=>{var{children:i}=e,l=(0,n._)(e,["children"]);return(0,a.jsx)("div",(0,r._)((0,o._)({},l),{ref:t,className:d()(l.className,"min-h-[100%]","flex flex-col gap-[16px]","overflow-hidden","px-[24px] pt-[24px]"),children:i}))}),u=(0,l.forwardRef)((e,t)=>{var{children:i}=e,l=(0,n._)(e,["children"]);return(0,a.jsx)("div",(0,r._)((0,o._)({},l),{ref:t,className:d()(l.className,"flex-shrink-0","w-full h-[32px]","flex items-center justify-between"),children:i}))}),p=(0,l.forwardRef)((e,t)=>{var{children:i}=e,l=(0,n._)(e,["children"]);return(0,a.jsx)("div",(0,r._)((0,o._)({},l),{ref:t,className:d()(l.className,"text-[20px] font-[500]","flex items-center gap-[8px]"),children:i}))}),g=(0,l.forwardRef)((e,t)=>{var{children:i}=e,l=(0,n._)(e,["children"]);return(0,a.jsx)("div",(0,r._)((0,o._)({},l),{ref:t,className:d()(l.className,"flex items-center gap-[8px] ml-[32px]"),children:i}))}),m=(0,l.forwardRef)((e,t)=>{var{children:i}=e,l=(0,n._)(e,["children"]);return(0,a.jsx)("div",(0,r._)((0,o._)({},l),{ref:t,className:d()(l.className,"flex-shrink-0","w-full h-[32px]","flex items-center justify-between"),children:i}))}),h=(0,l.forwardRef)((e,t)=>{var{children:i}=e,l=(0,n._)(e,["children"]);return(0,a.jsx)("div",(0,r._)((0,o._)({},l),{ref:t,className:d()(l.className,"flex items-center gap-[8px]"),children:i}))}),f=(0,l.forwardRef)((e,t)=>{var{children:i}=e,l=(0,n._)(e,["children"]);return(0,a.jsx)("div",(0,r._)((0,o._)({},l),{ref:t,className:d()(l.className),children:i}))}),b=(0,l.forwardRef)((e,t)=>{var{children:i}=e,l=(0,n._)(e,["children"]);return(0,a.jsx)("div",(0,r._)((0,o._)({},l),{ref:t,className:d()(l.className,"flex-grow","overflow-x-hidden overflow-y-auto"),children:i}))})},564605:function(e,t,i){i.d(t,{G:function(){return l}});var o=i(151064),r=i(336205),n=i(873183),a=i(659596),l=e=>{var{onClear:t,hasFilter:i=!1}=e;return(0,o.jsxs)("div",{className:"w-full h-full flex flex-col items-center pt-[120px]",children:[(0,o.jsx)(n.nL$,{className:"w-[48px] h-[48px] coz-fg-dim"}),(0,o.jsx)("div",{className:"text-[16px] font-[500] leading-[22px] mt-[8px] mb-[16px] coz-fg-primary",children:r.o.t(i?"library_empty_no_results_found_under":"search_not_found")}),i?(0,o.jsx)(a.zx,{color:"primary",icon:(0,o.jsx)(n.bGR,{}),onClick:()=>{null==t||t()},children:r.o.t("library_empty_clear_filters")}):null]})}},875441:function(e,t,i){i.d(t,{J:function(){return o}});var o={border:"1px solid var(--semi-color-focus-border)"}},22998:function(e,t,i){i.r(t),i.d(t,{Creator:()=>f.g,HeaderTitle:()=>b.Gh,Header:()=>b.h4,MocksetDetail:()=>l,WorkspaceEmpty:()=>v.G,highlightFilterStyle:()=>x.J,SubHeader:()=>b.bU,DatabaseDetailPage:()=>m,compareObjects:()=>h.t,Content:()=>b.VY,pluginResourceNavigate:()=>h.N,SubHeaderFilters:()=>b.Vo,Plugin:()=>r,Tool:()=>n,MocksetList:()=>s,HeaderActions:()=>b.kP,Layout:()=>b.Ar});var o=i("179164"),r=o.sp,n=o.sU,a=i("151064"),l=e=>{var{pluginID:t,spaceID:i,toolID:r,mocksetID:n}=e;return(0,a.jsx)(o.zU,{toolID:r,mocksetID:n,pluginID:t,spaceID:i})},s=e=>{var{toolID:t}=e;return(0,a.jsx)(o.DT,{toolID:t})},d=i("157728");i("455069");var c=i("517465"),u=i.n(c),p=i("22916"),g=i("299464"),m=()=>{var e=(0,d.useParams)(),t=new URLSearchParams(location.search),i=(0,d.useNavigate)(),o={botID:t.get("bot_id")||"",pageMode:t.get("page_mode")||"normal",biz:t.get("biz")||"library",workflowID:t.get("workflow_id")||"",agentID:t.get("agent_id")||"",tableID:e.table_id||"",initialTab:t.get("initial_tab")||"structure"};return(0,a.jsx)(p.S9,{params:o,resourceNavigate:{toResource:(e,t,r,n)=>i("/space/".concat(o.spaceID,"/").concat(e,"/").concat(t,"?").concat(u().stringify(r)),n)},children:(0,a.jsx)(g.it,{})})},h=i("710736"),f=i("708329"),b=i("431827"),v=i("564605"),x=i("875441")},710736:function(e,t,i){i.d(t,{N:function(){return l},t:function(){return a}});var o=i(517465),r=i.n(o),n=i(997516);function a(e,t,i){var o=(0,n.Z)(e,i),r=(0,n.Z)(t,i);return JSON.stringify(o)===JSON.stringify(r)}function l(e,t,i){return{toResource:(t,o,n,a)=>o?i("".concat(e,"/").concat(t,"/").concat(o,"?").concat(r().stringify(n)),a):"",tool:(o,n,a)=>i("".concat(e,"/plugin/").concat(t,"/tool/").concat(o,"?").concat(r().stringify(n)),a),mocksetList:(o,n,a)=>i("".concat(e,"/plugin/").concat(t,"/tool/").concat(o,"/plugin-mock-set?").concat(r().stringify(n)),a),mocksetDetail:(o,n,a,l)=>i("".concat(e,"/plugin/").concat(t,"/tool/").concat(o,"/plugin-mock-set/").concat(n,"?").concat(r().stringify(a)),l),cloudIDE:(o,n)=>i("".concat(e,"/plugin/").concat(t,"/cloud-tool?").concat(r().stringify(o)),n)}}},364676:function(e,t,i){i.d(t,{I:()=>s});var o=i("808549"),r=i("120454"),n=i("479910"),a=i("598208"),l={nodes:[],edges:[],isCreatingWorkflow:!1},s=(0,a.Ue)()((0,n.mW)(e=>(0,r._)((0,o._)({},l),{setNodes:t=>e({nodes:null!=t?t:[]}),setEdges:t=>e({edges:null!=t?t:[]}),setIsCreatingWorkflow:t=>e({isCreatingWorkflow:t})})))},719894:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(886842),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},366714:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(723956),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},196163:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(145888),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},927070:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(733922),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},172742:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(269382),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},468163:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(825778),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},170992:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(408063),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},153796:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(557048),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},398778:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(934971),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),h.Z&&h.Z.locals&&h.Z.locals},71569:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(575694),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},252793:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(200601),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},881305:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(634283),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},150838:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(981625),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},982997:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(574371),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},298188:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(212404),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},207265:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(76894),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},872457:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(890590),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},784636:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(339502),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},651242:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(489478),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},121022:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(146689),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},546410:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(122631),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),h.Z&&h.Z.locals&&h.Z.locals},261008:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(869340),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},420666:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(295652),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},918966:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(617260),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},772650:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(876504),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},565922:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(339629),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},384174:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(88634),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},105452:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(136965),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},210208:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(716998),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},151359:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(903687),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},391757:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(264622),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},928589:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(238205),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},658665:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(112425),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},606526:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(191552),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},777432:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(694898),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},125915:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(408582),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},826256:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(53785),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},175706:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(686203),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},873688:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(116954),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},955751:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(528857),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},367275:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(898720),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},573049:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(790822),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},274038:function(e,t,i){var o=i(407821),r=i.n(o),n=i(472772),a=i.n(n),l=i(395245),s=i.n(l),d=i(297998),c=i.n(d),u=i(646576),p=i.n(u),g=i(606121),m=i.n(g),h=i(542749),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p(),r()(h.Z,f),t.Z=h.Z&&h.Z.locals?h.Z.locals:void 0},743424:function(e){e.exports="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%223%22%20width%3D%2212%22%3E%3Cg%20fill%3D%22%236c6c6c%22%3E%3Ccircle%20cx%3D%221%22%20cy%3D%221%22%20r%3D%221%22%2F%3E%3Ccircle%20cx%3D%225%22%20cy%3D%221%22%20r%3D%221%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%221%22%20r%3D%221%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},260827:function(e){e.exports="data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%206%203%27%20enable-background%3D%27new%200%200%206%203%27%20height%3D%273%27%20width%3D%276%27%3E%3Cg%20fill%3D%27%231a85ff%27%3E%3Cpolygon%20points%3D%275.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0%27%2F%3E%3Cpolygon%20points%3D%274%2C0%206%2C2%206%2C0.6%205.4%2C0%27%2F%3E%3Cpolygon%20points%3D%270%2C2%201%2C3%202.4%2C3%200%2C0.6%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},516254:function(e){e.exports="data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%206%203%27%20enable-background%3D%27new%200%200%206%203%27%20height%3D%273%27%20width%3D%276%27%3E%3Cg%20fill%3D%27%23bf8803%27%3E%3Cpolygon%20points%3D%275.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0%27%2F%3E%3Cpolygon%20points%3D%274%2C0%206%2C2%206%2C0.6%205.4%2C0%27%2F%3E%3Cpolygon%20points%3D%270%2C2%201%2C3%202.4%2C3%200%2C0.6%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},424013:function(e){e.exports="data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%206%203%27%20enable-background%3D%27new%200%200%206%203%27%20height%3D%273%27%20width%3D%276%27%3E%3Cg%20fill%3D%27%23e51400%27%3E%3Cpolygon%20points%3D%275.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0%27%2F%3E%3Cpolygon%20points%3D%274%2C0%206%2C2%206%2C0.6%205.4%2C0%27%2F%3E%3Cpolygon%20points%3D%270%2C2%201%2C3%202.4%2C3%200%2C0.6%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},68344:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAAAbFBMVEUAAAA+kxJXwCFVvSBWwCBXwCBYvyBQvyBXwCFYvyBXwCFSuB5WwSBXwCE9kRL///+r35Dq9+OW2HRsyD2B0FjV78eg3IL0+/F2zEtsyDxixC+2453A56yL1Gbf89XL67mr4JBBmRRUvB9LqxqcizZ4AAAADXRSTlMAf9+Az78gEN5g73BfHkHUEQAAAXtJREFUWMPszLsRQEAABUB/g3nXA/rvUSxxm7stYLt/WMc5n4aRnmVITeklqj8pMm2BSKZJIpkiEUwWwWQRTBbBZBFMFsFkEUwWyRRwyhRwF5gCrhOmAJpi7ld1QER2iEyLWtSiFj3s1F2OhCAQBOATdMqG5kdEnfufcgt75nngcTdLoik68EXahN8B7bbz3UKw5oXI+IRqnwVT0IZNJBcAmse2hBEDoyL7gjANBSL2KjDZFVcOHTQIlX0RSjifdPDRxhhQGiFci9BNwscFbwxpQqyvQQZoD+McgFcPVhVVYUuQnAkcvUWHvKqIFdpWII5mhzIBzb/IIck4JqAYHfIgJ5Ik7xEReyAWru9QH0vup62V00AoQ/2XqzgUC75DhtITlAdg2HoZOzi/j4RS35DkCUheALSOoEwlyycmFh0iPdXsGt8hevLY/sY18g/9bNSgYWQQKznmsGAxiJkcg3iwDfowkW4OB3nDPpjmsOEasGEhxRhWZnaGEQEAhXqzlPyyOgUAAAAASUVORK5CYII="},623159:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAMAAABiM0N1AAAAbFBMVEUAAAC5KHrfWKXdVaLfWKTfWKTfUJ/fWKXgWKbfV6XfWKTYUJ/cWKXfWKW4KHn////zwN3ngrv76vTjbbD99frhYqv31ejvq9LtoczrlsfxttfpjMLld7b54O/1y+O+L3/OQ5Lrl8baUp/CNIQABM2HAAAADXRSTlMAf9+AzyAQv1/vvnBgSmwi0AAAAV9JREFUWMPszLsRQEAABUDObwxPCwz99yiWsLnbArb5h7Gb8qp09AwlX7ZWopLvSKY1EMnUSyRTJILJIpgsgskimCyCySKYLILJIpkCLpkCjg2miB2miBOmmONRLRCRGSJToxrVqEY3+3SSwjAMQwH0BOJbg4dmgt7/krU/yT7OqoX+hW0MekgJ/npoUx9bVu2rapYe100Y3qreghrK2CqSiAJVehKigzxABLg3WsEq4oCzbj/rGzvDDKSwLImthCUoIbDN1xQ0EIexblEsvCkEzWwG8ogd7344sOUIQusAFWkKkgpOwrYSlEuJMa/PQTmwcbK91gMLIUVzHDIHicH5+xi2ohLlhfUR5DDvKVgJVYTJI6ghCQcshDLQLiiN3IYMen6wPCAp8Atifu/1/6HPRg0aNQiHQezkmMOCxSBmcgziwDbow0S6OUzkDftgmsPKgB1wsJBiDBczG8OIAAC6P7F3PFnTnAAAAABJRU5ErkJggg=="},736351:function(e,t,i){e.exports=i.p+"static/image/key-example.59a92fee.png"},40009:function(e,t,i){e.exports=i.p+"static/image/key-example.59a92fee.png"},75991:function(e,t,i){e.exports=i.p+"static/image/tips-template-cn.5f0790d9.png"},951003:function(e,t,i){e.exports=i.p+"static/image/tips-template-en.07b81dd1.png"},789716:function(e,t,i){i(151064),i(455069)},915100:function(e,t,i){i(151064),i(455069)},318281:function(e,t,i){i(151064),i(455069),t.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xMTYzXzY4MzE0KSI+CiAgICAgICAgPG1hc2sgaWQ9Im1hc2swXzExNjNfNjgzMTQiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPgogICAgICAgICAgICA8cGF0aCBkPSJNMTYgMEgwVjE2SDE2VjBaIiBmaWxsPSJ3aGl0ZSIvPgogICAgICAgIDwvbWFzaz4KICAgICAgICA8ZyBtYXNrPSJ1cmwoI21hc2swXzExNjNfNjgzMTQpIj4KICAgICAgICAgICAgPHBhdGggZD0iTTAuOTQxODk1IDQuMTUwNzhDMC45NDE4OTUgMi4zNzg5NyAyLjM3ODI0IDAuOTQyNjI3IDQuMTUwMDUgMC45NDI2MjdDNS45MjE4NyAwLjk0MjYyNyA3LjM1ODIxIDIuMzc4OTcgNy4zNTgyMSA0LjE1MDc4VjYuMDc1NjhDNy4zNTgyMSA2Ljc4NDQgNi43ODM2NyA3LjM1ODk0IDYuMDc0OTQgNy4zNTg5NEg0LjE1MDA1QzIuMzc4MjQgNy4zNTg5NCAwLjk0MTg5NSA1LjkyMjYgMC45NDE4OTUgNC4xNTA3OFoiIGZpbGw9IiMxRDFDMjMiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTAuOTQxODk1IDExLjg1MDNDMC45NDE4OTUgMTAuMDc4NCAyLjM3ODI0IDguNjQyMDkgNC4xNTAwNSA4LjY0MjA5SDYuMDc0OTRDNi43ODM2NyA4LjY0MjA5IDcuMzU4MjEgOS4yMTY2MyA3LjM1ODIxIDkuOTI1MzVWMTEuODUwM0M3LjM1ODIxIDEzLjYyMjEgNS45MjE4NyAxNS4wNTg0IDQuMTUwMDUgMTUuMDU4NEMyLjM3ODI0IDE1LjA1ODQgMC45NDE4OTUgMTMuNjIyMSAwLjk0MTg5NSAxMS44NTAzWiIgZmlsbD0iIzFEMUMyMyIvPgogICAgICAgICAgICA8cGF0aCBkPSJNOS45MjQ2MiA4LjY0MjA5QzkuMjE1OSA4LjY0MjA5IDguNjQxMzYgOS4yMTY2MyA4LjY0MTM2IDkuOTI1MzVWMTEuODUwM0M4LjY0MTM2IDEzLjYyMjEgMTAuMDc3NyAxNS4wNTg0IDExLjg0OTUgMTUuMDU4NEMxMy42MjEzIDE1LjA1ODQgMTUuMDU3NyAxMy42MjIxIDE1LjA1NzcgMTEuODUwM0MxNS4wNTc3IDEwLjA3ODQgMTMuNjIxMyA4LjY0MjA5IDExLjg0OTUgOC42NDIwOUg5LjkyNDYyWiIgZmlsbD0iIzFEMUMyMyIvPgogICAgICAgICAgICA8cGF0aCBkPSJNOC42NDE2IDQuMTUwNTRDOC42NDE2IDIuMzc4NzIgMTAuMDc3OSAwLjk0MjM4MyAxMS44NDk4IDAuOTQyMzgzQzEzLjYyMTYgMC45NDIzODMgMTUuMDU3OSAyLjM3ODcyIDE1LjA1NzkgNC4xNTA1NEMxNS4wNTc5IDUuOTIyMzUgMTMuNjIxNiA3LjM1ODcgMTEuODQ5OCA3LjM1ODdIOS45MjQ4NkM5LjIxNjE0IDcuMzU4NyA4LjY0MTYgNi43ODQxNiA4LjY0MTYgNi4wNzU0M1Y0LjE1MDU0WiIgZmlsbD0iIzFEMUMyMyIvPgogICAgICAgIDwvZz4KICAgIDwvZz4KICAgIDxkZWZzPgogICAgICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTE2M182ODMxNCI+CiAgICAgICAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0id2hpdGUiLz4KICAgICAgICA8L2NsaXBQYXRoPgogICAgPC9kZWZzPgo8L3N2Zz4K"},656927:function(e,t,i){i(151064),i(455069),t.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xMTYzXzY4MTk5KSI+CiAgICAgICAgPG1hc2sgaWQ9Im1hc2swXzExNjNfNjgxOTkiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPgogICAgICAgICAgICA8cGF0aCBkPSJNMTYgMEgwVjE2SDE2VjBaIiBmaWxsPSJ3aGl0ZSIvPgogICAgICAgIDwvbWFzaz4KICAgICAgICA8ZyBtYXNrPSJ1cmwoI21hc2swXzExNjNfNjgxOTkpIj4KICAgICAgICAgICAgPHBhdGggZD0iTTAuOTQxODk1IDQuMTUwNzhDMC45NDE4OTUgMi4zNzg5NyAyLjM3ODI0IDAuOTQyNjI3IDQuMTUwMDUgMC45NDI2MjdDNS45MjE4NyAwLjk0MjYyNyA3LjM1ODIxIDIuMzc4OTcgNy4zNTgyMSA0LjE1MDc4VjYuMDc1NjhDNy4zNTgyMSA2Ljc4NDQgNi43ODM2NyA3LjM1ODk0IDYuMDc0OTQgNy4zNTg5NEg0LjE1MDA1QzIuMzc4MjQgNy4zNTg5NCAwLjk0MTg5NSA1LjkyMjYgMC45NDE4OTUgNC4xNTA3OFoiIGZpbGw9IiM0RDUzRTgiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTAuOTQxODk1IDExLjg1MDNDMC45NDE4OTUgMTAuMDc4NCAyLjM3ODI0IDguNjQyMDkgNC4xNTAwNSA4LjY0MjA5SDYuMDc0OTRDNi43ODM2NyA4LjY0MjA5IDcuMzU4MjEgOS4yMTY2MyA3LjM1ODIxIDkuOTI1MzVWMTEuODUwM0M3LjM1ODIxIDEzLjYyMjEgNS45MjE4NyAxNS4wNTg0IDQuMTUwMDUgMTUuMDU4NEMyLjM3ODI0IDE1LjA1ODQgMC45NDE4OTUgMTMuNjIyMSAwLjk0MTg5NSAxMS44NTAzWiIgZmlsbD0iIzRENTNFOCIvPgogICAgICAgICAgICA8cGF0aCBkPSJNOS45MjQ2MiA4LjY0MjA5QzkuMjE1OSA4LjY0MjA5IDguNjQxMzYgOS4yMTY2MyA4LjY0MTM2IDkuOTI1MzVWMTEuODUwM0M4LjY0MTM2IDEzLjYyMjEgMTAuMDc3NyAxNS4wNTg0IDExLjg0OTUgMTUuMDU4NEMxMy42MjEzIDE1LjA1ODQgMTUuMDU3NyAxMy42MjIxIDE1LjA1NzcgMTEuODUwM0MxNS4wNTc3IDEwLjA3ODQgMTMuNjIxMyA4LjY0MjA5IDExLjg0OTUgOC42NDIwOUg5LjkyNDYyWiIgZmlsbD0iIzRENTNFOCIvPgogICAgICAgICAgICA8cGF0aCBkPSJNOC42NDE2IDQuMTUwNTRDOC42NDE2IDIuMzc4NzIgMTAuMDc3OSAwLjk0MjM4MyAxMS44NDk4IDAuOTQyMzgzQzEzLjYyMTYgMC45NDIzODMgMTUuMDU3OSAyLjM3ODcyIDE1LjA1NzkgNC4xNTA1NEMxNS4wNTc5IDUuOTIyMzUgMTMuNjIxNiA3LjM1ODcgMTEuODQ5OCA3LjM1ODdIOS45MjQ4NkM5LjIxNjE0IDcuMzU4NyA4LjY0MTYgNi43ODQxNiA4LjY0MTYgNi4wNzU0M1Y0LjE1MDU0WiIgZmlsbD0iIzRENTNFOCIvPgogICAgICAgIDwvZz4KICAgIDwvZz4KICAgIDxkZWZzPgogICAgICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTE2M182ODE5OSI+CiAgICAgICAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0id2hpdGUiLz4KICAgICAgICA8L2NsaXBQYXRoPgogICAgPC9kZWZzPgo8L3N2Zz4K"},966171:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".tool-wrap-SVtvNo{background-color:#f7f7fa;min-height:100%;padding-bottom:20px}.tool-wrap-SVtvNo .semi-table-row-head{font-size:12px;color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8))!important}.tool-wrap-SVtvNo .semi-steps-item-title-text{font-size:14px}.tool-wrap-SVtvNo .semi-table-row.semi-table-row-expanded:last-child .semi-table-row-cell{border-bottom:1px solid transparent}.tool-wrap-SVtvNo .header-ykyZNP{border-bottom:1px solid rgba(29,28,35,.08);align-items:center;padding:16px 24px 12px;display:flex}.tool-wrap-SVtvNo .header-ykyZNP .simple-title-fUbscH{align-items:center;height:56px;display:flex}.tool-wrap-SVtvNo .header-ykyZNP .simple-title-fUbscH .title-UFFrpT{color:#1d1c23;flex:1;margin-left:12px;font-size:18px;font-weight:600;line-height:56px}.tool-wrap-SVtvNo .header-ykyZNP .preview-header-QC7twe{flex-direction:column;flex:1;display:flex}.tool-wrap-SVtvNo .header-ykyZNP .preview-header-QC7twe .simple-title-fUbscH .title-UFFrpT{margin-left:0}.tool-wrap-SVtvNo .header-ykyZNP .breadcrumb-pcXwfK{margin-bottom:24px}.tool-wrap-SVtvNo .content-yXX0wX{padding:36px 0 30px}.tool-wrap-SVtvNo .modal-steps-r3vVHh{width:1008px;margin:0 auto}.tool-wrap-SVtvNo .form-wrap-AYm8Tk{margin:42px auto 0}.tool-wrap-SVtvNo .form-wrap-AYm8Tk .semi-form-vertical .semi-form-field:last-child{padding-bottom:0}.tool-wrap-SVtvNo .tool-footer-hZxisL{text-align:right;width:calc(100% - 200px);min-width:1008px;margin:0 auto}.tool-wrap-SVtvNo .tool-footer-hZxisL.step-one-sG5K4l{max-width:1008px;margin:0 auto}.tool-wrap-SVtvNo .tool-footer-hZxisL .error-msg-jryXzt{color:#f93920;text-align:left;padding:8px 24px;font-size:14px;line-height:16px}.tool-wrap-SVtvNo .tool-footer-hZxisL .error-msg-jryXzt .link-ifngyY{color:#4d53e8;font-size:14px;font-weight:400;line-height:16px}.tool-wrap-SVtvNo .tool-footer-hZxisL .footer-content-ixqvj2{padding-top:24px}",""]),a.locals={"tool-wrap":"tool-wrap-SVtvNo",toolWrap:"tool-wrap-SVtvNo",header:"header-ykyZNP","simple-title":"simple-title-fUbscH",simpleTitle:"simple-title-fUbscH",title:"title-UFFrpT","preview-header":"preview-header-QC7twe",previewHeader:"preview-header-QC7twe",breadcrumb:"breadcrumb-pcXwfK",content:"content-yXX0wX","modal-steps":"modal-steps-r3vVHh",modalSteps:"modal-steps-r3vVHh","form-wrap":"form-wrap-AYm8Tk",formWrap:"form-wrap-AYm8Tk","tool-footer":"tool-footer-hZxisL",toolFooter:"tool-footer-hZxisL","step-one":"step-one-sG5K4l",stepOne:"step-one-sG5K4l","error-msg":"error-msg-jryXzt",errorMsg:"error-msg-jryXzt",link:"link-ifngyY","footer-content":"footer-content-ixqvj2",footerContent:"footer-content-ixqvj2"},t.Z=a},376756:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".editor-container-JPBTxq{height:100%;position:relative}.editor-VinOIJ{background-color:#fff;border:1px solid rgba(29,28,35,.12);border-radius:8px;height:100%;padding:0}.editor-VinOIJ .monaco-editor .scroll-decoration{box-shadow:unset}",""]),a.locals={"editor-container":"editor-container-JPBTxq",editorContainer:"editor-container-JPBTxq",editor:"editor-VinOIJ"},t.Z=a},886842:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".tools-content-OB0OIO .tools-table-thead-lG1cuz{padding-bottom:6px}.tools-content-OB0OIO .tools-table-thead-lG1cuz th{padding:var(--spacing-spacing-button-default-padding-top,6px)0 var(--spacing-tight,8px)0}.api-table-hDo4Ky{table-layout:fixed;border-collapse:collapse;width:100%;height:32px;color:var(--light-usage-text-color-text-2,rgba(28,31,35,.6));word-wrap:break-word;font-size:12px;font-weight:400;line-height:16px}.api-table-hDo4Ky thead th{color:var(--light-color-grey-grey-4,var(--light-color-grey-grey-4,#888d92));text-align:left;font-size:12px;font-weight:400;line-height:16px}.api-table-hDo4Ky .auto-add-api-v0eSOQ{animation:6s linear .3s flash-ZWtqgF}.api-table-hDo4Ky .auto-add-api-v0eSOQ td:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px}.api-table-hDo4Ky .auto-add-api-v0eSOQ td:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}@keyframes flash-ZWtqgF{10%{background:rgba(180,186,246,.24)}20%{background:unset}30%{background:rgba(180,186,246,.24)}40%{background:unset}50%{background:rgba(180,186,246,.24)}95%{background:rgba(180,186,246,.24)}}.api-table-hDo4Ky .api-row-vtmRng{border-bottom:1px solid transparent}.api-table-hDo4Ky .api-row-vtmRng.border-top-k5HZVG{position:relative}.api-table-hDo4Ky .api-row-vtmRng.border-top-k5HZVG td{margin-top:4px}.api-table-hDo4Ky .api-row-vtmRng td{padding:2px 4px;overflow:hidden}.api-table-hDo4Ky .api-row-name-pLvzuD{vertical-align:middle}.api-table-hDo4Ky .api-row-vtmRng .semi-tag-grey-light{background:var(--light-color-white-white,#fff);border-radius:var(--spacing-spacing-button-default-padding-top,6px);height:20px}.api-table-hDo4Ky .api-row-vtmRng .semi-tag-content{justify-content:space-between;align-items:center}.api-table-hDo4Ky .api-row-vtmRng.api-disable-Q3w9tP .api-plugin-name-sftYSV,.api-table-hDo4Ky .api-row-vtmRng.api-disable-Q3w9tP .api-name-text-v1lKgk,.api-table-hDo4Ky .api-row-vtmRng.api-disable-Q3w9tP .icon-disabled-zQuw5s{cursor:default;opacity:.2}.api-table-hDo4Ky .api-plugin-Xzc2x9{align-items:center;height:24px;padding-right:10px;display:flex}.api-table-hDo4Ky .api-plugin-image-q3MKlM{flex-shrink:0;margin-right:8px;display:flex}.api-table-hDo4Ky .api-plugin-image-q3MKlM>img{width:16px;height:16px}.api-table-hDo4Ky .api-plugin-Xzc2x9 .semi-image-status{background-color:rgba(255,255,255,0)!important}.api-table-hDo4Ky .api-plugin-name-sftYSV{color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));font-size:12px;font-weight:400;line-height:22px}.api-table-hDo4Ky .api-plugin-icon-IkNRY6{margin-left:4px}.api-table-hDo4Ky .api-method-_f0yBm{text-align:center;justify-content:space-between;width:100%;height:100%}.api-table-hDo4Ky .api-method-_f0yBm span{color:var(--light-color-grey-grey-5,#6b6b75)}.api-table-hDo4Ky .api-method-_f0yBm .icon-config-oDTfyg{cursor:pointer;color:#6b6d75}.api-table-hDo4Ky .api-method-read-U4Qzcq{justify-content:flex-end}.api-table-hDo4Ky .api-name-_z_RkX{align-items:center;padding:2px 10px 2px 0;display:flex}.api-table-hDo4Ky .api-name-text-v1lKgk{color:rgba(29,28,35,.8);margin-right:4px;font-size:12px;font-weight:400;line-height:16px}.api-table-hDo4Ky .api-name-_z_RkX .semi-tag-grey-light{background:#fff!important}.api-table-hDo4Ky .api-name-_z_RkX .api-divider-thzjVw{border-color:var(--light-color-brand-brand-2,#b3c4ff);height:12px}.api-table-hDo4Ky .api-name-_z_RkX .copy-inFmtX{cursor:copy}.api-table-hDo4Ky .api-name-_z_RkX .icon-tips-HPtj54{cursor:pointer;border-radius:4px;padding:1px}.api-table-hDo4Ky .api-name-_z_RkX .icon-tips-HPtj54>svg{width:14px;height:14px}.api-table-hDo4Ky .api-name-_z_RkX .icon-tips-HPtj54>svg>path{fill:#6b6d75}.api-table-hDo4Ky .api-name-publish-SHk4Ty{flex-shrink:0;margin-left:4px}.plugin-modal-6oD3Dc{height:100%}.plugin-modal-6oD3Dc .plugin-filter-Yw4UEO{background:#ebedf0;flex-direction:column;flex-shrink:0;width:218px;display:flex}.plugin-modal-6oD3Dc .semi-modal-content{padding:0}.plugin-modal-6oD3Dc .semi-spin-children{height:100%}.plugin-collapse-zXm41X .semi-collapse-header{padding:14px 16px;height:120px!important;margin:0!important}.plugin-collapse-zXm41X .semi-collapse-header[aria-expanded=true]{border-radius:8px 8px 0 0!important}.plugin-collapse-zXm41X .semi-collapse{padding:16px 0 12px}.plugin-collapse-zXm41X .semi-collapse-content{border-radius:0 0 8px 8px;padding:0}.default-text-J_l53k{color:var(--light-usage-text-color-text-2,rgba(28,29,35,.6));font-size:14px;font-style:normal;font-weight:400;line-height:22px}.hide-button-model-wrap-4CAPdR .ml20-GyL_g6{margin-left:20px}.hide-button-model-wrap-4CAPdR .h56-N8krlF{height:56px}.hide-button-model-wrap-4CAPdR .search-input-rLgsh2{z-index:9;background:#fff;width:100%;position:absolute;top:20px}.plugin-func-collapse-RbX2Mj .plugin-api-desc-TNPfPJ{cursor:pointer;width:200px!important}.icon-button-16-XrhRgG{cursor:pointer}.icon-button-16-XrhRgG:hover{border-radius:4px}.icon-button-16-XrhRgG .semi-button.semi-button-size-small{height:16px;padding:1px!important}.icon-button-16-XrhRgG .semi-button.semi-button-size-small svg{color:rgba(var(--coze-fg-2),var(--coze-fg-2-alpha))}.tip-text-W8fX9T{color:var(--light-usage-text-color-text-2,rgba(28,29,35,.6));font-size:14px;font-style:normal;font-weight:400;line-height:22px}",""]),a.locals={"tools-content":"tools-content-OB0OIO",toolsContent:"tools-content-OB0OIO","tools-table-thead":"tools-table-thead-lG1cuz",toolsTableThead:"tools-table-thead-lG1cuz","api-table":"api-table-hDo4Ky",apiTable:"api-table-hDo4Ky","auto-add-api":"auto-add-api-v0eSOQ",autoAddApi:"auto-add-api-v0eSOQ",flash:"flash-ZWtqgF","api-row":"api-row-vtmRng",apiRow:"api-row-vtmRng","border-top":"border-top-k5HZVG",borderTop:"border-top-k5HZVG","api-row-name":"api-row-name-pLvzuD",apiRowName:"api-row-name-pLvzuD","api-disable":"api-disable-Q3w9tP",apiDisable:"api-disable-Q3w9tP","api-plugin-name":"api-plugin-name-sftYSV",apiPluginName:"api-plugin-name-sftYSV","api-name-text":"api-name-text-v1lKgk",apiNameText:"api-name-text-v1lKgk","icon-disabled":"icon-disabled-zQuw5s",iconDisabled:"icon-disabled-zQuw5s","api-plugin":"api-plugin-Xzc2x9",apiPlugin:"api-plugin-Xzc2x9","api-plugin-image":"api-plugin-image-q3MKlM",apiPluginImage:"api-plugin-image-q3MKlM","api-plugin-icon":"api-plugin-icon-IkNRY6",apiPluginIcon:"api-plugin-icon-IkNRY6","api-method":"api-method-_f0yBm",apiMethod:"api-method-_f0yBm","icon-config":"icon-config-oDTfyg",iconConfig:"icon-config-oDTfyg","api-method-read":"api-method-read-U4Qzcq",apiMethodRead:"api-method-read-U4Qzcq","api-name":"api-name-_z_RkX",apiName:"api-name-_z_RkX","api-divider":"api-divider-thzjVw",apiDivider:"api-divider-thzjVw",copy:"copy-inFmtX","icon-tips":"icon-tips-HPtj54",iconTips:"icon-tips-HPtj54","api-name-publish":"api-name-publish-SHk4Ty",apiNamePublish:"api-name-publish-SHk4Ty","plugin-modal":"plugin-modal-6oD3Dc",pluginModal:"plugin-modal-6oD3Dc","plugin-filter":"plugin-filter-Yw4UEO",pluginFilter:"plugin-filter-Yw4UEO","plugin-collapse":"plugin-collapse-zXm41X",pluginCollapse:"plugin-collapse-zXm41X","default-text":"default-text-J_l53k",defaultText:"default-text-J_l53k","hide-button-model-wrap":"hide-button-model-wrap-4CAPdR",hideButtonModelWrap:"hide-button-model-wrap-4CAPdR",ml20:"ml20-GyL_g6",h56:"h56-N8krlF","search-input":"search-input-rLgsh2",searchInput:"search-input-rLgsh2","plugin-func-collapse":"plugin-func-collapse-RbX2Mj",pluginFuncCollapse:"plugin-func-collapse-RbX2Mj","plugin-api-desc":"plugin-api-desc-TNPfPJ",pluginApiDesc:"plugin-api-desc-TNPfPJ","icon-button-16":"icon-button-16-XrhRgG",iconButton16:"icon-button-16-XrhRgG","tip-text":"tip-text-W8fX9T",tipText:"tip-text-W8fX9T"},t.Z=a},84089:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,'.plugin-detail-info-BjPmrA{padding-bottom:12px;position:relative}.plugin-detail-info-BjPmrA:after{content:"";background-color:rgba(29,28,35,.08);width:calc(100% + 48px);height:1px;position:absolute;bottom:0;left:-24px}.plugin-detail-info-BjPmrA .plugin-detail-title-thYnZ4{max-width:300px;font-size:18px;font-weight:600;line-height:24px}.plugin-detail-info-BjPmrA .plugin-detail-published-deiPpH{color:rgba(28,29,35,.6);font-size:12px;line-height:16px}.plugin-detail-info-BjPmrA .plugin-detail-avatar-Wmdwge{border-radius:6px;width:36px;height:36px}.plugin-detail-info-BjPmrA .plugin-detail-desc-tCqHvW{color:rgba(28,29,35,.8);max-width:300px;line-height:16px}',""]),a.locals={"plugin-detail-info":"plugin-detail-info-BjPmrA",pluginDetailInfo:"plugin-detail-info-BjPmrA","plugin-detail-title":"plugin-detail-title-thYnZ4",pluginDetailTitle:"plugin-detail-title-thYnZ4","plugin-detail-published":"plugin-detail-published-deiPpH",pluginDetailPublished:"plugin-detail-published-deiPpH","plugin-detail-avatar":"plugin-detail-avatar-Wmdwge",pluginDetailAvatar:"plugin-detail-avatar-Wmdwge","plugin-detail-desc":"plugin-detail-desc-tCqHvW",pluginDetailDesc:"plugin-detail-desc-tCqHvW"},t.Z=a},523878:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".tool-wrap-mFQZuZ{background-color:#f7f7fa;min-height:100%;padding-bottom:20px}.tool-wrap-mFQZuZ .semi-table-row-head{font-size:12px;color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8))!important}.tool-wrap-mFQZuZ .semi-steps-item-title-text{font-size:14px}.tool-wrap-mFQZuZ .semi-table-row.semi-table-row-expanded:last-child .semi-table-row-cell{border-bottom:1px solid transparent}.tool-wrap-mFQZuZ .header-LkSgYi{border-bottom:1px solid rgba(29,28,35,.08);align-items:center;padding:12px 16px}.tool-wrap-mFQZuZ .header-LkSgYi .simple-title-GP82iK{align-items:center;height:32px;display:flex}.tool-wrap-mFQZuZ .header-LkSgYi .simple-title-GP82iK .title-z3P_6q{color:#1d1c23;flex:1;margin-left:12px;font-size:16px;font-weight:600;line-height:32px}.tool-wrap-mFQZuZ .header-LkSgYi .preview-header-dlLv_0{flex-direction:column;flex:1;display:flex}.tool-wrap-mFQZuZ .header-LkSgYi .preview-header-dlLv_0 .simple-title-GP82iK .title-z3P_6q{margin-left:0}.tool-wrap-mFQZuZ .header-LkSgYi .breadcrumb-LBkKoT{margin-bottom:24px}.tool-wrap-mFQZuZ .content-pqxJdN{padding:36px 0 30px}.tool-wrap-mFQZuZ .modal-steps-FUDFnm{width:1008px;margin:0 auto}.tool-wrap-mFQZuZ .form-wrap-Qc2ad_{margin:42px auto 0}.tool-wrap-mFQZuZ .form-wrap-Qc2ad_ .semi-form-vertical .semi-form-field:last-child{padding-bottom:0}.tool-wrap-mFQZuZ .tool-footer-nQuF01{text-align:right;width:calc(100% - 200px);min-width:1008px;margin:0 auto}.tool-wrap-mFQZuZ .tool-footer-nQuF01.step-one-hqF28Z{max-width:1008px;margin:0 auto}.tool-wrap-mFQZuZ .tool-footer-nQuF01 .error-msg-iwcU0F{color:#f93920;text-align:left;padding:8px 24px;font-size:14px;line-height:16px}.tool-wrap-mFQZuZ .tool-footer-nQuF01 .error-msg-iwcU0F .link-vljVkQ{color:#4d53e8;font-size:14px;font-weight:400;line-height:16px}.tool-wrap-mFQZuZ .tool-footer-nQuF01 .footer-content-pm_TUV{padding-top:24px}",""]),a.locals={"tool-wrap":"tool-wrap-mFQZuZ",toolWrap:"tool-wrap-mFQZuZ",header:"header-LkSgYi","simple-title":"simple-title-GP82iK",simpleTitle:"simple-title-GP82iK",title:"title-z3P_6q","preview-header":"preview-header-dlLv_0",previewHeader:"preview-header-dlLv_0",breadcrumb:"breadcrumb-LBkKoT",content:"content-pqxJdN","modal-steps":"modal-steps-FUDFnm",modalSteps:"modal-steps-FUDFnm","form-wrap":"form-wrap-Qc2ad_",formWrap:"form-wrap-Qc2ad_","tool-footer":"tool-footer-nQuF01",toolFooter:"tool-footer-nQuF01","step-one":"step-one-hqF28Z",stepOne:"step-one-hqF28Z","error-msg":"error-msg-iwcU0F",errorMsg:"error-msg-iwcU0F",link:"link-vljVkQ","footer-content":"footer-content-pm_TUV",footerContent:"footer-content-pm_TUV"},t.Z=a},928002:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".layout-content-rt1Z05{display:block;overflow:auto}.page-header-p0WE9H{border-bottom:1px solid rgba(29,28,35,.08);flex-direction:row;align-items:center;padding:0 24px 14px;display:flex}.page-header-p0WE9H .page-header-intro-OqbGcL{flex-direction:column;flex:1;height:56px;margin-right:20px;display:flex;overflow:hidden}.page-header-p0WE9H .page-header-intro_center-p_JuGp{justify-content:center;height:40px}.page-header-p0WE9H .page-header-intro_top-iBNEuZ{justify-content:flex-start}.page-header-p0WE9H .page-header-operations-pN8MBh{flex-grow:0;flex-shrink:0}.page-header-p0WE9H .page-header-back-yautuE{margin-right:12px}.page-header-p0WE9H .page-header-back-yautuE svg{width:16px;height:16px;color:var(--semi-color-text-2)!important}.page-header_full-LDpVLi{padding-top:16px;padding-bottom:16px}",""]),a.locals={"layout-content":"layout-content-rt1Z05",layoutContent:"layout-content-rt1Z05","page-header":"page-header-p0WE9H",pageHeader:"page-header-p0WE9H","page-header-intro":"page-header-intro-OqbGcL",pageHeaderIntro:"page-header-intro-OqbGcL","page-header-intro_center":"page-header-intro_center-p_JuGp",pageHeaderIntroCenter:"page-header-intro_center-p_JuGp","page-header-intro_top":"page-header-intro_top-iBNEuZ",pageHeaderIntroTop:"page-header-intro_top-iBNEuZ","page-header-operations":"page-header-operations-pN8MBh",pageHeaderOperations:"page-header-operations-pN8MBh","page-header-back":"page-header-back-yautuE",pageHeaderBack:"page-header-back-yautuE","page-header_full":"page-header_full-LDpVLi",pageHeaderFull:"page-header_full-LDpVLi"},t.Z=a},751238:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,'.page-VEvetO{color:#1c1d23;height:100%}.page-VEvetO .semi-table-row-head{font-size:12px;color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8))!important}.page-VEvetO .semi-steps-item-title-text{font-size:14px}.page-VEvetO .semi-table-row.semi-table-row-expanded:last-child .semi-table-row-cell{border-bottom:1px solid transparent}.layout-content-sMJkhn .header-info-CkwBHj{justify-content:space-between;align-items:center;width:100%;margin-bottom:12px;padding-top:12px;padding-bottom:24px;display:flex;position:relative}.layout-content-sMJkhn .header-info-CkwBHj:after{content:"";background-color:rgba(29,28,35,.08);width:calc(100% + 48px);height:1px;position:absolute;bottom:0;left:-24px}.layout-header-title-oST5H3{font-size:18px;font-weight:600}.icon-disabled-w6xSVY svg{color:rgba(29,28,35,.2)}.icon-disabled-w6xSVY svg path{fill:currentColor}.icon-default-_y9GIE span{color:rgba(29,28,35,.6)}.icon-default-_y9GIE svg path{fill:currentColor;fill-opacity:1}.icon-delete-Lfpin4 .semi-icon{transform:scale(1.08)}',""]),a.locals={page:"page-VEvetO","layout-content":"layout-content-sMJkhn",layoutContent:"layout-content-sMJkhn","header-info":"header-info-CkwBHj",headerInfo:"header-info-CkwBHj","layout-header-title":"layout-header-title-oST5H3",layoutHeaderTitle:"layout-header-title-oST5H3","icon-disabled":"icon-disabled-w6xSVY",iconDisabled:"icon-disabled-w6xSVY","icon-default":"icon-default-_y9GIE",iconDefault:"icon-default-_y9GIE","icon-delete":"icon-delete-Lfpin4",iconDelete:"icon-delete-Lfpin4"},t.Z=a},452058:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,'.tool-wrapper-xjbzvK{color:#1c1d23;height:100%}.tool-wrapper-xjbzvK .layout-header-PTUzvC{padding:24px 24px 12px}.tool-wrapper-xjbzvK .plugin-detail-info-OPsTzx{margin-bottom:36px;padding-bottom:12px;position:relative}.tool-wrapper-xjbzvK .plugin-detail-info-OPsTzx:after{content:"";background-color:rgba(29,28,35,.08);width:calc(100% + 48px);height:1px;position:absolute;bottom:0;left:-24px}.tool-wrapper-xjbzvK .plugin-detail-info-OPsTzx .plugin-detail-title-rHFRkS{max-width:300px;font-size:18px;font-weight:600;line-height:24px}.tool-wrapper-xjbzvK .plugin-detail-info-OPsTzx .plugin-detail-published-QwVxJj{color:rgba(28,29,35,.6);font-size:12px;line-height:16px}.tool-wrapper-xjbzvK .plugin-detail-info-OPsTzx .plugin-detail-avatar-ZD4n7_{border-radius:6px;width:36px;height:36px}.tool-wrapper-xjbzvK .plugin-detail-info-OPsTzx .plugin-detail-desc-vZAxE4{color:rgba(28,29,35,.8);max-width:300px;line-height:16px}.tool-wrapper-xjbzvK .banner-iphPYt{margin-bottom:24px;box-shadow:0 4px 14px rgba(0,0,0,.1),0 0 1px rgba(0,0,0,.3)}.tool-wrapper-xjbzvK .notips-NaGS8p{cursor:pointer;color:#4062ff;margin-left:12px;font-weight:600}.tool-wrapper-xjbzvK .min-width-200-oRGZZJ{min-width:200px}.tool-wrapper-xjbzvK .tool-table-desc-GaYAW_{font-size:12px;line-height:18px}.tool-wrapper-xjbzvK .icon-delete-disabled-botFob path{fill:currentColor}.tool-wrapper-xjbzvK .icon-btn-disable-aQBaUc{color:var(--light-usage-text-color-text-2,rgba(28,29,35,.2))}.tool-wrapper-xjbzvK .debug-btn-disable-o0cMHm{color:#1d1c23}.tool-wrapper-xjbzvK .debug-btn-disable-o0cMHm path{fill:currentColor;fill-opacity:.2}.tool-wrapper-xjbzvK .icon-more-nB1cDH{color:rgba(29,28,35,.6)}.tool-wrapper-xjbzvK .icon-more-nB1cDH path{fill:currentColor}.tool-wrapper-xjbzvK .grey-light-Rirayb{background-color:#f0f0f5;border-radius:4px;height:16px}.tool-wrapper-xjbzvK .edit-plugin-btn-jImJ60{padding:0 8px}.tool-wrapper-xjbzvK .edit-plugin-btn-jImJ60.edit-lt20He .semi-button-content-right{display:none}.tool-wrapper-xjbzvK .circle-point-tq1XJm{border-radius:50%;width:10px;height:10px}.tool-wrapper-xjbzvK .plugin-method-tag-JKRQcZ{height:16px;color:var(--Light-color-violet---violet-6,#6430bf);background:var(--Light-color-violet---violet-1,#e9d6f9);border-radius:4px}.tool-wrapper-xjbzvK .icon-example-disabled-aLvvSl path{fill:currentColor!important}',""]),a.locals={"tool-wrapper":"tool-wrapper-xjbzvK",toolWrapper:"tool-wrapper-xjbzvK","layout-header":"layout-header-PTUzvC",layoutHeader:"layout-header-PTUzvC","plugin-detail-info":"plugin-detail-info-OPsTzx",pluginDetailInfo:"plugin-detail-info-OPsTzx","plugin-detail-title":"plugin-detail-title-rHFRkS",pluginDetailTitle:"plugin-detail-title-rHFRkS","plugin-detail-published":"plugin-detail-published-QwVxJj",pluginDetailPublished:"plugin-detail-published-QwVxJj","plugin-detail-avatar":"plugin-detail-avatar-ZD4n7_",pluginDetailAvatar:"plugin-detail-avatar-ZD4n7_","plugin-detail-desc":"plugin-detail-desc-vZAxE4",pluginDetailDesc:"plugin-detail-desc-vZAxE4",banner:"banner-iphPYt",notips:"notips-NaGS8p","min-width-200":"min-width-200-oRGZZJ",minWidth200:"min-width-200-oRGZZJ","tool-table-desc":"tool-table-desc-GaYAW_",toolTableDesc:"tool-table-desc-GaYAW_","icon-delete-disabled":"icon-delete-disabled-botFob",iconDeleteDisabled:"icon-delete-disabled-botFob","icon-btn-disable":"icon-btn-disable-aQBaUc",iconBtnDisable:"icon-btn-disable-aQBaUc","debug-btn-disable":"debug-btn-disable-o0cMHm",debugBtnDisable:"debug-btn-disable-o0cMHm","icon-more":"icon-more-nB1cDH",iconMore:"icon-more-nB1cDH","grey-light":"grey-light-Rirayb",greyLight:"grey-light-Rirayb","edit-plugin-btn":"edit-plugin-btn-jImJ60",editPluginBtn:"edit-plugin-btn-jImJ60",edit:"edit-lt20He","circle-point":"circle-point-tq1XJm",circlePoint:"circle-point-tq1XJm","plugin-method-tag":"plugin-method-tag-JKRQcZ",pluginMethodTag:"plugin-method-tag-JKRQcZ","icon-example-disabled":"icon-example-disabled-aLvvSl",iconExampleDisabled:"icon-example-disabled-aLvvSl"},t.Z=a},723956:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,'.plugin-item-FwQeSk{box-sizing:border-box;justify-content:space-between;align-items:center;width:calc(100% - 68px);margin:14px 0 0 68px;padding-bottom:14px;padding-right:12px;display:flex}.plugin-item-FwQeSk:not(:last-child){border-bottom:1px solid var(--light-usage-border-color-border,rgba(28,31,35,.08));position:relative}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy{flex:1}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-name-Olqj31{width:100%}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-name-Olqj31 .semi-typography{font-size:16px;font-weight:600;line-height:22px;color:var(--light-usage-text-color-text-0,#1c1d23)!important}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-desc-ZNaHYY{flex-direction:column;width:100%;margin-top:4px;display:flex}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-desc-ZNaHYY .semi-typography{font-size:12px;line-height:16px;color:var(--light-usage-text-color-text-2,rgba(28,31,35,.6))!important}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-desc-ZNaHYY .api-params-ktYz8P{align-items:center;margin-top:12px;display:flex}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-desc-ZNaHYY .api-params-ktYz8P .params-tags-AAxf2t{max-width:500px}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-desc-ZNaHYY .api-params-ktYz8P .params-tags-AAxf2t .tag-item-b1U_AV{width:-moz-fit-content;width:fit-content;min-width:-moz-fit-content;min-width:fit-content;color:var(--light-usage-text-color-text-2,rgba(28,29,35,.6));border-radius:6px;font-size:12px;font-style:normal;font-weight:500;line-height:16px}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-desc-ZNaHYY .api-params-ktYz8P .params-tags-AAxf2t>:not(:first-child){margin-left:16px}.plugin-item-FwQeSk .plugin-api-main-Q1OKzy .plugin-api-desc-ZNaHYY .api-params-ktYz8P .params-desc-bTlexK{cursor:pointer;color:#4d53e8;flex-shrink:0;font-size:12px;line-height:16px;letter-spacing:.12px!important}.plugin-item-FwQeSk .plugin-api-method-EvpVl0{flex-shrink:0;align-items:center;margin-left:20px;display:flex}.plugin-panel-header-ArofdQ{flex-wrap:nowrap;flex:1;align-items:center;width:0;min-width:0;height:80px;font-weight:400;display:flex}.plugin-panel-header-ArofdQ .creator-icon-xME_ap{border-radius:50%;flex-shrink:0;display:flex}.plugin-panel-header-ArofdQ .creator-icon-xME_ap img{width:14px;height:14px}.plugin-panel-header-ArofdQ .creator-time-r8uHBp{color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));text-align:right;letter-spacing:.12px;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.plugin-panel-header-ArofdQ .header-icon-eWt001{flex-shrink:0;display:flex}.plugin-panel-header-ArofdQ .header-icon-eWt001 img{background:#fff;width:36px;height:36px}.plugin-panel-header-ArofdQ .header-main-KVlawq{flex:1;width:0;min-width:0;margin:0 16px;overflow:hidden}.plugin-panel-header-ArofdQ .header-main-KVlawq .header-name-aF7eJZ{align-items:center;width:100%;display:flex}.plugin-panel-header-ArofdQ .header-main-KVlawq .header-name-aF7eJZ .semi-typography{font-size:16px;font-weight:600;line-height:22px;color:var(--light-usage-text-color-text-0,#1c1d23)!important;word-wrap:break-word!important}.plugin-panel-header-ArofdQ .header-main-KVlawq .header-name-aF7eJZ .semi-highlight-tag{color:#fda633;background-color:transparent}.plugin-panel-header-ArofdQ .header-main-KVlawq .header-name-aF7eJZ .market-link-icon-yyoixo{display:none}.plugin-panel-header-ArofdQ .header-main-KVlawq .header-desc-EPDX9d{width:100%}.plugin-panel-header-ArofdQ .header-main-KVlawq .header-desc-EPDX9d .semi-typography{letter-spacing:.12px;font-size:12px;font-weight:400;color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8))!important;word-wrap:break-word!important}.plugin-panel-header-ArofdQ .header-info-pfScaU{color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));text-align:right;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.plugin-panel-header-ArofdQ .header-info-pfScaU .semi-divider-vertical{height:10px;color:var(--light-usage-border-color-border-1,rgba(28,29,35,.12))}.plugin-content-qImN53{width:100%;height:100%;padding-bottom:12px;overflow:auto}.plugin-content-qImN53 .loading-more-J5k4Tv{text-align:center}.plugin-content-qImN53 .plugin-content-filter-uz52Km{padding:0 36px 0 22px;display:flex}.plugin-content-qImN53 .plugin-content-filter-uz52Km .plugin-content-sort-BDKyTB{width:150px}.plugin-content-qImN53 .plugin-content-filter-uz52Km .bot-tag-juvr_j{align-items:center;display:flex}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-content{padding:0}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-button.semi-tabs-tab-active{color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));background-color:transparent}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-button.semi-tabs-tab-active .semi-icon>svg{width:20px;height:20px}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-button.semi-tabs-tab-active .semi-icon>svg>path{fill:rgba(28,29,35,.8)}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:-webkit-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));top:0}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:-moz-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));top:0}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:is(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));top:0}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:-webkit-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:-moz-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:is(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-content-qImN53 .plugin-content-filter-uz52Km .semi-tabs-tab:last-child:before{content:"";background-color:var(--light-usage-border-color-border,rgba(28,29,35,.12));width:1px;height:16px;position:absolute;top:12px;left:-4px}.plugin-content-qImN53 .plugin-collapse-kxFSRQ{width:100%}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .semi-collapse-item{border:none;position:relative}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .semi-collapse-header:hover:before{content:"";background-color:#f7f7fa;width:100%;height:1px;position:absolute;top:-1px;left:0}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .semi-collapse-header{border-bottom:1px solid #dfdfdf;border-radius:0;margin:0}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .semi-collapse-header:hover{background:var(--light-usage-fill-color-fill-0,rgba(46,47,56,.05));border-bottom:1px solid transparent;border-radius:8px}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .semi-collapse-header:active{background:var(--light-usage-fill-color-fill-0,rgba(46,47,56,.05))}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .semi-collapse-header-icon{width:auto;height:24px}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .semi-collapse-header-icon:hover{background:var(--light-usage-fill-color-fill-1,rgba(46,47,56,.09));border-radius:5px}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .semi-collapse-header:hover .market-link-icon-yyoixo{display:block}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .item-container-i_kVWw{padding:0}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .collapse-icon-WR8ElA{cursor:pointer;padding:4px}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .collapse-icon-WR8ElA>svg{width:16px;height:16px}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .collapse-icon-WR8ElA>svg>path{fill:rgba(28,29,35,.35)}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .activePanel-c1HRUM{background:var(--light-usage-fill-color-fill-0,rgba(46,47,56,.05));border:none;border-radius:8px;margin-bottom:8px}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .activePanel-c1HRUM .semi-collapse-header{border-bottom:1px solid #dfdfdf}.plugin-content-qImN53 .plugin-collapse-kxFSRQ .activePanel-c1HRUM .semi-collapse-header:hover{background:0 0}.plugin-content-qImN53 .semi-collapse-header{min-width:870px;padding:14px 16px;height:140px!important;margin:0!important}.plugin-collapse-kxFSRQ .semi-collapse-header{min-width:870px;padding:14px 16px;height:140px!important;margin:0!important}.plugin-content-qImN53 .semi-collapse-header[aria-expanded=true]{border-radius:8px 8px 0 0!important}.plugin-collapse-kxFSRQ .semi-collapse-header[aria-expanded=true]{border-radius:8px 8px 0 0!important}.plugin-content-qImN53 .semi-collapse{padding:16px 0 12px}.plugin-collapse-kxFSRQ .semi-collapse{padding:16px 0 12px}.plugin-content-qImN53 .semi-collapse-content{border-radius:0 0 8px 8px;padding:0}.plugin-collapse-kxFSRQ .semi-collapse-content{border-radius:0 0 8px 8px;padding:0}button.operator-btn-rIrDvc{width:98px}button.operator-btn-rIrDvc.added-R3NBAb{color:var(--light-usage-primary-color-primary-disabled,#b4baf6);background:var(--light-usage-bg-color-bg-0,#fff);border:1px solid var(--light-usage-disabled-color-disabled-border,#f0f0f5)}button.operator-btn-rIrDvc.addedMouseIn-Yaxg0j{color:var(--light-color-red-red-5,#ff441e);border:1px solid var(--light-usage-border-color-border-1,rgba(29,28,35,.12));background:#fff}.workflow_count_span-NSz4Ui{color:#fff;vertical-align:1px;background-color:#4d53e8;border-radius:8px;width:16px;height:16px;margin-left:6px;font-size:10px;line-height:17px;display:inline-block}.store-plugin-tools-HGdj8Q{color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));margin-top:8px;font-size:12px;display:flex}.plugin-total-qxkVUp{color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));margin-top:4px;margin-bottom:4px;font-size:12px}',""]),a.locals={"plugin-item":"plugin-item-FwQeSk",pluginItem:"plugin-item-FwQeSk","plugin-api-main":"plugin-api-main-Q1OKzy",pluginApiMain:"plugin-api-main-Q1OKzy","plugin-api-name":"plugin-api-name-Olqj31",pluginApiName:"plugin-api-name-Olqj31","plugin-api-desc":"plugin-api-desc-ZNaHYY",pluginApiDesc:"plugin-api-desc-ZNaHYY","api-params":"api-params-ktYz8P",apiParams:"api-params-ktYz8P","params-tags":"params-tags-AAxf2t",paramsTags:"params-tags-AAxf2t","tag-item":"tag-item-b1U_AV",tagItem:"tag-item-b1U_AV","params-desc":"params-desc-bTlexK",paramsDesc:"params-desc-bTlexK","plugin-api-method":"plugin-api-method-EvpVl0",pluginApiMethod:"plugin-api-method-EvpVl0","plugin-panel-header":"plugin-panel-header-ArofdQ",pluginPanelHeader:"plugin-panel-header-ArofdQ","creator-icon":"creator-icon-xME_ap",creatorIcon:"creator-icon-xME_ap","creator-time":"creator-time-r8uHBp",creatorTime:"creator-time-r8uHBp","header-icon":"header-icon-eWt001",headerIcon:"header-icon-eWt001","header-main":"header-main-KVlawq",headerMain:"header-main-KVlawq","header-name":"header-name-aF7eJZ",headerName:"header-name-aF7eJZ","market-link-icon":"market-link-icon-yyoixo",marketLinkIcon:"market-link-icon-yyoixo","header-desc":"header-desc-EPDX9d",headerDesc:"header-desc-EPDX9d","header-info":"header-info-pfScaU",headerInfo:"header-info-pfScaU","plugin-content":"plugin-content-qImN53",pluginContent:"plugin-content-qImN53","loading-more":"loading-more-J5k4Tv",loadingMore:"loading-more-J5k4Tv","plugin-content-filter":"plugin-content-filter-uz52Km",pluginContentFilter:"plugin-content-filter-uz52Km","plugin-content-sort":"plugin-content-sort-BDKyTB",pluginContentSort:"plugin-content-sort-BDKyTB","bot-tag":"bot-tag-juvr_j",botTag:"bot-tag-juvr_j","plugin-collapse":"plugin-collapse-kxFSRQ",pluginCollapse:"plugin-collapse-kxFSRQ","item-container":"item-container-i_kVWw",itemContainer:"item-container-i_kVWw","collapse-icon":"collapse-icon-WR8ElA",collapseIcon:"collapse-icon-WR8ElA",activePanel:"activePanel-c1HRUM","operator-btn":"operator-btn-rIrDvc",operatorBtn:"operator-btn-rIrDvc",added:"added-R3NBAb",addedMouseIn:"addedMouseIn-Yaxg0j",workflow_count_span:"workflow_count_span-NSz4Ui",workflowCountSpan:"workflow_count_span-NSz4Ui","store-plugin-tools":"store-plugin-tools-HGdj8Q",storePluginTools:"store-plugin-tools-HGdj8Q","plugin-total":"plugin-total-qxkVUp",pluginTotal:"plugin-total-qxkVUp"},t.Z=a},145888:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,"button.addbtn-Dh_IjM{width:100%;margin-top:24px}",""]),a.locals={addbtn:"addbtn-Dh_IjM"},t.Z=a},733922:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".card-cEf7kW{cursor:pointer;border-radius:8px;min-width:248px;height:172px;transition:box-shadow .4s;position:relative;background-color:#fff!important}.card-cEf7kW:hover{box-shadow:0 4px 20px rgba(31,35,41,.04),0 4px 10px rgba(31,35,41,.04),0 2px 5px rgba(31,35,41,.04)}.card-favorite-not-publish-CpUexa{cursor:not-allowed;background-color:var(--light-usage-fill-color-fill-0,rgba(46,50,56,.05))!important}.add-card-eLL6Mr{background-color:#fff;border-radius:8px}.add-card-inner-mGFOD7{flex-direction:column;justify-content:center;display:flex}.name-wrap-JWcTVt{align-items:center;width:100%;height:40px;padding:16px 16px 0;display:flex}.avatar-MMzMTH{border-radius:50%px;flex-shrink:0;width:24px;height:24px}.name-werKxX{color:#000;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 156px);font-size:14px;font-weight:600;line-height:24px;position:absolute;top:16px;left:48px;overflow:hidden}.extra-B5QMoB{margin-left:auto}.card-content-fcztr4{flex-direction:column;height:calc(100% - 40px);padding:16px;display:flex}.description-eqqWSL{color:#494c4f;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}.recent-modify-OcNKV_{color:rgba(28,31,35,.6);margin-top:8px;font-size:12px;line-height:16px}.creator-poTttd{width:-moz-fit-content;color:#346ef8;background:rgba(51,112,255,.1);width:fit-content;padding:4px;font-size:12px;line-height:16px;border:none!important;border-radius:3px!important}.upload-form-_Ox7kM{flex-direction:column;gap:16px;display:flex}.upload-form-_Ox7kM .upload-field-zwcU3y{padding-top:0}.upload-form-_Ox7kM .upload-field-zwcU3y .semi-form-field-help-text{justify-content:center}.upload-form-_Ox7kM .textarea-single-line-Fv_c56 .semi-input-textarea-counter{position:absolute;top:6px;right:0}.upload-form-_Ox7kM .textarea-multi-line-ObpPEU{margin-bottom:16px}.upload-form-_Ox7kM .textarea-multi-line-ObpPEU .semi-input-textarea-counter{min-height:0;padding:0;position:absolute;bottom:-20px;right:0}.upload-form-_Ox7kM .footer-draft-kIIt0s{color:var(--coz-fg-secondary);align-items:flex-start;padding-top:16px;font-size:12px;line-height:16px}.upload-form-_Ox7kM .footer-draft-kIIt0s .link-AMw16h{color:var(--coz-fg-hglt);font-weight:400}.upload-form-_Ox7kM .footer-draft-kIIt0s .semi-icon{margin-top:2px}.upload-form-_Ox7kM .semi-form-field{padding:0}.upload-form-_Ox7kM input::-webkit-contacts-auto-fill-button{pointer-events:none;visibility:hidden;position:absolute;right:0;display:none!important}.upload-form-item-PcPEfI .semi-form-field-label-text{display:none}.collect-num-KX8YJ3{width:12px;height:12px;margin-right:4px}.collect-num-KX8YJ3 svg{width:12px;height:12px}.user-info-FmzOmC{margin-top:auto}.extinfo-eucJ87{max-width:338px;font-size:12px}.extinfo-eucJ87 .extinfo-title-xsdpc6{font-weight:700}.extinfo-eucJ87 .extinfo-text-MoLv7h{color:rgba(28,31,35,.6)}.extinfo-eucJ87 .extinfo-ex-wm_x72{color:rgba(28,31,35,.6);border:1px solid rgba(28,31,35,.08);margin-top:4px;padding:6px 10px}.upload-avatar-QSakK6{flex-shrink:0;border-radius:var(--spacing-tight,8px)!important;background:#fff!important;width:80px!important;height:80px!important}.header-list-e1eBqg .semi-form-field-label-with-extra{padding-right:0}.header-list-e1eBqg .semi-form-field-label-extra{flex:1}.header-list-e1eBqg .header-list-extra-bBzd1w{justify-content:space-between;align-items:center;width:100%;display:flex}.header-list-e1eBqg .header-list-box-Rx7h7O{border:1px solid var(--coz-stroke-primary);border-radius:8px;max-height:348px;overflow:auto}.header-list-e1eBqg .header-list-box-Rx7h7O .header-row-_1E6pz{border-bottom:1px solid var(--coz-stroke-primary)}.header-list-e1eBqg .header-list-box-Rx7h7O .header-col-content-RSXwtW{color:var(--coz-fg-secondary);padding:6px 8px;font-size:12px;font-weight:500;line-height:16px}.header-list-e1eBqg .header-list-box-Rx7h7O .col-content-mAoZ8y{padding:12px 8px}.error-msg-box-vITOR_{position:relative;top:-24px}.error-msg-box-vITOR_ .error-msg-DQ2SbM{color:#f93920;text-align:left;padding:8px 16px;line-height:16px;display:block}.error-msg-box-vITOR_ .error-msg-DQ2SbM .link-AMw16h{color:#4d53e8;font-weight:400}.creation-method-dX4xNs{flex-direction:column;justify-content:space-between;gap:4px;padding:0!important;display:flex!important}.creation-method-dX4xNs .semi-radio{background-color:var(--coz-mg-card);border:solid 1px var(--coz-stroke-plus);border-radius:8px;padding:8px 12px}.creation-method-dX4xNs .semi-radio:hover{background-color:var(--coz-mg-secondary-hovered)}.creation-method-dX4xNs .semi-radio:active{background-color:var(--coz-mg-secondary-pressed)}.creation-method-dX4xNs .semi-radio-inner{display:none}.creation-method-dX4xNs .semi-radio-addon{line-height:20px}.creation-method-dX4xNs .semi-radio-checked{background:var(--coz-mg-hglt);border:1px solid var(--coz-stroke-hglt)}.creation-method-dX4xNs .semi-radio-checked:hover{background-color:var(--coz-mg-hglt-hovered)}.creation-method-dX4xNs .semi-radio-checked:active{background-color:var(--coz-mg-hglt-pressed)}.code-runtime-list-edmuFe .semi-select-option-selected .semi-select-option-icon{color:#4d53e8}.bot-code-edit-title-action-zw3fJ5{justify-content:space-between;align-items:center;width:100%;display:flex}",""]),a.locals={card:"card-cEf7kW","card-favorite-not-publish":"card-favorite-not-publish-CpUexa",cardFavoriteNotPublish:"card-favorite-not-publish-CpUexa","add-card":"add-card-eLL6Mr",addCard:"add-card-eLL6Mr","add-card-inner":"add-card-inner-mGFOD7",addCardInner:"add-card-inner-mGFOD7","name-wrap":"name-wrap-JWcTVt",nameWrap:"name-wrap-JWcTVt",avatar:"avatar-MMzMTH",name:"name-werKxX",extra:"extra-B5QMoB","card-content":"card-content-fcztr4",cardContent:"card-content-fcztr4",description:"description-eqqWSL","recent-modify":"recent-modify-OcNKV_",recentModify:"recent-modify-OcNKV_",creator:"creator-poTttd","upload-form":"upload-form-_Ox7kM",uploadForm:"upload-form-_Ox7kM","upload-field":"upload-field-zwcU3y",uploadField:"upload-field-zwcU3y","textarea-single-line":"textarea-single-line-Fv_c56",textareaSingleLine:"textarea-single-line-Fv_c56","textarea-multi-line":"textarea-multi-line-ObpPEU",textareaMultiLine:"textarea-multi-line-ObpPEU","footer-draft":"footer-draft-kIIt0s",footerDraft:"footer-draft-kIIt0s",link:"link-AMw16h","upload-form-item":"upload-form-item-PcPEfI",uploadFormItem:"upload-form-item-PcPEfI","collect-num":"collect-num-KX8YJ3",collectNum:"collect-num-KX8YJ3","user-info":"user-info-FmzOmC",userInfo:"user-info-FmzOmC",extinfo:"extinfo-eucJ87","extinfo-title":"extinfo-title-xsdpc6",extinfoTitle:"extinfo-title-xsdpc6","extinfo-text":"extinfo-text-MoLv7h",extinfoText:"extinfo-text-MoLv7h","extinfo-ex":"extinfo-ex-wm_x72",extinfoEx:"extinfo-ex-wm_x72","upload-avatar":"upload-avatar-QSakK6",uploadAvatar:"upload-avatar-QSakK6","header-list":"header-list-e1eBqg",headerList:"header-list-e1eBqg","header-list-extra":"header-list-extra-bBzd1w",headerListExtra:"header-list-extra-bBzd1w","header-list-box":"header-list-box-Rx7h7O",headerListBox:"header-list-box-Rx7h7O","header-row":"header-row-_1E6pz",headerRow:"header-row-_1E6pz","header-col-content":"header-col-content-RSXwtW",headerColContent:"header-col-content-RSXwtW","col-content":"col-content-mAoZ8y",colContent:"col-content-mAoZ8y","error-msg-box":"error-msg-box-vITOR_",errorMsgBox:"error-msg-box-vITOR_","error-msg":"error-msg-DQ2SbM",errorMsg:"error-msg-DQ2SbM","creation-method":"creation-method-dX4xNs",creationMethod:"creation-method-dX4xNs","code-runtime-list":"code-runtime-list-edmuFe",codeRuntimeList:"code-runtime-list-edmuFe","bot-code-edit-title-action":"bot-code-edit-title-action-zw3fJ5",botCodeEditTitleAction:"bot-code-edit-title-action-zw3fJ5"},t.Z=a},269382:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".actions-kJ4zxd{margin-right:20px}",""]),a.locals={actions:"actions-kJ4zxd"},t.Z=a},825778:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".upload-file-area-RgfErZ .semi-upload-file-list{width:100%;margin-top:0;margin-bottom:0}.upload-file-area-RgfErZ .semi-upload-file-list .semi-upload-file-list-main{margin-bottom:0}.upload-file-area-RgfErZ .semi-upload-drag-area{border:1px dashed var(--semi-color-border);background-color:#fff;height:380px}.upload-file-area-RgfErZ .semi-upload-drag-area-tips{font-weight:400}.upload-file-area-RgfErZ .semi-upload-drag-area-legal{border:1px dashed var(--semi-color-primary)}.upload-file-area-RgfErZ a{color:#4d53e8;text-decoration:none}.drag-area-disabled-qQY4yU .semi-upload-drag-area{display:none}.upload-file-item-mI8hhx{background:#fff;border:1px solid rgba(29,28,35,.08);border-radius:8px;align-items:center;width:100%;padding:16px 20px;display:flex}.upload-file-item-mI8hhx .file-icon-rTaDDz{align-items:center;width:24px;height:24px;margin-right:16px;font-size:24px;display:flex}.upload-file-item-mI8hhx .file-icon-rTaDDz img{width:24px;height:24px}.upload-file-item-mI8hhx .text-MYEMhe{flex:1;margin-right:16px}.upload-file-item-mI8hhx .upload-text-S7bQ85{color:rgba(29,28,35,.35)}.upload-file-item-mI8hhx .progress-oHNxHU{align-items:center;width:160px;padding:0 16px;display:flex}.upload-file-item-mI8hhx .delete-icon-fXYlWK{font-size:16px}.text-area-QFnA26,.text-area-QFnA26:hover{background-color:#fff}.text-area-QFnA26 .semi-input-textarea::-webkit-scrollbar{background:0 0;width:8px;height:4px}.text-area-QFnA26 .semi-input-textarea::-webkit-scrollbar-thumb{background:rgba(29,28,35,.3);border-radius:6px}.text-area-QFnA26 .semi-input-textarea::-webkit-scrollbar-thumb:hover{background:rgba(29,28,35,.6)}.text-area-QFnA26 .semi-input-textarea::-webkit-scrollbar-corner{display:none}.disabled-dg6A77{opacity:.5}",""]),a.locals={"upload-file-area":"upload-file-area-RgfErZ",uploadFileArea:"upload-file-area-RgfErZ","drag-area-disabled":"drag-area-disabled-qQY4yU",dragAreaDisabled:"drag-area-disabled-qQY4yU","upload-file-item":"upload-file-item-mI8hhx",uploadFileItem:"upload-file-item-mI8hhx","file-icon":"file-icon-rTaDDz",fileIcon:"file-icon-rTaDDz",text:"text-MYEMhe","upload-text":"upload-text-S7bQ85",uploadText:"upload-text-S7bQ85",progress:"progress-oHNxHU","delete-icon":"delete-icon-fXYlWK",deleteIcon:"delete-icon-fXYlWK","text-area":"text-area-QFnA26",textArea:"text-area-QFnA26",disabled:"disabled-dg6A77"},t.Z=a},408063:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".radio-group-PJCJKX .semi-radio{width:136px}.radio-group-PJCJKX .semi-radio-content{width:128px}.radio-group-PJCJKX .semi-radio-addon-buttonRadio{border-radius:4px}.error-msg-OhQPMl{width:100%;height:22px;margin-top:8px}.error-msg-OhQPMl .semi-typography{color:#ff5656}.import-modal-LWI3bH .semi-modal-content{min-height:646px}",""]),a.locals={"radio-group":"radio-group-PJCJKX",radioGroup:"radio-group-PJCJKX","error-msg":"error-msg-OhQPMl",errorMsg:"error-msg-OhQPMl","import-modal":"import-modal-LWI3bH",importModal:"import-modal-LWI3bH"},t.Z=a},557048:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".upload-form-YWA1zs .upload-field-sHiBAo{padding-top:0}.upload-form-YWA1zs .upload-field-sHiBAo .semi-form-field-help-text{justify-content:center}.upload-form-YWA1zs .textarea-single-line-gYxhxa .semi-input-textarea-counter{position:absolute;top:6px;right:0}.upload-form-YWA1zs .textarea-multi-line-KxWqn8{margin-bottom:16px}.upload-form-YWA1zs .textarea-multi-line-KxWqn8 .semi-input-textarea-counter{min-height:0;padding:0;position:absolute;bottom:-20px;right:0}.upload-form-YWA1zs .footer-draft-zPW_iF{color:#000;align-items:flex-start;padding-top:16px;font-size:14px;line-height:22px}.upload-form-YWA1zs .footer-draft-zPW_iF .link-uSaqIC{color:#4d53e8;font-weight:400}.upload-form-YWA1zs .footer-draft-zPW_iF .semi-icon{margin-top:2px}.upload-form-YWA1zs input::-webkit-contacts-auto-fill-button{pointer-events:none;visibility:hidden;position:absolute;right:0;display:none!important}.upload-avatar-vVvWni{flex-shrink:0;border-radius:var(--spacing-tight,8px)!important;background:#fff!important;width:80px!important;height:80px!important}.header-list-j3Yo8Y .semi-form-field-label-with-extra{padding-right:0}.header-list-j3Yo8Y .semi-form-field-label-extra{flex:1}.header-list-j3Yo8Y .header-list-extra-GXGJQO{justify-content:space-between;align-items:center;width:100%;display:flex}.header-list-j3Yo8Y .herder-list-box-EGgMD0{border:1px solid rgba(29,28,35,.12);border-radius:8px;max-height:348px;padding:0 16px;overflow:auto}.header-list-j3Yo8Y .herder-list-box-EGgMD0 .herder-list-cotent-B7XhSB{padding:12px 0}.header-list-j3Yo8Y .herder-list-box-EGgMD0 .header-row-FonqCn{border-bottom:1px solid rgba(29,28,35,.12)}.header-list-j3Yo8Y .herder-list-box-EGgMD0 .header-col-content-q7Saks{padding:12px 0;line-height:16px}.header-list-j3Yo8Y .herder-list-box-EGgMD0 .col-content-N9oEMh{text-align:center;padding:12px 0}.error-msg-box-Z65QEO{position:relative;top:-24px}.error-msg-box-Z65QEO .error-msg-cQSmkf{color:#f93920;text-align:left;padding:8px 16px;line-height:16px;display:block}.error-msg-box-Z65QEO .error-msg-cQSmkf .link-uSaqIC{color:#4d53e8;font-weight:400}",""]),a.locals={"upload-form":"upload-form-YWA1zs",uploadForm:"upload-form-YWA1zs","upload-field":"upload-field-sHiBAo",uploadField:"upload-field-sHiBAo","textarea-single-line":"textarea-single-line-gYxhxa",textareaSingleLine:"textarea-single-line-gYxhxa","textarea-multi-line":"textarea-multi-line-KxWqn8",textareaMultiLine:"textarea-multi-line-KxWqn8","footer-draft":"footer-draft-zPW_iF",footerDraft:"footer-draft-zPW_iF",link:"link-uSaqIC","upload-avatar":"upload-avatar-vVvWni",uploadAvatar:"upload-avatar-vVvWni","header-list":"header-list-j3Yo8Y",headerList:"header-list-j3Yo8Y","header-list-extra":"header-list-extra-GXGJQO",headerListExtra:"header-list-extra-GXGJQO","herder-list-box":"herder-list-box-EGgMD0",herderListBox:"herder-list-box-EGgMD0","herder-list-cotent":"herder-list-cotent-B7XhSB",herderListCotent:"herder-list-cotent-B7XhSB","header-row":"header-row-FonqCn",headerRow:"header-row-FonqCn","header-col-content":"header-col-content-q7Saks",headerColContent:"header-col-content-q7Saks","col-content":"col-content-N9oEMh",colContent:"col-content-N9oEMh","error-msg-box":"error-msg-box-Z65QEO",errorMsgBox:"error-msg-box-Z65QEO","error-msg":"error-msg-cQSmkf",errorMsg:"error-msg-cQSmkf"},t.Z=a},934971:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".wrapper-c0zLZm{flex:auto;justify-content:flex-end;align-items:center;padding-right:20px;display:flex}.tip-HC9m48{color:rgba(29,28,35,.35);margin-right:12px;font-size:14px}",""]),a.locals={wrapper:"wrapper-c0zLZm",tip:"tip-HC9m48"},t.Z=a},972588:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".layout-header-mTW2Nl{padding:16px 24px 24px}.content-title-POwBgy{max-width:1160px;color:var(--semi-color-text-0);margin:0 auto 16px;font-size:16px;font-weight:600;line-height:32px}.list-container_scroll-djYTQU{width:100%;max-width:1160px;margin-left:auto;margin-right:auto;padding-bottom:10px}.list-container_flexible-wJbt39,.list-container-no-header_flexible-IT21Zp{width:100%;max-width:1160px;margin-left:auto;margin-right:auto}.list-container_flexible-wJbt39{height:calc(100% - 72px)}.list-container-no-header_flexible-IT21Zp{height:100%}.mock-set-intro-title-RsGGBP{width:100%;margin-top:2px;margin-bottom:4px}.mock-set-intro-title-RsGGBP.mock-set-intro-title_full-kzaTz2{margin-top:0;margin-bottom:0}.mock-set-intro-title-RsGGBP .mock-set-intro-name-W4m3Rs{color:var(--semi-color-text-0);text-overflow:ellipsis;white-space:nowrap;font-size:18px;font-weight:600;line-height:32px;overflow:hidden}.mock-set-intro-title-RsGGBP .mock-set-intro-name_full-Egvkdn{font-size:14px;line-height:20px}.mock-set-intro-title-RsGGBP .mock-set-intro-edit-W5G3qu{width:16px;height:16px;color:var(--semi-color-text-2)}.mock-set-intro-title-RsGGBP .mock-set-intro-edit_full-tSGT7v,.mock-set-intro-title-RsGGBP .mock-set-intro-edit_full-tSGT7v svg{width:14px;height:14px}.mock-set-intro-desc_priority-ZGACbv.mock-set-intro-desc-EoC_Wi{width:100%;color:var(--semi-color-text-1);text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:22px;overflow:hidden}.mock-set-intro-desc_priority-ZGACbv.mock-set-intro-desc_full-G7zqMi{line-height:16px}.mock-creation-modal-h4C8Z8 .semi-modal-content .semi-modal-body{overflow:unset}.mock-creation-modal-h4C8Z8 .semi-modal-footer .semi-button{margin-left:8px}.mock-creation-card-IVoJdm{height:calc(100% - 24px)}div.mock-creation-modal-editor-hA_Vzc{height:calc(100vh - 316px);max-height:500px}.mock-creation-card-editor-ZQvrCs{height:calc(100% - 120px);margin-bottom:40px}.mock-creation-card-operation-Zw2CVr{text-align:right}.skeleton-cEQH0j .semi-skeleton-image{width:100%;height:100px;margin-bottom:12px}.empty-Bp3ZWl{justify-content:center;height:calc(100% - 68px);padding-bottom:10%}.empty-Bp3ZWl .semi-empty-image svg{width:140px;height:140px}.empty-Bp3ZWl .semi-empty-description{font-weight:600}",""]),a.locals={"layout-header":"layout-header-mTW2Nl",layoutHeader:"layout-header-mTW2Nl","content-title":"content-title-POwBgy",contentTitle:"content-title-POwBgy","list-container_scroll":"list-container_scroll-djYTQU",listContainerScroll:"list-container_scroll-djYTQU","list-container_flexible":"list-container_flexible-wJbt39",listContainerFlexible:"list-container_flexible-wJbt39","list-container-no-header_flexible":"list-container-no-header_flexible-IT21Zp",listContainerNoHeaderFlexible:"list-container-no-header_flexible-IT21Zp","mock-set-intro-title":"mock-set-intro-title-RsGGBP",mockSetIntroTitle:"mock-set-intro-title-RsGGBP","mock-set-intro-title_full":"mock-set-intro-title_full-kzaTz2",mockSetIntroTitleFull:"mock-set-intro-title_full-kzaTz2","mock-set-intro-name":"mock-set-intro-name-W4m3Rs",mockSetIntroName:"mock-set-intro-name-W4m3Rs","mock-set-intro-name_full":"mock-set-intro-name_full-Egvkdn",mockSetIntroNameFull:"mock-set-intro-name_full-Egvkdn","mock-set-intro-edit":"mock-set-intro-edit-W5G3qu",mockSetIntroEdit:"mock-set-intro-edit-W5G3qu","mock-set-intro-edit_full":"mock-set-intro-edit_full-tSGT7v",mockSetIntroEditFull:"mock-set-intro-edit_full-tSGT7v","mock-set-intro-desc_priority":"mock-set-intro-desc_priority-ZGACbv",mockSetIntroDescPriority:"mock-set-intro-desc_priority-ZGACbv","mock-set-intro-desc":"mock-set-intro-desc-EoC_Wi",mockSetIntroDesc:"mock-set-intro-desc-EoC_Wi","mock-set-intro-desc_full":"mock-set-intro-desc_full-G7zqMi",mockSetIntroDescFull:"mock-set-intro-desc_full-G7zqMi","mock-creation-modal":"mock-creation-modal-h4C8Z8",mockCreationModal:"mock-creation-modal-h4C8Z8","mock-creation-card":"mock-creation-card-IVoJdm",mockCreationCard:"mock-creation-card-IVoJdm","mock-creation-modal-editor":"mock-creation-modal-editor-hA_Vzc",mockCreationModalEditor:"mock-creation-modal-editor-hA_Vzc","mock-creation-card-editor":"mock-creation-card-editor-ZQvrCs",mockCreationCardEditor:"mock-creation-card-editor-ZQvrCs","mock-creation-card-operation":"mock-creation-card-operation-Zw2CVr",mockCreationCardOperation:"mock-creation-card-operation-Zw2CVr",skeleton:"skeleton-cEQH0j",empty:"empty-Bp3ZWl"},t.Z=a},428468:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".long-text-Y9pFS8.long-text-tooltip-yeOdtg{color:var(--semi-color-bg-0);word-break:break-word;overflow-wrap:break-word}",""]),a.locals={"long-text":"long-text-Y9pFS8",longText:"long-text-Y9pFS8","long-text-tooltip":"long-text-tooltip-yeOdtg",longTextTooltip:"long-text-tooltip-yeOdtg"},t.Z=a},393288:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".mock-data-content-zMcISM{word-wrap:break-word;border:1px var(--semi-color-border)solid;border-radius:8px;min-height:64px;max-height:500px;overflow:auto}.mock-data-content-zMcISM .semi-tree-option-list-block .semi-tree-option-selected{background-color:transparent}.mock-data-content-zMcISM .semi-tree-option-list-block .semi-tree-option:hover{background-color:transparent}.mock-data-card-operations-W2EzZL{visibility:hidden;background:#f7f7fa;border-radius:8px;padding:4px;position:absolute;top:16px;right:16px;box-shadow:0 4px 8px rgba(0,0,0,.2)}.mock-data-card-ZDq6gF{margin-bottom:16px;position:relative}.mock-data-card-ZDq6gF:hover .mock-data-card-operations-W2EzZL{visibility:visible}.mock-data-card-edit-S1Fvyl,.mock-data-card-delete-sSdiaP{width:16px;height:16px}.mock-data-content-code-aADiqi{height:300px}.mock-data-banner-J4SLDS{width:60%;position:absolute;bottom:16px;left:20%}.mock-data-banner-J4SLDS .semi-banner-icon{align-items:center}.card-item-d8yT_u{display:inline-block;position:relative}.card-item_deleted-vFlgAx{text-decoration:line-through}.card-item-text-aW4zLM{color:#1d1c23;word-wrap:break-word;font-size:14px;font-weight:400;line-height:20px}.card-item-text_required-DV6rMW,.card-item-text_highlighted-II4CqT{color:var(--semi-color-danger)}.card-item-text_primary-t1wXew{font-weight:600}.card-item-text_invalid-XAR6NV{color:var(--semi-color-text-3)}.card-item-text_stretched-Iwi092{flex-grow:1;overflow:hidden}.card-item-text_wrap-jd4z4M{white-space:normal}.card-item-tag-TlAD7m{color:#6b6b75;word-wrap:break-word;background:rgba(46,46,56,.08);border-radius:6px;padding:2px 8px;font-size:12px;font-weight:500;line-height:16px}.card-branches-oDYeZA{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:8px}.card-branch-v-p9osl8{vertical-align:top;border-left:1px solid transparent;width:13px;height:100%;margin-left:6px;display:inline-block}.card-branch-v_visible-eMYCWE{border-color:#c6c6cd}.card-branch-v_half-WWxYv9{height:10px}.card-branch-h-dnwZKM{vertical-align:top;border:0 solid #c6c6cd;border-width:0 0 1px 1px;border-radius:0 0 0 4px;width:6px;height:15px;margin-left:-13px;display:inline-block}.card-branch-h_long-pPKBpo{width:20px}.card-non-tree-container-ZArpHq{padding:8px 30px}",""]),a.locals={"mock-data-content":"mock-data-content-zMcISM",mockDataContent:"mock-data-content-zMcISM","mock-data-card-operations":"mock-data-card-operations-W2EzZL",mockDataCardOperations:"mock-data-card-operations-W2EzZL","mock-data-card":"mock-data-card-ZDq6gF",mockDataCard:"mock-data-card-ZDq6gF","mock-data-card-edit":"mock-data-card-edit-S1Fvyl",mockDataCardEdit:"mock-data-card-edit-S1Fvyl","mock-data-card-delete":"mock-data-card-delete-sSdiaP",mockDataCardDelete:"mock-data-card-delete-sSdiaP","mock-data-content-code":"mock-data-content-code-aADiqi",mockDataContentCode:"mock-data-content-code-aADiqi","mock-data-banner":"mock-data-banner-J4SLDS",mockDataBanner:"mock-data-banner-J4SLDS","card-item":"card-item-d8yT_u",cardItem:"card-item-d8yT_u","card-item_deleted":"card-item_deleted-vFlgAx",cardItemDeleted:"card-item_deleted-vFlgAx","card-item-text":"card-item-text-aW4zLM",cardItemText:"card-item-text-aW4zLM","card-item-text_required":"card-item-text_required-DV6rMW",cardItemTextRequired:"card-item-text_required-DV6rMW","card-item-text_highlighted":"card-item-text_highlighted-II4CqT",cardItemTextHighlighted:"card-item-text_highlighted-II4CqT","card-item-text_primary":"card-item-text_primary-t1wXew",cardItemTextPrimary:"card-item-text_primary-t1wXew","card-item-text_invalid":"card-item-text_invalid-XAR6NV",cardItemTextInvalid:"card-item-text_invalid-XAR6NV","card-item-text_stretched":"card-item-text_stretched-Iwi092",cardItemTextStretched:"card-item-text_stretched-Iwi092","card-item-text_wrap":"card-item-text_wrap-jd4z4M",cardItemTextWrap:"card-item-text_wrap-jd4z4M","card-item-tag":"card-item-tag-TlAD7m",cardItemTag:"card-item-tag-TlAD7m","card-branches":"card-branches-oDYeZA",cardBranches:"card-branches-oDYeZA","card-branch-v":"card-branch-v-p9osl8",cardBranchV:"card-branch-v-p9osl8","card-branch-v_visible":"card-branch-v_visible-eMYCWE",cardBranchVVisible:"card-branch-v_visible-eMYCWE","card-branch-v_half":"card-branch-v_half-WWxYv9",cardBranchVHalf:"card-branch-v_half-WWxYv9","card-branch-h":"card-branch-h-dnwZKM",cardBranchH:"card-branch-h-dnwZKM","card-branch-h_long":"card-branch-h_long-pPKBpo",cardBranchHLong:"card-branch-h_long-pPKBpo","card-non-tree-container":"card-non-tree-container-ZArpHq",cardNonTreeContainer:"card-non-tree-container-ZArpHq"},t.Z=a},818373:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".checkbox-jdIbki{align-items:center;display:flex}.checkbox-jdIbki .content-Skwa2Z{align-items:center;gap:12px;display:flex}.checkbox-jdIbki .label-fXtvP6{color:var(--Light-usage-text---color-text-0,#1d1c24);font-size:14px;font-style:normal;font-weight:400;line-height:20px}.checkbox-jdIbki .line-k2GZRO{background-color:var(--Light-usage-border---color-border-1,rgba(29,28,37,.12));align-items:center;width:1px;height:16px;margin-left:12px}.checkbox-jdIbki .tip-b0RrOs{width:16px;height:16px;position:absolute;top:2px;left:0}",""]),a.locals={checkbox:"checkbox-jdIbki",content:"content-Skwa2Z",label:"label-fXtvP6",line:"line-k2GZRO",tip:"tip-b0RrOs"},t.Z=a},391875:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".icon-HWVZml>svg{width:16px;height:15px}",""]),a.locals={icon:"icon-HWVZml"},t.Z=a},216599:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".check-box-DZ400_{position:absolute}.form-check-tip-gccXJ5{transform-origin:0;color:var(--semi-color-danger);line-height:16px;display:inline-block;position:absolute;top:4px;left:0;right:0;font-size:12px!important}",""]),a.locals={"check-box":"check-box-DZ400_",checkBox:"check-box-DZ400_","form-check-tip":"form-check-tip-gccXJ5",formCheckTip:"form-check-tip-gccXJ5"},t.Z=a},575694:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,'.process-content-V3jtEI{white-space:break-spaces;background:var(--light-color-white-white,#fff);width:100%;height:100%;font-size:12px;font-weight:400;line-height:15px}.process-content-V3jtEI .debug-result-content-PPl7j5{flex-direction:column;height:100%;display:flex}.process-content-V3jtEI .debug-result-content-PPl7j5 .llm-api-content-eJW9aE{word-break:break-word;height:calc(100% - 40px)}.llm-debug-empty-_v9mkR{height:100%;color:var(--light-usage-text-color-text-3,var(--light-usage-disabled-color-disabled-text,rgba(28,31,35,.35)));justify-content:center;align-items:center;font-size:14px;display:flex}.llm-debug-empty-_v9mkR .llm-debug-empty-content-MR20uI{padding:16px}.error-reason-box-GrLuLI{border-top:1px solid rgba(29,28,36,.08);padding:12px}.mb-content-dLGdvZ{flex-direction:column;height:100%;display:flex}.mb-content-dLGdvZ .auto-hide-last-sibling-br>div{border-top-left-radius:0;border-top-right-radius:0}.mb-content-dLGdvZ .auto-hide-last-sibling-br>div>div:first-child{display:none}.mb-content-dLGdvZ .flow-markdown-body{flex:1}.mb-content-dLGdvZ .mb-header-Adjz56{color:#f7f7fa;background-color:#41414d;justify-content:space-between;align-items:center;height:40px;padding:0 12px;font-size:12px;line-height:40px;display:flex}.mb-content-dLGdvZ .mb-header-Adjz56 .icon-copy-X6T571{cursor:pointer;padding:6px}.mb-content-dLGdvZ .mb-header-Adjz56 .icon-copy-X6T571 svg{width:16px;height:16px}.mb-content-dLGdvZ .mb-header-Adjz56 .icon-copy-X6T571 svg path{fill:#fff;fill-opacity:1}.mb-content-dLGdvZ .mb-main-WzKrz4{background-color:#12131b;border-top-left-radius:0;border-top-right-radius:0;height:100%;display:flex;overflow-y:auto}.mb-content-dLGdvZ .mb-main-WzKrz4 .mb-left-L8YH5L{width:100%}.mb-content-dLGdvZ .mb-main-WzKrz4 .mb-left-L8YH5L.half-width-h9H0Gp{width:50%}.mb-content-dLGdvZ .mb-main-WzKrz4 .mb-right-bqZ0Ik{flex:none;width:50%;position:relative}.mb-content-dLGdvZ .mb-main-WzKrz4 .mb-right-bqZ0Ik:before{content:"";background-color:#565563;width:1px;position:absolute;top:0;bottom:0;left:0}.debug-params-table-DrAahj{flex:1;width:100%;display:flex;overflow:auto}.debug-params-table-DrAahj .empty-X0VDR7{margin-top:90px}.debug-params-table-DrAahj .semi-spin-block.semi-spin{display:flex}.debug-params-table-DrAahj .semi-spin-children{display:flex}.debug-params-table-DrAahj .semi-table-fixed-header{display:flex}.debug-params-table-DrAahj .semi-table-body{padding-bottom:12px;max-height:calc(100% - 40px)!important}.debug-params-table-DrAahj .semi-table-row:has(.disable){display:none}.debug-params-table-DrAahj .semi-table-header{position:relative}.debug-params-table-DrAahj .semi-table-header:after{content:"";background:var(--semi-color-border);width:calc(100% - 32px);height:1px;position:absolute;bottom:0;left:16px}.debug-params-table-DrAahj .semi-table-placeholder{border-bottom:0}.debug-params-table-DrAahj .semi-table-tbody>.semi-table-row>.semi-table-row-cell{vertical-align:top;border-bottom:none;padding:8px 16px}.debug-params-table-DrAahj .semi-table-thead>.semi-table-row>.semi-table-row-head{border-bottom:none;padding-top:9px;padding-bottom:9px}.debug-params-table-DrAahj .semi-table-tbody>.semi-table-row:hover>.semi-table-row-cell{background-color:transparent;background-image:none}.debug-check-header-RJbVVF{flex-shrink:0;justify-content:space-between;align-items:center;width:100%;height:40px;padding:0 16px;display:flex}.debug-check-header-RJbVVF .debug-check-tab-BDFxZ9{align-items:center;gap:12px;font-size:14px;font-style:normal;font-weight:600;line-height:20px;display:flex}.debug-check-header-RJbVVF .debug-check-tab-BDFxZ9 .debug-check-tab-line-kXLbEO{background:var(--Light-usage-border---color-border,rgba(28,29,37,.12));width:1px;height:16px}.debug-check-header-RJbVVF .debug-check-tab-BDFxZ9 .debug-check-tab-item-XT192G{cursor:pointer;color:var(--Light-usage-text---color-text-2,rgba(29,28,36,.6))}.debug-check-header-RJbVVF .debug-check-tab-BDFxZ9 .debug-check-tab-item-active-Zsr8_M{color:var(--Light-color-brand---brand-5,#4c54f0)}.debug-check-header-RJbVVF .icon-K15_kw{cursor:pointer;border:.75px solid rgba(29,28,36,.12);border-radius:6px;justify-content:center;align-items:center;width:32px;height:24px;display:flex}.debug-check-header-RJbVVF .icon-K15_kw svg{width:12px;height:12px;transform:rotate(-90deg)}.debug-check-header-RJbVVF .icon-K15_kw.open-vtnWZZ svg{transform:rotate(90deg)}',""]),a.locals={"process-content":"process-content-V3jtEI",processContent:"process-content-V3jtEI","debug-result-content":"debug-result-content-PPl7j5",debugResultContent:"debug-result-content-PPl7j5","llm-api-content":"llm-api-content-eJW9aE",llmApiContent:"llm-api-content-eJW9aE","llm-debug-empty":"llm-debug-empty-_v9mkR",llmDebugEmpty:"llm-debug-empty-_v9mkR","llm-debug-empty-content":"llm-debug-empty-content-MR20uI",llmDebugEmptyContent:"llm-debug-empty-content-MR20uI","error-reason-box":"error-reason-box-GrLuLI",errorReasonBox:"error-reason-box-GrLuLI","mb-content":"mb-content-dLGdvZ",mbContent:"mb-content-dLGdvZ","mb-header":"mb-header-Adjz56",mbHeader:"mb-header-Adjz56","icon-copy":"icon-copy-X6T571",iconCopy:"icon-copy-X6T571","mb-main":"mb-main-WzKrz4",mbMain:"mb-main-WzKrz4","mb-left":"mb-left-L8YH5L",mbLeft:"mb-left-L8YH5L","half-width":"half-width-h9H0Gp",halfWidth:"half-width-h9H0Gp","mb-right":"mb-right-bqZ0Ik",mbRight:"mb-right-bqZ0Ik","debug-params-table":"debug-params-table-DrAahj",debugParamsTable:"debug-params-table-DrAahj",empty:"empty-X0VDR7","debug-check-header":"debug-check-header-RJbVVF",debugCheckHeader:"debug-check-header-RJbVVF","debug-check-tab":"debug-check-tab-BDFxZ9",debugCheckTab:"debug-check-tab-BDFxZ9","debug-check-tab-line":"debug-check-tab-line-kXLbEO",debugCheckTabLine:"debug-check-tab-line-kXLbEO","debug-check-tab-item":"debug-check-tab-item-XT192G",debugCheckTabItem:"debug-check-tab-item-XT192G","debug-check-tab-item-active":"debug-check-tab-item-active-Zsr8_M",debugCheckTabItemActive:"debug-check-tab-item-active-Zsr8_M",icon:"icon-K15_kw",open:"open-vtnWZZ"},t.Z=a},200601:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,'.create-modal-pzySQx .semi-modal{max-width:1800px}.create-modal-pzySQx .semi-table-row-cell{overflow:hidden}.create-modal-pzySQx.big-modal-qaPc4l .modal-steps-nt2rbx{width:810px;margin:0 auto 24px}.textarea-single-line-QVMjQB .semi-input-textarea-counter{position:absolute;top:3px;right:0}.no-wrap-qLNXMk,.no-wrap-min-width-Q50Srr{white-space:nowrap}.params-layout-R3YGX6{justify-content:space-between;display:flex}.params-tag-_Ge8iA{margin-bottom:18px;padding-top:22px;font-size:18px;font-weight:600}.request-params-alN3YH .semi-table-placeholder{border-bottom:0;padding:1px 12px}.response-params-eA46dX .semi-table-placeholder{border-bottom:0;padding:1px 12px}.request-params-edit-nuqgXc .semi-table-thead .semi-table-row-head:first-child{padding-left:32px!important}.response-params-edit-ND7Hmz .semi-table-thead .semi-table-row-head:first-child{padding-left:32px!important}.request-params-edit-nuqgXc .semi-table-placeholder{border-bottom:0;padding:1px 12px}.response-params-edit-ND7Hmz .semi-table-placeholder{border-bottom:0;padding:1px 12px}.check-box-VG3Qxx{position:absolute}.form-check-tip-yT8BGr{transform-origin:0;color:var(--semi-color-danger);line-height:16px;display:inline-block;position:absolute;top:4px;left:0;right:0;font-size:12px!important}.w110-sD8csv{width:110%}.plugin-icon-error-c3Fxnp{margin-right:4px;font-size:13px;position:relative;top:2px}.plugin-tooltip-error-iJp55a{width:calc(100% - 20px);color:var(--semi-color-danger)!important;font-size:12px!important;line-height:16px!important}.add-params-btn-wrap-F6qzt5{border-top:1px solid var(--semi-color-border);margin:0 24px;padding-bottom:12px}.empty-content-y1oXMo{color:var(--light-usage-text-color-text-2,rgba(28,31,35,.6));text-align:center;margin:36px 0 54px;font-size:14px}.table-style-list-uzSG8W .semi-table-body{padding:12px 0}.table-style-list-uzSG8W .semi-select{border-radius:8px}.table-style-list-uzSG8W .semi-table-row-cell{padding:12px 2px!important}.table-style-list-uzSG8W .semi-table-expand-icon{margin-right:8px}.table-style-list-uzSG8W .semi-table-header{position:relative}.table-style-list-uzSG8W .semi-table-header:after{content:"";background:var(--semi-color-border);width:calc(100% - 48px);height:1px;position:absolute;bottom:0;left:24px}.table-style-list-uzSG8W .semi-table-thead .semi-table-row-head:first-child{padding-left:32px!important}.table-style-list-uzSG8W .semi-table-tbody>.semi-table-row>.semi-table-row-cell{border-bottom-color:transparent}.table-style-list-uzSG8W .semi-table-thead>.semi-table-row>.semi-table-row-head{color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));background:#f7f7fa;border-bottom:1px solid transparent;padding-left:10px;padding-right:10px;font-size:12px;font-weight:600}.table-style-list-uzSG8W .semi-table-row:hover>.semi-table-row-cell{background:0 0!important;border-bottom:1px solid transparent!important}.table-style-list-uzSG8W .semi-table-tbody>.semi-table-row{cursor:pointer;color:var(--light-usage-text-color-text-2,rgba(28,29,35,.6));background:#f7f7fa;font-size:12px;font-style:normal;font-weight:400}.table-style-list-uzSG8W .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left{cursor:pointer;color:var(--light-usage-text-color-text-2,rgba(28,29,35,.6));background:#f7f7fa;font-size:12px;font-style:normal;font-weight:400}.table-style-list-uzSG8W .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-right{cursor:pointer;color:var(--light-usage-text-color-text-2,rgba(28,29,35,.6));background:#f7f7fa;font-size:12px;font-style:normal;font-weight:400}.table-style-list-uzSG8W .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left:before{cursor:pointer;color:var(--light-usage-text-color-text-2,rgba(28,29,35,.6));background:#f7f7fa;font-size:12px;font-style:normal;font-weight:400}.table-style-list-uzSG8W .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right:before{cursor:pointer;color:var(--light-usage-text-color-text-2,rgba(28,29,35,.6));background:#f7f7fa;font-size:12px;font-style:normal;font-weight:400}.table-style-list-uzSG8W .semi-spin-block.semi-spin{height:100%}.table-style-list-uzSG8W .semi-table-row:hover>.semi-table-row-cell:first-child{border-top-left-radius:8px!important;border-bottom-left-radius:8px!important}.table-style-list-uzSG8W .semi-table-row:hover>.semi-table-row-cell:last-child{border-top-right-radius:8px!important;border-bottom-right-radius:8px!important}.table-style-list-uzSG8W .semi-icon-chevron_down{opacity:.6}.table-style-list-uzSG8W.request-params-alN3YH .semi-table-tbody>.semi-table-row>.semi-table-row-cell{padding-left:16px!important}.table-style-list-uzSG8W.response-params-eA46dX .semi-table-tbody>.semi-table-row>.semi-table-row-cell{padding-left:16px!important}.input-modal-m6oSCe .runbtn-Q5S8QY{text-align:right;padding:12px}.input-modal-m6oSCe .semi-modal-footer{margin:0 0 12px}.input-modal-m6oSCe .debug-params-box-oHdlL1 .semi-table-thead>.semi-table-row>.semi-table-row-head{border-bottom-width:1px}.input-modal-m6oSCe .debug-params-box-oHdlL1 .semi-table-tbody>.semi-table-row:hover>.semi-table-row-cell{background:0 0!important;border-bottom:1px solid transparent!important}.debug-check-u44fx1{height:100%;padding-bottom:11px;overflow:hidden}.debug-check-u44fx1 .semi-row{height:100%}.debug-check-u44fx1 .semi-col{height:100%}.debug-check-u44fx1 .main-container-vNgRcA{flex-direction:column;max-width:100vw;height:100%;display:flex}.debug-check-u44fx1 .card-header-Yaroon{margin-bottom:14px;padding:8px 0}.debug-check-u44fx1 .card-title-fsPCJk{color:var(--light-usage-text-color-text-0,#1c1f23);text-overflow:ellipsis;font-size:18px;font-style:normal;font-weight:600}.debug-check-u44fx1 .card-debug-check-caBquS{border:1px solid var(--Light-usage-border---color-border,rgba(29,28,37,.08));background:#fff;border-radius:8px;height:100%;max-height:542px;overflow:auto}.debug-check-u44fx1 .card-debug-check-caBquS .markdown-body{overflow:hidden}.debug-check-u44fx1 .debug-params-box-oHdlL1{border:1px solid rgba(29,28,35,.08);border-radius:8px;flex-direction:column;width:100%;display:flex}.debug-check-u44fx1 .debug-params-box-oHdlL1 .runbtn-Q5S8QY{text-align:right;border-top:1px solid var(--semi-color-border);margin:0 16px;padding:12px 0}.debug-check-u44fx1 .debug-params-box-oHdlL1 .runbtn-Q5S8QY .semi-button.semi-button-loading{color:rgba(29,28,35,.2)}.safe-check-error-gid8KR{color:#f93920}.safe-check-error-gid8KR a{color:#4d53e8}.base-info-form-x1Lkuo .semi-icon-chevron_down{opacity:.6}.base-info-form-x1Lkuo .plugin-url-input-V6CAcc .semi-input-prepend{border:none}.base-info-form-x1Lkuo .plugin-url-prefix-ahens8{max-width:480px}.table-wrapper-RSx6UB{border:1px solid rgba(29,28,35,.08);border-radius:8px}.cascader-dropdown-R0RBcC .semi-cascader-option-label{color:#1d1c23;font-weight:400}',""]),a.locals={"create-modal":"create-modal-pzySQx",createModal:"create-modal-pzySQx","big-modal":"big-modal-qaPc4l",bigModal:"big-modal-qaPc4l","modal-steps":"modal-steps-nt2rbx",modalSteps:"modal-steps-nt2rbx","textarea-single-line":"textarea-single-line-QVMjQB",textareaSingleLine:"textarea-single-line-QVMjQB","no-wrap":"no-wrap-qLNXMk",noWrap:"no-wrap-qLNXMk","no-wrap-min-width":"no-wrap-min-width-Q50Srr",noWrapMinWidth:"no-wrap-min-width-Q50Srr","params-layout":"params-layout-R3YGX6",paramsLayout:"params-layout-R3YGX6","params-tag":"params-tag-_Ge8iA",paramsTag:"params-tag-_Ge8iA","request-params":"request-params-alN3YH",requestParams:"request-params-alN3YH","response-params":"response-params-eA46dX",responseParams:"response-params-eA46dX","request-params-edit":"request-params-edit-nuqgXc",requestParamsEdit:"request-params-edit-nuqgXc","response-params-edit":"response-params-edit-ND7Hmz",responseParamsEdit:"response-params-edit-ND7Hmz","check-box":"check-box-VG3Qxx",checkBox:"check-box-VG3Qxx","form-check-tip":"form-check-tip-yT8BGr",formCheckTip:"form-check-tip-yT8BGr",w110:"w110-sD8csv","plugin-icon-error":"plugin-icon-error-c3Fxnp",pluginIconError:"plugin-icon-error-c3Fxnp","plugin-tooltip-error":"plugin-tooltip-error-iJp55a",pluginTooltipError:"plugin-tooltip-error-iJp55a","add-params-btn-wrap":"add-params-btn-wrap-F6qzt5",addParamsBtnWrap:"add-params-btn-wrap-F6qzt5","empty-content":"empty-content-y1oXMo",emptyContent:"empty-content-y1oXMo","table-style-list":"table-style-list-uzSG8W",tableStyleList:"table-style-list-uzSG8W","input-modal":"input-modal-m6oSCe",inputModal:"input-modal-m6oSCe",runbtn:"runbtn-Q5S8QY","debug-params-box":"debug-params-box-oHdlL1",debugParamsBox:"debug-params-box-oHdlL1","debug-check":"debug-check-u44fx1",debugCheck:"debug-check-u44fx1","main-container":"main-container-vNgRcA",mainContainer:"main-container-vNgRcA","card-header":"card-header-Yaroon",cardHeader:"card-header-Yaroon","card-title":"card-title-fsPCJk",cardTitle:"card-title-fsPCJk","card-debug-check":"card-debug-check-caBquS",cardDebugCheck:"card-debug-check-caBquS","safe-check-error":"safe-check-error-gid8KR",safeCheckError:"safe-check-error-gid8KR","base-info-form":"base-info-form-x1Lkuo",baseInfoForm:"base-info-form-x1Lkuo","plugin-url-input":"plugin-url-input-V6CAcc",pluginUrlInput:"plugin-url-input-V6CAcc","plugin-url-prefix":"plugin-url-prefix-ahens8",pluginUrlPrefix:"plugin-url-prefix-ahens8","table-wrapper":"table-wrapper-RSx6UB",tableWrapper:"table-wrapper-RSx6UB","cascader-dropdown":"cascader-dropdown-R0RBcC",cascaderDropdown:"cascader-dropdown-R0RBcC"},t.Z=a},326046:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".action-input-value-pre-HV53h_{border-right:none;width:115px}.action-input-value-content-JU2Iqe{flex:1}.reference-option-item-F7rLY1{flex-wrap:nowrap;justify-content:space-between;width:200px;display:flex}.reference-option-item-F7rLY1 .reference-option-subtext-iN0fo3{color:rgba(29,28,35,.35)}",""]),a.locals={"action-input-value-pre":"action-input-value-pre-HV53h_",actionInputValuePre:"action-input-value-pre-HV53h_","action-input-value-content":"action-input-value-content-JU2Iqe",actionInputValueContent:"action-input-value-content-JU2Iqe","reference-option-item":"reference-option-item-F7rLY1",referenceOptionItem:"reference-option-item-F7rLY1","reference-option-subtext":"reference-option-subtext-iN0fo3",referenceOptionSubtext:"reference-option-subtext-iN0fo3"},t.Z=a},336940:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".modal-wrapper-w1Xryf .arr-edit-btn-_hSH1U{background-color:#f7f7fa!important;border-color:rgba(29,28,37,.12)!important}.modal-wrapper-w1Xryf .arr-edit-btn-_hSH1U svg path:first-child{stroke:#4d53e8;stroke-opacity:1}.modal-wrapper-w1Xryf .arr-edit-btn-_hSH1U svg path:last-child{fill:#4d53e8;fill-opacity:1}.modal-wrapper-w1Xryf .semi-button-disabled{color:rgba(56,55,67,.2)!important;background-color:rgba(75,74,88,.04)!important}.modal-wrapper-w1Xryf .semi-button-disabled svg path:first-child{stroke:rgba(56,55,67,.2)}.modal-wrapper-w1Xryf .semi-button-disabled svg path:last-child{fill:rgba(56,55,67,.2)}",""]),a.locals={"modal-wrapper":"modal-wrapper-w1Xryf",modalWrapper:"modal-wrapper-w1Xryf","arr-edit-btn":"arr-edit-btn-_hSH1U",arrEditBtn:"arr-edit-btn-_hSH1U"},t.Z=a},634283:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".plugin-modal-filter-s7_Ah7{gap:12px;display:flex}",""]),a.locals={"plugin-modal-filter":"plugin-modal-filter-s7_Ah7",pluginModalFilter:"plugin-modal-filter-s7_Ah7"},t.Z=a},981625:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".tool-tag-list-HmFsfo{white-space:nowrap;flex:1 0;padding-top:16px;overflow:auto}.tool-tag-list-label-iUkVKF{height:40px;color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));margin-bottom:8px;padding:0 12px;font-size:12px;font-weight:600;line-height:40px}.tool-tag-list-cell-AoRqjh{cursor:pointer;color:#1d1c23;border-radius:3px;align-items:center;height:44px;margin-bottom:4px;padding:0 10px 0 12px;font-size:14px;line-height:44px;display:flex;position:relative}.tool-tag-list-cell-icon-_M5iNW{flex-shrink:0;margin-right:8px;display:flex}.tool-tag-list-cell-icon-_M5iNW>svg{width:24px;height:24px}.tool-tag-list-cell-icon-_M5iNW>svg>path{fill:#1d1c23}.tool-tag-list-cell-icon-_M5iNW>img{width:24px;height:24px;padding:4px}.tool-tag-list-cell-AoRqjh .tool-tag-list-cell-icon-_M5iNW{display:flex}.tool-tag-list-cell-favorite-JBCqJP>svg{width:16px;height:16px}.tool-tag-list-cell-favorite-JBCqJP>svg>path{fill:#1d1c23}.tool-tag-list-cell-favorite-JBCqJP svg{margin:4px}.tool-tag-list-cell-divider-FUuyRn{background:rgba(28,29,35,.12);width:calc(100% - 24px);margin:12px}.tool-tag-list-cell-AoRqjh:hover{color:var(--light-usage-text-color-text-0,#1c1f23);background:var(--light-usage-fill-color-fill-0,rgba(46,50,56,.05));border-radius:8px}.tool-tag-list-cell-AoRqjh.active-n4ZanX{color:var(--light-usage-text-color-text-0,#1c1d23);background:var(--light-usage-fill-color-fill-0,rgba(46,47,56,.05));border-radius:8px;font-size:14px;font-weight:600}.tool-tag-list-cell-AoRqjh.active-n4ZanX .tool-tag-list-cell-icon-_M5iNW>svg{width:24px;height:24px}.tool-tag-list-cell-AoRqjh.active-n4ZanX .tool-tag-list-cell-icon-_M5iNW>svg>path{fill:#4d53e8}.tool-tag-list-cell-AoRqjh.active-n4ZanX .tool-tag-list-cell-icon-_M5iNW.tool-tag-list-cell-favorite-JBCqJP>svg{width:16px;height:16px}.tool-tag-list-cell-AoRqjh.active-n4ZanX .tool-tag-list-cell-icon-_M5iNW.tool-tag-list-cell-favorite-JBCqJP>svg>path{fill:#4d53e8}",""]),a.locals={"tool-tag-list":"tool-tag-list-HmFsfo",toolTagList:"tool-tag-list-HmFsfo","tool-tag-list-label":"tool-tag-list-label-iUkVKF",toolTagListLabel:"tool-tag-list-label-iUkVKF","tool-tag-list-cell":"tool-tag-list-cell-AoRqjh",toolTagListCell:"tool-tag-list-cell-AoRqjh","tool-tag-list-cell-icon":"tool-tag-list-cell-icon-_M5iNW",toolTagListCellIcon:"tool-tag-list-cell-icon-_M5iNW","tool-tag-list-cell-favorite":"tool-tag-list-cell-favorite-JBCqJP",toolTagListCellFavorite:"tool-tag-list-cell-favorite-JBCqJP","tool-tag-list-cell-divider":"tool-tag-list-cell-divider-FUuyRn",toolTagListCellDivider:"tool-tag-list-cell-divider-FUuyRn",active:"active-n4ZanX"},t.Z=a},574371:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,'.plugin-item-oAKbCp{box-sizing:border-box;justify-content:space-between;align-items:center;width:calc(100% - 68px);margin:14px 0 0 68px;padding-bottom:14px;padding-right:12px;display:flex}.plugin-item-oAKbCp:not(:last-child){border-bottom:1px solid var(--light-usage-border-color-border,rgba(28,31,35,.08));position:relative}.plugin-item-oAKbCp .plugin-api-main-dqrzsD{flex:1}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-name-UqDrOT{width:100%}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-name-UqDrOT .semi-typography{font-size:16px;font-weight:600;line-height:22px;color:var(--light-usage-text-color-text-0,#1c1d23)!important}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-desc-WAgX9z{flex-direction:column;width:100%;margin-top:4px;display:flex}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-desc-WAgX9z .semi-typography{font-size:12px;line-height:16px;color:var(--light-usage-text-color-text-2,rgba(28,31,35,.6))!important}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-desc-WAgX9z .api-params-zMQ6Er{align-items:center;margin-top:12px;display:flex}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-desc-WAgX9z .api-params-zMQ6Er .params-tags-qZvh1g{max-width:500px}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-desc-WAgX9z .api-params-zMQ6Er .params-tags-qZvh1g .tag-item-xE8Wbi{width:-moz-fit-content;width:fit-content;min-width:-moz-fit-content;min-width:fit-content;color:var(--light-usage-text-color-text-2,rgba(28,29,35,.6));border-radius:6px;font-size:12px;font-style:normal;font-weight:500;line-height:16px}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-desc-WAgX9z .api-params-zMQ6Er .params-tags-qZvh1g>:not(:first-child){margin-left:16px}.plugin-item-oAKbCp .plugin-api-main-dqrzsD .plugin-api-desc-WAgX9z .api-params-zMQ6Er .params-desc-rg8UB2{cursor:pointer;color:#4d53e8;flex-shrink:0;font-size:12px;line-height:16px;letter-spacing:.12px!important}.plugin-item-oAKbCp .plugin-api-method-lX8Z_U{flex-shrink:0;align-items:center;margin-left:20px;display:flex}.plugin-panel-header-mv2ZLY{flex-wrap:nowrap;flex:1;align-items:center;width:0;min-width:0;height:80px;font-weight:400;display:flex}.plugin-panel-header-mv2ZLY .creator-icon-pVxZFO{border-radius:50%;flex-shrink:0;display:flex}.plugin-panel-header-mv2ZLY .creator-icon-pVxZFO img{width:14px;height:14px}.plugin-panel-header-mv2ZLY .creator-time-lo0IYg{color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));text-align:right;letter-spacing:.12px;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.plugin-panel-header-mv2ZLY .header-icon-Z6h2PO{flex-shrink:0;display:flex}.plugin-panel-header-mv2ZLY .header-icon-Z6h2PO img{background:#fff;width:36px;height:36px}.plugin-panel-header-mv2ZLY .header-main-Jrw_pE{flex:1;width:0;min-width:0;margin:0 16px;overflow:hidden}.plugin-panel-header-mv2ZLY .header-main-Jrw_pE .header-name-eQELxI{align-items:center;width:100%;display:flex}.plugin-panel-header-mv2ZLY .header-main-Jrw_pE .header-name-eQELxI .semi-typography{font-size:16px;font-weight:600;line-height:22px;color:var(--light-usage-text-color-text-0,#1c1d23)!important;word-wrap:break-word!important}.plugin-panel-header-mv2ZLY .header-main-Jrw_pE .header-name-eQELxI .semi-highlight-tag{color:#fda633;background-color:transparent}.plugin-panel-header-mv2ZLY .header-main-Jrw_pE .header-name-eQELxI .market-link-icon-NyqBWN{display:none}.plugin-panel-header-mv2ZLY .header-main-Jrw_pE .header-desc-Bo7Quf{width:100%}.plugin-panel-header-mv2ZLY .header-main-Jrw_pE .header-desc-Bo7Quf .semi-typography{letter-spacing:.12px;font-size:12px;font-weight:400;color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8))!important;word-wrap:break-word!important}.plugin-panel-header-mv2ZLY .header-info-hUmN8f{color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));text-align:right;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.plugin-panel-header-mv2ZLY .header-info-hUmN8f .semi-divider-vertical{height:10px;color:var(--light-usage-border-color-border-1,rgba(28,29,35,.12))}.plugin-content-k4cLzr{width:100%;height:100%;padding-bottom:12px;overflow:auto}.plugin-content-k4cLzr .loading-more-DwK2kU{text-align:center}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7{padding:0 36px 0 22px;display:flex}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .plugin-content-sort-eeGYYL{width:150px}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .bot-tag-LVyima{align-items:center;display:flex}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-content{padding:0}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-button.semi-tabs-tab-active{color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));background-color:transparent}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-button.semi-tabs-tab-active .semi-icon>svg{width:20px;height:20px}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-button.semi-tabs-tab-active .semi-icon>svg>path{fill:rgba(28,29,35,.8)}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:-webkit-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));top:0}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:-moz-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));top:0}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:is(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:var(--light-usage-text-color-text-1,rgba(28,29,35,.8));top:0}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:-webkit-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:-moz-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:is(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-content-k4cLzr .plugin-content-filter-_kuCb7 .semi-tabs-tab:last-child:before{content:"";background-color:var(--light-usage-border-color-border,rgba(28,29,35,.12));width:1px;height:16px;position:absolute;top:12px;left:-4px}.plugin-content-k4cLzr .plugin-collapse-H4GSo3{width:100%}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .semi-collapse-item{border:none;position:relative}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .semi-collapse-header:hover:before{content:"";background-color:#f7f7fa;width:100%;height:1px;position:absolute;top:-1px;left:0}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .semi-collapse-header{border-bottom:1px solid #dfdfdf;border-radius:0;margin:0}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .semi-collapse-header:hover{background:var(--light-usage-fill-color-fill-0,rgba(46,47,56,.05));border-bottom:1px solid transparent;border-radius:8px}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .semi-collapse-header:active{background:var(--light-usage-fill-color-fill-0,rgba(46,47,56,.05))}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .semi-collapse-header-icon{width:auto;height:24px}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .semi-collapse-header-icon:hover{background:var(--light-usage-fill-color-fill-1,rgba(46,47,56,.09));border-radius:5px}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .semi-collapse-header:hover .market-link-icon-NyqBWN{display:block}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .item-container-e3jOtt{padding:0}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .collapse-icon-SNulcI{cursor:pointer;padding:4px}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .collapse-icon-SNulcI>svg{width:16px;height:16px}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .collapse-icon-SNulcI>svg>path{fill:rgba(28,29,35,.35)}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .activePanel-hTMlwR{background:var(--light-usage-fill-color-fill-0,rgba(46,47,56,.05));border:none;border-radius:8px;margin-bottom:8px}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .activePanel-hTMlwR .semi-collapse-header{border-bottom:1px solid #dfdfdf}.plugin-content-k4cLzr .plugin-collapse-H4GSo3 .activePanel-hTMlwR .semi-collapse-header:hover{background:0 0}.plugin-content-k4cLzr .semi-collapse-header{min-width:870px;padding:14px 16px;height:140px!important;margin:0!important}.plugin-collapse-H4GSo3 .semi-collapse-header{min-width:870px;padding:14px 16px;height:140px!important;margin:0!important}.plugin-content-k4cLzr .semi-collapse-header[aria-expanded=true]{border-radius:8px 8px 0 0!important}.plugin-collapse-H4GSo3 .semi-collapse-header[aria-expanded=true]{border-radius:8px 8px 0 0!important}.plugin-content-k4cLzr .semi-collapse{padding:16px 0 12px}.plugin-collapse-H4GSo3 .semi-collapse{padding:16px 0 12px}.plugin-content-k4cLzr .semi-collapse-content{border-radius:0 0 8px 8px;padding:0}.plugin-collapse-H4GSo3 .semi-collapse-content{border-radius:0 0 8px 8px;padding:0}button.operator-btn-rd7LZ6{width:98px}button.operator-btn-rd7LZ6.added-XXtmGq{color:var(--light-usage-primary-color-primary-disabled,#b4baf6);background:var(--light-usage-bg-color-bg-0,#fff);border:1px solid var(--light-usage-disabled-color-disabled-border,#f0f0f5)}button.operator-btn-rd7LZ6.addedMouseIn-aXZEwa{color:var(--light-color-red-red-5,#ff441e);border:1px solid var(--light-usage-border-color-border-1,rgba(29,28,35,.12));background:#fff}.workflow_count_span-GLM8aY{color:#fff;vertical-align:1px;background-color:#4d53e8;border-radius:8px;width:16px;height:16px;margin-left:6px;font-size:10px;line-height:17px;display:inline-block}.store-plugin-tools-B7v_eG{color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));margin-top:8px;font-size:12px;display:flex}.plugin-total-RxZGQd{color:var(--light-usage-text-color-text-3,rgba(28,29,35,.35));margin-top:4px;margin-bottom:4px;font-size:12px}',""]),a.locals={"plugin-item":"plugin-item-oAKbCp",pluginItem:"plugin-item-oAKbCp","plugin-api-main":"plugin-api-main-dqrzsD",pluginApiMain:"plugin-api-main-dqrzsD","plugin-api-name":"plugin-api-name-UqDrOT",pluginApiName:"plugin-api-name-UqDrOT","plugin-api-desc":"plugin-api-desc-WAgX9z",pluginApiDesc:"plugin-api-desc-WAgX9z","api-params":"api-params-zMQ6Er",apiParams:"api-params-zMQ6Er","params-tags":"params-tags-qZvh1g",paramsTags:"params-tags-qZvh1g","tag-item":"tag-item-xE8Wbi",tagItem:"tag-item-xE8Wbi","params-desc":"params-desc-rg8UB2",paramsDesc:"params-desc-rg8UB2","plugin-api-method":"plugin-api-method-lX8Z_U",pluginApiMethod:"plugin-api-method-lX8Z_U","plugin-panel-header":"plugin-panel-header-mv2ZLY",pluginPanelHeader:"plugin-panel-header-mv2ZLY","creator-icon":"creator-icon-pVxZFO",creatorIcon:"creator-icon-pVxZFO","creator-time":"creator-time-lo0IYg",creatorTime:"creator-time-lo0IYg","header-icon":"header-icon-Z6h2PO",headerIcon:"header-icon-Z6h2PO","header-main":"header-main-Jrw_pE",headerMain:"header-main-Jrw_pE","header-name":"header-name-eQELxI",headerName:"header-name-eQELxI","market-link-icon":"market-link-icon-NyqBWN",marketLinkIcon:"market-link-icon-NyqBWN","header-desc":"header-desc-Bo7Quf",headerDesc:"header-desc-Bo7Quf","header-info":"header-info-hUmN8f",headerInfo:"header-info-hUmN8f","plugin-content":"plugin-content-k4cLzr",pluginContent:"plugin-content-k4cLzr","loading-more":"loading-more-DwK2kU",loadingMore:"loading-more-DwK2kU","plugin-content-filter":"plugin-content-filter-_kuCb7",pluginContentFilter:"plugin-content-filter-_kuCb7","plugin-content-sort":"plugin-content-sort-eeGYYL",pluginContentSort:"plugin-content-sort-eeGYYL","bot-tag":"bot-tag-LVyima",botTag:"bot-tag-LVyima","plugin-collapse":"plugin-collapse-H4GSo3",pluginCollapse:"plugin-collapse-H4GSo3","item-container":"item-container-e3jOtt",itemContainer:"item-container-e3jOtt","collapse-icon":"collapse-icon-SNulcI",collapseIcon:"collapse-icon-SNulcI",activePanel:"activePanel-hTMlwR","operator-btn":"operator-btn-rd7LZ6",operatorBtn:"operator-btn-rd7LZ6",added:"added-XXtmGq",addedMouseIn:"addedMouseIn-aXZEwa",workflow_count_span:"workflow_count_span-GLM8aY",workflowCountSpan:"workflow_count_span-GLM8aY","store-plugin-tools":"store-plugin-tools-B7v_eG",storePluginTools:"store-plugin-tools-B7v_eG","plugin-total":"plugin-total-RxZGQd",pluginTotal:"plugin-total-RxZGQd"},t.Z=a},212404:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,'.plugin-perf-statics-PCIJS_{gap:8px;display:flex}.plugin-perf-statics-PCIJS_ .statics-metrics-EFyEv0{align-items:center;gap:4px;display:flex}.plugin-perf-statics-PCIJS_ .statics-metrics-EFyEv0:not(:last-child):after{content:"";background-color:currentColor;width:1px;height:8px;margin-left:8px;margin-right:6px;display:block}',""]),a.locals={"plugin-perf-statics":"plugin-perf-statics-PCIJS_",pluginPerfStatics:"plugin-perf-statics-PCIJS_","statics-metrics":"statics-metrics-EFyEv0",staticsMetrics:"statics-metrics-EFyEv0"},t.Z=a},76894:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".card-button-ULgKj1{cursor:pointer;text-align:center;border:1px solid;border-color:rgba(var(--coze-stroke-5),var(--coze-stroke-5-alpha));background-color:rgba(var(--coze-bg-1),var(--coze-bg-1-alpha));height:32px;color:rgba(var(--coze-fg-3),var(--coze-fg-3-alpha));border-radius:8px;padding:6px 16px;font-size:14px;font-weight:500;line-height:20px}",""]),a.locals={"card-button":"card-button-ULgKj1",cardButton:"card-button-ULgKj1"},t.Z=a},890590:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".container-orqglg{border:1px solid;border-color:rgba(var(--coze-stroke-5),var(--coze-stroke-5-alpha));border-radius:8px;margin-bottom:20px;padding:16px;position:relative}.container-orqglg:not(.skeleton-L9KNpP):hover{background-color:rgba(var(--coze-bg-3),var(--coze-bg-3-alpha));border-color:rgba(var(--coze-stroke-5),var(--coze-stroke-5-alpha));box-shadow:0 6px 8px rgba(28,31,35,.06)}.container-orqglg:not(.skeleton-L9KNpP):hover.shadow-primary-LnKwQ9{box-shadow:0 6px 8px rgba(0,8,16,.12)}.container-orqglg.skeleton-L9KNpP{cursor:default;border-color:transparent}.container-orqglg .check-n6pq7x{z-index:1;position:absolute;top:16px;right:16px}.width100-mBTC1U{width:100%;overflow:hidden}",""]),a.locals={container:"container-orqglg",skeleton:"skeleton-L9KNpP","shadow-primary":"shadow-primary-LnKwQ9",shadowPrimary:"shadow-primary-LnKwQ9",check:"check-n6pq7x",width100:"width100-mBTC1U"},t.Z=a},339502:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,'.plugin-xTWad1{margin-bottom:0}.plugin-xTWad1 .plugin-wrapper-Kvdkvq{position:relative}.plugin-xTWad1 .btn-container-dVepz3{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;display:none;position:absolute;bottom:0;left:0}.plugin-xTWad1 .btn-container-dVepz3.one-column-grid-IDA6oM{grid-template-columns:repeat(1,minmax(0,1fr))}.plugin-xTWad1:hover .btn-container-dVepz3{display:grid}.plugin-xTWad1:hover .description-cP3CQP{visibility:hidden}.plugin-xTWad1 .card-avatar-tPlZkK{border-radius:6px;width:48px;height:48px}.plugin-xTWad1 .card-avatar-tPlZkK:after{content:"";z-index:2;border-style:solid;border-width:1px;border-color:rgba(var(--coze-stroke-5),var(--coze-stroke-5-alpha));border-radius:6px;width:calc(100% - 2px);height:calc(100% - 2px);position:absolute}.plugin-xTWad1 .card-avatar-tPlZkK:before{content:"";z-index:1;background-color:rgba(var(--coze-stroke-5),var(--coze-stroke-5-alpha));border-radius:5px;width:calc(100% - 2px);height:calc(100% - 2px);position:absolute;top:1px;left:1px}.plugin-xTWad1 .card-avatar-tPlZkK>img{z-index:2}',""]),a.locals={plugin:"plugin-xTWad1","plugin-wrapper":"plugin-wrapper-Kvdkvq",pluginWrapper:"plugin-wrapper-Kvdkvq","btn-container":"btn-container-dVepz3",btnContainer:"btn-container-dVepz3","one-column-grid":"one-column-grid-IDA6oM",oneColumnGrid:"one-column-grid-IDA6oM",description:"description-cP3CQP","card-avatar":"card-avatar-tPlZkK",cardAvatar:"card-avatar-tPlZkK"},t.Z=a},489478:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".template-QsIUVW{margin-bottom:0}.template-QsIUVW .template-wrapper-ogPHKn{position:relative}.template-QsIUVW .btn-container-vkmxIx{width:100%;display:none;position:absolute;bottom:0;left:0}.template-QsIUVW:hover .btn-container-vkmxIx{display:block}.template-QsIUVW:hover .description-WS94RD{visibility:hidden}",""]),a.locals={template:"template-QsIUVW","template-wrapper":"template-wrapper-ogPHKn",templateWrapper:"template-wrapper-ogPHKn","btn-container":"btn-container-vkmxIx",btnContainer:"btn-container-vkmxIx",description:"description-WS94RD"},t.Z=a},146689:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".more-HdPRWb.coz-tag-mini{padding:0 4px}",""]),a.locals={more:"more-HdPRWb"},t.Z=a},122631:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".favorite-btn-CQZ09Q{color:#1d1c23}.favorite-btn-CQZ09Q .semi-button-content-right{color:#1d1c23;margin-left:4px}.favorite-btn-CQZ09Q.dark-SlWeT4 .un-collected-WPNqWl path{fill:#1d1c23}",""]),a.locals={"favorite-btn":"favorite-btn-CQZ09Q",favoriteBtn:"favorite-btn-CQZ09Q",dark:"dark-SlWeT4","un-collected":"un-collected-WPNqWl",unCollected:"un-collected-WPNqWl"},t.Z=a},869340:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".icon-filled-TJ6Cgp{color:#ffcc12;width:100%}.icon-stroked-fuKtRz{color:rgba(29,28,35,.35);width:100%}.show-ani-fD8sqq{animation-name:ani-x4fURs;animation-duration:.6s}.show-btn-j0jowu.icon-stroked-fuKtRz{width:100%;color:var(--coz-fg-primary)}@keyframes ani-x4fURs{0%{transform:scale(0)}38%{transform:scale(1.11)}64%{transform:scale(.99)}74%,to{transform:scale(1)}}",""]),a.locals={"icon-filled":"icon-filled-TJ6Cgp",iconFilled:"icon-filled-TJ6Cgp","icon-stroked":"icon-stroked-fuKtRz",iconStroked:"icon-stroked-fuKtRz","show-ani":"show-ani-fD8sqq",showAni:"show-ani-fD8sqq",ani:"ani-x4fURs","show-btn":"show-btn-j0jowu",showBtn:"show-btn-j0jowu"},t.Z=a},295652:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".favorite-icon-btn-JkKqYz{justify-content:center;align-items:center;width:100%;height:100%;display:flex}",""]),a.locals={"favorite-icon-btn":"favorite-icon-btn-JkKqYz",favoriteIconBtn:"favorite-icon-btn-JkKqYz"},t.Z=a},617260:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".empty-jMG4bF{height:100%;overflow:visible}.empty-jMG4bF .spin-WsFW5F{width:100%;height:100%;display:block}.empty-jMG4bF .spin-WsFW5F .semi-spin-wrapper{justify-content:center;display:flex;position:absolute}.empty-jMG4bF .spin-WsFW5F .semi-spin-wrapper svg{width:24px;height:24px}.empty-jMG4bF .spin-WsFW5F .semi-tabs-content{padding:0}.empty-jMG4bF .spin-WsFW5F .semi-spin-children{height:100%}.empty-jMG4bF .spin-WsFW5F .loading-text-X8aAql{color:var(--semi-color-text-3,rgba(29,28,35,.35));margin-left:8px;font-size:16px;font-weight:400;line-height:22px}",""]),a.locals={empty:"empty-jMG4bF",spin:"spin-WsFW5F","loading-text":"loading-text-X8aAql",loadingText:"loading-text-X8aAql"},t.Z=a},876504:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".footer-container-vf98Hl{text-align:center;padding:12px 0 28px}.footer-container-vf98Hl *{vertical-align:middle}.footer-container-vf98Hl .loading-fwJj8T,.footer-container-vf98Hl .error-retry-pboaKN{color:var(--semi-color-text-3,rgba(29,28,35,.35));margin-left:10px;line-height:20px}.footer-container-vf98Hl .error-retry-pboaKN{cursor:pointer;color:var(--semi-color-focus-border,#4d53e8)}.footer-container-vf98Hl .semi-spin-middle>.semi-spin-wrapper{height:16px}.footer-container-vf98Hl .semi-spin-middle>.semi-spin-wrapper svg{width:16px;height:16px}.footer-container-vf98Hl .load-more-btn-ZZeGvr{background:#fff;border-radius:40px;font-weight:600}.footer-container-vf98Hl .load-more-btn-ZZeGvr span{color:#1d1c23}.footer-container-vf98Hl .load-more-btn-ZZeGvr:hover{background:#fff;border:none}.footer-container-vf98Hl.responsive-foot-container-MZUjCc{padding:0 0 16px}.footer-container-vf98Hl.responsive-foot-container-MZUjCc .load-more-btn-ZZeGvr{height:40px;padding:16px 24px}",""]),a.locals={"footer-container":"footer-container-vf98Hl",footerContainer:"footer-container-vf98Hl",loading:"loading-fwJj8T","error-retry":"error-retry-pboaKN",errorRetry:"error-retry-pboaKN","load-more-btn":"load-more-btn-ZZeGvr",loadMoreBtn:"load-more-btn-ZZeGvr","responsive-foot-container":"responsive-foot-container-MZUjCc",responsiveFootContainer:"responsive-foot-container-MZUjCc"},t.Z=a},339629:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".height-whole-100-S3_tjJ{height:100%;overflow:visible}",""]),a.locals={"height-whole-100":"height-whole-100-S3_tjJ",heightWhole100:"height-whole-100-S3_tjJ"},t.Z=a},88634:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".official-label-BF1CQ1{z-index:5;justify-content:center;align-items:center;display:flex;position:absolute;bottom:0;right:0;transform:translate(25%,25%)}.official-label-BF1CQ1.default-qFOcIG svg{width:20px;height:20px}.official-label-BF1CQ1.small-gGjycx svg{width:16px;height:16px}.official-label-BF1CQ1.large-XIRzQG svg{width:32px;height:32px}",""]),a.locals={"official-label":"official-label-BF1CQ1",officialLabel:"official-label-BF1CQ1",default:"default-qFOcIG",small:"small-gGjycx",large:"large-XIRzQG"},t.Z=a},136965:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".progress-wrap-aG7E1c{background:var(--coz-mg-card);border:1px solid var(--coz-stroke-primary);border-radius:var(--default,8px);align-self:stretch;align-items:center;gap:10px;padding:8px 10px;display:flex;overflow:hidden}.progress-wrap-aG7E1c .content-oMctjI{z-index:1}.progress-wrap-aG7E1c .progress-rFtZNC{background:linear-gradient(rgba(148,152,247,.44),rgba(255,255,255,0));position:absolute;top:0;bottom:0;left:0}.progress-wrap-aG7E1c .info-HxV9yH .main-text-MMJMjm{color:var(--coz-fg-primary);font-size:14px;line-height:20px}.progress-wrap-aG7E1c .info-HxV9yH .sub-text-fLSQkk{color:var(--coz-fg-secondary);font-size:12px;line-height:16px}.progress-wrap-aG7E1c .info-HxV9yH .desc-perJT2{display:block}.progress-wrap-aG7E1c .info-HxV9yH .tip-desc-zJnp5I{display:none}.progress-wrap-aG7E1c .info-HxV9yH .semi-image{margin-right:0!important}.progress-wrap-aG7E1c:hover .info-HxV9yH .desc-perJT2{display:none}.progress-wrap-aG7E1c:hover .info-HxV9yH .tip-desc-zJnp5I{display:block}.progress-wrap-aG7E1c.processing-failed-Ngh1Ak{border:1px solid var(--coz-stroke-hglt-red)}.progress-wrap-aG7E1c.processing-failed-Ngh1Ak .sub-text-fLSQkk{color:var(--coz-fg-hglt-red)!important}.progress-wrap-aG7E1c.processing-EXtgs8:hover .info-HxV9yH .desc-perJT2{display:block}.progress-wrap-aG7E1c.processing-EXtgs8:hover .info-HxV9yH .tip-desc-zJnp5I{display:none}.progress-wrap-aG7E1c .right-d4B8Yg{z-index:2}.progress-wrap-aG7E1c .percent-_hawuy{color:var(--coz-fg-primary);text-align:right;text-overflow:ellipsis;font-size:14px;font-style:normal;font-weight:400;line-height:20px}.progress-wrap-aG7E1c .actions-iVWvwU{display:none}.progress-wrap-aG7E1c:hover .actions-iVWvwU{display:block}",""]),a.locals={"progress-wrap":"progress-wrap-aG7E1c",progressWrap:"progress-wrap-aG7E1c",content:"content-oMctjI",progress:"progress-rFtZNC",info:"info-HxV9yH","main-text":"main-text-MMJMjm",mainText:"main-text-MMJMjm","sub-text":"sub-text-fLSQkk",subText:"sub-text-fLSQkk",desc:"desc-perJT2","tip-desc":"tip-desc-zJnp5I",tipDesc:"tip-desc-zJnp5I","processing-failed":"processing-failed-Ngh1Ak",processingFailed:"processing-failed-Ngh1Ak",processing:"processing-EXtgs8",right:"right-d4B8Yg",percent:"percent-_hawuy",actions:"actions-iVWvwU"},t.Z=a},716998:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".table-preview-RdOhnY{flex-direction:column;flex:1;display:flex;overflow:hidden}.table-preview-title-j9ZsaQ{height:32px;color:var(--coz-fg-plus);align-items:center;margin-bottom:5px;font-size:14px;font-style:normal;font-weight:600;line-height:20px;display:flex}.table-preview-RdOhnY .semantic-tag-v5UgTT,.table-preview-RdOhnY .column-type-fL_9tS{margin-left:6px}.table-preview-RdOhnY .preview-tips-tVs0lE{color:var(--coz-fg-dim);text-align:left;letter-spacing:0;margin-top:8px;font-size:12px;font-weight:400;line-height:20px}.table-preview-RdOhnY .no-result-auNDcw{flex-direction:column;justify-content:center;align-items:center;width:100%;height:448px;display:flex}.table-preview-RdOhnY .no-result-tips-lC6ADQ{color:var(--coz-fg-plus);margin-top:16px;font-size:16px;font-style:normal;font-weight:600;line-height:22px}.table-preview-content-Pn5Efi{overflow:auto}.table-preview-content-Pn5Efi th{background-color:transparent!important}.table-preview-content-Pn5Efi tr{background-color:transparent!important}.table-preview-content-Pn5Efi .semi-table-wrapper{height:100%;margin-top:0}.table-preview-content-Pn5Efi .semi-table-wrapper .coz-tag{font-weight:400}.table-preview-content-Pn5Efi .coz-table-wrapper .coz-table-list-hover .semi-table-row:hover>.semi-table-row-cell:before{background-color:transparent}.table-preview-content-Pn5Efi .coz-table-wrapper .coz-table-list-hover .semi-table-row:hover>.semi-table-row-cell:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.table-preview-content-Pn5Efi .coz-table-wrapper .coz-table-list .semi-table-thead>.semi-table-row>.semi-table-row-head{color:var(--coz-fg-secondary);font-size:12px;font-weight:500}.table-preview-content-Pn5Efi .coz-table-wrapper .coz-table-list .semi-table-tbody>.semi-table-row>.semi-table-row-cell{height:56px;text-align:unset}.table-preview-content-Pn5Efi .coz-table-wrapper .coz-table-list .semi-table-tbody>.semi-table-row>.semi-table-row-cell .semi-typography{color:var(--coz-fg-secondary)}.table-preview-content-Pn5Efi .coz-table-wrapper .coz-table-list .semi-table-container>.semi-table-body{padding-top:0}.table-preview-content-Pn5Efi .coz-table-wrapper .coz-table-list .semi-table-tbody>.semi-table-row:last-child>.semi-table-row-cell{border-bottom:1px solid var(--coz-stroke-primary)}.table-preview-content-Pn5Efi .semi-table-header{z-index:99;position:-webkit-sticky;position:sticky;overflow-y:hidden!important}.table-preview-content-Pn5Efi .semi-table-colgroup .semi-table-col{min-width:200px}.table-preview-content-Pn5Efi .semi-table-tbody>.semi-table-row>.semi-table-row-cell{min-height:40px;padding:9px 16px!important}.table-preview-content-Pn5Efi .semi-table-tbody .semi-table-row:hover>.semi-table-row-cell{border-bottom:1px solid var(--coz-stroke-primary);background-color:transparent!important;background-image:none!important}.td-title-jJaSXe{align-items:center;display:flex}",""]),a.locals={"table-preview":"table-preview-RdOhnY",tablePreview:"table-preview-RdOhnY","table-preview-title":"table-preview-title-j9ZsaQ",tablePreviewTitle:"table-preview-title-j9ZsaQ","semantic-tag":"semantic-tag-v5UgTT",semanticTag:"semantic-tag-v5UgTT","column-type":"column-type-fL_9tS",columnType:"column-type-fL_9tS","preview-tips":"preview-tips-tVs0lE",previewTips:"preview-tips-tVs0lE","no-result":"no-result-auNDcw",noResult:"no-result-auNDcw","no-result-tips":"no-result-tips-lC6ADQ",noResultTips:"no-result-tips-lC6ADQ","table-preview-content":"table-preview-content-Pn5Efi",tablePreviewContent:"table-preview-content-Pn5Efi","td-title":"td-title-jJaSXe",tdTitle:"td-title-jJaSXe"},t.Z=a},903687:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".table-setting-bar-a5JPpu{width:100%;margin-bottom:30px}.table-setting-bar-a5JPpu .semi-form-horizontal .semi-form-field{flex:1}.table-setting-bar-a5JPpu .semi-form-horizontal .semi-form-field .semi-select{border-radius:8px;width:100%}.table-setting-bar-a5JPpu .semi-form-field-label-text{color:var(--coz-fg-plus);font-size:14px;font-style:normal;font-weight:500;line-height:24px}.table-setting-bar-a5JPpu .semi-form-field-label{align-items:center;height:24px;margin-bottom:4px;display:flex}.table-setting-bar-a5JPpu .semi-form-horizontal .semi-form-field:last-child{margin-right:0;padding-right:0}",""]),a.locals={"table-setting-bar":"table-setting-bar-a5JPpu",tableSettingBar:"table-setting-bar-a5JPpu"},t.Z=a},264622:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".table-structure-wrapper-UotMHC{flex:1;height:100%;overflow:hidden}.structure-wrapper-ALSVya{flex-direction:column;display:flex;overflow:hidden}.drag-table-wWjfw6 .semi-table-container .semi-table-tbody .semi-table-row .semi-table-row-cell:first-child{padding-left:16px!important}.table-structure-XrsiMG{border-radius:8px;overflow:hidden;margin-top:4px!important}.table-structure-XrsiMG .semi-spin{height:100%}.table-structure-XrsiMG .semi-spin-children{height:100%}.table-structure-XrsiMG .semi-table-fixed-header{height:100%}.table-structure-XrsiMG .semi-table-container{height:100%}.table-structure-required-container-UyIP6_{align-items:center;display:flex}.table-structure-col-required-Z1g12T{color:var(--coz-fg-hglt-red);text-overflow:ellipsis;margin-top:4px;font-size:12px;font-style:normal;font-weight:600;line-height:16px}.table-structure-XrsiMG .input-suffix-y7iErZ{margin-right:5px;font-size:12px;display:inline-block}.table-structure-XrsiMG .input-error-msg-d1JQO6{z-index:100;color:var(--coz-fg-hglt-red);margin-top:4px;margin-bottom:-20px;font-size:12px;font-style:normal;font-weight:400;line-height:16px;position:relative}.table-structure-XrsiMG .semantic-radio-TDSa9p{align-items:center;height:100%;padding-left:2px;display:flex;position:relative}.table-structure-XrsiMG .column-item-action-j7uaYU{align-items:center;height:100%;padding-top:3px;padding-left:7px;display:flex}.table-structure-XrsiMG .column-item-action-delete-fypzZy{cursor:pointer;font-size:14px}.table-structure-XrsiMG .column-item-Qnr35T{flex-direction:column;height:100%;display:flex}.table-structure-XrsiMG .column-item-value-ZKkacM{color:var(--coz-fg-secondary);text-overflow:ellipsis;font-size:14px;line-height:32px}.table-structure-XrsiMG .structure-table-drag-icon{opacity:0;position:absolute;left:-16px}.table-structure-XrsiMG .semi-table-row:hover .structure-table-drag-icon{opacity:1}.table-structure-XrsiMG .semi-table-row:focus .structure-table-drag-icon{opacity:1}.table-structure-XrsiMG .semi-table-thead>.semi-table-row>.semi-table-row-head{color:var(--coz-fg-secondary)!important;font-size:12px!important}.table-structure-XrsiMG .semi-table-container .semi-table-body{padding-bottom:12px;height:calc(100% - 39px)!important}.table-structure-XrsiMG .select-error-text{padding-top:0!important}.table-structure-XrsiMG .singleline-select-error-content{height:0}.table-structure-XrsiMG .semi-table-thead>.semi-table-row>.semi-table-row-head:first-child{padding-left:8px}.table-structure-XrsiMG .semi-table-thead>.semi-table-row>.semi-table-row-head{background-color:transparent!important}.table-structure-XrsiMG .semi-table-tbody>.semi-table-row{background-color:transparent!important}.table-structure-XrsiMG .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left{background-color:transparent!important}.table-structure-XrsiMG .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left:before{background-color:transparent!important}.table-structure-XrsiMG .semi-table-tbody{padding:5px 0}.table-structure-XrsiMG .semi-table-tbody .semi-table-row .semi-table-row-cell{border-bottom:0;height:56px!important;padding:12px 8px!important}.table-structure-XrsiMG .semi-table-tbody .semi-table-row .semi-table-row-cell:first-child{border-radius:0!important;padding-left:8px!important;padding-right:28px!important}.table-structure-XrsiMG .semi-table-tbody .semi-table-row:hover{cursor:auto;background:var(--coz-mg-secondary-hovered)}.table-structure-XrsiMG .semi-table-tbody .semi-table-row:hover>.semi-table-row-cell{background:0 0!important;border-bottom:0!important}.table-header-tooltip-Yh0j21{align-items:center;display:flex}.table-structure-bar-title-Naiqz6{height:32px;color:var(--coz-fg-plus);align-items:center;font-size:14px;font-style:normal;font-weight:600;display:flex}.table-structure-bar-title-Naiqz6 .icon-KXcibB{margin-top:3px;margin-left:4px}",""]),a.locals={"table-structure-wrapper":"table-structure-wrapper-UotMHC",tableStructureWrapper:"table-structure-wrapper-UotMHC","structure-wrapper":"structure-wrapper-ALSVya",structureWrapper:"structure-wrapper-ALSVya","drag-table":"drag-table-wWjfw6",dragTable:"drag-table-wWjfw6","table-structure":"table-structure-XrsiMG",tableStructure:"table-structure-XrsiMG","table-structure-required-container":"table-structure-required-container-UyIP6_",tableStructureRequiredContainer:"table-structure-required-container-UyIP6_","table-structure-col-required":"table-structure-col-required-Z1g12T",tableStructureColRequired:"table-structure-col-required-Z1g12T","input-suffix":"input-suffix-y7iErZ",inputSuffix:"input-suffix-y7iErZ","input-error-msg":"input-error-msg-d1JQO6",inputErrorMsg:"input-error-msg-d1JQO6","semantic-radio":"semantic-radio-TDSa9p",semanticRadio:"semantic-radio-TDSa9p","column-item-action":"column-item-action-j7uaYU",columnItemAction:"column-item-action-j7uaYU","column-item-action-delete":"column-item-action-delete-fypzZy",columnItemActionDelete:"column-item-action-delete-fypzZy","column-item":"column-item-Qnr35T",columnItem:"column-item-Qnr35T","column-item-value":"column-item-value-ZKkacM",columnItemValue:"column-item-value-ZKkacM","table-header-tooltip":"table-header-tooltip-Yh0j21",tableHeaderTooltip:"table-header-tooltip-Yh0j21","table-structure-bar-title":"table-structure-bar-title-Naiqz6",tableStructureBarTitle:"table-structure-bar-title-Naiqz6",icon:"icon-KXcibB"},t.Z=a},238205:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".upload-si61kX{width:100%}.upload-si61kX .semi-upload-drag-area{background-color:var(--coz-mg-card);border-radius:8px;height:202px}.upload-si61kX .semi-upload-drag-area:hover{border-radius:var(--default,8px)}.upload-si61kX .semi-upload-drag-area.semi-upload-drag-area-legal{border-radius:var(--default,8px)}.upload-si61kX .semi-upload-drag-area-sub-text{color:var(--coz-fg-dim)}.upload-si61kX .semi-button-with-icon-only{border-radius:4px}.upload-si61kX .semi-upload-file-list{display:none}.upload-icon-iaQIvU{width:32px;height:32px}.create-enough-file-gKQjYO{cursor:not-allowed;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.create-enough-file-gKQjYO .picture-rutWZA{width:122px;height:122px;margin-bottom:14px}.create-enough-file-gKQjYO .text-fu7IXG{color:rgba(28,31,35,.6);font-size:12px;line-height:16px}",""]),a.locals={upload:"upload-si61kX","upload-icon":"upload-icon-iaQIvU",uploadIcon:"upload-icon-iaQIvU","create-enough-file":"create-enough-file-gKQjYO",createEnoughFile:"create-enough-file-gKQjYO",picture:"picture-rutWZA",text:"text-fu7IXG"},t.Z=a},112425:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".database-model-content-tIj0m7 .semi-form-field{padding-top:0;padding-bottom:16px}.database-model-content-tIj0m7 .semi-input-wrapper{background-color:rgba(var(--coze-bg-2),var(--coze-bg-2-alpha))}.database-model-content-tIj0m7 .semi-input-textarea-wrapper{background-color:rgba(var(--coze-bg-2),var(--coze-bg-2-alpha))}",""]),a.locals={"database-model-content":"database-model-content-tIj0m7",databaseModelContent:"database-model-content-tIj0m7"},t.Z=a},191552:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".modal-key-tip-FNDXx_{width:200px!important}.modal-key-tip-FNDXx_ ul{padding-left:16px}",""]),a.locals={"modal-key-tip":"modal-key-tip-FNDXx_",modalKeyTip:"modal-key-tip-FNDXx_"},t.Z=a},694898:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,'.th-tip-name-rGuPdC{flex-direction:column;display:flex}.th-tip-dot-igOI00{padding-left:16px;position:relative}.th-tip-dot-igOI00:before{content:"";background-color:#000;border-radius:50%;width:5px;height:5px;position:absolute;top:7px;left:0}.form-input-error-Xsj4gN .semi-input-wrapper{border-color:#f93920}.form-input-error-Xsj4gN .semi-input-wrapper:hover{border-color:var(--semi-color-border,rgba(29,28,35,.08))}.table-structure-form-Ezs2aX{padding-bottom:4px}.table-structure-form-Ezs2aX .semi-form-field-validate-status-icon{display:none}.table-structure-form-Ezs2aX .semi-form-field-validate-status-icon+span{font-size:12px}.table-structure-form-Ezs2aX .semi-col-12 .semi-form-field[x-field-id=prompt_disabled]{justify-content:flex-end;display:flex}.table-structure-form-Ezs2aX .semi-col-12 .semi-form-field[x-field-id=prompt_disabled] .semi-form-field-main{align-items:center;display:flex;width:auto!important}.table-structure-form-Ezs2aX .semi-switch-checked{background-color:rgba(var(--coze-brand-5),1)!important}.table-structure-form-Ezs2aX .semi-switch-checked:hover{background-color:rgba(var(--coze-brand-6),1)!important}.max-row-banner-yDr9Ob{margin-bottom:24px}.form-item-label-tooltip-icon-dPXGBa{cursor:pointer;color:#c6cacd}.table-setting-select-a_BIxX .semi-select:hover{border:1px solid var(--semi-color-border)!important}.table-structure-table-sBwJzN .semi-table-container{border:1px solid var(--Light-usage-border---color-border-1,rgba(29,28,35,.08));border-radius:8px;padding:0 8px}.table-structure-table-sBwJzN .semi-table-header .semi-table-row-head{padding-left:8px;padding-right:8px;background:0 0!important}.table-structure-table-sBwJzN .semi-table-body .semi-table-row{background:0 0!important}.table-structure-table-sBwJzN .semi-table-body .semi-table-row:hover>.semi-table-row-cell{background:0 0!important}.table-structure-table-sBwJzN .semi-table-row{cursor:default!important}.table-structure-table-sBwJzN .semi-table-row>.semi-table-row-cell{padding-left:0;border-bottom:1px solid transparent!important;padding:12px 8px!important}.table-structure-table-sBwJzN .semi-table-body{border-radius:8px;padding:12px 0;overflow:visible;max-height:none!important}.table-structure-table-sBwJzN .semi-table-row-cell:before{display:none}.table-structure-table-sBwJzN .semi-input-wrapper-disabled{background:0 0;border:none}.table-structure-table-sBwJzN .semi-input-wrapper-disabled .semi-input-disabled{color:var(--coz-fg-primary);-webkit-text-fill-color:var(--coz-fg-primary);padding:0;font-weight:500}.table-structure-table-sBwJzN .semi-input-wrapper-disabled .semi-input-suffix{display:none}.table-structure-table-sBwJzN .semi-select-disabled{cursor:default;opacity:1;background:0 0;border:none}.table-structure-table-sBwJzN .semi-select-disabled:hover{background-color:transparent!important}.table-structure-table-sBwJzN .semi-select-disabled .semi-select-selection{cursor:default;margin:0}.table-structure-table-sBwJzN .semi-select-disabled .semi-select-selection .semi-select-selection-text{color:var(--coz-fg-primary);font-weight:500}.table-structure-table-sBwJzN .semi-select-disabled .semi-select-arrow{display:none}.table-structure-table-wrapper-YvUCp5{height:auto}.table-empty-tips-pB0Q_1{color:#f93920;padding:8px;font-size:12px;font-weight:400;line-height:16px}.spin-DHi3Xg .semi-spin-wrapper div{color:rgba(29,28,35,.35);font-size:16px}.table-setting-option-EKwfVk .semi-select-option-selected .semi-select-option-icon{color:#4d53e8}.table-name-form-field-qjON33{padding-bottom:24px!important}.table-name-form-field-qjON33 .semi-input-wrapper-disabled{-webkit-text-fill-color:#1d1c23}.table-desc-form-field-YxaaDH{padding-top:0!important}.prompt_disabled_popover-liVpSD .semi-popover-icon-arrow{right:8px!important}.read_mode_popover-RmV2WL .semi-popover-icon-arrow{left:8px!important}.hidden-form-border-AcU3Ef .semi-table-container{border:none;border-radius:0;padding:0}',""]),a.locals={"th-tip-name":"th-tip-name-rGuPdC",thTipName:"th-tip-name-rGuPdC","th-tip-dot":"th-tip-dot-igOI00",thTipDot:"th-tip-dot-igOI00","form-input-error":"form-input-error-Xsj4gN",formInputError:"form-input-error-Xsj4gN","table-structure-form":"table-structure-form-Ezs2aX",tableStructureForm:"table-structure-form-Ezs2aX","max-row-banner":"max-row-banner-yDr9Ob",maxRowBanner:"max-row-banner-yDr9Ob","form-item-label-tooltip-icon":"form-item-label-tooltip-icon-dPXGBa",formItemLabelTooltipIcon:"form-item-label-tooltip-icon-dPXGBa","table-setting-select":"table-setting-select-a_BIxX",tableSettingSelect:"table-setting-select-a_BIxX","table-structure-table":"table-structure-table-sBwJzN",tableStructureTable:"table-structure-table-sBwJzN","table-structure-table-wrapper":"table-structure-table-wrapper-YvUCp5",tableStructureTableWrapper:"table-structure-table-wrapper-YvUCp5","table-empty-tips":"table-empty-tips-pB0Q_1",tableEmptyTips:"table-empty-tips-pB0Q_1",spin:"spin-DHi3Xg","table-setting-option":"table-setting-option-EKwfVk",tableSettingOption:"table-setting-option-EKwfVk","table-name-form-field":"table-name-form-field-qjON33",tableNameFormField:"table-name-form-field-qjON33","table-desc-form-field":"table-desc-form-field-YxaaDH",tableDescFormField:"table-desc-form-field-YxaaDH",prompt_disabled_popover:"prompt_disabled_popover-liVpSD",promptDisabledPopover:"prompt_disabled_popover-liVpSD",read_mode_popover:"read_mode_popover-RmV2WL",readModePopover:"read_mode_popover-RmV2WL","hidden-form-border":"hidden-form-border-AcU3Ef",hiddenFormBorder:"hidden-form-border-AcU3Ef"},t.Z=a},408582:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".input-wrapper-FtUpxy{width:100%;position:relative}.input-wrapper-FtUpxy span{width:100%}.error-wrapper-amWL8g .semi-input-wrapper{border:1px solid #f93920}.error-content-OcbxcM{height:20px}.error-float-v53a7a{white-space:nowrap;width:100%;position:absolute}.error-text-W3xpef{color:#f93920;padding-top:2px;font-size:12px;position:absolute}.input-EP2aeu input{text-overflow:ellipsis;overflow:hidden}.limit-count-xXMxxt{color:var(--light-usage-text-color-text-3,rgba(28,31,35,.35));padding-left:8px;padding-right:12px;font-size:12px;font-style:normal;font-weight:400;line-height:16px;overflow:hidden}",""]),a.locals={"input-wrapper":"input-wrapper-FtUpxy",inputWrapper:"input-wrapper-FtUpxy","error-wrapper":"error-wrapper-amWL8g",errorWrapper:"error-wrapper-amWL8g","error-content":"error-content-OcbxcM",errorContent:"error-content-OcbxcM","error-float":"error-float-v53a7a",errorFloat:"error-float-v53a7a","error-text":"error-text-W3xpef",errorText:"error-text-W3xpef",input:"input-EP2aeu","limit-count":"limit-count-xXMxxt",limitCount:"limit-count-xXMxxt"},t.Z=a},53785:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".select-wrapper-cbYwaD{width:100%}.select-wrapper-cbYwaD .semi-select-disabled .semi-select-arrow{color:rgba(29,28,35,.6)}.select-wrapper-cbYwaD span{width:100%}.error-wrapper-_ZgJx2 .semi-select{border:1px solid #f93920}.error-content-TD7d74{height:20px}.error-float-lSPXTk{width:100%;position:absolute}.error-text-bm_wVC{color:#f93920;padding-top:2px;font-size:12px;position:absolute}.selected-option-FTHMPv .semi-select-option-selected .semi-select-option-icon{color:#4d53e8}",""]),a.locals={"select-wrapper":"select-wrapper-cbYwaD",selectWrapper:"select-wrapper-cbYwaD","error-wrapper":"error-wrapper-_ZgJx2",errorWrapper:"error-wrapper-_ZgJx2","error-content":"error-content-TD7d74",errorContent:"error-content-TD7d74","error-float":"error-float-lSPXTk",errorFloat:"error-float-lSPXTk","error-text":"error-text-bm_wVC",errorText:"error-text-bm_wVC","selected-option":"selected-option-FTHMPv",selectedOption:"selected-option-FTHMPv"},t.Z=a},686203:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,'.tab-QaYwt3{flex-direction:column;height:100%;display:flex;overflow:hidden}.tab-QaYwt3 .semi-tabs-bar{min-height:56px}.tab-QaYwt3 .semi-tabs-bar-extra{flex-direction:row;justify-content:end;align-items:center;width:100%;padding:0;display:flex}.tab-QaYwt3 .semi-tabs-content{flex-grow:1;padding:0;overflow:auto}.tab-QaYwt3 .semi-tabs-content .coz-tab-bar-content.semi-tabs-pane-active{height:100%}.tab-QaYwt3 .semi-tabs-content .coz-tab-bar-content.semi-tabs-pane-active .semi-tabs-pane-motion-overlay{flex-direction:column;height:100%;display:flex;overflow:hidden}.th-tip-dot-RPuwkq{padding-left:16px;position:relative}.th-tip-dot-RPuwkq:before{content:"";background-color:#000;border-radius:50%;width:5px;height:5px;position:absolute;top:7px;left:0}',""]),a.locals={tab:"tab-QaYwt3","th-tip-dot":"th-tip-dot-RPuwkq",thTipDot:"th-tip-dot-RPuwkq"},t.Z=a},116954:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".table-B81I4V{flex-grow:1;position:relative;overflow:hidden}.table-B81I4V .table-wrapper-euQcfX .semi-table-wrapper{line-height:unset}.table-B81I4V .table-wrapper-euQcfX .semi-table-scroll-position-left .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left-last{box-shadow:none}.table-B81I4V .table-wrapper-euQcfX .semi-table-scroll-position-left .semi-table-thead>.semi-table-row>.semi-table-cell-fixed-left-last{box-shadow:none}.table-B81I4V .table-wrapper-euQcfX .semi-table-scroll-position-right .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-right-first{box-shadow:none}.table-B81I4V .table-wrapper-euQcfX .semi-table-scroll-position-right .semi-table-thead>.semi-table-row>.semi-table-cell-fixed-right-first{box-shadow:none}.table-B81I4V .table-wrapper-euQcfX .semi-table-row>.semi-table-cell-fixed-left-last{box-shadow:2px 2px 3px rgba(0,0,0,.08)}.table-B81I4V .table-wrapper-euQcfX .semi-table-row>.semi-table-cell-fixed-right-first{box-shadow:-2px 2px 3px rgba(0,0,0,.08)}.table-B81I4V .table-wrapper-euQcfX .semi-table-tbody>.semi-table-row{cursor:default}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead>.semi-table-row>.semi-table-row-head:last-child{text-align:unset}.table-B81I4V .table-wrapper-euQcfX .semi-table-tbody>.semi-table-row>.semi-table-row-cell:last-child{text-align:unset}.table-B81I4V .table-wrapper-euQcfX .coz-table-list .semi-table-fixed-header table{height:unset}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead>.semi-table-row>.semi-table-row-head{height:28px;padding-bottom:0}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead .semi-table-row .react-resizable-handle{background:0 0}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead:hover .react-resizable:not(:-webkit-any(.semi-table-cell-fixed-left,.resizing,.not-resize-handle)) .react-resizable-handle{border-right:2px solid var(--coz-stroke-plus);border-left:1px solid var(--coz-stroke-plus);width:7px}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead:hover .react-resizable:not(:-moz-any(.semi-table-cell-fixed-left,.resizing,.not-resize-handle)) .react-resizable-handle{border-right:2px solid var(--coz-stroke-plus);border-left:1px solid var(--coz-stroke-plus);width:7px}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead:hover .react-resizable:not(:is(.semi-table-cell-fixed-left,.resizing,.not-resize-handle)) .react-resizable-handle{border-right:2px solid var(--coz-stroke-plus);border-left:1px solid var(--coz-stroke-plus);width:7px}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead>.semi-table-row>.semi-table-row-head.resizing{border-right-color:var(--coz-stroke-hglt);border-right-width:1px}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left-last{border-right:0}.table-B81I4V .table-wrapper-euQcfX .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right-first{border-left:0}.table-B81I4V .table-wrapper-euQcfX .semi-table-tbody .semi-table-row>.semi-table-row-cell{height:56px}.table-B81I4V .table-wrapper-euQcfX .semi-table-tbody .semi-table-row>.semi-table-row-cell.resizing{border-right-color:var(--coz-stroke-hglt)}.table-B81I4V .table-wrapper-euQcfX .semi-table-tbody .semi-table-row>.semi-table-cell-fixed-left-last{border-right:0}.table-B81I4V .table-wrapper-euQcfX .semi-table-tbody .semi-table-row>.semi-table-cell-fixed-right-first{border-left:0}.table-B81I4V .table-wrapper-euQcfX .semi-table-tbody .semi-table-row:not(:hover)>.semi-table-row-cell.semi-table-cell-fixed-left{border-top-left-radius:0;border-bottom-left-radius:0}.table-B81I4V .table-wrapper-euQcfX .semi-table-tbody .semi-table-row:not(:hover)>.semi-table-row-cell.semi-table-cell-fixed-right{border-top-right-radius:0;border-bottom-right-radius:0}.table-B81I4V .table-wrapper-euQcfX .semi-table-pagination-outer{height:48px;min-height:unset}.table-wrapper-project-j7aSPD .coz-table-list .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left:before{background-color:var(--coz-bg-max)}.table-wrapper-project-j7aSPD .coz-table-list .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right:before{background-color:var(--coz-bg-max)}.table-wrapper-project-j7aSPD .coz-table-list .semi-table-thead>.semi-table-row>.semi-table-row-head{background-color:var(--coz-bg-max)}.table-wrapper-project-j7aSPD .coz-table-list .semi-table-tbody>.semi-table-row:not(:hover)>.semi-table-row-cell{background-color:var(--coz-bg-max)}",""]),a.locals={table:"table-B81I4V","table-wrapper":"table-wrapper-euQcfX",tableWrapper:"table-wrapper-euQcfX","table-wrapper-project":"table-wrapper-project-j7aSPD",tableWrapperProject:"table-wrapper-project-j7aSPD"},t.Z=a},528857:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".table-structure-wrapper-SZG90C{height:100%;overflow:auto}.table-structure-wrapper-SZG90C .coz-table-spin{text-align:center}.table-structure-wrapper-SZG90C .semi-table-container .semi-table-row .semi-table-row-head{padding:6px 8px}.table-structure-wrapper-SZG90C .semi-table-container .semi-table-row .semi-table-row-cell{padding:6px 8px}.table-structure-wrapper-SZG90C .semi-table-container .semi-table-row .semi-table-row-head{border-bottom-width:1px}.table-structure-wrapper-SZG90C .semi-table-container .semi-table-row .semi-table-row-cell{background:0 0;border-bottom:0;height:56px;font-weight:500}",""]),a.locals={"table-structure-wrapper":"table-structure-wrapper-SZG90C",tableStructureWrapper:"table-structure-wrapper-SZG90C"},t.Z=a},898720:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".select-J3wJj4 .semi-select:hover{background-color:transparent!important}.select-J3wJj4 .semi-select:active{background-color:transparent!important}.select-J3wJj4 .semi-select-focus{border:none;outline:none}.select-J3wJj4 .semi-select-open{border:none;outline:none}.select-J3wJj4 .semi-select-selection .semi-select-selection-text{font-weight:600!important}.bottom-shadow-HVs9Pw{background:linear-gradient(rgba(249,249,249,0) 0%,#f9f9f9 100%)}.label-r_G6Mo{color:var(--Fg-COZ-fg-secondary,rgba(6,7,9,.5));font-size:14px;font-style:normal;font-weight:600;line-height:20px}.tips-wrapper-J2KNMp{border-radius:12px}.tip-title-UTyceA{color:var(--Fg-COZ-fg-plus,#fff);margin-bottom:10px;font-size:12px;font-style:normal;font-weight:500;line-height:16px}.tip-desc-WKkdq3{color:rgba(255,255,255,.39);margin:8px 0;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.bot-bg-IA2Zm4{background:var(--Mg-COZ-mg-primary,rgba(255,255,255,.06));border-radius:var(--default,8px);flex-direction:column;align-self:stretch;align-items:flex-start;gap:12px;padding:16px 12px;display:flex}.bot-item-WK4deo{justify-content:start;align-items:center;display:flex}.bot-img-hio3vT{color:#fff;border-radius:50%;justify-content:center;align-items:center;margin-right:8px;padding:8px;font-family:SF Pro Display;font-size:8px;font-style:normal;font-weight:500;line-height:7.254px;display:flex;width:24px!important;height:24px!important}.bot-img-hio3vT.img-user-G54LO4{background-color:var(--Fg-COZ-fg-color-blue,#0084ff)}.bot-img-hio3vT.img-bot-pYNKcX{background-color:var(--Fg-COZ-fg-color-cyan,#00b9b5)}.bot-content-DmAgbZ{width:100%;color:var(--Fg-COZ-fg-primary,rgba(255,255,255,.79));border-radius:var(--default,8px);padding:8px 12px;font-size:10px;font-style:normal;font-weight:400;line-height:14px}.bot-content-DmAgbZ.content-user-Y7_iZU{background:var(--Mg-COZ-mg-hglt-plus-dim,rgba(94,94,255,.37))}.bot-content-DmAgbZ.content-bot-IU9zOP{background:var(--Mg-COZ-mg-plus,rgba(255,255,255,.09))}.loading-more-W2dMLl,.no-more-K9TKcE{width:100%;color:var(--light-usage-text-color-text-2,var(--light-usage-text-color-text-2,rgba(28,31,35,.6)));grid-column:1/-1;justify-content:center;align-items:center;padding:13px 0;font-size:14px;font-weight:400;line-height:20px;display:flex;position:relative}.database-add-v00ROE{min-width:48px;min-height:30px;max-height:30px;font-size:12px;font-style:normal;font-weight:500;line-height:16.5px;color:var(--coz-fg-primary)!important;background-color:var(--coz-mg-primary)!important}.database-added-YR1yAA{min-width:48px;min-height:30px;max-height:30px;font-size:12px;font-style:normal;font-weight:500;line-height:16.5px;color:var(--coz-fg-dim)!important;background-color:var(--coz-mg-primary)!important}.database-added-YR1yAA.added-mousein-pawLIZ{color:var(--light-color-red-red-5,#ff441e)!important}.list-eNYUi9 .semi-spin-children{height:100%}",""]),a.locals={select:"select-J3wJj4","bottom-shadow":"bottom-shadow-HVs9Pw",bottomShadow:"bottom-shadow-HVs9Pw",label:"label-r_G6Mo","tips-wrapper":"tips-wrapper-J2KNMp",tipsWrapper:"tips-wrapper-J2KNMp","tip-title":"tip-title-UTyceA",tipTitle:"tip-title-UTyceA","tip-desc":"tip-desc-WKkdq3",tipDesc:"tip-desc-WKkdq3","bot-bg":"bot-bg-IA2Zm4",botBg:"bot-bg-IA2Zm4","bot-item":"bot-item-WK4deo",botItem:"bot-item-WK4deo","bot-img":"bot-img-hio3vT",botImg:"bot-img-hio3vT","img-user":"img-user-G54LO4",imgUser:"img-user-G54LO4","img-bot":"img-bot-pYNKcX",imgBot:"img-bot-pYNKcX","bot-content":"bot-content-DmAgbZ",botContent:"bot-content-DmAgbZ","content-user":"content-user-Y7_iZU",contentUser:"content-user-Y7_iZU","content-bot":"content-bot-IU9zOP",contentBot:"content-bot-IU9zOP","loading-more":"loading-more-W2dMLl",loadingMore:"loading-more-W2dMLl","no-more":"no-more-K9TKcE",noMore:"no-more-K9TKcE","database-add":"database-add-v00ROE",databaseAdd:"database-add-v00ROE","database-added":"database-added-YR1yAA",databaseAdded:"database-added-YR1yAA","added-mousein":"added-mousein-pawLIZ",addedMousein:"added-mousein-pawLIZ",list:"list-eNYUi9"},t.Z=a},790822:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,'.text-YVQdLo{font-size:14px;font-style:normal;font-weight:400;line-height:16px}.plugin-item-FtQgO6{box-sizing:border-box;justify-content:space-between;align-items:center;width:calc(100% - 68px);height:98px;margin:14px 0 0 68px;padding-bottom:14px;padding-right:12px;display:flex}.plugin-item-FtQgO6:not(:last-child){border-bottom:1px solid rgba(28,31,35,.08);position:relative}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG{flex:1}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-name-CF7KxS{width:100%}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-name-CF7KxS .semi-typography{font-size:16px;font-weight:600;line-height:22px;color:#1c1d23!important}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-desc-u_tjUM{flex-direction:column;width:100%;margin-top:4px;display:flex}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-desc-u_tjUM .semi-typography{font-size:12px;line-height:16px;color:rgba(28,31,35,.6)!important}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-desc-u_tjUM .api-params-E6D3ql{align-items:center;margin-top:12px;display:flex}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-desc-u_tjUM .api-params-E6D3ql .params-tags-miPz3c{max-width:500px}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-desc-u_tjUM .api-params-E6D3ql .params-tags-miPz3c .tag-item-ndsbDs{width:-moz-fit-content;width:fit-content;min-width:-moz-fit-content;color:rgba(28,29,35,.6);border-radius:6px;min-width:fit-content;font-size:12px;font-style:normal;font-weight:500;line-height:16px}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-desc-u_tjUM .api-params-E6D3ql .params-tags-miPz3c>:not(:first-child){margin-left:16px}.plugin-item-FtQgO6 .plugin-api-main-bH1gpG .plugin-api-desc-u_tjUM .api-params-E6D3ql .params-desc-GqVF5c{cursor:pointer;color:#4d53e8;flex-shrink:0;font-size:12px;line-height:16px;letter-spacing:.12px!important}.plugin-item-FtQgO6 .plugin-api-method-Ejjj7F{flex-shrink:0;align-items:center;margin-left:20px;display:flex}.between-OicXaK{justify-content:space-between;align-items:center;width:100%;display:flex}.tools-content-lLWgtr{padding:0 20px 24px}.tools-content-lLWgtr .tools-table-thead-t125FM{padding-bottom:6px}.tools-content-lLWgtr .tools-table-thead-t125FM th{padding:6px 0 8px}.api-table-hluBHA{table-layout:fixed;border-collapse:collapse;color:rgba(28,31,35,.6);word-wrap:break-word;width:100%;height:32px;font-size:12px;font-weight:400;line-height:16px}.api-table-hluBHA thead th{color:#888d92;text-align:left;font-size:12px;font-weight:400;line-height:16px}.api-table-hluBHA .api-row-E8ZNSI.border-top-WQ0Szt{position:relative}.api-table-hluBHA .api-row-E8ZNSI.border-top-WQ0Szt td{margin-top:4px}.api-table-hluBHA .api-row-E8ZNSI:last-child{border-bottom:1px solid #f9f9f9}.api-table-hluBHA .api-row-E8ZNSI td{padding-bottom:4px;overflow:hidden}.api-table-hluBHA .api-row-name-ymtiyz{vertical-align:middle}.api-table-hluBHA .api-row-E8ZNSI .semi-tag-grey-light{background:#fff;border-radius:6px;height:20px}.api-table-hluBHA .api-row-E8ZNSI .semi-tag-content{justify-content:space-between;align-items:center}.api-table-hluBHA .api-plugin-TlvgG3{align-items:center;height:24px;padding-right:10px;display:flex}.api-table-hluBHA .api-plugin-image-k3p1lx{flex-shrink:0;margin-right:8px;display:flex}.api-table-hluBHA .api-plugin-image-k3p1lx>img{width:16px;height:16px}.api-table-hluBHA .api-plugin-TlvgG3 .semi-image-status{background-color:rgba(255,255,255,0)!important}.api-table-hluBHA .api-plugin-name-TOa5Gt{color:rgba(28,29,35,.8);font-size:12px;font-weight:400;line-height:22px}.api-table-hluBHA .api-method-mHol6d{text-align:center;justify-content:space-between;width:100%;height:100%}.api-table-hluBHA .api-method-mHol6d span{color:rgba(28,31,35,.35)}.api-table-hluBHA .api-method-mHol6d .icon-config-BO8NfO{cursor:pointer;color:#6b6d75}.api-table-hluBHA .api-method-read-ajJdR6{justify-content:flex-end}.api-table-hluBHA .api-name-hptG2r{align-items:center;padding:2px 10px 2px 0;display:flex}.api-table-hluBHA .api-name-text-ulwKOO{color:rgba(29,28,35,.8);font-size:12px;font-weight:400;line-height:16px}.api-table-hluBHA .api-name-hptG2r .semi-tag-grey-light{background:#fff!important}.api-table-hluBHA .api-name-hptG2r .api-divider-r6t7cF{border-color:#b3c4ff;height:12px}.api-table-hluBHA .api-name-hptG2r .copy-d5LaZv{cursor:copy}.api-table-hluBHA .api-name-hptG2r .icon-tips-_00WCB:hover{background-color:var(--semi-color-fill-0)}.api-table-hluBHA .api-name-hptG2r .icon-tips-_00WCB{cursor:pointer;border-radius:4px;padding:2px}.api-table-hluBHA .api-name-hptG2r .icon-tips-_00WCB>svg{width:14px;height:14px}.api-table-hluBHA .api-name-hptG2r .icon-tips-_00WCB>svg>path{fill:#6b6d75}.api-table-hluBHA .api-name-publish-mY1IG6{flex-shrink:0;margin-left:4px}.popover-content-eN0b7h{box-sizing:border-box;max-width:264px}.popover-api-name-eEHe9C{color:#1c1f23;word-wrap:break-word;font-size:14px;font-weight:700;line-height:20px}.popover-api-desc-VPSjG6{color:rgba(28,31,35,.6);word-wrap:break-word;padding:4px 0;font-size:12px;line-height:16px}.plugin-panel-header-p2im2x{flex-wrap:nowrap;flex:1;align-items:center;width:0;min-width:0;height:80px;font-weight:400;display:flex}.plugin-panel-header-p2im2x .creator-icon-DYRZRC{border-radius:50%;flex-shrink:0;display:flex}.plugin-panel-header-p2im2x .creator-icon-DYRZRC img{width:14px;height:14px}.plugin-panel-header-p2im2x .creator-time-S71Z5P{color:rgba(28,29,35,.35);text-align:right;letter-spacing:.12px;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.plugin-panel-header-p2im2x .header-icon-yuYCvy{flex-shrink:0;margin-right:16px;display:flex}.plugin-panel-header-p2im2x .header-icon-yuYCvy img{background:#fff;width:36px;height:36px}.plugin-panel-header-p2im2x .header-main-UvLafw{flex:1;width:0;min-width:0;margin-right:16px;overflow:hidden}.plugin-panel-header-p2im2x .header-main-UvLafw .header-name-zcG7WA{width:100%}.plugin-panel-header-p2im2x .header-main-UvLafw .header-name-zcG7WA .semi-typography{font-size:16px;font-weight:600;line-height:22px;color:#1c1d23!important;word-wrap:break-word!important}.plugin-panel-header-p2im2x .header-main-UvLafw .header-name-zcG7WA .semi-highlight-tag{color:#fda633;background-color:transparent}.plugin-panel-header-p2im2x .header-main-UvLafw .header-desc-pB91wu{width:100%}.plugin-panel-header-p2im2x .header-main-UvLafw .header-desc-pB91wu .semi-typography{letter-spacing:.12px;font-size:12px;font-weight:400;color:rgba(28,29,35,.8)!important;word-wrap:break-word!important}.plugin-panel-header-p2im2x .header-info-UrNsPT{color:rgba(28,29,35,.35);text-align:right;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.plugin-panel-header-p2im2x .header-info-UrNsPT .semi-divider-vertical{color:rgba(28,29,35,.12);height:10px}.plugin-panel-header-p2im2x .header-tags-n3yJ7f{margin:6px 0}.plugin-panel-header-p2im2x .header-tag-a3XTeu{border-radius:6px;letter-spacing:.12px!important}.plugin-panel-header-p2im2x .header-tag-a3XTeu:last-child{margin-right:0}.plugin-modal-header-He96SF{color:#1c1f23;justify-content:space-between;align-items:center;padding-right:24px;font-size:18px;font-weight:600;line-height:24px;display:flex}.plugin-modal-header-title-L67YVa{background:#ebedf0;width:218px;padding:24px;line-height:16px}.plugin-modal-filter-rfbtT3{gap:12px;display:flex}.composition-modal-layout-YVhTFa{background:#ebedf0}.plugin-modal-K2Y4QI{height:100%}.plugin-modal-K2Y4QI .iconSearch-sV6m7_{margin-left:16px;margin-right:8px}.plugin-modal-K2Y4QI .iconSearch-sV6m7_>svg{width:16px;height:16px}.plugin-modal-K2Y4QI .iconSearch-sV6m7_>svg>path{fill:rgba(28,29,35,.35)}.plugin-modal-K2Y4QI .tool-tag-list-xvDQDS{white-space:nowrap;flex:1 0;padding-top:16px;overflow:auto}.plugin-modal-K2Y4QI .tool-tag-list-label-jMUs2c{color:rgba(28,29,35,.35);height:40px;margin-bottom:8px;padding:0 12px;font-size:12px;font-weight:600;line-height:40px}.plugin-modal-K2Y4QI .tool-tag-list-cell-lUktLs{cursor:pointer;color:#1d1c23;border-radius:3px;align-items:center;height:44px;margin-bottom:4px;padding:0 10px 0 12px;font-size:14px;line-height:44px;display:flex;position:relative}.plugin-modal-K2Y4QI .tool-tag-list-cell-icon-DjoxQY{flex-shrink:0;margin-right:8px;display:flex}.plugin-modal-K2Y4QI .tool-tag-list-cell-icon-DjoxQY>svg{width:24px;height:24px}.plugin-modal-K2Y4QI .tool-tag-list-cell-icon-DjoxQY>svg>path{fill:#1d1c23}.plugin-modal-K2Y4QI .tool-tag-list-cell-icon-DjoxQY>img{width:24px;height:24px;padding:4px}.plugin-modal-K2Y4QI .tool-tag-list-cell-divider-RBPaG4{background:rgba(28,29,35,.12);width:calc(100% - 24px);margin:12px}.plugin-modal-K2Y4QI .tool-tag-list-cell-lUktLs:hover{color:#1c1f23;background:rgba(46,50,56,.05);border-radius:8px}.plugin-modal-K2Y4QI .tool-tag-list-cell-lUktLs.active-Zlqi8X{color:var(--light-usage-text-color-text-0,#1c1d23);background:rgba(46,47,56,.05);border-radius:8px;font-size:14px;font-weight:600}.plugin-modal-K2Y4QI .tool-tag-list-cell-lUktLs.active-Zlqi8X .tool-tag-list-cell-icon-DjoxQY>svg{width:24px;height:24px}.plugin-modal-K2Y4QI .tool-tag-list-cell-lUktLs.active-Zlqi8X .tool-tag-list-cell-icon-DjoxQY>svg>path{fill:#4d53e8}.plugin-modal-K2Y4QI .addbtn-gz_ZWw{margin-top:24px}.plugin-modal-K2Y4QI .plugin-filter-TX9V52{background:#ebedf0;flex-direction:column;flex-shrink:0;width:218px;display:flex}.plugin-modal-K2Y4QI .tool-content-area-YZYent{height:100%;overflow-y:auto}.plugin-modal-K2Y4QI .plugin-modal-filter-rfbtT3{display:flex}.plugin-modal-K2Y4QI .plugin-content-COnww1{width:100%;height:100%;padding-bottom:12px;overflow:auto}.plugin-modal-K2Y4QI .plugin-content-COnww1 .loading-more-mwlWFX{text-align:center}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY{padding:0 36px 0 22px;display:flex}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .plugin-content-sort-K2aNy3{width:150px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .bot-tag-txb6X4{align-items:center;display:flex}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-content{padding:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-button.semi-tabs-tab-active{color:rgba(28,29,35,.8);background-color:transparent}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-button.semi-tabs-tab-active .semi-icon>svg{width:20px;height:20px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-button.semi-tabs-tab-active .semi-icon>svg>path{fill:rgba(28,29,35,.8)}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:-webkit-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:rgba(28,29,35,.8);top:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:-moz-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:rgba(28,29,35,.8);top:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(:is(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){color:rgba(28,29,35,.8);top:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:-webkit-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:-moz-any(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(:is(.semi-icon-checkbox_tick,.semi-icon-radio,.semi-icon-checkbox_indeterminate)){top:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-content-filter-oOEbZY .semi-tabs-tab:last-child:before{content:"";background-color:rgba(28,29,35,.12);width:1px;height:16px;position:absolute;top:12px;left:-4px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .semi-collapse-item{border:none;position:relative}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .semi-collapse-header:hover:before{content:"";background-color:#f7f7fa;width:100%;height:1px;position:absolute;top:-1px;left:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .semi-collapse-header{border-bottom:1px solid #dfdfdf;border-radius:0;margin:0}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .semi-collapse-header:hover{background:rgba(46,47,56,.05);border-bottom:1px solid transparent;border-radius:8px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .semi-collapse-header:active{background:rgba(46,47,56,.05)}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .semi-collapse-header-icon{width:auto;height:24px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .semi-collapse-header-icon:hover{background:rgba(46,47,56,.09);border-radius:5px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .collapse-icon-Yse2xB{cursor:pointer;padding:4px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .collapse-icon-Yse2xB>svg{width:16px;height:16px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .collapse-icon-Yse2xB>svg>path{fill:rgba(28,29,35,.35)}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .activePanel-u7d1io{background:rgba(46,47,56,.05);border:none;border-radius:8px;margin-bottom:8px}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .activePanel-u7d1io .semi-collapse-header{border-bottom:1px solid #dfdfdf}.plugin-modal-K2Y4QI .plugin-content-COnww1 .plugin-collapse-hOqDWd .activePanel-u7d1io .semi-collapse-header:hover{background:0 0}.plugin-modal-K2Y4QI .semi-modal-content{padding:0}.plugin-modal-K2Y4QI .semi-spin-children{height:100%}.plugin-content-COnww1 .semi-collapse-header{padding:14px 16px;height:120px!important;margin:0!important}.plugin-collapse-hOqDWd .semi-collapse-header{padding:14px 16px;height:120px!important;margin:0!important}.plugin-content-COnww1 .semi-collapse-header[aria-expanded=true]{border-radius:8px 8px 0 0!important}.plugin-collapse-hOqDWd .semi-collapse-header[aria-expanded=true]{border-radius:8px 8px 0 0!important}.plugin-content-COnww1 .semi-collapse{padding:16px 0 12px}.plugin-collapse-hOqDWd .semi-collapse{padding:16px 0 12px}.plugin-content-COnww1 .semi-collapse-content{border-radius:0 0 8px 8px;padding:0}.plugin-collapse-hOqDWd .semi-collapse-content{border-radius:0 0 8px 8px;padding:0}.parameter-item-RIaOdc{margin-top:12px;font-size:12px;line-height:16px}.parameter-item-RIaOdc .parameter-text-n_0r_d{color:#1c1f23;max-width:100%;margin-bottom:4px}.parameter-item-RIaOdc .parameter-text-n_0r_d .parameter-name-BOCrW3{word-wrap:break-word;font-weight:700}.parameter-item-RIaOdc .parameter-text-n_0r_d .parameter-type-aATcZN{color:rgba(28,31,35,.8)}.parameter-item-RIaOdc .parameter-text-n_0r_d .parameter-required-otLMcT{color:#fc8800}.parameter-item-RIaOdc .parameter-desc-SyEdcg{color:rgba(28,31,35,.6);word-wrap:break-word}.apis-add-icon-Q27Tro>svg{width:14px;height:14px}.apis-add-icon-Q27Tro>svg>path{fill:#3370ff}.default-text-UgMy7q{color:rgba(28,29,35,.6);font-size:14px;font-style:normal;font-weight:400;line-height:16px}.operator-btn-UFfE6p{width:98px}.operator-btn-UFfE6p.added-W2NKyd{color:#b4baf6;background:#fff;border:1px solid #f0f0f5}.operator-btn-UFfE6p.addedMouseIn-DNkd5w{color:#ff441e;background:#fff;border:1px solid rgba(29,28,35,.12)}.tab-select-FogoTy{margin-right:10px}.hide-button-model-wrap-rbxZXb .ml20-a5CVs3{margin-left:20px}.hide-button-model-wrap-rbxZXb .h56-XKSu3A{height:56px}.hide-button-model-wrap-rbxZXb .search-input-oHTFuf{z-index:9;background:#fff;width:100%;position:absolute;top:20px}.plugin-func-collapse-_PsrNY .plugin-api-desc-u_tjUM{cursor:pointer;width:200px!important}',""]),a.locals={text:"text-YVQdLo","plugin-item":"plugin-item-FtQgO6",pluginItem:"plugin-item-FtQgO6","plugin-api-main":"plugin-api-main-bH1gpG",pluginApiMain:"plugin-api-main-bH1gpG","plugin-api-name":"plugin-api-name-CF7KxS",pluginApiName:"plugin-api-name-CF7KxS","plugin-api-desc":"plugin-api-desc-u_tjUM",pluginApiDesc:"plugin-api-desc-u_tjUM","api-params":"api-params-E6D3ql",apiParams:"api-params-E6D3ql","params-tags":"params-tags-miPz3c",paramsTags:"params-tags-miPz3c","tag-item":"tag-item-ndsbDs",tagItem:"tag-item-ndsbDs","params-desc":"params-desc-GqVF5c",paramsDesc:"params-desc-GqVF5c","plugin-api-method":"plugin-api-method-Ejjj7F",pluginApiMethod:"plugin-api-method-Ejjj7F",between:"between-OicXaK","tools-content":"tools-content-lLWgtr",toolsContent:"tools-content-lLWgtr","tools-table-thead":"tools-table-thead-t125FM",toolsTableThead:"tools-table-thead-t125FM","api-table":"api-table-hluBHA",apiTable:"api-table-hluBHA","api-row":"api-row-E8ZNSI",apiRow:"api-row-E8ZNSI","border-top":"border-top-WQ0Szt",borderTop:"border-top-WQ0Szt","api-row-name":"api-row-name-ymtiyz",apiRowName:"api-row-name-ymtiyz","api-plugin":"api-plugin-TlvgG3",apiPlugin:"api-plugin-TlvgG3","api-plugin-image":"api-plugin-image-k3p1lx",apiPluginImage:"api-plugin-image-k3p1lx","api-plugin-name":"api-plugin-name-TOa5Gt",apiPluginName:"api-plugin-name-TOa5Gt","api-method":"api-method-mHol6d",apiMethod:"api-method-mHol6d","icon-config":"icon-config-BO8NfO",iconConfig:"icon-config-BO8NfO","api-method-read":"api-method-read-ajJdR6",apiMethodRead:"api-method-read-ajJdR6","api-name":"api-name-hptG2r",apiName:"api-name-hptG2r","api-name-text":"api-name-text-ulwKOO",apiNameText:"api-name-text-ulwKOO","api-divider":"api-divider-r6t7cF",apiDivider:"api-divider-r6t7cF",copy:"copy-d5LaZv","icon-tips":"icon-tips-_00WCB",iconTips:"icon-tips-_00WCB","api-name-publish":"api-name-publish-mY1IG6",apiNamePublish:"api-name-publish-mY1IG6","popover-content":"popover-content-eN0b7h",popoverContent:"popover-content-eN0b7h","popover-api-name":"popover-api-name-eEHe9C",popoverApiName:"popover-api-name-eEHe9C","popover-api-desc":"popover-api-desc-VPSjG6",popoverApiDesc:"popover-api-desc-VPSjG6","plugin-panel-header":"plugin-panel-header-p2im2x",pluginPanelHeader:"plugin-panel-header-p2im2x","creator-icon":"creator-icon-DYRZRC",creatorIcon:"creator-icon-DYRZRC","creator-time":"creator-time-S71Z5P",creatorTime:"creator-time-S71Z5P","header-icon":"header-icon-yuYCvy",headerIcon:"header-icon-yuYCvy","header-main":"header-main-UvLafw",headerMain:"header-main-UvLafw","header-name":"header-name-zcG7WA",headerName:"header-name-zcG7WA","header-desc":"header-desc-pB91wu",headerDesc:"header-desc-pB91wu","header-info":"header-info-UrNsPT",headerInfo:"header-info-UrNsPT","header-tags":"header-tags-n3yJ7f",headerTags:"header-tags-n3yJ7f","header-tag":"header-tag-a3XTeu",headerTag:"header-tag-a3XTeu","plugin-modal-header":"plugin-modal-header-He96SF",pluginModalHeader:"plugin-modal-header-He96SF","plugin-modal-header-title":"plugin-modal-header-title-L67YVa",pluginModalHeaderTitle:"plugin-modal-header-title-L67YVa","plugin-modal-filter":"plugin-modal-filter-rfbtT3",pluginModalFilter:"plugin-modal-filter-rfbtT3","composition-modal-layout":"composition-modal-layout-YVhTFa",compositionModalLayout:"composition-modal-layout-YVhTFa","plugin-modal":"plugin-modal-K2Y4QI",pluginModal:"plugin-modal-K2Y4QI",iconSearch:"iconSearch-sV6m7_","tool-tag-list":"tool-tag-list-xvDQDS",toolTagList:"tool-tag-list-xvDQDS","tool-tag-list-label":"tool-tag-list-label-jMUs2c",toolTagListLabel:"tool-tag-list-label-jMUs2c","tool-tag-list-cell":"tool-tag-list-cell-lUktLs",toolTagListCell:"tool-tag-list-cell-lUktLs","tool-tag-list-cell-icon":"tool-tag-list-cell-icon-DjoxQY",toolTagListCellIcon:"tool-tag-list-cell-icon-DjoxQY","tool-tag-list-cell-divider":"tool-tag-list-cell-divider-RBPaG4",toolTagListCellDivider:"tool-tag-list-cell-divider-RBPaG4",active:"active-Zlqi8X",addbtn:"addbtn-gz_ZWw","plugin-filter":"plugin-filter-TX9V52",pluginFilter:"plugin-filter-TX9V52","tool-content-area":"tool-content-area-YZYent",toolContentArea:"tool-content-area-YZYent","plugin-content":"plugin-content-COnww1",pluginContent:"plugin-content-COnww1","loading-more":"loading-more-mwlWFX",loadingMore:"loading-more-mwlWFX","plugin-content-filter":"plugin-content-filter-oOEbZY",pluginContentFilter:"plugin-content-filter-oOEbZY","plugin-content-sort":"plugin-content-sort-K2aNy3",pluginContentSort:"plugin-content-sort-K2aNy3","bot-tag":"bot-tag-txb6X4",botTag:"bot-tag-txb6X4","plugin-collapse":"plugin-collapse-hOqDWd",pluginCollapse:"plugin-collapse-hOqDWd","collapse-icon":"collapse-icon-Yse2xB",collapseIcon:"collapse-icon-Yse2xB",activePanel:"activePanel-u7d1io","parameter-item":"parameter-item-RIaOdc",parameterItem:"parameter-item-RIaOdc","parameter-text":"parameter-text-n_0r_d",parameterText:"parameter-text-n_0r_d","parameter-name":"parameter-name-BOCrW3",parameterName:"parameter-name-BOCrW3","parameter-type":"parameter-type-aATcZN",parameterType:"parameter-type-aATcZN","parameter-required":"parameter-required-otLMcT",parameterRequired:"parameter-required-otLMcT","parameter-desc":"parameter-desc-SyEdcg",parameterDesc:"parameter-desc-SyEdcg","apis-add-icon":"apis-add-icon-Q27Tro",apisAddIcon:"apis-add-icon-Q27Tro","default-text":"default-text-UgMy7q",defaultText:"default-text-UgMy7q","operator-btn":"operator-btn-UFfE6p",operatorBtn:"operator-btn-UFfE6p",added:"added-W2NKyd",addedMouseIn:"addedMouseIn-DNkd5w","tab-select":"tab-select-FogoTy",tabSelect:"tab-select-FogoTy","hide-button-model-wrap":"hide-button-model-wrap-rbxZXb",hideButtonModelWrap:"hide-button-model-wrap-rbxZXb",ml20:"ml20-a5CVs3",h56:"h56-XKSu3A","search-input":"search-input-oHTFuf",searchInput:"search-input-oHTFuf","plugin-func-collapse":"plugin-func-collapse-_PsrNY",pluginFuncCollapse:"plugin-func-collapse-_PsrNY"},t.Z=a},565050:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".mockset-create-form-oER7bM{font-size:14px}.mockset-create-form-oER7bM .semi-checkbox-addon{color:var(--semi-color-text-0);font-size:14px;font-weight:600}.mockset-create-form-oER7bM .semi-form-field{padding-top:0}",""]),a.locals={"mockset-create-form":"mockset-create-form-oER7bM",mocksetCreateForm:"mockset-create-form-oER7bM"},t.Z=a},209684:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".mock-tab-container-sZ0Rr9{height:100%;position:relative}.editor-with-header-hgnev7{height:calc(100% - 48px)}.mock-tab-BKzL93{cursor:pointer;width:32px;height:32px;color:var(--semi-color-text-0);text-align:center;border:1px solid var(--semi-color-border);background:#fff;border-radius:4px;margin-right:12px;font-size:14px;font-weight:600;line-height:30px;display:inline-block;position:relative}.mock-tab_active-VPtt9w{color:var(--semi-color-primary);border-color:var(--semi-color-primary);background:#fff}.mock-tab-error-r2ammJ{position:absolute;top:-7px;right:-7px}.mock-tab-error-r2ammJ svg{width:16px;height:16px}.mock-tab-header-I1dB4r{height:32px;margin-bottom:12px}.mock-tab-mask-gEk5gN{background-color:rgba(var(--semi-white),.8);border:1px solid transparent;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;width:100%;height:calc(100% - 48px);display:flex;position:absolute;bottom:0;left:0}.mock-tab-mask-gEk5gN span{color:var(--semi-color-text-3);margin-top:8px;font-size:16px;line-height:24px}.mock-tab-panels-SMuVLk{width:100%;height:100%;position:relative}.mock-tab-panel_visible-v6SO_P{visibility:visible}.mock-tab-panel_invisible-_nhZK_{visibility:hidden}.mock-tab-panel_absolute-d2X2gL{width:100%;position:absolute;top:0;left:0}",""]),a.locals={"mock-tab-container":"mock-tab-container-sZ0Rr9",mockTabContainer:"mock-tab-container-sZ0Rr9","editor-with-header":"editor-with-header-hgnev7",editorWithHeader:"editor-with-header-hgnev7","mock-tab":"mock-tab-BKzL93",mockTab:"mock-tab-BKzL93","mock-tab_active":"mock-tab_active-VPtt9w",mockTabActive:"mock-tab_active-VPtt9w","mock-tab-error":"mock-tab-error-r2ammJ",mockTabError:"mock-tab-error-r2ammJ","mock-tab-header":"mock-tab-header-I1dB4r",mockTabHeader:"mock-tab-header-I1dB4r","mock-tab-mask":"mock-tab-mask-gEk5gN",mockTabMask:"mock-tab-mask-gEk5gN","mock-tab-panels":"mock-tab-panels-SMuVLk",mockTabPanels:"mock-tab-panels-SMuVLk","mock-tab-panel_visible":"mock-tab-panel_visible-v6SO_P",mockTabPanelVisible:"mock-tab-panel_visible-v6SO_P","mock-tab-panel_invisible":"mock-tab-panel_invisible-_nhZK_",mockTabPanelInvisible:"mock-tab-panel_invisible-_nhZK_","mock-tab-panel_absolute":"mock-tab-panel_absolute-d2X2gL",mockTabPanelAbsolute:"mock-tab-panel_absolute-d2X2gL"},t.Z=a},792795:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".editor-container-I29hCX{height:100%;position:relative}.editor-vfOmJV{background-color:#fff;border:1px solid #eee;border-radius:8px;height:100%;padding:16px 0}.editor-vfOmJV .monaco-editor .scroll-decoration{box-shadow:unset}.editor-vfOmJV .semi-skeleton-image{width:100%;height:100px;margin-bottom:12px}.editor-container_disabled-wa3_6M .monaco-editor.no-user-select .view-lines{cursor:default}.editor_hidden-zAnGjM{z-index:-1;opacity:0;position:relative}.skeleton-DuSjuT{z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}.skeleton-DuSjuT .semi-skeleton-image{width:100%;height:100%;margin-bottom:12px}",""]),a.locals={"editor-container":"editor-container-I29hCX",editorContainer:"editor-container-I29hCX",editor:"editor-vfOmJV","editor-container_disabled":"editor-container_disabled-wa3_6M",editorContainerDisabled:"editor-container_disabled-wa3_6M",editor_hidden:"editor_hidden-zAnGjM",editorHidden:"editor_hidden-zAnGjM",skeleton:"skeleton-DuSjuT"},t.Z=a},937373:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n),l=i(964824),s=i.n(l),d=new URL(i(424013),i.b),c=new URL(i(516254),i.b),u=new URL(i(260827),i.b),p=new URL(i(743424),i.b),g=a()(r()),m=s()(d),h=s()(c),f=s()(u),b=s()(p);g.push([e.id,`.light-wlgpfI .monaco-editor{--vscode-foreground:#616161;--vscode-disabledForeground:rgba(97,97,97,.5);--vscode-errorForeground:#a1260d;--vscode-descriptionForeground:#717171;--vscode-icon-foreground:#424242;--vscode-focusBorder:#0090f1;--vscode-textSeparator-foreground:rgba(0,0,0,.18);--vscode-textLink-foreground:#006ab1;--vscode-textLink-activeForeground:#006ab1;--vscode-textPreformat-foreground:#a31515;--vscode-textBlockQuote-background:rgba(127,127,127,.1);--vscode-textBlockQuote-border:rgba(0,122,204,.5);--vscode-textCodeBlock-background:rgba(220,220,220,.4);--vscode-widget-shadow:rgba(0,0,0,.16);--vscode-input-background:#fff;--vscode-input-foreground:#616161;--vscode-inputOption-activeBorder:#007acc;--vscode-inputOption-hoverBackground:rgba(184,184,184,.31);--vscode-inputOption-activeBackground:rgba(0,144,241,.2);--vscode-inputOption-activeForeground:#000;--vscode-input-placeholderForeground:rgba(97,97,97,.5);--vscode-inputValidation-infoBackground:#d6ecf2;--vscode-inputValidation-infoBorder:#007acc;--vscode-inputValidation-warningBackground:#f6f5d2;--vscode-inputValidation-warningBorder:#b89500;--vscode-inputValidation-errorBackground:#f2dede;--vscode-inputValidation-errorBorder:#be1100;--vscode-dropdown-background:#fff;--vscode-dropdown-foreground:#616161;--vscode-dropdown-border:#cecece;--vscode-button-foreground:#fff;--vscode-button-separator:rgba(255,255,255,.4);--vscode-button-background:#007acc;--vscode-button-hoverBackground:#0062a3;--vscode-button-secondaryForeground:#fff;--vscode-button-secondaryBackground:#5f6a79;--vscode-button-secondaryHoverBackground:#4c5561;--vscode-badge-background:#c4c4c4;--vscode-badge-foreground:#333;--vscode-scrollbar-shadow:#ddd;--vscode-scrollbarSlider-background:rgba(100,100,100,.4);--vscode-scrollbarSlider-hoverBackground:rgba(100,100,100,.7);--vscode-scrollbarSlider-activeBackground:rgba(0,0,0,.6);--vscode-progressBar-background:#0e70c0;--vscode-editorError-foreground:#e51400;--vscode-editorWarning-foreground:#bf8803;--vscode-editorInfo-foreground:#1a85ff;--vscode-editorHint-foreground:#6c6c6c;--vscode-sash-hoverBorder:#0090f1;--vscode-editor-background:#fffffe;--vscode-editor-foreground:#000;--vscode-editorStickyScroll-background:#fffffe;--vscode-editorStickyScrollHover-background:#f0f0f0;--vscode-editorWidget-background:#f3f3f3;--vscode-editorWidget-foreground:#616161;--vscode-editorWidget-border:#c8c8c8;--vscode-quickInput-background:#f3f3f3;--vscode-quickInput-foreground:#616161;--vscode-quickInputTitle-background:rgba(0,0,0,.06);--vscode-pickerGroup-foreground:#0066bf;--vscode-pickerGroup-border:#cccedb;--vscode-keybindingLabel-background:rgba(221,221,221,.4);--vscode-keybindingLabel-foreground:#555;--vscode-keybindingLabel-border:rgba(204,204,204,.4);--vscode-keybindingLabel-bottomBorder:rgba(187,187,187,.4);--vscode-editor-selectionBackground:#add6ff;--vscode-editor-inactiveSelectionBackground:#e5ebf1;--vscode-editor-selectionHighlightBackground:rgba(173,214,255,.3);--vscode-editor-findMatchBackground:#a8ac94;--vscode-editor-findMatchHighlightBackground:rgba(234,92,0,.33);--vscode-editor-findRangeHighlightBackground:rgba(180,180,180,.3);--vscode-searchEditor-findMatchBackground:rgba(234,92,0,.22);--vscode-search-resultsInfoForeground:#616161;--vscode-editor-hoverHighlightBackground:rgba(173,214,255,.15);--vscode-editorHoverWidget-background:#f3f3f3;--vscode-editorHoverWidget-foreground:#616161;--vscode-editorHoverWidget-border:#c8c8c8;--vscode-editorHoverWidget-statusBarBackground:#e7e7e7;--vscode-editorLink-activeForeground:#00f;--vscode-editorInlayHint-foreground:#969696;--vscode-editorInlayHint-background:rgba(196,196,196,.1);--vscode-editorInlayHint-typeForeground:#969696;--vscode-editorInlayHint-typeBackground:rgba(196,196,196,.1);--vscode-editorInlayHint-parameterForeground:#969696;--vscode-editorInlayHint-parameterBackground:rgba(196,196,196,.1);--vscode-editorLightBulb-foreground:#ddb100;--vscode-editorLightBulbAutoFix-foreground:#007acc;--vscode-diffEditor-insertedTextBackground:rgba(156,204,44,.25);--vscode-diffEditor-removedTextBackground:rgba(255,0,0,.2);--vscode-diffEditor-insertedLineBackground:rgba(155,185,85,.2);--vscode-diffEditor-removedLineBackground:rgba(255,0,0,.2);--vscode-diffEditor-diagonalFill:rgba(34,34,34,.2);--vscode-diffEditor-unchangedRegionBackground:#e4e4e4;--vscode-diffEditor-unchangedRegionForeground:#4d4c4c;--vscode-diffEditor-unchangedCodeBackground:rgba(184,184,184,.16);--vscode-list-focusOutline:#0090f1;--vscode-list-activeSelectionBackground:#0060c0;--vscode-list-activeSelectionForeground:#fff;--vscode-list-inactiveSelectionBackground:#e4e6f1;--vscode-list-hoverBackground:#f0f0f0;--vscode-list-dropBackground:#d6ebff;--vscode-list-highlightForeground:#0066bf;--vscode-list-focusHighlightForeground:#bbe7ff;--vscode-list-invalidItemForeground:#b89500;--vscode-list-errorForeground:#b01011;--vscode-list-warningForeground:#855f00;--vscode-listFilterWidget-background:#f3f3f3;--vscode-listFilterWidget-outline:transparent;--vscode-listFilterWidget-noMatchesOutline:#be1100;--vscode-listFilterWidget-shadow:rgba(0,0,0,.16);--vscode-list-filterMatchBackground:rgba(234,92,0,.33);--vscode-tree-indentGuidesStroke:#a9a9a9;--vscode-tree-inactiveIndentGuidesStroke:rgba(169,169,169,.4);--vscode-tree-tableColumnsBorder:rgba(97,97,97,.13);--vscode-tree-tableOddRowsBackground:rgba(97,97,97,.04);--vscode-list-deemphasizedForeground:#8e8e90;--vscode-checkbox-background:#fff;--vscode-checkbox-selectBackground:#f3f3f3;--vscode-checkbox-foreground:#616161;--vscode-checkbox-border:#cecece;--vscode-checkbox-selectBorder:#424242;--vscode-quickInputList-focusForeground:#fff;--vscode-quickInputList-focusBackground:#0060c0;--vscode-menu-foreground:#616161;--vscode-menu-background:#fff;--vscode-menu-selectionForeground:#fff;--vscode-menu-selectionBackground:#0060c0;--vscode-menu-separatorBackground:#d4d4d4;--vscode-toolbar-hoverBackground:rgba(184,184,184,.31);--vscode-toolbar-activeBackground:rgba(166,166,166,.31);--vscode-editor-snippetTabstopHighlightBackground:rgba(10,50,100,.2);--vscode-editor-snippetFinalTabstopHighlightBorder:rgba(10,50,100,.5);--vscode-breadcrumb-foreground:rgba(97,97,97,.8);--vscode-breadcrumb-background:#fffffe;--vscode-breadcrumb-focusForeground:#4e4e4e;--vscode-breadcrumb-activeSelectionForeground:#4e4e4e;--vscode-breadcrumbPicker-background:#f3f3f3;--vscode-merge-currentHeaderBackground:rgba(64,200,174,.5);--vscode-merge-currentContentBackground:rgba(64,200,174,.2);--vscode-merge-incomingHeaderBackground:rgba(64,166,255,.5);--vscode-merge-incomingContentBackground:rgba(64,166,255,.2);--vscode-merge-commonHeaderBackground:rgba(96,96,96,.4);--vscode-merge-commonContentBackground:rgba(96,96,96,.16);--vscode-editorOverviewRuler-currentContentForeground:rgba(64,200,174,.5);--vscode-editorOverviewRuler-incomingContentForeground:rgba(64,166,255,.5);--vscode-editorOverviewRuler-commonContentForeground:rgba(96,96,96,.4);--vscode-editorOverviewRuler-findMatchForeground:rgba(209,134,22,.49);--vscode-editorOverviewRuler-selectionHighlightForeground:rgba(160,160,160,.8);--vscode-minimap-findMatchHighlight:#d18616;--vscode-minimap-selectionOccurrenceHighlight:#c9c9c9;--vscode-minimap-selectionHighlight:#add6ff;--vscode-minimap-errorHighlight:rgba(255,18,18,.7);--vscode-minimap-warningHighlight:#bf8803;--vscode-minimap-foregroundOpacity:#000;--vscode-minimapSlider-background:rgba(100,100,100,.2);--vscode-minimapSlider-hoverBackground:rgba(100,100,100,.35);--vscode-minimapSlider-activeBackground:rgba(0,0,0,.3);--vscode-problemsErrorIcon-foreground:#e51400;--vscode-problemsWarningIcon-foreground:#bf8803;--vscode-problemsInfoIcon-foreground:#1a85ff;--vscode-charts-foreground:#616161;--vscode-charts-lines:rgba(97,97,97,.5);--vscode-charts-red:#e51400;--vscode-charts-blue:#1a85ff;--vscode-charts-yellow:#bf8803;--vscode-charts-orange:#d18616;--vscode-charts-green:#388a34;--vscode-charts-purple:#652d90;--vscode-diffEditor-move-border:rgba(139,139,139,.61);--vscode-diffEditor-moveActive-border:orange;--vscode-symbolIcon-arrayForeground:#616161;--vscode-symbolIcon-booleanForeground:#616161;--vscode-symbolIcon-classForeground:#d67e00;--vscode-symbolIcon-colorForeground:#616161;--vscode-symbolIcon-constantForeground:#616161;--vscode-symbolIcon-constructorForeground:#652d90;--vscode-symbolIcon-enumeratorForeground:#d67e00;--vscode-symbolIcon-enumeratorMemberForeground:#007acc;--vscode-symbolIcon-eventForeground:#d67e00;--vscode-symbolIcon-fieldForeground:#007acc;--vscode-symbolIcon-fileForeground:#616161;--vscode-symbolIcon-folderForeground:#616161;--vscode-symbolIcon-functionForeground:#652d90;--vscode-symbolIcon-interfaceForeground:#007acc;--vscode-symbolIcon-keyForeground:#616161;--vscode-symbolIcon-keywordForeground:#616161;--vscode-symbolIcon-methodForeground:#652d90;--vscode-symbolIcon-moduleForeground:#616161;--vscode-symbolIcon-namespaceForeground:#616161;--vscode-symbolIcon-nullForeground:#616161;--vscode-symbolIcon-numberForeground:#616161;--vscode-symbolIcon-objectForeground:#616161;--vscode-symbolIcon-operatorForeground:#616161;--vscode-symbolIcon-packageForeground:#616161;--vscode-symbolIcon-propertyForeground:#616161;--vscode-symbolIcon-referenceForeground:#616161;--vscode-symbolIcon-snippetForeground:#616161;--vscode-symbolIcon-stringForeground:#616161;--vscode-symbolIcon-structForeground:#616161;--vscode-symbolIcon-textForeground:#616161;--vscode-symbolIcon-typeParameterForeground:#616161;--vscode-symbolIcon-unitForeground:#616161;--vscode-symbolIcon-variableForeground:#007acc;--vscode-actionBar-toggledBackground:rgba(0,144,241,.2);--vscode-editor-lineHighlightBorder:#eee;--vscode-editor-rangeHighlightBackground:rgba(253,255,0,.2);--vscode-editor-symbolHighlightBackground:rgba(234,92,0,.33);--vscode-editorCursor-foreground:#000;--vscode-editorWhitespace-foreground:rgba(51,51,51,.2);--vscode-editorLineNumber-foreground:#237893;--vscode-editorIndentGuide-background:rgba(51,51,51,.2);--vscode-editorIndentGuide-activeBackground:rgba(51,51,51,.2);--vscode-editorIndentGuide-background1:#d3d3d3;--vscode-editorIndentGuide-background2:transparent;--vscode-editorIndentGuide-background3:transparent;--vscode-editorIndentGuide-background4:transparent;--vscode-editorIndentGuide-background5:transparent;--vscode-editorIndentGuide-background6:transparent;--vscode-editorIndentGuide-activeBackground1:#939393;--vscode-editorIndentGuide-activeBackground2:transparent;--vscode-editorIndentGuide-activeBackground3:transparent;--vscode-editorIndentGuide-activeBackground4:transparent;--vscode-editorIndentGuide-activeBackground5:transparent;--vscode-editorIndentGuide-activeBackground6:transparent;--vscode-editorActiveLineNumber-foreground:#0b216f;--vscode-editorLineNumber-activeForeground:#0b216f;--vscode-editorRuler-foreground:#d3d3d3;--vscode-editorCodeLens-foreground:#919191;--vscode-editorBracketMatch-background:rgba(0,100,0,.1);--vscode-editorBracketMatch-border:#b9b9b9;--vscode-editorOverviewRuler-border:rgba(127,127,127,.3);--vscode-editorGutter-background:#fffffe;--vscode-editorUnnecessaryCode-opacity:rgba(0,0,0,.47);--vscode-editorGhostText-foreground:rgba(0,0,0,.47);--vscode-editorOverviewRuler-rangeHighlightForeground:rgba(0,122,204,.6);--vscode-editorOverviewRuler-errorForeground:rgba(255,18,18,.7);--vscode-editorOverviewRuler-warningForeground:#bf8803;--vscode-editorOverviewRuler-infoForeground:#1a85ff;--vscode-editorBracketHighlight-foreground1:#0431fa;--vscode-editorBracketHighlight-foreground2:#319331;--vscode-editorBracketHighlight-foreground3:#7b3814;--vscode-editorBracketHighlight-foreground4:transparent;--vscode-editorBracketHighlight-foreground5:transparent;--vscode-editorBracketHighlight-foreground6:transparent;--vscode-editorBracketHighlight-unexpectedBracket-foreground:rgba(255,18,18,.8);--vscode-editorBracketPairGuide-background1:transparent;--vscode-editorBracketPairGuide-background2:transparent;--vscode-editorBracketPairGuide-background3:transparent;--vscode-editorBracketPairGuide-background4:transparent;--vscode-editorBracketPairGuide-background5:transparent;--vscode-editorBracketPairGuide-background6:transparent;--vscode-editorBracketPairGuide-activeBackground1:transparent;--vscode-editorBracketPairGuide-activeBackground2:transparent;--vscode-editorBracketPairGuide-activeBackground3:transparent;--vscode-editorBracketPairGuide-activeBackground4:transparent;--vscode-editorBracketPairGuide-activeBackground5:transparent;--vscode-editorBracketPairGuide-activeBackground6:transparent;--vscode-editorUnicodeHighlight-border:#cea33d;--vscode-editorUnicodeHighlight-background:rgba(206,163,61,.08);--vscode-editorOverviewRuler-bracketMatchForeground:#a0a0a0;--vscode-editor-linkedEditingBackground:rgba(255,0,0,.3);--vscode-editor-wordHighlightBackground:rgba(87,87,87,.25);--vscode-editor-wordHighlightStrongBackground:rgba(14,99,156,.25);--vscode-editor-wordHighlightTextBackground:rgba(87,87,87,.25);--vscode-editorOverviewRuler-wordHighlightForeground:rgba(160,160,160,.8);--vscode-editorOverviewRuler-wordHighlightStrongForeground:rgba(192,160,192,.8);--vscode-editorOverviewRuler-wordHighlightTextForeground:rgba(160,160,160,.8);--vscode-peekViewTitle-background:#f3f3f3;--vscode-peekViewTitleLabel-foreground:#000;--vscode-peekViewTitleDescription-foreground:#616161;--vscode-peekView-border:#1a85ff;--vscode-peekViewResult-background:#f3f3f3;--vscode-peekViewResult-lineForeground:#646465;--vscode-peekViewResult-fileForeground:#1e1e1e;--vscode-peekViewResult-selectionBackground:rgba(51,153,255,.2);--vscode-peekViewResult-selectionForeground:#6c6c6c;--vscode-peekViewEditor-background:#f2f8fc;--vscode-peekViewEditorGutter-background:#f2f8fc;--vscode-peekViewEditorStickyScroll-background:#f2f8fc;--vscode-peekViewResult-matchHighlightBackground:rgba(234,92,0,.3);--vscode-peekViewEditor-matchHighlightBackground:rgba(245,216,2,.87);--vscode-editorMarkerNavigationError-background:#e51400;--vscode-editorMarkerNavigationError-headerBackground:rgba(229,20,0,.1);--vscode-editorMarkerNavigationWarning-background:#bf8803;--vscode-editorMarkerNavigationWarning-headerBackground:rgba(191,136,3,.1);--vscode-editorMarkerNavigationInfo-background:#1a85ff;--vscode-editorMarkerNavigationInfo-headerBackground:rgba(26,133,255,.1);--vscode-editorMarkerNavigation-background:#fffffe;--vscode-editorHoverWidget-highlightForeground:#0066bf;--vscode-editorSuggestWidget-background:#f3f3f3;--vscode-editorSuggestWidget-border:#c8c8c8;--vscode-editorSuggestWidget-foreground:#000;--vscode-editorSuggestWidget-selectedForeground:#fff;--vscode-editorSuggestWidget-selectedBackground:#0060c0;--vscode-editorSuggestWidget-highlightForeground:#0066bf;--vscode-editorSuggestWidget-focusHighlightForeground:#bbe7ff;--vscode-editorSuggestWidgetStatus-foreground:rgba(0,0,0,.5);--vscode-editor-foldBackground:rgba(173,214,255,.3);--vscode-editorGutter-foldingControlForeground:#424242}.light-wlgpfI .monaco-diff-editor{--vscode-foreground:#616161;--vscode-disabledForeground:rgba(97,97,97,.5);--vscode-errorForeground:#a1260d;--vscode-descriptionForeground:#717171;--vscode-icon-foreground:#424242;--vscode-focusBorder:#0090f1;--vscode-textSeparator-foreground:rgba(0,0,0,.18);--vscode-textLink-foreground:#006ab1;--vscode-textLink-activeForeground:#006ab1;--vscode-textPreformat-foreground:#a31515;--vscode-textBlockQuote-background:rgba(127,127,127,.1);--vscode-textBlockQuote-border:rgba(0,122,204,.5);--vscode-textCodeBlock-background:rgba(220,220,220,.4);--vscode-widget-shadow:rgba(0,0,0,.16);--vscode-input-background:#fff;--vscode-input-foreground:#616161;--vscode-inputOption-activeBorder:#007acc;--vscode-inputOption-hoverBackground:rgba(184,184,184,.31);--vscode-inputOption-activeBackground:rgba(0,144,241,.2);--vscode-inputOption-activeForeground:#000;--vscode-input-placeholderForeground:rgba(97,97,97,.5);--vscode-inputValidation-infoBackground:#d6ecf2;--vscode-inputValidation-infoBorder:#007acc;--vscode-inputValidation-warningBackground:#f6f5d2;--vscode-inputValidation-warningBorder:#b89500;--vscode-inputValidation-errorBackground:#f2dede;--vscode-inputValidation-errorBorder:#be1100;--vscode-dropdown-background:#fff;--vscode-dropdown-foreground:#616161;--vscode-dropdown-border:#cecece;--vscode-button-foreground:#fff;--vscode-button-separator:rgba(255,255,255,.4);--vscode-button-background:#007acc;--vscode-button-hoverBackground:#0062a3;--vscode-button-secondaryForeground:#fff;--vscode-button-secondaryBackground:#5f6a79;--vscode-button-secondaryHoverBackground:#4c5561;--vscode-badge-background:#c4c4c4;--vscode-badge-foreground:#333;--vscode-scrollbar-shadow:#ddd;--vscode-scrollbarSlider-background:rgba(100,100,100,.4);--vscode-scrollbarSlider-hoverBackground:rgba(100,100,100,.7);--vscode-scrollbarSlider-activeBackground:rgba(0,0,0,.6);--vscode-progressBar-background:#0e70c0;--vscode-editorError-foreground:#e51400;--vscode-editorWarning-foreground:#bf8803;--vscode-editorInfo-foreground:#1a85ff;--vscode-editorHint-foreground:#6c6c6c;--vscode-sash-hoverBorder:#0090f1;--vscode-editor-background:#fffffe;--vscode-editor-foreground:#000;--vscode-editorStickyScroll-background:#fffffe;--vscode-editorStickyScrollHover-background:#f0f0f0;--vscode-editorWidget-background:#f3f3f3;--vscode-editorWidget-foreground:#616161;--vscode-editorWidget-border:#c8c8c8;--vscode-quickInput-background:#f3f3f3;--vscode-quickInput-foreground:#616161;--vscode-quickInputTitle-background:rgba(0,0,0,.06);--vscode-pickerGroup-foreground:#0066bf;--vscode-pickerGroup-border:#cccedb;--vscode-keybindingLabel-background:rgba(221,221,221,.4);--vscode-keybindingLabel-foreground:#555;--vscode-keybindingLabel-border:rgba(204,204,204,.4);--vscode-keybindingLabel-bottomBorder:rgba(187,187,187,.4);--vscode-editor-selectionBackground:#add6ff;--vscode-editor-inactiveSelectionBackground:#e5ebf1;--vscode-editor-selectionHighlightBackground:rgba(173,214,255,.3);--vscode-editor-findMatchBackground:#a8ac94;--vscode-editor-findMatchHighlightBackground:rgba(234,92,0,.33);--vscode-editor-findRangeHighlightBackground:rgba(180,180,180,.3);--vscode-searchEditor-findMatchBackground:rgba(234,92,0,.22);--vscode-search-resultsInfoForeground:#616161;--vscode-editor-hoverHighlightBackground:rgba(173,214,255,.15);--vscode-editorHoverWidget-background:#f3f3f3;--vscode-editorHoverWidget-foreground:#616161;--vscode-editorHoverWidget-border:#c8c8c8;--vscode-editorHoverWidget-statusBarBackground:#e7e7e7;--vscode-editorLink-activeForeground:#00f;--vscode-editorInlayHint-foreground:#969696;--vscode-editorInlayHint-background:rgba(196,196,196,.1);--vscode-editorInlayHint-typeForeground:#969696;--vscode-editorInlayHint-typeBackground:rgba(196,196,196,.1);--vscode-editorInlayHint-parameterForeground:#969696;--vscode-editorInlayHint-parameterBackground:rgba(196,196,196,.1);--vscode-editorLightBulb-foreground:#ddb100;--vscode-editorLightBulbAutoFix-foreground:#007acc;--vscode-diffEditor-insertedTextBackground:rgba(156,204,44,.25);--vscode-diffEditor-removedTextBackground:rgba(255,0,0,.2);--vscode-diffEditor-insertedLineBackground:rgba(155,185,85,.2);--vscode-diffEditor-removedLineBackground:rgba(255,0,0,.2);--vscode-diffEditor-diagonalFill:rgba(34,34,34,.2);--vscode-diffEditor-unchangedRegionBackground:#e4e4e4;--vscode-diffEditor-unchangedRegionForeground:#4d4c4c;--vscode-diffEditor-unchangedCodeBackground:rgba(184,184,184,.16);--vscode-list-focusOutline:#0090f1;--vscode-list-activeSelectionBackground:#0060c0;--vscode-list-activeSelectionForeground:#fff;--vscode-list-inactiveSelectionBackground:#e4e6f1;--vscode-list-hoverBackground:#f0f0f0;--vscode-list-dropBackground:#d6ebff;--vscode-list-highlightForeground:#0066bf;--vscode-list-focusHighlightForeground:#bbe7ff;--vscode-list-invalidItemForeground:#b89500;--vscode-list-errorForeground:#b01011;--vscode-list-warningForeground:#855f00;--vscode-listFilterWidget-background:#f3f3f3;--vscode-listFilterWidget-outline:transparent;--vscode-listFilterWidget-noMatchesOutline:#be1100;--vscode-listFilterWidget-shadow:rgba(0,0,0,.16);--vscode-list-filterMatchBackground:rgba(234,92,0,.33);--vscode-tree-indentGuidesStroke:#a9a9a9;--vscode-tree-inactiveIndentGuidesStroke:rgba(169,169,169,.4);--vscode-tree-tableColumnsBorder:rgba(97,97,97,.13);--vscode-tree-tableOddRowsBackground:rgba(97,97,97,.04);--vscode-list-deemphasizedForeground:#8e8e90;--vscode-checkbox-background:#fff;--vscode-checkbox-selectBackground:#f3f3f3;--vscode-checkbox-foreground:#616161;--vscode-checkbox-border:#cecece;--vscode-checkbox-selectBorder:#424242;--vscode-quickInputList-focusForeground:#fff;--vscode-quickInputList-focusBackground:#0060c0;--vscode-menu-foreground:#616161;--vscode-menu-background:#fff;--vscode-menu-selectionForeground:#fff;--vscode-menu-selectionBackground:#0060c0;--vscode-menu-separatorBackground:#d4d4d4;--vscode-toolbar-hoverBackground:rgba(184,184,184,.31);--vscode-toolbar-activeBackground:rgba(166,166,166,.31);--vscode-editor-snippetTabstopHighlightBackground:rgba(10,50,100,.2);--vscode-editor-snippetFinalTabstopHighlightBorder:rgba(10,50,100,.5);--vscode-breadcrumb-foreground:rgba(97,97,97,.8);--vscode-breadcrumb-background:#fffffe;--vscode-breadcrumb-focusForeground:#4e4e4e;--vscode-breadcrumb-activeSelectionForeground:#4e4e4e;--vscode-breadcrumbPicker-background:#f3f3f3;--vscode-merge-currentHeaderBackground:rgba(64,200,174,.5);--vscode-merge-currentContentBackground:rgba(64,200,174,.2);--vscode-merge-incomingHeaderBackground:rgba(64,166,255,.5);--vscode-merge-incomingContentBackground:rgba(64,166,255,.2);--vscode-merge-commonHeaderBackground:rgba(96,96,96,.4);--vscode-merge-commonContentBackground:rgba(96,96,96,.16);--vscode-editorOverviewRuler-currentContentForeground:rgba(64,200,174,.5);--vscode-editorOverviewRuler-incomingContentForeground:rgba(64,166,255,.5);--vscode-editorOverviewRuler-commonContentForeground:rgba(96,96,96,.4);--vscode-editorOverviewRuler-findMatchForeground:rgba(209,134,22,.49);--vscode-editorOverviewRuler-selectionHighlightForeground:rgba(160,160,160,.8);--vscode-minimap-findMatchHighlight:#d18616;--vscode-minimap-selectionOccurrenceHighlight:#c9c9c9;--vscode-minimap-selectionHighlight:#add6ff;--vscode-minimap-errorHighlight:rgba(255,18,18,.7);--vscode-minimap-warningHighlight:#bf8803;--vscode-minimap-foregroundOpacity:#000;--vscode-minimapSlider-background:rgba(100,100,100,.2);--vscode-minimapSlider-hoverBackground:rgba(100,100,100,.35);--vscode-minimapSlider-activeBackground:rgba(0,0,0,.3);--vscode-problemsErrorIcon-foreground:#e51400;--vscode-problemsWarningIcon-foreground:#bf8803;--vscode-problemsInfoIcon-foreground:#1a85ff;--vscode-charts-foreground:#616161;--vscode-charts-lines:rgba(97,97,97,.5);--vscode-charts-red:#e51400;--vscode-charts-blue:#1a85ff;--vscode-charts-yellow:#bf8803;--vscode-charts-orange:#d18616;--vscode-charts-green:#388a34;--vscode-charts-purple:#652d90;--vscode-diffEditor-move-border:rgba(139,139,139,.61);--vscode-diffEditor-moveActive-border:orange;--vscode-symbolIcon-arrayForeground:#616161;--vscode-symbolIcon-booleanForeground:#616161;--vscode-symbolIcon-classForeground:#d67e00;--vscode-symbolIcon-colorForeground:#616161;--vscode-symbolIcon-constantForeground:#616161;--vscode-symbolIcon-constructorForeground:#652d90;--vscode-symbolIcon-enumeratorForeground:#d67e00;--vscode-symbolIcon-enumeratorMemberForeground:#007acc;--vscode-symbolIcon-eventForeground:#d67e00;--vscode-symbolIcon-fieldForeground:#007acc;--vscode-symbolIcon-fileForeground:#616161;--vscode-symbolIcon-folderForeground:#616161;--vscode-symbolIcon-functionForeground:#652d90;--vscode-symbolIcon-interfaceForeground:#007acc;--vscode-symbolIcon-keyForeground:#616161;--vscode-symbolIcon-keywordForeground:#616161;--vscode-symbolIcon-methodForeground:#652d90;--vscode-symbolIcon-moduleForeground:#616161;--vscode-symbolIcon-namespaceForeground:#616161;--vscode-symbolIcon-nullForeground:#616161;--vscode-symbolIcon-numberForeground:#616161;--vscode-symbolIcon-objectForeground:#616161;--vscode-symbolIcon-operatorForeground:#616161;--vscode-symbolIcon-packageForeground:#616161;--vscode-symbolIcon-propertyForeground:#616161;--vscode-symbolIcon-referenceForeground:#616161;--vscode-symbolIcon-snippetForeground:#616161;--vscode-symbolIcon-stringForeground:#616161;--vscode-symbolIcon-structForeground:#616161;--vscode-symbolIcon-textForeground:#616161;--vscode-symbolIcon-typeParameterForeground:#616161;--vscode-symbolIcon-unitForeground:#616161;--vscode-symbolIcon-variableForeground:#007acc;--vscode-actionBar-toggledBackground:rgba(0,144,241,.2);--vscode-editor-lineHighlightBorder:#eee;--vscode-editor-rangeHighlightBackground:rgba(253,255,0,.2);--vscode-editor-symbolHighlightBackground:rgba(234,92,0,.33);--vscode-editorCursor-foreground:#000;--vscode-editorWhitespace-foreground:rgba(51,51,51,.2);--vscode-editorLineNumber-foreground:#237893;--vscode-editorIndentGuide-background:rgba(51,51,51,.2);--vscode-editorIndentGuide-activeBackground:rgba(51,51,51,.2);--vscode-editorIndentGuide-background1:#d3d3d3;--vscode-editorIndentGuide-background2:transparent;--vscode-editorIndentGuide-background3:transparent;--vscode-editorIndentGuide-background4:transparent;--vscode-editorIndentGuide-background5:transparent;--vscode-editorIndentGuide-background6:transparent;--vscode-editorIndentGuide-activeBackground1:#939393;--vscode-editorIndentGuide-activeBackground2:transparent;--vscode-editorIndentGuide-activeBackground3:transparent;--vscode-editorIndentGuide-activeBackground4:transparent;--vscode-editorIndentGuide-activeBackground5:transparent;--vscode-editorIndentGuide-activeBackground6:transparent;--vscode-editorActiveLineNumber-foreground:#0b216f;--vscode-editorLineNumber-activeForeground:#0b216f;--vscode-editorRuler-foreground:#d3d3d3;--vscode-editorCodeLens-foreground:#919191;--vscode-editorBracketMatch-background:rgba(0,100,0,.1);--vscode-editorBracketMatch-border:#b9b9b9;--vscode-editorOverviewRuler-border:rgba(127,127,127,.3);--vscode-editorGutter-background:#fffffe;--vscode-editorUnnecessaryCode-opacity:rgba(0,0,0,.47);--vscode-editorGhostText-foreground:rgba(0,0,0,.47);--vscode-editorOverviewRuler-rangeHighlightForeground:rgba(0,122,204,.6);--vscode-editorOverviewRuler-errorForeground:rgba(255,18,18,.7);--vscode-editorOverviewRuler-warningForeground:#bf8803;--vscode-editorOverviewRuler-infoForeground:#1a85ff;--vscode-editorBracketHighlight-foreground1:#0431fa;--vscode-editorBracketHighlight-foreground2:#319331;--vscode-editorBracketHighlight-foreground3:#7b3814;--vscode-editorBracketHighlight-foreground4:transparent;--vscode-editorBracketHighlight-foreground5:transparent;--vscode-editorBracketHighlight-foreground6:transparent;--vscode-editorBracketHighlight-unexpectedBracket-foreground:rgba(255,18,18,.8);--vscode-editorBracketPairGuide-background1:transparent;--vscode-editorBracketPairGuide-background2:transparent;--vscode-editorBracketPairGuide-background3:transparent;--vscode-editorBracketPairGuide-background4:transparent;--vscode-editorBracketPairGuide-background5:transparent;--vscode-editorBracketPairGuide-background6:transparent;--vscode-editorBracketPairGuide-activeBackground1:transparent;--vscode-editorBracketPairGuide-activeBackground2:transparent;--vscode-editorBracketPairGuide-activeBackground3:transparent;--vscode-editorBracketPairGuide-activeBackground4:transparent;--vscode-editorBracketPairGuide-activeBackground5:transparent;--vscode-editorBracketPairGuide-activeBackground6:transparent;--vscode-editorUnicodeHighlight-border:#cea33d;--vscode-editorUnicodeHighlight-background:rgba(206,163,61,.08);--vscode-editorOverviewRuler-bracketMatchForeground:#a0a0a0;--vscode-editor-linkedEditingBackground:rgba(255,0,0,.3);--vscode-editor-wordHighlightBackground:rgba(87,87,87,.25);--vscode-editor-wordHighlightStrongBackground:rgba(14,99,156,.25);--vscode-editor-wordHighlightTextBackground:rgba(87,87,87,.25);--vscode-editorOverviewRuler-wordHighlightForeground:rgba(160,160,160,.8);--vscode-editorOverviewRuler-wordHighlightStrongForeground:rgba(192,160,192,.8);--vscode-editorOverviewRuler-wordHighlightTextForeground:rgba(160,160,160,.8);--vscode-peekViewTitle-background:#f3f3f3;--vscode-peekViewTitleLabel-foreground:#000;--vscode-peekViewTitleDescription-foreground:#616161;--vscode-peekView-border:#1a85ff;--vscode-peekViewResult-background:#f3f3f3;--vscode-peekViewResult-lineForeground:#646465;--vscode-peekViewResult-fileForeground:#1e1e1e;--vscode-peekViewResult-selectionBackground:rgba(51,153,255,.2);--vscode-peekViewResult-selectionForeground:#6c6c6c;--vscode-peekViewEditor-background:#f2f8fc;--vscode-peekViewEditorGutter-background:#f2f8fc;--vscode-peekViewEditorStickyScroll-background:#f2f8fc;--vscode-peekViewResult-matchHighlightBackground:rgba(234,92,0,.3);--vscode-peekViewEditor-matchHighlightBackground:rgba(245,216,2,.87);--vscode-editorMarkerNavigationError-background:#e51400;--vscode-editorMarkerNavigationError-headerBackground:rgba(229,20,0,.1);--vscode-editorMarkerNavigationWarning-background:#bf8803;--vscode-editorMarkerNavigationWarning-headerBackground:rgba(191,136,3,.1);--vscode-editorMarkerNavigationInfo-background:#1a85ff;--vscode-editorMarkerNavigationInfo-headerBackground:rgba(26,133,255,.1);--vscode-editorMarkerNavigation-background:#fffffe;--vscode-editorHoverWidget-highlightForeground:#0066bf;--vscode-editorSuggestWidget-background:#f3f3f3;--vscode-editorSuggestWidget-border:#c8c8c8;--vscode-editorSuggestWidget-foreground:#000;--vscode-editorSuggestWidget-selectedForeground:#fff;--vscode-editorSuggestWidget-selectedBackground:#0060c0;--vscode-editorSuggestWidget-highlightForeground:#0066bf;--vscode-editorSuggestWidget-focusHighlightForeground:#bbe7ff;--vscode-editorSuggestWidgetStatus-foreground:rgba(0,0,0,.5);--vscode-editor-foldBackground:rgba(173,214,255,.3);--vscode-editorGutter-foldingControlForeground:#424242}.light-wlgpfI .monaco-editor .mtk1{color:#000}.light-wlgpfI .monaco-diff-editor .mtk1{color:#000}.light-wlgpfI .monaco-editor .mtk9{color:#000}.light-wlgpfI .monaco-diff-editor .mtk9{color:#000}.light-wlgpfI .monaco-editor .mtk2{color:#fffffe}.light-wlgpfI .monaco-diff-editor .mtk2{color:#fffffe}.light-wlgpfI .monaco-editor .mtk3{color:gray}.light-wlgpfI .monaco-diff-editor .mtk3{color:gray}.light-wlgpfI .monaco-editor .mtk4{color:#a31515}.light-wlgpfI .monaco-diff-editor .mtk4{color:#a31515}.light-wlgpfI .monaco-editor .mtk20{color:#a31515}.light-wlgpfI .monaco-diff-editor .mtk20{color:#a31515}.light-wlgpfI .monaco-editor .mtk5{color:#0451a5}.light-wlgpfI .monaco-diff-editor .mtk5{color:#0451a5}.light-wlgpfI .monaco-editor .mtk6{color:#098658}.light-wlgpfI .monaco-diff-editor .mtk6{color:#098658}.light-wlgpfI .monaco-editor .mtk7{color:#098658}.light-wlgpfI .monaco-diff-editor .mtk7{color:#098658}.light-wlgpfI .monaco-editor .mtk8{color:green}.light-wlgpfI .monaco-diff-editor .mtk8{color:green}.light-wlgpfI .monaco-editor .mtk10{color:#383838}.light-wlgpfI .monaco-diff-editor .mtk10{color:#383838}.light-wlgpfI .monaco-editor .mtk11{color:#cd3131}.light-wlgpfI .monaco-diff-editor .mtk11{color:#cd3131}.light-wlgpfI .monaco-editor .mtk12{color:#863b00}.light-wlgpfI .monaco-diff-editor .mtk12{color:#863b00}.light-wlgpfI .monaco-editor .mtk13{color:#af00db}.light-wlgpfI .monaco-diff-editor .mtk13{color:#af00db}.light-wlgpfI .monaco-editor .mtk14{color:maroon}.light-wlgpfI .monaco-diff-editor .mtk14{color:maroon}.light-wlgpfI .monaco-editor .mtk15{color:#e00000}.light-wlgpfI .monaco-diff-editor .mtk15{color:#e00000}.light-wlgpfI .monaco-editor .mtk16{color:#3030c0}.light-wlgpfI .monaco-diff-editor .mtk16{color:#3030c0}.light-wlgpfI .monaco-editor .mtk17{color:#666}.light-wlgpfI .monaco-diff-editor .mtk17{color:#666}.light-wlgpfI .monaco-editor .mtk18{color:#789}.light-wlgpfI .monaco-diff-editor .mtk18{color:#789}.light-wlgpfI .monaco-editor .mtk19{color:#c700c7}.light-wlgpfI .monaco-diff-editor .mtk19{color:#c700c7}.light-wlgpfI .monaco-editor .mtk21{color:#4f76ac}.light-wlgpfI .monaco-diff-editor .mtk21{color:#4f76ac}.light-wlgpfI .monaco-editor .mtk22{color:teal}.light-wlgpfI .monaco-diff-editor .mtk22{color:teal}.light-wlgpfI .monaco-editor .mtk23{color:#018}.light-wlgpfI .monaco-diff-editor .mtk23{color:#018}.light-wlgpfI .monaco-editor .mtk24{color:#4864aa}.light-wlgpfI .monaco-diff-editor .mtk24{color:#4864aa}.light-wlgpfI .monaco-editor .inputarea.ime-input{color:#000!important;background-color:#fffffe!important}.light-wlgpfI .monaco-diff-editor .inputarea.ime-input{color:#000!important;background-color:#fffffe!important}.light-wlgpfI .monaco-editor .view-overlays .current-line{border:2px solid #eee}.light-wlgpfI .monaco-diff-editor .view-overlays .current-line{border:2px solid #eee}.light-wlgpfI .monaco-editor .margin-view-overlays .current-line-margin{border:2px solid #eee}.light-wlgpfI .monaco-diff-editor .margin-view-overlays .current-line-margin{border:2px solid #eee}.light-wlgpfI .monaco-editor .bracket-indent-guide.lvl-0{--guide-color:rgba(4,49,250,.3);--guide-color-active:#0431fa}.light-wlgpfI .monaco-diff-editor .bracket-indent-guide.lvl-0{--guide-color:rgba(4,49,250,.3);--guide-color-active:#0431fa}.light-wlgpfI .monaco-editor .bracket-indent-guide.lvl-3{--guide-color:rgba(4,49,250,.3);--guide-color-active:#0431fa}.light-wlgpfI .monaco-diff-editor .bracket-indent-guide.lvl-3{--guide-color:rgba(4,49,250,.3);--guide-color-active:#0431fa}.light-wlgpfI .monaco-editor .bracket-indent-guide.lvl-6{--guide-color:rgba(4,49,250,.3);--guide-color-active:#0431fa}.light-wlgpfI .monaco-diff-editor .bracket-indent-guide.lvl-6{--guide-color:rgba(4,49,250,.3);--guide-color-active:#0431fa}.light-wlgpfI .monaco-editor .bracket-indent-guide.lvl-9{--guide-color:rgba(4,49,250,.3);--guide-color-active:#0431fa}.light-wlgpfI .monaco-diff-editor .bracket-indent-guide.lvl-9{--guide-color:rgba(4,49,250,.3);--guide-color-active:#0431fa}.light-wlgpfI .monaco-editor .bracket-indent-guide.lvl-1{--guide-color:rgba(49,147,49,.3);--guide-color-active:#319331}.light-wlgpfI .monaco-diff-editor .bracket-indent-guide.lvl-1{--guide-color:rgba(49,147,49,.3);--guide-color-active:#319331}.light-wlgpfI .monaco-editor .bracket-indent-guide.lvl-4{--guide-color:rgba(49,147,49,.3);--guide-color-active:#319331}.light-wlgpfI .monaco-diff-editor .bracket-indent-guide.lvl-4{--guide-color:rgba(49,147,49,.3);--guide-color-active:#319331}.light-wlgpfI .monaco-editor .bracket-indent-guide.lvl-7{--guide-color:rgba(49,147,49,.3);--guide-color-active:#319331}.light-wlgpfI .monaco-diff-editor .bracket-indent-guide.lvl-7{--guide-color:rgba(49,147,49,.3);--guide-color-active:#319331}.light-wlgpfI .monaco-editor .bracket-indent-guide.lvl-10{--guide-color:rgba(49,147,49,.3);--guide-color-active:#319331}.light-wlgpfI .monaco-diff-editor .bracket-indent-guide.lvl-10{--guide-color:rgba(49,147,49,.3);--guide-color-active:#319331}.light-wlgpfI .monaco-editor .bracket-indent-guide.lvl-2{--guide-color:rgba(123,56,20,.3);--guide-color-active:#7b3814}.light-wlgpfI .monaco-diff-editor .bracket-indent-guide.lvl-2{--guide-color:rgba(123,56,20,.3);--guide-color-active:#7b3814}.light-wlgpfI .monaco-editor .bracket-indent-guide.lvl-5{--guide-color:rgba(123,56,20,.3);--guide-color-active:#7b3814}.light-wlgpfI .monaco-diff-editor .bracket-indent-guide.lvl-5{--guide-color:rgba(123,56,20,.3);--guide-color-active:#7b3814}.light-wlgpfI .monaco-editor .bracket-indent-guide.lvl-8{--guide-color:rgba(123,56,20,.3);--guide-color-active:#7b3814}.light-wlgpfI .monaco-diff-editor .bracket-indent-guide.lvl-8{--guide-color:rgba(123,56,20,.3);--guide-color-active:#7b3814}.light-wlgpfI .monaco-editor .bracket-indent-guide.lvl-11{--guide-color:rgba(123,56,20,.3);--guide-color-active:#7b3814}.light-wlgpfI .monaco-diff-editor .bracket-indent-guide.lvl-11{--guide-color:rgba(123,56,20,.3);--guide-color-active:#7b3814}.light-wlgpfI .monaco-editor .lines-content .core-guide.core-guide-indent[class*=lvl-]{--indent-color:#d3d3d3;--indent-color-active:#939393}.light-wlgpfI .monaco-diff-editor .lines-content .core-guide.core-guide-indent[class*=lvl-]{--indent-color:#d3d3d3;--indent-color-active:#939393}.light-wlgpfI .monaco-editor .lines-content .core-guide-indent{box-shadow:1px 0 0 0 var(--indent-color)inset}.light-wlgpfI .monaco-diff-editor .lines-content .core-guide-indent{box-shadow:1px 0 0 0 var(--indent-color)inset}.light-wlgpfI .monaco-editor .lines-content .core-guide-indent.indent-active{box-shadow:1px 0 0 0 var(--indent-color-active)inset}.light-wlgpfI .monaco-diff-editor .lines-content .core-guide-indent.indent-active{box-shadow:1px 0 0 0 var(--indent-color-active)inset}.light-wlgpfI .monaco-editor .line-numbers.dimmed-line-number{color:rgba(35,120,147,.4)}.light-wlgpfI .monaco-diff-editor .line-numbers.dimmed-line-number{color:rgba(35,120,147,.4)}.light-wlgpfI .monaco-editor .cursors-layer .cursor{color:#fff;background-color:#000;border-color:#000}.light-wlgpfI .monaco-diff-editor .cursors-layer .cursor{color:#fff;background-color:#000;border-color:#000}.light-wlgpfI .monaco-editor .bracket-highlighting-0{color:#0431fa}.light-wlgpfI .monaco-diff-editor .bracket-highlighting-0{color:#0431fa}.light-wlgpfI .monaco-editor .bracket-highlighting-3{color:#0431fa}.light-wlgpfI .monaco-diff-editor .bracket-highlighting-3{color:#0431fa}.light-wlgpfI .monaco-editor .bracket-highlighting-6{color:#0431fa}.light-wlgpfI .monaco-diff-editor .bracket-highlighting-6{color:#0431fa}.light-wlgpfI .monaco-editor .bracket-highlighting-9{color:#0431fa}.light-wlgpfI .monaco-diff-editor .bracket-highlighting-9{color:#0431fa}.light-wlgpfI .monaco-editor .bracket-highlighting-12{color:#0431fa}.light-wlgpfI .monaco-diff-editor .bracket-highlighting-12{color:#0431fa}.light-wlgpfI .monaco-editor .bracket-highlighting-1{color:#319331}.light-wlgpfI .monaco-diff-editor .bracket-highlighting-1{color:#319331}.light-wlgpfI .monaco-editor .bracket-highlighting-4{color:#319331}.light-wlgpfI .monaco-diff-editor .bracket-highlighting-4{color:#319331}.light-wlgpfI .monaco-editor .bracket-highlighting-7{color:#319331}.light-wlgpfI .monaco-diff-editor .bracket-highlighting-7{color:#319331}.light-wlgpfI .monaco-editor .bracket-highlighting-10{color:#319331}.light-wlgpfI .monaco-diff-editor .bracket-highlighting-10{color:#319331}.light-wlgpfI .monaco-editor .bracket-highlighting-13{color:#319331}.light-wlgpfI .monaco-diff-editor .bracket-highlighting-13{color:#319331}.light-wlgpfI .monaco-editor .bracket-highlighting-2{color:#7b3814}.light-wlgpfI .monaco-diff-editor .bracket-highlighting-2{color:#7b3814}.light-wlgpfI .monaco-editor .bracket-highlighting-5{color:#7b3814}.light-wlgpfI .monaco-diff-editor .bracket-highlighting-5{color:#7b3814}.light-wlgpfI .monaco-editor .bracket-highlighting-8{color:#7b3814}.light-wlgpfI .monaco-diff-editor .bracket-highlighting-8{color:#7b3814}.light-wlgpfI .monaco-editor .bracket-highlighting-11{color:#7b3814}.light-wlgpfI .monaco-diff-editor .bracket-highlighting-11{color:#7b3814}.light-wlgpfI .monaco-editor .bracket-highlighting-14{color:#7b3814}.light-wlgpfI .monaco-diff-editor .bracket-highlighting-14{color:#7b3814}.light-wlgpfI .monaco-editor .squiggly-error{background:url(${m}) 0 100% repeat-x}.light-wlgpfI .monaco-diff-editor .squiggly-error{background:url(${m}) 0 100% repeat-x}.light-wlgpfI .monaco-editor .squiggly-warning{background:url(${h}) 0 100% repeat-x}.light-wlgpfI .monaco-diff-editor .squiggly-warning{background:url(${h}) 0 100% repeat-x}.light-wlgpfI .monaco-editor .squiggly-info{background:url(${f}) 0 100% repeat-x}.light-wlgpfI .monaco-diff-editor .squiggly-info{background:url(${f}) 0 100% repeat-x}.light-wlgpfI .monaco-editor .squiggly-hint{background:url(${b}) 0 100% no-repeat}.light-wlgpfI .monaco-diff-editor .squiggly-hint{background:url(${b}) 0 100% no-repeat}.light-wlgpfI .monaco-editor .showUnused .squiggly-inline-unnecessary{opacity:.467}.light-wlgpfI .monaco-diff-editor .showUnused .squiggly-inline-unnecessary{opacity:.467}.light-wlgpfI .monaco-editor .selectionHighlight{background-color:rgba(173,214,255,.15)}.light-wlgpfI .monaco-diff-editor .selectionHighlight{background-color:rgba(173,214,255,.15)}.light-wlgpfI .monaco-editor .diagonal-fill{background-image:linear-gradient(-45deg,rgba(34,34,34,.2) 12.5%,transparent 12.5%,transparent 50%,rgba(34,34,34,.2) 50%,rgba(34,34,34,.2) 62.5%,transparent 62.5%,transparent 100%);background-size:8px 8px}.light-wlgpfI .monaco-diff-editor .diagonal-fill{background-image:linear-gradient(-45deg,rgba(34,34,34,.2) 12.5%,transparent 12.5%,transparent 50%,rgba(34,34,34,.2) 50%,rgba(34,34,34,.2) 62.5%,transparent 62.5%,transparent 100%);background-size:8px 8px}.light-wlgpfI .monaco-editor .findMatch{background-color:rgba(234,92,0,.33)}.light-wlgpfI .monaco-diff-editor .findMatch{background-color:rgba(234,92,0,.33)}.light-wlgpfI .monaco-editor .currentFindMatch{background-color:#a8ac94}.light-wlgpfI .monaco-diff-editor .currentFindMatch{background-color:#a8ac94}.light-wlgpfI .monaco-editor .findScope{background-color:rgba(180,180,180,.3)}.light-wlgpfI .monaco-diff-editor .findScope{background-color:rgba(180,180,180,.3)}.light-wlgpfI .monaco-editor .find-widget{color:#616161;background-color:#f3f3f3;border:none;box-shadow:0 0 8px 2px rgba(0,0,0,.16)}.light-wlgpfI .monaco-diff-editor .find-widget{color:#616161;background-color:#f3f3f3;border:none;box-shadow:0 0 8px 2px rgba(0,0,0,.16)}.light-wlgpfI .monaco-editor .find-widget.no-results .matchesCount{color:#a1260d}.light-wlgpfI .monaco-diff-editor .find-widget.no-results .matchesCount{color:#a1260d}.light-wlgpfI .monaco-editor .find-widget .monaco-sash{background-color:#c8c8c8}.light-wlgpfI .monaco-diff-editor .find-widget .monaco-sash{background-color:#c8c8c8}.light-wlgpfI .monaco-editor .find-widget .button:not(.disabled):hover{background-color:rgba(184,184,184,.31)!important}.light-wlgpfI .monaco-diff-editor .find-widget .button:not(.disabled):hover{background-color:rgba(184,184,184,.31)!important}.light-wlgpfI .monaco-editor .find-widget .codicon-find-selection:hover{background-color:rgba(184,184,184,.31)!important}.light-wlgpfI .monaco-diff-editor .find-widget .codicon-find-selection:hover{background-color:rgba(184,184,184,.31)!important}.light-wlgpfI .monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline-color:#0090f1}.light-wlgpfI .monaco-diff-editor .find-widget .monaco-inputbox.synthetic-focus{outline-color:#0090f1}.light-wlgpfI .monaco-editor .monaco-hover .hover-row:not(:-webkit-any(:first-child,:empty)){border-top:1px solid rgba(200,200,200,.5)}.light-wlgpfI .monaco-editor .monaco-hover .hover-row:not(:-moz-any(:first-child,:empty)){border-top:1px solid rgba(200,200,200,.5)}.light-wlgpfI .monaco-editor .monaco-hover .hover-row:not(:is(:first-child,:empty)){border-top:1px solid rgba(200,200,200,.5)}.light-wlgpfI .monaco-diff-editor .monaco-hover .hover-row:not(:-webkit-any(:first-child,:empty)){border-top:1px solid rgba(200,200,200,.5)}.light-wlgpfI .monaco-diff-editor .monaco-hover .hover-row:not(:-moz-any(:first-child,:empty)){border-top:1px solid rgba(200,200,200,.5)}.light-wlgpfI .monaco-diff-editor .monaco-hover .hover-row:not(:is(:first-child,:empty)){border-top:1px solid rgba(200,200,200,.5)}.light-wlgpfI .monaco-editor .monaco-hover hr{border-top:1px solid rgba(200,200,200,.5);border-bottom:0 solid rgba(200,200,200,.5)}.light-wlgpfI .monaco-diff-editor .monaco-hover hr{border-top:1px solid rgba(200,200,200,.5);border-bottom:0 solid rgba(200,200,200,.5)}.light-wlgpfI .monaco-editor .marker-widget{background-color:#fffffe!important}.light-wlgpfI .monaco-diff-editor .marker-widget{background-color:#fffffe!important}.light-wlgpfI .monaco-editor .peekview-title .filename{color:#000!important}.light-wlgpfI .monaco-diff-editor .peekview-title .filename{color:#000!important}.light-wlgpfI .monaco-editor .peekview-title .dirname{color:#616161!important}.light-wlgpfI .monaco-diff-editor .peekview-title .dirname{color:#616161!important}`,""]),g.locals={light:"light-wlgpfI"},t.Z=g},542749:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,".card-WWaG88{cursor:pointer;border-radius:8px;min-width:248px;height:172px;transition:box-shadow .4s;position:relative;background-color:#fff!important}.card-WWaG88:hover{box-shadow:0 4px 20px rgba(31,35,41,.04),0 4px 10px rgba(31,35,41,.04),0 2px 5px rgba(31,35,41,.04)}.card-favorite-not-publish-AfESBZ{cursor:not-allowed;background-color:var(--light-usage-fill-color-fill-0,rgba(46,50,56,.05))!important}.add-card-xOp1w2{background-color:#fff;border-radius:8px}.add-card-inner-lgEfib{flex-direction:column;justify-content:center;display:flex}.name-wrap-3LtU4M{align-items:center;width:100%;height:40px;padding:16px 16px 0;display:flex}.avatar-TraOkA{border-radius:50%px;flex-shrink:0;width:24px;height:24px}.name-VlEJfE{color:#000;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 156px);font-size:14px;font-weight:600;line-height:24px;position:absolute;top:16px;left:48px;overflow:hidden}.extra-_ZJc6g{margin-left:auto}.card-content-zVHGG2{flex-direction:column;height:calc(100% - 40px);padding:16px;display:flex}.description-yNsXzW{color:#494c4f;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:18px;display:-webkit-box;overflow:hidden}.recent-modify-WxpK6V{color:rgba(28,31,35,.6);margin-top:8px;font-size:12px;line-height:16px}.creator-D0IKDF{width:-moz-fit-content;color:#346ef8;background:rgba(51,112,255,.1);width:fit-content;padding:4px;font-size:12px;line-height:16px;border:none!important;border-radius:3px!important}.upload-form-v53bGL{flex-direction:column;gap:16px;display:flex}.upload-form-v53bGL .upload-field-_H0EYS{padding-top:0}.upload-form-v53bGL .upload-field-_H0EYS .semi-form-field-help-text{justify-content:center}.upload-form-v53bGL .textarea-single-line-uvgoZH .semi-input-textarea-counter{position:absolute;top:6px;right:0}.upload-form-v53bGL .textarea-multi-line-FNBYUS{margin-bottom:16px}.upload-form-v53bGL .textarea-multi-line-FNBYUS .semi-input-textarea-counter{min-height:0;padding:0;position:absolute;bottom:-20px;right:0}.upload-form-v53bGL .footer-draft-eEXooH{color:var(--coz-fg-secondary);align-items:flex-start;padding-top:16px;font-size:12px;line-height:16px}.upload-form-v53bGL .footer-draft-eEXooH .link-HhAOLc{color:var(--coz-fg-hglt);font-weight:400}.upload-form-v53bGL .footer-draft-eEXooH .semi-icon{margin-top:2px}.upload-form-v53bGL .semi-form-field{padding:0}.upload-form-v53bGL input::-webkit-contacts-auto-fill-button{pointer-events:none;visibility:hidden;position:absolute;right:0;display:none!important}.upload-form-item-Emgg3K .semi-form-field-label-text{display:none}.collect-num-FOBat8{width:12px;height:12px;margin-right:4px}.collect-num-FOBat8 svg{width:12px;height:12px}.user-info-H0TT65{margin-top:auto}.extinfo-c0Y2mI{max-width:338px;font-size:12px}.extinfo-c0Y2mI .extinfo-title-M2K7EQ{font-weight:700}.extinfo-c0Y2mI .extinfo-text-lqFN78{color:rgba(28,31,35,.6)}.extinfo-c0Y2mI .extinfo-ex-sKRvhO{color:rgba(28,31,35,.6);border:1px solid rgba(28,31,35,.08);margin-top:4px;padding:6px 10px}.upload-avatar-u9p4bH{flex-shrink:0;border-radius:var(--spacing-tight,8px)!important;background:#fff!important;width:80px!important;height:80px!important}.header-list-u7VT62 .semi-form-field-label-with-extra{padding-right:0}.header-list-u7VT62 .semi-form-field-label-extra{flex:1}.header-list-u7VT62 .header-list-extra-zndrVs{justify-content:space-between;align-items:center;width:100%;display:flex}.header-list-u7VT62 .header-list-box-G0zP4N{border:1px solid var(--coz-stroke-primary);border-radius:8px;max-height:348px;overflow:auto}.header-list-u7VT62 .header-list-box-G0zP4N .header-row-n1fgFr{border-bottom:1px solid var(--coz-stroke-primary)}.header-list-u7VT62 .header-list-box-G0zP4N .header-col-content-GEof7W{color:var(--coz-fg-secondary);padding:6px 8px;font-size:12px;font-weight:500;line-height:16px}.header-list-u7VT62 .header-list-box-G0zP4N .col-content-jxn1tn{padding:12px 8px}.error-msg-box-fHOH9H{position:relative;top:-24px}.error-msg-box-fHOH9H .error-msg-xl_IO9{color:#f93920;text-align:left;padding:8px 16px;line-height:16px;display:block}.error-msg-box-fHOH9H .error-msg-xl_IO9 .link-HhAOLc{color:#4d53e8;font-weight:400}.creation-method-n7THTL{flex-direction:column;justify-content:space-between;gap:4px;padding:0!important;display:flex!important}.creation-method-n7THTL .semi-radio{background-color:var(--coz-mg-card);border:solid 1px var(--coz-stroke-plus);border-radius:8px;padding:8px 12px}.creation-method-n7THTL .semi-radio:hover{background-color:var(--coz-mg-secondary-hovered)}.creation-method-n7THTL .semi-radio:active{background-color:var(--coz-mg-secondary-pressed)}.creation-method-n7THTL .semi-radio-inner{display:none}.creation-method-n7THTL .semi-radio-addon{line-height:20px}.creation-method-n7THTL .semi-radio-checked{background:var(--coz-mg-hglt);border:1px solid var(--coz-stroke-hglt)}.creation-method-n7THTL .semi-radio-checked:hover{background-color:var(--coz-mg-hglt-hovered)}.creation-method-n7THTL .semi-radio-checked:active{background-color:var(--coz-mg-hglt-pressed)}.code-runtime-list-VSrKiF .semi-select-option-selected .semi-select-option-icon{color:#4d53e8}.bot-code-edit-title-action-l5WQpX{justify-content:space-between;align-items:center;width:100%;display:flex}",""]),a.locals={card:"card-WWaG88","card-favorite-not-publish":"card-favorite-not-publish-AfESBZ",cardFavoriteNotPublish:"card-favorite-not-publish-AfESBZ","add-card":"add-card-xOp1w2",addCard:"add-card-xOp1w2","add-card-inner":"add-card-inner-lgEfib",addCardInner:"add-card-inner-lgEfib","name-wrap":"name-wrap-3LtU4M",nameWrap:"name-wrap-3LtU4M",avatar:"avatar-TraOkA",name:"name-VlEJfE",extra:"extra-_ZJc6g","card-content":"card-content-zVHGG2",cardContent:"card-content-zVHGG2",description:"description-yNsXzW","recent-modify":"recent-modify-WxpK6V",recentModify:"recent-modify-WxpK6V",creator:"creator-D0IKDF","upload-form":"upload-form-v53bGL",uploadForm:"upload-form-v53bGL","upload-field":"upload-field-_H0EYS",uploadField:"upload-field-_H0EYS","textarea-single-line":"textarea-single-line-uvgoZH",textareaSingleLine:"textarea-single-line-uvgoZH","textarea-multi-line":"textarea-multi-line-FNBYUS",textareaMultiLine:"textarea-multi-line-FNBYUS","footer-draft":"footer-draft-eEXooH",footerDraft:"footer-draft-eEXooH",link:"link-HhAOLc","upload-form-item":"upload-form-item-Emgg3K",uploadFormItem:"upload-form-item-Emgg3K","collect-num":"collect-num-FOBat8",collectNum:"collect-num-FOBat8","user-info":"user-info-H0TT65",userInfo:"user-info-H0TT65",extinfo:"extinfo-c0Y2mI","extinfo-title":"extinfo-title-M2K7EQ",extinfoTitle:"extinfo-title-M2K7EQ","extinfo-text":"extinfo-text-lqFN78",extinfoText:"extinfo-text-lqFN78","extinfo-ex":"extinfo-ex-sKRvhO",extinfoEx:"extinfo-ex-sKRvhO","upload-avatar":"upload-avatar-u9p4bH",uploadAvatar:"upload-avatar-u9p4bH","header-list":"header-list-u7VT62",headerList:"header-list-u7VT62","header-list-extra":"header-list-extra-zndrVs",headerListExtra:"header-list-extra-zndrVs","header-list-box":"header-list-box-G0zP4N",headerListBox:"header-list-box-G0zP4N","header-row":"header-row-n1fgFr",headerRow:"header-row-n1fgFr","header-col-content":"header-col-content-GEof7W",headerColContent:"header-col-content-GEof7W","col-content":"col-content-jxn1tn",colContent:"col-content-jxn1tn","error-msg-box":"error-msg-box-fHOH9H",errorMsgBox:"error-msg-box-fHOH9H","error-msg":"error-msg-xl_IO9",errorMsg:"error-msg-xl_IO9","creation-method":"creation-method-n7THTL",creationMethod:"creation-method-n7THTL","code-runtime-list":"code-runtime-list-VSrKiF",codeRuntimeList:"code-runtime-list-VSrKiF","bot-code-edit-title-action":"bot-code-edit-title-action-l5WQpX",botCodeEditTitleAction:"bot-code-edit-title-action-l5WQpX"},t.Z=a},746509:function(e,t,i){var o=i(125161),r=i.n(o),n=i(404442),a=i.n(n)()(r());a.push([e.id,'.tool-wrapper-u6Ufm0{color:#1c1d23;height:100%}.tool-wrapper-u6Ufm0 .layout-header-bQD8A8{padding:24px 24px 12px}.tool-wrapper-u6Ufm0 .plugin-detail-info-v3aOnS{margin-bottom:36px;padding-bottom:12px;position:relative}.tool-wrapper-u6Ufm0 .plugin-detail-info-v3aOnS:after{content:"";background-color:rgba(29,28,35,.08);width:calc(100% + 48px);height:1px;position:absolute;bottom:0;left:-24px}.tool-wrapper-u6Ufm0 .plugin-detail-info-v3aOnS .plugin-detail-title-WDLcxn{max-width:300px;font-size:18px;font-weight:600;line-height:24px}.tool-wrapper-u6Ufm0 .plugin-detail-info-v3aOnS .plugin-detail-published-UDK2He{color:rgba(28,29,35,.6);font-size:12px;line-height:16px}.tool-wrapper-u6Ufm0 .plugin-detail-info-v3aOnS .plugin-detail-avatar-r4HWPt{border-radius:6px;width:36px;height:36px}.tool-wrapper-u6Ufm0 .plugin-detail-info-v3aOnS .plugin-detail-desc-GUS_oT{color:rgba(28,29,35,.8);max-width:300px;line-height:16px}.tool-wrapper-u6Ufm0 .banner-JQoOaH{margin-bottom:24px;box-shadow:0 4px 14px rgba(0,0,0,.1),0 0 1px rgba(0,0,0,.3)}.tool-wrapper-u6Ufm0 .notips-tYDOzt{cursor:pointer;color:#4062ff;margin-left:12px;font-weight:600}.tool-wrapper-u6Ufm0 .min-width-200-MhmjtE{min-width:200px}.tool-wrapper-u6Ufm0 .tool-table-desc-HVWvgw{font-size:12px;line-height:18px}.tool-wrapper-u6Ufm0 .icon-delete-disabled-K0CgNF path{fill:currentColor}.tool-wrapper-u6Ufm0 .icon-btn-disable-An1pSO{color:var(--light-usage-text-color-text-2,rgba(28,29,35,.2))}.tool-wrapper-u6Ufm0 .debug-btn-disable-A1NQyM{color:#1d1c23}.tool-wrapper-u6Ufm0 .debug-btn-disable-A1NQyM path{fill:currentColor;fill-opacity:.2}.tool-wrapper-u6Ufm0 .icon-more-UbVlXd{color:rgba(29,28,35,.6)}.tool-wrapper-u6Ufm0 .icon-more-UbVlXd path{fill:currentColor}.tool-wrapper-u6Ufm0 .grey-light-CHxMoV{background-color:#f0f0f5;border-radius:4px;height:16px}.tool-wrapper-u6Ufm0 .edit-plugin-btn-BieQhl{padding:0 8px}.tool-wrapper-u6Ufm0 .edit-plugin-btn-BieQhl.edit-mVpQEb .semi-button-content-right{display:none}.tool-wrapper-u6Ufm0 .circle-point-athd35{border-radius:50%;width:10px;height:10px}.tool-wrapper-u6Ufm0 .plugin-method-tag-K37DzN{height:16px;color:var(--Light-color-violet---violet-6,#6430bf);background:var(--Light-color-violet---violet-1,#e9d6f9);border-radius:4px}.tool-wrapper-u6Ufm0 .icon-example-disabled-QVOpbn path{fill:currentColor!important}',""]),a.locals={"tool-wrapper":"tool-wrapper-u6Ufm0",toolWrapper:"tool-wrapper-u6Ufm0","layout-header":"layout-header-bQD8A8",layoutHeader:"layout-header-bQD8A8","plugin-detail-info":"plugin-detail-info-v3aOnS",pluginDetailInfo:"plugin-detail-info-v3aOnS","plugin-detail-title":"plugin-detail-title-WDLcxn",pluginDetailTitle:"plugin-detail-title-WDLcxn","plugin-detail-published":"plugin-detail-published-UDK2He",pluginDetailPublished:"plugin-detail-published-UDK2He","plugin-detail-avatar":"plugin-detail-avatar-r4HWPt",pluginDetailAvatar:"plugin-detail-avatar-r4HWPt","plugin-detail-desc":"plugin-detail-desc-GUS_oT",pluginDetailDesc:"plugin-detail-desc-GUS_oT",banner:"banner-JQoOaH",notips:"notips-tYDOzt","min-width-200":"min-width-200-MhmjtE",minWidth200:"min-width-200-MhmjtE","tool-table-desc":"tool-table-desc-HVWvgw",toolTableDesc:"tool-table-desc-HVWvgw","icon-delete-disabled":"icon-delete-disabled-K0CgNF",iconDeleteDisabled:"icon-delete-disabled-K0CgNF","icon-btn-disable":"icon-btn-disable-An1pSO",iconBtnDisable:"icon-btn-disable-An1pSO","debug-btn-disable":"debug-btn-disable-A1NQyM",debugBtnDisable:"debug-btn-disable-A1NQyM","icon-more":"icon-more-UbVlXd",iconMore:"icon-more-UbVlXd","grey-light":"grey-light-CHxMoV",greyLight:"grey-light-CHxMoV","edit-plugin-btn":"edit-plugin-btn-BieQhl",editPluginBtn:"edit-plugin-btn-BieQhl",edit:"edit-mVpQEb","circle-point":"circle-point-athd35",circlePoint:"circle-point-athd35","plugin-method-tag":"plugin-method-tag-K37DzN",pluginMethodTag:"plugin-method-tag-K37DzN","icon-example-disabled":"icon-example-disabled-QVOpbn",iconExampleDisabled:"icon-example-disabled-QVOpbn"},t.Z=a},494308:function(e,t,i){let o;i.d(t,{Qc:()=>tK,Pz:()=>tJ});let r=Symbol.for("yaml.alias"),n=Symbol.for("yaml.document"),a=Symbol.for("yaml.map"),l=Symbol.for("yaml.pair"),s=Symbol.for("yaml.scalar"),d=Symbol.for("yaml.seq"),c=Symbol.for("yaml.node.type"),u=e=>!!e&&"object"==typeof e&&e[c]===r,p=e=>!!e&&"object"==typeof e&&e[c]===n,g=e=>!!e&&"object"==typeof e&&e[c]===a,m=e=>!!e&&"object"==typeof e&&e[c]===l,h=e=>!!e&&"object"==typeof e&&e[c]===s,f=e=>!!e&&"object"==typeof e&&e[c]===d;function b(e){if(e&&"object"==typeof e)switch(e[c]){case a:case d:return!0}return!1}function v(e){if(e&&"object"==typeof e)switch(e[c]){case r:case a:case s:case d:return!0}return!1}let x=e=>(h(e)||b(e))&&!!e.anchor,_=Symbol("break visit"),y=Symbol("skip children"),w=Symbol("remove node");function k(e,t){let i=N(t);p(e)?j(null,e.contents,i,Object.freeze([e]))===w&&(e.contents=null):j(null,e,i,Object.freeze([]))}function j(e,t,i,o){let r=T(e,t,i,o);if(v(r)||m(r))return z(e,o,r),j(e,r,i,o);if("symbol"!=typeof r){if(b(t)){o=Object.freeze(o.concat(t));for(let e=0;e<t.items.length;++e){let r=j(e,t.items[e],i,o);if("number"==typeof r)e=r-1;else{if(r===_)return _;r===w&&(t.items.splice(e,1),e-=1)}}}else if(m(t)){o=Object.freeze(o.concat(t));let e=j("key",t.key,i,o);if(e===_)return _;e===w&&(t.key=null);let r=j("value",t.value,i,o);if(r===_)return _;r===w&&(t.value=null)}}return r}async function M(e,t){let i=N(t);p(e)?await I(null,e.contents,i,Object.freeze([e]))===w&&(e.contents=null):await I(null,e,i,Object.freeze([]))}async function I(e,t,i,o){let r=await T(e,t,i,o);if(v(r)||m(r))return z(e,o,r),I(e,r,i,o);if("symbol"!=typeof r){if(b(t)){o=Object.freeze(o.concat(t));for(let e=0;e<t.items.length;++e){let r=await I(e,t.items[e],i,o);if("number"==typeof r)e=r-1;else{if(r===_)return _;r===w&&(t.items.splice(e,1),e-=1)}}}else if(m(t)){o=Object.freeze(o.concat(t));let e=await I("key",t.key,i,o);if(e===_)return _;e===w&&(t.key=null);let r=await I("value",t.value,i,o);if(r===_)return _;r===w&&(t.value=null)}}return r}function N(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function T(e,t,i,o){return"function"==typeof i?i(e,t,o):g(t)?i.Map?.(e,t,o):f(t)?i.Seq?.(e,t,o):m(t)?i.Pair?.(e,t,o):h(t)?i.Scalar?.(e,t,o):u(t)?i.Alias?.(e,t,o):void 0}function z(e,t,i){let o=t[t.length-1];if(b(o))o.items[e]=i;else if(m(o))"key"===e?o.key=i:o.value=i;else if(p(o))o.contents=i;else{let e=u(o)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}k.BREAK=_,k.SKIP=y,k.REMOVE=w,M.BREAK=_,M.SKIP=y,M.REMOVE=w;let D={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},A=e=>e.replace(/[!,[\]{}]/g,e=>D[e]);class S{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},S.defaultYaml,e),this.tags=Object.assign({},S.defaultTags,t)}clone(){let e=new S(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new S(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:S.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},S.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:S.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},S.defaultTags),this.atNextDocument=!1);let i=e.trim().split(/[ \t]+/),o=i.shift();switch(o){case"%TAG":{if(2!==i.length&&(t(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;let[e,o]=i;return this.tags[e]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==i.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=i;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let i=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,i),!1}}default:return t(0,`Unknown directive ${o}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let i=e.slice(2,-1);return"!"===i||"!!"===i?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),i)}let[,i,o]=e.match(/^(.*!)([^!]*)$/s);!o&&t(`The ${e} tag has no suffix`);let r=this.tags[i];if(r)try{return r+decodeURIComponent(o)}catch(e){return t(String(e)),null}return"!"===i?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,i]of Object.entries(this.tags))if(e.startsWith(i))return t+A(e.substring(i.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t;let i=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],o=Object.entries(this.tags);if(e&&o.length>0&&v(e.contents)){let i={};k(e.contents,(e,t)=>{v(t)&&t.tag&&(i[t.tag]=!0)}),t=Object.keys(i)}else t=[];for(let[r,n]of o)("!!"!==r||"tag:yaml.org,2002:"!==n)&&(!e||t.some(e=>e.startsWith(n)))&&i.push(`%TAG ${r} ${n}`);return i.join("\n")}}function E(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function C(e){let t=new Set;return k(e,{Value(e,i){i.anchor&&t.add(i.anchor)}}),t}function O(e,t){for(let i=1;;++i){let o=`${e}${i}`;if(!t.has(o))return o}}S.defaultYaml={explicit:!1,version:"1.2"},S.defaultTags={"!!":"tag:yaml.org,2002:"};function L(e,t,i,o){if(o&&"object"==typeof o){if(Array.isArray(o))for(let t=0,i=o.length;t<i;++t){let i=o[t],r=L(e,o,String(t),i);void 0===r?delete o[t]:r!==i&&(o[t]=r)}else if(o instanceof Map)for(let t of Array.from(o.keys())){let i=o.get(t),r=L(e,o,t,i);void 0===r?o.delete(t):r!==i&&o.set(t,r)}else if(o instanceof Set)for(let t of Array.from(o)){let i=L(e,o,t,t);void 0===i?o.delete(t):i!==t&&(o.delete(t),o.add(i))}else for(let[t,i]of Object.entries(o)){let r=L(e,o,t,i);void 0===r?delete o[t]:r!==i&&(o[t]=r)}}return e.call(t,i,o)}function Z(e,t,i){if(Array.isArray(e))return e.map((e,t)=>Z(e,String(t),i));if(e&&"function"==typeof e.toJSON){if(!i||!x(e))return e.toJSON(t,i);let o={aliasCount:0,count:1,res:void 0};i.anchors.set(e,o),i.onCreate=e=>{o.res=e,delete i.onCreate};let r=e.toJSON(t,i);return i.onCreate&&i.onCreate(r),r}return"bigint"!=typeof e||i?.keep?e:Number(e)}class P{constructor(e){Object.defineProperty(this,c,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:i,onAnchor:o,reviver:r}={}){if(!p(e))throw TypeError("A document argument is required");let n={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof i?i:100},a=Z(this,"",n);if("function"==typeof o)for(let{count:e,res:t}of n.anchors.values())o(t,e);return"function"==typeof r?L(r,{"":a},"",a):a}}class F extends P{constructor(e){super(r),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let i,o;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],k(e,{Node:(e,t)=>{(u(t)||x(t))&&i.push(t)}}),t&&(t.aliasResolveCache=i));for(let e of i){if(e===this)break;e.anchor===this.source&&(o=e)}return o}toJSON(e,t){if(!t)return{source:this.source};let{anchors:i,doc:o,maxAliasCount:r}=t,n=this.resolve(o,t);if(!n)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let a=i.get(n);if(!a&&(Z(n,null,t),a=i.get(n)),!a||void 0===a.res)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(r>=0&&(a.count+=1,0===a.aliasCount&&(a.aliasCount=function e(t,i,o){if(u(i)){let e=i.resolve(t),r=o&&e&&o.get(e);return r?r.count*r.aliasCount:0}if(b(i)){let r=0;for(let n of i.items){let i=e(t,n,o);i>r&&(r=i)}return r}if(m(i)){let r=e(t,i.key,o);return Math.max(r,e(t,i.value,o))}return 1}(o,n,i)),a.count*a.aliasCount>r))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return a.res}toString(e,t,i){let o=`*${this.source}`;if(e){if(E(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${o} `}return o}}let B=e=>!e||"function"!=typeof e&&"object"!=typeof e;class R extends P{constructor(e){super(s),this.value=e}toJSON(e,t){return t?.keep?this.value:Z(this.value,e,t)}toString(){return String(this.value)}}R.BLOCK_FOLDED="BLOCK_FOLDED",R.BLOCK_LITERAL="BLOCK_LITERAL",R.PLAIN="PLAIN",R.QUOTE_DOUBLE="QUOTE_DOUBLE",R.QUOTE_SINGLE="QUOTE_SINGLE";function U(e,t,i){let o;if(p(e)&&(e=e.contents),v(e))return e;if(m(e)){let t=i.schema[a].createNode?.(i.schema,null,i);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:n,onTagObj:l,schema:s,sourceObjects:c}=i;if(r&&e&&"object"==typeof e){if(o=c.get(e))return o.anchor??(o.anchor=n(e)),new F(o.anchor);o={anchor:null,node:null},c.set(e,o)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let u=function(e,t,i){if(t){let e=i.filter(e=>e.tag===t),o=e.find(e=>!e.format)??e[0];if(!o)throw Error(`Tag ${t} not found`);return o}return i.find(t=>t.identify?.(e)&&!t.format)}(e,t,s.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new R(e);return o&&(o.node=t),t}u=e instanceof Map?s[a]:Symbol.iterator in Object(e)?s[d]:s[a]}l&&(l(u),delete i.onTagObj);let g=u?.createNode?u.createNode(i.schema,e,i):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(i.schema,e,i):new R(e);return t?g.tag=t:!u.default&&(g.tag=u.tag),o&&(o.node=g),g}function Q(e,t,i){let o=i;for(let e=t.length-1;e>=0;--e){let i=t[e];if("number"==typeof i&&Number.isInteger(i)&&i>=0){let e=[];e[i]=o,o=e}else o=new Map([[i,o]])}return U(o,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}let Y=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class V extends P{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>v(t)||m(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Y(e))this.add(t);else{let[i,...o]=e,r=this.get(i,!0);if(b(r))r.addIn(o,t);else if(void 0===r&&this.schema)this.set(i,Q(this.schema,o,t));else throw Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}deleteIn(e){let[t,...i]=e;if(0===i.length)return this.delete(t);let o=this.get(t,!0);if(b(o))return o.deleteIn(i);throw Error(`Expected YAML collection at ${t}. Remaining path: ${i}`)}getIn(e,t){let[i,...o]=e,r=this.get(i,!0);return 0===o.length?!t&&h(r)?r.value:r:b(r)?r.getIn(o,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!m(t))return!1;let i=t.value;return null==i||e&&h(i)&&null==i.value&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(e){let[t,...i]=e;if(0===i.length)return this.has(t);let o=this.get(t,!0);return!!b(o)&&o.hasIn(i)}setIn(e,t){let[i,...o]=e;if(0===o.length)this.set(i,t);else{let e=this.get(i,!0);if(b(e))e.setIn(o,t);else if(void 0===e&&this.schema)this.set(i,Q(this.schema,o,t));else throw Error(`Expected YAML collection at ${i}. Remaining path: ${o}`)}}}let W=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function G(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let H=(e,t,i)=>e.endsWith("\n")?G(i,t):i.includes("\n")?"\n"+G(i,t):(e.endsWith(" ")?"":" ")+i,q="flow",K="block",J="quoted";function X(e,t,i="flow",{indentAtStart:o,lineWidth:r=80,minContentWidth:n=20,onFold:a,onOverflow:l}={}){let s,d,c;if(!r||r<0)return e;r<n&&(n=0);let u=Math.max(1+n,1+r-t.length);if(e.length<=u)return e;let p=[],g={},m=r-t.length;"number"==typeof o&&(o>r-Math.max(2,n)?p.push(0):m=r-o);let h=!1,f=-1,b=-1,v=-1;i===K&&-1!==(f=$(e,f,t.length))&&(m=f+u);for(;c=e[f+=1];){if(i===J&&"\\"===c){switch(b=f,e[f+1]){case"x":f+=3;break;case"u":f+=5;break;case"U":f+=9;break;default:f+=1}v=f}if("\n"===c)i===K&&(f=$(e,f,t.length)),m=f+t.length+u,s=void 0;else{if(" "===c&&d&&" "!==d&&"\n"!==d&&" "!==d){let t=e[f+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(s=f)}if(f>=m){if(s)p.push(s),m=s+u,s=void 0;else if(i===J){for(;" "===d||" "===d;)d=c,c=e[f+=1],h=!0;let t=f>v+1?f-2:b-1;if(g[t])return e;p.push(t),g[t]=!0,m=t+u,s=void 0}else h=!0}}d=c}if(h&&l&&l(),0===p.length)return e;a&&a();let x=e.slice(0,p[0]);for(let o=0;o<p.length;++o){let r=p[o],n=p[o+1]||e.length;0===r?x=`
|