PageSourceSearch

https://drukarnia.com.ua/_nuxt/BqKSWqHO.js

js drukarnia.com.ua collected 2026-09-24 09:34:24 UTC 1,055 bytes, 1 lines download raw bytes

1import{W as c,a as u,P as l}from"./f9aG2r57.js";const m=c.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize"}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const r=(e==null?void 0:e.node)||this.editor.state.doc;return((e==null?void 0:e.mode)||this.options.mode)==="textSize"?r.textBetween(0,r.content.size,void 0," ").length:r.nodeSize},this.storage.words=e=>{const r=(e==null?void 0:e.node)||this.editor.state.doc;return r.textBetween(0,r.content.size," "," ").split(" ").filter(o=>o!=="").length}},addProseMirrorPlugins(){return[new u({key:new l("characterCount"),filterTransaction:(e,r)=>{const t=this.options.limit;if(!e.docChanged||t===0||t===null||t===void 0)return!0;const n=this.storage.characters({node:r.doc}),o=this.storage.characters({node:e.doc});if(o<=t||n>t&&o>t&&o<=n)return!0;if(n>t&&o>t&&o>n||!e.getMeta("paste"))return!1;const s=e.selection.$head.pos,d=o-t,i=s-d,a=s;return e.deleteRange(i,a),!(this.storage.characters({node:e.doc})>t)}})]}});export{m as C};

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.