!function(){function r(r,e){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var e=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==e)return;var n,o,a=[],i=!0,u=!1;try{for(e=e.call(r);!(i=(n=e.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(l){u=!0,o=l}finally{try{i||null==e.return||e.return()}finally{if(u)throw o}}return a}(r,e)||function(r,e){if(!r)return;if("string"==typeof r)return t(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);"Object"===n&&r.constructor&&(n=r.constructor.name);if("Map"===n||"Set"===n)return Array.from(r);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(r,e)}(r,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}var e=document.createElement("style");e.innerHTML="._formatCodeButton_19s96_1{position:absolute;right:0;top:0;border-top-left-radius:0!important;border-top-right-radius:0!important;border-bottom-right-radius:0!important;margin-right:0!important}\n",document.head.appendChild(e),System.register(["./vendor-legacy.046e8265.js","./index-legacy.b746a8e2.js","./CodeFormatter-legacy.efa3a320.js","./CodeBox-legacy.daed0907.js"],(function(t){"use strict";var e,n,o,a,i,u,l,c,s,f,d;return{setters:[function(r){e=r.R,n=r.r,o=r.j,a=r.B},function(r){i=r.u,u=r.b,l=r.t},function(r){c=r.d,s=r.i,f=r.f},function(r){d=r.H}],execute:function(){var m="_formatCodeButton_19s96_1";t("F",e.forwardRef((function(t,e){var g,y,p=i("submission"),b=!(null!==(g=u.userPreference.codeFormatter)&&void 0!==g&&g.disableByDefault),h=(null===(y=u.userPreference.codeFormatter)||void 0===y?void 0:y.options)||c,v=s(t.language),_=t.code,j=n.exports.useRef(null),C=r(n.exports.useState(b&&v),2),S=C[0],w=C[1];if(S&&!j.current){var x=r(f(_,t.language,h),2),A=x[0],B=x[1];A?j.current=B:(l.error(p(".failed_to_format",{error:B})),w(!1))}return o(d,{className:t.className,title:t.title,language:t.language,code:S&&null!=j.current?j.current:_,ref:e,children:v&&o(a,{className:m,content:p(S?".show_original_code":".format_code"),onClick:function(){return w(!S)}})})})))}}}))}();
