PageSourceSearch

https://goepik.io/static/js/2811.d7d6ab81.chunk.js

js goepik.io collected 2026-10-02 01:59:07 UTC 4,616 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcorporate_prototype=self.webpackChunkcorporate_prototype||[]).push([[2811],{40414:(t,e,a)=>{function r(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}a.d(e,{S:()=>r}),(0,a(76667).K)(r,"populateCommonDb")},62811:(t,e,a)=>{a.d(e,{diagram:()=>$});var r=a(40414),o=a(85340),i=a(24884),n=a(1353),s=a(96621),l=a(76667),c=a(48507),d=n.UI.packet,p=class{constructor(){this.packet=[],this.setAccTitle=n.SV,this.getAccTitle=n.iN,this.setDiagramTitle=n.ke,this.getDiagramTitle=n.ab,this.getAccDescription=n.m7,this.setAccDescription=n.EI}static#t=(()=>(0,l.K)(this,"PacketDB"))();getConfig(){const t=(0,i.$t)({...d,...(0,n.zj)().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){(0,n.IU)(),this.packet=[]}},h=(0,l.K)((t,e)=>{(0,r.S)(t,e);let a=-1,o=[],i=1;const{bitsPerRow:n}=e.getConfig();for(let{start:r,end:l,bits:c,label:d}of t.blocks){if(void 0!==r&&void 0!==l&&l<r)throw new Error(`Packet block ${r} - ${l} is invalid. End must be greater than start.`);if(r??=a+1,r!==a+1)throw new Error(`Packet block ${r} - ${l??r} is not contiguous. It should start from ${a+1}.`);if(0===c)throw new Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(l??=r+(c??1)-1,c??=l-r+1,a=l,s.R.debug(`Packet block ${r} - ${a} with label ${d}`);o.length<=n+1&&e.getPacket().length<1e4;){const[t,a]=b({start:r,end:l,bits:c,label:d},i,n);if(o.push(t),t.end+1===i*n&&(e.pushWord(o),o=[],i++),!a)break;({start:r,end:l,bits:c,label:d}=a)}}e.pushWord(o)},"populate"),b=(0,l.K)((t,e,a)=>{if(void 0===t.start)throw new Error("start should have been set during first phase");if(void 0===t.end)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*a)return[t,void 0];const r=e*a-1,o=e*a;return[{start:t.start,end:r,label:t.label,bits:r-t.start},{start:o,end:t.end,label:t.label,bits:t.end-o}]},"getNextFittingBlock"),k={parser:{yy:void 0},parse:(0,l.K)(async t=>{const e=await(0,c.qg)("packet",t),a=k.parser?.yy;if(!(a instanceof p))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");s.R.debug(e),h(e,a)},"parse")},g=(0,l.K)((t,e,a,r)=>{const i=r.db,s=i.getConfig(),{rowHeight:l,paddingY:c,bitWidth:d,bitsPerRow:p}=s,h=i.getPacket(),b=i.getDiagramTitle(),k=l+c,g=k*(h.length+1)-(b?0:l),u=d*p+2,w=(0,o.D)(e);w.attr("viewBox",`0 0 ${u} ${g}`),(0,n.a$)(w,g,u,s.useMaxWidth);for(const[o,n]of h.entries())f(w,n,o,s);w.append("text").text(b).attr("x",u/2).attr("y",g-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),f=(0,l.K)((t,e,a,r)=>{let{rowHeight:o,paddingX:i,paddingY:n,bitWidth:s,bitsPerRow:l,showBits:c}=r;const d=t.append("g"),p=a*(o+n)+n;for(const h of e){const t=h.start%l*s+1,e=(h.end-h.start+1)*s-i;if(d.append("rect").attr("x",t).attr("y",p).attr("width",e).attr("height",o).attr("class","packetBlock"),d.append("text").attr("x",t+e/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(h.label),!c)continue;const a=h.end===h.start,r=p-2;d.append("text").attr("x",t+(a?e/2:0)).attr("y",r).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",a?"middle":"start").text(h.start),a||d.append("text").attr("x",t+e).attr("y",r).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(h.end)}},"drawWord"),u={draw:g},w={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},y=(0,l.K)(function(){let{packet:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=(0,i.$t)(w,t);return`\n\t.packetByte {\n\t\tfont-size: ${e.byteFontSize};\n\t}\n\t.packetByte.start {\n\t\tfill: ${e.startByteColor};\n\t}\n\t.packetByte.end {\n\t\tfill: ${e.endByteColor};\n\t}\n\t.packetLabel {\n\t\tfill: ${e.labelColor};\n\t\tfont-size: ${e.labelFontSize};\n\t}\n\t.packetTitle {\n\t\tfill: ${e.titleColor};\n\t\tfont-size: ${e.titleFontSize};\n\t}\n\t.packetBlock {\n\t\tstroke: ${e.blockStrokeColor};\n\t\tstroke-width: ${e.blockStrokeWidth};
1\n\t\tfill: ${e.blockFillColor};\n\t}\n\t`},"styles"),$={parser:k,get db(){return new p},renderer:u,styles:y}}}]);

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.