1import{g as N}from"./_commonjsHelpers-BosuxZz1.js";function u(l,s){for(var e=0;e<s.length;e++){const n=s[e];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in l)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(l,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}function f(l){var s=" ";if(isNaN(parseInt(l)))s=l;else switch(l){case 1:s=" ";break;case 2:s=" ";break;case 3:s=" ";break;case 4:s=" ";break;case 5:s=" ";break;case 6:s=" ";break;case 7:s=" ";break;case 8:s=" ";break;case 9:s=" ";break;case 10:s=" ";break;case 11:s=" ";break;case 12:s=" ";break}for(var e=[` 2`],n=0;n<100;n++)e.push(e[n]+s);return e}function g(){this.step=" ",this.shift=f(this.step)}g.prototype.xml=function(l,s){var e=l.replace(/>\s{0,}</g,"><").replace(/</g,"~::~<").replace(/\s*xmlns\:/g,"~::~xmlns:").replace(/\s*xmlns\=/g,"~::~xmlns=").split("~::~"),n=e.length,a=!1,i=0,c="",r=0,t=s?f(s):this.shift;for(r=0;r<n;r++)e[r].search(/<!/)>-1?(c+=t[i]+e[r],a=!0,(e[r].search(/-->/)>-1||e[r].search(/\]>/)>-1||e[r].search(/!DOCTYPE/)>-1)&&(a=!1)):e[r].search(/-->/)>-1||e[r].search(/\]>/)>-1?(c+=e[r],a=!1):/^<\w/.exec(e[r-1])&&/^<\/\w/.exec(e[r])&&/^<[\w:\-\.\,]+/.exec(e[r-1])==/^<\/[\w:\-\.\,]+/.exec(e[r])[0].replace("/","")?(c+=e[r],a||i--):e[r].search(/<\w/)>-1&&e[r].search(/<\//)==-1&&e[r].search(/\/>/)==-1?c=a?c+=e[r]:c+=t[i++]+e[r]:e[r].search(/<\w/)>-1&&e[r].search(/<\//)>-1?c=a?c+=e[r]:c+=t[i]+e[r]:e[r].search(/<\//)>-1?c=a?c+=e[r]:c+=t[--i]+e[r]:e[r].search(/\/>/)>-1?c=a?c+=e[r]:c+=t[i]+e[r]:e[r].search(/<\?/)>-1||e[r].search(/xmlns\:/)>-1||e[r].search(/xmlns\=/)>-1?c+=t[i]+e[r]:c+=e[r];return c[0]==` 3`?c.slice(1):c};g.prototype.json=function(l,e){var e=e||this.step;return typeof JSON>"u"?l:typeof l=="string"?JSON.stringify(JSON.parse(l),null,e):typeof l=="object"?JSON.stringify(l,null,e):l};g.prototype.css=function(l,s){var e=l.replace(/\s{1,}/g," ").replace(/\{/g,"{~::~").replace(/\}/g,"~::~}~::~").replace(/\;/g,";~::~").replace(/\/\*/g,"~::~/*").replace(/\*\//g,"*/~::~").replace(/~::~\s{0,}~::~/g,"~::~").split("~::~"),n=e.length,a=0,i="",c=0,r=s?f(s):this.shift;for(c=0;c<n;c++)/\{/.exec(e[c])?i+=r[a++]+e[c]:/\}/.exec(e[c])?i+=r[--a]+e[c]:(/\*\\/.exec(e[c]),i+=r[a]+e[c]);return i.replace(/^\n{1,}/,"")};function S(l,s){return s-(l.replace(/\(/g,"").length-l.replace(/\)/g,"").length)}function h(l,s){return l.replace(/\s{1,}/g," ").replace(/ AND /ig,"~::~"+s+s+"AND ").replace(/ BETWEEN /ig,"~::~"+s+"BETWEEN ").replace(/ CASE /ig,"~::~"+s+"CASE ").replace(/ ELSE /ig,"~::~"+s+"ELSE ").replace(/ END /ig,"~::~"+s+"END ").replace(/ FROM /ig,"~::~FROM ").replace(/ GROUP\s{1,}BY/ig,"~::~GROUP BY ").replace(/ HAVING /ig,"~::~HAVING ").replace(/ IN /ig," IN ").replace(/ JOIN /ig,"~::~JOIN ").replace(/ CROSS~::~{1,}JOIN /ig,"~::~CROSS JOIN ").replace(/ INNER~::~{1,}JOIN /ig,"~::~INNER JOIN ").replace(/ LEFT~::~{1,}JOIN /ig,"~::~LEFT JOIN ").replace(/ RIGHT~::~{1,}JOIN /ig,"~::~RIGHT JOIN ").replace(/ ON /ig,"~::~"+s+"ON ").replace(/ OR /ig,"~::~"+s+s+"OR ").replace(/ ORDER\s{1,}BY/ig,"~::~ORDER BY ").replace(/ OVER /ig,"~::~"+s+"OVER ").replace(/\(\s{0,}SELECT /ig,"~::~(SELECT ").replace(/\)\s{0,}SELECT /ig,")~::~SELECT ").replace(/ THEN /ig," THEN~::~"+s).replace(/ UNION /ig,"~::~UNION~::~").replace(/ USING /ig,"~::~USING ").replace(/ WHEN /ig,"~::~"+s+"WHEN ").replace(/ WHERE /ig,"~::~WHERE ").replace(/ WITH /ig,"~::~WITH ").replace(/ ALL /ig," ALL ").replace(/ AS /ig," AS ").replace(/ ASC /ig," ASC ").replace(/ DESC /ig," DESC ").replace(/ DISTINCT /ig," DISTINCT ").replace(/ EXISTS /ig," EXISTS ").replace(/ NOT /ig," NOT ").replace(/ NULL /ig," NULL ").replace(/ LIKE /ig," LIKE ").replace(/\s{0,}SELECT /ig,"SELECT ").replace(/\s{0,}UPDATE /ig,"UPDATE ").replace(/ SET /ig," SET ").replace(/~::~{1,}/g,"~::~").split("~::~")}g.prototype.sql=function(l,s){var e=l.replace(/\s{1,}/g," ").replace(/\'/ig,"~::~'").split("~::~"),n=e.length,a=[],i=0,c=this.step,r=0,t="",p=0,o=s?f(s):this.shift;for(p=0;p<n;p++)p%2?a=a.concat(e[p]):a=a.concat(h(e[p],c));for(n=a.length,p=0;p<n;p++)r=S(a[p],r),/\s{0,}\s{0,}SELECT\s{0,}/.exec(a[p])&&(a[p]=a[p].replace(/\,/g,`, 4`+c+c)),/\s{0,}\s{0,}SET\s{0,}/.exec(a[p])&&(a[p]=a[p].replace(/\,/g,`, 5`+c+c)),/\s{0,}\(\s{0,}SELECT\s{0,}/.exec(a[p])?(i++,t+=o[i]+a[p]):/\'/.exec(a[p])?(r<1&&i&&i--,t+=a[p]):(t+=o[i]+a[p],r<1&&i&&i--);return t=t.replace(/^\n{1,}/,"").replace(/\n{1,}/g,` 6`),t};g.prototype.xmlmin=function(l,s){var e=s?l:l.replace(/\<![ \r\n\t]*(--([^\-]|[\r\n]|-[^\-])*--[ \r\n\t]*)\>/g,"").replace(/[ \r\n\t]{1,}xmlns/g," xmlns");return e.replace(/>\s{0,}</g,"><")};g.prototype.jsonmin=function(l){return typeof JSON>"u"?l:JSON.stringify(JSON.parse(l),null,0)};g.prototype.cssmin=function(l,s){var e=s?l:l.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g,"");return e.replace(/\s{1,}/g," ").replace(/\{\s{1,}/g,"{").replace(/\}\s{1,}/g,"}").replace(/\;\s{1,}/g,";").replace(/\/\*\s{1,}/g,"/*").replace(/\*\/\s{1,}/g,"*/")};g.prototype.sqlmin=function(l){return l.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")")};var E=new g;const O=N(E),T=u({__proto__:null,default:O},[E]);
6export{T as i};
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.