1function t(t){return t.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}const e=-2147483648,r=2147483647;function n(t){return t^=t<<13,t^=t>>17,t^=t<<5}function i(t=""){let a=function(t){let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r)|0,e=n(e);return e}(t=t.toString())||1;const o=()=>a=n(a),l=(t,n)=>Math.floor((o()-e)/(r-e)*(n+1-t)+t);return{seed:t,next:o,bool:(t=50)=>l(1,100)<=t,integer:(t,e)=>l(t,e),pick(t,e){var r;return 0===t.length?(o(),e):null!==(r=t[l(0,t.length-1)])&&void 0!==r?r:e},shuffle(t){const e=i(o().toString()),r=[...t];for(let n=r.length-1;n>0;n--){const t=e.integer(0,n);[r[n],r[t]]=[r[t],r[n]]}return r},string(t,e="abcdefghijklmnopqrstuvwxyz1234567890"){const r=i(o().toString());let n="";for(let i=0;i<t;i++)n+=e[r.integer(0,e.length-1)];return n}}}function a(t){let e=t.attributes.viewBox.split(" ");return{x:parseInt(e[0]),y:parseInt(e[1]),width:parseInt(e[2]),height:parseInt(e[3])}}const o={properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1}}};function l(t){var e;let r={},n=null!==(e=t.properties)&&void 0!==e?e:{};return Object.keys(n).forEach((t=>{let e=n[t];"object"==typeof e&&void 0!==e.default&&(Array.isArray(e.default)?r[t]=[...e.default]:"object"==typeof e.default?r[t]={...e.default}:r[t]=e.default)})),r}function d(t){return"transparent"===t?t:`#${t}`}function s(e,r={}){var n,s,u,c,m;r=function(t,e){var r;let n={...l(o),...l(null!==(r=t.schema)&&void 0!==r?r:{}),...e};return JSON.parse(JSON.stringify(n))}(e,r);const g=i(r.seed),f=e.create({prng:g,options:r}),p=g.pick(null!==(n=r.backgroundType)&&void 0!==n?n:[],"solid"),{primary:v,secondary:y}=function(t,e,r){var n;let i=t.shuffle(e);i.length<=1||2==e.length&&"gradientLinear"==r?(i=e,t.next()):i=t.shuffle(e),0===i.length&&(i=["transparent"]);const a=i[0],o=null!==(n=i[1])&&void 0!==n?n:i[0];return{primary:d(a),secondary:d(o)}}(g,null!==(s=r.backgroundColor)&&void 0!==s?s:[],p),h=g.integer((null===(u=r.backgroundRotation)||void 0===u?void 0:u.length)?Math.min(...r.backgroundRotation):0,(null===(c=r.backgroundRotation)||void 0===c?void 0:c.length)?Math.max(...r.backgroundRotation):0);r.size&&(f.attributes.width=r.size.toString(),f.attributes.height=r.size.toString()),void 0!==r.scale&&100!==r.scale&&(f.body=function(t,e){let{width:r,height:n,x:i,y:o}=a(t),l=e?(e-100)/100:0;return`<g transform="translate(${(r/2+i)*l*-1} ${(n/2+o)*l*-1}) scale(${e/100})">${t.body}</g>`}(f,r.scale)),r.flip&&(f.body=function(t){let{width:e,x:r}=a(t);return`<g transform="scale(-1 1) translate(${-1*e-2*r} 0)">${t.body}</g>`}(f)),r.rotate&&(f.body=function(t,e){let{width:r,height:n,x:i,y:o}=a(t);return`<g transform="rotate(${e}, ${r/2+i}, ${n/2+o})">${t.body}</g>`}(f,r.rotate)),(r.translateX||r.translateY)&&(f.body=function(t,e,r){let n=a(t);return`<g transform="translate(${(n.width+2*n.x)*((null!=e?e:0)/100)} ${(n.height+2*n.y)*((null!=r?r:0)/100)})">${t.body}</g>`}(f,r.translateX,r.translateY)),"transparent"!==v&&"transparent"!==y&&(f.body=function(e,r,n,i,o){let{width:l,height:d,x:s,y:u}=a(e);const c=`<rect fill="${t(r)}" width="${l}" height="${d}" x="${s}" y="${u}" />`;switch(i){case"solid":return c+e.body;case"gradientLinear":return`<rect fill="url(#backgroundLinear)" width="${l}" height="${d}" x="${s}" y="${u}" /><defs><linearGradient id="backgroundLinear" gradientTransform="rotate(${o} 0.5 0.5)"><stop stop-color="${t(r)}"/><stop offset="1" stop-color="${t(n)}"/></linearGradient></defs>`+e.body}}(f,v,y,p,h)),(r.radius||r.clip)&&(f.body=function(t,e){let{width:r,height:n,x:i,y:o}=a(t);return`<mask id="viewboxMask"><rect width="${r}" height="${n}" rx="${e?r*e/100:0}" ry="${e?n*e/100:0}" x="${i}" y="${o}" fill="#fff" /></mask><g mask="url(#viewboxMask)">${t.body}</g>`}(f,null!==(m=r.radius)&&void 0!==m?m:0)),r.randomizeIds&&(f.body=function(t){const e=i(Math.random().toString()),r={};return t.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,((t,n,i,a)=>(r[i]=r[i]||e.string(8),`${n}${r[i]}${a}`)))}(f));const $=function(e){const r={xmlns:"http://www.w3.org/2000/svg",...e.attributes};return Object.keys(r).map((e=>`${t(e)}="${t(r[e])}"`)).join(" ")}(f),b=function(e){var r,n,i,a,o,l,d;const s=null===(r=e.meta)||void 0===r?void 0:r.title,u=null===(n=e.meta)||void 0===n?void 0:n.creator,c=null===(i=e.meta)||void 0===i?void 0:i.source,m=null===(o=null===(a=e.meta)||void 0===a?void 0:a.license)||void 0===o?void 0:o.url,g=function(t){var e,r,n,i,a,o,l,d,s,u,c,m,g,f,p;let v=(null===(e=t.meta)||void 0===e?void 0:e.title)?`â${null===(r=t.meta)||void 0===r?void 0:r.title}â`:"Design",y=`â${null!==(i=null===(n=t.meta)||void 0===n?void 0:n.creator)&&void 0!==i?i:"Unknown"}â`;(null===(a=t.meta)||void 0===a?void 0:a.source)&&(v+=` (${t.meta.source})`);let h="";return"MIT"!==(null===(l=null===(o=t.meta)||void 0===o?void 0:o.license)||void 0===l?void 0:l.name)&&"DiceBear"!==(null===(d=t.meta)||void 0===d?void 0:d.creator)&&(null===(s=t.meta)||void 0===s?void 0:s.title)&&(h+="Remix of "),h+=`${v} by ${y}`,(null===(c=null===(u=t.meta)||void 0===u?void 0:u.license)||void 0===c?void 0:c.name)&&(h+=`, licensed under â${null===(g=null===(m=t.meta)||void 0===m?void 0:m.license)||void 0===g?void 0:g.name}â`,(null===(p=null===(f=t.meta)||void 0===f?void 0:f.license)||void 0===p?void 0:p.url)&&(h+=` (${t.meta.license.url})`)),h}(e);return s||u||c||m||g?'<metadata xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"><rdf:RDF><rdf:Description>'+(s?`<dc:title>${t(s)}</dc:title>`:"")+(u?`<dc:creator>${t(u)}</dc:creator>`:"")+(c?`<dc:source xsi:type="dcterms:URI">${t(null!==(d=null===(l=e.meta)||void 0===l?void 0:l.source)&&void 0!==d?d:"")}</dc:source>`:"")+(m?`<dcterms:license xsi:type="dcterms:URI">${t(m)}</dcterms:license>`:"")+(g?`<dc:rights>${t(g)}</dc:rights>`:"")+"</rdf:Description></rdf:RDF></metadata>":""}(e),x=`<svg ${$}>${b}${f.body}</svg>`;return{toString:()=>x,toJson:()=>{var t;
1return{svg:x,extra:{primaryBackgroundColor:v,secondaryBackgroundColor:y,backgroundType:p,backgroundRotation:h,...null===(t=f.extra)||void 0===t?void 0:t.call(f)}}},toDataUri:()=>`data:image/svg+xml;utf8,${encodeURIComponent(x)}`}}function u(t,e=!0){let r=t;e&&(r=t.replace(/@.*/,"")),r=r.replace(/[`´ââ'ʼ]/g,"");const n=r.match(new RegExp("(\\p{L}[\\p{L}\\p{M}]*)","gu"));if(!n)return e?u(t,!1):"";if(1===n.length)return n[0].match(new RegExp("^(?:\\p{L}\\p{M}*){1,2}","u"))[0].toUpperCase();return(n[0].match(new RegExp("^(?:\\p{L}\\p{M}*)","u"))[0]+n[n.length-1].match(new RegExp("^(?:\\p{L}\\p{M}*)","u"))[0]).toUpperCase()}function c(t){return t.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}const m=Object.freeze(Object.defineProperty({__proto__:null,create:({prng:t,options:e})=>{var r,n,i,a,o,l,d;const s=null!==(n=null===(r=e.fontFamily)||void 0===r?void 0:r.join(", "))&&void 0!==n?n:"Arial, sans-serif",m=null!==(i=e.fontSize)&&void 0!==i?i:50,g=null!==(a=e.fontWeight)&&void 0!==a?a:400,f="transparent"===(p=null!==(l=t.pick(null!==(o=e.textColor)&&void 0!==o?o:[]))&&void 0!==l?l:"ffffff")?p:`#${p}`;var p;const v=u(t.seed.trim()).slice(0,null!==(d=e.chars)&&void 0!==d?d:2);return{attributes:{viewBox:"0 0 100 100"},body:[`<text x="50%" y="50%" font-family="${c(s)}" font-size="${m}" font-weight="${g}" fill="${c(f)}" text-anchor="middle" dy="${(.356*m).toFixed(3)}">${c(v)}</text>`].join(""),extra:()=>({fontFamily:s,fontSize:m,fontWeight:g,textColor:f,initials:v})}},meta:{title:"Initials",creator:"DiceBear",source:"https://github.com/dicebear/dicebear",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},schema:{$schema:"http://json-schema.org/draft-07/schema#",properties:{backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["e53935","d81b60","8e24aa","5e35b1","3949ab","1e88e5","039be5","00acc1","00897b","43a047","7cb342","c0ca33","fdd835","ffb300","fb8c00","f4511e"]},textColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["ffffff"]},fontFamily:{type:"array",minItems:1,items:{type:"string",enum:["Arial","Verdana","Helvetica","Tahoma","Trebuchet MS","Times New Roman","Georgia","Garamond","Courier New","Brush Script MT","sans-serif","serif"]},default:["Arial","sans-serif"]},fontSize:{type:"integer",minimum:1,maximum:100,default:50},chars:{type:"integer",minimum:0,maximum:2,default:2},fontWeight:{type:"integer",default:400,enum:[100,200,300,400,500,600,700,800,900]}}}},Symbol.toStringTag,{value:"Module"}));export{s as c,m 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.