Lines 7-44javascript
7`),a=n?e.substring(0,e.length-1):e,f=this.getIndentString(),c=a.replaceAll(`
9${f}`);this.isAtStartOfLine()&&(c=f+c),n&&(c+=`
10`),this.writeInternal(c)}else this.writeNode(e)}writeStatement(...t){this.write(...t),this.write(";"),this.writeNewLineIfLastLineNot()}writeNoIndent(t){let e=this.indentLevel;this.indentLevel=0,this.write(t),this.indentLevel=e}writeNode(t){ue&&this.nodeStackFrames.push(...hr(t)),t.write(this),ue&&dr!=="single"&&this.writeInternal(`
11`)}writeNodeOrString(t){if(typeof t=="string"){this.write(t);return}this.writeNode(t)}writeNodeStatement(t){this.writeNode(t),this.write(";"),this.writeNewLineIfLastLineNot()}writeTextStatement(t){new ne(t).write(this),t.endsWith(";")||this.write(";"),this.writeNewLineIfLastLineNot()}controlFlow(t,e){new ne(t).write(this),this.write(" (",e,")"),this.pushScope()}controlFlowWithoutStatement(t){new ne(t).write(this),this.pushScope()}endControlFlow(){this.popScope()}contiguousControlFlow(t,e){this.dedent(),this.write("} "),new ne(t).write(this),this.write(" (",e,")"),this.pushScope()}alternativeCo ...
12`)}writeSemicolonIfLastCharacterIsNot(){this.lastCharacterIsSemicolon||this.writeInternal(";")}writeNewLineIfLastLineNot(){this.lastCharacterIsNewline||this.writeInternal(`
13`)}indent(){this.indentLevel++}dedent(){this.indentLevel--}delimit({nodes:t,delimiter:e,writeFunction:n}){if(t.length>0){let a=t[0];a!=null&&n(a);for(let f=1;f<t.length;f++){this.write(e);let
14`),this.lastCharacterIsSemicolon=t.endsWith(";");let n=t.split(`
15`),a=ue&&!this.shouldSkipTracking(n)&&this.lastCharacterIsNewline;e&&(this.lastLine=`${this.lastLine}${n.shift()||""}`),this.lastCharacterIsNewline&&n.pop(),this.lineBuffer.push(...n),a&&this.appendTrackingComment()}set lastLine(t){this.lineBuffer.
21`+this.buffer}stringifyImports(){let e=Object.keys(this.references);return e.length===0?"":e.filter(n=>La(n).namespace!==this.namespace).map(n=>`use ${n};`).join(`
22`)}};var L=class extends ye{toString(t){if(t==null)throw new Error("Internal error; AstNode.toString method called incorrectly.");let{namespace:e,rootNamespace:n,customConfig:a,skipImports:f=!1}=t,c=new pe({namespace:e,rootNamespace:n,customConfig:a});return this.write(c),c.toString(f)}async toStringAsync({namespace:t,rootNamespace:e,customConfig:n}){let a=new pe({namespace:t,rootNamespace:e,customConfig:n});return this.write(a),a.toString()}};var W=class extends L{constructor({name:e,namespace:n,generics:a}){super();x(this,"name");x(this,"namespace");x(this,"generics");x(this,"fullyQualified" ...
23`).forEach(n=>{e.writeLine(` * ${n}`)}),this.tags.length>0&&e.writeLine(" *"));for(let n of this.tags)this.writeTag({writer:e,tag:n});e.writeLine(" */")}writeTag({writer:e,tag:n}){let a=n.docs!=null?n.docs.
24`):void 0;a!=null&&a.length>1&&(a.forEach(f=>{e.writeLine(` * ${f}`)}),e.writeLine(" *")),e.write(` * @${n.tagType} `),n.type.write(e,{comment:!0}),n.name!=null&&e.write(` ${n
25`)){this.writeStringWithHeredoc({writer:e,value:this.internalType.value});break}if(this.internalType.value.includes("'")){e.write(`"${this.internalType.value.replaceAll('"','\\"')}"`);break}e.write(`'$
27`,gt=class{constructor({context:t}){x(this,"context");this.context=t}async generateSnippet({endpoint:t,request:e}){let n=this.buildCodeBlock({endpoint:t,snippet:e});return ka+await n.toStringAsync({namespace:Jt,rootNamespace:Jt,customConfig:this.context.customConfig??{}})}generateSnippetSync({endpoint:t,request:e}){let n=this.buildCodeBlock({endpoint:t,snippet:e});return ka+n.toString({namespace:Jt,rootNamespace:Jt,customConfig:this.context.customConfig??{}})}async generateSnippetAst({endpoint:t,request:e,options:n}){return n?.skipClientInstantiation?this.buildCodeBlockWithoutClient({endpoint: ...
28/*! Bundled license information:
30@jspm/core/nodelibs/browser/chunk-DtuTasat.js:
31 (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
36 * Lodash (Custom Build) <https://lodash.com/>
37 * Build: `lodash modularize exports="es" --repo lodash/lodash#4.18.1 -o ./`
38 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
39 * Released under MIT license <https://lodash.com/license>
40 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
41 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
44//# sourceMappingURL=index.js.map
Long lines were clipped for display.