diff --git a/asset-manifest.json b/asset-manifest.json index 4b26cc6..5f93eac 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.d584e8ad.js", + "main.css": "/static/css/main.8c12b7da.css", + "main.js": "/static/js/main.2be436a0.js", "index.html": "/index.html", - "main.44edfc1e.css.map": "/static/css/main.44edfc1e.css.map", - "main.d584e8ad.js.map": "/static/js/main.d584e8ad.js.map" + "main.8c12b7da.css.map": "/static/css/main.8c12b7da.css.map", + "main.2be436a0.js.map": "/static/js/main.2be436a0.js.map" }, "entrypoints": [ - "static/css/main.44edfc1e.css", - "static/js/main.d584e8ad.js" + "static/css/main.8c12b7da.css", + "static/js/main.2be436a0.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 7e2b6e0..d6f03f2 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -
"+Ba(e[t].content)+"
\n"},Za.fence=function(e,t,n,r,i){const o=e[t],a=o.info?za(o.info).trim():"";let s,l="",u="";if(a){const e=a.split(/(\s+)/g);l=e[0],u=e.slice(2).join("")}if(s=n.highlight&&n.highlight(o.content,l,u)||Ba(o.content),0===s.indexOf("${s}
\n`}return`${s}
\n`},Za.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)},Za.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];return`${Gl(a.content)}
`},e.renderer.rules.code_block=(e,n,r,i,o)=>{const a=e[n];return`
${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]:"",u=(r.highlight?r.highlight(a.content,l):"")||Gl(a.content);return`${u}
\n`},e}(t,e),t);const Vl=e=>new Ml("default",{html:!0,linkify:!0,breaks:!0}).use(Bl(),{defaultLanguageForUnspecified:"kotlin",defaultLanguageForUnknown:"kotlin",defaultLanguage:"kotlin"}).use($l(e)),Kl={light:Vl("light"),dark:Vl("dark")};const Xl=function(e){let{code:t,theme:n}=e;const r=(0,l.useMemo)((()=>((e,t)=>{try{return Kl[t].render(e)}catch(aS){if(aS 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 aS}})(t,n)),[t,n]);return(0,Sr.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})};const Ql=function(e){let{theme:t}=e;const[n,r]=l.useState("");return(0,l.useEffect)((()=>{fetch("/GettingStartedWithKtorV4.md").then((e=>e.text())).then((e=>r(e))).catch((()=>{}))}),[]),(0,Sr.jsx)("section",{className:"tutorial",children:(0,Sr.jsx)(Xl,{code:n,theme:t})})};var Jl=n(50697),Zl=n.n(Jl),Yl=n(26100),eu=n.n(Yl),tu=n(96319),nu=n.n(tu),ru=n(78928),iu=n.n(ru),ou=n(36751),au=n.n(ou);function su(e,t,n){return(t=vn(t))in e?fn(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lu=bn((function e(t,n){var r=this;dn(this,e),su(this,"baseZIndex",void 0),su(this,"isInPortal",void 0),su(this,"popupZIndex",void 0),su(this,"dropdownZIndex",void 0),su(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}})})),uu=(0,l.createContext)(new lu(0)),cu=uu.Consumer,du=function(){return(0,l.useContext)(uu)};function fu(e){var t=e.baseLayer,n=e.children,r=du(),i=r.popupZIndex,o=r.dropdownZIndex,a=r.tooltipZIndex,s=r.baseZIndex,u=r.isInPortal,c=(0,l.useMemo)((function(){switch(t){case"popup":return new lu(i,!0);case"dropdown":return new lu(o,!0);case"tooltip":return new lu(a,!0);default:return new lu(s,u)}}),[t,s,o,u,i,a]);return l.createElement(uu.Provider,{value:c},n)}fu.propTypes={baseLayer:hr().oneOf(["popup","dropdown","tooltip"]),children:hr().node};var pu=(0,l.createContext)("light"),hu=(pu.Consumer,function(e){return"light"===e?"dark":"light"}),mu=function(e){var t=(0,l.useContext)(pu);return e||t},gu=function(e){var t=e.theme,n=e.children;return l.createElement(pu.Provider,{value:t},n)};gu.propTypes={theme:hr().oneOf(["light","dark"]).isRequired};var vu="_card_8eiijj_6",yu="_withStaticBorder_8eiijj_43",bu="_cardPlain_8eiijj_59",wu="_withStatesBorder_8eiijj_81",ku="_glowHover_8eiijj_120";function _u(e,t){var n=Zl()(e);if(eu()){var r=eu()(e);t&&(r=nu()(r).call(r,(function(t){return iu()(e,t).enumerable}))),n.push.apply(n,r)}return n}var xu={light:"_themeLight_8eiijj_40",dark:"_themeDark_8eiijj_49"},Eu={classic:"_modeClassic_8eiijj_59",rock:"_modeRock_8eiijj_60"},Su={16:"_paddings16_8eiijj_197",24:"_paddings24_8eiijj_201",32:"_paddings32_8eiijj_205"},Cu={0:"_bordersRadius0_8eiijj_209",8:"_bordersRadius8_8eiijj_213",16:"_bordersRadius16_8eiijj_217",24:"_bordersRadius24_8eiijj_221"},Ou=function(){var e=mu();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,u=o.paddings,c=o.borderRadius,d=o.hasGlowHover,f=o.disableBorder,p=null!==(e=xu[s])&&void 0!==e?e:xu.light,h=null!==(t=Eu[l])&&void 0!==t?t:Eu.classic,m=null!==(n=Su[u])&&void 0!==n?n:Su[24],g=null!==(r=Cu[c])&&void 0!==r?r:Cu[8],v=a&&(!f||!d);return fr()(vu,p,h,m,g,(su(i={},bu,!a),su(i,ku,d),su(i,yu,!f),su(i,wu,v),i))}(function(e){for(var t=1;t${n}
`}return n(r,i,o,a,s)}}(e,n,e.renderer.rules.code_inline||x))};var r=o(n(82999)),i=o(n(43079));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"}}})},43079:(e,t,n)=>{const r=n(42288),i=n(81461),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(8267).resolve(t)],delete Prism.languages[e],n(8267)(t),o.add(e)}))}a.silent=!1,e.exports=a},43684:()=>{!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)},81461: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=u(t,z,T),x+=T.length),c(t,z,C),_=u(t,z,new o(f,g?i.tokenize(L,g):L,b,L)),N&&u(t,_,N),C>1){var D={cause:f+","+h,reach:R};s(e,t,n,_.prev,x,D),d&&D.reach>d.reach&&(d.reach=D.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 u(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 c(e,t,n){for(var r=t.next,i=0;i32))return o;if(41===r){if(0===a)break;a--}i++}return t===i||0!==a||(o.str=Na(e.slice(t,i)),o.pos=i,o.ok=!0),o}function Qa(e,t,n){let r,i,o=0,a=t;const s={ok:!1,pos:0,lines:0,str:""};if(a>=n)return s;if(i=e.charCodeAt(a),34!==i&&39!==i&&40!==i)return s;for(a++,40===i&&(i=41);a
\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(""+Fa(e[t].content)+"
\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?"").concat(s,"
\n":"
\n"},Xa.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},Xa.text=function(e,t){return Fa(e[t].content)},Xa.html_block=function(e,t){return e[t].content},Xa.html_inline=function(e,t){return e[t].content},Ja.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t