1import{B as r,bX as n,bY as c,r as d,a as m,v as p}from"./index--s6NDqxB.js";class u extends r{routeName="sections";fromJson=e=>new n(e);async addBackgroundImage(e,a){return(await c.post(`${this.routeName}/${e}/add_image/`,a)).data}}const g=new u;class h extends m{api=g;sections=[];lastViewed=null;async addBackgroundImage(e,a){const t=new FormData;return t.append("image",a),t.append("main_image",String(!0)),await this.api.addBackgroundImage(e,t)}async setScheme(e){const a=p.cloneDeep(e);return a.figures.forEach(s=>s.table?s.table.images=s.table.images.map(o=>o.uuid):void 0),await this.api.send({method:"POST",action:"set_scheme",id:this.item?.id,data:a})}async createSection(e){const a=await this.api.send({method:"POST",action:"",data:e});return new n(a)}async setSorting(e){return(await this.api.send({method:"POST",action:"set_sorting",data:{objects:e}})).results.map(t=>new n(t))}}const l=d(new h);export{l as s};
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.