MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / Zk_

Function Zk_

package/cli.js:618–619  ·  view source on GitHub ↗
(q,K,_)

Source from the content-addressed store, hash-verified

616${K}${q.slice(0,v)}`;else{if(_==="quoted"&&H[T])G+=`${q[T]}\\`;G+=`
617${K}${q.slice(T+1,v)}`}}return G}function Oq4(q,K,_){let z=K,Y=K+1,$=q[Y];while($===" "||$==="\t")if(K<Y+_)$=q[++K];else{do $=q[++K];while($&&$!==`
618`);z=K,Y=K+1,$=q[Y]}return z}Xk_.FOLD_BLOCK="block";Xk_.FOLD_FLOW="flow";Xk_.FOLD_QUOTED="quoted";Xk_.foldFlowLines=Mk_});var tl6=m((vk_)=>{var yu=DX(),r16=wq4(),YG8=(q,K)=>({indentAtStart:K?q.indent.length:q.indentAtStart,lineWidth:q.options.lineWidth,minContentWidth:q.options.minContentWidth}),$G8=(q)=>/^(%|---|\.\.\.)/m.test(q);function Zk_(q,K,_){if(!K||K<0)return!1;let z=K-_,Y=q.length;if(Y<=z)return!1;for(let $=0,A=0;$<Y;++$)if(q[$]===`
619`){if($-A>z)return!0;if(A=$+1,Y-A<=z)return!1}return!0}function sl6(q,K){let _=JSON.stringify(q);if(K.options.doubleQuotedAsJSON)return _;let{implicitKey:z}=K,Y=K.options.doubleQuotedMinMultiLineLength,$=K.indent||($G8(q)?" ":""),A="",O=0;for(let w=0,j=_[w];j;j=_[++w]){if(j===" "&&_[w+1]==="\\"&&_[w+2]==="n")A+=_.slice(O,w)+"\\ ",w+=1,O=w,j="\\";if(j==="\\")switch(_[w+1]){case"u":{A+=_.slice(O,w);let H=_.substr(w+2,4);switch(H){case"0000":A+="\\0";break;case"0007":A+="\\a";break;case"000b":A+="\\v";break;case"001b":A+="\\e";break;case"0085":A+="\\N";break;case"00a0":A+="\\_";break;case"2028":A+="\\L";break;case"2029":A+="\\P";break;default:if(H.substr(0,2)==="00")A+="\\x"+H.substr(2);else A+=_.substr(w,6)}w+=5,O=w+1}break;case"n":if(z||_[w+2]==='"'||_.length<Y)w+=1;else{A+=_.slice(O,w)+`
620
621`;while(_[w+2]==="\\"&&_[w+3]==="n"&&_[w+4]!=='"')A+=`
622`,w+=2;if(A+=$,_[w+2]===" ")A+="\\";w+=1,O=w+1}break;default:w+=1}}return A=O?A+_.slice(O):_,z?A:r16.foldFlowLines(A,$,r16.FOLD_QUOTED,YG8(K,!1))}function WR1(q,K){if(K.options.singleQuote===!1||K.implicitKey&&q.includes(`

Callers 1

zG8Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected