1var e;(function(e){let t=e.tryParseContentAsDelta=e=>{if(Array.isArray(e))return e;if(typeof e==`object`&&e&&e.ops)return e.ops;if(typeof e==`string`)try{return t(JSON.parse(e))}catch{return[{insert:``+e}]}else return[{insert:``+e}]};e.getImagesFromDelta=(e,n=1/0)=>{n=typeof n==`number`?n:1/0;let r=t(e),i=[];for(let e of r){if(i.length>=n)break;typeof e?.insert==`object`&&typeof e.insert.image==`string`&&i.push(e.insert.image)}return i},e.getTextFromDelta=(e,n=!1,r=1/0)=>{r=typeof r==`number`?r:1/0;let i=t(e).reduce((e,t)=>{if(typeof t.insert==`string`)return e+t.insert;if(typeof t.insert==`object`&&t.insert!==null&&!n){if(typeof t.insert.image==`string`)return e+`[å¾ç]`;if(typeof t.insert.video==`string`)return e+`[è§é¢]`;if(typeof t.insert.audio==`string`)return e+`[é³é¢]`}return e},``);return i.length>r?i.slice(0,r)+`...`:i}})(e||={});export{e as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.