text: define((function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?t(Object(i),!0).forEach((function(t){e(n,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}))}return n}function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var o=window.react,c={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},a=function(e){var t=e.onResize,n=o.useRef();return function(e,t){var n=function(){return e.current&&e.current.contentDocument&&e.current.contentDocument.defaultView};function r(){t();var e=n();e&&e.addEventListener("resize",t)}o.useEffect((function(){return n()?r():e.current&&e.current.addEventListener&&e.current.addEventListener("load",r),function(){var e=n();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(n,(function(){return t(n)})),o.createElement("iframe",{style:c,src:"about:blank",ref:n,"aria-hidden":!0,"aria-label":"resize-listener",tabIndex:-1,frameBorder:0})},s=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}},l=window.react.useState,u=window.react.useEffect,h=window.react.createContext,f=window.react.useCallback,p=h({}),d=function(e){var t=e.sandbox,r=e.container,c=e.utils,h=e.children,d=i(l(),2),g=d[0],m=d[1],w=i(l(t.getText()),2),v=w[0],b=w[1],y=i(l([]),2),x=y[0],k=y[1],E=i(l(!1),2),O=E[0],_=E[1],S=i(function(e){void 0===e&&(e=s);var t=o.useState(e(null)),n=t[0],r=t[1],i=o.useCallback((function(t){return r(e(t.current))}),[e]);return[o.useMemo((function(){return o.createElement(a,{onResize:i})}),[i]),n]}(),2),C=S[0],T=S[1],A=f((function(e){m(n({},e.detail.model)),b(t.getText())}),[t]);u((function(){var e=t.editor.onDidChangeModelDecorations((function(){var e=t.monaco.editor.getModelMarkers({}).map((function(e,t){return n({},e,{key:t.toString()})}));k(e)}));return function(){return e.dispose()}}),[t]),u((function(){var e=O?"modelChangedDebounce":"modelChanged";window.addEventListener(e,A);var t=O?"modelChanged":"modelChangedDebounce";return window.removeEventListener(t,A,!1),function(){return window.removeEventListener(e,A,!1)}}),[O,A]);var P=f((function(e,n){n&&n.format?(t.setText(e),t.editor.getAction("editor.action.formatDocument").run()):t.setText(e)}),[t]),M=f((function(){return t.editor.getAction("editor.action.formatDocument").run()}),[t.editor]),j=window.playground.ui,L=j.showModal,D=j.flashInfo,N=n({ref:r},T),R={model:g,showModal:L,flashInfo:D,sandbox:t,container:N,code:v,setCode:P,formatCode:M,setDebounce:_,markers:x,utils:c};return window.react.createElement(p.Provider,{value:R},C,h)},g=window.react.useContext;function m(){return g(p)}var w=function(e,t){if(void 0===t&&(t="---"),!e&&""!==e)throw new TypeError("Expect str to be a string!");e=e.trim();var n=new RegExp("^"+t+"\\n+([\\s\\S]+)\\n+"+t+"(?:\\n([\\s\\S]*))?$"),r=e.split("\n"),i={body:e};if(!r[0]||r[0]!==t||!n.test(e))return i;var o=n.exec(e);return{head:o[1],body:o[2]}};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function v(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function b(e,t){return e(t={exports:{}},t.exports),t.exports}var y=b((function(e){function t(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}}e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1},getDefaults:t,changeDefaults:function(t){e.exports.defaults=t}}}));y.defaults,y.getDefaults,y.changeDefaults;const x=/[&<>"']/,k=/[&<>"']/g,E=/[<>"']|&(?!#?\w+;)/,O=/[<>"']|&(?!#?\w+;)/g,_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},S=e=>_[e];const C=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function T(e){return e.replace(C,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const A=/(^|[^\[])\^/g;const P=/[^\w:]/g,M=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;const j={},L=/^[^:]+:\/*[^/]*$/,D=/^([^:]+:)[\s\S]*$/,N=/^([^:]+:\/*[^/]*)[\s\S]*$/;function R(e,t){j[" "+e]||(L.test(e)?j[" "+e]=e+"/":j[" "+e]=I(e,"/",!0));const n=-1===(e=j[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(D,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(N,"$1")+t:e+t}function I(e,t,n){const r=e.length;if(0===r)return"";let i=0;for(;i<r;){const o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.substr(0,r-i)}var z={escape:function(e,t){if(t){if(x.test(e))return e.replace(k,S)}else if(E.test(e))return e.replace(O,S);return e},unescape:T,edit:function(e,t){e=e.source||e,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(A,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n},cleanUrl:function(e,t,n){if(e){let e;try{e=decodeURIComponent(T(n)).replace(P,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!M.test(n)&&(n=R(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},resolveUrl:R,noopTest:{exec:function(){}},merge:function(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},splitCells:function(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/);let r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},rtrim:I,findClosingBracket:function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,i=0;for(;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return-1},checkSanitizeDeprecation:function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}};const{noopTest:$,edit:Z,merge:q}=z,H={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:$,table:$,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};H.def=Z(H.def).replace("label",H._label).replace("title",H._title).getRegex(),H.bullet=/(?:[*+-]|\d{1,9}\.)/,H.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,H.item=Z(H.item,"gm").replace(/bull/g,H.bullet).getRegex(),H.list=Z(H.list).replace(/bull/g,H.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+H.def.source+")").getRegex(),H._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",H._comment=/<!--(?!-?>)[\s\S]*?-->/,H.html=Z(H.html,"i").replace("comment",H._comment).replace("tag",H._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),H.paragraph=Z(H._paragraph).replace("hr",H.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",H._tag).getRegex(),H.blockquote=Z(H.blockquote).replace("paragraph",H.paragraph).getRegex(),H.normal=q({},H),H.gfm=q({},H.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),H.pedantic=q({},H.normal,{html:Z("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",H._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:$,paragraph:Z(H.normal._paragraph).replace("hr",H.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",H.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const U={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:$,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:$,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,_punctuation:"!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~"};U.em=Z(U.em).replace(/punctuation/g,U._punctuation).getRegex(),U._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,U._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,U._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,U.autolink=Z(U.autolink).replace("scheme",U._scheme).replace("email",U._email).getRegex(),U._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,U.tag=Z(U.tag).replace("comment",H._comment).replace("attribute",U._attribute).getRegex(),U._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,U._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,U._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,U.link=Z(U.link).replace("label",U._label).replace("href",U._href).replace("title",U._title).getRegex(),U.reflink=Z(U.reflink).replace("label",U._label).getRegex(),U.normal=q({},U),U.pedantic=q({},U.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:Z(/^!?\[(label)\]\((.*?)\)/).replace("label",U._label).getRegex(),reflink:Z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",U._label).getRegex()}),U.gfm=q({},U.normal,{escape:Z(U.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),U.gfm.url=Z(U.gfm.url,"i").replace("email",U.gfm._extended_email).getRegex(),U.breaks=q({},U.gfm,{br:Z(U.br).replace("{2,}","*").getRegex(),text:Z(U.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var F={block:H,inline:U};const{defaults:Q}=y,{block:V}=F,{rtrim:W,splitCells:B,escape:G}=z;var Y=class e{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Q,this.rules=V.normal,this.options.pedantic?this.rules=V.pedantic:this.options.gfm&&(this.rules=V.gfm)}static get rules(){return V}static lex(t,n){return new e(n).lex(t)}lex(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g,"    "),this.token(e,!0)}token(e,t){let n,r,i,o,c,a,s,l,u,h,f,p,d,g,m,w;for(e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e)){const t=this.tokens[this.tokens.length-1];e=e.substring(i[0].length),t&&"paragraph"===t.type?t.text+="\n"+i[0].trimRight():(i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?i:W(i,"\n")}))}else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2]?i[2].trim():i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if((i=this.rules.nptable.exec(e))&&(a={type:"table",header:B(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]},a.header.length===a.align.length)){for(e=e.substring(i[0].length),f=0;f<a.align.length;f++)/^ *-+: *$/.test(a.align[f])?a.align[f]="right":/^ *:-+: *$/.test(a.align[f])?a.align[f]="center":/^ *:-+ *$/.test(a.align[f])?a.align[f]="left":a.align[f]=null;for(f=0;f<a.cells.length;f++)a.cells[f]=B(a.cells[f],a.header.length);this.tokens.push(a)}else if(i=this.rules.hr.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"hr"});else if(i=this.rules.blockquote.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"blockquote_start"}),i=i[0].replace(/^ *> ?/gm,""),this.token(i,t),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),o=i[2],g=o.length>1,s={type:"list_start",ordered:g,start:g?+o:"",loose:!1},this.tokens.push(s),i=i[0].match(this.rules.item),l=[],n=!1,d=i.length,f=0;f<d;f++)a=i[f],h=a.length,a=a.replace(/^ *([*+-]|\d+\.) */,""),~a.indexOf("\n ")&&(h-=a.length,a=this.options.pedantic?a.replace(/^ {1,4}/gm,""):a.replace(new RegExp("^ {1,"+h+"}","gm"),"")),f!==d-1&&(c=V.bullet.exec(i[f+1])[0],(o.length>1?1===c.length:c.length>1||this.options.smartLists&&c!==o)&&(e=i.slice(f+1).join("\n")+e,f=d-1)),r=n||/\n\n(?!\s*$)/.test(a),f!==d-1&&(n="\n"===a.charAt(a.length-1),r||(r=n)),r&&(s.loose=!0),m=/^\[[ xX]\] /.test(a),w=void 0,m&&(w=" "!==a[1],a=a.replace(/^\[[ xX]\] +/,"")),u={type:"list_item_start",task:m,checked:w,loose:r},l.push(u),this.tokens.push(u),this.token(a,!1),this.tokens.push({type:"list_item_end"});if(s.loose)for(d=l.length,f=0;f<d;f++)l[f].loose=!0;this.tokens.push({type:"list_end"})}else if(i=this.rules.html.exec(e))e=e.substring(i[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===i[1]||"script"===i[1]||"style"===i[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):G(i[0]):i[0]});else if(t&&(i=this.rules.def.exec(e)))e=e.substring(i[0].length),i[3]&&(i[3]=i[3].substring(1,i[3].length-1)),p=i[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[p]||(this.tokens.links[p]={href:i[2],title:i[3]});else if((i=this.rules.table.exec(e))&&(a={type:"table",header:B(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]},a.header.length===a.align.length)){for(e=e.substring(i[0].length),f=0;f<a.align.length;f++)/^ *-+: *$/.test(a.align[f])?a.align[f]="right":/^ *:-+: *$/.test(a.align[f])?a.align[f]="center":/^ *:-+ *$/.test(a.align[f])?a.align[f]="left":a.align[f]=null;for(f=0;f<a.cells.length;f++)a.cells[f]=B(a.cells[f].replace(/^ *\| *| *\| *$/g,""),a.header.length);this.tokens.push(a)}else if(i=this.rules.lheading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:"="===i[2].charAt(0)?1:2,text:i[1]});else if(t&&(i=this.rules.paragraph.exec(e)))e=e.substring(i[0].length),this.tokens.push({type:"paragraph",text:"\n"===i[1].charAt(i[1].length-1)?i[1].slice(0,-1):i[1]});else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"text",text:i[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens}};const{defaults:X}=y,{cleanUrl:J,escape:K}=z;var ee=class{constructor(e){this.options=e||X}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return r?'<pre><code class="'+this.options.langPrefix+K(r,!0)+'">'+(n?e:K(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:K(e,!0))+"</code></pre>"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(null===(e=J(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+K(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=J(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">",r}text(e){return e}},te=class{constructor(){this.seen={}}slug(e){let t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){const e=t;do{this.seen[e]++,t=e+"-"+this.seen[e]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t}};const{defaults:ne}=y,{inline:re}=F,{findClosingBracket:ie,escape:oe}=z;var ce=class e{constructor(e,t){if(this.options=t||ne,this.links=e,this.rules=re.normal,this.options.renderer=this.options.renderer||new ee,this.renderer=this.options.renderer,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=re.pedantic:this.options.gfm&&(this.options.breaks?this.rules=re.breaks:this.rules=re.gfm)}static get rules(){return re}static output(t,n,r){return new e(n,r).output(t)}output(t){let n,r,i,o,c,a,s="";for(;t;)if(c=this.rules.escape.exec(t))t=t.substring(c[0].length),s+=oe(c[1]);else if(c=this.rules.tag.exec(t))!this.inLink&&/^<a /i.test(c[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(c[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(c[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(c[0])&&(this.inRawBlock=!1),t=t.substring(c[0].length),s+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(c[0]):oe(c[0]):c[0];else if(c=this.rules.link.exec(t)){const r=ie(c[2],"()");if(r>-1){const e=(0===c[0].indexOf("!")?5:4)+c[1].length+r;c[2]=c[2].substring(0,r),c[0]=c[0].substring(0,e).trim(),c[3]=""}t=t.substring(c[0].length),this.inLink=!0,i=c[2],this.options.pedantic?(n=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i),n?(i=n[1],o=n[3]):o=""):o=c[3]?c[3].slice(1,-1):"",i=i.trim().replace(/^<([\s\S]*)>$/,"$1"),s+=this.outputLink(c,{href:e.escapes(i),title:e.escapes(o)}),this.inLink=!1}else if((c=this.rules.reflink.exec(t))||(c=this.rules.nolink.exec(t))){if(t=t.substring(c[0].length),n=(c[2]||c[1]).replace(/\s+/g," "),n=this.links[n.toLowerCase()],!n||!n.href){s+=c[0].charAt(0),t=c[0].substring(1)+t;continue}this.inLink=!0,s+=this.outputLink(c,n),this.inLink=!1}else if(c=this.rules.strong.exec(t))t=t.substring(c[0].length),s+=this.renderer.strong(this.output(c[4]||c[3]||c[2]||c[1]));else if(c=this.rules.em.exec(t))t=t.substring(c[0].length),s+=this.renderer.em(this.output(c[6]||c[5]||c[4]||c[3]||c[2]||c[1]));else if(c=this.rules.code.exec(t))t=t.substring(c[0].length),s+=this.renderer.codespan(oe(c[2].trim(),!0));else if(c=this.rules.br.exec(t))t=t.substring(c[0].length),s+=this.renderer.br();else if(c=this.rules.del.exec(t))t=t.substring(c[0].length),s+=this.renderer.del(this.output(c[1]));else if(c=this.rules.autolink.exec(t))t=t.substring(c[0].length),"@"===c[2]?(r=oe(this.mangle(c[1])),i="mailto:"+r):(r=oe(c[1]),i=r),s+=this.renderer.link(i,null,r);else if(this.inLink||!(c=this.rules.url.exec(t))){if(c=this.rules.text.exec(t))t=t.substring(c[0].length),this.inRawBlock?s+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(c[0]):oe(c[0]):c[0]):s+=this.renderer.text(oe(this.smartypants(c[0])));else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0))}else{if("@"===c[2])r=oe(c[0]),i="mailto:"+r;else{do{a=c[0],c[0]=this.rules._backpedal.exec(c[0])[0]}while(a!==c[0]);r=oe(c[0]),i="www."===c[1]?"http://"+r:r}t=t.substring(c[0].length),s+=this.renderer.link(i,null,r)}return s}static escapes(t){return t?t.replace(e.rules._escapes,"$1"):t}outputLink(e,t){const n=t.href,r=t.title?oe(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,oe(e[1]))}smartypants(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e}mangle(e){if(!this.options.mangle)return e;const t=e.length;let n,r="",i=0;for(;i<t;i++)n=e.charCodeAt(i),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}},ae=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}};const{defaults:se}=y,{merge:le,unescape:ue}=z;var he=class e{constructor(e){this.tokens=[],this.token=null,this.options=e||se,this.options.renderer=this.options.renderer||new ee,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new te}static parse(t,n){return new e(n).parse(t)}parse(e){this.inline=new ce(e.links,this.options),this.inlineText=new ce(e.links,le({},this.options,{renderer:new ae})),this.tokens=e.reverse();let t="";for(;this.next();)t+=this.tok();return t}next(){return this.token=this.tokens.pop(),this.token}peek(){return this.tokens[this.tokens.length-1]||0}parseText(){let e=this.token.text;for(;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)}tok(){let e="";switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,ue(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{let t,n,r,i,o="";for(r="",t=0;t<this.token.header.length;t++)r+=this.renderer.tablecell(this.inline.output(this.token.header[t]),{header:!0,align:this.token.align[t]});for(o+=this.renderer.tablerow(r),t=0;t<this.token.cells.length;t++){for(n=this.token.cells[t],r="",i=0;i<n.length;i++)r+=this.renderer.tablecell(this.inline.output(n[i]),{header:!1,align:this.token.align[i]});e+=this.renderer.tablerow(r)}return this.renderer.table(o,e)}case"blockquote_start":for(e="";"blockquote_end"!==this.next().type;)e+=this.tok();return this.renderer.blockquote(e);case"list_start":{e="";const t=this.token.ordered,n=this.token.start;for(;"list_end"!==this.next().type;)e+=this.tok();return this.renderer.list(e,t,n)}case"list_item_start":{e="";const t=this.token.loose,n=this.token.checked,r=this.token.task;if(this.token.task)if(t)if("text"===this.peek().type){const e=this.peek();e.text=this.renderer.checkbox(n)+" "+e.text}else this.tokens.push({type:"text",text:this.renderer.checkbox(n)});else e+=this.renderer.checkbox(n);for(;"list_item_end"!==this.next().type;)e+=t||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(e,r,n)}case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:{const e='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(e);console.log(e)}}}};const{merge:fe,checkSanitizeDeprecation:pe,escape:de}=z,{getDefaults:ge,changeDefaults:me,defaults:we}=y;function ve(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null),t=fe({},ve.defaults,t||{}),pe(t);const r=t.highlight;let i,o,c=0;try{i=Y.lex(e,t)}catch(e){return n(e)}o=i.length;const a=function(e){if(e)return t.highlight=r,n(e);let o;try{o=he.parse(i,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,o)};if(!r||r.length<3)return a();if(delete t.highlight,!o)return a();for(;c<i.length;c++)!function(e){"code"!==e.type?--o||a():r(e.text,e.lang,(function(t,n){return t?a(t):null==n||n===e.text?--o||a():(e.text=n,e.escaped=!0,void(--o||a()))}))}(i[c])}else try{return t=fe({},ve.defaults,t||{}),pe(t),he.parse(Y.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||ve.defaults).silent)return"<p>An error occurred:</p><pre>"+de(e.message+"",!0)+"</pre>";throw e}}ve.options=ve.setOptions=function(e){return fe(ve.defaults,e),me(ve.defaults),ve},ve.getDefaults=ge,ve.defaults=we,ve.Parser=he,ve.parser=he.parse,ve.Renderer=ee,ve.TextRenderer=ae,ve.Lexer=Y,ve.lexer=Y.lex,ve.InlineLexer=ce,ve.inlineLexer=ce.output,ve.Slugger=te,ve.parse=ve;var be=ve,ye={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xe=/&(?:amp|lt|gt|quot|#(0+)?39);/g,ke=RegExp(xe.source);var Ee=["Great job!","Looks great!","Excellent!","There it is!","Nailed it!","Way to go!","Looks good!","Got it!","Nice!","Well done!"];function Oe(e){return e.trim().replace(/\/\/[\s\S]*?\n/g,"").replace(/"use strict"|\\"use strict\\"|\s|;/g,"").replace(/'/g,'"')}function _e(t){var r=t.match(/<code[\s\S]*?>[\s\S]*?<\/code>/g);return null==r?void 0:r.reduce((function(t,r,i){var o,c=r.replace(/<code[\s\S]*?>|<\/code>/g,"").replace(/↵|[\r\n]/,"");return n({},t,e({},0===i?"start":"end",(o=c)&&ke.test(o)?o.replace(xe,(function(e){return ye[e]||"'"})):o||""))}),{})}var Se={data:""},Ce=function(e){try{var t=e?e.querySelector("#_goober"):self._goober;return t||((t=(e||document.head).appendChild(document.createElement("style"))).innerHTML=" ",t.id="_goober"),t.firstChild}catch(e){}return Se},Te=/(?:([a-z0-9-%@]+) *:? *([^{;]+?);|([^;}{]*?) +{)|(})/gi,Ae=/\/\*.*?\*\/|\s{2,}|\n/gm,Pe=function(e,t,n){var r="",i="",o="";for(var c in e){var a=e[c];if("object"==typeof a){var s=t+" "+c;/&/g.test(c)&&(s=c.replace(/&/g,t)),"@"==c[0]&&(s=t,"f"==c[1]&&(s=c)),/@k/.test(c)?i+=c+"{"+Pe(a,"","")+"}":i+=Pe(a,s,s==t?c:n||"")}else/^@i/.test(c)?o=c+" "+a+";":r+=c.replace(/[A-Z]/g,"-$&").toLowerCase()+":"+a+";"}if(r.charCodeAt(0)){var l=t+"{"+r+"}";return n?i+n+"{"+l+"}":o+l+i}return o+i},Me={},je=function(e,t,n,r){var i=JSON.stringify(e),o=Me[i]||(Me[i]=".go"+i.split("").reduce((function(e,t){return 101*e+t.charCodeAt(0)>>>0}),11));return function(e,t,n){t.data.indexOf(e)<0&&(t.data=n?e+t.data:t.data+e)}(Me[o]||(Me[o]=Pe(e[0]?function(e){for(var t,n=[{}];t=Te.exec(e.replace(Ae,""));)t[4]&&n.shift(),t[3]?n.unshift(n[0][t[3]]={}):t[4]||(n[0][t[1]]=t[2]);return n[0]}(e):e,n?"":o)),t,r),o.slice(1)},Le=function(e,t,n){return e.reduce((function(e,r,i){var o=t[i];if(o&&o.call){var c=o(n),a=c&&c.props&&c.props.className||/^go/.test(c)&&c;o=a?"."+a:c&&c.props?"":c}return e+r+(null==o?"":o)}),"")};function De(e){var t=this||{},n=e.call?e(t.p):e;return je(n.map?Le(n,[].slice.call(arguments,1),t.p):n,Ce(t.target),t.g,t.o)}De.bind({g:1});var Ne="hsla(0, 0%, 12%, 1)",Re="hsla(0, 0%, 94%, 1)",Ie="hsla(0, 0%, 21%, 1)",ze="hsla(205, 78%, 80%, 1)",$e="hsla(205, 78%, 15%, 1)",Ze="hsla(46, 78%, 60%, 1)";function qe(){var e=r(["\n  position: inline-block;\n  border-radius: 0.7rem;\n  background: ",";\n  color: ",";\n  margin: 3px;\n  font-size: 0.9rem;\n  padding: 2px 8px;\n  line-height: 0.9rem;\n  font-weight: 600;\n"]);return qe=function(){return e},e}var He=function(e){var t=e.children;return window.react.createElement("span",{className:Ue},t)},Ue=De(qe(),$e,ze);function Fe(){var e=r(["\n  display: inline-block;\n  padding: ",";\n  min-width: 120px;\n  text-align: ",";\n  width: 100%;\n  color: ",";\n  outline: none;\n  background: transparent;\n  font-size: ",";\n  font-weight: ",";\n  border: ",";\n  border-radius: 4px;\n  cursor: ",";\n  transition: background-color 0.3s;\n  &:hover {\n    background: ",";\n  }\n"]);return Fe=function(){return e},e}var Qe=function(e){var t=e.onClick,n=e.children,r=e.style,i=e.disabled,o=e.size,c=e.variant;return window.react.createElement("button",{className:Ve(i||!1,o,c),onClick:t,style:r,disabled:i},n)},Ve=function(e,t,n){return De(Fe(),"lg"===t||"link"===n?"8px":"5px","link"===n?"left":"center",e?"#666":ze,"lg"===t||"link"===n?"1em":".9em","lg"===t?700:500,"link"===n?"none":"1px solid ".concat(ze),e?"default":"pointer",e||"link"===n?"transparent":Ie)};function We(){var e=r(["\n  border-radius: 0.4rem;\n  border: 1px solid ",";\n  /* neumorphic effect- It's the new buzzword */\n  box-shadow: -4px -4px 10px 0px ",", 6px 6px 16px 0px ",";\n  padding: 1rem;\n  margin-bottom: 15px;\n"]);return We=function(){return e},e}var Be=function(e){var t=e.children;return window.react.createElement("div",{className:Ge},t)},Ge=De(We(),"rgba(43, 43, 43, 0.4)","rgba(43, 43, 43, 0.4)","rgba(0, 0, 0, 0.4)"),Ye=b((function(e,t){"undefined"!=typeof self&&self,e.exports=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(t,n){t.exports=e},function(e,t,n){var r={linear:function(e,t,n,r){return(n-t)*e/r+t},easeInQuad:function(e,t,n,r){return(n-t)*(e/=r)*e+t},easeOutQuad:function(e,t,n,r){return-(n-t)*(e/=r)*(e-2)+t},easeInOutQuad:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,n,r){return(n-t)*(e/=r)*e*e+t},easeOutCubic:function(e,t,n,r){return(n-t)*((e=e/r-1)*e*e+1)+t},easeInOutCubic:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,n,r){return(n-t)*(e/=r)*e*e*e+t},easeOutQuart:function(e,t,n,r){return-(n-t)*((e=e/r-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,n,r){return(n-t)*(e/=r)*e*e*e*e+t},easeOutQuint:function(e,t,n,r){return(n-t)*((e=e/r-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,n,r){var i=n-t;return-i*Math.cos(e/r*(Math.PI/2))+i+t},easeOutSine:function(e,t,n,r){return(n-t)*Math.sin(e/r*(Math.PI/2))+t},easeInOutSine:function(e,t,n,r){return-(n-t)/2*(Math.cos(Math.PI*e/r)-1)+t},easeInExpo:function(e,t,n,r){return 0==e?t:(n-t)*Math.pow(2,10*(e/r-1))+t},easeOutExpo:function(e,t,n,r){var i=n-t;return e==r?t+i:i*(1-Math.pow(2,-10*e/r))+t},easeInOutExpo:function(e,t,n,r){var i=n-t;return 0===e?t:e===r?t+i:(e/=r/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,n,r){return-(n-t)*(Math.sqrt(1-(e/=r)*e)-1)+t},easeOutCirc:function(e,t,n,r){return(n-t)*Math.sqrt(1-(e=e/r-1)*e)+t},easeInOutCirc:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,n,r){var i,o,c,a=n-t;return c=1.70158,0===e?t:1==(e/=r)?t+a:((o=0)||(o=.3*r),(i=a)<Math.abs(a)?(i=a,c=o/4):c=o/(2*Math.PI)*Math.asin(a/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e*r-c)*(2*Math.PI)/o)+t)},easeOutElastic:function(e,t,n,r){var i,o,c,a=n-t;return c=1.70158,0===e?t:1==(e/=r)?t+a:((o=0)||(o=.3*r),(i=a)<Math.abs(a)?(i=a,c=o/4):c=o/(2*Math.PI)*Math.asin(a/i),i*Math.pow(2,-10*e)*Math.sin((e*r-c)*(2*Math.PI)/o)+a+t)},easeInOutElastic:function(e,t,n,r){var i,o,c,a=n-t;return c=1.70158,0===e?t:2==(e/=r/2)?t+a:((o=0)||(o=r*(.3*1.5)),(i=a)<Math.abs(a)?(i=a,c=o/4):c=o/(2*Math.PI)*Math.asin(a/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e*r-c)*(2*Math.PI)/o)*-.5+t:i*Math.pow(2,-10*(e-=1))*Math.sin((e*r-c)*(2*Math.PI)/o)*.5+a+t)},easeInBack:function(e,t,n,r,i){return void 0===i&&(i=1.70158),(n-t)*(e/=r)*e*((i+1)*e-i)+t},easeOutBack:function(e,t,n,r,i){return void 0===i&&(i=1.70158),(n-t)*((e=e/r-1)*e*((i+1)*e+i)+1)+t},easeInOutBack:function(e,t,n,r,i){var o=n-t;return void 0===i&&(i=1.70158),(e/=r/2)<1?o/2*(e*e*((1+(i*=1.525))*e-i))+t:o/2*((e-=2)*e*((1+(i*=1.525))*e+i)+2)+t},easeInBounce:function(e,t,n,i){var o=n-t;return o-r.easeOutBounce(i-e,0,o,i)+t},easeOutBounce:function(e,t,n,r){var i=n-t;return(e/=r)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,t,n,i){var o=n-t;return e<i/2?.5*r.easeInBounce(2*e,0,o,i)+t:.5*r.easeOutBounce(2*e-i,0,o,i)+.5*o+t}};e.exports=r},function(e,t,n){e.exports=n(3)},function(e,t,n){n.r(t);var r,i,o=n(0),c=n.n(o),a=n(1),s=n.n(a);function l(e,t){return e+Math.random()*(t-e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.Circle=0]="Circle",e[e.Square=1]="Square",e[e.Strip=2]="Strip"}(r||(r={})),function(e){e[e.Positive=1]="Positive",e[e.Negative=-1]="Negative"}(i||(i={}));var h=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"context",void 0),u(this,"radius",void 0),u(this,"x",void 0),u(this,"y",void 0),u(this,"w",void 0),u(this,"h",void 0),u(this,"vx",void 0),u(this,"vy",void 0),u(this,"shape",void 0),u(this,"angle",void 0),u(this,"angularSpin",void 0),u(this,"color",void 0),u(this,"rotateY",void 0),u(this,"rotationDirection",void 0),u(this,"getOptions",void 0),this.getOptions=n;var c=this.getOptions(),a=c.colors,s=c.initialVelocityX,h=c.initialVelocityY;this.context=t,this.x=r,this.y=o,this.w=l(5,20),this.h=l(5,20),this.radius=l(5,10),this.vx=l(-s,s),this.vy=l(-h,0),this.shape=Math.floor(0+3*Math.random()),this.angle=l(0,360)*Math.PI/180,this.angularSpin=l(-.2,.2),this.color=a[Math.floor(Math.random()*a.length)],this.rotateY=l(0,1),this.rotationDirection=l(0,1)?i.Positive:i.Negative}var t;return(t=[{key:"update",value:function(){var e=this.getOptions(),t=e.gravity,n=e.wind,o=e.friction,c=e.opacity,a=e.drawShape;this.x+=this.vx,this.y+=this.vy,this.vy+=t,this.vx+=n,this.vx*=o,this.vy*=o,this.rotateY>=1&&this.rotationDirection===i.Positive?this.rotationDirection=i.Negative:this.rotateY<=-1&&this.rotationDirection===i.Negative&&(this.rotationDirection=i.Positive);var s=.1*this.rotationDirection;if(this.rotateY+=s,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=c,this.context.lineCap="round",this.context.lineWidth=2,a&&"function"==typeof a)a.call(this,this.context);else switch(this.shape){case r.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case r.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case r.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,"canvas",void 0),f(this,"context",void 0),f(this,"getOptions",void 0),f(this,"x",0),f(this,"y",0),f(this,"w",0),f(this,"h",0),f(this,"lastNumberOfPieces",0),f(this,"tweenInitTime",Date.now()),f(this,"particles",[]),f(this,"particlesGenerated",0),f(this,"removeParticleAt",(function(e){r.particles.splice(e,1)})),f(this,"getParticle",(function(){var e=l(r.x,r.w+r.x),t=l(r.y,r.h+r.y);return new h(r.context,r.getOptions,e,t)})),f(this,"animate",(function(){var e=r.canvas,t=r.context,n=r.particlesGenerated,i=r.lastNumberOfPieces,o=r.getOptions(),c=o.run,a=o.recycle,s=o.numberOfPieces,l=o.debug,u=o.tweenFunction,h=o.tweenDuration;if(!c)return!1;var f=r.particles.length,p=a?f:n,d=Date.now();if(p<s){i!==s&&(r.tweenInitTime=d,r.lastNumberOfPieces=s);for(var g=r.tweenInitTime,m=u(d-g>h?h:Math.max(0,d-g),p,s,h),w=Math.round(m-p),v=0;v<w;v++)r.particles.push(r.getParticle());r.particlesGenerated+=w}return l&&(t.font="12px sans-serif",t.fillStyle="#333",t.textAlign="right",t.fillText("Particles: ".concat(f),e.width-10,e.height-20)),r.particles.forEach((function(t,n){t.update(),(t.y>e.height||t.y<-100||t.x>e.width+100||t.x<-100)&&(a&&p<=s?r.particles[n]=r.getParticle():r.removeParticleAt(n))})),f>0||p<s})),this.canvas=t;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.getOptions=n};function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m={width:"undefined"!=typeof window?window.innerWidth:300,height:"undefined"!=typeof window?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:s.a.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},w=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),g(this,"canvas",void 0),g(this,"context",void 0),g(this,"_options",void 0),g(this,"generator",void 0),g(this,"rafId",void 0),g(this,"setOptionsWithDefaults",(function(e){var t={confettiSource:{x:0,y:0,w:r.canvas.width,h:0}};r._options=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(n,!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{},m,{},e),Object.assign(r,e.confettiSource)})),g(this,"update",(function(){var e=r.options,t=e.run,n=e.onConfettiComplete,i=r.canvas,o=r.context;t&&(o.fillStyle="white",o.clearRect(0,0,i.width,i.height)),r.generator.animate()?r.rafId=requestAnimationFrame(r.update):(n&&"function"==typeof n&&r.generator.particlesGenerated>0&&n.call(r,r),r._options.run=!1)})),g(this,"reset",(function(){r.generator&&r.generator.particlesGenerated>0&&(r.generator.particlesGenerated=0,r.generator.particles=[],r.generator.lastNumberOfPieces=0)})),g(this,"stop",(function(){r.options={run:!1},r.rafId&&(cancelAnimationFrame(r.rafId),r.rafId=void 0)})),this.canvas=t;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.generator=new p(this.canvas,(function(){return r.options})),this.options=n,this.update()}var t;return(t=[{key:"options",get:function(){return this._options},set:function(e){var t=this._options&&this._options.run,n=this._options&&this._options.recycle;this.setOptionsWithDefaults(e),this.generator&&(Object.assign(this.generator,this.options.confettiSource),"boolean"==typeof e.recycle&&e.recycle&&!1===n&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),"boolean"==typeof e.run&&e.run&&!1===t&&this.update()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(n,!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"ReactConfetti",(function(){return A}));var S=c.a.createRef(),C=function(e){function t(e){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return r=function(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?E(e):t}(this,(n=k(t)).call.apply(n,[this,e].concat(o))),_(E(r),"canvas",c.a.createRef()),_(E(r),"confetti",void 0),r.canvas=e.canvasRef||S,r}var n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(t,e),(n=[{key:"componentDidMount",value:function(){if(this.canvas.current){var e=T(this.props)[0];this.confetti=new w(this.canvas.current,e)}}},{key:"componentDidUpdate",value:function(){var e=T(this.props)[0];this.confetti&&(this.confetti.options=e)}},{key:"componentWillUnmount",value:function(){this.confetti&&this.confetti.stop(),this.confetti=void 0}},{key:"render",value:function(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(T(this.props),2),t=e[0],n=e[1],r=x({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},n.style);return c.a.createElement("canvas",b({width:t.width,height:t.height,ref:this.canvas},n,{style:r}))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(o.Component);function T(e){var t={},n={},r=[].concat(function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(Object.keys(m)),["confettiSource","drawShape","onConfettiComplete"]),i=["canvasRef"];for(var o in e){var c=e[o];r.includes(o)?t[o]=c:i.includes(o)?i[o]=c:n[o]=c}return[t,n,{}]}_(C,"defaultProps",x({},m)),_(C,"displayName","ReactConfetti");var A=c.a.forwardRef((function(e,t){return c.a.createElement(C,b({canvasRef:t},e))}));t.default=A}]).default}(o)})),Xe=v(Ye),Je=(Ye.ReactConfetti,function(e){var t=e.label,n=e.value;return window.react.createElement("span",{role:"img","aria-label":t},n)}),Ke=window.react.memo((function(){return window.react.createElement(window.react.Fragment,null,window.react.createElement(Xe,{recycle:!1}),window.react.createElement("h2",{style:{marginTop:"0px",fontWeight:500}},window.react.createElement(Je,{label:"Party",value:"🎉"})," ",(e=Math.floor(Math.random()*Ee.length),Ee[e])));var e}));function et(){var e=r(["\n  display: block;\n  position: relative;\n  bottom: 0;\n  margin: 40px auto 0px auto;\n  width: 120%;\n"]);return et=function(){return e},e}var tt=function(){return window.react.createElement("img",{src:"https://res.cloudinary.com/gojutin/image/upload/v1583169134/playground-plugin-challenges/about.gif",alt:"Demo GIF",className:nt})},nt=De(et());function rt(){var e=r(["\n  display: block;\n  position: relative;\n  bottom: 0;\n  margin: 40px auto 0px auto;\n  width: 130%;\n"]);return rt=function(){return e},e}var it=function(){return window.react.createElement("img",{src:"data:image/svg+xml,%3csvg id='fd86286a-adcb-4d81-b7ed-f4cd333bf213' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' width='1036.89861' height='660' viewBox='0 0 1036.89861 660'%3e%3ctitle%3equiz%3c/title%3e%3crect x='45.02923' y='494.17018' width='785.45192' height='2.78529' fill='%233f3d56'/%3e%3crect width='899.86782' height='437.90359' fill='%233f3d56'/%3e%3cpath d='M981.41852%2c153.68489V141.65457H953.74878V120H941.71847v21.65457H121.25075V120H109.22043v21.65457H81.55069v12.03032h27.66974V524.2187H81.55069V536.249h27.66974v21.65457h12.03032V536.249H941.71847v21.65457h12.03031V536.249h27.66974V524.2187H953.74878V153.68489Zm-39.7%2c370.53381H121.25075V153.68489H941.71847Z' transform='translate(-81.55069 -120)' opacity='0.1'/%3e%3crect x='397.73891' y='57.74553' width='141.88698' height='134.9673' fill='%23d0cde1'/%3e%3crect x='413.86243' y='73.86905' width='109.63994' height='83.84231' fill='%236c63ff'/%3e%3crect x='437.98851' y='87.64755' width='38.437' height='38.437' fill='%23f2f2f2'/%3e%3cpath d='M534.25342%2c217.2593v46.67356H580.927V217.2593Zm44.64908%2c44.649H536.27789V219.28377H578.9025Z' transform='translate(-81.55069 -120)' fill='%233f3d56'/%3e%3crect x='413.75384' y='166.03325' width='59.63671' height='3.13877' fill='%23f2f2f2'/%3e%3ccircle cx='468.68239' cy='65.59246' r='6.27755' fill='%233f3d56'/%3e%3crect x='451.25154' y='252.40895' width='141.88698' height='134.9673' fill='%23d0cde1'/%3e%3crect x='467.37506' y='268.53247' width='109.63994' height='83.84231' fill='%236c63ff'/%3e%3crect x='467.26648' y='362.26606' width='59.63671' height='3.13877' fill='%23f2f2f2'/%3e%3crect x='467.26648' y='371.68238' width='59.63671' height='3.13877' fill='%23f2f2f2'/%3e%3ccircle cx='486.88382' cy='310.47628' r='12.5551' fill='%233f3d56'/%3e%3ccircle cx='522.19503' cy='310.47628' r='12.5551' fill='%23f2f2f2'/%3e%3ccircle cx='557.50625' cy='310.47628' r='12.5551' fill='%23ff6584'/%3e%3ccircle cx='522.19503' cy='260.25589' r='6.27755' fill='%233f3d56'/%3e%3crect x='234.10182' y='210.23848' width='141.88698' height='134.9673' fill='%23d0cde1'/%3e%3crect x='250.22534' y='226.362' width='109.63994' height='83.84231' fill='%236c63ff'/%3e%3ccircle cx='297.7449' cy='278.08168' r='26.61894' fill='%23f2f2f2'/%3e%3cpath d='M387.14143%2c418.61352a33.37392%2c33.37392%2c0%2c1%2c1%2c33.37392-33.37392A33.41168%2c33.41168%2c0%2c0%2c1%2c387.14143%2c418.61352Zm0-65.53424a32.16033%2c32.16033%2c0%2c1%2c0%2c32.16033%2c32.16032A32.19651%2c32.19651%2c0%2c0%2c0%2c387.14143%2c353.07928Z' transform='translate(-81.55069 -120)' fill='%233f3d56'/%3e%3crect x='250.11676' y='327.94252' width='59.63671' height='3.13877' fill='%23f2f2f2'/%3e%3crect x='250.11676' y='318.5262' width='83.17752' height='3.13877' fill='%23f2f2f2'/%3e%3ccircle cx='305.04531' cy='218.08542' r='6.27755' fill='%233f3d56'/%3e%3crect x='78.15325' y='55.33946' width='141.88698' height='134.9673' fill='%23d0cde1'/%3e%3crect x='94.27677' y='71.46299' width='109.63994' height='83.84231' fill='%236c63ff'/%3e%3crect x='137.30344' y='137.09908' width='23.58659' height='6.98967' fill='%233f3d56'/%3e%3crect x='108.78832' y='82.67952' width='80.61684' height='2.99557' fill='%233f3d56'/%3e%3crect x='108.78832' y='92.1655' width='80.61684' height='2.99557' fill='%233f3d56'/%3e%3crect x='108.78832' y='101.65148' width='80.61684' height='2.99557' fill='%233f3d56'/%3e%3crect x='108.78832' y='111.13746' width='80.61684' height='2.99557' fill='%233f3d56'/%3e%3crect x='108.78832' y='120.62344' width='80.61684' height='2.99557' fill='%233f3d56'/%3e%3crect x='94.16818' y='163.62718' width='59.63671' height='3.13877' fill='%23f2f2f2'/%3e%3crect x='94.16818' y='171.47412' width='83.17752' height='3.13877' fill='%23f2f2f2'/%3e%3ccircle cx='149.09674' cy='63.1864' r='6.27755' fill='%233f3d56'/%3e%3cpath d='M736.34136%2c263.5099l102.75768%2c7.55L868.1588%2c273.195l-1.80455-1.80455%2c5.45746%2c78.94095%2c2.72873%2c39.47048c.11025%2c1.59476.22337%2c3.18935.33075%2c4.7843.08927%2c1.326.4544%2c2.60355-1.11626%2c2.9308-3.1231.65069-6.375.92164-9.53893%2c1.32092q-9.64688%2c1.21743-19.33725%2c2.04886a490.06%2c490.06%2c0%2c0%2c1-77.70424.48715q-9.69743-.71021-19.36133-1.80753c-2.396-.27191-5.3699-.374-6.24485-3.06059-.90221-2.77026-1.05707-5.91942-1.46487-8.79368q-2.72528-19.20842-3.71435-38.61375a443.03351%2c443.03351%2c0%2c0%2c1%2c2.73037-77.25819q.581-4.70689%2c1.26884-9.39932c.33136-2.27193-3.14569-3.25277-3.48017-.95945a446.73739%2c446.73739%2c0%2c0%2c0-4.45859%2c80.001q.69924%2c20.07207%2c3.21363%2c40.02566.63617%2c5.03973%2c1.38148%2c10.065c.39608%2c2.66571.49363%2c5.80938%2c2.08021%2c8.10011%2c1.5307%2c2.21007%2c4.1012%2c2.91906%2c6.62733%2c3.25582%2c3.21513.42861%2c6.45157.73575%2c9.67944%2c1.0507a489.84415%2c489.84415%2c0%2c0%2c0%2c80.6337%2c1.19277q10.14215-.6871%2c20.24992-1.79435%2c4.9792-.54577%2c9.94649-1.19372%2c2.43128-.31716%2c4.85969-.656a22.37512%2c22.37512%2c0%2c0%2c0%2c4.46666-.77769c3.0408-1.0963%2c3.03979-4.02934%2c2.85083-6.76264l-.70285-10.16663-1.40571-20.33328-5.66418-81.93114-.70286-10.16664a1.85761%2c1.85761%2c0%2c0%2c0-1.80454-1.80454l-102.75768-7.55-29.05976-2.13512c-2.31712-.17025-2.3063%2c3.43964%2c0%2c3.60909Z' transform='translate(-81.55069 -120)' fill='%23d0cde1'/%3e%3cpath d='M780.37753%2c306.11775c.51883-1.37759-.78584%2c1.58957-.13064.27681.17412-.34888.33685-.70156.52146-1.04538a19.938%2c19.938%2c0%2c0%2c1%2c1.21978-1.98189c.4429-.63424%2c1.11587-.87887-.19388.22431a9.44307%2c9.44307%2c0%2c0%2c0%2c.76-.88085%2c22.19276%2c22.19276%2c0%2c0%2c1%2c1.95193-1.89242c.49473-.42459%2c1.43128-.78593-.24435.15444.33133-.186.63882-.46442.95535-.67724q.9737-.65463%2c2.00847-1.21164.5171-.27856%2c1.04726-.53188c.60014-.2868%2c1.59956-.38544-.28989.098.81106-.20751%2c1.59594-.59126%2c2.40714-.82152q1.034-.29351%2c2.09089-.49405c.62942-.11861%2c1.77166-.029-.37771.02041.38435-.00883.77774-.083%2c1.16237-.109a21.941%2c21.941%2c0%2c0%2c1%2c2.3288-.03489c.38807.015.77324.05348%2c1.16057.07661%2c1.28677.07684-1.94745-.35742-.00042.01354a19.65246%2c19.65246%2c0%2c0%2c1%2c2.25936.56993%2c8.60024%2c8.60024%2c0%2c0%2c0%2c1.10534.38783l-.99838-.43015q.36739.1596.728.334a20.08614%2c20.08614%2c0%2c0%2c1%2c2.08%2c1.16346c.33359.21337.65269.445.97986.6675%2c1.0273.6987-1.37676-1.17594.08013.10115q.74146.65%2c1.42243%2c1.36522.40885.42883.79486.87871c.43314.50441.76438%2c1.42567-.139-.22557.82691%2c1.51148%2c1.86035%2c2.88245%2c2.63913%2c4.44069.66429%2c1.32914-.60539-1.65088-.10088-.25161.136.37728.28226.74985.41061%2c1.13q.38509%2c1.14075.66457%2c2.31361c.18657.78308.27792%2c1.58253.44991%2c2.36621-.47335-2.15689-.12719-.9093-.08058-.32327q.06361.7997.07673%2c1.60234.016%2c1.00139-.04859%2c2.00226c-.02547.39066-.113.806-.10777%2c1.196-.0271-2.025.14657-1.01649.02064-.3363a22.68171%2c22.68171%2c0%2c0%2c1-.56036%2c2.33448q-.1715.5768-.3741%2c1.14342-.18006.50261-.37956.9978.58181-1.3554.09275-.25763c-1.99328%2c3.98659-4.47673%2c7.70371-6.43726%2c11.70413a53.40246%2c53.40246%2c0%2c0%2c0-4.67971%2c32.16207%2c7.22166%2c7.22166%2c0%2c0%2c0%2c3.31719%2c4.31382%2c7.37059%2c7.37059%2c0%2c0%2c0%2c5.562.72765c4.06859-1.31665%2c5.66815-4.86891%2c5.04146-8.87923-.22076-1.41272.11579%2c1.25968-.0286-.1628-.06192-.61005-.12384-1.219-.167-1.83078q-.12926-1.83419-.10533-3.6744.02021-1.57609.15156-3.14776a9.3298%2c9.3298%2c0%2c0%2c1%2c.18971-1.82894c-.00117.00389-.23251%2c1.45125-.07532.61815.06487-.34379.11114-.69191.1727-1.03649a44.59427%2c44.59427%2c0%2c0%2c1%2c1.79247-6.85428c.17323-.49616.36265-.98575.54522-1.47842.48191-1.30049-.50125%2c1.044.08123-.21473.51956-1.12281%2c1.05732-2.2309%2c1.649-3.31783%2c2.48482-4.56487%2c5.29537-8.842%2c7.1056-13.752a28.85557%2c28.85557%2c0%2c0%2c0%2c1.60166-12.0305c-.66969-8.41857-4.23915-16.96036-10.89178-22.411a28.40744%2c28.40744%2c0%2c0%2c0-25.0969-5.71855A30.00658%2c30.00658%2c0%2c0%2c0%2c766.45683%2c302.28c-1.33341%2c3.54049%2c1.47926%2c8.06787%2c5.04147%2c8.87923%2c4.10613.93524%2c7.45156-1.25067%2c8.87923-5.04147Z' transform='translate(-81.55069 -120)' fill='%23d0cde1'/%3e%3cpath d='M805.59589%2c392.11633a6%2c6%2c0%2c1%2c0-6-6%2c6.06754%2c6.06754%2c0%2c0%2c0%2c6%2c6Z' transform='translate(-81.55069 -120)' fill='%23d0cde1'/%3e%3crect x='39.7895' y='481.98978' width='33.68489' height='33.68489' fill='%236c63ff'/%3e%3cpath d='M175.47663%2c616.42616H134.57355V575.52308h40.90308Zm-39.12469-1.77839h37.34629V577.30148H136.35194Z' transform='translate(-81.55069 -120)' fill='%233f3d56'/%3e%3cpath d='M905.026%2c420.15645l-4.81212%2c14.43638s-30.0758%2c34.88792-8.42123%2c39.70005%2c24.06064-37.294%2c24.06064-37.294l6.01516-12.03032Z' transform='translate(-81.55069 -120)' fill='%23ffb8b8'/%3e%3cpath d='M938.71089%2c245.71683s-7.2182-1.203-9.62426%2c27.66973-3.60909%2c79.4001-3.60909%2c79.4001L897.8078%2c423.76554l34.88793%2c10.82729%2c16.84244-80.60314Z' transform='translate(-81.55069 -120)' fill='%23575a89'/%3e%3cpolygon points='841.521 555.199 837.912 578.057 870.394 578.057 869.191 555.199 841.521 555.199' fill='%23ffb8b8'/%3e%3cpolygon points='946.185 580.463 943.778 611.742 965.433 614.148 965.433 578.057 946.185 580.463' fill='%23ffb8b8'/%3e%3cpath d='M936.30482%2c376.8473%2c908.63509%2c535.6475l7.21819%2c144.36382h37.294V548.88085l36.09095-67.36978L1018.111%2c565.7233l7.21819%2c140.75473%2c40.90308-7.2182L1056.608%2c562.1142s-7.21819-182.86084-14.43639-185.2669S936.30482%2c376.8473%2c936.30482%2c376.8473Z' transform='translate(-81.55069 -120)' fill='%232f2e41'/%3e%3cpath d='M926.68057%2c690.83861s0-12.03032-9.62426-4.81213S895.40174%2c706.478%2c895.40174%2c706.478s-45.71521%2c25.26366-13.23335%2c28.87276%2c52.9334-16.84245%2c52.9334-16.84245l3.6091%2c3.6091s19.2485-3.6091%2c19.2485-8.42122a92.88949%2c92.88949%2c0%2c0%2c0-1.203-12.03032s-2.5303-20.40612-5.47576-16.21822S931.49269%2c698.0568%2c926.68057%2c690.83861Z' transform='translate(-81.55069 -120)' fill='%232f2e41'/%3e%3cpath d='M1048.18678%2c724.5235s-21.65457-10.82728-26.4667-1.203-8.42122%2c28.87277-8.42122%2c28.87277S997.65945%2c782.269%2c1025.32918%2c779.863s26.4667-18.04548%2c26.4667-21.65457-1.203-12.03032%2c0-15.63942S1048.18678%2c724.5235%2c1048.18678%2c724.5235Z' transform='translate(-81.55069 -120)' fill='%232f2e41'/%3e%3ccircle cx='919.11633' cy='44.51218' r='33.68489' fill='%23ffb8b8'/%3e%3cpolygon points='896.86 60.753 895.657 104.062 938.966 100.453 938.966 60.753 896.86 60.753' fill='%23ffb8b8'/%3e%3cpath d='M1022.92311%2c198.79859s-20.45154%2c13.23335-26.4667%2c15.63941-19.24851-9.62425-19.24851-9.62425-3.60909%2c2.40606-3.60909%2c4.81212-2.40606%2c12.03032-2.40606%2c12.03032L942.32%2c316.69571l2.40606%2c67.36978s87.82133%2c8.42122%2c97.44558-2.40606-4.81212-166.0184-4.81212-166.0184Z' transform='translate(-81.55069 -120)' fill='%23d0cde1'/%3e%3cpath d='M1016.908%2c224.06225s-32.48186%2c12.03032-43.30915%2c1.203C973.59881%2c225.26529%2c989.23822%2c228.87438%2c1016.908%2c224.06225Z' transform='translate(-81.55069 -120)' opacity='0.1'/%3e%3cpath d='M1102.32322%2c485.12017c-13.23335%2c8.42122-56.5425%2c19.24851-56.5425%2c19.24851s-4.728-101.83661-21.65457-117.89713c-16.83041-15.98826-44.30776-131.25081-19.59744-151.29329a3.70257%2c3.70257%2c0%2c0%2c1%2c.34893-.28872l15.63941-36.091s2.40606-3.6091%2c7.21819%2c1.203a131.36557%2c131.36557%2c0%2c0%2c1%2c10.82729%2c13.23335l.68581.27667%2c32.99908%2c12.95668-13.23335%2c58.94856S1115.55657%2c476.69894%2c1102.32322%2c485.12017Z' transform='translate(-81.55069 -120)' fill='%23575a89'/%3e%3cpath d='M1039.24834%2c213.51164l-9.107%2c33.40822-25.6126-11.7416a3.70257%2c3.70257%2c0%2c0%2c1%2c.34893-.28872l15.63941-36.091s2.40606-3.6091%2c7.21819%2c1.203a131.36557%2c131.36557%2c0%2c0%2c1%2c10.82729%2c13.23335Z' transform='translate(-81.55069 -120)' opacity='0.1'/%3e%3cpath d='M976.60639%2c204.21223l-3.6091%2c40.90308-.19238%2c1.86469L945.32756%2c508.57929s-24.06064-8.42123-32.48186-18.04548%2c19.24851-116.69409%2c19.24851-116.69409l2.40606-134.73957s21.34178-15.02585%2c30.06376-23.27871c2.04509-1.92482%2c3.39263-3.4767%2c3.62114-4.391C969.3882%2c206.61829%2c976.60639%2c204.21223%2c976.60639%2c204.21223Z' transform='translate(-81.55069 -120)' fill='%23575a89'/%3e%3cpath d='M976.60639%2c204.21223l-3.6091%2c40.90308-.19238%2c1.86469-17.25158-2.4662%2c9.0107-28.69236c2.04509-1.92482%2c3.39263-3.4767%2c3.62114-4.391C969.3882%2c206.61829%2c976.60639%2c204.21223%2c976.60639%2c204.21223Z' transform='translate(-81.55069 -120)' opacity='0.1'/%3e%3cpath d='M1040.96859%2c406.9231l-13.23335%2c12.03031s6.01516%2c25.26367%2c13.23335%2c26.4667c0%2c0%2c4.81213-7.21819%2c6.01516-13.23335s12.03032-12.03031%2c12.03032-12.03031Z' transform='translate(-81.55069 -120)' fill='%23ffb8b8'/%3e%3cpath d='M1056.608%2c224.06225l15.63941%2c2.40607s51.73037%2c87.82132%2c45.71521%2c119.10015-54.13643%2c85.41526-54.13643%2c85.41526l-30.0758-24.06063%2c44.51218-60.1516L1055.405%2c274.58959Z' transform='translate(-81.55069 -120)' fill='%23575a89'/%3e%3cpath d='M966.90608%2c168.29567s0-29.70655%2c7.21893-36.458h8.66271s10.1065-14.85328%2c23.10057-9.45209%2c34.65086%2c14.85328%2c33.20708%2c29.70655-5.94648%2c24.45041-5.94648%2c24.45041-2.40607%2c0-7.76912-8.07466c-7.16647-10.78991%2c9.38461-7.42664-12.27218-11.47753s-34.65086-9.45209-37.53843-4.0509S966.90608%2c168.29567%2c966.90608%2c168.29567Z' transform='translate(-81.55069 -120)' fill='%232f2e41'/%3e%3cpath d='M982.645%2c133.85359s1.15374-8.68188%2c5.90311-10.55126Z' transform='translate(-81.55069 -120)' fill='%232f2e41'/%3e%3cpath d='M982.62423%2c135.63951s-2.40982-8.42015%2c1.19767-12.03086Z' transform='translate(-81.55069 -120)' fill='%232f2e41'/%3e%3c/svg%3e",alt:"Dev Focus",className:ot})},ot=De(rt()),ct=function(e){var t=e.when,n=e.children;return window.react.createElement(window.react.Fragment,null,t&&n)};function at(){var e=r(["\n  margin: 5px;\n  padding: 0px;\n  font-size: 0.95rem;\n  color: ",";\n  font-weight: 500;\n"]);return at=function(){return e},e}function st(){var e=r(["\n  margin-top: 0px;\n  font-size: 1.2rem;\n  font-weight: 600;\n"]);return st=function(){return e},e}function lt(e,t){return e.startLineNumber>=t.startLineNumber?1:-1}var ut=De(st()),ht=function(e){var t=e.children;return window.react.createElement("p",{className:ft},t)},ft=De(at(),Ze),pt=window.react.memo((function(e){var t=e.markers,n=e.errors,r=t.sort(lt).map((function(e){return window.react.createElement(ht,{key:e.key},"Line ",e.startLineNumber,": ",e.message)})),i=n.map((function(e,t){return"type"===e.type?window.react.createElement(ht,{key:t},"Type ",window.react.createElement("b",{style:{color:ze}},e.value)," is not allowed."):window.react.createElement(ht,{key:t},e.value)})),o=n.length+t.length,c=1===o?"":"s";return window.react.createElement(ct,{when:o>0},window.react.createElement(Be,null,window.react.createElement("p",{className:ut},o," problem",c),r,i))}));function dt(){var e=r(["\n  box-sizing: border-box;\n  padding: 5px;\n  margin: 10px 0px;\n  color: ",";\n"]);return dt=function(){return e},e}var gt=function(e){var t=e.children;return window.react.createElement("div",{className:mt},t)},mt=De(dt(),ze);function wt(){var e=r(["\n  display: inline-block;\n  box-sizing: border-box;\n  padding: 8px;\n  font-weight: 500;\n  width: 100%;\n  color: ",";\n  background: ",";\n  font-size: 1.1em;\n  border: none;\n  border-radius: 4px;\n  transition: background-color 0.3s;\n  &:hover {\n  }\n"]);return wt=function(){return e},e}var vt=function(e){var t=e.onChange,n=e.value,r=e.placeholder;return window.react.createElement("input",{className:bt,value:n,onChange:t,placeholder:r})},bt=De(wt(),Re,Ie);function yt(){var e=r(["\n  /* Collides with Playground styles (.raised) */\n  margin: 5px 0px !important;\n  padding: 5px 0px;\n  text-transform: uppercase;\n  color: ",";\n"]);return yt=function(){return e},e}var xt=function(e){var t=e.children;return window.react.createElement("h3",{className:kt},t)},kt=De(yt(),Ze);function Et(){var e=r(["\n  background: ",";\n  min-height: 90vh;\n  padding: 20px;\n  color: ",";\n\n  main {\n    max-width: 420px;\n    margin: 0 auto;\n\n    h1 {\n      font-weight: 500;\n      color: ",";\n      line-height: 1;\n      font-size: 30px;\n      margin: 20px 0px 10px 0px;\n    }\n  }\n"]);return Et=function(){return e},e}var Ot=function(e){var t=e.title,n=e.children;return window.react.createElement("div",{className:_t},window.react.createElement("main",null,window.react.createElement("header",null,window.react.createElement("h1",null,t)),n))},_t=De(Et(),Ne,Re,Re);function St(){var e=r(["\n  color: "," !important;\n  text-decoration: none;\n  border-bottom: 2px solid transparent;\n  transition: border-bottom-color 0.5s;\n  &:hover {\n    border-bottom-color: ",";\n  }\n"]);return St=function(){return e},e}var Ct=function(){return window.react.createElement("p",{style:{fontWeight:"bold"}},"View the"," ",window.react.createElement("a",{href:"https://github.com/gojutin/playground-plugin-challenges/blob/master/README.md",target:"_blank",rel:"noopener noreferrer",className:Tt},"README")," ","for detailed usage instructions.")},Tt=De(St(),ze,ze);function At(){var e=r(["\n  font-weight: 500;\n  color: "," !important;\n  line-height: 1;\n  font-size: 2rem !important;\n  margin: 20px 0px 10px 0px;\n"]);return At=function(){return e},e}var Pt=function(e){var t=e.children,n=e.color,r=e.style;return window.react.createElement("h1",{className:Mt(n||Re),style:r},t)},Mt=function(e){return De(At(),e)},jt=window.react.useState,Lt=["Create a GitHub Gist with some markdown files.","Drop in the Gist Id and enjoy your challenges."],Dt=function(e){var t=e.onSubmit,n=i(jt(""),2),r=n[0],o=n[1];return window.react.createElement(Ot,null,window.react.createElement(Pt,{style:{padding:"10px 20px"},color:ze},"Welcome to Challenges!"),window.react.createElement("br",null),window.react.createElement(Be,null,window.react.createElement(vt,{placeholder:"Gist Id",value:r,onChange:function(e){return o(e.target.value)}}),window.react.createElement(Qe,{onClick:function(){o("f75f76e5c196ccdcec0e95cb3877e6f8")},variant:"link"},"Load Demo"),window.react.createElement("div",null,window.react.createElement(Qe,{size:"lg",onClick:function(){t(r)},disabled:r.length<20},"Submit"))),window.react.createElement(it,null),window.react.createElement("h3",{style:{color:Ze,margin:0,marginTop:"-40px"}},"Turn your Gists into Interactive Coding Challenges!"),window.react.createElement("br",null),window.react.createElement("div",{style:{width:"130%"}},Lt.map((function(e,t){return window.react.createElement("div",{style:{display:"flex",alignItems:"center"},key:e},window.react.createElement(xt,null,t+1,"."),window.react.createElement("h4",{style:{margin:0,marginLeft:"10px"}},e))}))),window.react.createElement(Ct,null),window.react.createElement(tt,null))},Nt=b((function(e,t){var n;"undefined"!=typeof self&&self,e.exports=(n=o,function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,t,n){(function(t){for(var r=n(3),i="undefined"==typeof window?t:window,o=["moz","webkit"],c="AnimationFrame",a=i["request"+c],s=i["cancel"+c]||i["cancelRequest"+c],l=0;!a&&l<o.length;l++)a=i[o[l]+"Request"+c],s=i[o[l]+"Cancel"+c]||i[o[l]+"CancelRequest"+c];if(!a||!s){var u=0,h=0,f=[];a=function(e){if(0===f.length){var t=r(),n=Math.max(0,1e3/60-(t-u));u=n+t,setTimeout((function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(u)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return f.push({handle:++h,callback:e,cancelled:!1}),h},s=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return a.call(i,e)},e.exports.cancel=function(){s.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=a,e.cancelAnimationFrame=s}}).call(this,n(2))},function(e,t,n){n.r(t);var r=n(0),i=n.n(r),o=function(e){return new RegExp(/<[a-z][\s\S]*>/i).test(e)},c=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes},a=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},s="TYPE_CHARACTER",l="REMOVE_CHARACTER",u="REMOVE_ALL",h="REMOVE_LAST_VISIBLE_NODE",f="PAUSE_FOR",p="CALL_FUNCTION",d="ADD_HTML_TAG_ELEMENT",g="CHANGE_DELETE_SPEED",m="CHANGE_DELAY",w="CHANGE_CURSOR",v="HTML_TAG",b="TEXT_NODE";function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){k(e,t,n[t])}))}return e}function x(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=function(){function e(t,n){var E=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),k(this,"state",{cursorAnimation:null,lastFrameTime:null,pauseUntil:null,eventQueue:[],eventLoop:null,eventLoopPaused:!1,reverseCalledEvents:[],calledEvents:[],visibleNodes:[],initialOptions:null,elements:{container:null,wrapper:document.createElement("span"),cursor:document.createElement("span")}}),k(this,"options",{strings:null,cursor:"|",delay:"natural",deleteSpeed:"natural",loop:!1,autoStart:!1,devMode:!1,skipAddStyles:!1,wrapperClassName:"Typewriter__wrapper",cursorClassName:"Typewriter__cursor",stringSplitter:null}),k(this,"setupWrapperElement",(function(){E.state.elements.wrapper.className=E.options.wrapperClassName,E.state.elements.cursor.className=E.options.cursorClassName,E.state.elements.cursor.innerHTML=E.options.cursor,E.state.elements.container.innerHTML="",E.state.elements.container.appendChild(E.state.elements.wrapper),E.state.elements.container.appendChild(E.state.elements.cursor)})),k(this,"start",(function(){return E.state.eventLoopPaused=!1,E.runEventLoop(),E})),k(this,"pause",(function(){return E.state.eventLoopPaused=!0,E})),k(this,"stop",(function(){return E.state.eventLoop&&(Object(r.cancel)(E.state.eventLoop),E.state.eventLoop=null),E})),k(this,"pauseFor",(function(e){return E.addEventToQueue(f,{ms:e}),E})),k(this,"typeOutAllStrings",(function(){return"string"==typeof E.options.strings?(E.typeString(E.options.strings).pauseFor(1500),E):(E.options.strings.forEach((function(e){E.typeString(e).pauseFor(1500).deleteAll()})),E)})),k(this,"typeString",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(o(e))return E.typeOutHTMLString(e,t);if(e){var n=E.options||{},r=n.stringSplitter,i="function"==typeof r?r(e):e.split("");E.typeCharacters(i,t)}return E})),k(this,"typeOutHTMLString",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(e);if(n.length>0)for(var r=0;r<n.length;r++){var i=n[r],o=i.innerHTML;i&&3!==i.nodeType?(i.innerHTML="",E.addEventToQueue(d,{node:i,parentNode:t}),E.typeString(o,i)):i.textContent&&E.typeString(i.textContent,t)}return E})),k(this,"deleteAll",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"natural";return E.addEventToQueue(u,{speed:e}),E})),k(this,"changeDeleteSpeed",(function(e){if(!e)throw new Error("Must provide new delete speed");return E.addEventToQueue(g,{speed:e}),E})),k(this,"changeDelay",(function(e){if(!e)throw new Error("Must provide new delay");return E.addEventToQueue(m,{delay:e}),E})),k(this,"changeCursor",(function(e){if(!e)throw new Error("Must provide new cursor");return E.addEventToQueue(w,{cursor:e}),E})),k(this,"deleteChars",(function(e){if(!e)throw new Error("Must provide amount of characters to delete");for(var t=0;t<e;t++)E.addEventToQueue(l);return E})),k(this,"callFunction",(function(e,t){if(!e||"function"!=typeof e)throw new Error("Callbak must be a function");return E.addEventToQueue(p,{cb:e,thisArg:t}),E})),k(this,"typeCharacters",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((function(e){E.addEventToQueue(s,{character:e,node:t})})),E})),k(this,"removeCharacters",(function(e){if(!e||!Array.isArray(e))throw new Error("Characters must be an array");return e.forEach((function(){E.addEventToQueue(l)})),E})),k(this,"addEventToQueue",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return E.addEventToStateProperty(e,t,n,"eventQueue")})),k(this,"addReverseCalledEvent",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=E.options.loop;return r?E.addEventToStateProperty(e,t,n,"reverseCalledEvents"):E})),k(this,"addEventToStateProperty",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i={eventName:e,eventArgs:t||{}};return E.state[r]=n?[i].concat(x(E.state[r])):[].concat(x(E.state[r]),[i]),E})),k(this,"runEventLoop",(function(){E.state.lastFrameTime||(E.state.lastFrameTime=Date.now());var e=Date.now(),t=e-E.state.lastFrameTime;if(!E.state.eventQueue.length){if(!E.options.loop)return;E.state.eventQueue=x(E.state.calledEvents),E.state.calledEvents=[],E.options=y({},E.state.initialOptions)}if(E.state.eventLoop=i()(E.runEventLoop),!E.state.eventLoopPaused){if(E.state.pauseUntil){if(e<E.state.pauseUntil)return;E.state.pauseUntil=null}var n,r=x(E.state.eventQueue),o=r.shift();if(!(t<=(n=o.eventName===h||o.eventName===l?"natural"===E.options.deleteSpeed?a(40,80):E.options.deleteSpeed:"natural"===E.options.delay?a(120,160):E.options.delay))){var c=o.eventName,k=o.eventArgs;switch(E.logInDevMode({currentEvent:o,state:E.state,delay:n}),c){case s:var O=k.character,_=k.node,S=document.createTextNode(O);_?_.appendChild(S):E.state.elements.wrapper.appendChild(S),E.state.visibleNodes=[].concat(x(E.state.visibleNodes),[{type:b,node:S}]);break;case l:r.unshift({eventName:h,eventArgs:{removingCharacterNode:!0}});break;case f:var C=o.eventArgs.ms;E.state.pauseUntil=Date.now()+parseInt(C);break;case p:var T=o.eventArgs,A=T.cb,P=T.thisArg;A.call(P,{elements:E.state.elements});break;case d:var M=o.eventArgs,j=M.node,L=M.parentNode;L?L.appendChild(j):E.state.elements.wrapper.appendChild(j),E.state.visibleNodes=[].concat(x(E.state.visibleNodes),[{type:v,node:j,parentNode:L||E.state.elements.wrapper}]);break;case u:var D=E.state.visibleNodes,N=k.speed,R=[];N&&R.push({eventName:g,eventArgs:{speed:N,temp:!0}});for(var I=0,z=D.length;I<z;I++)R.push({eventName:h,eventArgs:{removingCharacterNode:!1}});N&&R.push({eventName:g,eventArgs:{speed:E.options.deleteSpeed,temp:!0}}),r.unshift.apply(r,R);break;case h:var $=o.eventArgs.removingCharacterNode;if(E.state.visibleNodes.length){var Z=E.state.visibleNodes.pop(),q=Z.type,H=Z.node;H.parentNode.removeChild(H),q===v&&$&&r.unshift({eventName:h,eventArgs:{}})}break;case g:E.options.deleteSpeed=o.eventArgs.speed;break;case m:E.options.delay=o.eventArgs.delay;break;case w:E.options.cursor=o.eventArgs.cursor,E.state.elements.cursor.innerHTML=o.eventArgs.cursor}E.options.loop&&(o.eventName===h||o.eventArgs&&o.eventArgs.temp||(E.state.calledEvents=[].concat(x(E.state.calledEvents),[o]))),E.state.eventQueue=r,E.state.lastFrameTime=e}}})),!t)throw new Error("No container element was provided");if("string"==typeof t){var O=document.querySelector(t);if(!O)throw new Error("Could not find container element");this.state.elements.container=O}else this.state.elements.container=t;n&&(this.options=y({},this.options,n)),this.state.initialOptions=y({},this.options),this.init()}var t;return(t=[{key:"init",value:function(){this.setupWrapperElement(),this.addEventToQueue(w,{cursor:this.options.cursor},!0),this.addEventToQueue(u,null,!0),!window||window.___TYPEWRITER_JS_STYLES_ADDED___||this.options.skipAddStyles||(function(e){var t=document.createElement("style");t.appendChild(document.createTextNode(e)),document.head.appendChild(t)}(".Typewriter__cursor{-webkit-animation:Typewriter-cursor 1s infinite;animation:Typewriter-cursor 1s infinite;margin-left:1px}@-webkit-keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes Typewriter-cursor{0%{opacity:0}50%{opacity:1}100%{opacity:0}}"),window.___TYPEWRITER_JS_STYLES_ADDED___=!0),!0===this.options.autoStart&&this.options.strings&&this.typeOutAllStrings().start()}},{key:"logInDevMode",value:function(e){this.options.devMode&&console.log(e)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();n.d(t,"default",(function(){return E}))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){(function(){var n,r,i,o,c,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-c)/1e6},r=t.hrtime,o=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),a=1e9*t.uptime(),c=o-a):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,n(4))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:c}catch(e){r=c}}();var s,l=[],u=!1,h=-1;function f(){u&&s&&(u=!1,s.length?l=s.concat(l):h=-1,l.length&&p())}function p(){if(!u){var e=a(f);u=!0;for(var t=l.length;t;){for(s=l,l=[];++h<t;)s&&s[h].run();h=-1,t=l.length}s=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===c||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new d(e,t)),1!==l.length||u||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){e.exports=n},function(e,t,n){e.exports=n(7)()},function(e,t,n){var r=n(8);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,c){if(c!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){n.r(t);var r=n(5),i=n.n(r),o=(n(6),n(1));function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){function t(){var e,n,r,i,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var l=arguments.length,u=new Array(l),h=0;h<l;h++)u[h]=arguments[h];return n=function(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?s(e):t}(this,(e=a(t)).call.apply(e,[this].concat(u))),o={instance:null},(i="state")in(r=s(n))?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,n}var n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),(n=[{key:"componentDidMount",value:function(){var e=this,t=new o.default(this.typewriter,this.props.options);this.setState({instance:t},(function(){var n=e.props.onInit;n&&n(t)}))}},{key:"componentWillUnmount",value:function(){this.state.instance&&this.state.instance.stop()}},{key:"render",value:function(){var e=this;return i.a.createElement("div",{className:"Typewriter",ref:function(t){return e.typewriter=t}})}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(r.Component);n.d(t,"default",(function(){return u}))}]).default)})),Rt=v(Nt);Nt.Typewriter;function It(){var e=r(["\n  height: 15px;\n  width: 15px;\n  border-radius: 60px;\n"]);return It=function(){return e},e}function zt(){var e=r(["\n  display: flex;\n  align-items: center;\n  padding-left: 8px;\n"]);return zt=function(){return e},e}function $t(){var e=r(["\n  @keyframes moveleft {\n    from {\n      left: 0px;\n    }\n    to {\n      left: -10px;\n    }\n  }\n\n  display: flex;\n  align-items: center;\n  justify-content: flex-start;\n  font-size: 1.1rem;\n  .arrow-icon {\n    height: 40px;\n    margin-right: 5px;\n    position: relative;\n    animation: moveleft 1s infinite ease-out;\n    animation-direction: alternate;\n  }\n  .typewriter {\n    color: ",";\n    width: 45px;\n    display: flex;\n    justify-content: start;\n    padding: 4px;\n    margin: 0px 5px;\n    background: rgba(0, 0, 0, 0.8);\n    font-weight: bold;\n  }\n"]);return $t=function(){return e},e}var Zt=function(e){var t=e.meta;return window.react.createElement(Ot,null,window.react.createElement(Pt,null,(null==t?void 0:t.gistDescription)||"TypeScript Challenges"),window.react.createElement(ct,{when:!!t},window.react.createElement("div",{className:Ht},"by"," ",window.react.createElement("a",{style:{color:ze,marginLeft:"10px",textDecoration:"none"},href:null==t?void 0:t.ownerUrl,target:"_blank",rel:"noopener noreferrer"},window.react.createElement("img",{src:null==t?void 0:t.ownerAvatarUrl,className:Ut,alt:"profile-pic"})," ",null==t?void 0:t.ownerName))),window.react.createElement("br",null),window.react.createElement(Be,null,window.react.createElement(xt,null,"Objective"),window.react.createElement("p",null,"For each challenge, you will be provided some TypeScript code with errors. Supply the necessary type annotations to make all of the errors go away."),window.react.createElement(xt,null,"Rules"),window.react.createElement("ol",{style:{listStylePosition:"inside"}},window.react.createElement("li",null,"You cannot modify the source code."),window.react.createElement("li",null,"You cannot use the prohibited types."))),window.react.createElement("div",{className:qt},window.react.createElement("img",{src:"data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8' standalone='no'%3f%3e%3c!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg width='100%25' height='100%25' viewBox='0 0 48 60' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd%3bclip-rule:evenodd%3bstroke-linejoin:round%3bstroke-miterlimit:2%3b'%3e %3cg%3e %3cg transform='matrix(1%2c0%2c0%2c1%2c0%2c5.99995)'%3e %3cpath d='M4.828%2c24L14.414%2c14.414C14.776%2c14.041 14.978%2c13.541 14.978%2c13.022C14.978%2c11.924 14.076%2c11.022 12.978%2c11.022C12.459%2c11.022 11.959%2c11.224 11.586%2c11.586L0.586%2c22.586C0.211%2c22.961 0%2c23.47 0%2c24C0%2c24.53 0.211%2c25.039 0.586%2c25.414L11.586%2c36.414C11.959%2c36.776 12.459%2c36.979 12.978%2c36.979C14.076%2c36.979 14.978%2c36.076 14.978%2c34.979C14.978%2c34.459 14.776%2c33.959 14.414%2c33.586L4.828%2c24Z' style='fill:rgb(233%2c195%2c73)%3bfill-rule:nonzero%3b'/%3e %3c/g%3e %3cg transform='matrix(1%2c0%2c0%2c1%2c0%2c5.99995)'%3e %3cpath d='M46%2c22L17.828%2c22L25.414%2c14.414C25.776%2c14.041 25.978%2c13.541 25.978%2c13.022C25.978%2c11.924 25.076%2c11.022 23.978%2c11.022C23.459%2c11.022 22.959%2c11.224 22.586%2c11.586L11.587%2c22.585C11.494%2c22.678 11.41%2c22.781 11.337%2c22.891C11.304%2c22.94 11.282%2c22.993 11.254%2c23.044C11.176%2c23.164 11.12%2c23.297 11.09%2c23.437C11.073%2c23.494 11.051%2c23.549 11.039%2c23.608C10.988%2c23.867 10.988%2c24.133 11.039%2c24.392C11.051%2c24.451 11.073%2c24.506 11.09%2c24.563C11.12%2c24.703 11.176%2c24.836 11.254%2c24.956C11.282%2c25.007 11.304%2c25.06 11.337%2c25.109C11.41%2c25.219 11.494%2c25.322 11.587%2c25.415L22.586%2c36.414C22.959%2c36.776 23.459%2c36.979 23.978%2c36.979C25.076%2c36.979 25.978%2c36.076 25.978%2c34.979C25.978%2c34.459 25.776%2c33.959 25.414%2c33.586L17.828%2c26L46%2c26C47.097%2c26 48%2c25.097 48%2c24C48%2c22.903 47.097%2c22 46%2c22Z' style='fill:rgb(233%2c195%2c73)%3bfill-rule:nonzero%3b'/%3e %3c/g%3e %3c/g%3e%3c/svg%3e",className:"arrow-icon",alt:"Left Arrow"}),"Type",window.react.createElement("span",{className:"typewriter"},window.react.createElement(Rt,{options:{strings:["start"],autoStart:!0,loop:!0}})),"in the editor to begin."))},qt=De($t(),ze),Ht=De(zt()),Ut=De(It());function Ft(){var e=r(["\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: space-between;\n"]);return Ft=function(){return e},e}var Qt=window.react.useState,Vt=window.react.useEffect,Wt=window.react.useCallback,Bt=De(Ft()),Gt=window.react.memo((function(e){var t=e.currentItem,n=e.currentIndex,r=e.data,o=e.onNext,c=e.onDone,a=m(),s=a.setDebounce,l=a.setCode,u=a.code,h=a.sandbox,f=a.markers;s(!0);var p=i(Qt([]),2),d=p[0],g=p[1],w=i(Qt(!1),2),v=w[0],b=w[1],y=i(Qt("ERROR"),2),x=y[0],k=y[1];Vt((function(){"SOLUTION"!==x&&f.length&&k("ERROR")}),[f,x]),Vt((function(){"SOLUTION"!==x&&d.length&&k("ERROR")}),[d,x]);var E=Wt((function(){var e=Oe(t.start),n=Oe(t.end),r=Oe(u);"SOLUTION"!==x?h.getRunnableJS().then((function(n){var i=Oe(n),o=[];if((t.exclude||[]).forEach((function(e){r.includes(e)&&o.push({type:"type",value:e})})),i!==e&&o.push({type:"source",value:"You can't change the source code."}),g(o),o.length||f.length)k("ERROR");else if(![e,"start"].includes(r)&&!f.length&&!o.length&&"NEW"!==x){var c=null;c&&clearTimeout(c),c=setTimeout((function(){k("ANSWERED")}),500)}})):r!==n&&l(t.end,{format:"monaco"})}),[u,t.end,t.exclude,t.start,f,h,l,x]);Vt((function(){E()}),[u,E,x]);var O=["SOLUTION","ANSWERED"].includes(x),_=n+1===r.length,S=O&&!_&&!f.length,C=O&&_&&!f.length,T=t.title||"Challenge #".concat(n+1),A="Challenge ".concat(n+1," of ").concat(r.length),P=(t.exclude||[]).map((function(e){return window.react.createElement(He,{key:e},e)}));return window.react.createElement(Ot,null,window.react.createElement(He,null,A),window.react.createElement(Pt,null,T),window.react.createElement("p",null,t.description),!!P.length&&window.react.createElement("p",null,"Prohibited Types: ",P),window.react.createElement("div",{className:Bt},window.react.createElement(Qe,{onClick:function(){k("NEW"),l(t.start,{format:"monaco"}),b(!1)},style:{margin:"3px",flex:1}},"Reset"),window.react.createElement(Qe,{onClick:function(){k("SOLUTION")},style:{margin:"3px",flex:1}},"Show Solution"),window.react.createElement(ct,{when:!!t.hint},window.react.createElement(Qe,{onClick:function(){return b((function(e){return!e}))},style:{margin:"3px",flex:1}},v?"Hide":"Show"," Hint"))),window.react.createElement("div",{style:{minHeight:"40px"}},window.react.createElement(ct,{when:v},window.react.createElement(gt,null,"Hint: ",t.hint))),window.react.createElement(ct,{when:"ANSWERED"===x},window.react.createElement(Ke,null)),window.react.createElement(pt,{errors:d,markers:f}),window.react.createElement("div",null,window.react.createElement(ct,{when:S},window.react.createElement(Qe,{size:"lg",onClick:function(){k("NEW"),b(!1),o()}},"Next")),window.react.createElement(ct,{when:C},window.react.createElement(Qe,{size:"lg",onClick:c},"Done"))))})),Yt=window.react.useState,Xt=window.react.useMemo,Jt=window.react.useEffect,Kt=window.react.useCallback,en=function(){var t=m(),r=t.code,o=t.setCode,c=i(Yt(0),2),a=c[0],s=c[1],l=i(Yt(!1),2),u=l[0],h=l[1],f=i(Yt(),2),p=f[0],d=f[1],g=i(Yt(null),2),v=g[0],b=g[1],y=Kt((function(){o("// 🎉 Welcome to Challenges!")}),[o]),x=Xt((function(){return(null==p?void 0:p.length)?p[a]:null}),[a,p]);return Jt((function(){"start"===r&&h(!0)}),[r]),Jt((function(){x&&(u?o(x.start,{format:"monaco"}):o(""))}),[x,o,u]),Jt((function(){y()}),[y]),(null==p?void 0:p.length)?u?window.react.createElement(Gt,{data:p,currentItem:x,currentIndex:a,onNext:function(){s((function(e){return e+1}))},onDone:function(){d([]),b(null),s(0),y()}}):window.react.createElement(Zt,{meta:v}):window.react.createElement(Dt,{onSubmit:function(t){(function(t){var r={meta:{ownerName:"",ownerUrl:"",gistUrl:"",ownerAvatarUrl:"",gistDescription:""},files:[]},o="https://api.github.com/gists/".concat(t);return fetch(o).then((function(t){return t.json().then((function(t){var o=t.owner,c=t.description;return r.meta={ownerName:o.login,ownerUrl:o.html_url,ownerAvatarUrl:o.avatar_url,gistUrl:t.url,gistDescription:c},Object.values(t.files).map((function(e){return e.content})).forEach((function(t){var o=w(t),c=o.head.split(/\n/).reduce((function(t,r){var o=i(r.split(":"),2),c=o[0],a=o[1],s=c.trim(),l=a.trim();return n({},t,e({},s,"exclude"===s?l.split(" "):l))}),{}),a=n({},c,{},_e(be(o.body)));r.files.push(a)})),r}))}))})(t).then((function(e){d(e.files),b(e.meta)}))}})},tn=window.react,nn=window.reactDOM;return function(e){function t(e,t){var n=new CustomEvent(e,{detail:{model:t}});window.dispatchEvent(n)}return{id:"challenges",displayName:"Challenges",didMount:function(t,n){var r={ref:n,width:n.clientWidth,height:n.clientHeight};nn.render(tn.createElement(d,{sandbox:t,container:r,utils:e},tn.createElement(en,null)),n)},modelChanged:function(e,n){t("modelChanged",n)},modelChangedDebounce:function(e,n){t("modelChangedDebounce",n)},willUnmount:function(e,t){nn.unmountComponentAtNode(t)}}}}));
  