/plugin/elasticsearch/vendor/patrickschur/language-detection/src/LanguageDetection/Tokenizer/ |
H A D | TokenizerInterface.php | 17 public function tokenize(string $str): array; function
|
H A D | WhitespaceTokenizer.php | 21 public function tokenize(string $str): array function in LanguageDetection\\Tokenizer\\WhitespaceTokenizer
|
/plugin/findologicxmlexport/vendor/twig/twig/lib/Twig/ |
H A D | LexerInterface.php | 35 public function tokenize($code, $name = null); function
|
/plugin/combo/vendor/symfony/polyfill-php80/ |
H A D | PhpToken.php | 85 public static function tokenize(string $code, int $flags = 0): array function in Symfony\\Polyfill\\Php80\\PhpToken
|
/plugin/elasticsearch/vendor/patrickschur/language-detection/src/LanguageDetection/ |
H A D | NgramParser.php | 96 private function tokenize(string $str) function in LanguageDetection\\NgramParser
|
/plugin/codemirror/dist/modes/ |
H A D | slim.min.js | 1 …]*/;var p=/^#[_a-zA-Z]+[\w\-]*/;function q(a,b,c){var d=function(d,e){e.tokenize=b;if(d.pos<a){d.p… property in a.stack
|
H A D | sql.min.js | 1 ….eat(";"))){return"variable-3"}else if(c=="'"||c=='"'&&l.doubleQuote){b.tokenize=s(c);return b.tok… function
|
H A D | verilog.min.js | 1 …"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],a);else a(CodeMi…
|
H A D | xml.min.js | 1 …]=h[i];for(var i in e)g[i]=e[i];var j,k;function l(a,b){function c(c){b.tokenize=c;return c(a,b)}v… property in AnonymousFunctiona693641a0200.b
|
H A D | haxe.min.js | 1 …"true":i,"false":i,"null":i};var m=/[+\-*&%=<>!?|]/;function n(a,b,c){b.tokenize=c;return c(a,b)}f… property in AnonymousFunction42371aef0500.e
|
H A D | javascript.min.js | 1 …c){n=a;o=c;return b}function q(a,b){var c=a.next();if(c=='"'||c=="'"){b.tokenize=r(c);return b.tok… property in AnonymousFunctiona9af57c00700.b
|
H A D | perl.min.js | 1 …"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],a);else a(CodeMi…
|
/plugin/ifauthex/lib/ |
H A D | tokenizer.php | 134 function tokenize($text, array $tokDefs, array $stripTokDefs) { function
|
/plugin/findologicxmlexport/vendor/twig/twig/src/ |
H A D | Lexer.php | 82 public function tokenize($code, $name = null) function in Twig\\Lexer
|
H A D | Environment.php | 694 public function tokenize($source, $name = null) function in Twig\\Environment
|
/plugin/combo/vendor/salesforce/handlebars-php/src/Handlebars/ |
H A D | Handlebars.php | 521 private function tokenize($source) function in Handlebars\\Handlebars
|
/plugin/jplayer/vendor/mustache/mustache/src/Mustache/ |
H A D | Engine.php | 764 private function tokenize($source) function in Mustache_Engine
|
/plugin/highlightjs/highlight/languages/ |
H A D | mel.js | 17 …ab': 1, 'addPP': 1, 'addPanelCategory': 1, 'addPrefixToName': 1, 'advanceToNextDrivenKey': 1, 'aff…
|
/plugin/projects/ |
H A D | codemirror-compressed.js | 1 …(Ct,e)}function an(e,t){Wt=!0;var n=t-e.height;for(var r=e;r;r=r.parent)r.height+=n}function fn(e)… variable
|
/plugin/highlightjs/highlight/ |
H A D | highlight.pack.js | 1 …</gm,"<").replace(/>/gm,">")}function k(s,r){if(!s){return false}for(var c=0;c<s.length;c++)… class in hljs.LANGUAGES.cpp
|
/plugin/diagramsnet/lib/WEB-INF/lib/ |
H A D | commons-lang3-3.5.jar | META-INF/MANIFEST.MF
META-INF/
org/
org/apache/
org/ ... |
/plugin/mermaid/ |
H A D | mermaid.min.js | 104 `),b.style===void 0&&(I.style=I.style||"stroke: #333; stroke-width: 1.5px;fill:none"),I.labelStyle=I.labelStyle.replace("color:","fill:"))),I.id=E,I.class=_+" "+A,I.minlen=b.length||1,a.setEdge(f.db.lookUpDomId(b.start),f.db.lookUpDomId(b.end),I,p)})},hRe={setConf:lRe,addVertices:INt,addEdges:ONt,getClasses:function(i,a){return Ut.info("Extracting classes"),a.db.getClasses()},draw:function(i,a,f,p){Ut.info("Drawing flowchart");const{securityLevel:w,flowchart:m}=Oe();let b;w==="sandbox"&&(b=yr("#i"+a));const E=yr(w==="sandbox"?b.nodes()[0].contentDocument.body:"body"),_=w==="sandbox"?b.nodes()[0].contentDocument:document;let A=p.db.getDirection();A===void 0&&(A="TD");const I=m.nodeSpacing||50,B=m.rankSpacing||50,N=new c1({multigraph:!0,compound:!0}).setGraph({rankdir:A,nodesep:I,ranksep:B,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let R;const z=p.db.getSubGraphs();for(let ft=z.length-1;ft>=0;ft--)R=z[ft],p.db.addVertex(R.id,R.title,"group",void 0,R.classes);const W=p.db.getVertices();Ut.warn("Get vertices",W);const et=p.db.getEdges();let st=0;for(st=z.length-1;st>=0;st--){R=z[st],sMt("cluster").append("text");for(let ft=0;ft<R.nodes.length;ft++)Ut.warn("Setting subgraph",R.nodes[ft],p.db.lookUpDomId(R.nodes[ft]),p.db.lookUpDomId(R.id)),N.setParent(p.db.lookUpDomId(R.nodes[ft]),p.db.lookUpDomId(R.id))}INt(W,N,a,E,_,p),ONt(et,N,p);const at=new nRe;uRe.addToRender(at),at.arrows().none=function(ut,vt,X,pt){const Tt=ut.append("marker").attr("id",vt).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");w3(Tt,X[pt+"Style"])},at.arrows().normal=function(ut,vt){ut.append("marker").attr("id",vt).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const bt=E.select(`[id="${a}"]`),mt=E.select("#"+a+" g");for(at(mt,N),mt.selectAll("g.node").attr("title",function(){return p.db.getTooltip(this.id)}),p.db.indexNodes("subGraph"+st),st=0;st<z.length;st++)if(R=z[st],R.title!=="undefined"){const ft=_.querySelectorAll("#"+a+' [id="'+p.db.lookUpDomId(R.id)+'"] rect'),ut=_.querySelectorAll("#"+a+' [id="'+p.db.lookUpDomId(R.id)+'"]'),vt=ft[0].x.baseVal.value,X=ft[0].y.baseVal.value,pt=ft[0].width.baseVal.value,Tt=yr(ut[0]).select(".label");Tt.attr("transform",`translate(${vt+pt/2}, ${X+14})`),Tt.attr("id",a+"Text");for(let nt=0;nt<R.classes.length;nt++)ut[0].classList.add(R.classes[nt])}if(!m.htmlLabels){const ft=_.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const ut of ft){const vt=ut.getBBox(),X=_.createElementNS("http://www.w3.org/2000/svg","rect");X.setAttribute("rx",0),X.setAttribute("ry",0),X.setAttribute("width",vt.width),X.setAttribute("height",vt.height),ut.insertBefore(X,ut.firstChild)}}fT(N,bt,m.diagramPadding,m.useMaxWidth),Object.keys(W).forEach(function(ft){const ut=W[ft];if(ut.link){const vt=E.select("#"+a+' [id="'+p.db.lookUpDomId(ft)+'"]');if(vt){const X=_.createElementNS("http://www.w3.org/2000/svg","a");X.setAttributeNS("http://www.w3.org/2000/svg","class",ut.classes.join(" ")),X.setAttributeNS("http://www.w3.org/2000/svg","href",ut.link),X.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),w==="sandbox"?X.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):ut.linkTarget&&X.setAttributeNS("http://www.w3.org/2000/svg","target",ut.linkTarget);const pt=vt.insert(function(){return X},":first-child"),U=vt.select(".label-container");U&&pt.append(function(){return U.node()});const Tt=vt.select(".label");Tt&&pt.append(function(){return Tt.node()})}}})}};function P5(i){var a={options:{directed:i.isDirected(),multigraph:i.isMultigraph(),compound:i.isCompound()},nodes:fRe(i),edges:dRe(i)};return Jh(i.graph())||(a.value=aPe(i.graph())),a}function fRe(i){return Ff(i.nodes(),function(a){var f=i.node(a),p=i.parent(a),w={v:a};return Jh(f)||(w.value=f),Jh(p)||(w.parent=p),w})}function dRe(i){return Ff(i.edges(),function(a){var f=i.edge(a),p={v:a.v,w:a.w};return Jh(a.name)||(p.name=a.name),Jh(f)||(p.value=f),p})}const gRe=(i,a,f,p)=>{a.forEach(w=>{pRe[w](i,f,p)})},pRe={extension:(i,a,f)=>{Ut.trace("Making markers for ",f),i.append("defs").append("marker").attr("id",f+"_"+a+"-extensionStart").attr("class","marker extension "+a).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id",f+"_"+a+"-extensionEnd").attr("class","marker extension "+a).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:(i,a,f)=>{i.append("defs").append("marker").attr("id",f+"_"+a+"-compositionStart").attr("class","marker composition "+a).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",f+"_"+a+"-compositionEnd").attr("class","marker composition "+a).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:(i,a,f)=>{i.append("defs").append("marker").attr("id",f+"_"+a+"-aggregationStart").attr("class","marker aggregation "+a).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",f+"_"+a+"-aggregationEnd").attr("class","marker aggregation "+a).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:(i,a,f)=>{i.append("defs").append("marker").attr("id",f+"_"+a+"-dependencyStart").attr("class","marker dependency "+a).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",f+"_"+a+"-dependencyEnd").attr("class","marker dependency "+a).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop:(i,a,f)=>{i.append("defs").append("marker").attr("id",f+"_"+a+"-lollipopStart").attr("class","marker lollipop "+a).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),i.append("defs").append("marker").attr("id",f+"_"+a+"-lollipopEnd").attr("class","marker lollipop "+a).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},point:(i,a,f)=>{i.append("marker").attr("id",f+"_"+a+"-pointEnd").attr("class","marker "+a).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),i.append("marker").attr("id",f+"_"+a+"-pointStart").attr("class","marker "+a).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:(i,a,f)=>{i.append("marker").attr("id",f+"_"+a+"-circleEnd").attr("class","marker "+a).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),i.append("marker").attr("id",f+"_"+a+"-circleStart").attr("class","marker "+a).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:(i,a,f)=>{i.append("marker").attr("id",f+"_"+a+"-crossEnd").attr("class","marker cross "+a).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),i.append("marker").attr("id",f+"_"+a+"-crossStart").attr("class","marker cross "+a).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:(i,a,f)=>{i.append("defs").append("marker").attr("id",f+"_"+a+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}},PNt=gRe;function bRe(i,a){a&&i.attr("style",a)}function wRe(i){const a=yr(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),f=a.append("xhtml:div"),p=i.label,w=i.isNode?"nodeLabel":"edgeLabel";return f.html('<span class="'+w+'" '+(i.labelStyle?'style="'+i.labelStyle+'"':"")+">"+p+"</span>"),bRe(f,i.labelStyle),f.style("display","inline-block"),f.style("white-space","nowrap"),f.attr("xmlns","http://www.w3.org/1999/xhtml"),a.node()}const gp=(i,a,f,p)=>{let w=i||"";if(typeof w=="object"&&(w=w[0]),o1(Oe().flowchart.htmlLabels)){w=w.replace(/\\n|\n/g,"<br />"),Ut.info("vertexText"+w);const m={isNode:p,label:uF(w).replace(/fa[blrs]?:fa-[\w-]+/g,E=>`<i class='${E.replace(":"," ")}'></i>`),labelStyle:a.replace("fill:","color:")};return wRe(m)}else{const m=document.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("style",a.replace("color:","fill:"));let b=[];typeof w=="string"?b=w.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(w)?b=w:b=[];for(const E of b){const _=document.createElementNS("http://www.w3.org/2000/svg","tspan");_.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),_.setAttribute("dy","1em"),_.setAttribute("x","0"),f?_.setAttribute("class","title-row"):_.setAttribute("class","row"),_.textContent=E.trim(),m.appendChild(_)}return m}},vRe={};function mRe(i,a){const f=a||vRe,p=typeof f.includeImageAlt=="boolean"?f.includeImageAlt:!0,w=typeof f.includeHtml=="boolean"?f.includeHtml:!0;return FNt(i,p,w)}function FNt(i,a,f){if(yRe(i)){if("value"in i)return i.type==="html"&&!f?"":i.value;if(a&&"alt"in i&&i.alt)return i.alt;if("children"in i)return NNt(i.children,a,f)}return Array.isArray(i)?NNt(i,a,f):""}function NNt(i,a,f){const p=[];let w=-1;for(;++w<i.length;)p[w]=FNt(i[w],a,f);return p.join("")}function yRe(i){return!!(i&&typeof i=="object")}function m3(i,a,f,p){const w=i.length;let m=0,b;if(a<0?a=-a>w?0:w+a:a=a>w?w:a,f=f>0?f:0,p.length<1e4)b=Array.from(p),b.unshift(a,f),i.splice(...b);else for(f&&i.splice(a,f);m<p.length;)b=p.slice(m,m+1e4),b.unshift(a,0),i.splice(...b),m+=1e4,a+=1e4}function sw(i,a){return i.length>0?(m3(i,i.length,0,a),i):a}const BNt={}.hasOwnProperty;function xRe(i){const a={};let f=-1;for(;++f<i.length;)kRe(a,i[f]);return a}function kRe(i,a){let f;for(f in a){const w=(BNt.call(i,f)?i[f]:void 0)||(i[f]={}),m=a[f];let b;if(m)for(b in m){BNt.call(w,b)||(w[b]=[]);const E=m[b];ERe(w[b],Array.isArray(E)?E:E?[E]:[])}}}function ERe(i,a){let f=-1;const p=[];for(;++f<a.length;)(a[f].add==="after"?i:p).push(a[f]);m3(i,0,0,p)}const TRe=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,y3=bk(/[A-Za-z]/),lm=bk(/[\dA-Za-z]/),CRe=bk(/[#-'*+\--9=?A-Z^-~]/);function T0t(i){return i!==null&&(i<32||i===127)}const C0t=bk(/\d/),_Re=bk(/[\dA-Fa-f]/),SRe=bk(/[!-/:-@[-`{-~]/);function xa(i){return i!==null&&i<-2}function pp(i){return i!==null&&(i<0||i===32)}function Wc(i){return i===-2||i===-1||i===32}const ARe=bk(TRe),LRe=bk(/\s/);function bk(i){return a;function a(f){return f!==null&&i.test(String.fromCharCode(f))}}function il(i,a,f,p){const w=p?p-1:Number.POSITIVE_INFINITY;let m=0;return b;function b(_){return Wc(_)?(i.enter(f),E(_)):a(_)}function E(_){return Wc(_)&&m++<w?(i.consume(_),E):(i.exit(f),a(_))}}const MRe={tokenize:DRe};function DRe(i){const a=i.attempt(this.parser.constructs.contentInitial,p,w);let f;return a;function p(E){if(E===null){i.consume(E);return}return i.enter("lineEnding"),i.consume(E),i.exit("lineEnding"),il(i,a,"linePrefix")}function w(E){return i.enter("paragraph"),m(E)}function m(E){const _=i.enter("chunkText",{contentType:"text",previous:f});return f&&(f.next=_),f=_,b(E)}function b(E){if(E===null){i.exit("chunkText"),i.exit("paragraph"),i.consume(E);return}return xa(E)?(i.consume(E),i.exit("chunkText"),m):(i.consume(E),b)}}const IRe={tokenize:ORe},RNt={tokenize:PRe};function ORe(i){const a=this,f=[];let p=0,w,m,b;return E;function E(bt){if(p<f.length){const mt=f[p];return a.containerState=mt[1],i.attempt(mt[0].continuation,_,A)(bt)}return A(bt)}function _(bt){if(p++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,w&&at();const mt=a.events.length;let yt=mt,ft;for(;yt--;)if(a.events[yt][0]==="exit"&&a.events[yt][1].type==="chunkFlow"){ft=a.events[yt][1].end;break}st(p);let ut=mt;for(;ut<a.events.length;)a.events[ut][1].end=Object.assign({},ft),ut++;return m3(a.events,yt+1,0,a.events.slice(mt)),a.events.length=ut,A(bt)}return E(bt)}function A(bt){if(p===f.length){if(!w)return N(bt);if(w.currentConstruct&&w.currentConstruct.concrete)return z(bt);a.interrupt=!!(w.currentConstruct&&!w._gfmTableDynamicInterruptHack)}return a.containerState={},i.check(RNt,I,B)(bt)}function I(bt){return w&&at(),st(p),N(bt)}function B(bt){return a.parser.lazy[a.now().line]=p!==f.length,b=a.now().offset,z(bt)}function N(bt){return a.containerState={},i.attempt(RNt,R,z)(bt)}function R(bt){return p++,f.push([a.currentConstruct,a.containerState]),N(bt)}function z(bt){if(bt===null){w&&at(),st(0),i.consume(bt);return}return w=w||a.parser.flow(a.now()),i.enter("chunkFlow",{contentType:"flow",previous:m,_tokenizer:w}),W(bt)}function W(bt){if(bt===null){et(i.exit("chunkFlow"),!0),st(0),i.consume(bt);return}return xa(bt)?(i.consume(bt),et(i.exit("chunkFlow")),p=0,a.interrupt=void 0,E):(i.consume(bt),W)}function et(bt,mt){const yt=a.sliceStream(bt);if(mt&&yt.push(null),bt.previous=m,m&&(m.next=bt),m=bt,w.defineSkip(bt.start),w.write(yt),a.parser.lazy[bt.start.line]){let ft=w.events.length;for(;ft--;)if(w.events[ft][1].start.offset<b&&(!w.events[ft][1].end||w.events[ft][1].end.offset>b))return;const ut=a.events.length;let vt=ut,X,pt;for(;vt--;)if(a.events[vt][0]==="exit"&&a.events[vt][1].type==="chunkFlow"){if(X){pt=a.events[vt][1].end;break}X=!0}for(st(p),ft=ut;ft<a.events.length;)a.events[ft][1].end=Object.assign({},pt),ft++;m3(a.events,vt+1,0,a.events.slice(ut)),a.events.length=ft}}function st(bt){let mt=f.length;for(;mt-- >bt;){const yt=f[mt];a.containerState=yt[1],yt[0].exit.call(a,i)}f.length=bt}function at(){w.write([null]),m=void 0,w=void 0,a.containerState._closeFlow=void 0}}function PRe(i,a,f){return il(i,i.attempt(this.parser.constructs.document,a,f),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function jNt(i){if(i===null||pp(i)||LRe(i))return 1;if(ARe(i))return 2}function _0t(i,a,f){const p=[];let w=-1;for(;++w<i.length;){const m=i[w].resolveAll;m&&!p.includes(m)&&(a=m(a,f),p.push(m))}return a}const S0t={name:"attention",tokenize:NRe,resolveAll:FRe};function FRe(i,a){let f=-1,p,w,m,b,E,_,A,I;for(;++f<i.length;)if(i[f][0]==="enter"&&i[f][1].type==="attentionSequence"&&i[f][1]._close){for(p=f;p--;)if(i[p][0]==="exit"&&i[p][1].type==="attentionSequence"&&i[p][1]._open&&a.sliceSerialize(i[p][1]).charCodeAt(0)===a.sliceSerialize(i[f][1]).charCodeAt(0)){if((i[p][1]._close||i[f][1]._open)&&(i[f][1].end.offset-i[f][1].start.offset)%3&&!((i[p][1].end.offset-i[p][1].start.offset+i[f][1].end.offset-i[f][1].start.offset)%3))continue;_=i[p][1].end.offset-i[p][1].start.offset>1&&i[f][1].end.offset-i[f][1].start.offset>1?2:1;const B=Object.assign({},i[p][1].end),N=Object.assign({},i[f][1].start);$Nt(B,-_),$Nt(N,_),b={type:_>1?"strongSequence":"emphasisSequence",start:B,end:Object.assign({},i[p][1].end)},E={type:_>1?"strongSequence":"emphasisSequence",start:Object.assign({},i[f][1].start),end:N},m={type:_>1?"strongText":"emphasisText",start:Object.assign({},i[p][1].end),end:Object.assign({},i[f][1].start)},w={type:_>1?"strong":"emphasis",start:Object.assign({},b.start),end:Object.assign({},E.end)},i[p][1].end=Object.assign({},b.start),i[f][1].start=Object.assign({},E.end),A=[],i[p][1].end.offset-i[p][1].start.offset&&(A=sw(A,[["enter",i[p][1],a],["exit",i[p][1],a]])),A=sw(A,[["enter",w,a],["enter",b,a],["exit",b,a],["enter",m,a]]),A=sw(A,_0t(a.parser.constructs.insideSpan.null,i.slice(p+1,f),a)),A=sw(A,[["exit",m,a],["enter",E,a],["exit",E,a],["exit",w,a]]),i[f][1].end.offset-i[f][1].start.offset?(I=2,A=sw(A,[["enter",i[f][1],a],["exit",i[f][1],a]])):I=0,m3(i,p-1,f-p+3,A),f=p+A.length-I-2;break}}for(f=-1;++f<i.length;)i[f][1].type==="attentionSequence"&&(i[f][1].type="data");return i}function NRe(i,a){const f=this.parser.constructs.attentionMarkers.null,p=this.previous,w=jNt(p);let m;return b;function b(_){return m=_,i.enter("attentionSequence"),E(_)}function E(_){if(_===m)return i.consume(_),E;const A=i.exit("attentionSequence"),I=jNt(_),B=!I||I===2&&w||f.includes(_),N=!w||w===2&&I||f.includes(p);return A._open=!!(m===42?B:B&&(w||!N)),A._close=!!(m===42?N:N&&(I||!B)),a(_)}}function $Nt(i,a){i.column+=a,i.offset+=a,i._bufferIndex+=a}const BRe={name:"autolink",tokenize:RRe};function RRe(i,a,f){let p=0;return w;function w(R){return i.enter("autolink"),i.enter("autolinkMarker"),i.consume(R),i.exit("autolinkMarker"),i.enter("autolinkProtocol"),m}function m(R){return y3(R)?(i.consume(R),b):A(R)}function b(R){return R===43||R===45||R===46||lm(R)?(p=1,E(R)):A(R)}function E(R){return R===58?(i.consume(R),p=0,_):(R===43||R===45||R===46||lm(R))&&p++<32?(i.consume(R),E):(p=0,A(R))}function _(R){return R===62?(i.exit("autolinkProtocol"),i.enter("autolinkMarker"),i.consume(R),i.exit("autolinkMarker"),i.exit("autolink"),a):R===null||R===32||R===60||T0t(R)?f(R):(i.consume(R),_)}function A(R){return R===64?(i.consume(R),I):CRe(R)?(i.consume(R),A):f(R)}function I(R){return lm(R)?B(R):f(R)}function B(R){return R===46?(i.consume(R),p=0,I):R===62?(i.exit("autolinkProtocol").type="autolinkEmail",i.enter("autolinkMarker"),i.consume(R),i.exit("autolinkMarker"),i.exit("autolink"),a):N(R)}function N(R){if((R===45||lm(R))&&p++<63){const z=R===45?N:B;return i.consume(R),z}return f(R)}}const yY={tokenize:jRe,partial:!0};function jRe(i,a,f){return p;function p(m){return Wc(m)?il(i,w,"linePrefix")(m):w(m)}function w(m){return m===null||xa(m)?a(m):f(m)}}const zNt={name:"blockQuote",tokenize:$Re,continuation:{tokenize:zRe},exit:qRe};function $Re(i,a,f){const p=this;return w;function w(b){if(b===62){const E=p.containerState;return E.open||(i.enter("blockQuote",{_container:!0}),E.open=!0),i.enter("blockQuotePrefix"),i.enter("blockQuoteMarker"),i.consume(b),i.exit("blockQuoteMarker"),m}return f(b)}function m(b){return Wc(b)?(i.enter("blockQuotePrefixWhitespace"),i.consume(b),i.exit("blockQuotePrefixWhitespace"),i.exit("blockQuotePrefix"),a):(i.exit("blockQuotePrefix"),a(b))}}function zRe(i,a,f){const p=this;return w;function w(b){return Wc(b)?il(i,m,"linePrefix",p.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):m(b)}function m(b){return i.attempt(zNt,a,f)(b)}}function qRe(i){i.exit("blockQuote")}const qNt={name:"characterEscape",tokenize:HRe};function HRe(i,a,f){return p;function p(m){return i.enter("characterEscape"),i.enter("escapeMarker"),i.consume(m),i.exit("escapeMarker"),w}function w(m){return SRe(m)?(i.enter("characterEscapeValue"),i.consume(m),i.exit("characterEscapeValue"),i.exit("characterEscape"),a):f(m)}}const HNt=document.createElement("i");function A0t(i){const a="&"+i+";";HNt.innerHTML=a;const f=HNt.textContent;return f.charCodeAt(f.length-1)===59&&i!=="semi"||f===a?!1:f}const VNt={name:"characterReference",tokenize property in xBe.m [all...] |