@juki-team/base-ui 1.5.1 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -7
- package/dist/esm/ArrowForwardIcon-D6Jfdilm.js +1 -0
- package/dist/esm/{BarChart-D74BtmuY.js → BarChart-D6H2EH3B.js} +1 -1
- package/dist/esm/{CartesianChart-CW5O6vne.js → CartesianChart-_EyixekW.js} +1 -1
- package/dist/esm/{ChangePasswordModal-BjmZ4w-n.js → ChangePasswordModal-DP68K_jG.js} +1 -1
- package/dist/esm/{CodeEditor-DHSwOQl_.js → CodeEditor-CPsmXl7i.js} +1 -1
- package/dist/esm/{CodeViewer-BgcqqnsU.js → CodeViewer-DIncRhD1.js} +1 -1
- package/dist/esm/{Collapse-CJGjLO29.js → Collapse-Bn9-0z3I.js} +1 -1
- package/dist/esm/{DataGrid-B2ZsmTQN.js → DataGrid-CzZsh4gG.js} +1 -1
- package/dist/esm/{DataViewer-C7cqe5jJ.js → DataViewer-CSIcp1dE.js} +1 -1
- package/dist/esm/{DrawerView-CBLVa95i.js → DrawerView-D-MEVHS0.js} +1 -1
- package/dist/esm/{ExcalidrawButton-Gtzt3GBc.js → ExcalidrawButton-CL_vPewV.js} +1 -1
- package/dist/esm/{GraphvizViewer-Dyqijdc9.js → GraphvizViewer-BfJg604I.js} +1 -1
- package/dist/esm/{ImageLoaderCropper-DhWDuHK1.js → ImageLoaderCropper-BjHykYfo.js} +1 -1
- package/dist/esm/{InputCellPhoneNumber-BgKCDHLv.js → InputCellPhoneNumber-CAi0AXMP.js} +1 -1
- package/dist/esm/{InputColor-DeeYpvdA.js → InputColor-Ch5Do1U-.js} +1 -1
- package/dist/esm/{LineChart-D2VT5Aos.js → LineChart-BL9HlHkG.js} +1 -1
- package/dist/esm/{LoaderLayer-D9O7WqFD.js → LoaderLayer-CXFK-kAz.js} +1 -1
- package/dist/esm/{MdMath-PFhigRVS.js → MdMath-DwyNLKE_.js} +1 -1
- package/dist/esm/{MdMathEditor-CNn23WdZ.js → MdMathEditor-D0f1McYj.js} +1 -1
- package/dist/esm/{Popover-kYKitQai.js → Popover-DPn39FUa.js} +1 -1
- package/dist/esm/ReplyIcon-Dd5U6wGZ.js +1 -0
- package/dist/esm/{SettingsIcon-Dk27Vz1G.js → SettingsIcon-BCDZw0HR.js} +1 -1
- package/dist/esm/{SlideDeck-DMd0LgxX.js → SlideDeck-et5M4lE-.js} +1 -1
- package/dist/esm/{TableEyeIcon-D74isCSR.js → TableEyeIcon-CDLbQapU.js} +1 -1
- package/dist/esm/{TableOfContents-zzI7FQbW.js → TableOfContents-CLrH5fjb.js} +1 -1
- package/dist/esm/{Tooltip-B8AobPsl.js → Tooltip-CEgmNtFX.js} +1 -1
- package/dist/esm/{UserCodeEditor-CbgpE94F.js → UserCodeEditor-DlHeWLUu.js} +2 -2
- package/dist/esm/{VirtualizedRowsFixed-Cau69yw0.js → VirtualizedRowsFixed-8Wk8DRYc.js} +1 -1
- package/dist/esm/{WorksheetAsSlides-cYn12ViE.js → WorksheetAsSlides-X5Ljvk2t.js} +1 -1
- package/dist/esm/{WorksheetBodies-oAHNxEoL.js → WorksheetBodies-pHyqSVPy.js} +1 -1
- package/dist/esm/{WorksheetContents-m3z1cSCO.js → WorksheetContents-ByjM-HNk.js} +1 -1
- package/dist/esm/{WorksheetEditor-DL9l5iCM.js → WorksheetEditor-Dq3apeLg.js} +1 -1
- package/dist/esm/{WorksheetNode-D6tMtEqC.js → WorksheetNode-Chf37TwI.js} +1 -1
- package/dist/esm/{WorksheetViewer-tctJbZIu.js → WorksheetViewer-B-slMCYv.js} +1 -1
- package/dist/esm/{architecture-YZFGNWBL-rccIGhXm.js → architecture-YZFGNWBL-B4qRp-MK.js} +1 -1
- package/dist/esm/{architectureDiagram-Q4EWVU46-D4BxMEG7.js → architectureDiagram-Q4EWVU46-MfdUMKWh.js} +1 -1
- package/dist/esm/{blockDiagram-DXYQGD6D-z0-_xhoI.js → blockDiagram-DXYQGD6D-B53ncWj8.js} +1 -1
- package/dist/esm/{c4Diagram-AHTNJAMY-BoabvxgU.js → c4Diagram-AHTNJAMY-FdREycKs.js} +1 -1
- package/dist/esm/channel-D_ARZf1V.js +1 -0
- package/dist/esm/{chunk-4BX2VUAB-BD59bCvh.js → chunk-4BX2VUAB-Dc1mlsfk.js} +1 -1
- package/dist/esm/{chunk-4TB4RGXK-bRIvkE2u.js → chunk-4TB4RGXK-DpY00B8-.js} +1 -1
- package/dist/esm/{chunk-55IACEB6-B9SJqSMu.js → chunk-55IACEB6-Csh8qgjO.js} +1 -1
- package/dist/esm/{chunk-EDXVE4YY-DO0UVobI.js → chunk-EDXVE4YY-DCPe-NtF.js} +1 -1
- package/dist/esm/{chunk-FMBD7UC4-B0l_pK7G.js → chunk-FMBD7UC4-DAo4g5fP.js} +1 -1
- package/dist/esm/{chunk-OYMX7WX6-ChpTvaWt.js → chunk-OYMX7WX6-C7RHHgRc.js} +1 -1
- package/dist/esm/{chunk-QZHKN3VN-9SrlxM-A.js → chunk-QZHKN3VN-CUifo-Cb.js} +1 -1
- package/dist/esm/{chunk-YZCP3GAM-B9nB-mZv.js → chunk-YZCP3GAM-DELqvesl.js} +1 -1
- package/dist/esm/classDiagram-6PBFFD2Q-B7_Zpqtq.js +1 -0
- package/dist/esm/classDiagram-v2-HSJHXN6E-B7_Zpqtq.js +1 -0
- package/dist/esm/clone-DZNciEx8.js +1 -0
- package/dist/esm/{commons-B_OozOv-.js → commons-D9Mh1s5L.js} +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/{cose-bilkent-S5V4N54A-DOOhcKZn.js → cose-bilkent-S5V4N54A-BOV94ldj.js} +1 -1
- package/dist/esm/{dagre-KV5264BT-DNQuzBru.js → dagre-KV5264BT-BfFz9a4k.js} +1 -1
- package/dist/esm/{diagram-5BDNPKRD-BuDsbwIH.js → diagram-5BDNPKRD-I9IS2ANw.js} +1 -1
- package/dist/esm/{diagram-G4DWMVQ6-Dqe6ehne.js → diagram-G4DWMVQ6-BXU7Dvs-.js} +1 -1
- package/dist/esm/{diagram-MMDJMWI5-DutUl44V.js → diagram-MMDJMWI5-Csk96FFg.js} +1 -1
- package/dist/esm/{diagram-TYMM5635-Dg8R_BVT.js → diagram-TYMM5635-DPvqrKRl.js} +1 -1
- package/dist/esm/{erDiagram-SMLLAGMA-Z9rnwC7z.js → erDiagram-SMLLAGMA-Dc1SOwcN.js} +1 -1
- package/dist/esm/{flowDiagram-DWJPFMVM-DlD4QYIw.js → flowDiagram-DWJPFMVM-Ck8eEuPh.js} +1 -1
- package/dist/esm/{ganttDiagram-T4ZO3ILL-DCyjcGXR.js → ganttDiagram-T4ZO3ILL-D5DV1RYK.js} +1 -1
- package/dist/esm/gitGraph-7Q5UKJZL-AWq1Wmi2.js +1 -0
- package/dist/esm/{gitGraphDiagram-UUTBAWPF-CdYpB5kl.js → gitGraphDiagram-UUTBAWPF-BWpwlfSt.js} +1 -1
- package/dist/esm/{graph-BuAvWT_r.js → graph-DcE5swO6.js} +1 -1
- package/dist/esm/helpers.js +1 -1
- package/dist/esm/{index-BoA3EjMr.js → index-33u6FCUW.js} +1 -1
- package/dist/esm/{index-DVFv6Eth.js → index-BVw40LAx.js} +1 -1
- package/dist/esm/index-TeLD_8PN.js +1 -0
- package/dist/esm/{index-CODLgwqm.js → index-o2jBRnrQ.js} +1 -1
- package/dist/esm/{index-Cj5SSv5l.js → index-tAJiDyYy.js} +1 -1
- package/dist/esm/info-OMHHGYJF-CDJfFYlp.js +1 -0
- package/dist/esm/{infoDiagram-42DDH7IO-Ce56qzjb.js → infoDiagram-42DDH7IO-aiwYT7Xb.js} +1 -1
- package/dist/esm/{ishikawaDiagram-UXIWVN3A-Cc0AgO_R.js → ishikawaDiagram-UXIWVN3A-adhn2Hxg.js} +1 -1
- package/dist/esm/{journeyDiagram-VCZTEJTY-BQAuB_0y.js → journeyDiagram-VCZTEJTY-w8F4Ngn_.js} +1 -1
- package/dist/esm/{kanban-definition-6JOO6SKY-CFfdKxrM.js → kanban-definition-6JOO6SKY-BUy-pXA5.js} +1 -1
- package/dist/esm/{layout-C9Uq7X58.js → layout-LXPx6gJv.js} +1 -1
- package/dist/esm/main.js +1 -1
- package/dist/esm/{mermaid-parser.core-B9BVFPAN.js → mermaid-parser.core-_V3e3eig.js} +1 -1
- package/dist/esm/{mermaid.core-Ch6a1N6x.js → mermaid.core-C89m9NSM.js} +1 -1
- package/dist/esm/{mindmap-definition-QFDTVHPH-BwtZAHVe.js → mindmap-definition-QFDTVHPH-DQor9UlS.js} +1 -1
- package/dist/esm/packet-4T2RLAQJ-DGgnF4xi.js +1 -0
- package/dist/esm/pie-ZZUOXDRM-jgrNXYlk.js +1 -0
- package/dist/esm/{pieDiagram-DEJITSTG-ChBY2XYY.js → pieDiagram-DEJITSTG-CFXV-DSu.js} +1 -1
- package/dist/esm/{quadrantDiagram-34T5L4WZ-CRGLfMnt.js → quadrantDiagram-34T5L4WZ-C5PWeOxe.js} +1 -1
- package/dist/esm/radar-PYXPWWZC-ZVxMZ3XM.js +1 -0
- package/dist/esm/{requirementDiagram-MS252O5E-qmbcV6Kf.js → requirementDiagram-MS252O5E-CAFUQ1SL.js} +1 -1
- package/dist/esm/{sankeyDiagram-XADWPNL6-DaL42Ehn.js → sankeyDiagram-XADWPNL6-D63_orrT.js} +1 -1
- package/dist/esm/{sequenceDiagram-FGHM5R23-D28F9BbZ.js → sequenceDiagram-FGHM5R23-DjI8jxRK.js} +1 -1
- package/dist/esm/server.js +1 -1
- package/dist/esm/{settings-BIQ7IqJl.js → settings-BONQQsPx.js} +1 -1
- package/dist/esm/settings.js +1 -1
- package/dist/esm/{stateDiagram-FHFEXIEX-RgoWlW1V.js → stateDiagram-FHFEXIEX-BeDx2Idm.js} +1 -1
- package/dist/esm/stateDiagram-v2-QKLJ7IA2-BSzNVn1D.js +1 -0
- package/dist/esm/{timeline-definition-GMOUNBTQ-BcOvpU4t.js → timeline-definition-GMOUNBTQ-BRHpffn4.js} +1 -1
- package/dist/esm/treeView-SZITEDCU-CMK4b3Hd.js +1 -0
- package/dist/esm/treemap-W4RFUUIX-DjdwA0Jd.js +1 -0
- package/dist/esm/{types-DI2OON_b.js → types-CsXckO56.js} +1 -1
- package/dist/esm/{vennDiagram-DHZGUBPP-CZrtDTUB.js → vennDiagram-DHZGUBPP-Cauja-PK.js} +1 -1
- package/dist/esm/wardley-RL74JXVD-DiOshmTl.js +1 -0
- package/dist/esm/{wardleyDiagram-NUSXRM2D-vlFiIB8t.js → wardleyDiagram-NUSXRM2D-CSY5_Vpk.js} +1 -1
- package/dist/esm/{websocket-CxbYBjHT.js → websocket-C4G3j9Rm.js} +1 -1
- package/dist/esm/{xychartDiagram-5P7HB3ND-DsCQdXVH.js → xychartDiagram-5P7HB3ND-Bkd1VEMW.js} +1 -1
- package/dist/module-types/src/components/molecules/TabsInline/TabsInlineButton.d.ts +1 -1
- package/dist/module-types/src/components/molecules/TabsInline/TabsInlineButtonLoader.d.ts +1 -1
- package/dist/module-types/src/components/molecules/TabsInline/utils.d.ts +3 -0
- package/dist/module-types/src/components/templates/UserViewLayout/ProfileSubmissions.d.ts +1 -1
- package/dist/module-types/src/components/templates/UserViewLayout/types.d.ts +1 -0
- package/package.json +2 -2
- package/src/styles/components/atoms/_tabs-inline.scss +12 -0
- package/dist/esm/ArrowForwardIcon-B6qJaqxW.js +0 -1
- package/dist/esm/ReplyIcon-CPGYEALJ.js +0 -1
- package/dist/esm/channel-B33C1-lx.js +0 -1
- package/dist/esm/classDiagram-6PBFFD2Q-BsMMZhRG.js +0 -1
- package/dist/esm/classDiagram-v2-HSJHXN6E-BsMMZhRG.js +0 -1
- package/dist/esm/clone-BDf6Yet-.js +0 -1
- package/dist/esm/gitGraph-7Q5UKJZL-B-fw09HA.js +0 -1
- package/dist/esm/index-rYUgz1LC.js +0 -1
- package/dist/esm/info-OMHHGYJF-fbv9Xw4D.js +0 -1
- package/dist/esm/packet-4T2RLAQJ-BGTrXSHu.js +0 -1
- package/dist/esm/pie-ZZUOXDRM-Dx3xGYkv.js +0 -1
- package/dist/esm/radar-PYXPWWZC-BYId5clz.js +0 -1
- package/dist/esm/stateDiagram-v2-QKLJ7IA2-DuyT41He.js +0 -1
- package/dist/esm/treeView-SZITEDCU-BjLEV1yZ.js +0 -1
- package/dist/esm/treemap-W4RFUUIX-Cuo2Y8dN.js +0 -1
- package/dist/esm/wardley-RL74JXVD-d0LkVT8_.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=[];for(let t=0;t<256;++t)e.push((t+256).toString(16).slice(1));const t=new Uint8Array(16);function a(a,s,o){return crypto.randomUUID?crypto.randomUUID():function(a){a=a||{};const s=a.random??a.rng?.()??crypto.getRandomValues(t);if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=15&s[6]|64,s[8]=63&s[8]|128,function(t,a=0){return(e[t[a+0]]+e[t[a+1]]+e[t[a+2]]+e[t[a+3]]+"-"+e[t[a+4]]+e[t[a+5]]+"-"+e[t[a+6]]+e[t[a+7]]+"-"+e[t[a+8]]+e[t[a+9]]+"-"+e[t[a+10]]+e[t[a+11]]+e[t[a+12]]+e[t[a+13]]+e[t[a+14]]+e[t[a+15]]).toLowerCase()}(s)}(a)}var s,o,n,r,i,l,R,E,u,c,m,d,_,p,S,T,A,I,C,N,h,f,O,g,D,P,b;!function(e){e.NEWSLETTER_SUBSCRIPTION="newsletterSubscription",e.LANGUAGE="preferredLanguage",e.THEME="preferredTheme",e.DATA_VIEW_MODE="preferredDataViewMode",e.MENU_VIEW_MODE="preferredMenuViewMode",e.TIME_ZONE="preferredTimeZone",e.FONT_SIZE="preferredFontSize"}(s||(s={})),function(e){e.NONE="NONE",e.COURSE="COURSE",e.WORKSHEET="WORKSHEET",e.CONTEST="CONTEST"}(o||(o={})),function(e){e.C_11="c11",e.CPP_11="cpp11",e.CPP_20="cpp20",e.JAVA_21="java21",e.PYTHON_3="python3",e.PYTHON_PYPY_3="pypy3",e.JAVASCRIPT_NODE_JS_22="nodejs22",e.PYTHON_2="python2",e.PYTHON_PYPY_2="pypy2",e.ICPC_C="ICPC_C",e.C="C",e.CPP="CPP",e.ICPC_CPP="ICPC_CPP",e.CPP11="CPP11",e.CPP14="CPP14",e.CPP17="CPP17",e.JAVA="JAVA",e.ICPC_PYTHON="ICPC_PYTHON",e.PYTHON="PYTHON",e.PYTHON2="PYTHON2",e.PYTHON3="PYTHON3",e.JAVASCRIPT="JAVASCRIPT",e.TYPESCRIPT="TYPESCRIPT",e.JSX="JSX",e.TSX="TSX",e.MDX="MDX",e.PSEUDOCODE_PSEINT="PSEUDOCODE_PSEINT",e.LATEX="LATEX",e.JSON="JSON",e.HTML="HTML",e.TEXT="TEXT",e.DIFF="DIFF",e.MARKDOWN="MARKDOWN",e.ARDUINO="ARDUINO",e.DOT="DOT",e.MERMAID="MERMAID",e.BASH="BASH"}(n||(n={})),function(e){e.USER="USER",e.PROBLEM="PROBLEM",e.CONTEST="CONTEST",e.ATTEMPT="ATTEMPT"}(r||(r={})),function(e){e.SUCCESS="SUCCESS",e.ERROR="ERROR",e.LOADING="LOADING",e.NONE="NONE"}(i||(i={})),function(e){e.PUBLIC="PUBLIC",e.RESERVED="RESERVED",e.PRIVATE="PRIVATE",e.ARCHIVED="ARCHIVED"}(l||(l={})),function(e){e.PRIVATE="PRIVATE",e.RESTRICTED="RESTRICTED",e.PUBLIC="PUBLIC",e.EXPOSED="EXPOSED"}(R||(R={})),function(e){e.FREE="FREE",e.STANDARD="STANDARD",e.PREMIUM="PREMIUM",e.CUSTOM="CUSTOM"}(E||(E={})),function(e){e.HORIZONTAL_WHITE="horizontal-white",e.HORIZONTAL_COLOR="horizontal-color",e.VERTICAL_WHITE="vertical-white",e.VERTICAL_COLOR="vertical-color"}(u||(u={})),function(e){e.PUBLIC="PUBLIC",e.RESERVED="RESERVED",e.ARCHIVED="ARCHIVED"}(c||(c={})),function(e){e.UPCOMING="upcoming",e.LIVE="live",e.PAST="past"}(m||(m={})),function(e){e.INDIVIDUALLY="INDIVIDUALLY",e.CONTEST="CONTEST"}(d||(d={})),function(e){e.DATA_UPDATE="DATA_UPDATE",e.SCOREBOARD_RECALCULATE="SCOREBOARD_RECALCULATE",e.SCOREBOARD_UNLOCK="SCOREBOARD_UNLOCK",e.SCOREBOARD_LOCK="SCOREBOARD_LOCK",e.ENABLE_UPSOLVING="ENABLE_UPSOLVING",e.DISABLE_UPSOLVING="DISABLE_UPSOLVING",e.PARTICIPANT_JOIN="PARTICIPANT_JOIN"}(_||(_={})),function(e){e.NONE="NONE",e.CLOSE="CLOSE",e.OPEN="OPEN"}(p||(p={})),function(e){e.RELEASED="RELEASED",e.ARCHIVED="ARCHIVED"}(S||(S={})),function(e){e.COMPANY="COMPANY",e.PROBLEM="PROBLEM",e.CONTEST="CONTEST",e.JUDGE="JUDGE",e.USER="USER",e.SUBMISSION="SUBMISSION"}(T||(T={})),function(e){e.COMPANY="C",e.USER="U",e.PROBLEM="P",e.CLASS="K",e.CLASS_ASSIGNMENT="KA",e.CONTEST="T",e.SCOREBOARD="B",e.SCOREBOARD_EVENTS="BE",e.COURSE="R",e.FILE="F",e.GROUP="G",e.JUDGE="J",e.WORKSHEET="W",e.WORKSHEET_SUBMISSIONS="WS",e.SUBMIT="S",e.LOCALE="L",e.COMMENT="M",e.EXCALIDRAW="E",e.MARKDOWN="MD",e.DOCUMENT_TEMPLATE="DT",e.MERMAID="MM"}(A||(A={})),function(e){e.REMOVE="REMOVE",e.ADD="ADD",e.UPDATE="UPDATE"}(I||(I={})),function(e){e.VIEWER="VIEWER",e.EDITOR="EDITOR"}(C||(C={})),function(e){e.FOLDER="FOLDER",e.FILE="FILE"}(N||(N={})),function(e){e.SHARED="shared",e.SHARED_EXCALIDRAW="shared/E",e.TEMP="temp",e.PROBLEMS="problems",e.CONTESTS="contests"}(h||(h={})),function(e){e.CLASS="CLASS",e.TEAM="TEAM"}(f||(f={})),function(e){e.JUKI_JUDGE="JUKI_JUDGE",e.CODEFORCES="CODEFORCES",e.CODEFORCES_GYM="CODEFORCES_GYM",e.JV_UMSA="JV_UMSA",e.UVA_ONLINE_JUDGE="UVA_ONLINE_JUDGE",e.AT_CODER="AT_CODER",e.CODECHEF="CODECHEF",e.TOPCODER="TOPCODER",e.LEETCODE="LEETCODE"}(O||(O={})),function(e){e.NONE="NONE",e.PENDING="PENDING",e.HIDDEN="HIDDEN",e.CE="CE",e.RE="RE",e.TLE="TLE",e.MLE="MLE",e.WA="WA",e.PE="PE",e.PA="PA",e.AC="AC"}(g||(g={})),function(e){e.NONE="NONE",e.RECEIVED="RECEIVED",e.COMPILING="COMPILING",e.COMPILED="COMPILED",e.COMPILATION_ERROR="COMPILATION_ERROR",e.FETCHING_TEST_CASES="FETCHING_TEST_CASES",e.RUNNING_TEST_CASE="RUNNING_TEST_CASE",e.RUNNING_TEST_CASES="RUNNING_TEST_CASES",e.RUNNING_SAMPLE_TEST_CASES="RUNNING_SAMPLE_TEST_CASES",e.EXECUTED_TEST_CASE="EXECUTED_TEST_CASE",e.FAILED_TEST_CASE="FAILED_TEST_CASE",e.JUDGING_TEST_CASE="JUDGING_TEST_CASE",e.GRADING="GRADING",e.FAILED="FAILED",e.COMPLETED="COMPLETED"}(D||(D={})),function(e){e.HIGH_PERFORMANCE="HIGH_PERFORMANCE",e.LOW_PERFORMANCE="LOW_PERFORMANCE"}(P||(P={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.ERROR="error",e.QUIET="quiet"}(b||(b={}));const v={ES:"ES",EN:"EN"},U={LIGHT:"LIGHT",DARK:"DARK"};var y,M,L,B,F,x,G,w,H,V,K,j,J,Y,k,W,X,z;!function(e){e.INPUT="INPUT",e.OUTPUT="OUTPUT"}(y||(y={})),function(e){e.STANDARD="STANDARD",e.INTERACTIVE="INTERACTIVE"}(M||(M={})),function(e){e.STANDARD="STANDARD",e.DYNAMIC="DYNAMIC",e.INTERACTIVE="INTERACTIVE"}(L||(L={})),function(e){e.STANDARD="STANDARD",e.DYNAMIC="DYNAMIC",e.INTERACTIVE="INTERACTIVE"}(B||(B={})),function(e){e.SUBTASK="SUBTASK",e.TOTAL="TOTAL",e.PARTIAL="PARTIAL"}(F||(F={})),function(e){e.ERR400="ERR400",e.ERR401="ERR401",e.ERR403="ERR403",e.ERR404="ERR404",e.ERR405="ERR405",e.ERR500="ERR500",e.ERR9997="ERR9997",e.ERR9998="ERR9998",e.ERR9999="ERR9999",e.ERR0000="ERR0000",e.ERR0010="ERR0010",e.ERR0011="ERR0011",e.ERR0012="ERR0012",e.ERR0013="ERR0013",e.ERR0014="ERR0014",e.ERR0015="ERR0015",e.ERR0016="ERR0016",e.ERR0017="ERR0017",e.ERR0018="ERR0018",e.ERR0019="ERR0019",e.ERR0020="ERR0020",e.ERR0021="ERR0021",e.ERR0022="ERR0022",e.ERR0023="ERR0023",e.ERR0024="ERR0024",e.ERR0050="ERR0050",e.ERR0051="ERR0051",e.ERR0052="ERR0052",e.ERR0053="ERR0053",e.ERR0100="ERR0100",e.ERR0110="ERR0110",e.ERR0111="ERR0111",e.ERR0112=" ERR0112",e.ERR0113="ERR0113",e.ERR0114="ERR0114",e.ERR0115="ERR0115",e.ERR0116="ERR0116",e.ERR0117="ERR0117",e.ERR0118="ERR0118",e.ERR0119="ERR0119",e.ERR0120="ERR0120",e.ERR0121="ERR0121",e.ERR0122="ERR0122",e.ERR0200="ERR0200",e.ERR0210="ERR0210",e.ERR0211="ERR0211",e.ERR0212="ERR0212",e.ERR0213="ERR0213",e.ERR0214="ERR0214",e.ERR0215="ERR0215",e.ERR0216="ERR0216",e.ERR0217="ERR0217",e.ERR0218="ERR0218",e.ERR0219="ERR0219",e.ERR0220="ERR0220",e.ERR0230="ERR0230",e.ERR0231="ERR0231",e.ERR0232="ERR0232",e.ERR0233="ERR0233",e.ERR0234="ERR0234",e.ERR0235="ERR0235",e.ERR0236="ERR0236",e.ERR0237="ERR0237",e.ERR0240="ERR0240",e.ERR0241="ERR0241",e.ERR0242="ERR0242",e.ERR0243="ERR0243",e.ERR0244="ERR0244",e.ERR0245="ERR0245",e.ERR0246="ERR0246",e.ERR0247="ERR0247",e.ERR0300="ERR0300",e.ERR0301="ERR0301",e.ERR0302="ERR0302",e.ERR0303="ERR0303",e.ERR0310="ERR0310",e.ERR0311="ERR0311",e.ERR0321="ERR0321",e.ERR0331="ERR0331",e.ERR0400="ERR0400",e.ERR0410="ERR0410",e.ERR0420="ERR0420",e.ERR0421="ERR0421",e.ERR0430="ERR0430",e.ERR0440="ERR0440",e.ERR0600="ERR0600",e.ERR0610="ERR0610",e.ERR0611="ERR0611",e.ERR0612="ERR0612",e.ERR0613="ERR0613",e.ERR0614="ERR0614",e.ERR0615="ERR0615",e.ERR0616="ERR0665",e.ERR0617="ERR0617",e.ERR0618="ERR0618",e.ERR0619="ERR0619",e.ERR0800="ERR0800",e.ERR0810="ERR0810",e.ERR0811="ERR0811",e.ERR0812="ERR0812",e.ERR0813="ERR0813",e.ERR0814="ERR0814",e.ERR0815="ERR0815",e.ERR0816="ERR0865",e.ERR0817="ERR0817",e.ERR0818="ERR0818",e.ERR0819="ERR0819",e.ERR0820="ERR0820",e.ERR9900="ERR9900",e.ERR9910="ERR9910",e.ERR9911="ERR9911",e.ERR9912="ERR9912",e.ERR9913="ERR9913",e.ERR9914="ERR9914",e.ERR9915="ERR9915",e.ERR9916="ERR9916",e.ERR9917="ERR9917"}(x||(x={})),function(e){e.FATAL="FATAL",e.ERROR="ERROR",e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.TRACE="TRACE"}(G||(G={})),function(e){e.POST="POST",e.GET="GET",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE"}(w||(w={})),function(e){e.JK_MD="JK_MD",e.CODE_EDITOR="CODE_EDITOR",e.LIST="LIST",e.GRAPH="GRAPH",e.QUIZ_PROBLEM="QUIZ_PROBLEM",e.QUIZ_TEXT="QUIZ_TEXT",e.QUIZ_OPTIONS="QUIZ_OPTIONS",e.NEW_PAGE="NEW_PAGE"}(H||(H={})),function(e){e.TOTAL="TOTAL",e.PARTIAL="PARTIAL"}(V||(V={})),function(e){e.PING="PING",e.CLIENT_TRACK_LOCATION="CLIENT_TRACK_LOCATION",e.CLIENT_TRACK_SCREENSHOT="CLIENT_TRACK_SCREENSHOT",e.CLIENT_TRACK_DEVICE="CLIENT_TRACK_DEVICE",e.CHAT_COMPLETIONS="CHAT_COMPLETIONS"}(K||(K={})),function(e){e.SUBSCRIBE_CODE_RUN_STATUS="SUBSCRIBE_CODE_RUN_STATUS",e.UNSUBSCRIBE_CODE_RUN_STATUS="UNSUBSCRIBE_CODE_RUN_STATUS",e.SUBSCRIBE_SUBMISSION_RUN_STATUS="SUBSCRIBE_SUBMISSION_RUN_STATUS",e.UNSUBSCRIBE_SUBMISSION_RUN_STATUS="UNSUBSCRIBE_SUBMISSION_RUN_STATUS",e.SUBSCRIBE_GET_DATA="SUBSCRIBE_GET_DATA",e.UNSUBSCRIBE_GET_DATA="SUBSCRIBE_GET_DATA",e.SUBSCRIBE_PROBLEM_CRAWLED="SUBSCRIBE_PROBLEM_CRAWLED",e.UNSUBSCRIBE_PROBLEM_CRAWLED="UNSUBSCRIBE_PROBLEM_CRAWLED",e.SUBSCRIBE_SUBMISSIONS_CRAWL="SUBSCRIBE_SUBMISSIONS_CRAWL",e.UNSUBSCRIBE_SUBMISSIONS_CRAWL="UNSUBSCRIBE_SUBMISSIONS_CRAWL",e.SUBSCRIBE_CONTEST_CHANGES="SUBSCRIBE_CONTEST_CHANGES",e.UNSUBSCRIBE_CONTEST_CHANGES="UNSUBSCRIBE_CONTEST_CHANGES",e.SUBSCRIBE_CLIENT_TRACK="SUBSCRIBE_CLIENT_TRACK",e.UNSUBSCRIBE_CLIENT_TRACK="UNSUBSCRIBE_CLIENT_TRACK",e.SUBSCRIBE_USER_NOTIFICATION="SUBSCRIBE_USER_NOTIFICATION",e.UNSUBSCRIBE_USER_NOTIFICATION="UNSUBSCRIBE_USER_NOTIFICATION"}(j||(j={})),function(e){e.PONG="PONG",e.CODE_RUN_STATUS="CODE_RUN_STATUS",e.SUBMISSION_RUN_STATUS="SUBMISSION_RUN_STATUS",e.USER_MESSAGE="USER_MESSAGE",e.SEND_DATA_="SEND_DATA_",e.SEND_DATA_ECS_TASK_DEFINITIONS_LIST="SEND_DATA_ECS_TASK_DEFINITIONS_LIST",e.SEND_DATA_ECS_TASKS_LIST="SEND_DATA_ECS_TASKS_LIST",e.SEND_DATA_EC2_INSTANCES_LIST="SEND_DATA_EC2_INSTANCES_LIST",e.SEND_DATA_SSM_SESSIONS_LIST="SEND_DATA_SSM_SESSIONS_LIST",e.SEND_DATA_RUN_COMMAND="SEND_DATA_RUN_COMMAND",e.SEND_DATA_CLIENT_TRACK="SEND_DATA_CLIENT_TRACK",e.SEND_DATA_CHAT_COMPLETIONS="SEND_DATA_CHAT_COMPLETIONS",e.PROBLEM_CRAWLED="PROBLEM_CRAWLED",e.SUBMISSIONS_CRAWL="SUBMISSIONS_CRAWL",e.CONTEST_CHANGES="CONTEST_CHANGES",e.CLIENT_TRACK="CLIENT_TRACK",e.USER_NOTIFICATION_="USER_NOTIFICATION_",e.USER_NOTIFICATION_SUBMISSION="USER_NOTIFICATION_SUBMISSION",e.USER_NOTIFICATION_CONTEST_CLARIFICATION="USER_NOTIFICATION_CONTEST_CLARIFICATION"}(J||(J={})),function(e){e.CARDS="CARDS",e.ROWS="ROWS"}(Y||(Y={})),function(e){e.HORIZONTAL="HORIZONTAL",e.VERTICAL="VERTICAL"}(k||(k={})),function(e){e.SUPER_ADMIN="SUPER_ADMIN",e.ADMIN="ADMIN",e.MASTER="MASTER",e.MANAGER="MANAGER",e.CREATOR="CREATOR",e.REGULAR="REGULAR",e.LIMITED="LIMITED",e.GUEST="GUEST",e.RESTRICTED="RESTRICTED"}(W||(W={})),function(e){e.NOTHING="NOTHING",e.SEND_SUBMISSION="SEND_SUBMISSION",e.TRACKING_SUBMISSION="TRACKING_SUBMISSION",e.CRAWLING_LANGUAGES="CRAWLING_LANGUAGES",e.CRAWLING_PROBLEM_DATA="CRAWLING_PROBLEM_DATA"}(X||(X={})),function(e){e.RATIO_21_9="21:9",e.RATIO_20_9="20:9",e.RATIO_16_9="16:9",e.RATIO_16_10="16:10",e.RATIO_3_2="3:2",e.RATIO_4_3="4:3",e.RATIO_5_4="5:4",e.RATIO_1_1="1:1"}(z||(z={}));const q="javac 17.0.15",Z="v20.19.2",Q="Python 3.11.2",$="Python 3.9.16 (7.3.11+dfsg-2+deb12u3, Dec 30 2024, 22:36:23)\n[PyPy 7.3.11 with GCC 12.2.0]",ee={mime:"text/x-csrc",mainFilename:"main.c",fileExtension:["c"],hasBuildFile:!0,executable:"gcc",executableVersion:"gcc (Debian 12.2.0-14+deb12u1) 12.2.0\nCopyright (C) 2022 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.",templateSourceCode:'#include <stdio.h>\n \nint main(void) {\n \n printf("Hello World\\n");\n \n return 0;\n}',monacoKey:"c",codeMirrorKey:"c",highlightJsKey:"c"},te={mime:"text/x-c++src",mainFilename:"main.cpp",fileExtension:["cpp","c++","cxx","cc"],hasBuildFile:!0,executable:"g++",executableVersion:"g++ (Debian 12.2.0-14+deb12u1) 12.2.0\nCopyright (C) 2022 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.",templateSourceCode:'#include <iostream>\n\nusing namespace std;\n\nint main() {\n \n cout << "Hello World" << endl;\n \n return 0;\n}',monacoKey:"cpp",codeMirrorKey:"cpp",highlightJsKey:"cpp"},ae={mime:"text/x-python",mainFilename:"main.py",fileExtension:["py"],hasBuildFile:!1,templateSourceCode:'print("Hello World\\n")',monacoKey:"python",codeMirrorKey:"python",highlightJsKey:"python"},se={[n.C_11]:{value:n.C_11,label:"C 11",compilePattern:"/usr/bin/jk-c11 -static -fno-optimize-sibling-calls -fno-strict-aliasing -DONLINE_JUDGE -fno-asm -lm -s -O2 -std=gnu11 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ee},[n.CPP_11]:{value:n.CPP_11,label:"C++ 11",compilePattern:"/usr/bin/jk-cpp11 -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=gnu++11 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.CPP_20]:{value:n.CPP_20,label:"C++ 20",compilePattern:"/usr/bin/jk-cpp20 -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=gnu++20 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.JAVA_21]:{value:n.JAVA_21,label:"Java 21",mime:"text/x-java",mainFilename:"Main.java",fileExtension:["java"],compilePattern:"/usr/bin/jk-javac -cp '.;*' {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-java -Xmx512M -Xss64M -DONLINE_JUDGE=true -Duser.language=en -Duser.region=US -Duser.variant=US -cp {{folder_path}} {{class_name}}",templateSourceCode:'class Main {\n public static void main (String[] args) {\n \n System.out.println("Hello World");\n \n }\n}',hasBuildFile:!0,executable:"java",executableVersion:q,monacoKey:"java",codeMirrorKey:"java",highlightJsKey:"java"},[n.PYTHON_2]:{value:n.PYTHON_2,label:"Python 2 *",compilePattern:"/usr/bin/jk-python2 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-python2 {{folder_path}}/{{source_full_file_name}}",executable:"python2",executableVersion:$,...ae},[n.PYTHON_3]:{value:n.PYTHON_3,label:"Python 3",compilePattern:"/usr/bin/jk-python3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-python3 {{folder_path}}/{{source_full_file_name}}",executable:"python3",executableVersion:$,...ae},[n.PYTHON_PYPY_2]:{value:n.PYTHON_PYPY_2,label:"PyPy 2 *",compilePattern:"/usr/bin/jk-pypy2 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-pypy2 {{folder_path}}/{{source_full_file_name}}",executable:"pypy2",executableVersion:$,...ae},[n.PYTHON_PYPY_3]:{value:n.PYTHON_PYPY_3,label:"PyPy 3",compilePattern:"/usr/bin/jk-pypy3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-pypy3 {{folder_path}}/{{source_full_file_name}}",executable:"pypy3",executableVersion:$,...ae},[n.JAVASCRIPT_NODE_JS_22]:{value:n.JAVASCRIPT_NODE_JS_22,label:"Javascript Node.js 22",mime:"application/x-javascript",mainFilename:"main.js",fileExtension:["js"],compilePattern:"",runPattern:"/usr/bin/jk-node22 {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Z,monacoKey:"javascript",codeMirrorKey:"javascript",highlightJsKey:"javascript"},[n.ICPC_C]:{value:n.ICPC_C,label:"ICPC C *",compilePattern:"gcc -x c -g -O2 -std=gnu11 -static -lm -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ee},[n.C]:{value:n.C,label:"C *",compilePattern:"gcc -static -fno-optimize-sibling-calls -fno-strict-aliasing -DONLINE_JUDGE -fno-asm -lm -s -O2 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ee},[n.ICPC_CPP]:{value:n.ICPC_CPP,label:"ICPC C++ *",compilePattern:"g++ -x c++ -static -g -O2 -std=gnu++20 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.CPP]:{value:n.CPP,label:"C++ *",compilePattern:"g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.CPP11]:{value:n.CPP11,label:"C++ 11 *",compilePattern:"g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=c++11 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.CPP14]:{value:n.CPP14,label:"C++ 14 *",compilePattern:"g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=c++14 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.CPP17]:{value:n.CPP17,label:"C++ 17 *",compilePattern:"g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=c++17 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.JAVA]:{value:n.JAVA,label:"Java *",mime:"text/x-java",mainFilename:"Main.java",fileExtension:["java"],compilePattern:"javac -cp '.;*' {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/lib/jvm/java-17-openjdk-amd64/bin/java -Xmx512M -Xss64M -DONLINE_JUDGE=true -Duser.language=en -Duser.region=US -Duser.variant=US -cp {{folder_path}} {{class_name}}",templateSourceCode:'class Main {\n public static void main (String[] args) {\n \n System.out.println("Hello World");\n \n }\n}',hasBuildFile:!0,executable:"javac",executableVersion:q,monacoKey:"java",codeMirrorKey:"java",highlightJsKey:"java"},[n.ICPC_PYTHON]:{value:n.ICPC_PYTHON,label:"ICPC Python *",compilePattern:"pypy3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/pypy3 {{folder_path}}/{{source_full_file_name}}",executable:"pypy3",executableVersion:$,...ae},[n.PYTHON]:{value:n.PYTHON,label:"Python *",compilePattern:"python3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/python3 {{folder_path}}/{{source_full_file_name}}",executable:"python3",executableVersion:Q,...ae},[n.PYTHON2]:{value:n.PYTHON2,label:"Python 2 *",compilePattern:"python2 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/python2 {{folder_path}}/{{source_full_file_name}}",executable:"python",executableVersion:"Python 2.7.18",...ae},[n.PYTHON3]:{value:n.PYTHON3,label:"Python 3 *",compilePattern:"python3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/python3 {{folder_path}}/{{source_full_file_name}}",executable:"python3",executableVersion:Q,...ae},[n.JAVASCRIPT]:{value:n.JAVASCRIPT,label:"Javascript *",mime:"application/x-javascript",mainFilename:"main.js",fileExtension:["js"],compilePattern:"",runPattern:"/usr/bin/node {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Z,monacoKey:"javascript",codeMirrorKey:"javascript",highlightJsKey:"javascript"},[n.TYPESCRIPT]:{value:n.TYPESCRIPT,label:"Typescript *",mime:"application/x-typescript",mainFilename:"main.ts",fileExtension:["ts"],compilePattern:"",runPattern:"/usr/bin/node {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Z,monacoKey:"typescript",codeMirrorKey:"typescript",highlightJsKey:"typescript"},[n.TSX]:{value:n.TSX,label:"TSX *",mime:"application/x-typescript",mainFilename:"main.tsx",fileExtension:["tsx"],compilePattern:"",runPattern:"/usr/bin/node {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Z,monacoKey:"typescript",codeMirrorKey:"typescript",highlightJsKey:"typescript"},[n.JSX]:{value:n.JSX,label:"JSX *",mime:"application/x-javascript",mainFilename:"main.jsx",fileExtension:["jsx"],compilePattern:"",runPattern:"/usr/bin/node {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Z,monacoKey:"javascript",codeMirrorKey:"javascript",highlightJsKey:"javascript"},[n.PSEUDOCODE_PSEINT]:{value:n.PSEUDOCODE_PSEINT,label:"Pseudo-código (PSeInt)",mime:"text/plain",mainFilename:"main.psc",fileExtension:["psc"],compilePattern:"jk-pseint {{folder_path}}/{{source_full_file_name}} --norun --nouser && jk-pseint {{folder_path}}/{{source_full_file_name}} --draw {{folder_path}}/{{source_full_file_name}}.psd && jk-psexport {{folder_path}}/{{source_full_file_name}}.psd {{folder_path}}/{{source_full_file_name}}.cpp --lang=cpp && g++ -x c++ -g -O2 -std=gnu++20 -static -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}.cpp",runPattern:"{{folder_path}}/{{compiled_file_name}}",templateSourceCode:'Algoritmo HOLA_MUNDO\n\tImprimir "Hello World"\nFinAlgoritmo\n',hasBuildFile:!1,executable:"",executableVersion:"PSeInt 20230904-l64-wx3\nhttp://pseint.sourceforge.net\nby Pablo Novara (zaskar_84@yahoo.com.ar)\npsExport 20230904-l64-wx3\nhttp://pseint.sourceforge.net\nby Pablo Novara (zaskar_84@yahoo.com.ar)",monacoKey:"text",codeMirrorKey:"pseudocode-pseint",highlightJsKey:"plaintext"},[n.DOT]:{value:n.DOT,label:"DOT",mime:"text/vnd.graphviz",mainFilename:"diagram.dot",fileExtension:["dot"],compilePattern:"",runPattern:"",templateSourceCode:"digraph G {\n A -> B;\n B -> C;\n}",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"dot",codeMirrorKey:"dot",highlightJsKey:"plaintext"},[n.MERMAID]:{value:n.MERMAID,label:"Mermaid",mime:"text/mermaid",mainFilename:"diagram.mmd",fileExtension:["mmd","mermaid"],compilePattern:"",runPattern:"",templateSourceCode:"graph TD\n A[Start] --\x3e B{Is it working?}\n B -- Yes --\x3e C[Great!]\n B -- No --\x3e D[Fix it]\n D --\x3e B\n",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"mermaid",codeMirrorKey:"mermaid",highlightJsKey:"plaintext"},[n.JSON]:{value:n.JSON,label:"JSON",mime:"application/json",mainFilename:"main.json",fileExtension:["json"],compilePattern:"",runPattern:"",templateSourceCode:"{\n \n}",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"json",codeMirrorKey:"javascript",highlightJsKey:"json"},[n.TEXT]:{value:n.TEXT,label:"plain text",mime:"text/plain",mainFilename:"main.txt",fileExtension:["txt","text","in","out"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"text",codeMirrorKey:"text",highlightJsKey:"plaintext"},[n.DIFF]:{value:n.DIFF,label:"diff",mime:"text/plain",mainFilename:"main.patch",fileExtension:["diff","patch"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"diff",codeMirrorKey:"diff",highlightJsKey:"diff"},[n.LATEX]:{value:n.LATEX,label:"LaTeX",mime:"application/x-latex",mainFilename:"main.tex",fileExtension:["tex"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"latex",codeMirrorKey:"stex",highlightJsKey:"latex"},[n.MARKDOWN]:{value:n.MARKDOWN,label:"Markdown",mime:"text/plain",mainFilename:"main.md",fileExtension:["md"],compilePattern:"",runPattern:"",templateSourceCode:"# Hello World\n",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"markdown",codeMirrorKey:"markdown",highlightJsKey:"markdown"},[n.MDX]:{value:n.MDX,label:"MDX",mime:"text/plain",mainFilename:"main.mdx",fileExtension:["mdx"],compilePattern:"",runPattern:"",templateSourceCode:"# Hello World\n",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"markdown",codeMirrorKey:"markdown",highlightJsKey:"markdown"},[n.ARDUINO]:{value:n.ARDUINO,label:"Arduino",mime:"text/plain",mainFilename:"main.c",fileExtension:["c","cpp","pde","h","ino"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"c",codeMirrorKey:"c",highlightJsKey:"c"},[n.HTML]:{value:n.HTML,label:"HTML",mime:"text/HTML",mainFilename:"index.html",fileExtension:["html"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"html",codeMirrorKey:"html",highlightJsKey:"xml"},[n.BASH]:{value:n.BASH,label:"Bash",mime:"text/plain",mainFilename:"main.sh",fileExtension:["sh","bash"],compilePattern:"",runPattern:"",templateSourceCode:'#!/bin/bash\necho "Hello World"\n',hasBuildFile:!1,executable:"bash",executableVersion:"",monacoKey:"shell",codeMirrorKey:"shell",highlightJsKey:"bash"}},oe={VIVOS:[{color:"#FF0000",title:"Rojo"},{color:"#FF5900",title:"Rojo - Naranja"},{color:"#FF8600",title:"Naranja"},{color:"#FFBF00",title:"Ámbar"},{color:"#FFFF00",title:"Amarillo"},{color:"#A6FF00",title:"Lima o Verde limon"},{color:"#00FF8C",title:"Verde puro"},{color:"#00FF8C",title:"Verde cian"},{color:"#00FFFF",title:"Cian"},{color:"#0099FF",title:"Cerúleo o Azur"},{color:"#0000FF",title:"Azul"},{color:"#9F00FF",title:"Violeta"},{color:"#FF00FF",title:"Magenta"},{color:"#FF0099",title:"Fucsia"}],OSCUROS:[{color:"#880000",title:"Granate"},{color:"#882F00",title:"Caoba o Rojo indio"},{color:"#884700",title:"Marrón o Pardo"},{color:"#886600",title:"Marrón dorado"},{color:"#888800",title:"Oliva"},{color:"#588800",title:"Verde palta"},{color:"#008800",title:"Verde estándar"},{color:"#008858",title:"Esmeralda"},{color:"#008888",title:"Cerceta o Azul verde"},{color:"#005288",title:"Añil"},{color:"#000080",title:"Azul marino"},{color:"#880088",title:"Azul púrpura"},{color:"#880088",title:"Púrpura o Morado"},{color:"#880047",title:"Vino"}],AGRISADOS:[{color:"#BF4040",title:"Lacre"},{color:"#BF6340",title:"Cobre"},{color:"#BF8340",title:"Cnalea o Ocre"},{color:"#BF9F40",title:"Dorado"},{color:"#BFBF40",title:"Chartreuse"},{color:"#93BF40",title:"Verde manzana"},{color:"#93BF40",title:"Verde bosque"},{color:"#40BF40",title:"Verde mar"},{color:"#40BFBF",title:"Turquesa"},{color:"#408CBF",title:"Azul acero"},{color:"#4040BF",title:"Zafiro"},{color:"#9340BF",title:"Amastista"},{color:"#B140BF",title:"Púrpureo"},{color:"#B140BF",title:"Fandango"}],CLAROS:[{color:"#FF7777",title:"Coral"},{color:"#FF9977",title:"Salmón"},{color:"#FFB977",title:"Melón o Durazno"},{color:"#FFDA80",title:"Crema"},{color:"#FFFF88",title:"Maíz"},{color:"#CFFF77",title:"Té verde"},{color:"#77FF77",title:"Verde claro"},{color:"#77FFAA",title:"Menta"},{color:"#80FFFF",title:"Aguamarina"},{color:"#73C7FF",title:"Celeste"},{color:"#8082FF",title:"Bígaro o aciano"},{color:"#C977FF",title:"Lavanda o lila"},{color:"#FF77FF",title:"Malva"},{color:"#FF77C1",title:"Rosado"}]},ne="",re="x-juki-forwarded-host",ie="x-juki-visitor-session-id",le="x-juki-metadata",Re="juki-app";function Ee(e){try{if("string"==typeof e)return JSON.parse(e),!0}catch(e){return!1}return!1}function ue(e){try{return"string"==typeof JSON.stringify(e)}catch(e){return!1}}function ce(e){let t=0;for(;-1!==e.indexOf(t);)t++;return t}function me(e,t){const a=[];for(let s=e;s<t;s++)a.push(s);return a}function de(...e){console.warn((new Date).toLocaleString(),...e)}function _e(...e){console.info((new Date).toLocaleString(),...e)}function pe(...e){console.error((new Date).toLocaleString(),...e)}function Se(e){const t=new ArrayBuffer(e.length),a=new Uint8Array(t);for(let t=0;t<e.length;t++)a[t]=255&e.charCodeAt(t);return t}function Te(e){return e.join("")}function Ae(e){return e.split("")}E.FREE,E.FREE,E.STANDARD,E.STANDARD,E.PREMIUM,E.PREMIUM,E.CUSTOM,E.CUSTOM,c.PUBLIC,c.PUBLIC,c.RESERVED,c.RESERVED,c.ARCHIVED,c.ARCHIVED,W.RESTRICTED,W.RESTRICTED,W.GUEST,W.GUEST,W.REGULAR,W.REGULAR,W.CREATOR,W.CREATOR,W.MANAGER,W.MANAGER,W.MASTER,W.MASTER,W.ADMIN,W.ADMIN,W.SUPER_ADMIN,W.SUPER_ADMIN;const Ie=(e,t)=>{if(e===t)return!1;if(e.length!==t.length)return!0;for(let a=0;a<t.length;a+=1)if(t[a]!==e[a])return!0;return!1},Ce=e=>{switch(!0){case!(e?.members?.rankAdministrators!==p.NONE&&e?.members?.rankAdministrators!==p.CLOSE||e?.members?.rankManagers!==p.OPEN||e?.members?.rankGuests!==p.NONE&&e?.members?.rankGuests!==p.CLOSE&&e?.members?.rankGuests!==p.OPEN||e?.members?.rankSpectators!==p.OPEN||e?.members?.rankParticipants!==p.NONE&&e?.members?.rankParticipants!==p.CLOSE&&e?.members?.rankParticipants!==p.OPEN):return R.EXPOSED;case!(e?.members?.rankAdministrators!==p.NONE&&e?.members?.rankAdministrators!==p.CLOSE||e?.members?.rankManagers!==p.CLOSE||e?.members?.rankGuests!==p.NONE&&e?.members?.rankGuests!==p.CLOSE&&e?.members?.rankGuests!==p.OPEN||e?.members?.rankSpectators!==p.OPEN||e?.members?.rankParticipants!==p.NONE&&e?.members?.rankParticipants!==p.CLOSE&&e?.members?.rankParticipants!==p.OPEN):return R.PUBLIC;case!(e?.members?.rankAdministrators!==p.NONE&&e?.members?.rankAdministrators!==p.CLOSE||e?.members?.rankManagers!==p.CLOSE||e?.members?.rankGuests!==p.NONE&&e?.members?.rankGuests!==p.CLOSE&&e?.members?.rankGuests!==p.OPEN||e?.members?.rankSpectators!==p.CLOSE||e?.members?.rankParticipants!==p.NONE&&e?.members?.rankParticipants!==p.CLOSE&&e?.members?.rankParticipants!==p.OPEN):return R.RESTRICTED;case e?.members?.rankAdministrators===p.NONE&&e?.members?.rankManagers===p.NONE&&e?.members?.rankGuests===p.NONE&&e?.members?.rankSpectators===p.NONE&&e?.members?.rankParticipants===p.NONE:default:return R.PRIVATE}};function Ne(e){const t=e.lastIndexOf(".");return-1!==t?e.substring(0,t):e}const he=(e,t,a)=>{const{timeUsed:s,memoryUsed:o,exitCode:n}=Oe(e?.log),r=s>t,i=o>a,l=0!==n;return{compilationError:e?.status===D.COMPILATION_ERROR,timeUsed:s,timeLimitExceeded:r,memoryUsed:o,memoryLimitExceeded:i,exitCode:n,runtimeError:l,failed:!!e?.log&&(r||i||l)}},fe=(e,t,a)=>{const{compilationError:s,timeLimitExceeded:o,memoryLimitExceeded:n,runtimeError:r,timeUsed:i,memoryUsed:l,exitCode:R}=he(e,t,a);return{verdict:s?g.CE:o?g.TLE:n?g.MLE:r?g.RE:e.out===e.testOut?g.AC:e.withPE&&e.out.split(" ").join("").split("\n").join("")===e.testOut.split(" ").join("").split("\n").join("")?g.PE:e.withPE||e.out.split(" ").join("").split("\n").join("")!==e.testOut.split(" ").join("").split("\n").join("")?g.WA:g.AC,timeUsed:i,memoryUsed:l,exitCode:R}},Oe=e=>{const t=e?.split?.("\n")||[];let a=0,s=0,o=-1;if(t.length>4)for(const e of t)e.startsWith("time:")?(a=+e.split(":")[1],Number.isNaN(a)&&(a=0),a*=1e3):e.startsWith("max-rss:")?s=parseInt(e.split(":")[1],10):e.startsWith("exitcode:")&&(o=parseInt(e.split(":")[1],10));else t.length>=3&&(a=+t[0],s=+t[1],o=+t[2]);return{timeUsed:Number.isNaN(a)?0:a,memoryUsed:Number.isNaN(s)?0:s,exitCode:Number.isNaN(o)?-1:o}};Date.prototype.changeYear=function(e){const t=new Date(this);return t.setFullYear(e),t},Date.prototype.changeMonth=function(e){const t=new Date(this);return t.setMonth(e),t},Date.prototype.changeDay=function(e){const t=new Date(this);return t.setDate(e),t},Date.prototype.changeHours=function(e){const t=new Date(this);return t.setHours(e),t},Date.prototype.changeMinutes=function(e){const t=new Date(this);return t.setMinutes(e),t},Date.prototype.changeSeconds=function(e){const t=new Date(this);return t.setSeconds(e),t},Date.prototype.changeMilliseconds=function(e){const t=new Date(this);return t.setMilliseconds(e),t},Date.prototype.decreaseYear=function(e=1){return this.changeYear(this.getFullYear()-e)},Date.prototype.increaseYear=function(e=1){return this.changeYear(this.getFullYear()+e)},Date.prototype.decreaseMonth=function(){const e=new Date(this);return e.setMonth(e.getMonth()-1),e},Date.prototype.increaseMonth=function(){const e=new Date(this);return e.setMonth(e.getMonth()+1),e},Date.prototype.increaseDay=function(){const e=new Date(this);return e.setDate(e.getDate()+1),e},Date.prototype.decreaseDay=function(){const e=new Date(this);return e.setDate(e.getDate()-1),e},Date.prototype.startOfYear=function(){const e=new Date(this);return e.setMonth(0),e.startOfMonth()},Date.prototype.endOfYear=function(){const e=this.increaseYear().startOfYear();return new Date(e.getTime()-1)},Date.prototype.startOfMonth=function(){const e=new Date(this);return e.setDate(1),e.startOfDay()},Date.prototype.endOfMonth=function(){const e=this.increaseMonth().startOfMonth();return new Date(e.getTime()-1)},Date.prototype.startOfWeek=function(){const e=new Date(this);for(;e.getDay();)e.setDate(e.getDate()-1);return e.startOfDay()},Date.prototype.endOfWeek=function(){const e=new Date(this);for(;e.getDay()<6;)e.setDate(e.getDate()-1);return e.endOfDay()},Date.prototype.startOfDay=function(){const e=new Date(this);return e.setHours(0,0,0,0),e},Date.prototype.endOfDay=function(){const e=new Date(this);return e.setHours(23,59,59,999),e},Date.prototype.startOfHour=function(){const e=new Date(this);return e.setMinutes(0,0,0),e},Date.prototype.endOfHour=function(){const e=new Date(this);return e.setMinutes(59,59,999),e},Date.prototype.startOfMinute=function(){const e=new Date(this);return e.setSeconds(0,0),e},Date.prototype.endOfMinute=function(){const e=new Date(this);return e.setSeconds(59,999),e},Date.prototype.startOfSecond=function(){const e=new Date(this);return e.setMilliseconds(0),e},Date.prototype.endOfSecond=function(){const e=new Date(this);return e.setMilliseconds(999),e},Date.prototype.isToday=function(){const e=new Date;return this.isSameDay(e)},Date.prototype.isEqual=function(e){return this.getTime()===e.getTime()},Date.prototype.isSameYear=function(e){return this.getFullYear()===e.getFullYear()},Date.prototype.isSameMonth=function(e){return this.isSameYear(e)&&this.getMonth()===e.getMonth()},Date.prototype.isSameDay=function(e){return this.isSameMonth(e)&&this.getDate()===e.getDate()},Date.prototype.isSameHour=function(e){return this.isSameDay(e)&&this.getHours()===e.getHours()},Date.prototype.isSameMinute=function(e){return this.isSameHour(e)&&this.getMinutes()===e.getMinutes()},Date.prototype.isSameSecond=function(e){return this.isSameMinute(e)&&this.getSeconds()===e.getSeconds()},Date.prototype.isSameMillisecond=function(e){return this.isEqual(e)},Date.prototype.isValidDate=function(){return this instanceof Date&&!isNaN(this.getTime())},Date.prototype.isYearAfter=function(e){return this.getFullYear()>e.getFullYear()},Date.prototype.isMonthAfter=function(e){return this.isYearAfter(e)||this.isSameYear(e)&&this.getMonth()>e.getMonth()},Date.prototype.isDayAfter=function(e){return this.isMonthAfter(e)||this.isSameMonth(e)&&this.getDate()>e.getDate()},Date.prototype.isHoursAfter=function(e){return this.isDayAfter(e)||this.isSameDay(e)&&this.getHours()>e.getHours()},Date.prototype.isMinutesAfter=function(e){return this.isHoursAfter(e)||this.isSameHour(e)&&this.getMinutes()>e.getMinutes()},Date.prototype.isSecondsAfter=function(e){return this.isMinutesAfter(e)||this.isSameMinute(e)&&this.getSeconds()>e.getSeconds()},Date.prototype.isMillisecondsAfter=function(e){return this.isSecondsAfter(e)||this.isSameSecond(e)&&this.getMilliseconds()>e.getMilliseconds()},Date.prototype.isAfter=function(e){return this.getTime()>e.getTime()},Date.prototype.isYearBefore=function(e){return this.getFullYear()<e.getFullYear()},Date.prototype.isMonthBefore=function(e){return this.isYearBefore(e)||this.isSameYear(e)&&this.getMonth()<e.getMonth()},Date.prototype.isDayBefore=function(e){return this.isMonthBefore(e)||this.isSameMonth(e)&&this.getDate()<e.getDate()},Date.prototype.isHoursBefore=function(e){return this.isDayBefore(e)||this.isSameDay(e)&&this.getHours()<e.getHours()},Date.prototype.isMinutesBefore=function(e){return this.isHoursBefore(e)||this.isSameHour(e)&&this.getMinutes()<e.getMinutes()},Date.prototype.isSecondsBefore=function(e){return this.isMinutesBefore(e)||this.isSameMinute(e)&&this.getSeconds()<e.getSeconds()},Date.prototype.isMillisecondsBefore=function(e){return this.isSecondsBefore(e)||this.isSameSecond(e)&&this.getMilliseconds()<e.getMilliseconds()},Date.prototype.isBefore=function(e){return this.getTime()<e.getTime()},Date.prototype.isWithinInterval=function({start:e,end:t},a="[]"){return("["===a.charAt(0)&&this.isEqual(e)||this.isAfter(e))&&("["===a.charAt(1)&&this.isEqual(t)||this.isBefore(t))};const ge={[x.ERR500]:{value:x.ERR500,message:"internal server error",status:500},[x.ERR400]:{value:x.ERR400,message:"bad request",status:400},[x.ERR401]:{value:x.ERR401,message:"unauthorized",status:401},[x.ERR403]:{value:x.ERR403,message:"forbidden",status:403},[x.ERR404]:{value:x.ERR404,message:"not found",status:404},[x.ERR405]:{value:x.ERR405,message:"method not allowed",status:405},[x.ERR9997]:{value:x.ERR9997,message:"aborted request",status:400},[x.ERR9998]:{value:x.ERR9998,message:"error on response",status:400},[x.ERR9999]:{value:x.ERR9999,message:"service no found",status:400},[x.ERR9900]:{value:x.ERR9900,message:"internal server error on company service",status:500},[x.ERR9910]:{value:x.ERR9910,message:"company not created",status:500},[x.ERR9911]:{value:x.ERR9911,message:"company not found",status:500},[x.ERR9912]:{value:x.ERR9912,message:"company not updated",status:500},[x.ERR9913]:{value:x.ERR9913,message:"company not deleted",status:500},[x.ERR9914]:{value:x.ERR9914,message:"not allowed to create the company",status:400},[x.ERR9915]:{value:x.ERR9915,message:"not allowed to view the company",status:400},[x.ERR9916]:{value:x.ERR9916,message:"not allowed to updated the company",status:400},[x.ERR9917]:{value:x.ERR9917,message:"not allowed to deleted the company",status:400},[x.ERR0000]:{value:x.ERR0000,message:"internal server error on users service",status:500},[x.ERR0010]:{value:x.ERR0010,message:"user not created",status:500},[x.ERR0011]:{value:x.ERR0011,message:"user not found",status:500},[x.ERR0012]:{value:x.ERR0012,message:"user not updated",status:500},[x.ERR0013]:{value:x.ERR0013,message:"user not deleted",status:500},[x.ERR0014]:{value:x.ERR0014,message:"not allowed to create the user",status:400},[x.ERR0015]:{value:x.ERR0015,message:"not allowed to view the user",status:400},[x.ERR0016]:{value:x.ERR0016,message:"not allowed to updated the user",status:400},[x.ERR0017]:{value:x.ERR0017,message:"not allowed to deleted the user",status:400},[x.ERR0018]:{value:x.ERR0018,message:"user is reported",status:400},[x.ERR0019]:{value:x.ERR0019,message:"user is archived",status:400},[x.ERR0020]:{value:x.ERR0020,message:"user with email requested not found",status:400},[x.ERR0021]:{value:x.ERR0021,message:"user with nickname requested not found",status:400},[x.ERR0022]:{value:x.ERR0022,message:"the email is already registered",status:400},[x.ERR0023]:{value:x.ERR0023,message:"the nickname is already taken",status:400},[x.ERR0024]:{value:x.ERR0024,message:"incorrect password",status:400},[x.ERR0050]:{value:x.ERR0050,message:"user session not created",status:500},[x.ERR0051]:{value:x.ERR0051,message:"user session not found",status:500},[x.ERR0052]:{value:x.ERR0052,message:"user session not updated",status:500},[x.ERR0053]:{value:x.ERR0053,message:"user session not deleted",status:500},[x.ERR0100]:{value:x.ERR0100,message:"internal server error on problems service",status:500},[x.ERR0110]:{value:x.ERR0110,message:"problem not created",status:500},[x.ERR0111]:{value:x.ERR0111,message:"problem not found",status:500},[x.ERR0112]:{value:x.ERR0112,message:"problem not updated",status:500},[x.ERR0113]:{value:x.ERR0113,message:"problem not deleted",status:500},[x.ERR0114]:{value:x.ERR0114,message:"not allowed to create the problem",status:400},[x.ERR0115]:{value:x.ERR0115,message:"not allowed to view the problem",status:400},[x.ERR0116]:{value:x.ERR0116,message:"not allowed to updated the problem",status:400},[x.ERR0117]:{value:x.ERR0117,message:"not allowed to deleted the problem",status:400},[x.ERR0118]:{value:x.ERR0118,message:"problem mode not supported",status:500},[x.ERR0119]:{value:x.ERR0119,message:"problem type not supported",status:500},[x.ERR0120]:{value:x.ERR0120,message:"problem time limit must be a number",status:500},[x.ERR0121]:{value:x.ERR0121,message:"problem memory limit must be number",status:500},[x.ERR0122]:{value:x.ERR0122,message:"test case file empty",status:400},[x.ERR0200]:{value:x.ERR0200,message:"internal server error on contests service",status:500},[x.ERR0210]:{value:x.ERR0210,message:"contest not created",status:500},[x.ERR0211]:{value:x.ERR0211,message:"contest not found",status:500},[x.ERR0212]:{value:x.ERR0212,message:"contest not updated",status:500},[x.ERR0213]:{value:x.ERR0213,message:"contest not deleted",status:500},[x.ERR0214]:{value:x.ERR0214,message:"not allowed to create the contest",status:400},[x.ERR0215]:{value:x.ERR0215,message:"not allowed to view the contest",status:400},[x.ERR0216]:{value:x.ERR0216,message:"not allowed to updated the contest",status:400},[x.ERR0217]:{value:x.ERR0217,message:"not allowed to deleted the contest",status:400},[x.ERR0218]:{value:x.ERR0218,message:"not allowed to register to the contest",status:400},[x.ERR0219]:{value:x.ERR0219,message:"is already registered",status:400},[x.ERR0220]:{value:x.ERR0220,message:"not allowed to view contests",status:400},[x.ERR0230]:{value:x.ERR0230,message:"scoreboard not created",status:500},[x.ERR0231]:{value:x.ERR0231,message:"scoreboard not found",status:500},[x.ERR0232]:{value:x.ERR0232,message:"scoreboard not updated",status:500},[x.ERR0233]:{value:x.ERR0233,message:"scoreboard not deleted",status:500},[x.ERR0234]:{value:x.ERR0234,message:"not allowed to create the scoreboard",status:400},[x.ERR0235]:{value:x.ERR0235,message:"not allowed to view the scoreboard",status:400},[x.ERR0236]:{value:x.ERR0236,message:"not allowed to update the scoreboard",status:400},[x.ERR0237]:{value:x.ERR0237,message:"not allowed to delete the scoreboard",status:400},[x.ERR0240]:{value:x.ERR0240,message:"clarification not created",status:500},[x.ERR0241]:{value:x.ERR0241,message:"clarification not found",status:500},[x.ERR0242]:{value:x.ERR0242,message:"clarification not updated",status:500},[x.ERR0243]:{value:x.ERR0243,message:"clarification not deleted",status:500},[x.ERR0244]:{value:x.ERR0244,message:"not allowed to submit clarification",status:400},[x.ERR0245]:{value:x.ERR0245,message:"not allowed to view clarification",status:400},[x.ERR0246]:{value:x.ERR0246,message:"not allowed to update clarification",status:400},[x.ERR0247]:{value:x.ERR0247,message:"not allowed to delete clarification",status:400},[x.ERR0300]:{value:x.ERR0300,message:"internal server error on submissions service",status:500},[x.ERR0301]:{value:x.ERR0301,message:"submission not found",status:500},[x.ERR0302]:{value:x.ERR0302,message:"submission not created",status:500},[x.ERR0303]:{value:x.ERR0303,message:"submission not updated",status:500},[x.ERR0310]:{value:x.ERR0310,message:"source empty",status:400},[x.ERR0311]:{value:x.ERR0311,message:"programming language not supported",status:400},[x.ERR0321]:{value:x.ERR0321,message:"not allowed submit the problem in the contest",status:400},[x.ERR0331]:{value:x.ERR0331,message:"judgement unavailable",status:400},[x.ERR0400]:{value:x.ERR0400,message:"internal server error on utils services",status:500},[x.ERR0410]:{value:x.ERR0410,message:"empty image",status:400},[x.ERR0420]:{value:x.ERR0420,message:"",status:400},[x.ERR0421]:{value:x.ERR0421,message:"compilation failed",status:400},[x.ERR0430]:{value:x.ERR0430,message:"",status:400},[x.ERR0440]:{value:x.ERR0440,message:"the email could not be sent",status:400},[x.ERR0600]:{value:x.ERR0600,message:"internal server error on teams service",status:500},[x.ERR0610]:{value:x.ERR0610,message:"team not created",status:400},[x.ERR0611]:{value:x.ERR0611,message:"team not found",status:400},[x.ERR0612]:{value:x.ERR0612,message:"team not updated",status:400},[x.ERR0613]:{value:x.ERR0613,message:"team not deleted",status:400},[x.ERR0614]:{value:x.ERR0614,message:"not allowed to create the team",status:400},[x.ERR0615]:{value:x.ERR0615,message:"not allowed to view the team",status:400},[x.ERR0616]:{value:x.ERR0616,message:"not allowed to updated the team",status:400},[x.ERR0617]:{value:x.ERR0617,message:"not allowed to deleted the team",status:400},[x.ERR0618]:{value:x.ERR0618,message:"team is reported",status:400},[x.ERR0619]:{value:x.ERR0619,message:"team is archived",status:400},[x.ERR0800]:{value:x.ERR0800,message:"internal server error on files service",status:500},[x.ERR0810]:{value:x.ERR0810,message:"file not created",status:400},[x.ERR0811]:{value:x.ERR0811,message:"file not found",status:400},[x.ERR0812]:{value:x.ERR0812,message:"file not updated",status:400},[x.ERR0813]:{value:x.ERR0813,message:"file not deleted",status:400},[x.ERR0814]:{value:x.ERR0814,message:"not allowed to create the file",status:400},[x.ERR0815]:{value:x.ERR0815,message:"not allowed to view the file",status:400},[x.ERR0816]:{value:x.ERR0816,message:"not allowed to updated the file",status:400},[x.ERR0817]:{value:x.ERR0817,message:"not allowed to deleted the file",status:400},[x.ERR0818]:{value:x.ERR0818,message:"file is reserved",status:400},[x.ERR0819]:{value:x.ERR0819,message:"file is private",status:400},[x.ERR0820]:{value:x.ERR0820,message:"file is archived",status:400}};class De extends Error{constructor(e,t){const a=t?.message||ge[e].message;super(a),this.message=a,this.code=e,t?.stack&&(this.stack=t.stack),t?.data&&(this.data=t.data)}}Number.prototype.padStart=function(e,t="0"){return(this+"").padStart(e,t)},Number.prototype.padEnd=function(e,t="0"){return(this+"").padEnd(e,t)};const Pe=e=>{if(!Ee(e)){const t={success:!1,message:ge[x.ERR9999].message,errors:[{code:x.ERR9999,detail:"",message:ge[x.ERR9999].message}]};return pe({message:"response is not string json, success false on cleaning request",responseText:e,response:t}),t}const t=JSON.parse(e);if("boolean"==typeof t.success){if(!0===t.success&&"string"==typeof t.message&&t.content)return{success:!0,message:t.message,content:t.content};if(!0===t.success&&"string"==typeof t.message&&Array.isArray(t.contents)&&t.meta)return{success:!0,message:t.message,contents:t.contents,meta:t.meta};if(!1===t.success&&"string"==typeof t.message&&Array.isArray(t.errors)){const a={success:!1,message:t.message,errors:t.errors};return pe({message:"success false on cleaning request",responseText:e,response:a}),a}}const a={success:!1,message:ge[x.ERR9998].message,errors:[{code:x.ERR9998,detail:"",message:ge[x.ERR9998].message}]};return pe({message:"success false on cleaning request",responseText:e,response:a}),a},be=e=>(Object.values(j).includes(e?.event)||Object.values(K).includes(e?.event))&&"string"==typeof e?.clientId&&!!e.clientId,ve=e=>be(e)&&e?.event===j.SUBSCRIBE_CODE_RUN_STATUS&&"string"==typeof e?.runId&&!!e.runId,Ue=e=>be(e)&&e?.event===j.UNSUBSCRIBE_CODE_RUN_STATUS&&"string"==typeof e?.runId&&!!e.runId,ye=e=>be(e)&&e?.event===j.SUBSCRIBE_SUBMISSION_RUN_STATUS&&"string"==typeof e?.submitId&&!!e.submitId,Me=e=>be(e)&&e?.event===j.UNSUBSCRIBE_SUBMISSION_RUN_STATUS&&"string"==typeof e?.submitId&&!!e.submitId,Le=e=>be(e)&&e?.event===j.SUBSCRIBE_GET_DATA,Be=e=>be(e)&&e?.event===j.UNSUBSCRIBE_GET_DATA,Fe=e=>be(e)&&e?.event===j.SUBSCRIBE_PROBLEM_CRAWLED,xe=e=>be(e)&&e?.event===j.UNSUBSCRIBE_PROBLEM_CRAWLED,Ge=e=>be(e)&&e?.event===j.SUBSCRIBE_SUBMISSIONS_CRAWL,we=e=>be(e)&&e?.event===j.UNSUBSCRIBE_SUBMISSIONS_CRAWL,He=e=>be(e)&&e?.event===j.SUBSCRIBE_CONTEST_CHANGES,Ve=e=>be(e)&&e?.event===j.UNSUBSCRIBE_CONTEST_CHANGES,Ke=e=>be(e)&&e?.event===j.SUBSCRIBE_CLIENT_TRACK,je=e=>be(e)&&e?.event===j.UNSUBSCRIBE_CLIENT_TRACK,Je=e=>be(e)&&e?.event===j.SUBSCRIBE_USER_NOTIFICATION,Ye=e=>be(e)&&e?.event===j.UNSUBSCRIBE_USER_NOTIFICATION,ke=e=>Object.values(J).includes(e?.event)&&"string"==typeof e?.key&&"string"==typeof e?.connectionId&&"number"==typeof e?.messageTimestamp&&!!e.messageTimestamp,We=e=>ke(e)&&e?.event===J.CODE_RUN_STATUS&&"string"==typeof e?.runId&&!!e.runId&&e?.status in D,Xe=e=>ke(e)&&e?.event===J.SUBMISSION_RUN_STATUS&&"string"==typeof e?.submitId&&!!e.submitId&&e?.status in D&&e?.verdict in g&&"number"==typeof e?.points,ze=(e,t,a)=>`${e}-${t}-${a}`;function qe(e){const t=[],a=1e3,s=6e4,o=36e5,n=864e5,r=6048e5,i=Math.floor(e/r);t.push({remaining:i,label:1===i?"week":"weeks",abbreviatedLabel:"w",milliseconds:r,digits:2});const l=Math.floor(e%r/n);t.push({remaining:l,label:1===l?"day":"days",abbreviatedLabel:"d",milliseconds:n,digits:2});const R=Math.floor(e%n/o);t.push({remaining:R,label:1===R?"hour":"hours",abbreviatedLabel:"h",milliseconds:o,digits:2});const E=Math.floor(e%o/s);t.push({remaining:E,label:1===E?"minute":"minutes",abbreviatedLabel:"m",milliseconds:s,digits:2});const u=Math.floor(e%s/a);t.push({remaining:u,label:1===u?"second":"seconds",abbreviatedLabel:"s",milliseconds:a,digits:2});const c=Math.floor(e%a);return t.push({remaining:c,label:1===c?"millisecond":"milliseconds",abbreviatedLabel:"ms",milliseconds:1,digits:3}),t}const Ze=(e,t)=>e+"|"+t,Qe=(e,t)=>`${e}|${t}`,$e=e=>{const[t,a]=e.split("|");return{sessionId:t,uiId:a}},et=()=>({id:a(),type:H.NEW_PAGE,title:"",points:0}),tt={[z.RATIO_21_9]:{aspectRatio:z.RATIO_21_9,width:2520,height:1080,decimal:21/9,label:"ultrawide"},[z.RATIO_20_9]:{aspectRatio:z.RATIO_20_9,width:2400,height:1080,decimal:20/9,label:"mobile wide"},[z.RATIO_16_9]:{aspectRatio:z.RATIO_16_9,width:1920,height:1080,decimal:16/9,label:"widescreen"},[z.RATIO_16_10]:{aspectRatio:z.RATIO_16_10,width:1920,height:1200,decimal:1.6,label:"widescreen tall"},[z.RATIO_3_2]:{aspectRatio:z.RATIO_3_2,width:1440,height:960,decimal:1.5,label:"balanced"},[z.RATIO_4_3]:{aspectRatio:z.RATIO_4_3,width:1024,height:768,decimal:4/3,label:"standard"},[z.RATIO_5_4]:{aspectRatio:z.RATIO_5_4,width:1280,height:1024,decimal:5/4,label:"square old"},[z.RATIO_1_1]:{aspectRatio:z.RATIO_1_1,width:1e3,height:1e3,decimal:1,label:"square"}},at=e=>{const t=[...e];t[0]?.type!==H.NEW_PAGE&&t.unshift(et());let a=t[0],s=[];const o=[];for(let e=1;e<t.length;e++){const n=t[e];n.type===H.NEW_PAGE?(o.push({header:a,content:[...s]}),a=n,s=[]):s.push(n)}return o.push({header:a,content:[...s]}),o},st=e=>"string"==typeof e?.id&&e.id&&Object.values(H).includes(e?.type)&&"string"==typeof e?.title&&"number"==typeof e?.points,ot=e=>st(e)&&e?.type===H.JK_MD&&"string"==typeof e?.content,nt=e=>st(e)&&e?.type===H.CODE_EDITOR&&"object"==typeof e?.sourceCode&&null!==e?.sourceCode&&"object"===e?.testCases&&null!==e?.testCases&&Array.isArray(e?.languages)&&"number"==typeof e?.height,rt=e=>st(e)&&e?.type===H.QUIZ_PROBLEM&&Object.values(O).includes(e?.problemJudge)||"string"==typeof e?.problemJudge&&"string"==typeof e?.problemKey&&Array.isArray(e?.languages)&&"number"==typeof e?.height,it=e=>st(e)&&e?.type===H.QUIZ_OPTIONS&&"string"==typeof e?.description&&Array.isArray(e?.options)&&e?.options.every(e=>"string"==typeof e?.label&&"boolean"==typeof e?.correct&&"string"==typeof e?.id)&&"boolean"==typeof e?.multiple&&("TOTAL"===e?.scoringMode||"PARTIAL"===e?.scoringMode),lt=me(1970,2100),Rt=["January","February","March","April","May","June","July","August","September","October","November","December"],Et=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ut=me(0,24),ct=me(0,60),mt=me(0,60),dt=me(0,1e3),_t={[O.JUKI_JUDGE]:{value:O.JUKI_JUDGE,label:"Juki Judge",logo:"https://images.juki.pub/c/juki-judge-logo-horizontal-color.svg",logoSize:[883.991,435],url:"https://judge.juki.app"},[O.CODEFORCES]:{value:O.CODEFORCES,label:"Codeforces",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://codeforces.com"},[O.CODEFORCES_GYM]:{value:O.CODEFORCES_GYM,label:"Codeforces Gym",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://codeforces.com"},[O.JV_UMSA]:{value:O.JV_UMSA,label:"Juez Virtual UMSA",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://jv.umsa.bo"},[O.UVA_ONLINE_JUDGE]:{value:O.UVA_ONLINE_JUDGE,label:"Uva Online Judge",logo:"https://images.juki.pub/c/uva-online-judge-logo-color.png",logoSize:[150,135.994],url:"https://onlinejudge.org"},[O.AT_CODER]:{value:O.AT_CODER,label:"AtCoder",logo:"https://images.juki.pub/c/at-coder-logo-color.png",logoSize:[762.997,675],url:"https://atcoder.jp"},[O.CODECHEF]:{value:O.CODECHEF,label:"Codechef",logo:"https://images.juki.pub/c/codechef-logo-color.svg",logoSize:[1207.7,453.17],url:"https://www.codechef.com"},[O.TOPCODER]:{value:O.TOPCODER,label:"Topcoder",logo:"https://images.juki.pub/c/topcoder-logo-color.png",logoSize:[971.99,415.99],url:"https://www.topcoder.com"},[O.LEETCODE]:{value:O.LEETCODE,label:"LeetCode",logo:"https://images.juki.pub/assets/leetcode-logo-color.svg",logoSize:[95,111],url:"https://leetcode.com"}};F.TOTAL,F.SUBTASK,F.PARTIAL,B.STANDARD,B.DYNAMIC;const pt=[n.C_11,n.CPP_11,n.CPP_20,n.JAVA_21,n.PYTHON_3,n.PYTHON_PYPY_3,n.JAVASCRIPT_NODE_JS_22,n.PSEUDOCODE_PSEINT],St=[...pt],Tt={[g.NONE]:{value:g.NONE,label:"none",color:"#555555"},[g.PENDING]:{value:g.PENDING,label:"pending",color:"#79B6FD"},[g.HIDDEN]:{value:g.HIDDEN,label:"hidden",color:"#555555"},[g.AC]:{value:g.AC,label:"accepted",color:"#43D787"},[g.PE]:{value:g.PE,label:"presentation error",color:"#55db93"},[g.PA]:{value:g.PA,label:"partial accepted",color:"#55db93"},[g.CE]:{value:g.CE,label:"compilation error",color:"#FE9F9F"},[g.RE]:{value:g.RE,label:"runtime error",color:"#FE9F9F"},[g.TLE]:{value:g.TLE,label:"time limit exceed",color:"#FE9F9F"},[g.MLE]:{value:g.MLE,label:"memory limit exceed",color:"#FE9F9F"},[g.WA]:{value:g.WA,label:"wrong answer",color:"#FE9F9F"}};g.NONE,g.PENDING,g.AC,g.PE,g.PA,g.CE,g.RE,g.TLE,g.MLE,g.WA;const At={[D.NONE]:{value:D.NONE,label:"none"},[D.RECEIVED]:{value:D.RECEIVED,label:"received"},[D.COMPILING]:{value:D.COMPILING,label:"compiling"},[D.COMPILED]:{value:D.COMPILED,label:"compiled"},[D.COMPILATION_ERROR]:{value:D.COMPILATION_ERROR,label:"compilation error"},[D.FETCHING_TEST_CASES]:{value:D.FETCHING_TEST_CASES,label:"fetching test cases"},[D.RUNNING_TEST_CASE]:{value:D.RUNNING_TEST_CASE,label:"running test case"},[D.RUNNING_TEST_CASES]:{value:D.RUNNING_TEST_CASES,label:"running test cases"},[D.RUNNING_SAMPLE_TEST_CASES]:{value:D.RUNNING_SAMPLE_TEST_CASES,label:"running sample cases"},[D.EXECUTED_TEST_CASE]:{value:D.EXECUTED_TEST_CASE,label:"executed test case"},[D.FAILED_TEST_CASE]:{value:D.FAILED_TEST_CASE,label:"failed test case"},[D.JUDGING_TEST_CASE]:{value:D.JUDGING_TEST_CASE,label:"judging test case"},[D.GRADING]:{value:D.GRADING,label:"grading"},[D.FAILED]:{value:D.FAILED,label:"failed"},[D.COMPLETED]:{value:D.COMPLETED,label:"completed"}};P.HIGH_PERFORMANCE,P.HIGH_PERFORMANCE,P.LOW_PERFORMANCE,P.LOW_PERFORMANCE,M.STANDARD,M.STANDARD,M.INTERACTIVE,M.INTERACTIVE,L.STANDARD,L.STANDARD,L.DYNAMIC,L.DYNAMIC,L.INTERACTIVE,L.INTERACTIVE;const It=[F.TOTAL,F.SUBTASK,F.PARTIAL],Ct={[F.TOTAL]:{value:F.TOTAL,label:"total",description:"if all test cases are Accepted the result is Accepted otherwise it will be Runtime Error, Time Limited Exceeded, Memory Limited Exceeded, Wrong Answer or Presentation Error in that order."},[F.SUBTASK]:{value:F.SUBTASK,label:"subtask",description:"the test cases are grouped and each group of test cases is assigned a score, if all test cases in a group are Accepted then the score assigned to that group of test cases is added to total score, if total score is equal to the sum of the assigned scores of all groups of test cases then the result is Accepted, otherwise if the total score is greater than zero the result is Partial Accepted with the total accumulated score, otherwise it will be Runtime Error, Time Limited Exceeded, Memory Limited Exceeded, Wrong Answer or Presentation Error in that order."},[F.PARTIAL]:{value:F.PARTIAL,label:"partial",description:"the test cases are grouped and each group is associated with X points, and each test case in a group scores X points "}};B.STANDARD,B.DYNAMIC,B.INTERACTIVE;const Nt={[B.STANDARD]:{value:B.STANDARD,label:"standard",description:"The contestant submit a single source code in one of the allowed programming languages. The source code is either standalone or to be compiled. The resulting user's executable does I/O standard input and output. The output produced by the contestant's program is then compared to the correct output using a simple diff algorithm."},[B.INTERACTIVE]:{value:B.INTERACTIVE,label:"interactive",description:"developing.."},[B.DYNAMIC]:{value:B.DYNAMIC,label:"dynamic",description:"The contestant submit a single source code in one of the allowed programming languages. The user's source code is either standalone or to be compiled. The resulting user's executable does I/O standard input and output. The output produced by the contestant's program is saved. The problem editor save a single source code in C++ 17. The editor's source code can read judge input filepath argv[1], judge output filepath argv[2], user's output filepath argv[3], user's error filepath argv[4], user's log filepath argv[5], user's source filepath argv[6] and submission information filepath argv[7] (companyId, submitId, runId, userId, contestId, problemId, language, userNickname, timestamp). The resulting editor's executable should be \"AC\" or a number between 1 and 100 for partial accepted"}};W.RESTRICTED,W.RESTRICTED,W.GUEST,W.GUEST,W.REGULAR,W.REGULAR,W.CREATOR,W.CREATOR,W.MANAGER,W.MANAGER,W.MASTER,W.MASTER,W.ADMIN,W.ADMIN,W.SUPER_ADMIN,W.SUPER_ADMIN,N.FILE,N.FILE,N.FOLDER,N.FOLDER,W.RESTRICTED,W.RESTRICTED,W.GUEST,W.GUEST,W.REGULAR,W.REGULAR,W.MASTER,W.MASTER,W.ADMIN,W.ADMIN,W.SUPER_ADMIN,W.SUPER_ADMIN,S.RELEASED,S.RELEASED,S.ARCHIVED,S.ARCHIVED;const ht={[R.PRIVATE]:{value:R.PRIVATE,label:"private",description:"the record will be visible and editable only to the owner"},[R.RESTRICTED]:{value:R.RESTRICTED,label:"restricted",description:"the record will be visible to viewers and the owner and editable to editors and the owner"},[R.PUBLIC]:{value:R.PUBLIC,label:"public",description:"the record will be visible to anyone and editable to editors and the owner"},[R.EXPOSED]:{value:R.EXPOSED,label:"exposed",description:"the record will be visible and editable to anyone"}},ft=1e3,Ot=6e4,gt={users:{create:!1,manage:!1,administrate:!1},problems:{create:!1,manage:!1},submissions:{manage:!1},contests:{create:!1,manage:!1},company:{manage:!1,administrate:!1},services:{administrate:!1}},Dt="pub:subscriptions",Pt="sub:notifications",bt=e=>`sub:client:${e}`,vt="pub:messages",Ut="pre:client";var yt,Mt;!function(e){e.UNMET_PREREQUISITES="UNMET_PREREQUISITES",e.MAX_ACCEPTED_SUBMISSIONS_ACHIEVED="MAX_ACCEPTED_SUBMISSIONS_ACHIEVED",e.START_TIME_IN_THE_FUTURE="START_TIME_IN_THE_FUTURE",e.END_TIME_IN_THE_PAST="END_TIME_IN_THE_PAST"}(yt||(yt={})),function(e){e.USER="USER",e.TEAM="TEAM"}(Mt||(Mt={}));const Lt=import.meta.env,Bt=("undefined"!=typeof process?process.env.NEXT_PUBLIC_JUKI_SERVICE_V2_URL:void 0)||Lt?.VITE_JUKI_SERVICE_V2_URL||"",Ft=("undefined"!=typeof process?process.env.NEXT_PUBLIC_JUKI_TOKEN_NAME:void 0)||Lt?.VITE_JUKI_TOKEN_NAME||"",xt=("undefined"!=typeof process?process.env.NODE_ENV:void 0)||"development",Gt=+(("undefined"!=typeof process?process.env.NEXT_PUBLIC_ABLY_LOG_LEVEL:void 0)||Lt?.VITE_ABLY_LOG_LEVEL||0)||void 0,wt={revalidateOnFocus:!1,revalidateOnReconnect:!0,revalidateIfStale:!0,focusThrottleInterval:5e3,dedupingInterval:5e3};export{Me as $,Gt as A,Nt as B,n as C,Et as D,gt as E,Ct as F,se as G,w as H,F as I,Bt as J,Re as K,v as L,k as M,xt as N,ne as O,s as P,V as Q,pt as R,i as S,U as T,qe as U,ve as V,H as W,Ue as X,ze as Y,J as Z,ye as _,at as a,Le as a0,Be as a1,Je as a2,Ye as a3,Fe as a4,xe as a5,Ge as a6,we as a7,Te as a8,He as a9,Xe as aA,_t as aB,It as aC,B as aD,Ce as aE,p as aF,Mt as aG,R as aH,ht as aI,K as aJ,$e as aK,Dt as aL,vt as aM,Pt as aN,Ut as aO,bt as aP,Ie as aQ,Ve as aa,Ke as ab,je as ac,j as ad,Ae as ae,St as af,D as ag,b as ah,We as ai,he as aj,ft as ak,At as al,fe as am,g as an,ce as ao,Ne as ap,oe as aq,lt as ar,ut as as,ct as at,mt as au,dt as av,Qe as aw,Ot as ax,O as ay,Tt as az,Y as b,de as c,Ft as d,wt as e,_e as f,Ze as g,et as h,Ee as i,nt as j,ot as k,it as l,rt as m,tt as n,Rt as o,re as p,ie as q,x as r,Se as s,ge as t,Pe as u,a as v,pe as w,ue as x,De as y,le as z};
|
|
1
|
+
const e=[];for(let t=0;t<256;++t)e.push((t+256).toString(16).slice(1));const t=new Uint8Array(16);function a(a,s,o){return crypto.randomUUID?crypto.randomUUID():function(a){a=a||{};const s=a.random??a.rng?.()??crypto.getRandomValues(t);if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=15&s[6]|64,s[8]=63&s[8]|128,function(t,a=0){return(e[t[a+0]]+e[t[a+1]]+e[t[a+2]]+e[t[a+3]]+"-"+e[t[a+4]]+e[t[a+5]]+"-"+e[t[a+6]]+e[t[a+7]]+"-"+e[t[a+8]]+e[t[a+9]]+"-"+e[t[a+10]]+e[t[a+11]]+e[t[a+12]]+e[t[a+13]]+e[t[a+14]]+e[t[a+15]]).toLowerCase()}(s)}(a)}var s,o,n,r,i,l,R,E,u,c,m,d,_,p,S,T,A,I,C,N,h,f,O,g,D,P,b;!function(e){e.NEWSLETTER_SUBSCRIPTION="newsletterSubscription",e.LANGUAGE="preferredLanguage",e.THEME="preferredTheme",e.DATA_VIEW_MODE="preferredDataViewMode",e.MENU_VIEW_MODE="preferredMenuViewMode",e.TIME_ZONE="preferredTimeZone",e.FONT_SIZE="preferredFontSize"}(s||(s={})),function(e){e.NONE="NONE",e.COURSE="COURSE",e.WORKSHEET="WORKSHEET",e.CONTEST="CONTEST"}(o||(o={})),function(e){e.C_11="c11",e.CPP_11="cpp11",e.CPP_20="cpp20",e.JAVA_21="java21",e.PYTHON_3="python3",e.PYTHON_PYPY_3="pypy3",e.JAVASCRIPT_NODE_JS_22="nodejs22",e.PYTHON_2="python2",e.PYTHON_PYPY_2="pypy2",e.ICPC_C="ICPC_C",e.C="C",e.CPP="CPP",e.ICPC_CPP="ICPC_CPP",e.CPP11="CPP11",e.CPP14="CPP14",e.CPP17="CPP17",e.JAVA="JAVA",e.ICPC_PYTHON="ICPC_PYTHON",e.PYTHON="PYTHON",e.PYTHON2="PYTHON2",e.PYTHON3="PYTHON3",e.JAVASCRIPT="JAVASCRIPT",e.TYPESCRIPT="TYPESCRIPT",e.JSX="JSX",e.TSX="TSX",e.MDX="MDX",e.PSEUDOCODE_PSEINT="PSEUDOCODE_PSEINT",e.LATEX="LATEX",e.JSON="JSON",e.HTML="HTML",e.TEXT="TEXT",e.DIFF="DIFF",e.MARKDOWN="MARKDOWN",e.ARDUINO="ARDUINO",e.DOT="DOT",e.MERMAID="MERMAID",e.BASH="BASH"}(n||(n={})),function(e){e.USER="USER",e.PROBLEM="PROBLEM",e.CONTEST="CONTEST",e.ATTEMPT="ATTEMPT"}(r||(r={})),function(e){e.SUCCESS="SUCCESS",e.ERROR="ERROR",e.LOADING="LOADING",e.NONE="NONE"}(i||(i={})),function(e){e.PUBLIC="PUBLIC",e.RESERVED="RESERVED",e.PRIVATE="PRIVATE",e.ARCHIVED="ARCHIVED"}(l||(l={})),function(e){e.PRIVATE="PRIVATE",e.RESTRICTED="RESTRICTED",e.PUBLIC="PUBLIC",e.EXPOSED="EXPOSED"}(R||(R={})),function(e){e.FREE="FREE",e.STANDARD="STANDARD",e.PREMIUM="PREMIUM",e.CUSTOM="CUSTOM"}(E||(E={})),function(e){e.HORIZONTAL_WHITE="horizontal-white",e.HORIZONTAL_COLOR="horizontal-color",e.VERTICAL_WHITE="vertical-white",e.VERTICAL_COLOR="vertical-color"}(u||(u={})),function(e){e.PUBLIC="PUBLIC",e.RESERVED="RESERVED",e.ARCHIVED="ARCHIVED"}(c||(c={})),function(e){e.UPCOMING="upcoming",e.LIVE="live",e.PAST="past"}(m||(m={})),function(e){e.INDIVIDUALLY="INDIVIDUALLY",e.CONTEST="CONTEST"}(d||(d={})),function(e){e.DATA_UPDATE="DATA_UPDATE",e.SCOREBOARD_RECALCULATE="SCOREBOARD_RECALCULATE",e.SCOREBOARD_UNLOCK="SCOREBOARD_UNLOCK",e.SCOREBOARD_LOCK="SCOREBOARD_LOCK",e.ENABLE_UPSOLVING="ENABLE_UPSOLVING",e.DISABLE_UPSOLVING="DISABLE_UPSOLVING",e.PARTICIPANT_JOIN="PARTICIPANT_JOIN"}(_||(_={})),function(e){e.NONE="NONE",e.CLOSE="CLOSE",e.OPEN="OPEN"}(p||(p={})),function(e){e.RELEASED="RELEASED",e.ARCHIVED="ARCHIVED"}(S||(S={})),function(e){e.COMPANY="COMPANY",e.PROBLEM="PROBLEM",e.CONTEST="CONTEST",e.JUDGE="JUDGE",e.USER="USER",e.SUBMISSION="SUBMISSION"}(T||(T={})),function(e){e.COMPANY="C",e.USER="U",e.PROBLEM="P",e.CLASS="K",e.CLASS_ASSIGNMENT="KA",e.CONTEST="T",e.SCOREBOARD="B",e.SCOREBOARD_EVENTS="BE",e.COURSE="R",e.FILE="F",e.GROUP="G",e.JUDGE="J",e.WORKSHEET="W",e.WORKSHEET_SUBMISSIONS="WS",e.SUBMIT="S",e.LOCALE="L",e.COMMENT="M",e.EXCALIDRAW="E",e.MARKDOWN="MD",e.DOCUMENT_TEMPLATE="DT",e.MERMAID="MM"}(A||(A={})),function(e){e.REMOVE="REMOVE",e.ADD="ADD",e.UPDATE="UPDATE"}(I||(I={})),function(e){e.VIEWER="VIEWER",e.EDITOR="EDITOR"}(C||(C={})),function(e){e.FOLDER="FOLDER",e.FILE="FILE"}(N||(N={})),function(e){e.SHARED="shared",e.SHARED_EXCALIDRAW="shared/E",e.TEMP="temp",e.PROBLEMS="problems",e.CONTESTS="contests"}(h||(h={})),function(e){e.CLASS="CLASS",e.TEAM="TEAM"}(f||(f={})),function(e){e.JUKI_JUDGE="JUKI_JUDGE",e.CODEFORCES="CODEFORCES",e.CODEFORCES_GYM="CODEFORCES_GYM",e.JV_UMSA="JV_UMSA",e.UVA_ONLINE_JUDGE="UVA_ONLINE_JUDGE",e.AT_CODER="AT_CODER",e.CODECHEF="CODECHEF",e.TOPCODER="TOPCODER",e.LEETCODE="LEETCODE"}(O||(O={})),function(e){e.NONE="NONE",e.PENDING="PENDING",e.HIDDEN="HIDDEN",e.CE="CE",e.RE="RE",e.TLE="TLE",e.MLE="MLE",e.WA="WA",e.PE="PE",e.PA="PA",e.AC="AC"}(g||(g={})),function(e){e.NONE="NONE",e.RECEIVED="RECEIVED",e.COMPILING="COMPILING",e.COMPILED="COMPILED",e.COMPILATION_ERROR="COMPILATION_ERROR",e.FETCHING_TEST_CASES="FETCHING_TEST_CASES",e.RUNNING_TEST_CASE="RUNNING_TEST_CASE",e.RUNNING_TEST_CASES="RUNNING_TEST_CASES",e.RUNNING_SAMPLE_TEST_CASES="RUNNING_SAMPLE_TEST_CASES",e.EXECUTED_TEST_CASE="EXECUTED_TEST_CASE",e.FAILED_TEST_CASE="FAILED_TEST_CASE",e.JUDGING_TEST_CASE="JUDGING_TEST_CASE",e.GRADING="GRADING",e.FAILED="FAILED",e.COMPLETED="COMPLETED"}(D||(D={})),function(e){e.HIGH_PERFORMANCE="HIGH_PERFORMANCE",e.LOW_PERFORMANCE="LOW_PERFORMANCE"}(P||(P={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.ERROR="error",e.QUIET="quiet"}(b||(b={}));const v={ES:"ES",EN:"EN"},U={LIGHT:"LIGHT",DARK:"DARK"};var y,M,L,B,F,x,G,w,H,V,K,j,J,Y,k,W,X,z;!function(e){e.INPUT="INPUT",e.OUTPUT="OUTPUT"}(y||(y={})),function(e){e.STANDARD="STANDARD",e.INTERACTIVE="INTERACTIVE"}(M||(M={})),function(e){e.STANDARD="STANDARD",e.DYNAMIC="DYNAMIC",e.INTERACTIVE="INTERACTIVE"}(L||(L={})),function(e){e.STANDARD="STANDARD",e.DYNAMIC="DYNAMIC",e.INTERACTIVE="INTERACTIVE"}(B||(B={})),function(e){e.SUBTASK="SUBTASK",e.TOTAL="TOTAL",e.PARTIAL="PARTIAL"}(F||(F={})),function(e){e.ERR400="ERR400",e.ERR401="ERR401",e.ERR403="ERR403",e.ERR404="ERR404",e.ERR405="ERR405",e.ERR500="ERR500",e.ERR9997="ERR9997",e.ERR9998="ERR9998",e.ERR9999="ERR9999",e.ERR0000="ERR0000",e.ERR0010="ERR0010",e.ERR0011="ERR0011",e.ERR0012="ERR0012",e.ERR0013="ERR0013",e.ERR0014="ERR0014",e.ERR0015="ERR0015",e.ERR0016="ERR0016",e.ERR0017="ERR0017",e.ERR0018="ERR0018",e.ERR0019="ERR0019",e.ERR0020="ERR0020",e.ERR0021="ERR0021",e.ERR0022="ERR0022",e.ERR0023="ERR0023",e.ERR0024="ERR0024",e.ERR0050="ERR0050",e.ERR0051="ERR0051",e.ERR0052="ERR0052",e.ERR0053="ERR0053",e.ERR0100="ERR0100",e.ERR0110="ERR0110",e.ERR0111="ERR0111",e.ERR0112=" ERR0112",e.ERR0113="ERR0113",e.ERR0114="ERR0114",e.ERR0115="ERR0115",e.ERR0116="ERR0116",e.ERR0117="ERR0117",e.ERR0118="ERR0118",e.ERR0119="ERR0119",e.ERR0120="ERR0120",e.ERR0121="ERR0121",e.ERR0122="ERR0122",e.ERR0200="ERR0200",e.ERR0210="ERR0210",e.ERR0211="ERR0211",e.ERR0212="ERR0212",e.ERR0213="ERR0213",e.ERR0214="ERR0214",e.ERR0215="ERR0215",e.ERR0216="ERR0216",e.ERR0217="ERR0217",e.ERR0218="ERR0218",e.ERR0219="ERR0219",e.ERR0220="ERR0220",e.ERR0230="ERR0230",e.ERR0231="ERR0231",e.ERR0232="ERR0232",e.ERR0233="ERR0233",e.ERR0234="ERR0234",e.ERR0235="ERR0235",e.ERR0236="ERR0236",e.ERR0237="ERR0237",e.ERR0240="ERR0240",e.ERR0241="ERR0241",e.ERR0242="ERR0242",e.ERR0243="ERR0243",e.ERR0244="ERR0244",e.ERR0245="ERR0245",e.ERR0246="ERR0246",e.ERR0247="ERR0247",e.ERR0300="ERR0300",e.ERR0301="ERR0301",e.ERR0302="ERR0302",e.ERR0303="ERR0303",e.ERR0310="ERR0310",e.ERR0311="ERR0311",e.ERR0321="ERR0321",e.ERR0331="ERR0331",e.ERR0400="ERR0400",e.ERR0410="ERR0410",e.ERR0420="ERR0420",e.ERR0421="ERR0421",e.ERR0430="ERR0430",e.ERR0440="ERR0440",e.ERR0600="ERR0600",e.ERR0610="ERR0610",e.ERR0611="ERR0611",e.ERR0612="ERR0612",e.ERR0613="ERR0613",e.ERR0614="ERR0614",e.ERR0615="ERR0615",e.ERR0616="ERR0665",e.ERR0617="ERR0617",e.ERR0618="ERR0618",e.ERR0619="ERR0619",e.ERR0800="ERR0800",e.ERR0810="ERR0810",e.ERR0811="ERR0811",e.ERR0812="ERR0812",e.ERR0813="ERR0813",e.ERR0814="ERR0814",e.ERR0815="ERR0815",e.ERR0816="ERR0865",e.ERR0817="ERR0817",e.ERR0818="ERR0818",e.ERR0819="ERR0819",e.ERR0820="ERR0820",e.ERR9900="ERR9900",e.ERR9910="ERR9910",e.ERR9911="ERR9911",e.ERR9912="ERR9912",e.ERR9913="ERR9913",e.ERR9914="ERR9914",e.ERR9915="ERR9915",e.ERR9916="ERR9916",e.ERR9917="ERR9917"}(x||(x={})),function(e){e.FATAL="FATAL",e.ERROR="ERROR",e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.TRACE="TRACE"}(G||(G={})),function(e){e.POST="POST",e.GET="GET",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE"}(w||(w={})),function(e){e.JK_MD="JK_MD",e.CODE_EDITOR="CODE_EDITOR",e.LIST="LIST",e.GRAPH="GRAPH",e.QUIZ_PROBLEM="QUIZ_PROBLEM",e.QUIZ_TEXT="QUIZ_TEXT",e.QUIZ_OPTIONS="QUIZ_OPTIONS",e.NEW_PAGE="NEW_PAGE"}(H||(H={})),function(e){e.TOTAL="TOTAL",e.PARTIAL="PARTIAL"}(V||(V={})),function(e){e.PING="PING",e.CLIENT_TRACK_LOCATION="CLIENT_TRACK_LOCATION",e.CLIENT_TRACK_SCREENSHOT="CLIENT_TRACK_SCREENSHOT",e.CLIENT_TRACK_DEVICE="CLIENT_TRACK_DEVICE",e.CHAT_COMPLETIONS="CHAT_COMPLETIONS"}(K||(K={})),function(e){e.SUBSCRIBE_CODE_RUN_STATUS="SUBSCRIBE_CODE_RUN_STATUS",e.UNSUBSCRIBE_CODE_RUN_STATUS="UNSUBSCRIBE_CODE_RUN_STATUS",e.SUBSCRIBE_SUBMISSION_RUN_STATUS="SUBSCRIBE_SUBMISSION_RUN_STATUS",e.UNSUBSCRIBE_SUBMISSION_RUN_STATUS="UNSUBSCRIBE_SUBMISSION_RUN_STATUS",e.SUBSCRIBE_GET_DATA="SUBSCRIBE_GET_DATA",e.UNSUBSCRIBE_GET_DATA="SUBSCRIBE_GET_DATA",e.SUBSCRIBE_PROBLEM_CRAWLED="SUBSCRIBE_PROBLEM_CRAWLED",e.UNSUBSCRIBE_PROBLEM_CRAWLED="UNSUBSCRIBE_PROBLEM_CRAWLED",e.SUBSCRIBE_SUBMISSIONS_CRAWL="SUBSCRIBE_SUBMISSIONS_CRAWL",e.UNSUBSCRIBE_SUBMISSIONS_CRAWL="UNSUBSCRIBE_SUBMISSIONS_CRAWL",e.SUBSCRIBE_CONTEST_CHANGES="SUBSCRIBE_CONTEST_CHANGES",e.UNSUBSCRIBE_CONTEST_CHANGES="UNSUBSCRIBE_CONTEST_CHANGES",e.SUBSCRIBE_CLIENT_TRACK="SUBSCRIBE_CLIENT_TRACK",e.UNSUBSCRIBE_CLIENT_TRACK="UNSUBSCRIBE_CLIENT_TRACK",e.SUBSCRIBE_USER_NOTIFICATION="SUBSCRIBE_USER_NOTIFICATION",e.UNSUBSCRIBE_USER_NOTIFICATION="UNSUBSCRIBE_USER_NOTIFICATION"}(j||(j={})),function(e){e.PONG="PONG",e.CODE_RUN_STATUS="CODE_RUN_STATUS",e.SUBMISSION_RUN_STATUS="SUBMISSION_RUN_STATUS",e.USER_MESSAGE="USER_MESSAGE",e.SEND_DATA_="SEND_DATA_",e.SEND_DATA_ECS_TASK_DEFINITIONS_LIST="SEND_DATA_ECS_TASK_DEFINITIONS_LIST",e.SEND_DATA_ECS_TASKS_LIST="SEND_DATA_ECS_TASKS_LIST",e.SEND_DATA_EC2_INSTANCES_LIST="SEND_DATA_EC2_INSTANCES_LIST",e.SEND_DATA_SSM_SESSIONS_LIST="SEND_DATA_SSM_SESSIONS_LIST",e.SEND_DATA_RUN_COMMAND="SEND_DATA_RUN_COMMAND",e.SEND_DATA_CLIENT_TRACK="SEND_DATA_CLIENT_TRACK",e.SEND_DATA_CHAT_COMPLETIONS="SEND_DATA_CHAT_COMPLETIONS",e.PROBLEM_CRAWLED="PROBLEM_CRAWLED",e.SUBMISSIONS_CRAWL="SUBMISSIONS_CRAWL",e.CONTEST_CHANGES="CONTEST_CHANGES",e.CLIENT_TRACK="CLIENT_TRACK",e.USER_NOTIFICATION_="USER_NOTIFICATION_",e.USER_NOTIFICATION_SUBMISSION="USER_NOTIFICATION_SUBMISSION",e.USER_NOTIFICATION_CONTEST_CLARIFICATION="USER_NOTIFICATION_CONTEST_CLARIFICATION"}(J||(J={})),function(e){e.CARDS="CARDS",e.ROWS="ROWS"}(Y||(Y={})),function(e){e.HORIZONTAL="HORIZONTAL",e.VERTICAL="VERTICAL"}(k||(k={})),function(e){e.SUPER_ADMIN="SUPER_ADMIN",e.ADMIN="ADMIN",e.MASTER="MASTER",e.MANAGER="MANAGER",e.CREATOR="CREATOR",e.REGULAR="REGULAR",e.LIMITED="LIMITED",e.GUEST="GUEST",e.RESTRICTED="RESTRICTED"}(W||(W={})),function(e){e.NOTHING="NOTHING",e.SEND_SUBMISSION="SEND_SUBMISSION",e.TRACKING_SUBMISSION="TRACKING_SUBMISSION",e.CRAWLING_LANGUAGES="CRAWLING_LANGUAGES",e.CRAWLING_PROBLEM_DATA="CRAWLING_PROBLEM_DATA"}(X||(X={})),function(e){e.RATIO_21_9="21:9",e.RATIO_20_9="20:9",e.RATIO_16_9="16:9",e.RATIO_16_10="16:10",e.RATIO_3_2="3:2",e.RATIO_4_3="4:3",e.RATIO_5_4="5:4",e.RATIO_1_1="1:1"}(z||(z={}));const q="javac 17.0.15",Z="v20.19.2",Q="Python 3.11.2",$="Python 3.9.16 (7.3.11+dfsg-2+deb12u3, Dec 30 2024, 22:36:23)\n[PyPy 7.3.11 with GCC 12.2.0]",ee={mime:"text/x-csrc",mainFilename:"main.c",fileExtension:["c"],hasBuildFile:!0,executable:"gcc",executableVersion:"gcc (Debian 12.2.0-14+deb12u1) 12.2.0\nCopyright (C) 2022 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.",templateSourceCode:'#include <stdio.h>\n \nint main(void) {\n \n printf("Hello World\\n");\n \n return 0;\n}',monacoKey:"c",codeMirrorKey:"c",highlightJsKey:"c"},te={mime:"text/x-c++src",mainFilename:"main.cpp",fileExtension:["cpp","c++","cxx","cc"],hasBuildFile:!0,executable:"g++",executableVersion:"g++ (Debian 12.2.0-14+deb12u1) 12.2.0\nCopyright (C) 2022 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.",templateSourceCode:'#include <iostream>\n\nusing namespace std;\n\nint main() {\n \n cout << "Hello World" << endl;\n \n return 0;\n}',monacoKey:"cpp",codeMirrorKey:"cpp",highlightJsKey:"cpp"},ae={mime:"text/x-python",mainFilename:"main.py",fileExtension:["py"],hasBuildFile:!1,templateSourceCode:'print("Hello World\\n")',monacoKey:"python",codeMirrorKey:"python",highlightJsKey:"python"},se={[n.C_11]:{value:n.C_11,label:"C 11",compilePattern:"/usr/bin/jk-c11 -static -fno-optimize-sibling-calls -fno-strict-aliasing -DONLINE_JUDGE -fno-asm -lm -s -O2 -std=gnu11 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ee},[n.CPP_11]:{value:n.CPP_11,label:"C++ 11",compilePattern:"/usr/bin/jk-cpp11 -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=gnu++11 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.CPP_20]:{value:n.CPP_20,label:"C++ 20",compilePattern:"/usr/bin/jk-cpp20 -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=gnu++20 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.JAVA_21]:{value:n.JAVA_21,label:"Java 21",mime:"text/x-java",mainFilename:"Main.java",fileExtension:["java"],compilePattern:"/usr/bin/jk-javac -cp '.;*' {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-java -Xmx512M -Xss64M -DONLINE_JUDGE=true -Duser.language=en -Duser.region=US -Duser.variant=US -cp {{folder_path}} {{class_name}}",templateSourceCode:'class Main {\n public static void main (String[] args) {\n \n System.out.println("Hello World");\n \n }\n}',hasBuildFile:!0,executable:"java",executableVersion:q,monacoKey:"java",codeMirrorKey:"java",highlightJsKey:"java"},[n.PYTHON_2]:{value:n.PYTHON_2,label:"Python 2 *",compilePattern:"/usr/bin/jk-python2 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-python2 {{folder_path}}/{{source_full_file_name}}",executable:"python2",executableVersion:$,...ae},[n.PYTHON_3]:{value:n.PYTHON_3,label:"Python 3",compilePattern:"/usr/bin/jk-python3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-python3 {{folder_path}}/{{source_full_file_name}}",executable:"python3",executableVersion:$,...ae},[n.PYTHON_PYPY_2]:{value:n.PYTHON_PYPY_2,label:"PyPy 2 *",compilePattern:"/usr/bin/jk-pypy2 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-pypy2 {{folder_path}}/{{source_full_file_name}}",executable:"pypy2",executableVersion:$,...ae},[n.PYTHON_PYPY_3]:{value:n.PYTHON_PYPY_3,label:"PyPy 3",compilePattern:"/usr/bin/jk-pypy3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/jk-pypy3 {{folder_path}}/{{source_full_file_name}}",executable:"pypy3",executableVersion:$,...ae},[n.JAVASCRIPT_NODE_JS_22]:{value:n.JAVASCRIPT_NODE_JS_22,label:"Javascript Node.js 22",mime:"application/x-javascript",mainFilename:"main.js",fileExtension:["js"],compilePattern:"",runPattern:"/usr/bin/jk-node22 {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Z,monacoKey:"javascript",codeMirrorKey:"javascript",highlightJsKey:"javascript"},[n.ICPC_C]:{value:n.ICPC_C,label:"ICPC C *",compilePattern:"gcc -x c -g -O2 -std=gnu11 -static -lm -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ee},[n.C]:{value:n.C,label:"C *",compilePattern:"gcc -static -fno-optimize-sibling-calls -fno-strict-aliasing -DONLINE_JUDGE -fno-asm -lm -s -O2 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...ee},[n.ICPC_CPP]:{value:n.ICPC_CPP,label:"ICPC C++ *",compilePattern:"g++ -x c++ -static -g -O2 -std=gnu++20 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.CPP]:{value:n.CPP,label:"C++ *",compilePattern:"g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.CPP11]:{value:n.CPP11,label:"C++ 11 *",compilePattern:"g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=c++11 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.CPP14]:{value:n.CPP14,label:"C++ 14 *",compilePattern:"g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=c++14 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.CPP17]:{value:n.CPP17,label:"C++ 17 *",compilePattern:"g++ -x c++ -static -DONLINE_JUDGE -lm -s -O2 -std=c++17 -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}",runPattern:"{{folder_path}}/{{compiled_file_name}}",...te},[n.JAVA]:{value:n.JAVA,label:"Java *",mime:"text/x-java",mainFilename:"Main.java",fileExtension:["java"],compilePattern:"javac -cp '.;*' {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/lib/jvm/java-17-openjdk-amd64/bin/java -Xmx512M -Xss64M -DONLINE_JUDGE=true -Duser.language=en -Duser.region=US -Duser.variant=US -cp {{folder_path}} {{class_name}}",templateSourceCode:'class Main {\n public static void main (String[] args) {\n \n System.out.println("Hello World");\n \n }\n}',hasBuildFile:!0,executable:"javac",executableVersion:q,monacoKey:"java",codeMirrorKey:"java",highlightJsKey:"java"},[n.ICPC_PYTHON]:{value:n.ICPC_PYTHON,label:"ICPC Python *",compilePattern:"pypy3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/pypy3 {{folder_path}}/{{source_full_file_name}}",executable:"pypy3",executableVersion:$,...ae},[n.PYTHON]:{value:n.PYTHON,label:"Python *",compilePattern:"python3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/python3 {{folder_path}}/{{source_full_file_name}}",executable:"python3",executableVersion:Q,...ae},[n.PYTHON2]:{value:n.PYTHON2,label:"Python 2 *",compilePattern:"python2 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/python2 {{folder_path}}/{{source_full_file_name}}",executable:"python",executableVersion:"Python 2.7.18",...ae},[n.PYTHON3]:{value:n.PYTHON3,label:"Python 3 *",compilePattern:"python3 -m py_compile {{folder_path}}/{{source_full_file_name}}",runPattern:"/usr/bin/python3 {{folder_path}}/{{source_full_file_name}}",executable:"python3",executableVersion:Q,...ae},[n.JAVASCRIPT]:{value:n.JAVASCRIPT,label:"Javascript *",mime:"application/x-javascript",mainFilename:"main.js",fileExtension:["js"],compilePattern:"",runPattern:"/usr/bin/node {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Z,monacoKey:"javascript",codeMirrorKey:"javascript",highlightJsKey:"javascript"},[n.TYPESCRIPT]:{value:n.TYPESCRIPT,label:"Typescript *",mime:"application/x-typescript",mainFilename:"main.ts",fileExtension:["ts"],compilePattern:"",runPattern:"/usr/bin/node {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Z,monacoKey:"typescript",codeMirrorKey:"typescript",highlightJsKey:"typescript"},[n.TSX]:{value:n.TSX,label:"TSX *",mime:"application/x-typescript",mainFilename:"main.tsx",fileExtension:["tsx"],compilePattern:"",runPattern:"/usr/bin/node {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Z,monacoKey:"typescript",codeMirrorKey:"typescript",highlightJsKey:"typescript"},[n.JSX]:{value:n.JSX,label:"JSX *",mime:"application/x-javascript",mainFilename:"main.jsx",fileExtension:["jsx"],compilePattern:"",runPattern:"/usr/bin/node {{folder_path}}/{{source_full_file_name}}",templateSourceCode:'console.log("Hello World\\n")',hasBuildFile:!1,executable:"node",executableVersion:Z,monacoKey:"javascript",codeMirrorKey:"javascript",highlightJsKey:"javascript"},[n.PSEUDOCODE_PSEINT]:{value:n.PSEUDOCODE_PSEINT,label:"Pseudo-código (PSeInt)",mime:"text/plain",mainFilename:"main.psc",fileExtension:["psc"],compilePattern:"jk-pseint {{folder_path}}/{{source_full_file_name}} --norun --nouser && jk-pseint {{folder_path}}/{{source_full_file_name}} --draw {{folder_path}}/{{source_full_file_name}}.psd && jk-psexport {{folder_path}}/{{source_full_file_name}}.psd {{folder_path}}/{{source_full_file_name}}.cpp --lang=cpp && g++ -x c++ -g -O2 -std=gnu++20 -static -o {{folder_path}}/{{compiled_file_name}} {{folder_path}}/{{source_full_file_name}}.cpp",runPattern:"{{folder_path}}/{{compiled_file_name}}",templateSourceCode:'Algoritmo HOLA_MUNDO\n\tImprimir "Hello World"\nFinAlgoritmo\n',hasBuildFile:!1,executable:"",executableVersion:"PSeInt 20230904-l64-wx3\nhttp://pseint.sourceforge.net\nby Pablo Novara (zaskar_84@yahoo.com.ar)\npsExport 20230904-l64-wx3\nhttp://pseint.sourceforge.net\nby Pablo Novara (zaskar_84@yahoo.com.ar)",monacoKey:"text",codeMirrorKey:"pseudocode-pseint",highlightJsKey:"plaintext"},[n.DOT]:{value:n.DOT,label:"DOT",mime:"text/vnd.graphviz",mainFilename:"diagram.dot",fileExtension:["dot"],compilePattern:"",runPattern:"",templateSourceCode:"digraph G {\n A -> B;\n B -> C;\n}",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"dot",codeMirrorKey:"dot",highlightJsKey:"plaintext"},[n.MERMAID]:{value:n.MERMAID,label:"Mermaid",mime:"text/mermaid",mainFilename:"diagram.mmd",fileExtension:["mmd","mermaid"],compilePattern:"",runPattern:"",templateSourceCode:"graph TD\n A[Start] --\x3e B{Is it working?}\n B -- Yes --\x3e C[Great!]\n B -- No --\x3e D[Fix it]\n D --\x3e B\n",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"mermaid",codeMirrorKey:"mermaid",highlightJsKey:"plaintext"},[n.JSON]:{value:n.JSON,label:"JSON",mime:"application/json",mainFilename:"main.json",fileExtension:["json"],compilePattern:"",runPattern:"",templateSourceCode:"{\n \n}",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"json",codeMirrorKey:"javascript",highlightJsKey:"json"},[n.TEXT]:{value:n.TEXT,label:"plain text",mime:"text/plain",mainFilename:"main.txt",fileExtension:["txt","text","in","out"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"text",codeMirrorKey:"text",highlightJsKey:"plaintext"},[n.DIFF]:{value:n.DIFF,label:"diff",mime:"text/plain",mainFilename:"main.patch",fileExtension:["diff","patch"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"diff",codeMirrorKey:"diff",highlightJsKey:"diff"},[n.LATEX]:{value:n.LATEX,label:"LaTeX",mime:"application/x-latex",mainFilename:"main.tex",fileExtension:["tex"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"latex",codeMirrorKey:"stex",highlightJsKey:"latex"},[n.MARKDOWN]:{value:n.MARKDOWN,label:"Markdown",mime:"text/plain",mainFilename:"main.md",fileExtension:["md"],compilePattern:"",runPattern:"",templateSourceCode:"# Hello World\n",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"markdown",codeMirrorKey:"markdown",highlightJsKey:"markdown"},[n.MDX]:{value:n.MDX,label:"MDX",mime:"text/plain",mainFilename:"main.mdx",fileExtension:["mdx"],compilePattern:"",runPattern:"",templateSourceCode:"# Hello World\n",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"markdown",codeMirrorKey:"markdown",highlightJsKey:"markdown"},[n.ARDUINO]:{value:n.ARDUINO,label:"Arduino",mime:"text/plain",mainFilename:"main.c",fileExtension:["c","cpp","pde","h","ino"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"c",codeMirrorKey:"c",highlightJsKey:"c"},[n.HTML]:{value:n.HTML,label:"HTML",mime:"text/HTML",mainFilename:"index.html",fileExtension:["html"],compilePattern:"",runPattern:"",templateSourceCode:"",hasBuildFile:!1,executable:"",executableVersion:"",monacoKey:"html",codeMirrorKey:"html",highlightJsKey:"xml"},[n.BASH]:{value:n.BASH,label:"Bash",mime:"text/plain",mainFilename:"main.sh",fileExtension:["sh","bash"],compilePattern:"",runPattern:"",templateSourceCode:'#!/bin/bash\necho "Hello World"\n',hasBuildFile:!1,executable:"bash",executableVersion:"",monacoKey:"shell",codeMirrorKey:"shell",highlightJsKey:"bash"}},oe={VIVOS:[{color:"#FF0000",title:"Rojo"},{color:"#FF5900",title:"Rojo - Naranja"},{color:"#FF8600",title:"Naranja"},{color:"#FFBF00",title:"Ámbar"},{color:"#FFFF00",title:"Amarillo"},{color:"#A6FF00",title:"Lima o Verde limon"},{color:"#00FF8C",title:"Verde puro"},{color:"#00FF8C",title:"Verde cian"},{color:"#00FFFF",title:"Cian"},{color:"#0099FF",title:"Cerúleo o Azur"},{color:"#0000FF",title:"Azul"},{color:"#9F00FF",title:"Violeta"},{color:"#FF00FF",title:"Magenta"},{color:"#FF0099",title:"Fucsia"}],OSCUROS:[{color:"#880000",title:"Granate"},{color:"#882F00",title:"Caoba o Rojo indio"},{color:"#884700",title:"Marrón o Pardo"},{color:"#886600",title:"Marrón dorado"},{color:"#888800",title:"Oliva"},{color:"#588800",title:"Verde palta"},{color:"#008800",title:"Verde estándar"},{color:"#008858",title:"Esmeralda"},{color:"#008888",title:"Cerceta o Azul verde"},{color:"#005288",title:"Añil"},{color:"#000080",title:"Azul marino"},{color:"#880088",title:"Azul púrpura"},{color:"#880088",title:"Púrpura o Morado"},{color:"#880047",title:"Vino"}],AGRISADOS:[{color:"#BF4040",title:"Lacre"},{color:"#BF6340",title:"Cobre"},{color:"#BF8340",title:"Cnalea o Ocre"},{color:"#BF9F40",title:"Dorado"},{color:"#BFBF40",title:"Chartreuse"},{color:"#93BF40",title:"Verde manzana"},{color:"#93BF40",title:"Verde bosque"},{color:"#40BF40",title:"Verde mar"},{color:"#40BFBF",title:"Turquesa"},{color:"#408CBF",title:"Azul acero"},{color:"#4040BF",title:"Zafiro"},{color:"#9340BF",title:"Amastista"},{color:"#B140BF",title:"Púrpureo"},{color:"#B140BF",title:"Fandango"}],CLAROS:[{color:"#FF7777",title:"Coral"},{color:"#FF9977",title:"Salmón"},{color:"#FFB977",title:"Melón o Durazno"},{color:"#FFDA80",title:"Crema"},{color:"#FFFF88",title:"Maíz"},{color:"#CFFF77",title:"Té verde"},{color:"#77FF77",title:"Verde claro"},{color:"#77FFAA",title:"Menta"},{color:"#80FFFF",title:"Aguamarina"},{color:"#73C7FF",title:"Celeste"},{color:"#8082FF",title:"Bígaro o aciano"},{color:"#C977FF",title:"Lavanda o lila"},{color:"#FF77FF",title:"Malva"},{color:"#FF77C1",title:"Rosado"}]},ne="",re="x-juki-forwarded-host",ie="x-juki-visitor-session-id",le="x-juki-metadata",Re="juki-app";function Ee(e){try{if("string"==typeof e)return JSON.parse(e),!0}catch(e){return!1}return!1}function ue(e){try{return"string"==typeof JSON.stringify(e)}catch(e){return!1}}function ce(e){let t=0;for(;-1!==e.indexOf(t);)t++;return t}function me(e,t){const a=[];for(let s=e;s<t;s++)a.push(s);return a}function de(...e){console.warn((new Date).toLocaleString(),...e)}function _e(...e){console.info((new Date).toLocaleString(),...e)}function pe(...e){console.error((new Date).toLocaleString(),...e)}function Se(e){const t=new ArrayBuffer(e.length),a=new Uint8Array(t);for(let t=0;t<e.length;t++)a[t]=255&e.charCodeAt(t);return t}function Te(e){return e.join("")}function Ae(e){return e.split("")}E.FREE,E.FREE,E.STANDARD,E.STANDARD,E.PREMIUM,E.PREMIUM,E.CUSTOM,E.CUSTOM,c.PUBLIC,c.PUBLIC,c.RESERVED,c.RESERVED,c.ARCHIVED,c.ARCHIVED,W.RESTRICTED,W.RESTRICTED,W.GUEST,W.GUEST,W.REGULAR,W.REGULAR,W.CREATOR,W.CREATOR,W.MANAGER,W.MANAGER,W.MASTER,W.MASTER,W.ADMIN,W.ADMIN,W.SUPER_ADMIN,W.SUPER_ADMIN;const Ie=(e,t)=>{if(e===t)return!1;if(e.length!==t.length)return!0;for(let a=0;a<t.length;a+=1)if(t[a]!==e[a])return!0;return!1},Ce=me(1970,2100),Ne=["January","February","March","April","May","June","July","August","September","October","November","December"],he=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],fe=me(0,24),Oe=me(0,60),ge=me(0,60),De=me(0,1e3),Pe={[O.JUKI_JUDGE]:{value:O.JUKI_JUDGE,label:"Juki Judge",logo:"https://images.juki.pub/c/juki-judge-logo-horizontal-color.svg",logoSize:[883.991,435],url:"https://judge.juki.app"},[O.CODEFORCES]:{value:O.CODEFORCES,label:"Codeforces",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://codeforces.com"},[O.CODEFORCES_GYM]:{value:O.CODEFORCES_GYM,label:"Codeforces Gym",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://codeforces.com"},[O.JV_UMSA]:{value:O.JV_UMSA,label:"Juez Virtual UMSA",logo:"https://images.juki.pub/c/codeforces-logo-horizontal-color.svg",logoSize:[1232.75,145.12],url:"https://jv.umsa.bo"},[O.UVA_ONLINE_JUDGE]:{value:O.UVA_ONLINE_JUDGE,label:"Uva Online Judge",logo:"https://images.juki.pub/c/uva-online-judge-logo-color.png",logoSize:[150,135.994],url:"https://onlinejudge.org"},[O.AT_CODER]:{value:O.AT_CODER,label:"AtCoder",logo:"https://images.juki.pub/c/at-coder-logo-color.png",logoSize:[762.997,675],url:"https://atcoder.jp"},[O.CODECHEF]:{value:O.CODECHEF,label:"Codechef",logo:"https://images.juki.pub/c/codechef-logo-color.svg",logoSize:[1207.7,453.17],url:"https://www.codechef.com"},[O.TOPCODER]:{value:O.TOPCODER,label:"Topcoder",logo:"https://images.juki.pub/c/topcoder-logo-color.png",logoSize:[971.99,415.99],url:"https://www.topcoder.com"},[O.LEETCODE]:{value:O.LEETCODE,label:"LeetCode",logo:"https://images.juki.pub/assets/leetcode-logo-color.svg",logoSize:[95,111],url:"https://leetcode.com"}};F.TOTAL,F.SUBTASK,F.PARTIAL,B.STANDARD,B.DYNAMIC;const be=[n.C_11,n.CPP_11,n.CPP_20,n.JAVA_21,n.PYTHON_3,n.PYTHON_PYPY_3,n.JAVASCRIPT_NODE_JS_22,n.PSEUDOCODE_PSEINT],ve=[...be],Ue={[g.NONE]:{value:g.NONE,label:"none",color:"#555555"},[g.PENDING]:{value:g.PENDING,label:"pending",color:"#79B6FD"},[g.HIDDEN]:{value:g.HIDDEN,label:"hidden",color:"#555555"},[g.AC]:{value:g.AC,label:"accepted",color:"#43D787"},[g.PE]:{value:g.PE,label:"presentation error",color:"#55db93"},[g.PA]:{value:g.PA,label:"partial accepted",color:"#55db93"},[g.CE]:{value:g.CE,label:"compilation error",color:"#FE9F9F"},[g.RE]:{value:g.RE,label:"runtime error",color:"#FE9F9F"},[g.TLE]:{value:g.TLE,label:"time limit exceed",color:"#FE9F9F"},[g.MLE]:{value:g.MLE,label:"memory limit exceed",color:"#FE9F9F"},[g.WA]:{value:g.WA,label:"wrong answer",color:"#FE9F9F"}};g.NONE,g.PENDING,g.AC,g.PE,g.PA,g.CE,g.RE,g.TLE,g.MLE,g.WA;const ye={[D.NONE]:{value:D.NONE,label:"none"},[D.RECEIVED]:{value:D.RECEIVED,label:"received"},[D.COMPILING]:{value:D.COMPILING,label:"compiling"},[D.COMPILED]:{value:D.COMPILED,label:"compiled"},[D.COMPILATION_ERROR]:{value:D.COMPILATION_ERROR,label:"compilation error"},[D.FETCHING_TEST_CASES]:{value:D.FETCHING_TEST_CASES,label:"fetching test cases"},[D.RUNNING_TEST_CASE]:{value:D.RUNNING_TEST_CASE,label:"running test case"},[D.RUNNING_TEST_CASES]:{value:D.RUNNING_TEST_CASES,label:"running test cases"},[D.RUNNING_SAMPLE_TEST_CASES]:{value:D.RUNNING_SAMPLE_TEST_CASES,label:"running sample cases"},[D.EXECUTED_TEST_CASE]:{value:D.EXECUTED_TEST_CASE,label:"executed test case"},[D.FAILED_TEST_CASE]:{value:D.FAILED_TEST_CASE,label:"failed test case"},[D.JUDGING_TEST_CASE]:{value:D.JUDGING_TEST_CASE,label:"judging test case"},[D.GRADING]:{value:D.GRADING,label:"grading"},[D.FAILED]:{value:D.FAILED,label:"failed"},[D.COMPLETED]:{value:D.COMPLETED,label:"completed"}};P.HIGH_PERFORMANCE,P.HIGH_PERFORMANCE,P.LOW_PERFORMANCE,P.LOW_PERFORMANCE,M.STANDARD,M.STANDARD,M.INTERACTIVE,M.INTERACTIVE,L.STANDARD,L.STANDARD,L.DYNAMIC,L.DYNAMIC,L.INTERACTIVE,L.INTERACTIVE;const Me=[F.TOTAL,F.SUBTASK,F.PARTIAL],Le={[F.TOTAL]:{value:F.TOTAL,label:"total",description:"if all test cases are Accepted the result is Accepted otherwise it will be Runtime Error, Time Limited Exceeded, Memory Limited Exceeded, Wrong Answer or Presentation Error in that order."},[F.SUBTASK]:{value:F.SUBTASK,label:"subtask",description:"the test cases are grouped and each group of test cases is assigned a score, if all test cases in a group are Accepted then the score assigned to that group of test cases is added to total score, if total score is equal to the sum of the assigned scores of all groups of test cases then the result is Accepted, otherwise if the total score is greater than zero the result is Partial Accepted with the total accumulated score, otherwise it will be Runtime Error, Time Limited Exceeded, Memory Limited Exceeded, Wrong Answer or Presentation Error in that order."},[F.PARTIAL]:{value:F.PARTIAL,label:"partial",description:"the test cases are grouped and each group is associated with X points, and each test case in a group scores X points "}};B.STANDARD,B.DYNAMIC,B.INTERACTIVE;const Be={[B.STANDARD]:{value:B.STANDARD,label:"standard",description:"The contestant submit a single source code in one of the allowed programming languages. The source code is either standalone or to be compiled. The resulting user's executable does I/O standard input and output. The output produced by the contestant's program is then compared to the correct output using a simple diff algorithm."},[B.INTERACTIVE]:{value:B.INTERACTIVE,label:"interactive",description:"developing.."},[B.DYNAMIC]:{value:B.DYNAMIC,label:"dynamic",description:"The contestant submit a single source code in one of the allowed programming languages. The user's source code is either standalone or to be compiled. The resulting user's executable does I/O standard input and output. The output produced by the contestant's program is saved. The problem editor save a single source code in C++ 17. The editor's source code can read judge input filepath argv[1], judge output filepath argv[2], user's output filepath argv[3], user's error filepath argv[4], user's log filepath argv[5], user's source filepath argv[6] and submission information filepath argv[7] (companyId, submitId, runId, userId, contestId, problemId, language, userNickname, timestamp). The resulting editor's executable should be \"AC\" or a number between 1 and 100 for partial accepted"}};W.RESTRICTED,W.RESTRICTED,W.GUEST,W.GUEST,W.REGULAR,W.REGULAR,W.CREATOR,W.CREATOR,W.MANAGER,W.MANAGER,W.MASTER,W.MASTER,W.ADMIN,W.ADMIN,W.SUPER_ADMIN,W.SUPER_ADMIN;const Fe={[x.ERR500]:{value:x.ERR500,message:"internal server error",status:500},[x.ERR400]:{value:x.ERR400,message:"bad request",status:400},[x.ERR401]:{value:x.ERR401,message:"unauthorized",status:401},[x.ERR403]:{value:x.ERR403,message:"forbidden",status:403},[x.ERR404]:{value:x.ERR404,message:"not found",status:404},[x.ERR405]:{value:x.ERR405,message:"method not allowed",status:405},[x.ERR9997]:{value:x.ERR9997,message:"aborted request",status:400},[x.ERR9998]:{value:x.ERR9998,message:"error on response",status:400},[x.ERR9999]:{value:x.ERR9999,message:"service no found",status:400},[x.ERR9900]:{value:x.ERR9900,message:"internal server error on company service",status:500},[x.ERR9910]:{value:x.ERR9910,message:"company not created",status:500},[x.ERR9911]:{value:x.ERR9911,message:"company not found",status:500},[x.ERR9912]:{value:x.ERR9912,message:"company not updated",status:500},[x.ERR9913]:{value:x.ERR9913,message:"company not deleted",status:500},[x.ERR9914]:{value:x.ERR9914,message:"not allowed to create the company",status:400},[x.ERR9915]:{value:x.ERR9915,message:"not allowed to view the company",status:400},[x.ERR9916]:{value:x.ERR9916,message:"not allowed to updated the company",status:400},[x.ERR9917]:{value:x.ERR9917,message:"not allowed to deleted the company",status:400},[x.ERR0000]:{value:x.ERR0000,message:"internal server error on users service",status:500},[x.ERR0010]:{value:x.ERR0010,message:"user not created",status:500},[x.ERR0011]:{value:x.ERR0011,message:"user not found",status:500},[x.ERR0012]:{value:x.ERR0012,message:"user not updated",status:500},[x.ERR0013]:{value:x.ERR0013,message:"user not deleted",status:500},[x.ERR0014]:{value:x.ERR0014,message:"not allowed to create the user",status:400},[x.ERR0015]:{value:x.ERR0015,message:"not allowed to view the user",status:400},[x.ERR0016]:{value:x.ERR0016,message:"not allowed to updated the user",status:400},[x.ERR0017]:{value:x.ERR0017,message:"not allowed to deleted the user",status:400},[x.ERR0018]:{value:x.ERR0018,message:"user is reported",status:400},[x.ERR0019]:{value:x.ERR0019,message:"user is archived",status:400},[x.ERR0020]:{value:x.ERR0020,message:"user with email requested not found",status:400},[x.ERR0021]:{value:x.ERR0021,message:"user with nickname requested not found",status:400},[x.ERR0022]:{value:x.ERR0022,message:"the email is already registered",status:400},[x.ERR0023]:{value:x.ERR0023,message:"the nickname is already taken",status:400},[x.ERR0024]:{value:x.ERR0024,message:"incorrect password",status:400},[x.ERR0050]:{value:x.ERR0050,message:"user session not created",status:500},[x.ERR0051]:{value:x.ERR0051,message:"user session not found",status:500},[x.ERR0052]:{value:x.ERR0052,message:"user session not updated",status:500},[x.ERR0053]:{value:x.ERR0053,message:"user session not deleted",status:500},[x.ERR0100]:{value:x.ERR0100,message:"internal server error on problems service",status:500},[x.ERR0110]:{value:x.ERR0110,message:"problem not created",status:500},[x.ERR0111]:{value:x.ERR0111,message:"problem not found",status:500},[x.ERR0112]:{value:x.ERR0112,message:"problem not updated",status:500},[x.ERR0113]:{value:x.ERR0113,message:"problem not deleted",status:500},[x.ERR0114]:{value:x.ERR0114,message:"not allowed to create the problem",status:400},[x.ERR0115]:{value:x.ERR0115,message:"not allowed to view the problem",status:400},[x.ERR0116]:{value:x.ERR0116,message:"not allowed to updated the problem",status:400},[x.ERR0117]:{value:x.ERR0117,message:"not allowed to deleted the problem",status:400},[x.ERR0118]:{value:x.ERR0118,message:"problem mode not supported",status:500},[x.ERR0119]:{value:x.ERR0119,message:"problem type not supported",status:500},[x.ERR0120]:{value:x.ERR0120,message:"problem time limit must be a number",status:500},[x.ERR0121]:{value:x.ERR0121,message:"problem memory limit must be number",status:500},[x.ERR0122]:{value:x.ERR0122,message:"test case file empty",status:400},[x.ERR0200]:{value:x.ERR0200,message:"internal server error on contests service",status:500},[x.ERR0210]:{value:x.ERR0210,message:"contest not created",status:500},[x.ERR0211]:{value:x.ERR0211,message:"contest not found",status:500},[x.ERR0212]:{value:x.ERR0212,message:"contest not updated",status:500},[x.ERR0213]:{value:x.ERR0213,message:"contest not deleted",status:500},[x.ERR0214]:{value:x.ERR0214,message:"not allowed to create the contest",status:400},[x.ERR0215]:{value:x.ERR0215,message:"not allowed to view the contest",status:400},[x.ERR0216]:{value:x.ERR0216,message:"not allowed to updated the contest",status:400},[x.ERR0217]:{value:x.ERR0217,message:"not allowed to deleted the contest",status:400},[x.ERR0218]:{value:x.ERR0218,message:"not allowed to register to the contest",status:400},[x.ERR0219]:{value:x.ERR0219,message:"is already registered",status:400},[x.ERR0220]:{value:x.ERR0220,message:"not allowed to view contests",status:400},[x.ERR0230]:{value:x.ERR0230,message:"scoreboard not created",status:500},[x.ERR0231]:{value:x.ERR0231,message:"scoreboard not found",status:500},[x.ERR0232]:{value:x.ERR0232,message:"scoreboard not updated",status:500},[x.ERR0233]:{value:x.ERR0233,message:"scoreboard not deleted",status:500},[x.ERR0234]:{value:x.ERR0234,message:"not allowed to create the scoreboard",status:400},[x.ERR0235]:{value:x.ERR0235,message:"not allowed to view the scoreboard",status:400},[x.ERR0236]:{value:x.ERR0236,message:"not allowed to update the scoreboard",status:400},[x.ERR0237]:{value:x.ERR0237,message:"not allowed to delete the scoreboard",status:400},[x.ERR0240]:{value:x.ERR0240,message:"clarification not created",status:500},[x.ERR0241]:{value:x.ERR0241,message:"clarification not found",status:500},[x.ERR0242]:{value:x.ERR0242,message:"clarification not updated",status:500},[x.ERR0243]:{value:x.ERR0243,message:"clarification not deleted",status:500},[x.ERR0244]:{value:x.ERR0244,message:"not allowed to submit clarification",status:400},[x.ERR0245]:{value:x.ERR0245,message:"not allowed to view clarification",status:400},[x.ERR0246]:{value:x.ERR0246,message:"not allowed to update clarification",status:400},[x.ERR0247]:{value:x.ERR0247,message:"not allowed to delete clarification",status:400},[x.ERR0300]:{value:x.ERR0300,message:"internal server error on submissions service",status:500},[x.ERR0301]:{value:x.ERR0301,message:"submission not found",status:500},[x.ERR0302]:{value:x.ERR0302,message:"submission not created",status:500},[x.ERR0303]:{value:x.ERR0303,message:"submission not updated",status:500},[x.ERR0310]:{value:x.ERR0310,message:"source empty",status:400},[x.ERR0311]:{value:x.ERR0311,message:"programming language not supported",status:400},[x.ERR0321]:{value:x.ERR0321,message:"not allowed submit the problem in the contest",status:400},[x.ERR0331]:{value:x.ERR0331,message:"judgement unavailable",status:400},[x.ERR0400]:{value:x.ERR0400,message:"internal server error on utils services",status:500},[x.ERR0410]:{value:x.ERR0410,message:"empty image",status:400},[x.ERR0420]:{value:x.ERR0420,message:"",status:400},[x.ERR0421]:{value:x.ERR0421,message:"compilation failed",status:400},[x.ERR0430]:{value:x.ERR0430,message:"",status:400},[x.ERR0440]:{value:x.ERR0440,message:"the email could not be sent",status:400},[x.ERR0600]:{value:x.ERR0600,message:"internal server error on teams service",status:500},[x.ERR0610]:{value:x.ERR0610,message:"team not created",status:400},[x.ERR0611]:{value:x.ERR0611,message:"team not found",status:400},[x.ERR0612]:{value:x.ERR0612,message:"team not updated",status:400},[x.ERR0613]:{value:x.ERR0613,message:"team not deleted",status:400},[x.ERR0614]:{value:x.ERR0614,message:"not allowed to create the team",status:400},[x.ERR0615]:{value:x.ERR0615,message:"not allowed to view the team",status:400},[x.ERR0616]:{value:x.ERR0616,message:"not allowed to updated the team",status:400},[x.ERR0617]:{value:x.ERR0617,message:"not allowed to deleted the team",status:400},[x.ERR0618]:{value:x.ERR0618,message:"team is reported",status:400},[x.ERR0619]:{value:x.ERR0619,message:"team is archived",status:400},[x.ERR0800]:{value:x.ERR0800,message:"internal server error on files service",status:500},[x.ERR0810]:{value:x.ERR0810,message:"file not created",status:400},[x.ERR0811]:{value:x.ERR0811,message:"file not found",status:400},[x.ERR0812]:{value:x.ERR0812,message:"file not updated",status:400},[x.ERR0813]:{value:x.ERR0813,message:"file not deleted",status:400},[x.ERR0814]:{value:x.ERR0814,message:"not allowed to create the file",status:400},[x.ERR0815]:{value:x.ERR0815,message:"not allowed to view the file",status:400},[x.ERR0816]:{value:x.ERR0816,message:"not allowed to updated the file",status:400},[x.ERR0817]:{value:x.ERR0817,message:"not allowed to deleted the file",status:400},[x.ERR0818]:{value:x.ERR0818,message:"file is reserved",status:400},[x.ERR0819]:{value:x.ERR0819,message:"file is private",status:400},[x.ERR0820]:{value:x.ERR0820,message:"file is archived",status:400}};N.FILE,N.FILE,N.FOLDER,N.FOLDER,W.RESTRICTED,W.RESTRICTED,W.GUEST,W.GUEST,W.REGULAR,W.REGULAR,W.MASTER,W.MASTER,W.ADMIN,W.ADMIN,W.SUPER_ADMIN,W.SUPER_ADMIN,S.RELEASED,S.RELEASED,S.ARCHIVED,S.ARCHIVED;const xe={[R.PRIVATE]:{value:R.PRIVATE,label:"private",description:"the record will be visible and editable only to the owner"},[R.RESTRICTED]:{value:R.RESTRICTED,label:"restricted",description:"the record will be visible to viewers and the owner and editable to editors and the owner"},[R.PUBLIC]:{value:R.PUBLIC,label:"public",description:"the record will be visible to anyone and editable to editors and the owner"},[R.EXPOSED]:{value:R.EXPOSED,label:"exposed",description:"the record will be visible and editable to anyone"}},Ge=1e3,we=6e4,He={users:{create:!1,manage:!1,administrate:!1},problems:{create:!1,manage:!1},submissions:{manage:!1},contests:{create:!1,manage:!1},company:{manage:!1,administrate:!1},services:{administrate:!1}},Ve="pub:subscriptions",Ke="sub:notifications",je=e=>`sub:client:${e}`,Je="pub:messages",Ye="pre:client",ke=()=>({id:a(),type:H.NEW_PAGE,title:"",points:0}),We={[z.RATIO_21_9]:{aspectRatio:z.RATIO_21_9,width:2520,height:1080,decimal:21/9,label:"ultrawide"},[z.RATIO_20_9]:{aspectRatio:z.RATIO_20_9,width:2400,height:1080,decimal:20/9,label:"mobile wide"},[z.RATIO_16_9]:{aspectRatio:z.RATIO_16_9,width:1920,height:1080,decimal:16/9,label:"widescreen"},[z.RATIO_16_10]:{aspectRatio:z.RATIO_16_10,width:1920,height:1200,decimal:1.6,label:"widescreen tall"},[z.RATIO_3_2]:{aspectRatio:z.RATIO_3_2,width:1440,height:960,decimal:1.5,label:"balanced"},[z.RATIO_4_3]:{aspectRatio:z.RATIO_4_3,width:1024,height:768,decimal:4/3,label:"standard"},[z.RATIO_5_4]:{aspectRatio:z.RATIO_5_4,width:1280,height:1024,decimal:5/4,label:"square old"},[z.RATIO_1_1]:{aspectRatio:z.RATIO_1_1,width:1e3,height:1e3,decimal:1,label:"square"}};var Xe,ze;!function(e){e.UNMET_PREREQUISITES="UNMET_PREREQUISITES",e.MAX_ACCEPTED_SUBMISSIONS_ACHIEVED="MAX_ACCEPTED_SUBMISSIONS_ACHIEVED",e.START_TIME_IN_THE_FUTURE="START_TIME_IN_THE_FUTURE",e.END_TIME_IN_THE_PAST="END_TIME_IN_THE_PAST"}(Xe||(Xe={})),function(e){e.USER="USER",e.TEAM="TEAM"}(ze||(ze={}));const qe=e=>{switch(!0){case!(e?.members?.rankAdministrators!==p.NONE&&e?.members?.rankAdministrators!==p.CLOSE||e?.members?.rankManagers!==p.OPEN||e?.members?.rankGuests!==p.NONE&&e?.members?.rankGuests!==p.CLOSE&&e?.members?.rankGuests!==p.OPEN||e?.members?.rankSpectators!==p.OPEN||e?.members?.rankParticipants!==p.NONE&&e?.members?.rankParticipants!==p.CLOSE&&e?.members?.rankParticipants!==p.OPEN):return R.EXPOSED;case!(e?.members?.rankAdministrators!==p.NONE&&e?.members?.rankAdministrators!==p.CLOSE||e?.members?.rankManagers!==p.CLOSE||e?.members?.rankGuests!==p.NONE&&e?.members?.rankGuests!==p.CLOSE&&e?.members?.rankGuests!==p.OPEN||e?.members?.rankSpectators!==p.OPEN||e?.members?.rankParticipants!==p.NONE&&e?.members?.rankParticipants!==p.CLOSE&&e?.members?.rankParticipants!==p.OPEN):return R.PUBLIC;case!(e?.members?.rankAdministrators!==p.NONE&&e?.members?.rankAdministrators!==p.CLOSE||e?.members?.rankManagers!==p.CLOSE||e?.members?.rankGuests!==p.NONE&&e?.members?.rankGuests!==p.CLOSE&&e?.members?.rankGuests!==p.OPEN||e?.members?.rankSpectators!==p.CLOSE||e?.members?.rankParticipants!==p.NONE&&e?.members?.rankParticipants!==p.CLOSE&&e?.members?.rankParticipants!==p.OPEN):return R.RESTRICTED;case e?.members?.rankAdministrators===p.NONE&&e?.members?.rankManagers===p.NONE&&e?.members?.rankGuests===p.NONE&&e?.members?.rankSpectators===p.NONE&&e?.members?.rankParticipants===p.NONE:default:return R.PRIVATE}};function Ze(e){const t=e.lastIndexOf(".");return-1!==t?e.substring(0,t):e}const Qe=(e,t,a)=>{const{timeUsed:s,memoryUsed:o,exitCode:n}=et(e?.log),r=s>t,i=o>a,l=0!==n;return{compilationError:e?.status===D.COMPILATION_ERROR,timeUsed:s,timeLimitExceeded:r,memoryUsed:o,memoryLimitExceeded:i,exitCode:n,runtimeError:l,failed:!!e?.log&&(r||i||l)}},$e=(e,t,a)=>{const{compilationError:s,timeLimitExceeded:o,memoryLimitExceeded:n,runtimeError:r,timeUsed:i,memoryUsed:l,exitCode:R}=Qe(e,t,a);return{verdict:s?g.CE:o?g.TLE:n?g.MLE:r?g.RE:e.out===e.testOut?g.AC:e.withPE&&e.out.split(" ").join("").split("\n").join("")===e.testOut.split(" ").join("").split("\n").join("")?g.PE:e.withPE||e.out.split(" ").join("").split("\n").join("")!==e.testOut.split(" ").join("").split("\n").join("")?g.WA:g.AC,timeUsed:i,memoryUsed:l,exitCode:R}},et=e=>{const t=e?.split?.("\n")||[];let a=0,s=0,o=-1;if(t.length>4)for(const e of t)e.startsWith("time:")?(a=+e.split(":")[1],Number.isNaN(a)&&(a=0),a*=1e3):e.startsWith("max-rss:")?s=parseInt(e.split(":")[1],10):e.startsWith("exitcode:")&&(o=parseInt(e.split(":")[1],10));else t.length>=3&&(a=+t[0],s=+t[1],o=+t[2]);return{timeUsed:Number.isNaN(a)?0:a,memoryUsed:Number.isNaN(s)?0:s,exitCode:Number.isNaN(o)?-1:o}};Date.prototype.changeYear=function(e){const t=new Date(this);return t.setFullYear(e),t},Date.prototype.changeMonth=function(e){const t=new Date(this);return t.setMonth(e),t},Date.prototype.changeDay=function(e){const t=new Date(this);return t.setDate(e),t},Date.prototype.changeHours=function(e){const t=new Date(this);return t.setHours(e),t},Date.prototype.changeMinutes=function(e){const t=new Date(this);return t.setMinutes(e),t},Date.prototype.changeSeconds=function(e){const t=new Date(this);return t.setSeconds(e),t},Date.prototype.changeMilliseconds=function(e){const t=new Date(this);return t.setMilliseconds(e),t},Date.prototype.decreaseYear=function(e=1){return this.changeYear(this.getFullYear()-e)},Date.prototype.increaseYear=function(e=1){return this.changeYear(this.getFullYear()+e)},Date.prototype.decreaseMonth=function(){const e=new Date(this);return e.setMonth(e.getMonth()-1),e},Date.prototype.increaseMonth=function(){const e=new Date(this);return e.setMonth(e.getMonth()+1),e},Date.prototype.increaseDay=function(){const e=new Date(this);return e.setDate(e.getDate()+1),e},Date.prototype.decreaseDay=function(){const e=new Date(this);return e.setDate(e.getDate()-1),e},Date.prototype.startOfYear=function(){const e=new Date(this);return e.setMonth(0),e.startOfMonth()},Date.prototype.endOfYear=function(){const e=this.increaseYear().startOfYear();return new Date(e.getTime()-1)},Date.prototype.startOfMonth=function(){const e=new Date(this);return e.setDate(1),e.startOfDay()},Date.prototype.endOfMonth=function(){const e=this.increaseMonth().startOfMonth();return new Date(e.getTime()-1)},Date.prototype.startOfWeek=function(){const e=new Date(this);for(;e.getDay();)e.setDate(e.getDate()-1);return e.startOfDay()},Date.prototype.endOfWeek=function(){const e=new Date(this);for(;e.getDay()<6;)e.setDate(e.getDate()-1);return e.endOfDay()},Date.prototype.startOfDay=function(){const e=new Date(this);return e.setHours(0,0,0,0),e},Date.prototype.endOfDay=function(){const e=new Date(this);return e.setHours(23,59,59,999),e},Date.prototype.startOfHour=function(){const e=new Date(this);return e.setMinutes(0,0,0),e},Date.prototype.endOfHour=function(){const e=new Date(this);return e.setMinutes(59,59,999),e},Date.prototype.startOfMinute=function(){const e=new Date(this);return e.setSeconds(0,0),e},Date.prototype.endOfMinute=function(){const e=new Date(this);return e.setSeconds(59,999),e},Date.prototype.startOfSecond=function(){const e=new Date(this);return e.setMilliseconds(0),e},Date.prototype.endOfSecond=function(){const e=new Date(this);return e.setMilliseconds(999),e},Date.prototype.isToday=function(){const e=new Date;return this.isSameDay(e)},Date.prototype.isEqual=function(e){return this.getTime()===e.getTime()},Date.prototype.isSameYear=function(e){return this.getFullYear()===e.getFullYear()},Date.prototype.isSameMonth=function(e){return this.isSameYear(e)&&this.getMonth()===e.getMonth()},Date.prototype.isSameDay=function(e){return this.isSameMonth(e)&&this.getDate()===e.getDate()},Date.prototype.isSameHour=function(e){return this.isSameDay(e)&&this.getHours()===e.getHours()},Date.prototype.isSameMinute=function(e){return this.isSameHour(e)&&this.getMinutes()===e.getMinutes()},Date.prototype.isSameSecond=function(e){return this.isSameMinute(e)&&this.getSeconds()===e.getSeconds()},Date.prototype.isSameMillisecond=function(e){return this.isEqual(e)},Date.prototype.isValidDate=function(){return this instanceof Date&&!isNaN(this.getTime())},Date.prototype.isYearAfter=function(e){return this.getFullYear()>e.getFullYear()},Date.prototype.isMonthAfter=function(e){return this.isYearAfter(e)||this.isSameYear(e)&&this.getMonth()>e.getMonth()},Date.prototype.isDayAfter=function(e){return this.isMonthAfter(e)||this.isSameMonth(e)&&this.getDate()>e.getDate()},Date.prototype.isHoursAfter=function(e){return this.isDayAfter(e)||this.isSameDay(e)&&this.getHours()>e.getHours()},Date.prototype.isMinutesAfter=function(e){return this.isHoursAfter(e)||this.isSameHour(e)&&this.getMinutes()>e.getMinutes()},Date.prototype.isSecondsAfter=function(e){return this.isMinutesAfter(e)||this.isSameMinute(e)&&this.getSeconds()>e.getSeconds()},Date.prototype.isMillisecondsAfter=function(e){return this.isSecondsAfter(e)||this.isSameSecond(e)&&this.getMilliseconds()>e.getMilliseconds()},Date.prototype.isAfter=function(e){return this.getTime()>e.getTime()},Date.prototype.isYearBefore=function(e){return this.getFullYear()<e.getFullYear()},Date.prototype.isMonthBefore=function(e){return this.isYearBefore(e)||this.isSameYear(e)&&this.getMonth()<e.getMonth()},Date.prototype.isDayBefore=function(e){return this.isMonthBefore(e)||this.isSameMonth(e)&&this.getDate()<e.getDate()},Date.prototype.isHoursBefore=function(e){return this.isDayBefore(e)||this.isSameDay(e)&&this.getHours()<e.getHours()},Date.prototype.isMinutesBefore=function(e){return this.isHoursBefore(e)||this.isSameHour(e)&&this.getMinutes()<e.getMinutes()},Date.prototype.isSecondsBefore=function(e){return this.isMinutesBefore(e)||this.isSameMinute(e)&&this.getSeconds()<e.getSeconds()},Date.prototype.isMillisecondsBefore=function(e){return this.isSecondsBefore(e)||this.isSameSecond(e)&&this.getMilliseconds()<e.getMilliseconds()},Date.prototype.isBefore=function(e){return this.getTime()<e.getTime()},Date.prototype.isWithinInterval=function({start:e,end:t},a="[]"){return("["===a.charAt(0)&&this.isEqual(e)||this.isAfter(e))&&("["===a.charAt(1)&&this.isEqual(t)||this.isBefore(t))};class tt extends Error{constructor(e,t){const a=t?.message||Fe[e].message;super(a),this.message=a,this.code=e,t?.stack&&(this.stack=t.stack),t?.data&&(this.data=t.data)}}Number.prototype.padStart=function(e,t="0"){return(this+"").padStart(e,t)},Number.prototype.padEnd=function(e,t="0"){return(this+"").padEnd(e,t)};const at=e=>{if(!Ee(e)){const t={success:!1,message:Fe[x.ERR9999].message,errors:[{code:x.ERR9999,detail:"",message:Fe[x.ERR9999].message}]};return pe({message:"response is not string json, success false on cleaning request",responseText:e,response:t}),t}const t=JSON.parse(e);if("boolean"==typeof t.success){if(!0===t.success&&"string"==typeof t.message&&t.content)return{success:!0,message:t.message,content:t.content};if(!0===t.success&&"string"==typeof t.message&&Array.isArray(t.contents)&&t.meta)return{success:!0,message:t.message,contents:t.contents,meta:t.meta};if(!1===t.success&&"string"==typeof t.message&&Array.isArray(t.errors)){const a={success:!1,message:t.message,errors:t.errors};return pe({message:"success false on cleaning request",responseText:e,response:a}),a}}const a={success:!1,message:Fe[x.ERR9998].message,errors:[{code:x.ERR9998,detail:"",message:Fe[x.ERR9998].message}]};return pe({message:"success false on cleaning request",responseText:e,response:a}),a},st=e=>(Object.values(j).includes(e?.event)||Object.values(K).includes(e?.event))&&"string"==typeof e?.clientId&&!!e.clientId,ot=e=>st(e)&&e?.event===j.SUBSCRIBE_CODE_RUN_STATUS&&"string"==typeof e?.runId&&!!e.runId,nt=e=>st(e)&&e?.event===j.UNSUBSCRIBE_CODE_RUN_STATUS&&"string"==typeof e?.runId&&!!e.runId,rt=e=>st(e)&&e?.event===j.SUBSCRIBE_SUBMISSION_RUN_STATUS&&"string"==typeof e?.submitId&&!!e.submitId,it=e=>st(e)&&e?.event===j.UNSUBSCRIBE_SUBMISSION_RUN_STATUS&&"string"==typeof e?.submitId&&!!e.submitId,lt=e=>st(e)&&e?.event===j.SUBSCRIBE_GET_DATA,Rt=e=>st(e)&&e?.event===j.UNSUBSCRIBE_GET_DATA,Et=e=>st(e)&&e?.event===j.SUBSCRIBE_PROBLEM_CRAWLED,ut=e=>st(e)&&e?.event===j.UNSUBSCRIBE_PROBLEM_CRAWLED,ct=e=>st(e)&&e?.event===j.SUBSCRIBE_SUBMISSIONS_CRAWL,mt=e=>st(e)&&e?.event===j.UNSUBSCRIBE_SUBMISSIONS_CRAWL,dt=e=>st(e)&&e?.event===j.SUBSCRIBE_CONTEST_CHANGES,_t=e=>st(e)&&e?.event===j.UNSUBSCRIBE_CONTEST_CHANGES,pt=e=>st(e)&&e?.event===j.SUBSCRIBE_CLIENT_TRACK,St=e=>st(e)&&e?.event===j.UNSUBSCRIBE_CLIENT_TRACK,Tt=e=>st(e)&&e?.event===j.SUBSCRIBE_USER_NOTIFICATION,At=e=>st(e)&&e?.event===j.UNSUBSCRIBE_USER_NOTIFICATION,It=e=>Object.values(J).includes(e?.event)&&"string"==typeof e?.key&&"string"==typeof e?.connectionId&&"number"==typeof e?.messageTimestamp&&!!e.messageTimestamp,Ct=e=>It(e)&&e?.event===J.CODE_RUN_STATUS&&"string"==typeof e?.runId&&!!e.runId&&e?.status in D,Nt=e=>It(e)&&e?.event===J.SUBMISSION_RUN_STATUS&&"string"==typeof e?.submitId&&!!e.submitId&&e?.status in D&&e?.verdict in g&&"number"==typeof e?.points,ht=(e,t,a)=>`${e}-${t}-${a}`;function ft(e){const t=[],a=1e3,s=6e4,o=36e5,n=864e5,r=6048e5,i=Math.floor(e/r);t.push({remaining:i,label:1===i?"week":"weeks",abbreviatedLabel:"w",milliseconds:r,digits:2});const l=Math.floor(e%r/n);t.push({remaining:l,label:1===l?"day":"days",abbreviatedLabel:"d",milliseconds:n,digits:2});const R=Math.floor(e%n/o);t.push({remaining:R,label:1===R?"hour":"hours",abbreviatedLabel:"h",milliseconds:o,digits:2});const E=Math.floor(e%o/s);t.push({remaining:E,label:1===E?"minute":"minutes",abbreviatedLabel:"m",milliseconds:s,digits:2});const u=Math.floor(e%s/a);t.push({remaining:u,label:1===u?"second":"seconds",abbreviatedLabel:"s",milliseconds:a,digits:2});const c=Math.floor(e%a);return t.push({remaining:c,label:1===c?"millisecond":"milliseconds",abbreviatedLabel:"ms",milliseconds:1,digits:3}),t}const Ot=(e,t)=>e+"|"+t,gt=(e,t)=>`${e}|${t}`,Dt=e=>{const[t,a]=e.split("|");return{sessionId:t,uiId:a}},Pt=e=>{const t=[...e];t[0]?.type!==H.NEW_PAGE&&t.unshift(ke());let a=t[0],s=[];const o=[];for(let e=1;e<t.length;e++){const n=t[e];n.type===H.NEW_PAGE?(o.push({header:a,content:[...s]}),a=n,s=[]):s.push(n)}return o.push({header:a,content:[...s]}),o},bt=e=>"string"==typeof e?.id&&e.id&&Object.values(H).includes(e?.type)&&"string"==typeof e?.title&&"number"==typeof e?.points,vt=e=>bt(e)&&e?.type===H.JK_MD&&"string"==typeof e?.content,Ut=e=>bt(e)&&e?.type===H.CODE_EDITOR&&"object"==typeof e?.sourceCode&&null!==e?.sourceCode&&"object"===e?.testCases&&null!==e?.testCases&&Array.isArray(e?.languages)&&"number"==typeof e?.height,yt=e=>bt(e)&&e?.type===H.QUIZ_PROBLEM&&Object.values(O).includes(e?.problemJudge)||"string"==typeof e?.problemJudge&&"string"==typeof e?.problemKey&&Array.isArray(e?.languages)&&"number"==typeof e?.height,Mt=e=>bt(e)&&e?.type===H.QUIZ_OPTIONS&&"string"==typeof e?.description&&Array.isArray(e?.options)&&e?.options.every(e=>"string"==typeof e?.label&&"boolean"==typeof e?.correct&&"string"==typeof e?.id)&&"boolean"==typeof e?.multiple&&("TOTAL"===e?.scoringMode||"PARTIAL"===e?.scoringMode),Lt=import.meta.env,Bt=("undefined"!=typeof process?process.env.NEXT_PUBLIC_JUKI_SERVICE_V2_URL:void 0)||Lt?.VITE_JUKI_SERVICE_V2_URL||"",Ft=("undefined"!=typeof process?process.env.NEXT_PUBLIC_JUKI_TOKEN_NAME:void 0)||Lt?.VITE_JUKI_TOKEN_NAME||"",xt=("undefined"!=typeof process?process.env.NODE_ENV:void 0)||"development",Gt=+(("undefined"!=typeof process?process.env.NEXT_PUBLIC_ABLY_LOG_LEVEL:void 0)||Lt?.VITE_ABLY_LOG_LEVEL||0)||void 0,wt={revalidateOnFocus:!1,revalidateOnReconnect:!0,revalidateIfStale:!0,focusThrottleInterval:5e3,dedupingInterval:5e3};export{it as $,Gt as A,Be as B,n as C,he as D,He as E,Le as F,se as G,w as H,F as I,Bt as J,Re as K,v as L,k as M,xt as N,ne as O,s as P,V as Q,be as R,i as S,U as T,ft as U,ot as V,H as W,nt as X,ht as Y,J as Z,rt as _,Pt as a,lt as a0,Rt as a1,Tt as a2,At as a3,Et as a4,ut as a5,ct as a6,mt as a7,Te as a8,dt as a9,Nt as aA,Pe as aB,Me as aC,B as aD,qe as aE,p as aF,ze as aG,R as aH,xe as aI,K as aJ,Dt as aK,Ve as aL,Je as aM,Ke as aN,Ye as aO,je as aP,Ie as aQ,_t as aa,pt as ab,St as ac,j as ad,Ae as ae,ve as af,D as ag,b as ah,Ct as ai,Qe as aj,Ge as ak,ye as al,$e as am,g as an,ce as ao,Ze as ap,oe as aq,Ce as ar,fe as as,Oe as at,ge as au,De as av,gt as aw,we as ax,O as ay,Ue as az,Y as b,de as c,Ft as d,wt as e,_e as f,Ot as g,ke as h,Ee as i,Ut as j,vt as k,Mt as l,yt as m,We as n,Ne as o,re as p,ie as q,x as r,Se as s,Fe as t,at as u,a as v,pe as w,ue as x,tt as y,le as z};
|
package/dist/esm/settings.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{j as jukiApiManager,a as jukiAppRoutes}from"./index-
|
|
1
|
+
export{j as jukiApiManager,a as jukiAppRoutes}from"./index-o2jBRnrQ.js";import"./settings-BONQQsPx.js";import"./commons-D9Mh1s5L.js";import"react";import"./enums.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as t,a as e,S as a}from"./chunk-OYMX7WX6-ChpTvaWt.js";import{_ as i,c as r,d as n,l as s,e as d,k as o,Q as p,u as g}from"./mermaid.core-Ch6a1N6x.js";import{G as c}from"./graph-BuAvWT_r.js";import{l as h}from"./layout-C9Uq7X58.js";import{l,k as x}from"./string-LeDn2fkG.js";import"./chunk-55IACEB6-B9SJqSMu.js";import"./chunk-EDXVE4YY-DO0UVobI.js";import"./index-rYUgz1LC.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-B_OozOv-.js";import"./settings-BIQ7IqJl.js";import"./constants.js";import"./LoaderLayer-D9O7WqFD.js";import"./websocket-CxbYBjHT.js";import"./index-CODLgwqm.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-DBOWJxv3.js";import"./memoize-CPUrcYQl.js";import"./_baseIteratee-DJNkOVK7.js";import"./isSymbol-CATEdeai.js";import"./_baseUniq-BJKKUJ6e.js";import"./isUndefined-DgmxjSXK.js";import"./min-Dc9VrJ6M.js";import"./map-BvlAjF4J.js";import"./toNumber-Bh_HTlSx.js";var m,u=i(t=>t.append("circle").attr("class","start-state").attr("r",r().state.sizeUnit).attr("cx",r().state.padding+r().state.sizeUnit).attr("cy",r().state.padding+r().state.sizeUnit),"drawStartState"),f=i(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",r().state.textHeight).attr("class","divider").attr("x2",2*r().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),y=i((t,e)=>{const a=t.append("text").attr("x",2*r().state.padding).attr("y",r().state.textHeight+2*r().state.padding).attr("font-size",r().state.fontSize).attr("class","state-title").text(e.id),i=a.node().getBBox();return t.insert("rect",":first-child").attr("x",r().state.padding).attr("y",r().state.padding).attr("width",i.width+2*r().state.padding).attr("height",i.height+2*r().state.padding).attr("rx",r().state.radius),a},"drawSimpleState"),b=i((t,e)=>{const a=i(function(t,e,a){const i=t.append("tspan").attr("x",2*r().state.padding).text(e);a||i.attr("dy",r().state.textHeight)},"addTspan"),n=t.append("text").attr("x",2*r().state.padding).attr("y",r().state.textHeight+1.3*r().state.padding).attr("font-size",r().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),s=n.height,d=t.append("text").attr("x",r().state.padding).attr("y",s+.4*r().state.padding+r().state.dividerMargin+r().state.textHeight).attr("class","state-description");let o=!0,p=!0;e.descriptions.forEach(function(t){o||(a(d,t,p),p=!1),o=!1});const g=t.append("line").attr("x1",r().state.padding).attr("y1",r().state.padding+s+r().state.dividerMargin/2).attr("y2",r().state.padding+s+r().state.dividerMargin/2).attr("class","descr-divider"),c=d.node().getBBox(),h=Math.max(c.width,n.width);return g.attr("x2",h+3*r().state.padding),t.insert("rect",":first-child").attr("x",r().state.padding).attr("y",r().state.padding).attr("width",h+2*r().state.padding).attr("height",c.height+s+2*r().state.padding).attr("rx",r().state.radius),t},"drawDescrState"),w=i((t,e,a)=>{const i=r().state.padding,n=2*r().state.padding,s=t.node().getBBox(),d=s.width,o=s.x,p=t.append("text").attr("x",0).attr("y",r().state.titleShift).attr("font-size",r().state.fontSize).attr("class","state-title").text(e.id),g=p.node().getBBox().width+n;let c,h=Math.max(g,d);h===d&&(h+=n);const l=t.node().getBBox();e.doc,c=o-i,g>d&&(c=(d-h)/2+i),Math.abs(o-l.x)<i&&g>d&&(c=o-(g-d)/2);const x=1-r().state.textHeight;return t.insert("rect",":first-child").attr("x",c).attr("y",x).attr("class",a?"alt-composit":"composit").attr("width",h).attr("height",l.height+r().state.textHeight+r().state.titleShift+1).attr("rx","0"),p.attr("x",c+i),g<=d&&p.attr("x",o+(h-n)/2-g/2+i),t.insert("rect",":first-child").attr("x",c).attr("y",r().state.titleShift-r().state.textHeight-r().state.padding).attr("width",h).attr("height",3*r().state.textHeight).attr("rx",r().state.radius),t.insert("rect",":first-child").attr("x",c).attr("y",r().state.titleShift-r().state.textHeight-r().state.padding).attr("width",h).attr("height",l.height+3+2*r().state.textHeight).attr("rx",r().state.radius),t},"addTitleAndBox"),B=i(t=>(t.append("circle").attr("class","end-state-outer").attr("r",r().state.sizeUnit+r().state.miniPadding).attr("cx",r().state.padding+r().state.sizeUnit+r().state.miniPadding).attr("cy",r().state.padding+r().state.sizeUnit+r().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",r().state.sizeUnit).attr("cx",r().state.padding+r().state.sizeUnit+2).attr("cy",r().state.padding+r().state.sizeUnit+2)),"drawEndState"),k=i((t,e)=>{let a=r().state.forkWidth,i=r().state.forkHeight;if(e.parentId){let t=a;a=i,i=t}return t.append("rect").style("stroke","black").style("fill","black").attr("width",a).attr("height",i).attr("x",r().state.padding).attr("y",r().state.padding)},"drawForkJoinState"),j=i((t,e,a,i)=>{let n=0;const s=i.append("text");s.style("text-anchor","start"),s.attr("class","noteText");let d=t.replace(/\r\n/g,"<br/>");d=d.replace(/\n/g,"<br/>");const p=d.split(o.lineBreakRegex);let g=1.25*r().state.noteMargin;for(const t of p){const i=t.trim();if(i.length>0){const t=s.append("tspan");if(t.text(i),0===g){g+=t.node().getBBox().height}n+=g,t.attr("x",e+r().state.noteMargin),t.attr("y",a+n+1.25*r().state.noteMargin)}}return{textWidth:s.node().getBBox().width,textHeight:n}},"_drawLongText"),S=i((t,e)=>{e.attr("class","state-note");const a=e.append("rect").attr("x",0).attr("y",r().state.padding),i=e.append("g"),{textWidth:n,textHeight:s}=j(t,0,0,i);return a.attr("height",s+2*r().state.noteMargin),a.attr("width",n+2*r().state.noteMargin),a},"drawNote"),E=i(function(t,e){const a=e.id,i={id:a,label:e.id,width:0,height:0},n=t.append("g").attr("id",a).attr("class","stateGroup");"start"===e.type&&u(n),"end"===e.type&&B(n),"fork"!==e.type&&"join"!==e.type||k(n,e),"note"===e.type&&S(e.note.text,n),"divider"===e.type&&f(n),"default"===e.type&&0===e.descriptions.length&&y(n,e),"default"===e.type&&e.descriptions.length>0&&b(n,e);const s=n.node().getBBox();return i.width=s.width+2*r().state.padding,i.height=s.height+2*r().state.padding,i},"drawState"),N=0,M=i(function(t,e,n){const d=i(function(t){switch(t){case a.relationType.AGGREGATION:return"aggregation";case a.relationType.EXTENSION:return"extension";case a.relationType.COMPOSITION:return"composition";case a.relationType.DEPENDENCY:return"dependency"}},"getRelationType");e.points=e.points.filter(t=>!Number.isNaN(t.y));const c=e.points,h=l().x(function(t){return t.x}).y(function(t){return t.y}).curve(x),m=t.append("path").attr("d",h(c)).attr("id","edge"+N).attr("class","transition");let u="";if(r().state.arrowMarkerAbsolute&&(u=p(!0)),m.attr("marker-end","url("+u+"#"+d(a.relationType.DEPENDENCY)+"End)"),void 0!==n.title){const a=t.append("g").attr("class","stateLabel"),{x:i,y:d}=g.calcLabelPosition(e.points),p=o.getRows(n.title);let c=0;const h=[];let l=0,x=0;for(let t=0;t<=p.length;t++){const e=a.append("text").attr("text-anchor","middle").text(p[t]).attr("x",i).attr("y",d+c),r=e.node().getBBox();if(l=Math.max(l,r.width),x=Math.min(x,r.x),s.info(r.x,i,d+c),0===c){const t=e.node().getBBox();c=t.height,s.info("Title height",c,d)}h.push(e)}let m=c*p.length;if(p.length>1){const t=(p.length-1)*c*.5;h.forEach((e,a)=>e.attr("y",d+a*c-t)),m=c*p.length}const u=a.node().getBBox();a.insert("rect",":first-child").attr("class","box").attr("x",i-l/2-r().state.padding/2).attr("y",d-m/2-r().state.padding/2-3.5).attr("width",l+r().state.padding).attr("height",m+r().state.padding),s.info(u)}N++},"drawEdge"),v={},z=i(function(){},"setConf"),H=i(function(t){t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),T=i(function(t,e,a,i){m=r().state;const o=r().securityLevel;let p;"sandbox"===o&&(p=n("#i"+e));const g=n("sandbox"===o?p.nodes()[0].contentDocument.body:"body"),c="sandbox"===o?p.nodes()[0].contentDocument:document;s.debug("Rendering diagram "+t);const h=g.select(`[id='${e}']`);H(h);const l=i.db.getRootDoc(),x=h.append("g").attr("id",e+"-root");D(l,x,void 0,!1,g,c,i);const u=m.padding,f=h.node().getBBox(),y=f.width+2*u,b=f.height+2*u;d(h,b,1.75*y,m.useMaxWidth),h.attr("viewBox",`${f.x-m.padding} ${f.y-m.padding} `+y+" "+b)},"draw"),L=i(t=>t?t.length*m.fontSizeFactor:1,"getLabelWidth"),D=i((t,e,a,i,r,n,d)=>{const p=new c({compound:!0,multigraph:!0});let g,l=!0;for(g=0;g<t.length;g++)if("relation"===t[g].stmt){l=!1;break}a?p.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:l?1:m.edgeLengthFactor,nodeSep:l?1:50,isMultiGraph:!0}):p.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:l?1:m.edgeLengthFactor,nodeSep:l?1:50,ranker:"tight-tree",isMultiGraph:!0}),p.setDefaultEdgeLabel(function(){return{}});const x=d.db.getStates(),u=d.db.getRelations(),f=Object.keys(x);for(const t of f){const s=x[t];let o;if(a&&(s.parentId=a),s.doc){let t=e.append("g").attr("id",s.id).attr("class","stateGroup");o=D(s.doc,t,s.id,!i,r,n,d);{t=w(t,s,i);let e=t.node().getBBox();o.width=e.width,o.height=e.height+m.padding/2,v[s.id]={y:m.compositTitleSize}}}else o=E(e,s,p);if(s.note){const t={descriptions:[],id:s.id+"-note",note:s.note,type:"note"},a=E(e,t,p);"left of"===s.note.position?(p.setNode(o.id+"-note",a),p.setNode(o.id,o)):(p.setNode(o.id,o),p.setNode(o.id+"-note",a)),p.setParent(o.id,o.id+"-group"),p.setParent(o.id+"-note",o.id+"-group")}else p.setNode(o.id,o)}s.debug("Count=",p.nodeCount(),p);let y=0;u.forEach(function(t){y++,s.debug("Setting edge",t),p.setEdge(t.id1,t.id2,{relation:t,width:L(t.title),height:m.labelHeight*o.getRows(t.title).length,labelpos:"c"},"id"+y)}),h(p),s.debug("Graph after layout",p.nodes());const b=e.node();p.nodes().forEach(function(t){if(void 0!==t&&void 0!==p.node(t)){s.warn("Node "+t+": "+JSON.stringify(p.node(t))),r.select("#"+b.id+" #"+t).attr("transform","translate("+(p.node(t).x-p.node(t).width/2)+","+(p.node(t).y+(v[t]?v[t].y:0)-p.node(t).height/2)+" )"),r.select("#"+b.id+" #"+t).attr("data-x-shift",p.node(t).x-p.node(t).width/2);n.querySelectorAll("#"+b.id+" #"+t+" .divider").forEach(t=>{const e=t.parentElement;let a=0,i=0;e&&(e.parentElement&&(a=e.parentElement.getBBox().width),i=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(i)&&(i=0)),t.setAttribute("x1",0-i+8),t.setAttribute("x2",a-i-8)})}else s.debug("No Node "+t+": "+JSON.stringify(p.node(t)))});let B=b.getBBox();p.edges().forEach(function(t){void 0!==t&&void 0!==p.edge(t)&&(s.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(p.edge(t))),M(e,p.edge(t),p.edge(t).relation))}),B=b.getBBox();const k={id:a||"root",label:a||"root",width:0,height:0};return k.width=B.width+2*m.padding,k.height=B.height+2*m.padding,s.debug("Doc rendered",k,p),k},"renderDoc"),A={setConf:z,draw:T},U={parser:e,get db(){return new a(1)},renderer:A,styles:t,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{U as diagram};
|
|
1
|
+
import{s as t,a as e,S as a}from"./chunk-OYMX7WX6-C7RHHgRc.js";import{_ as i,c as r,d as n,l as s,e as d,k as o,Q as p,u as g}from"./mermaid.core-C89m9NSM.js";import{G as c}from"./graph-DcE5swO6.js";import{l as h}from"./layout-LXPx6gJv.js";import{l,k as x}from"./string-LeDn2fkG.js";import"./chunk-55IACEB6-Csh8qgjO.js";import"./chunk-EDXVE4YY-DCPe-NtF.js";import"./index-TeLD_8PN.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-D9Mh1s5L.js";import"./settings-BONQQsPx.js";import"./constants.js";import"./LoaderLayer-CXFK-kAz.js";import"./websocket-C4G3j9Rm.js";import"./index-o2jBRnrQ.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-DBOWJxv3.js";import"./memoize-CPUrcYQl.js";import"./_baseIteratee-DJNkOVK7.js";import"./isSymbol-CATEdeai.js";import"./_baseUniq-BJKKUJ6e.js";import"./isUndefined-DgmxjSXK.js";import"./min-Dc9VrJ6M.js";import"./map-BvlAjF4J.js";import"./toNumber-Bh_HTlSx.js";var m,u=i(t=>t.append("circle").attr("class","start-state").attr("r",r().state.sizeUnit).attr("cx",r().state.padding+r().state.sizeUnit).attr("cy",r().state.padding+r().state.sizeUnit),"drawStartState"),f=i(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",r().state.textHeight).attr("class","divider").attr("x2",2*r().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),y=i((t,e)=>{const a=t.append("text").attr("x",2*r().state.padding).attr("y",r().state.textHeight+2*r().state.padding).attr("font-size",r().state.fontSize).attr("class","state-title").text(e.id),i=a.node().getBBox();return t.insert("rect",":first-child").attr("x",r().state.padding).attr("y",r().state.padding).attr("width",i.width+2*r().state.padding).attr("height",i.height+2*r().state.padding).attr("rx",r().state.radius),a},"drawSimpleState"),b=i((t,e)=>{const a=i(function(t,e,a){const i=t.append("tspan").attr("x",2*r().state.padding).text(e);a||i.attr("dy",r().state.textHeight)},"addTspan"),n=t.append("text").attr("x",2*r().state.padding).attr("y",r().state.textHeight+1.3*r().state.padding).attr("font-size",r().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),s=n.height,d=t.append("text").attr("x",r().state.padding).attr("y",s+.4*r().state.padding+r().state.dividerMargin+r().state.textHeight).attr("class","state-description");let o=!0,p=!0;e.descriptions.forEach(function(t){o||(a(d,t,p),p=!1),o=!1});const g=t.append("line").attr("x1",r().state.padding).attr("y1",r().state.padding+s+r().state.dividerMargin/2).attr("y2",r().state.padding+s+r().state.dividerMargin/2).attr("class","descr-divider"),c=d.node().getBBox(),h=Math.max(c.width,n.width);return g.attr("x2",h+3*r().state.padding),t.insert("rect",":first-child").attr("x",r().state.padding).attr("y",r().state.padding).attr("width",h+2*r().state.padding).attr("height",c.height+s+2*r().state.padding).attr("rx",r().state.radius),t},"drawDescrState"),w=i((t,e,a)=>{const i=r().state.padding,n=2*r().state.padding,s=t.node().getBBox(),d=s.width,o=s.x,p=t.append("text").attr("x",0).attr("y",r().state.titleShift).attr("font-size",r().state.fontSize).attr("class","state-title").text(e.id),g=p.node().getBBox().width+n;let c,h=Math.max(g,d);h===d&&(h+=n);const l=t.node().getBBox();e.doc,c=o-i,g>d&&(c=(d-h)/2+i),Math.abs(o-l.x)<i&&g>d&&(c=o-(g-d)/2);const x=1-r().state.textHeight;return t.insert("rect",":first-child").attr("x",c).attr("y",x).attr("class",a?"alt-composit":"composit").attr("width",h).attr("height",l.height+r().state.textHeight+r().state.titleShift+1).attr("rx","0"),p.attr("x",c+i),g<=d&&p.attr("x",o+(h-n)/2-g/2+i),t.insert("rect",":first-child").attr("x",c).attr("y",r().state.titleShift-r().state.textHeight-r().state.padding).attr("width",h).attr("height",3*r().state.textHeight).attr("rx",r().state.radius),t.insert("rect",":first-child").attr("x",c).attr("y",r().state.titleShift-r().state.textHeight-r().state.padding).attr("width",h).attr("height",l.height+3+2*r().state.textHeight).attr("rx",r().state.radius),t},"addTitleAndBox"),B=i(t=>(t.append("circle").attr("class","end-state-outer").attr("r",r().state.sizeUnit+r().state.miniPadding).attr("cx",r().state.padding+r().state.sizeUnit+r().state.miniPadding).attr("cy",r().state.padding+r().state.sizeUnit+r().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",r().state.sizeUnit).attr("cx",r().state.padding+r().state.sizeUnit+2).attr("cy",r().state.padding+r().state.sizeUnit+2)),"drawEndState"),k=i((t,e)=>{let a=r().state.forkWidth,i=r().state.forkHeight;if(e.parentId){let t=a;a=i,i=t}return t.append("rect").style("stroke","black").style("fill","black").attr("width",a).attr("height",i).attr("x",r().state.padding).attr("y",r().state.padding)},"drawForkJoinState"),j=i((t,e,a,i)=>{let n=0;const s=i.append("text");s.style("text-anchor","start"),s.attr("class","noteText");let d=t.replace(/\r\n/g,"<br/>");d=d.replace(/\n/g,"<br/>");const p=d.split(o.lineBreakRegex);let g=1.25*r().state.noteMargin;for(const t of p){const i=t.trim();if(i.length>0){const t=s.append("tspan");if(t.text(i),0===g){g+=t.node().getBBox().height}n+=g,t.attr("x",e+r().state.noteMargin),t.attr("y",a+n+1.25*r().state.noteMargin)}}return{textWidth:s.node().getBBox().width,textHeight:n}},"_drawLongText"),S=i((t,e)=>{e.attr("class","state-note");const a=e.append("rect").attr("x",0).attr("y",r().state.padding),i=e.append("g"),{textWidth:n,textHeight:s}=j(t,0,0,i);return a.attr("height",s+2*r().state.noteMargin),a.attr("width",n+2*r().state.noteMargin),a},"drawNote"),E=i(function(t,e){const a=e.id,i={id:a,label:e.id,width:0,height:0},n=t.append("g").attr("id",a).attr("class","stateGroup");"start"===e.type&&u(n),"end"===e.type&&B(n),"fork"!==e.type&&"join"!==e.type||k(n,e),"note"===e.type&&S(e.note.text,n),"divider"===e.type&&f(n),"default"===e.type&&0===e.descriptions.length&&y(n,e),"default"===e.type&&e.descriptions.length>0&&b(n,e);const s=n.node().getBBox();return i.width=s.width+2*r().state.padding,i.height=s.height+2*r().state.padding,i},"drawState"),N=0,M=i(function(t,e,n){const d=i(function(t){switch(t){case a.relationType.AGGREGATION:return"aggregation";case a.relationType.EXTENSION:return"extension";case a.relationType.COMPOSITION:return"composition";case a.relationType.DEPENDENCY:return"dependency"}},"getRelationType");e.points=e.points.filter(t=>!Number.isNaN(t.y));const c=e.points,h=l().x(function(t){return t.x}).y(function(t){return t.y}).curve(x),m=t.append("path").attr("d",h(c)).attr("id","edge"+N).attr("class","transition");let u="";if(r().state.arrowMarkerAbsolute&&(u=p(!0)),m.attr("marker-end","url("+u+"#"+d(a.relationType.DEPENDENCY)+"End)"),void 0!==n.title){const a=t.append("g").attr("class","stateLabel"),{x:i,y:d}=g.calcLabelPosition(e.points),p=o.getRows(n.title);let c=0;const h=[];let l=0,x=0;for(let t=0;t<=p.length;t++){const e=a.append("text").attr("text-anchor","middle").text(p[t]).attr("x",i).attr("y",d+c),r=e.node().getBBox();if(l=Math.max(l,r.width),x=Math.min(x,r.x),s.info(r.x,i,d+c),0===c){const t=e.node().getBBox();c=t.height,s.info("Title height",c,d)}h.push(e)}let m=c*p.length;if(p.length>1){const t=(p.length-1)*c*.5;h.forEach((e,a)=>e.attr("y",d+a*c-t)),m=c*p.length}const u=a.node().getBBox();a.insert("rect",":first-child").attr("class","box").attr("x",i-l/2-r().state.padding/2).attr("y",d-m/2-r().state.padding/2-3.5).attr("width",l+r().state.padding).attr("height",m+r().state.padding),s.info(u)}N++},"drawEdge"),v={},z=i(function(){},"setConf"),H=i(function(t){t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),T=i(function(t,e,a,i){m=r().state;const o=r().securityLevel;let p;"sandbox"===o&&(p=n("#i"+e));const g=n("sandbox"===o?p.nodes()[0].contentDocument.body:"body"),c="sandbox"===o?p.nodes()[0].contentDocument:document;s.debug("Rendering diagram "+t);const h=g.select(`[id='${e}']`);H(h);const l=i.db.getRootDoc(),x=h.append("g").attr("id",e+"-root");D(l,x,void 0,!1,g,c,i);const u=m.padding,f=h.node().getBBox(),y=f.width+2*u,b=f.height+2*u;d(h,b,1.75*y,m.useMaxWidth),h.attr("viewBox",`${f.x-m.padding} ${f.y-m.padding} `+y+" "+b)},"draw"),L=i(t=>t?t.length*m.fontSizeFactor:1,"getLabelWidth"),D=i((t,e,a,i,r,n,d)=>{const p=new c({compound:!0,multigraph:!0});let g,l=!0;for(g=0;g<t.length;g++)if("relation"===t[g].stmt){l=!1;break}a?p.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:l?1:m.edgeLengthFactor,nodeSep:l?1:50,isMultiGraph:!0}):p.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:l?1:m.edgeLengthFactor,nodeSep:l?1:50,ranker:"tight-tree",isMultiGraph:!0}),p.setDefaultEdgeLabel(function(){return{}});const x=d.db.getStates(),u=d.db.getRelations(),f=Object.keys(x);for(const t of f){const s=x[t];let o;if(a&&(s.parentId=a),s.doc){let t=e.append("g").attr("id",s.id).attr("class","stateGroup");o=D(s.doc,t,s.id,!i,r,n,d);{t=w(t,s,i);let e=t.node().getBBox();o.width=e.width,o.height=e.height+m.padding/2,v[s.id]={y:m.compositTitleSize}}}else o=E(e,s,p);if(s.note){const t={descriptions:[],id:s.id+"-note",note:s.note,type:"note"},a=E(e,t,p);"left of"===s.note.position?(p.setNode(o.id+"-note",a),p.setNode(o.id,o)):(p.setNode(o.id,o),p.setNode(o.id+"-note",a)),p.setParent(o.id,o.id+"-group"),p.setParent(o.id+"-note",o.id+"-group")}else p.setNode(o.id,o)}s.debug("Count=",p.nodeCount(),p);let y=0;u.forEach(function(t){y++,s.debug("Setting edge",t),p.setEdge(t.id1,t.id2,{relation:t,width:L(t.title),height:m.labelHeight*o.getRows(t.title).length,labelpos:"c"},"id"+y)}),h(p),s.debug("Graph after layout",p.nodes());const b=e.node();p.nodes().forEach(function(t){if(void 0!==t&&void 0!==p.node(t)){s.warn("Node "+t+": "+JSON.stringify(p.node(t))),r.select("#"+b.id+" #"+t).attr("transform","translate("+(p.node(t).x-p.node(t).width/2)+","+(p.node(t).y+(v[t]?v[t].y:0)-p.node(t).height/2)+" )"),r.select("#"+b.id+" #"+t).attr("data-x-shift",p.node(t).x-p.node(t).width/2);n.querySelectorAll("#"+b.id+" #"+t+" .divider").forEach(t=>{const e=t.parentElement;let a=0,i=0;e&&(e.parentElement&&(a=e.parentElement.getBBox().width),i=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(i)&&(i=0)),t.setAttribute("x1",0-i+8),t.setAttribute("x2",a-i-8)})}else s.debug("No Node "+t+": "+JSON.stringify(p.node(t)))});let B=b.getBBox();p.edges().forEach(function(t){void 0!==t&&void 0!==p.edge(t)&&(s.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(p.edge(t))),M(e,p.edge(t),p.edge(t).relation))}),B=b.getBBox();const k={id:a||"root",label:a||"root",width:0,height:0};return k.width=B.width+2*m.padding,k.height=B.height+2*m.padding,s.debug("Doc rendered",k,p),k},"renderDoc"),A={setConf:z,draw:T},U={parser:e,get db(){return new a(1)},renderer:A,styles:t,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{U as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as r,b as t,a as s,S as o}from"./chunk-OYMX7WX6-C7RHHgRc.js";import{_ as e}from"./mermaid.core-C89m9NSM.js";import"./chunk-55IACEB6-Csh8qgjO.js";import"./chunk-EDXVE4YY-DCPe-NtF.js";import"./index-TeLD_8PN.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-D9Mh1s5L.js";import"./settings-BONQQsPx.js";import"./constants.js";import"./LoaderLayer-CXFK-kAz.js";import"./websocket-C4G3j9Rm.js";import"./index-o2jBRnrQ.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-DBOWJxv3.js";import"./string-LeDn2fkG.js";import"./memoize-CPUrcYQl.js";var i={parser:s,get db(){return new o(2)},renderer:t,styles:r,init:e(r=>{r.state||(r.state={}),r.state.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{i as diagram};
|