PageSourceSearch

https://notespacehq.lovable.app/assets/index-DQl_mhF-.js

js notespacehq.lovable.app collected 2026-10-03 03:34:09 UTC 9,286 bytes, 12 lines download raw bytes

1import{ao as ue}from"./index-JqkDX5dy.js";function ce(e,r){for(var t=0;t<r.length;t++){const a=r[t];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(a,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>a[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}/*!
2 * Determine if an object is a Buffer
3 *
4 * @author   Feross Aboukhadijeh <https://feross.org>
5 * @license  MIT
6 */var he=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)},re=pe,ve=[];function pe(e,r){var t=0,a;if(!r)return ve;if(e.FLAG==="long"){for(a=new Array(Math.ceil(r.length/2));t<r.length;)a[t/2]=r.slice(t,t+2),t+=2;return a}return r.split(e.FLAG==="num"?",":"")}var de=re,ge=me,we=[].push,I="etaoinshrdlcumwfgypbvkjxqz".split(""),_=/\s+/,Oe=["qwertzuop","yxcvbnm","qaw","say","wse","dsx","sy","edr","fdc","dx","rft","gfv","fc","tgz","hgb","gv","zhu","jhn","hb","uji","kjm","jn","iko","lkm"];function me(e){var r=Object.create(null),t=Object.create(null),a=Object.create(null),i=[],l={in:[],out:[]},s=[],h=e.toString("utf8"),u=[],c=0,n=h.indexOf(`
7`),f,R,o,d,w,x,m,C,A,p,E,v,N;for(a.KEY=[];n>-1;)O(h.slice(c,n)),c=n+1,n=h.indexOf(`
8`,c);for(O(h.slice(c)),n=-1;++n<u.length;)if(R=u[n],f=R.split(_),o=f[0],o==="REP"){for(d=n+parseInt(f[1],10);++n<=d;)f=u[n].split(_),i.push([f[1],f[2]]);n--}else if(o==="ICONV"||o==="OCONV"){for(d=n+parseInt(f[1],10),C=l[o==="ICONV"?"in":"out"];++n<=d;)f=u[n].split(_),C.push([new RegExp(f[1],"g"),f[2]]);n--}else if(o==="COMPOUNDRULE"){for(d=n+parseInt(f[1],10);++n<=d;)for(p=u[n].split(_)[1],A=-1,s.push(p);++A<p.length;)t[p.charAt(A)]=[];n--}else if(o==="PFX"||o==="SFX"){for(d=n+parseInt(f[3],10),p={type:o,combineable:f[2]==="Y",entries:[]},r[f[1]]=p;++n<=d;){f=u[n].split(_),w=f[2],x=f[3].split("/"),m=f[4],C={add:"",remove:"",match:"",continuation:de(a,x[1])},x&&x[0]!=="0"&&(C.add=x[0]);try{w!=="0"&&(C.remove=o==="SFX"?G(w):w),m&&m!=="."&&(C.match=o==="SFX"?G(m):Ce(m))}catch{C=null}C&&p.entries.push(C)}n--}else if(o==="TRY"){for(m=f[1],v=-1,E=[];++v<m.length;)N=m.charAt(v),N.toLowerCase()===N&&E.push(N);for(v=-1;++v<I.length;)m.indexOf(I[v])<0&&E.push(I[v]);a[o]=E}else o==="KEY"?we.apply(a[o],f[1].split("|")):o==="COMPOUNDMIN"?a[o]=Number(f[1]):o==="ONLYINCOMPOUND"?(a[o]=f[1],t[f[1]]=[]):a[o]=f[1];return isNaN(a.COMPOUNDMIN)&&(a.COMPOUNDMIN=3),a.KEY.length||(a.KEY=Oe),a.TRY||(a.TRY=I.concat()),a.KEEPCASE||(a.KEEPCASE=!1),{compoundRuleCodes:t,replacementTable:i,conversion:l,compoundRules:s,rules:r,flags:a};function O(g){g=g.trim(),g&&g.charCodeAt(0)!==35&&u.push(g)}}function G(e){return new RegExp(e+"$")}function Ce(e){return new RegExp("^"+e)}var ae=Re;function Re(e,r){for(var t=-1;++t<r.length;)e=e.replace(r[t][0],r[t][1]);return e}var M=xe;function xe(e,r,t){return t&&r in e&&t.indexOf(e[r])>-1}var Ee=M,Ne=Ae;function Ae(e,r){var t=-1;if(e.data[r])return!Ee(e.flags,"ONLYINCOMPOUND",e.data[r]);if(r.length>=e.flags.COMPOUNDMIN){for(;++t<e.compoundRules.length;)if(e.compoundRules[t].test(r))return!0}return!1}var ye=ae,T=Ne,Y=M,W=De;function De(e,r,t){var a=r.trim(),i;if(!a)return null;if(a=ye(a,e.conversion.in),T(e,a))return!t&&Y(e.flags,"FORBIDDENWORD",e.data[a])?null:a;if(a.toUpperCase()===a){if(i=a.charAt(0)+a.slice(1).toLowerCase(),X(e.flags,e.data[i],t))return null;if(T(e,i))return i}if(i=a.toLowerCase(),i!==a){if(X(e.flags,e.data[i],t))return null;if(T(e,i))return i}return null}function X(e,r,t){return Y(e,"KEEPCASE",r)||t||Y(e,"FORBIDDENWORD",r)}var be=W,$e=Se;function Se(e){return!!be(this,e)}var _e=Le;function Le(e){var r=k(e.charAt(0)),t=e.slice(1);return!t||(t=k(t),r===t)?r:r==="u"&&t==="l"?"s":null}function k(e){return e===e.toLowerCase()?"l":e===e.toUpperCase()?"u":null}var U=_e,q=ae,Ie=M,Ue=W,Fe=Pe,Me=[].push;function Pe(e){var r=this,t={},a=[],i={},l,s,h=[],u,c,n,f,R,o,d,w,x,m,C,A,p,E,v,N,O,g,b,S,P,B,L;if(e=q(e.trim(),r.conversion.in),!e||r.correct(e))return[];for(L=U(e),c=-1;++c<r.replacementTable.length;)for(s=r.replacementTable[c],n=e.indexOf(s[0]);n>-1;)h.push(e.replace(s[0],s[1])),n=e.indexOf(s[0],n+1);for(c=-1;++c<e.length;)for(w=e.charAt(c),m=e.slice(0,c),C=e.slice(c+1),p=w.toLowerCase(),A=p!==w,t={},n=-1;++n<r.flags.KEY.length;)if(x=r.flags.KEY[n],f=x.indexOf(p),!(f<0)){for(o=-1;++o<x.length;)if(o!==f){if(d=x.charAt(o),t[d])continue;t[d]=!0,A&&(d=d.toUpperCase()),h.push(m+d+C)}}for(c=-1,O=e.charAt(0),u=[""],g=1,b=0;++c<e.length;){for(w=O,O=e.charAt(c+1),m=e.slice(0,c),s=w===O?"":w+w,n=-1,R=u.length;++n<R;)n<=g&&u.push(u[n]+s),u[n]+=w;++b<3&&(g=u.length)}for(Me.apply(h,u),u=[e],s=e.toLowerCase(),(e===s||L===null)&&u.push(e.charAt(0).toUpperCase()+s.slice(1)),s=e.toUpperCase(),e!==s&&u.push(s),l={state:{},weighted:i,suggestions:a},E=V(r,l,u,h),v=0,g=Math.min(E.length,Math.pow(Math.max(15-e.length,3),3)),S=Math.max(Math.pow(10-e.length,3),1);!a.length&&v<g;)N=v+S,V(r,l,E.slice(v,N)),v=N;for(a.sort(se),u=[],P=[],c=-1;++c<a.length;)B=q(a[c],r.conversion.out),s=B.toLowerCase(),P.indexOf(s)<0&&(u.pu
8sh(B),P.push(s));return u;function se(y,D){return le(y,D)||oe(y,D)||fe(y,D)}function le(y,D){return i[y]===i[D]?0:i[y]>i[D]?-1:1}function oe(y,D){var z=U(y),K=U(D);return z===K?0:z===L?-1:K===L?1:void 0}function fe(y,D){return y.localeCompare(D)}}function V(e,r,t,a){var i=e.flags.TRY,l=e.data,s=e.flags,h=[],u=-1,c,n,f,R,o,d,w,x,m,C,A,p,E;if(a)for(;++u<a.length;)v(a[u],!0);for(u=-1;++u<t.length;)for(c=t[u],n="",f="",R=c.charAt(0),o=c,d=c.slice(1),w=R.toLowerCase()!==R,x=U(c),m=-1;++m<=c.length;)for(n+=f,C=o,o=d,d=o.slice(1),f=R,R=c.charAt(m+1),A=w,R&&(w=R.toLowerCase()!==R),o&&A!==w&&(v(n+N(o)),v(n+N(R)+N(f)+d)),v(n+o),o&&v(n+R+f+d),E=-1;++E<i.length;)p=i[E],A&&p!==p.toUpperCase()?(x!=="s"&&(v(n+p+C),v(n+p+o)),p=p.toUpperCase(),v(n+p+C),v(n+p+o)):(v(n+p+C),v(n+p+o));return h;function v(O,g){var b=r.state[O],S;b!==!!b&&(h.push(O),S=Ue(e,O),b=S&&!Ie(s,"NOSUGGEST",l[S]),r.state[O]=b,b&&(r.weighted[O]=g?10:0,r.suggestions.push(O))),b&&r.weighted[O]++}function N(O){var g=O.charAt(0);return(g.toLowerCase()===g?g.toUpperCase():g.toLowerCase())+O.slice(1)}}var Be=W,H=M,Te=Ye;function Ye(e){var r=this,t=Be(r,e,!0);return{correct:r.correct(e),forbidden:!!(t&&H(r.flags,"FORBIDDENWORD",r.data[t])),warn:!!(t&&H(r.flags,"WARN",r.data[t]))}}var je=te;function te(e,r,t,a){for(var i=-1,l,s,h,u,c;++i<r.entries.length;)if(l=r.entries[i],u=l.continuation,c=-1,(!l.match||l.match.test(e))&&(s=l.remove?e.replace(l.remove,""):e,s=r.type==="SFX"?s+l.add:l.add+s,a.push(s),u&&u.length))for(;++c<u.length;)h=t[u[c]],h&&te(s,h,t,a);return a}var J=je,ie=Ke,We=[].push,j=[];function ze(e,r,t){var a=e[r];r in e?a===j?e[r]=t.concat():We.apply(a,t):e[r]=t.concat()}function Ke(e,r,t,a){var i=-1,l,s,h,u,c,n,f;for((!("NEEDAFFIX"in a.flags)||t.indexOf(a.flags.NEEDAFFIX)<0)&&ze(e,r,t);++i<t.length;)if(l=a.rules[t[i]],t[i]in a.compoundRuleCodes&&a.compoundRuleCodes[t[i]].push(r),l){for(n=J(r,l,a.rules,[]),s=-1;++s<n.length;)if(n[s]in e||(e[n[s]]=j),l.combineable){for(h=i;++h<t.length;)if(c=a.rules[t[h]],c&&c.combineable&&l.type!==c.type)for(f=J(n[s],c,a.rules,[]),u=-1;++u<f.length;)f[u]in e||(e[f[u]]=j)}}}var Ge=ie,Xe=qe,ke=[];function qe(e,r){var t=this;return Ge(t.data,e,t.data[r]||ke,t),t}var Ve=He;function He(e){var r=this;return delete r.data[e],r}var Je=Qe;function Qe(){return this.flags.WORDCHARS||null}var Ze=re,er=ie,rr=ar,Q=/\s/g;function ar(e,r,t){for(var a=e.toString("utf8"),i=a.indexOf(`
9`)+1,l=a.indexOf(`
10`,i);l>-1;)a.charCodeAt(i)!==9&&Z(a.slice(i,l),r,t),i=l+1,l=a.indexOf(`
11`,i);Z(a.slice(i),r,t)}function Z(e,r,t){for(var a=e.indexOf("/"),i=e.indexOf("#"),l="",s,h;a>-1&&e.charCodeAt(a-1)===92;)e=e.slice(0,a-1)+e.slice(a),a=e.indexOf("/",a);i>-1?a>-1&&a<i?(s=e.slice(0,a),Q.lastIndex=a+1,h=Q.exec(e),l=e.slice(a+1,h?h.index:void 0)):s=e.slice(0,i):a>-1?(s=e.slice(0,a),l=e.slice(a+1)):s=e,s=s.trim(),s&&er(t,s,Ze(r.flags,l.trim()),r)}var tr=rr,ir=nr;function nr(e){var r=this,t=-1,a,i,l,s;for(tr(e,r,r.data);++t<r.compoundRules.length;){for(a=r.compoundRules[t],i="",s=-1;++s<a.length;)l=a.charAt(s),i+=r.compoundRuleCodes[l].length?"(?:"+r.compoundRuleCodes[l].join("|")+")":l;r.compoundRules[t]=new RegExp(i,"i")}return r}var sr=lr;function lr(e){var r=this,t=e.toString("utf8").split(`
12`),a=-1,i,l,s,h;for(r.flags.FORBIDDENWORD===void 0&&(r.flags.FORBIDDENWORD=!1),h=r.flags.FORBIDDENWORD;++a<t.length;)i=t[a].trim(),i&&(i=i.split("/"),s=i[0],l=s.charAt(0)==="*",l&&(s=s.slice(1)),r.add(s,i[1]),l&&r.data[s].push(h));return r}var ee=he,or=ge,ne=F,$=F.prototype;$.correct=$e;$.suggest=Fe;$.spell=Te;$.add=Xe;$.remove=Ve;$.wordCharacters=Je;$.dictionary=ir;$.personal=sr;function F(e,r){var t=-1,a;if(!(this instanceof F))return new F(e,r);if(typeof e=="string"||ee(e)?(typeof r=="string"||ee(r))&&(a=[{dic:r}]):e&&("length"in e?(a=e,e=e[0]&&e[0].aff):(e.dic&&(a=[e]),e=e.aff)),!e)throw new Error("Missing `aff` in dictionary");if(e=or(e),this.data=Object.create(null),this.compoundRuleCodes=e.compoundRuleCodes,this.replacementTable=e.replacementTable,this.conversion=e.conversion,this.compoundRules=e.compoundRules,this.rules=e.rules,this.flags=e.flags,a)for(;++t<a.length;)a[t].dic&&this.dictionary(a[t].dic)}const fr=ue(ne),cr=ce({__proto__:null,default:fr},[ne]);export{cr 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.