@unocss/runtime 66.6.0 → 66.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributify.global.js +4 -4
- package/core.global.js +1 -1
- package/full.global.js +4 -4
- package/mini.global.js +4 -4
- package/package.json +4 -4
- package/preset-icons.global.js +1 -1
- package/preset-mini.global.js +3 -3
- package/preset-typography.global.js +1 -1
- package/preset-uno.global.js +3 -3
- package/preset-wind.global.js +3 -3
- package/preset-wind3.global.js +3 -3
- package/preset-wind4.global.js +6 -6
- package/uno.global.js +4 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/runtime",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.6.
|
|
4
|
+
"version": "66.6.1",
|
|
5
5
|
"description": "CSS-in-JS Runtime for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@iconify/utils": "^3.1.0",
|
|
39
|
-
"@unocss/core": "66.6.
|
|
40
|
-
"@unocss/preset-attributify": "66.6.
|
|
41
|
-
"@unocss/preset-uno": "66.6.
|
|
39
|
+
"@unocss/core": "66.6.1",
|
|
40
|
+
"@unocss/preset-attributify": "66.6.1",
|
|
41
|
+
"@unocss/preset-uno": "66.6.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"tsup": "^8.5.1"
|
package/preset-icons.global.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var ye=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(o,r)=>(typeof require<"u"?require:o)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var d=(e,o)=>()=>(e&&(o=e(e=0)),o);var we,I,F,K,O=d(()=>{"use strict";we=Object.freeze({left:0,top:0,width:16,height:16}),I=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),F=Object.freeze({...we,...I}),K=Object.freeze({...F,body:"",hidden:!1})});var Se,E,T=d(()=>{"use strict";O();Se=Object.freeze({width:null,height:null}),E=Object.freeze({...Se,...I})});function Y(e,o){let r={};!e.hFlip!=!o.hFlip&&(r.hFlip=!0),!e.vFlip!=!o.vFlip&&(r.vFlip=!0);let n=((e.rotate||0)+(o.rotate||0))%4;return n&&(r.rotate=n),r}var X=d(()=>{"use strict"});function N(e,o){let r=Y(e,o);for(let n in K)n in I?n in e&&!(n in r)&&(r[n]=I[n]):n in o?r[n]=o[n]:n in e&&(r[n]=e[n]);return r}var Z=d(()=>{"use strict";O();X()});function J(e,o){let r=e.icons,n=e.aliases||Object.create(null),t=Object.create(null);function i(s){if(r[s])return t[s]=[];if(!(s in t)){t[s]=null;let a=n[s]&&n[s].parent,u=a&&i(a);u&&(t[s]=[a].concat(u))}return t[s]}return(o||Object.keys(r).concat(Object.keys(n))).forEach(i),t}var Q=d(()=>{"use strict"});function ee(e,o,r){let n=e.icons,t=e.aliases||Object.create(null),i={};function s(a){i=N(n[a]||t[a],i)}return s(o),r.forEach(s),N(e,i)}function te(e,o){if(e.icons[o])return ee(e,o,[]);let r=J(e,[o])[o];return r?ee(e,o,r):null}var oe=d(()=>{"use strict";Z();Q()});function x(e,o,r){if(o===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*o*r)/r;if(typeof e!="string")return e;let n=e.split(ve);if(n===null||!n.length)return e;let t=[],i=n.shift(),s=be.test(i);for(;;){if(s){let a=parseFloat(i);isNaN(a)?t.push(i):t.push(Math.ceil(a*o*r)/r)}else t.push(i);if(i=n.shift(),i===void 0)return t.join("");s=!s}}var ve,be,L=d(()=>{"use strict";ve=/(-?[0-9.]*[0-9]+[0-9.]*)/g,be=/^-?[0-9.]*[0-9]+[0-9.]*$/g});function xe(e,o="defs"){let r="",n=e.indexOf("<"+o);for(;n>=0;){let t=e.indexOf(">",n),i=e.indexOf("</"+o);if(t===-1||i===-1)break;let s=e.indexOf(">",i);if(s===-1)break;r+=e.slice(t+1,i).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:r,content:e}}function Ie(e,o){return e?"<defs>"+e+"</defs>"+o:o}function re(e,o,r){let n=xe(e);return Ie(n.defs,o+n.content+r)}var ne=d(()=>{"use strict"});function ie(e,o){let r={...F,...e},n={...E,...o},t={left:r.left,top:r.top,width:r.width,height:r.height},i=r.body;[r,n].forEach(l=>{let c=[],b=l.hFlip,S=l.vFlip,y=l.rotate;b?S?y+=2:(c.push("translate("+(t.width+t.left).toString()+" "+(0-t.top).toString()+")"),c.push("scale(-1 1)"),t.top=t.left=0):S&&(c.push("translate("+(0-t.left).toString()+" "+(t.height+t.top).toString()+")"),c.push("scale(1 -1)"),t.top=t.left=0);let p;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:p=t.height/2+t.top,c.unshift("rotate(90 "+p.toString()+" "+p.toString()+")");break;case 2:c.unshift("rotate(180 "+(t.width/2+t.left).toString()+" "+(t.height/2+t.top).toString()+")");break;case 3:p=t.width/2+t.left,c.unshift("rotate(-90 "+p.toString()+" "+p.toString()+")");break}y%2===1&&(t.left!==t.top&&(p=t.left,t.left=t.top,t.top=p),t.width!==t.height&&(p=t.width,t.width=t.height,t.height=p)),c.length&&(i=re(i,'<g transform="'+c.join(" ")+'">',"</g>"))});let s=n.width,a=n.height,u=t.width,m=t.height,f,v;s===null?(v=a===null?"1em":a==="auto"?m:a,f=x(v,u/m)):(f=s==="auto"?u:s,v=a===null?x(f,m/u):a==="auto"?m:a);let w={},h=(l,c)=>{$(c)||(w[l]=c.toString())};h("width",f),h("height",v);let g=[t.left,t.top,u,m];return w.viewBox=g.join(" "),{attributes:w,viewBox:g,body:i}}var $,R=d(()=>{"use strict";O();T();L();ne();$=e=>e==="unset"||e==="undefined"||e==="none"});function ae(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}var ce=d(()=>{"use strict"});function ke(e,o,r){let n=e.slice(0,e.indexOf(">")),t=(i,s)=>{let a=s.exec(n),u=a!=null,m=o[i];return!m&&!$(m)&&(typeof r=="number"?r>0&&(o[i]=x(a?.[1]??"1em",r)):a&&(o[i]=a[1])),u};return[t("width",Ce),t("height",$e)]}async function _(e,o,r,n,t,i){let{scale:s,addXmlNs:a=!1}=n??{},{additionalProps:u={},iconCustomizer:m}=n?.customizations??{},f=await t?.()??{};await m?.(o,r,f),Object.keys(u).forEach(l=>{let c=u[l];c!=null&&(f[l]=c)}),i?.(f);let[v,w]=ke(e,f,s);a&&(!e.includes("xmlns=")&&!f.xmlns&&(f.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!f["xmlns:xlink"]&&(f["xmlns:xlink"]="http://www.w3.org/1999/xlink"));let h=Object.keys(f).map(l=>l==="width"&&v||l==="height"&&w?null:`${l}="${f[l]}"`).filter(l=>l!=null);if(h.length&&(e=e.replace(V,`<svg ${h.join(" ")} `)),n){let{defaultStyle:l,defaultClass:c}=n;c&&!e.includes("class=")&&(e=e.replace(V,`<svg class="${c}" `)),l&&!e.includes("style=")&&(e=e.replace(V,`<svg style="${l}" `))}let g=n?.usedProps;return g&&(Object.keys(u).forEach(l=>{let c=f[l];c!=null&&(g[l]=c)}),typeof f.width<"u"&&f.width!==null&&(g.width=f.width),typeof f.height<"u"&&f.height!==null&&(g.height=f.height)),e}var Ce,$e,V,U=d(()=>{"use strict";L();R();Ce=/\swidth\s*=\s*["']([\w.]+)["']/,$e=/\sheight\s*=\s*["']([\w.]+)["']/,V=/<svg\s+/});async function D(e,o,r,n){let t;try{if(typeof e=="function")t=await e(r);else{let i=e[r];t=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${r}" in "${o}":`,i);return}if(t){let i=t.indexOf("<svg");i>0&&(t=t.slice(i));let{transform:s}=n?.customizations??{};return t=typeof s=="function"?await s(t,o,r):t,t.startsWith("<svg")?await _(n?.customizations?.trimCustomSvg===!0?ae(t):t,o,r,n,void 0):(console.warn(`Custom icon "${r}" in "${o}" is not a valid SVG`),t)}}var le=d(()=>{"use strict";ce();U()});async function M(e,o,r,n){let t,{customize:i}=n?.customizations??{};for(let s of r)if(t=te(e,s),t){let a={...E};typeof i=="function"&&(t=Object.assign({},t),a=i(a,t,`${o}:${s}`)??a);let{attributes:{width:u,height:m,...f},body:v}=ie(t,a),w=n?.scale;return await _(`<svg >${v}</svg>`,o,s,n,()=>({...f}),h=>{let g=(l,c)=>{let b=h[l],S;if(!$(b)){if(b)return;typeof w=="number"?w&&(S=x(c??"1em",w)):S=c}S?h[l]=S:delete h[l]};g("width",u),g("height",m)})}}var G=d(()=>{"use strict";T();oe();L();R();U()});var k,q=d(()=>{"use strict";le();G();k=async(e,o,r)=>{let n=r?.customCollections?.[e];if(n)if(typeof n=="function"){let t;try{t=await n(o)}catch(i){console.warn(`Failed to load custom icon "${o}" in "${e}":`,i);return}if(t){if(typeof t=="string")return await D(()=>t,e,o,r);if("icons"in t){let i=[o,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o.replace(/([a-z])(\d+)/g,"$1-$2")];return await M(t,e,i,r)}}}else return await D(n,e,o,r)}});function se(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function z(e){let o=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!o.includes(" xmlns:xlink=")&&o.includes(" xlink:")&&(o=o.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),o.includes(" xmlns=")||(o=o.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),se(o)}q();var je="default",Ae="preflights",Oe="shortcuts",Ee="imports",St={[Ee]:-200,[Ae]:-100,[Oe]:-10,[je]:0};var fe=new Set;function ue(e){fe.has(e)||(console.warn("[unocss]",e),fe.add(e))}function me(){let e=typeof process<"u"&&process.stdout;return{isNode:e,isVSCode:e&&!!process.env.VSCODE_CWD,isESLint:e&&!!process.env.ESLINT}}var pe=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","dinkie-icons","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fa7-brands","fa7-regular","fa7-solid","fad","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-icon-theme","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","picon","pixel","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","roentgen","si-glyph","si","sidekickicons","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-block","streamline-color","streamline-cyber-color","streamline-cyber","streamline-emojis","streamline-flex-color","streamline-flex","streamline-freehand-color","streamline-freehand","streamline-guidance","streamline-kameleon-color","streamline-logos","streamline-pixel","streamline-plump-color","streamline-plump","streamline-sharp-color","streamline-sharp","streamline-stickies-color","streamline-ultimate-color","streamline-ultimate","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","temaki","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"],Le=3;function W(e){return(o={})=>{let{scale:r=1,mode:n="auto",prefix:t="i-",warn:i=!1,iconifyCollectionsNames:s,collections:a,extraProperties:u={},customizations:m={},autoInstall:f=!1,collectionsNodeResolvePath:v,layer:w="icons",unit:h,processor:g}=o,l=me(),c={addXmlNs:!0,scale:r,customCollections:a,autoInstall:f,cwd:v,warn:void 0,customizations:{...m,additionalProps:{...u},trimCustomSvg:!0,async iconCustomizer(S,y,p){await m.iconCustomizer?.(S,y,p),h&&(p.width||(p.width=`${r}${h}`),p.height||(p.height=`${r}${h}`))}}},b;return{name:"@unocss/preset-icons",enforce:"pre",options:o,layers:{icons:-30},api:{encodeSvgForCss:z,parseIconWithLoader:B},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async S=>{let[y,p,j=n]=S;b=b||await e(o);let P={},C=await B(p,b,{...c,usedProps:P},s);if(!C){i&&!l.isESLint&&ue(`failed to load icon "${y}"`);return}let A,H=`url("data:image/svg+xml;utf8,${z(C.svg)}")`;return j==="auto"&&(j=C.svg.includes("currentColor")?"mask":"bg"),j==="mask"?A={"--un-icon":H,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...P}:A={background:`${H} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...P},g?.(A,{...C,icon:C.name,mode:j}),A},{layer:w,prefix:t}]]}}}async function B(e,o,r={},n=[]){let t="",i="",s,a=new Set([...pe,...n,...Object.keys(r.customCollections||{})]);if(e.includes(":")){if([t,i]=e.split(":"),!a.has(t))return;s=await o(t,i,r)}else{let u=e.split(/-/g);for(let m=Le;m>=1&&(t=u.slice(0,m).join("-"),!(!!a.has(t)&&(i=u.slice(m).join("-"),s=await o(t,i,r),s)));m--);}if(s)return{collection:t,name:i,svg:s}}var de=ye("module");var _e={},At=(0,de.createRequire)(_e.url);q();G();var he=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","dinkie-icons","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fa7-brands","fa7-regular","fa7-solid","fad","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-icon-theme","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","picon","pixel","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","roentgen","si-glyph","si","sidekickicons","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-block","streamline-color","streamline-cyber-color","streamline-cyber","streamline-emojis","streamline-flex-color","streamline-flex","streamline-freehand-color","streamline-freehand","streamline-guidance","streamline-kameleon-color","streamline-logos","streamline-pixel","streamline-plump-color","streamline-plump","streamline-sharp-color","streamline-sharp","streamline-stickies-color","streamline-ultimate-color","streamline-ultimate","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","temaki","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"];function ge(e,o,r=new Map){function n(t){if(he.includes(t))return r.has(t)||r.set(t,e(`${o}@iconify-json/${t}/icons.json`)),r.get(t)}return async(t,i,s)=>{let a=await k(t,i,s);if(a)return a;let u=await n(t);if(u){let m=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];a=await M(u,t,m,s)}return a}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},(()=>{let e=W(async o=>{let r=o?.customFetch??(t=>fetch(t).then(i=>i.json())),n=o?.cdn;return n?ge(r,n):k});return{presetIcons:o=>e(o)}})());})();
|
|
1
|
+
"use strict";(()=>{var ye=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(o,r)=>(typeof require<"u"?require:o)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var d=(e,o)=>()=>(e&&(o=e(e=0)),o);var we,I,F,K,O=d(()=>{"use strict";we=Object.freeze({left:0,top:0,width:16,height:16}),I=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),F=Object.freeze({...we,...I}),K=Object.freeze({...F,body:"",hidden:!1})});var Se,E,T=d(()=>{"use strict";O();Se=Object.freeze({width:null,height:null}),E=Object.freeze({...Se,...I})});function Y(e,o){let r={};!e.hFlip!=!o.hFlip&&(r.hFlip=!0),!e.vFlip!=!o.vFlip&&(r.vFlip=!0);let n=((e.rotate||0)+(o.rotate||0))%4;return n&&(r.rotate=n),r}var X=d(()=>{"use strict"});function N(e,o){let r=Y(e,o);for(let n in K)n in I?n in e&&!(n in r)&&(r[n]=I[n]):n in o?r[n]=o[n]:n in e&&(r[n]=e[n]);return r}var Z=d(()=>{"use strict";O();X()});function J(e,o){let r=e.icons,n=e.aliases||Object.create(null),t=Object.create(null);function i(s){if(r[s])return t[s]=[];if(!(s in t)){t[s]=null;let a=n[s]&&n[s].parent,u=a&&i(a);u&&(t[s]=[a].concat(u))}return t[s]}return(o||Object.keys(r).concat(Object.keys(n))).forEach(i),t}var Q=d(()=>{"use strict"});function ee(e,o,r){let n=e.icons,t=e.aliases||Object.create(null),i={};function s(a){i=N(n[a]||t[a],i)}return s(o),r.forEach(s),N(e,i)}function te(e,o){if(e.icons[o])return ee(e,o,[]);let r=J(e,[o])[o];return r?ee(e,o,r):null}var oe=d(()=>{"use strict";Z();Q()});function x(e,o,r){if(o===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*o*r)/r;if(typeof e!="string")return e;let n=e.split(be);if(n===null||!n.length)return e;let t=[],i=n.shift(),s=ve.test(i);for(;;){if(s){let a=parseFloat(i);isNaN(a)?t.push(i):t.push(Math.ceil(a*o*r)/r)}else t.push(i);if(i=n.shift(),i===void 0)return t.join("");s=!s}}var be,ve,L=d(()=>{"use strict";be=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ve=/^-?[0-9.]*[0-9]+[0-9.]*$/g});function xe(e,o="defs"){let r="",n=e.indexOf("<"+o);for(;n>=0;){let t=e.indexOf(">",n),i=e.indexOf("</"+o);if(t===-1||i===-1)break;let s=e.indexOf(">",i);if(s===-1)break;r+=e.slice(t+1,i).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:r,content:e}}function Ie(e,o){return e?"<defs>"+e+"</defs>"+o:o}function re(e,o,r){let n=xe(e);return Ie(n.defs,o+n.content+r)}var ne=d(()=>{"use strict"});function ie(e,o){let r={...F,...e},n={...E,...o},t={left:r.left,top:r.top,width:r.width,height:r.height},i=r.body;[r,n].forEach(l=>{let c=[],v=l.hFlip,S=l.vFlip,y=l.rotate;v?S?y+=2:(c.push("translate("+(t.width+t.left).toString()+" "+(0-t.top).toString()+")"),c.push("scale(-1 1)"),t.top=t.left=0):S&&(c.push("translate("+(0-t.left).toString()+" "+(t.height+t.top).toString()+")"),c.push("scale(1 -1)"),t.top=t.left=0);let p;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:p=t.height/2+t.top,c.unshift("rotate(90 "+p.toString()+" "+p.toString()+")");break;case 2:c.unshift("rotate(180 "+(t.width/2+t.left).toString()+" "+(t.height/2+t.top).toString()+")");break;case 3:p=t.width/2+t.left,c.unshift("rotate(-90 "+p.toString()+" "+p.toString()+")");break}y%2===1&&(t.left!==t.top&&(p=t.left,t.left=t.top,t.top=p),t.width!==t.height&&(p=t.width,t.width=t.height,t.height=p)),c.length&&(i=re(i,'<g transform="'+c.join(" ")+'">',"</g>"))});let s=n.width,a=n.height,u=t.width,m=t.height,f,b;s===null?(b=a===null?"1em":a==="auto"?m:a,f=x(b,u/m)):(f=s==="auto"?u:s,b=a===null?x(f,m/u):a==="auto"?m:a);let w={},h=(l,c)=>{$(c)||(w[l]=c.toString())};h("width",f),h("height",b);let g=[t.left,t.top,u,m];return w.viewBox=g.join(" "),{attributes:w,viewBox:g,body:i}}var $,R=d(()=>{"use strict";O();T();L();ne();$=e=>e==="unset"||e==="undefined"||e==="none"});function ae(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}var ce=d(()=>{"use strict"});function ke(e,o,r){let n=e.slice(0,e.indexOf(">")),t=(i,s)=>{let a=s.exec(n),u=a!=null,m=o[i];return!m&&!$(m)&&(typeof r=="number"?r>0&&(o[i]=x(a?.[1]??"1em",r)):a&&(o[i]=a[1])),u};return[t("width",Ce),t("height",$e)]}async function _(e,o,r,n,t,i){let{scale:s,addXmlNs:a=!1}=n??{},{additionalProps:u={},iconCustomizer:m}=n?.customizations??{},f=await t?.()??{};await m?.(o,r,f),Object.keys(u).forEach(l=>{let c=u[l];c!=null&&(f[l]=c)}),i?.(f);let[b,w]=ke(e,f,s);a&&(!e.includes("xmlns=")&&!f.xmlns&&(f.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!f["xmlns:xlink"]&&(f["xmlns:xlink"]="http://www.w3.org/1999/xlink"));let h=Object.keys(f).map(l=>l==="width"&&b||l==="height"&&w?null:`${l}="${f[l]}"`).filter(l=>l!=null);if(h.length&&(e=e.replace(V,`<svg ${h.join(" ")} `)),n){let{defaultStyle:l,defaultClass:c}=n;c&&!e.includes("class=")&&(e=e.replace(V,`<svg class="${c}" `)),l&&!e.includes("style=")&&(e=e.replace(V,`<svg style="${l}" `))}let g=n?.usedProps;return g&&(Object.keys(u).forEach(l=>{let c=f[l];c!=null&&(g[l]=c)}),typeof f.width<"u"&&f.width!==null&&(g.width=f.width),typeof f.height<"u"&&f.height!==null&&(g.height=f.height)),e}var Ce,$e,V,U=d(()=>{"use strict";L();R();Ce=/\swidth\s*=\s*["']([\w.]+)["']/,$e=/\sheight\s*=\s*["']([\w.]+)["']/,V=/<svg\s+/});async function D(e,o,r,n){let t;try{if(typeof e=="function")t=await e(r);else{let i=e[r];t=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${r}" in "${o}":`,i);return}if(t){let i=t.indexOf("<svg");i>0&&(t=t.slice(i));let{transform:s}=n?.customizations??{};return t=typeof s=="function"?await s(t,o,r):t,t.startsWith("<svg")?await _(n?.customizations?.trimCustomSvg===!0?ae(t):t,o,r,n,void 0):(console.warn(`Custom icon "${r}" in "${o}" is not a valid SVG`),t)}}var le=d(()=>{"use strict";ce();U()});async function M(e,o,r,n){let t,{customize:i}=n?.customizations??{};for(let s of r)if(t=te(e,s),t){let a={...E};typeof i=="function"&&(t=Object.assign({},t),a=i(a,t,`${o}:${s}`)??a);let{attributes:{width:u,height:m,...f},body:b}=ie(t,a),w=n?.scale;return await _(`<svg >${b}</svg>`,o,s,n,()=>({...f}),h=>{let g=(l,c)=>{let v=h[l],S;if(!$(v)){if(v)return;typeof w=="number"?w&&(S=x(c??"1em",w)):S=c}S?h[l]=S:delete h[l]};g("width",u),g("height",m)})}}var G=d(()=>{"use strict";T();oe();L();R();U()});var k,q=d(()=>{"use strict";le();G();k=async(e,o,r)=>{let n=r?.customCollections?.[e];if(n)if(typeof n=="function"){let t;try{t=await n(o)}catch(i){console.warn(`Failed to load custom icon "${o}" in "${e}":`,i);return}if(t){if(typeof t=="string")return await D(()=>t,e,o,r);if("icons"in t){let i=[o,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o.replace(/([a-z])(\d+)/g,"$1-$2")];return await M(t,e,i,r)}}}else return await D(n,e,o,r)}});function se(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function z(e){let o=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!o.includes(" xmlns:xlink=")&&o.includes(" xlink:")&&(o=o.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),o.includes(" xmlns=")||(o=o.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),se(o)}q();var je="default",Ae="preflights",Oe="shortcuts",Ee="imports",St={[Ee]:-200,[Ae]:-100,[Oe]:-10,[je]:0};var fe=new Set;function ue(e){fe.has(e)||(console.warn("[unocss]",e),fe.add(e))}function me(){let e=typeof process<"u"&&process.stdout;return{isNode:e,isVSCode:e&&!!process.env.VSCODE_CWD,isESLint:e&&!!process.env.ESLINT}}var pe=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","boxicons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","dinkie-icons","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fa7-brands","fa7-regular","fa7-solid","fad","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","geo","gg","gis","glyphs-poly","glyphs","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-icon-theme","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","picon","pixel","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","roentgen","si-glyph","si","sidekickicons","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-block","streamline-color","streamline-cyber-color","streamline-cyber","streamline-emojis","streamline-flex-color","streamline-flex","streamline-freehand-color","streamline-freehand","streamline-guidance","streamline-kameleon-color","streamline-logos","streamline-pixel","streamline-plump-color","streamline-plump","streamline-sharp-color","streamline-sharp","streamline-stickies-color","streamline-ultimate-color","streamline-ultimate","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","temaki","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wordpress","wpf","zmdi","zondicons"],Le=3;function W(e){return(o={})=>{let{scale:r=1,mode:n="auto",prefix:t="i-",warn:i=!1,iconifyCollectionsNames:s,collections:a,extraProperties:u={},customizations:m={},autoInstall:f=!1,collectionsNodeResolvePath:b,layer:w="icons",unit:h,processor:g}=o,l=me(),c={addXmlNs:!0,scale:r,customCollections:a,autoInstall:f,cwd:b,warn:void 0,customizations:{...m,additionalProps:{...u},trimCustomSvg:!0,async iconCustomizer(S,y,p){await m.iconCustomizer?.(S,y,p),h&&(p.width||(p.width=`${r}${h}`),p.height||(p.height=`${r}${h}`))}}},v;return{name:"@unocss/preset-icons",enforce:"pre",options:o,layers:{icons:-30},api:{encodeSvgForCss:z,parseIconWithLoader:B},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async S=>{let[y,p,j=n]=S;v=v||await e(o);let P={},C=await B(p,v,{...c,usedProps:P},s);if(!C){i&&!l.isESLint&&ue(`failed to load icon "${y}"`);return}let A,H=`url("data:image/svg+xml;utf8,${z(C.svg)}")`;return j==="auto"&&(j=C.svg.includes("currentColor")?"mask":"bg"),j==="mask"?A={"--un-icon":H,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...P}:A={background:`${H} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...P},g?.(A,{...C,icon:C.name,mode:j}),A},{layer:w,prefix:t}]]}}}async function B(e,o,r={},n=[]){let t="",i="",s,a=new Set([...pe,...n,...Object.keys(r.customCollections||{})]);if(e.includes(":")){if([t,i]=e.split(":"),!a.has(t))return;s=await o(t,i,r)}else{let u=e.split(/-/g);for(let m=Le;m>=1&&(t=u.slice(0,m).join("-"),!(!!a.has(t)&&(i=u.slice(m).join("-"),s=await o(t,i,r),s)));m--);}if(s)return{collection:t,name:i,svg:s}}var de=ye("module");var _e={},At=(0,de.createRequire)(_e.url);q();G();var he=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","boxicons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","dinkie-icons","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fa7-brands","fa7-regular","fa7-solid","fad","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","geo","gg","gis","glyphs-poly","glyphs","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-icon-theme","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","picon","pixel","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","roentgen","si-glyph","si","sidekickicons","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-block","streamline-color","streamline-cyber-color","streamline-cyber","streamline-emojis","streamline-flex-color","streamline-flex","streamline-freehand-color","streamline-freehand","streamline-guidance","streamline-kameleon-color","streamline-logos","streamline-pixel","streamline-plump-color","streamline-plump","streamline-sharp-color","streamline-sharp","streamline-stickies-color","streamline-ultimate-color","streamline-ultimate","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","temaki","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wordpress","wpf","zmdi","zondicons"];function ge(e,o,r=new Map){function n(t){if(he.includes(t))return r.has(t)||r.set(t,e(`${o}@iconify-json/${t}/icons.json`)),r.get(t)}return async(t,i,s)=>{let a=await k(t,i,s);if(a)return a;let u=await n(t);if(u){let m=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];a=await M(u,t,m,s)}return a}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},(()=>{let e=W(async o=>{let r=o?.customFetch??(t=>fetch(t).then(i=>i.json())),n=o?.cdn;return n?ge(r,n):k});return{presetIcons:o=>e(o)}})());})();
|