ERP-admin/build/admin/assets/css-color-function.29b71fa4.js

2 lines
7.9 KiB
JavaScript
Raw Permalink Normal View History

2024-05-20 18:04:36 +08:00
import{c as E}from"./color.87d313dc.js";import{b as S}from"./balanced-match.d2a36341.js";import{r as N}from"./ms.564e106c.js";var k={},y={exports:{}};function _(t){r.debug=r,r.default=r,r.coerce=s,r.disable=i,r.enable=C,r.enabled=a,r.humanize=N(),Object.keys(t).forEach(function(o){r[o]=t[o]}),r.instances=[],r.names=[],r.skips=[],r.formatters={};function u(o){for(var e=0,n=0;n<o.length;n++)e=(e<<5)-e+o.charCodeAt(n),e|=0;return r.colors[Math.abs(e)%r.colors.length]}r.selectColor=u;function r(o){var e;function n(){if(!!n.enabled){for(var f=arguments.length,c=new Array(f),d=0;d<f;d++)c[d]=arguments[d];var h=n,p=Number(new Date),I=p-(e||p);h.diff=I,h.prev=e,h.curr=p,e=p,c[0]=r.coerce(c[0]),typeof c[0]!="string"&&c.unshift("%O");var F=0;c[0]=c[0].replace(/%([a-zA-Z%])/g,function(b,R){if(b==="%%")return b;F++;var g=r.formatters[R];if(typeof g=="function"){var z=c[F];b=g.call(h,z),c.splice(F,1),F--}return b}),r.formatArgs.call(h,c);var j=h.log||r.log;j.apply(h,c)}}return n.namespace=o,n.enabled=r.enabled(o),n.useColors=r.useColors(),n.color=u(o),n.destroy=l,n.extend=v,typeof r.init=="function"&&r.init(n),r.instances.push(n),n}function l(){var o=r.instances.indexOf(this);return o!==-1?(r.instances.splice(o,1),!0):!1}function v(o,e){return r(this.namespace+(typeof e>"u"?":":e)+o)}function C(o){r.save(o),r.names=[],r.skips=[];var e,n=(typeof o=="string"?o:"").split(/[\s,]+/),f=n.length;for(e=0;e<f;e++)!n[e]||(o=n[e].replace(/\*/g,".*?"),o[0]==="-"?r.skips.push(new RegExp("^"+o.substr(1)+"$")):r.names.push(new RegExp("^"+o+"$")));for(e=0;e<r.instances.length;e++){var c=r.instances[e];c.enabled=r.enabled(c.namespace)}}function i(){r.enable("")}function a(o){if(o[o.length-1]==="*")return!0;var e,n;for(e=0,n=r.skips.length;e<n;e++)if(r.skips[e].test(o))return!1;for(e=0,n=r.names.length;e<n;e++)if(r.names[e].test(o))return!0;return!1}function s(o){return o instanceof Error?o.stack||o.message:o}return r.enable(r.load()),r}var B=_;(function(t,u){function r(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(f){return typeof f}:r=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},r(e)}u.log=C,u.formatArgs=v,u.save=i,u.load=a,u.useColors=l,u.storage=s(),u.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 l(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1: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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function v(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!!this.useColors){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var f=0,c=0;e[0].replace(/%[a-zA-Z%]/g,function(d){d!=="%%"&&(f++,d==="%c"&&(c=f))}),e.splice(c,0,n)}}function C(){var e;return(