@unocss/runtime 66.5.10 → 66.5.11

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/runtime",
3
3
  "type": "module",
4
- "version": "66.5.10",
4
+ "version": "66.5.11",
5
5
  "description": "CSS-in-JS Runtime for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -35,9 +35,13 @@
35
35
  "dist"
36
36
  ],
37
37
  "dependencies": {
38
- "@unocss/core": "66.5.10",
39
- "@unocss/preset-attributify": "66.5.10",
40
- "@unocss/preset-uno": "66.5.10"
38
+ "@iconify/utils": "^3.1.0",
39
+ "@unocss/core": "66.5.11",
40
+ "@unocss/preset-uno": "66.5.11",
41
+ "@unocss/preset-attributify": "66.5.11"
42
+ },
43
+ "devDependencies": {
44
+ "tsup": "^8.5.1"
41
45
  },
42
46
  "scripts": {
43
47
  "build": "pnpm run build:node && pnpm run build:cdn && pnpm run build:presets",
@@ -45,7 +49,6 @@
45
49
  "build:node": "tsup --config tsup.node-config.ts",
46
50
  "build:presets": "tsup src/presets/*.ts --format iife --minify --out-dir .",
47
51
  "watch": "tsup src/cdn/*.ts --format iife --watch src --out-dir .",
48
- "dev": "nr watch & live-server --open=/play",
49
- "test:attw": "attw --pack --config-path ../../.attw-esm-only.json"
52
+ "dev": "nr watch & live-server --open=/play"
50
53
  }
51
54
  }
@@ -1,5 +1 @@
1
- "use strict";(()=>{var Ze=Object.create;var pe=Object.defineProperty;var Ye=Object.getOwnPropertyDescriptor;var Xe=Object.getOwnPropertyNames;var Qe=Object.getPrototypeOf,et=Object.prototype.hasOwnProperty;var M=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(o,t)=>(typeof require<"u"?require:o)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var x=(e,o)=>()=>(e&&(o=e(e=0)),o);var T=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var tt=(e,o,t,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of Xe(o))!et.call(e,r)&&r!==t&&pe(e,r,{get:()=>o[r],enumerable:!(n=Ye(o,r))||n.enumerable});return e};var de=(e,o,t)=>(t=e!=null?Ze(Qe(e)):{},tt(o||!e||!e.__esModule?pe(t,"default",{value:e,enumerable:!0}):t,e));var ot,R,Y,ge,V=x(()=>{"use strict";ot=Object.freeze({left:0,top:0,width:16,height:16}),R=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Y=Object.freeze({...ot,...R}),ge=Object.freeze({...Y,body:"",hidden:!1})});var rt,G,X=x(()=>{"use strict";V();rt=Object.freeze({width:null,height:null}),G=Object.freeze({...rt,...R})});function he(e,o){let t={};!e.hFlip!=!o.hFlip&&(t.hFlip=!0),!e.vFlip!=!o.vFlip&&(t.vFlip=!0);let n=((e.rotate||0)+(o.rotate||0))%4;return n&&(t.rotate=n),t}var Ce=x(()=>{"use strict"});function Q(e,o){let t=he(e,o);for(let n in ge)n in R?n in e&&!(n in t)&&(t[n]=R[n]):n in o?t[n]=o[n]:n in e&&(t[n]=e[n]);return t}var we=x(()=>{"use strict";V();Ce()});function ye(e,o){let t=e.icons,n=e.aliases||Object.create(null),r=Object.create(null);function i(c){if(t[c])return r[c]=[];if(!(c in r)){r[c]=null;let u=n[c]&&n[c].parent,d=u&&i(u);d&&(r[c]=[u].concat(d))}return r[c]}return(o||Object.keys(t).concat(Object.keys(n))).forEach(i),r}var be=x(()=>{"use strict"});function Ie(e,o,t){let n=e.icons,r=e.aliases||Object.create(null),i={};function c(u){i=Q(n[u]||r[u],i)}return c(o),t.forEach(c),Q(e,i)}function ve(e,o){if(e.icons[o])return Ie(e,o,[]);let t=ye(e,[o])[o];return t?Ie(e,o,t):null}var xe=x(()=>{"use strict";we();be()});function L(e,o,t){if(o===1)return e;if(t=t||100,typeof e=="number")return Math.ceil(e*o*t)/t;if(typeof e!="string")return e;let n=e.split(nt);if(n===null||!n.length)return e;let r=[],i=n.shift(),c=it.test(i);for(;;){if(c){let u=parseFloat(i);isNaN(u)?r.push(i):r.push(Math.ceil(u*o*t)/t)}else r.push(i);if(i=n.shift(),i===void 0)return r.join("");c=!c}}var nt,it,q=x(()=>{"use strict";nt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,it=/^-?[0-9.]*[0-9]+[0-9.]*$/g});function st(e,o="defs"){let t="",n=e.indexOf("<"+o);for(;n>=0;){let r=e.indexOf(">",n),i=e.indexOf("</"+o);if(r===-1||i===-1)break;let c=e.indexOf(">",i);if(c===-1)break;t+=e.slice(r+1,i).trim(),e=e.slice(0,n).trim()+e.slice(c+1)}return{defs:t,content:e}}function ct(e,o){return e?"<defs>"+e+"</defs>"+o:o}function Fe(e,o,t){let n=st(e);return ct(n.defs,o+n.content+t)}var Se=x(()=>{"use strict"});function Oe(e,o){let t={...Y,...e},n={...G,...o},r={left:t.left,top:t.top,width:t.width,height:t.height},i=t.body;[t,n].forEach(a=>{let l=[],b=a.hFlip,I=a.vFlip,v=a.rotate;b?I?v+=2:(l.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),l.push("scale(-1 1)"),r.top=r.left=0):I&&(l.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),l.push("scale(1 -1)"),r.top=r.left=0);let h;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:h=r.height/2+r.top,l.unshift("rotate(90 "+h.toString()+" "+h.toString()+")");break;case 2:l.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:h=r.width/2+r.left,l.unshift("rotate(-90 "+h.toString()+" "+h.toString()+")");break}v%2===1&&(r.left!==r.top&&(h=r.left,r.left=r.top,r.top=h),r.width!==r.height&&(h=r.width,r.width=r.height,r.height=h)),l.length&&(i=Fe(i,'<g transform="'+l.join(" ")+'">',"</g>"))});let c=n.width,u=n.height,d=r.width,g=r.height,s,f;c===null?(f=u===null?"1em":u==="auto"?g:u,s=L(f,d/g)):(s=c==="auto"?d:c,f=u===null?L(s,g/d):u==="auto"?g:u);let m={},p=(a,l)=>{N(l)||(m[a]=l.toString())};p("width",s),p("height",f);let C=[r.left,r.top,d,g];return m.viewBox=C.join(" "),{attributes:m,viewBox:C,body:i}}var N,ee=x(()=>{"use strict";V();X();q();Se();N=e=>e==="unset"||e==="undefined"||e==="none"});function je(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 Ee=x(()=>{"use strict"});function ut(e,o,t){let n=e.slice(0,e.indexOf(">")),r=(i,c)=>{let u=c.exec(n),d=u!=null,g=o[i];return!g&&!N(g)&&(typeof t=="number"?t>0&&(o[i]=L(u?.[1]??"1em",t)):u&&(o[i]=u[1])),d};return[r("width",at),r("height",lt)]}async function B(e,o,t,n,r,i){let{scale:c,addXmlNs:u=!1}=n??{},{additionalProps:d={},iconCustomizer:g}=n?.customizations??{},s=await r?.()??{};await g?.(o,t,s),Object.keys(d).forEach(a=>{let l=d[a];l!=null&&(s[a]=l)}),i?.(s);let[f,m]=ut(e,s,c);u&&(!e.includes("xmlns=")&&!s.xmlns&&(s.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!s["xmlns:xlink"]&&(s["xmlns:xlink"]="http://www.w3.org/1999/xlink"));let p=Object.keys(s).map(a=>a==="width"&&f||a==="height"&&m?null:`${a}="${s[a]}"`).filter(a=>a!=null);if(p.length&&(e=e.replace(oe,`<svg ${p.join(" ")} `)),n){let{defaultStyle:a,defaultClass:l}=n;l&&!e.includes("class=")&&(e=e.replace(oe,`<svg class="${l}" `)),a&&!e.includes("style=")&&(e=e.replace(oe,`<svg style="${a}" `))}let C=n?.usedProps;return C&&(Object.keys(d).forEach(a=>{let l=s[a];l!=null&&(C[a]=l)}),typeof s.width<"u"&&s.width!==null&&(C.width=s.width),typeof s.height<"u"&&s.height!==null&&(C.height=s.height)),e}var at,lt,oe,re=x(()=>{"use strict";q();ee();at=/\swidth\s*=\s*["']([\w.]+)["']/,lt=/\sheight\s*=\s*["']([\w.]+)["']/,oe=/<svg\s+/});var Le=T((ao,Te)=>{"use strict";var A=1e3,P=A*60,z=P*60,$=z*24,ft=$*7,mt=$*365.25;Te.exports=function(e,o){o=o||{};var t=typeof e;if(t==="string"&&e.length>0)return pt(e);if(t==="number"&&isFinite(e))return o.long?gt(e):dt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function pt(e){if(e=String(e),!(e.length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var t=parseFloat(o[1]),n=(o[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return t*mt;case"weeks":case"week":case"w":return t*ft;case"days":case"day":case"d":return t*$;case"hours":case"hour":case"hrs":case"hr":case"h":return t*z;case"minutes":case"minute":case"mins":case"min":case"m":return t*P;case"seconds":case"second":case"secs":case"sec":case"s":return t*A;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function dt(e){var o=Math.abs(e);return o>=$?Math.round(e/$)+"d":o>=z?Math.round(e/z)+"h":o>=P?Math.round(e/P)+"m":o>=A?Math.round(e/A)+"s":e+"ms"}function gt(e){var o=Math.abs(e);return o>=$?W(e,o,$,"day"):o>=z?W(e,o,z,"hour"):o>=P?W(e,o,P,"minute"):o>=A?W(e,o,A,"second"):e+" ms"}function W(e,o,t,n){var r=o>=t*1.5;return Math.round(e/t)+" "+n+(r?"s":"")}});var ne=T((lo,$e)=>{"use strict";function ht(e){t.debug=t,t.default=t,t.coerce=d,t.disable=c,t.enable=r,t.enabled=u,t.humanize=Le(),t.destroy=g,Object.keys(e).forEach(s=>{t[s]=e[s]}),t.names=[],t.skips=[],t.formatters={};function o(s){let f=0;for(let m=0;m<s.length;m++)f=(f<<5)-f+s.charCodeAt(m),f|=0;return t.colors[Math.abs(f)%t.colors.length]}t.selectColor=o;function t(s){let f,m=null,p,C;function a(...l){if(!a.enabled)return;let b=a,I=Number(new Date),v=I-(f||I);b.diff=v,b.prev=f,b.curr=I,f=I,l[0]=t.coerce(l[0]),typeof l[0]!="string"&&l.unshift("%O");let h=0;l[0]=l[0].replace(/%([a-zA-Z%])/g,(k,j)=>{if(k==="%%")return"%";h++;let E=t.formatters[j];if(typeof E=="function"){let U=l[h];k=E.call(b,U),l.splice(h,1),h--}return k}),t.formatArgs.call(b,l),(b.log||t.log).apply(b,l)}return a.namespace=s,a.useColors=t.useColors(),a.color=t.selectColor(s),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(p!==t.namespaces&&(p=t.namespaces,C=t.enabled(s)),C),set:l=>{m=l}}),typeof t.init=="function"&&t.init(a),a}function n(s,f){let m=t(this.namespace+(typeof f>"u"?":":f)+s);return m.log=this.log,m}function r(s){t.save(s),t.namespaces=s,t.names=[],t.skips=[];let f=(typeof s=="string"?s:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of f)m[0]==="-"?t.skips.push(m.slice(1)):t.names.push(m)}function i(s,f){let m=0,p=0,C=-1,a=0;for(;m<s.length;)if(p<f.length&&(f[p]===s[m]||f[p]==="*"))f[p]==="*"?(C=p,a=m,p++):(m++,p++);else if(C!==-1)p=C+1,a++,m=a;else return!1;for(;p<f.length&&f[p]==="*";)p++;return p===f.length}function c(){let s=[...t.names,...t.skips.map(f=>"-"+f)].join(",");return t.enable(""),s}function u(s){for(let f of t.skips)if(i(s,f))return!1;for(let f of t.names)if(i(s,f))return!0;return!1}function d(s){return s instanceof Error?s.stack||s.message:s}function g(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}$e.exports=ht});var Re=T((F,K)=>{"use strict";F.formatArgs=wt;F.save=yt;F.load=bt;F.useColors=Ct;F.storage=It();F.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();F.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Ct(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function wt(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+K.exports.humanize(this.diff),!this.useColors)return;let o="color: "+this.color;e.splice(1,0,o,"color: inherit");let t=0,n=0;e[0].replace(/%[a-zA-Z%]/g,r=>{r!=="%%"&&(t++,r==="%c"&&(n=t))}),e.splice(n,0,o)}F.log=console.debug||console.log||(()=>{});function yt(e){try{e?F.storage.setItem("debug",e):F.storage.removeItem("debug")}catch{}}function bt(){let e;try{e=F.storage.getItem("debug")||F.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function It(){try{return localStorage}catch{}}K.exports=ne()(F);var{formatters:vt}=K.exports;vt.j=function(e){try{return JSON.stringify(e)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}}});var Pe=T((uo,Ae)=>{"use strict";Ae.exports=(e,o=process.argv)=>{let t=e.startsWith("-")?"":e.length===1?"-":"--",n=o.indexOf(t+e),r=o.indexOf("--");return n!==-1&&(r===-1||n<r)}});var Ne=T((fo,_e)=>{"use strict";var xt=M("os"),ze=M("tty"),S=Pe(),{env:w}=process,O;S("no-color")||S("no-colors")||S("color=false")||S("color=never")?O=0:(S("color")||S("colors")||S("color=true")||S("color=always"))&&(O=1);"FORCE_COLOR"in w&&(w.FORCE_COLOR==="true"?O=1:w.FORCE_COLOR==="false"?O=0:O=w.FORCE_COLOR.length===0?1:Math.min(parseInt(w.FORCE_COLOR,10),3));function ie(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function se(e,o){if(O===0)return 0;if(S("color=16m")||S("color=full")||S("color=truecolor"))return 3;if(S("color=256"))return 2;if(e&&!o&&O===void 0)return 0;let t=O||0;if(w.TERM==="dumb")return t;if(process.platform==="win32"){let n=xt.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in w)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in w)||w.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in w)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(w.TEAMCITY_VERSION)?1:0;if(w.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in w){let n=parseInt((w.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(w.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(w.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(w.TERM)||"COLORTERM"in w?1:t}function Ft(e){let o=se(e,e&&e.isTTY);return ie(o)}_e.exports={supportsColor:Ft,stdout:ie(se(!0,ze.isatty(1))),stderr:ie(se(!0,ze.isatty(2)))}});var Ue=T((y,J)=>{"use strict";var St=M("tty"),H=M("util");y.init=$t;y.log=Et;y.formatArgs=kt;y.save=Tt;y.load=Lt;y.useColors=Ot;y.destroy=H.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");y.colors=[6,2,3,4,5,1];try{let e=Ne();e&&(e.stderr||e).level>=2&&(y.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}y.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,o)=>{let t=o.substring(6).toLowerCase().replace(/_([a-z])/g,(r,i)=>i.toUpperCase()),n=process.env[o];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[t]=n,e},{});function Ot(){return"colors"in y.inspectOpts?!!y.inspectOpts.colors:St.isatty(process.stderr.fd)}function kt(e){let{namespace:o,useColors:t}=this;if(t){let n=this.color,r="\x1B[3"+(n<8?n:"8;5;"+n),i=` ${r};1m${o} \x1B[0m`;e[0]=i+e[0].split(`
2
- `).join(`
3
- `+i),e.push(r+"m+"+J.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=jt()+o+" "+e[0]}function jt(){return y.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Et(...e){return process.stderr.write(H.formatWithOptions(y.inspectOpts,...e)+`
4
- `)}function Tt(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Lt(){return process.env.DEBUG}function $t(e){e.inspectOpts={};let o=Object.keys(y.inspectOpts);for(let t=0;t<o.length;t++)e.inspectOpts[o[t]]=y.inspectOpts[o[t]]}J.exports=ne()(y);var{formatters:De}=J.exports;De.o=function(e){return this.inspectOpts.colors=this.useColors,H.inspect(e,this.inspectOpts).split(`
5
- `).map(o=>o.trim()).join(" ")};De.O=function(e){return this.inspectOpts.colors=this.useColors,H.inspect(e,this.inspectOpts)}});var ae=T((mo,ce)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ce.exports=Re():ce.exports=Ue()});async function le(e,o,t,n){let r;Rt(`${o}:${t}`);try{if(typeof e=="function")r=await e(t);else{let i=e[t];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${t}" in "${o}":`,i);return}if(r){let i=r.indexOf("<svg");i>0&&(r=r.slice(i));let{transform:c}=n?.customizations??{};return r=typeof c=="function"?await c(r,o,t):r,r.startsWith("<svg")?await B(n?.customizations?.trimCustomSvg===!0?je(r):r,o,t,n,void 0):(console.warn(`Custom icon "${t}" in "${o}" is not a valid SVG`),r)}}var Me,Rt,Ve=x(()=>{"use strict";Ee();re();Me=de(ae(),1),Rt=(0,Me.default)("@iconify-loader:custom")});async function Z(e,o,t,n){let r,{customize:i}=n?.customizations??{};for(let c of t)if(r=ve(e,c),r){At(`${o}:${c}`);let u={...G};typeof i=="function"&&(r=Object.assign({},r),u=i(u,r,`${o}:${c}`)??u);let{attributes:{width:d,height:g,...s},body:f}=Oe(r,u),m=n?.scale;return await B(`<svg >${f}</svg>`,o,c,n,()=>({...s}),p=>{let C=(a,l)=>{let b=p[a],I;if(!N(b)){if(b)return;typeof m=="number"?m&&(I=L(l??"1em",m)):I=l}I?p[a]=I:delete p[a]};C("width",d),C("height",g)})}}var Ge,At,ue=x(()=>{"use strict";X();xe();q();ee();re();Ge=de(ae(),1),At=(0,Ge.default)("@iconify-loader:icon")});var D,fe=x(()=>{"use strict";Ve();ue();D=async(e,o,t)=>{let n=t?.customCollections?.[e];if(n)if(typeof n=="function"){let r;try{r=await n(o)}catch(i){console.warn(`Failed to load custom icon "${o}" in "${e}":`,i);return}if(r){if(typeof r=="string")return await le(()=>r,e,o,t);if("icons"in r){let i=[o,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o.replace(/([a-z])(\d+)/g,"$1-$2")];return await Z(r,e,i,t)}}}else return await le(n,e,o,t)}});function ke(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function te(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" ')),ke(o)}fe();function qe(){let e=typeof process<"u"&&process.stdout,o=e&&!!process.env.VSCODE_CWD,t=e&&!!process.env.ESLINT;return{isNode:e,isVSCode:o,isESLint:t}}var Be=new Set;function We(e){Be.has(e)||(console.warn("[unocss]",e),Be.add(e))}fe();ue();var me=["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"];var Pt=3;function He(e){return(o={})=>{let{scale:t=1,mode:n="auto",prefix:r="i-",warn:i=!1,iconifyCollectionsNames:c,collections:u,extraProperties:d={},customizations:g={},autoInstall:s=!1,collectionsNodeResolvePath:f,layer:m="icons",unit:p,processor:C}=o,a=qe(),l={addXmlNs:!0,scale:t,customCollections:u,autoInstall:s,cwd:f,warn:void 0,customizations:{...g,additionalProps:{...d},trimCustomSvg:!0,async iconCustomizer(I,v,h){await g.iconCustomizer?.(I,v,h),p&&(h.width||(h.width=`${t}${p}`),h.height||(h.height=`${t}${p}`))}}},b;return{name:"@unocss/preset-icons",enforce:"pre",options:o,layers:{icons:-30},api:{encodeSvgForCss:te,parseIconWithLoader:Ke},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async I=>{let[v,h,_=n]=I;b=b||await e(o);let k={},j=await Ke(h,b,{...l,usedProps:k},c);if(!j){i&&!a.isESLint&&We(`failed to load icon "${v}"`);return}let E,U=`url("data:image/svg+xml;utf8,${te(j.svg)}")`;return _==="auto"&&(_=j.svg.includes("currentColor")?"mask":"bg"),_==="mask"?E={"--un-icon":U,"-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",...k}:E={background:`${U} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...k},C?.(E,{...j,icon:j.name,mode:_}),E},{layer:m,prefix:r}]]}}}function Je(e,o,t=new Map){function n(r){if(me.includes(r))return t.has(r)||t.set(r,e(`${o}@iconify-json/${r}/icons.json`)),t.get(r)}return async(r,i,c)=>{let u=await D(r,i,c);if(u)return u;let d=await n(r);if(d){let g=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];u=await Z(d,r,g,c)}return u}}async function Ke(e,o,t={},n=[]){let r="",i="",c,u=new Set([...me,...n,...Object.keys(t.customCollections||{})]);if(e.includes(":")){if([r,i]=e.split(":"),!u.has(r))return;c=await o(r,i,t)}else{let d=e.split(/-/g);for(let g=Pt;g>=1&&(r=d.slice(0,g).join("-"),!(!!u.has(r)&&(i=d.slice(g).join("-"),c=await o(r,i,t),c)));g--);}if(c)return{collection:r,name:i,svg:c}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},(()=>{let e=He(async o=>{let t=o?.customFetch??(r=>fetch(r).then(i=>i.json())),n=o?.cdn;return n?Je(t,n):D});return{presetIcons:o=>e(o)}})());})();
1
+ "use strict";(()=>{var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var ge,v,V,H,T=d(()=>{"use strict";ge=Object.freeze({left:0,top:0,width:16,height:16}),v=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),V=Object.freeze({...ge,...v}),H=Object.freeze({...V,body:"",hidden:!1})});var he,$,N=d(()=>{"use strict";T();he=Object.freeze({width:null,height:null}),$=Object.freeze({...he,...v})});function B(e,t){let i={};!e.hFlip!=!t.hFlip&&(i.hFlip=!0),!e.vFlip!=!t.vFlip&&(i.vFlip=!0);let n=((e.rotate||0)+(t.rotate||0))%4;return n&&(i.rotate=n),i}var J=d(()=>{"use strict"});function U(e,t){let i=B(e,t);for(let n in H)n in v?n in e&&!(n in i)&&(i[n]=v[n]):n in t?i[n]=t[n]:n in e&&(i[n]=e[n]);return i}var X=d(()=>{"use strict";T();J()});function Z(e,t){let i=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function r(s){if(i[s])return o[s]=[];if(!(s in o)){o[s]=null;let c=n[s]&&n[s].parent,f=c&&r(c);f&&(o[s]=[c].concat(f))}return o[s]}return(t||Object.keys(i).concat(Object.keys(n))).forEach(r),o}var Q=d(()=>{"use strict"});function Y(e,t,i){let n=e.icons,o=e.aliases||Object.create(null),r={};function s(c){r=U(n[c]||o[c],r)}return s(t),i.forEach(s),U(e,r)}function ee(e,t){if(e.icons[t])return Y(e,t,[]);let i=Z(e,[t])[t];return i?Y(e,t,i):null}var oe=d(()=>{"use strict";X();Q()});function b(e,t,i){if(t===1)return e;if(i=i||100,typeof e=="number")return Math.ceil(e*t*i)/i;if(typeof e!="string")return e;let n=e.split(we);if(n===null||!n.length)return e;let o=[],r=n.shift(),s=Ie.test(r);for(;;){if(s){let c=parseFloat(r);isNaN(c)?o.push(r):o.push(Math.ceil(c*t*i)/i)}else o.push(r);if(r=n.shift(),r===void 0)return o.join("");s=!s}}var we,Ie,P=d(()=>{"use strict";we=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ie=/^-?[0-9.]*[0-9]+[0-9.]*$/g});function Se(e,t="defs"){let i="",n=e.indexOf("<"+t);for(;n>=0;){let o=e.indexOf(">",n),r=e.indexOf("</"+t);if(o===-1||r===-1)break;let s=e.indexOf(">",r);if(s===-1)break;i+=e.slice(o+1,r).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:i,content:e}}function ye(e,t){return e?"<defs>"+e+"</defs>"+t:t}function te(e,t,i){let n=Se(e);return ye(n.defs,t+n.content+i)}var ie=d(()=>{"use strict"});function ne(e,t){let i={...V,...e},n={...$,...t},o={left:i.left,top:i.top,width:i.width,height:i.height},r=i.body;[i,n].forEach(l=>{let a=[],x=l.hFlip,S=l.vFlip,w=l.rotate;x?S?w+=2:(a.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),a.push("scale(-1 1)"),o.top=o.left=0):S&&(a.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),a.push("scale(1 -1)"),o.top=o.left=0);let p;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:p=o.height/2+o.top,a.unshift("rotate(90 "+p.toString()+" "+p.toString()+")");break;case 2:a.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:p=o.width/2+o.left,a.unshift("rotate(-90 "+p.toString()+" "+p.toString()+")");break}w%2===1&&(o.left!==o.top&&(p=o.left,o.left=o.top,o.top=p),o.width!==o.height&&(p=o.width,o.width=o.height,o.height=p)),a.length&&(r=te(r,'<g transform="'+a.join(" ")+'">',"</g>"))});let s=n.width,c=n.height,f=o.width,u=o.height,m,y;s===null?(y=c===null?"1em":c==="auto"?u:c,m=b(y,f/u)):(m=s==="auto"?f:s,y=c===null?b(m,u/f):c==="auto"?u:c);let I={},g=(l,a)=>{k(a)||(I[l]=a.toString())};g("width",m),g("height",y);let h=[o.left,o.top,f,u];return I.viewBox=h.join(" "),{attributes:I,viewBox:h,body:r}}var k,D=d(()=>{"use strict";T();N();P();ie();k=e=>e==="unset"||e==="undefined"||e==="none"});function se(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 ve(e,t,i){let n=e.slice(0,e.indexOf(">")),o=(r,s)=>{let c=s.exec(n),f=c!=null,u=t[r];return!u&&!k(u)&&(typeof i=="number"?i>0&&(t[r]=b(c?.[1]??"1em",i)):c&&(t[r]=c[1])),f};return[o("width",xe),o("height",be)]}async function z(e,t,i,n,o,r){let{scale:s,addXmlNs:c=!1}=n??{},{additionalProps:f={},iconCustomizer:u}=n?.customizations??{},m=await o?.()??{};await u?.(t,i,m),Object.keys(f).forEach(l=>{let a=f[l];a!=null&&(m[l]=a)}),r?.(m);let[y,I]=ve(e,m,s);c&&(!e.includes("xmlns=")&&!m.xmlns&&(m.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!m["xmlns:xlink"]&&(m["xmlns:xlink"]="http://www.w3.org/1999/xlink"));let g=Object.keys(m).map(l=>l==="width"&&y||l==="height"&&I?null:`${l}="${m[l]}"`).filter(l=>l!=null);if(g.length&&(e=e.replace(_,`<svg ${g.join(" ")} `)),n){let{defaultStyle:l,defaultClass:a}=n;a&&!e.includes("class=")&&(e=e.replace(_,`<svg class="${a}" `)),l&&!e.includes("style=")&&(e=e.replace(_,`<svg style="${l}" `))}let h=n?.usedProps;return h&&(Object.keys(f).forEach(l=>{let a=m[l];a!=null&&(h[l]=a)}),typeof m.width<"u"&&m.width!==null&&(h.width=m.width),typeof m.height<"u"&&m.height!==null&&(h.height=m.height)),e}var xe,be,_,A=d(()=>{"use strict";P();D();xe=/\swidth\s*=\s*["']([\w.]+)["']/,be=/\sheight\s*=\s*["']([\w.]+)["']/,_=/<svg\s+/});async function R(e,t,i,n){let o;try{if(typeof e=="function")o=await e(i);else{let r=e[i];o=typeof r=="function"?await r():r}}catch(r){console.warn(`Failed to load custom icon "${i}" in "${t}":`,r);return}if(o){let r=o.indexOf("<svg");r>0&&(o=o.slice(r));let{transform:s}=n?.customizations??{};return o=typeof s=="function"?await s(o,t,i):o,o.startsWith("<svg")?await z(n?.customizations?.trimCustomSvg===!0?se(o):o,t,i,n,void 0):(console.warn(`Custom icon "${i}" in "${t}" is not a valid SVG`),o)}}var ae=d(()=>{"use strict";ce();A()});async function E(e,t,i,n){let o,{customize:r}=n?.customizations??{};for(let s of i)if(o=ee(e,s),o){let c={...$};typeof r=="function"&&(o=Object.assign({},o),c=r(c,o,`${t}:${s}`)??c);let{attributes:{width:f,height:u,...m},body:y}=ne(o,c),I=n?.scale;return await z(`<svg >${y}</svg>`,t,s,n,()=>({...m}),g=>{let h=(l,a)=>{let x=g[l],S;if(!k(x)){if(x)return;typeof I=="number"?I&&(S=b(a??"1em",I)):S=a}S?g[l]=S:delete g[l]};h("width",f),h("height",u)})}}var q=d(()=>{"use strict";N();oe();P();D();A()});var j,W=d(()=>{"use strict";ae();q();j=async(e,t,i)=>{let n=i?.customCollections?.[e];if(n)if(typeof n=="function"){let o;try{o=await n(t)}catch(r){console.warn(`Failed to load custom icon "${t}" in "${e}":`,r);return}if(o){if(typeof o=="string")return await R(()=>o,e,t,i);if("icons"in o){let r=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await E(o,e,r,i)}}}else return await R(n,e,t,i)}});function re(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function G(e){let t=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!t.includes(" xmlns:xlink=")&&t.includes(" xlink:")&&(t=t.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),t.includes(" xmlns=")||(t=t.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),re(t)}W();function le(){let e=typeof process<"u"&&process.stdout,t=e&&!!process.env.VSCODE_CWD,i=e&&!!process.env.ESLINT;return{isNode:e,isVSCode:t,isESLint:i}}var me=new Set;function fe(e){me.has(e)||(console.warn("[unocss]",e),me.add(e))}W();q();var M=["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"];var Ce=3;function pe(e){return(t={})=>{let{scale:i=1,mode:n="auto",prefix:o="i-",warn:r=!1,iconifyCollectionsNames:s,collections:c,extraProperties:f={},customizations:u={},autoInstall:m=!1,collectionsNodeResolvePath:y,layer:I="icons",unit:g,processor:h}=t,l=le(),a={addXmlNs:!0,scale:i,customCollections:c,autoInstall:m,cwd:y,warn:void 0,customizations:{...u,additionalProps:{...f},trimCustomSvg:!0,async iconCustomizer(S,w,p){await u.iconCustomizer?.(S,w,p),g&&(p.width||(p.width=`${i}${g}`),p.height||(p.height=`${i}${g}`))}}},x;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},api:{encodeSvgForCss:G,parseIconWithLoader:ue},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async S=>{let[w,p,O=n]=S;x=x||await e(t);let L={},C=await ue(p,x,{...a,usedProps:L},s);if(!C){r&&!l.isESLint&&fe(`failed to load icon "${w}"`);return}let F,K=`url("data:image/svg+xml;utf8,${G(C.svg)}")`;return O==="auto"&&(O=C.svg.includes("currentColor")?"mask":"bg"),O==="mask"?F={"--un-icon":K,"-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",...L}:F={background:`${K} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...L},h?.(F,{...C,icon:C.name,mode:O}),F},{layer:I,prefix:o}]]}}}function de(e,t,i=new Map){function n(o){if(M.includes(o))return i.has(o)||i.set(o,e(`${t}@iconify-json/${o}/icons.json`)),i.get(o)}return async(o,r,s)=>{let c=await j(o,r,s);if(c)return c;let f=await n(o);if(f){let u=[r,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r.replace(/([a-z])(\d+)/g,"$1-$2")];c=await E(f,o,u,s)}return c}}async function ue(e,t,i={},n=[]){let o="",r="",s,c=new Set([...M,...n,...Object.keys(i.customCollections||{})]);if(e.includes(":")){if([o,r]=e.split(":"),!c.has(o))return;s=await t(o,r,i)}else{let f=e.split(/-/g);for(let u=Ce;u>=1&&(o=f.slice(0,u).join("-"),!(!!c.has(o)&&(r=f.slice(u).join("-"),s=await t(o,r,i),s)));u--);}if(s)return{collection:o,name:r,svg:s}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},(()=>{let e=pe(async t=>{let i=t?.customFetch??(o=>fetch(o).then(r=>r.json())),n=t?.cdn;return n?de(i,n):j});return{presetIcons:t=>e(t)}})());})();