(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1502],{80173:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),c=(0,o.default)([(0,i.jsx)("path",{d:"M11 11h5v5h-5zm-7 0h5v5H4zm0-7h12v5H4z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M20 6v14H6v2h14c1.1 0 2-.9 2-2V6h-2z"},"1"),(0,i.jsx)("path",{d:"M18 16V4c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zM4 4h12v5H4V4zm5 12H4v-5h5v5zm2-5h5v5h-5v-5z"},"2")],"BackupTableTwoTone");t.Z=c},66022:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),c=(0,o.default)([(0,i.jsx)("path",{d:"M9 4h9v12H9z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M18 2H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H9V4h9v12zM3 15v-2h2v2H3zm0-5.5h2v2H3v-2zM10 20h2v2h-2v-2zm-7-1.5v-2h2v2H3zM5 22c-1.1 0-2-.9-2-2h2v2zm3.5 0h-2v-2h2v2zm5 0v-2h2c0 1.1-.9 2-2 2zM5 6v2H3c0-1.1.9-2 2-2z"},"1")],"CopyAllTwoTone");t.Z=c},29277:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),c=(0,o.default)([(0,i.jsx)("path",{d:"M16 9H8v10h8V9zm-.47 7.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M14.12 10.47 12 12.59l-2.13-2.12-1.41 1.41L10.59 14l-2.12 2.12 1.41 1.41L12 15.41l2.12 2.12 1.41-1.41L13.41 14l2.12-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9z"},"1")],"DeleteForeverTwoTone");t.Z=c},63749:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),c=(0,o.default)([(0,i.jsx)("path",{d:"M12.06 10.02 5 17.08V18h.92l7.06-7.06z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"m15 16-4 4h10v-4zm-2.94-8.81L3 16.25V20h3.75l9.06-9.06-3.75-3.75zM5.92 18H5v-.92l7.06-7.06.92.92L5.92 18zm12.79-9.96c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83z"},"1")],"DriveFileRenameOutlineTwoTone");t.Z=c},63845:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),c=(0,o.default)((0,i.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}),"LockOutlined");t.Z=c},74458:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),c=(0,o.default)((0,i.jsx)("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"}),"StorageTwoTone");t.Z=c},17621:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),c=(0,o.default)([(0,i.jsx)("path",{d:"M19 9v2H9V9h10zm-6 6v-2h2v2h-2zm2 2v2h-2v-2h2zm-4-2H9v-2h2v2zm6-2h2v2h-2v-2zm-8 4h2v2H9v-2zm8 2v-2h2v2h-2z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M19 7H9c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm0 2v2H9V9h10zm-6 6v-2h2v2h-2zm2 2v2h-2v-2h2zm-4-2H9v-2h2v2zm6-2h2v2h-2v-2zm-8 4h2v2H9v-2zm8 2v-2h2v2h-2zM6 17H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2v1h-2V5H5v10h1v2z"},"1")],"TableViewTwoTone");t.Z=c},52652:function(e,t,r){const n=r(66675),{mergeAttributesWithElements:o}=r(88372);e.exports=(e,t={})=>{const r=o(e);return n(r,t)}},66675:function(e){e.exports=(e,t={})=>{const r=t.char||" ",n=t.count||2;let o=0;const i=[];return e.reverse().reduce(((e,t)=>{i.length&&o&&i[o]&&i[o]===t.substring(1,i[o].length+1)&&(i.splice(o,1),o--);const c=[`${r.repeat(o?o*n:0)}${t}`,...e];return"e.trim().replace(/(^(\s|\t)+|(( |\t)+)$)/gm,"");e.exports={mergeAttributesWithElements:e=>{const r=t(e).split("\n"),n=[];let o="";for(let t=0;t")?(n.push(`${o}${e.slice(0,-2)} />`),o=""):e.endsWith(">")?(n.push(`${o}${e.startsWith(">")||e.startsWith("<")?"":" "}${e}`),o=""):o+=o.length?` ${e}`:e}return n},removeEmptyLines:t}},64998:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(45711).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},31571:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(45711).Z)("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]])},31325:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(45711).Z)("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},63764:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:{};g.initial(e),g.handler(t);var r={current:e},n=d(b)(r,t),o=d(y)(r),i=d(g.changes)(e),c=d(m)(r);function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return g.selector(e),e(r.current)}function a(e){f(n,o,i,c)(e)}return[u,a]}},M=w,j={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};var O=function(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),i=0;i{n.current=!1}:e,t)};function ee(){}function te(e,t,r,n){return function(e,t){return e.editor.getModel(re(e,t))}(e,n)||function(e,t,r,n){return e.editor.createModel(t,r,n?re(e,n):void 0)}(e,t,r,n)}function re(e,t){return e.Uri.parse(t)}var ne=function({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:c,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:a=!1,theme:l="light",loading:s="Loading...",options:f={},height:d="100%",width:h="100%",className:v,wrapperProps:p={},beforeMount:g=ee,onMount:m=ee}){let[y,b]=(0,U.useState)(!1),[w,M]=(0,U.useState)(!0),j=(0,U.useRef)(null),O=(0,U.useRef)(null),z=(0,U.useRef)(null),E=(0,U.useRef)(m),k=(0,U.useRef)(g),H=(0,U.useRef)(!1);Q((()=>{let e=F.init();return e.then((e=>(O.current=e)&&M(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>j.current?function(){let e=j.current?.getModel();u||e?.original?.dispose(),a||e?.modified?.dispose(),j.current?.dispose()}():e.cancel()})),X((()=>{if(j.current&&O.current){let t=j.current.getOriginalEditor(),o=te(O.current,e||"",n||r||"text",i||"");o!==t.getModel()&&t.setModel(o)}}),[i],y),X((()=>{if(j.current&&O.current){let e=j.current.getModifiedEditor(),n=te(O.current,t||"",o||r||"text",c||"");n!==e.getModel()&&e.setModel(n)}}),[c],y),X((()=>{let e=j.current.getModifiedEditor();e.getOption(O.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())}),[t],y),X((()=>{j.current?.getModel()?.original.setValue(e||"")}),[e],y),X((()=>{let{original:e,modified:t}=j.current.getModel();O.current.editor.setModelLanguage(e,n||r||"text"),O.current.editor.setModelLanguage(t,o||r||"text")}),[r,n,o],y),X((()=>{O.current?.editor.setTheme(l)}),[l],y),X((()=>{j.current?.updateOptions(f)}),[f],y);let V=(0,U.useCallback)((()=>{if(!O.current)return;k.current(O.current);let u=te(O.current,e||"",n||r||"text",i||""),a=te(O.current,t||"",o||r||"text",c||"");j.current?.setModel({original:u,modified:a})}),[r,t,o,e,n,i,c]),x=(0,U.useCallback)((()=>{!H.current&&z.current&&(j.current=O.current.editor.createDiffEditor(z.current,{automaticLayout:!0,...f}),V(),O.current?.editor.setTheme(l),b(!0),H.current=!0)}),[f,l,V]);return(0,U.useEffect)((()=>{y&&E.current(j.current,O.current)}),[y]),(0,U.useEffect)((()=>{!w&&!y&&x()}),[w,y,x]),U.createElement(K,{width:h,height:d,isEditorReady:y,loading:s,_ref:z,className:v,wrapperProps:p})};(0,U.memo)(ne);var oe=function(e){let t=(0,U.useRef)();return(0,U.useEffect)((()=>{t.current=e}),[e]),t.current},ie=new Map;var ce=function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:c="light",line:u,loading:a="Loading...",options:l={},overrideServices:s={},saveViewState:f=!0,keepCurrentModel:d=!1,width:h="100%",height:v="100%",className:p,wrapperProps:g={},beforeMount:m=ee,onMount:y=ee,onChange:b,onValidate:w=ee}){let[M,j]=(0,U.useState)(!1),[O,z]=(0,U.useState)(!0),E=(0,U.useRef)(null),k=(0,U.useRef)(null),H=(0,U.useRef)(null),V=(0,U.useRef)(y),x=(0,U.useRef)(m),P=(0,U.useRef)(),T=(0,U.useRef)(n),R=oe(i),S=(0,U.useRef)(!1),L=(0,U.useRef)(!1);Q((()=>{let e=F.init();return e.then((e=>(E.current=e)&&z(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>k.current?(P.current?.dispose(),d?f&&ie.set(i,k.current.saveViewState()):k.current.getModel()?.dispose(),void k.current.dispose()):e.cancel()})),X((()=>{let c=te(E.current,e||n||"",t||o||"",i||r||"");c!==k.current?.getModel()&&(f&&ie.set(R,k.current?.saveViewState()),k.current?.setModel(c),f&&k.current?.restoreViewState(ie.get(i)))}),[i],M),X((()=>{k.current?.updateOptions(l)}),[l],M),X((()=>{!k.current||void 0===n||(k.current.getOption(E.current.editor.EditorOption.readOnly)?k.current.setValue(n):n!==k.current.getValue()&&(L.current=!0,k.current.executeEdits("",[{range:k.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),k.current.pushUndoStop(),L.current=!1))}),[n],M),X((()=>{let e=k.current?.getModel();e&&o&&E.current?.editor.setModelLanguage(e,o)}),[o],M),X((()=>{void 0!==u&&k.current?.revealLine(u)}),[u],M),X((()=>{E.current?.editor.setTheme(c)}),[c],M);let C=(0,U.useCallback)((()=>{if(H.current&&E.current&&!S.current){x.current(E.current);let a=i||r,d=te(E.current,n||e||"",t||o||"",a||"");k.current=E.current?.editor.create(H.current,{model:d,automaticLayout:!0,...l},s),f&&k.current.restoreViewState(ie.get(a)),E.current.editor.setTheme(c),void 0!==u&&k.current.revealLine(u),j(!0),S.current=!0}}),[e,t,r,n,o,i,l,s,f,c,u]);return(0,U.useEffect)((()=>{M&&V.current(k.current,E.current)}),[M]),(0,U.useEffect)((()=>{!O&&!M&&C()}),[O,M,C]),T.current=n,(0,U.useEffect)((()=>{M&&b&&(P.current?.dispose(),P.current=k.current?.onDidChangeModelContent((e=>{L.current||b(k.current.getValue(),e)})))}),[M,b]),(0,U.useEffect)((()=>{if(M){let e=E.current.editor.onDidChangeMarkers((e=>{let t=k.current.getModel()?.uri;if(t&&e.find((e=>e.path===t.path))){let e=E.current.editor.getModelMarkers({resource:t});w?.(e)}}));return()=>{e?.dispose()}}return()=>{}}),[M,w]),U.createElement(K,{width:h,height:v,isEditorReady:M,loading:a,_ref:H,className:p,wrapperProps:g})};(0,U.memo)(ce)}}]);