ERP-admin/build/admin/assets/css-color-function.e6143ca6.js

2 lines
9.5 KiB
JavaScript
Raw Normal View History

2024-05-09 15:53:22 +08:00
import{c as S}from"./color.d79aa98b.js";var k={},O=function(t,o,r){for(var f=0,c={},C=0;C<r.length;C++)if(t==r.substr(C,t.length))"start"in c||(c.start=C),f++;else if(o==r.substr(C,o.length)&&"start"in c&&(f--,!f))return c.end=C,c.pre=r.substr(0,c.start),c.body=c.end-c.start>1?r.substring(c.start+t.length,c.end):"",c.post=r.slice(c.end+o.length),c},w={exports:{}},F,E;function _(){if(E)return F;E=1;var t=1e3,o=t*60,r=o*60,f=r*24,c=f*7,C=f*365.25;F=function(e,n){n=n||{};var u=typeof e;if(u==="string"&&e.length>0)return s(e);if(u==="number"&&isFinite(e))return n.long?d(e):i(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function s(e){if(e=String(e),!(e.length>100)){var n=/^(-?(?:\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(!!n){var u=parseFloat(n[1]),l=(n[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return u*C;case"weeks":case"week":case"w":return u*c;case"days":case"day":case"d":return u*f;case"hours":case"hour":case"hrs":case"hr":case"h":return u*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*o;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}}}function i(e){var n=Math.abs(e);return n>=f?Math.round(e/f)+"d":n>=r?Math.round(e/r)+"h":n>=o?Math.round(e/o)+"m":n>=t?Math.round(e/t)+"s":e+"ms"}function d(e){var n=Math.abs(e);return n>=f?a(e,n,f,"day"):n>=r?a(e,n,r,"hour"):n>=o?a(e,n,o,"minute"):n>=t?a(e,n,t,"second"):e+" ms"}function a(e,n,u,l){var v=n>=u*1.5;return Math.round(e/u)+" "+l+(v?"s":"")}return F}function B(t){r.debug=r,r.default=r,r.coerce=d,r.disable=s,r.enable=C,r.enabled=i,r.humanize=_(),Object.keys(t).forEach(function(a){r[a]=t[a]}),r.instances=[],r.names=[],r.skips=[],r.formatters={};function o(a){for(var e=0,n=0;n<a.length;n++)e=(e<<5)-e+a.charCodeAt(n),e|=0;return r.colors[Math.abs(e)%r.colors.length]}r.selectColor=o;function r(a){var e;function n(){if(!!n.enabled){for(var u=arguments.length,l=new Array(u),v=0;v<u;v++)l[v]=arguments[v];var h=n,y=Number(new Date),j=y-(e||y);h.diff=j,h.prev=e,h.curr=y,e=y,l[0]=r.coerce(l[0]),typeof l[0]!="string"&&l.unshift("%O");var p=0;l[0]=l[0].replace(/%([a-zA-Z%])/g,function(b,N){if(b==="%%")return b;p++;var A=r.formatters[N];if(typeof A=="function"){var z=l[p];b=A.call(h,z),l.splice(p,1),p--}return b}),r.formatArgs.call(h,l);var L=h.log||r.log;L.apply(h,l)}}return n.namespace=a,n.enabled=r.enabled(a),n.useColors=r.useColors(),n.color=o(a),n.destroy=f,n.extend=c,typeof r.init=="function"&&r.init(n),r.instances.push(n),n}function f(){var a=r.instances.indexOf(this);return a!==-1?(r.instances.splice(a,1),!0):!1}function c(a,e){return r(this.namespace+(typeof e>"u"?":":e)+a)}function C(a){r.save(a),r.names=[],r.skips=[];var e,n=(typeof a=="string"?a:"").split(/[\s,]+/),u=n.length;for(e=0;e<u;e++)!n[e]||(a=n[e].replace(/\*/g,".*?"),a[0]==="-"?r.skips.push(new RegExp("^"+a.substr(1)+"$")):r.names.push(new RegExp("^"+a+"$")));for(e=0;e<r.instances.length;e++){var l=r.instances[e];l.enabled=r.enabled(l.namespace)}}function s(){r.enable("")}function i(a){if(a[a.length-1]==="*")return!0;var e,n;for(e=0,n=r.skips.length;e<n;e++)if(r.skips[e].test(a))return!1;for(e=0,n=r.names.length;e<n;e++)if(r.names[e].test(a))return!0;return!1}function d(a){return a instanceof Error?a.stack||a.message:a}return r.enable(r.load()),r}var D=B;(function(t,o){function r(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(u){return typeof u}:r=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},r(e)}o.log=C,o.formatArgs=c,o.save=s,o.load=i,o.useColors=f,o.storage=d(),o.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"