vendor: 4,059 bytes, line 1
1import{ae as U}from"./NnXF74ws.js";const G=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],q={0:"�",128:"â¬",130:"â",131:"Æ",132:"â",133:"â¦",134:"â ",135:"â¡",136:"Ë",137:"â°",138:"Å ",139:"â¹",140:"Å",142:"Ž",145:"â",146:"â",147:"â",148:"â",149:"â¢",150:"â",151:"â",152:"Ë",153:"â¢",154:"Å¡",155:"âº",156:"Å",158:"ž",159:"Ÿ"};function H(e){const r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}function L(e){const r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}function P(e){const r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=122||r>=65&&r<=90}function v(e){return P(e)||H(e)}const Y=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function M(e,r){const i={},R=typeof i.additional=="string"?i.additional.charCodeAt(0):i.additional,E=[];let u=0,I=-1,g="",m,O;i.position&&("start"in i.position||"indent"in i.position?(O=i.position.indent,m=i.position.start):m=i.position);let S=(m?m.line:0)||1,h=(m?m.column:0)||1,w=A(),p;for(u--;++u<=e.length;)if(p===10&&(h=(O?O[I]:0)||1),p=e.charCodeAt(u),p===38){const a=e.charCodeAt(u+1);if(a===9||a===10||a===12||a===32||a===38||a===60||Number.isNaN(a)||R&&a===R){g+=String.fromCharCode(p),h++;continue}const s=u+1;let l=s,n=s,f;if(a===35){n=++l;const t=e.charCodeAt(n);t===88||t===120?(f="hexadecimal",n=++l):f="decimal"}else f="named";let N="",C="",c="";const k=f==="named"?v:f==="decimal"?H:L;for(n--;++n<=e.length;){const t=e.charCodeAt(n);if(!k(t))break;c+=String.fromCharCode(t),f==="named"&&G.includes(c)&&(N=c,C=U(c))}let b=e.charCodeAt(n)===59;if(b){n++;const t=f==="named"?U(c):!1;t&&(N=c,C=t)}let d=1+n-s,x="";if(!(!b&&i.nonTerminated===!1))if(!c)f!=="named"&&o(4,d);else if(f==="named"){if(b&&!C)o(5,1);else if(N!==c&&(n=l+N.length,d=1+n-l,b=!1),!b){const t=N?1:3;if(i.attribute){const y=e.charCodeAt(n);y===61?(o(t,d),C=""):v(y)?C="":o(t,d)}else o(t,d)}x=C}else{b||o(2,d);let t=Number.parseInt(c,f==="hexadecimal"?16:10);if(j(t))o(7,d),x="�";else if(t in q)o(6,d),x=q[t];else{let y="";z(t)&&o(6,d),t>65535&&(t-=65536,y+=String.fromCharCode(t>>>10|55296),t=56320|t&1023),x=y+String.fromCharCode(t)}}if(x){T(),w=A(),u=n-1,h+=n-s+1,E.push(x);const t=A();t.offset++,i.reference&&i.reference.call(i.referenceContext||void 0,x,{start:w,end:t},e.slice(s-1,n)),w=t}else c=e.slice(s-1,n),g+=c,h+=c.length,u=n-1}else p===10&&(S++,I++,h=0),Number.isNaN(p)?T():(g+=String.fromCharCode(p),h++);return E.join("");function A(){return{line:S,column:h,offset:u+((m?m.offset:0)||0)}}function o(a,s){let l;i.warning&&(l=A(),l.column+=s,l.offset+=s,i.warning.call(i.warningContext||void 0,Y[a],l,a))}function T(){g&&(E.push(g),i.text&&i.text.call(i.textContext||void 0,g,{start:w,end:A()}),g="")}}function j(e){return e>=55296&&e<=57343||e>1114111}function z(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}export{M as p};
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.