diff --git a/asset-manifest.json b/asset-manifest.json index 5d7851f..4b26cc6 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,13 +1,13 @@ { "files": { "main.css": "/static/css/main.44edfc1e.css", - "main.js": "/static/js/main.f605e1f3.js", + "main.js": "/static/js/main.d584e8ad.js", "index.html": "/index.html", "main.44edfc1e.css.map": "/static/css/main.44edfc1e.css.map", - "main.f605e1f3.js.map": "/static/js/main.f605e1f3.js.map" + "main.d584e8ad.js.map": "/static/js/main.d584e8ad.js.map" }, "entrypoints": [ "static/css/main.44edfc1e.css", - "static/js/main.f605e1f3.js" + "static/js/main.d584e8ad.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 1a920fd..7e2b6e0 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -
"+Fa(e[t].content)+"
\n"},Xa.fence=function(e,t,n,r,i){const o=e[t],a=o.info?Na(o.info).trim():"";let s,l="",c="";if(a){const e=a.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(s=n.highlight&&n.highlight(o.content,l,c)||Fa(o.content),0===s.indexOf("").concat(s,"
\n")}return"").concat(s,"
\n")},Xa.image=function(e,t,n,r,i){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},Xa.hardbreak=function(e,t,n){return n.xhtmlOut?"',e}(t),e),t=function(e,t){return e.renderer.rules.code_inline=(e,n,r,i,o)=>{const a=e[n],s=pr()("rs-code",{"rs-code_theme_dark":"dark"===t});return'").concat(Gl(a.content),"
")},e.renderer.rules.code_block=(e,n,r,i,o)=>{const a=e[n],s=pr()("rs-pre",{"rs-pre_theme_dark":"dark"===t});return'
").concat(Gl(a.content),"
")},e.renderer.rules.fence=(e,n,r,i,o)=>{const a=e[n],s=a.info?a.info.trim():"",l=s?s.split(/\s+/g)[0]:"",c=(r.highlight?r.highlight(a.content,l):"")||Gl(a.content),u=pr()("rs-pre",{"rs-pre_theme_dark":"dark"===t});return'").concat(c,"
\n")},e}(t,e),t);const $l=e=>new Fl("default",{html:!0,linkify:!0,breaks:!0}).use(Bl(),{defaultLanguageForUnspecified:"kotlin",defaultLanguageForUnknown:"kotlin",defaultLanguage:"kotlin"}).use(Vl(e)),Kl={light:$l("light"),dark:$l("dark")};const Ql=function(e){let{code:t,theme:n}=e;const r=(0,l.useMemo)((()=>((e,t)=>{try{return Kl[t].render(e)}catch(zS){if(zS instanceof TypeError)return console.warn("This is an unexpected require behavior bug in Webpack 4.\n Please check if you specified correct names for languages in markdown."),"";throw zS}})(t,n)),[t,n]);return(0,po.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})};const Xl=function(e){let{theme:t}=e;const[n,r]=l.useState("");return(0,l.useEffect)((()=>{fetch("".concat("","/GettingStartedWithKtorV4.md")).then((e=>e.text())).then((e=>r(e))).catch((()=>{}))}),[]),(0,po.jsx)("section",{className:"tutorial",children:(0,po.jsx)(Ql,{code:n,theme:t})})};var Jl=n(62400),Zl=n.n(Jl),Yl=n(36512),ec=n.n(Yl),tc=n(18428),nc=n.n(tc),rc=n(68416),ic=n.n(rc),oc=n(52184),ac=n.n(oc);function sc(e,t,n){return(t=hn(t))in e?cn(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lc=gn((function e(t,n){var r=this;ln(this,e),sc(this,"baseZIndex",void 0),sc(this,"isInPortal",void 0),sc(this,"popupZIndex",void 0),sc(this,"dropdownZIndex",void 0),sc(this,"tooltipZIndex",void 0),Object.defineProperty(this,"baseZIndex",{writable:!1,enumerable:!0,value:t}),Object.defineProperty(this,"isInPortal",{writable:!1,enumerable:!0,value:Boolean(n)}),Object.defineProperty(this,"popupZIndex",{enumerable:!0,get:function(){return r.baseZIndex+1500}}),Object.defineProperty(this,"dropdownZIndex",{enumerable:!0,get:function(){return r.baseZIndex+1e3}}),Object.defineProperty(this,"tooltipZIndex",{enumerable:!0,get:function(){return r.baseZIndex+500}})})),cc=(0,l.createContext)(new lc(0)),uc=cc.Consumer,dc=function(){return(0,l.useContext)(cc)};function fc(e){var t=e.baseLayer,n=e.children,r=dc(),i=r.popupZIndex,o=r.dropdownZIndex,a=r.tooltipZIndex,s=r.baseZIndex,c=r.isInPortal,u=(0,l.useMemo)((function(){switch(t){case"popup":return new lc(i,!0);case"dropdown":return new lc(o,!0);case"tooltip":return new lc(a,!0);default:return new lc(s,c)}}),[t,s,o,c,i,a]);return l.createElement(cc.Provider,{value:u},n)}fc.propTypes={baseLayer:mr().oneOf(["popup","dropdown","tooltip"]),children:mr().node};var pc=(0,l.createContext)("light"),hc=(pc.Consumer,function(e){return"light"===e?"dark":"light"}),mc=function(e){var t=(0,l.useContext)(pc);return e||t},gc=function(e){var t=e.theme,n=e.children;return l.createElement(pc.Provider,{value:t},n)};gc.propTypes={theme:mr().oneOf(["light","dark"]).isRequired};var vc="_card_156ep03_6",yc="_withStaticBorder_156ep03_43",bc="_cardPlain_156ep03_59",wc="_withStatesBorder_156ep03_81",kc="_glowHover_156ep03_120";function _c(e,t){var n=Zl()(e);if(ec()){var r=ec()(e);t&&(r=nc()(r).call(r,(function(t){return ic()(e,t).enumerable}))),n.push.apply(n,r)}return n}var xc={light:"_themeLight_156ep03_40",dark:"_themeDark_156ep03_49"},Sc={classic:"_modeClassic_156ep03_59",rock:"_modeRock_156ep03_60"},Ec={16:"_paddings16_156ep03_197",24:"_paddings24_156ep03_201",32:"_paddings32_156ep03_205"},Cc={0:"_bordersRadius0_156ep03_209",8:"_bordersRadius8_156ep03_213",16:"_bordersRadius16_156ep03_217",24:"_bordersRadius24_156ep03_221"},Oc=function(){var e=mc();return function(t){return function(){var e,t,n,r,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=o.isClickable,s=o.theme,l=o.mode,c=o.paddings,u=o.borderRadius,d=o.hasGlowHover,f=o.disableBorder,p=null!==(e=xc[s])&&void 0!==e?e:xc.light,h=null!==(t=Sc[l])&&void 0!==t?t:Sc.classic,m=null!==(n=Ec[c])&&void 0!==n?n:Ec[24],g=null!==(r=Cc[u])&&void 0!==r?r:Cc[8],v=a&&(!f||!d);return pr()(vc,p,h,m,g,(sc(i={},bc,!a),sc(i,kc,d),sc(i,yc,!f),sc(i,wc,v),i))}(function(e){for(var t=1;t").concat(n,"
")}return n(r,i,o,a,s)}}(e,n,e.renderer.rules.code_inline||x))};var r=o(n(77504)),i=o(n(68312));function o(e){return e&&e.__esModule?e:{default:e}}function a(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 s(e){for(var t=1;t.comment
can become .namespace--comment
) or replace them with your defined ones (like .editor__comment
). You can even add new classes.",owner:"dvkndn",noCSS:!0},"file-highlight":{title:"File Highlight",description:"Fetch external files and highlight them with Prism. Used on the Prism website itself.",noCSS:!0},"show-language":{title:"Show Language",description:"Display the highlighted language in code blocks (inline code does not show the label).",owner:"nauzilus",noCSS:!0,require:"toolbar"},"jsonp-highlight":{title:"JSONP Highlight",description:"Fetch content with JSONP and highlight some interesting content (e.g. GitHub/Gists or Bitbucket API).",noCSS:!0,owner:"nauzilus"},"highlight-keywords":{title:"Highlight Keywords",description:"Adds special CSS classes for each keyword for fine-grained highlighting.",owner:"vkbansal",noCSS:!0},"remove-initial-line-feed":{title:"Remove initial line feed",description:"Removes the initial line feed in code blocks.",owner:"Golmote",noCSS:!0},"inline-color":{title:"Inline color",description:"Adds a small inline preview for colors in style sheets.",require:"css-extras",owner:"RunDevelopment"},previewers:{title:"Previewers",description:"Previewers for angles, colors, gradients, easing and time.",require:"css-extras",owner:"Golmote"},autoloader:{title:"Autoloader",description:"Automatically loads the needed languages to highlight the code blocks.",owner:"Golmote",noCSS:!0},"keep-markup":{title:"Keep Markup",description:"Prevents custom markup from being dropped out during highlighting.",owner:"Golmote",optional:"normalize-whitespace",noCSS:!0},"command-line":{title:"Command Line",description:"Display a command line with a prompt and, optionally, the output/response from the commands.",owner:"chriswells0"},"unescaped-markup":{title:"Unescaped Markup",description:"Write markup without having to escape anything."},"normalize-whitespace":{title:"Normalize Whitespace",description:"Supports multiple operations to normalize whitespace in code blocks.",owner:"zeitgeist87",optional:"unescaped-markup",noCSS:!0},"data-uri-highlight":{title:"Data-URI Highlight",description:"Highlights data-URI contents.",owner:"Golmote",noCSS:!0},toolbar:{title:"Toolbar",description:"Attach a toolbar for plugins to easily register buttons on the top of a code block.",owner:"mAAdhaTTah"},"copy-to-clipboard":{title:"Copy to Clipboard Button",description:"Add a button that copies the code block to the clipboard when clicked.",owner:"mAAdhaTTah",require:"toolbar",noCSS:!0},"download-button":{title:"Download Button",description:"A button in the toolbar of a code block adding a convenient way to download a code file.",owner:"Golmote",require:"toolbar",noCSS:!0},"match-braces":{title:"Match braces",description:"Highlights matching braces.",owner:"RunDevelopment"},"diff-highlight":{title:"Diff Highlight",description:"Highlights the code inside diff blocks.",owner:"RunDevelopment",require:"diff"},"filter-highlight-all":{title:"Filter highlightAll",description:"Filters the elements the highlightAll
and highlightAllUnder
methods actually highlight.",owner:"RunDevelopment",noCSS:!0},treeview:{title:"Treeview",description:"A language with special styles to highlight file system tree structures.",owner:"Golmote"}}})},68312:(e,t,n)=>{const r=n(94656),i=n(21440),o=new Set;function a(e){void 0===e?e=Object.keys(r.languages).filter((e=>"meta"!=e)):Array.isArray(e)||(e=[e]);const t=[...o,...Object.keys(Prism.languages)];i(r,e,t).load((e=>{if(!(e in r.languages))return void(a.silent||console.warn("Language does not exist: "+e));const t="./prism-"+e;delete n.c[n(69556).resolve(t)],delete Prism.languages[e],n(69556)(t),o.add(e)}))}a.silent=!1,e.exports=a},28064:()=>{!function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(Prism)},21440:e=>{"use strict";var t=function(){var e=function(){};function t(e,t){Array.isArray(e)?e.forEach(t):null!=e&&t(e,0)}function n(e){for(var t={},n=0,r=e.length;nd.reach&&(d.reach=R);var z=_.prev;if(T&&(z=c(t,z,T),x+=T.length),u(t,z,C),_=c(t,z,new o(f,g?i.tokenize(L,g):L,b,L)),N&&c(t,_,N),C>1){var M={cause:f+","+h,reach:R};s(e,t,n,_.prev,x,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i