@kne-components/components-core 0.4.32 → 0.4.34
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/build/asset-manifest.json +91 -91
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1996.9bed2329.chunk.css +2 -0
- package/build/static/css/{1996.1feb46e4.chunk.css.map → 1996.9bed2329.chunk.css.map} +1 -1
- package/build/static/css/2004.d6c55d50.chunk.css +2 -0
- package/build/static/css/{2004.737b39bc.chunk.css.map → 2004.d6c55d50.chunk.css.map} +1 -1
- package/build/static/css/206.361be49f.chunk.css +2 -0
- package/build/static/css/206.361be49f.chunk.css.map +1 -0
- package/build/static/css/254.27bad6c9.chunk.css +2 -0
- package/build/static/css/{254.b824e50e.chunk.css.map → 254.27bad6c9.chunk.css.map} +1 -1
- package/build/static/css/2628.25e3f37c.chunk.css +2 -0
- package/build/static/css/{2628.d7dccf55.chunk.css.map → 2628.25e3f37c.chunk.css.map} +1 -1
- package/build/static/css/3404.5cd6e139.chunk.css +2 -0
- package/build/static/css/{3404.6c847cf6.chunk.css.map → 3404.5cd6e139.chunk.css.map} +1 -1
- package/build/static/css/3771.7b274802.chunk.css +2 -0
- package/build/static/css/{3771.1fa66ff2.chunk.css.map → 3771.7b274802.chunk.css.map} +1 -1
- package/build/static/css/{3790.d31be1bd.chunk.css → 3790.a1dca75c.chunk.css} +2 -2
- package/build/static/css/{3790.d31be1bd.chunk.css.map → 3790.a1dca75c.chunk.css.map} +1 -1
- package/build/static/css/4741.ab17c01b.chunk.css +2 -0
- package/build/static/css/{4741.ae13daff.chunk.css.map → 4741.ab17c01b.chunk.css.map} +1 -1
- package/build/static/css/4834.5758cb4b.chunk.css +2 -0
- package/build/static/css/{4834.48591cce.chunk.css.map → 4834.5758cb4b.chunk.css.map} +1 -1
- package/build/static/css/5195.a6e0460c.chunk.css +2 -0
- package/build/static/css/5195.a6e0460c.chunk.css.map +1 -0
- package/build/static/css/6763.6a544314.chunk.css +2 -0
- package/build/static/css/{6763.1a96d043.chunk.css.map → 6763.6a544314.chunk.css.map} +1 -1
- package/build/static/css/7227.bf67f594.chunk.css +2 -0
- package/build/static/css/{7227.2cf2bf33.chunk.css.map → 7227.bf67f594.chunk.css.map} +1 -1
- package/build/static/css/7371.2715730e.chunk.css +2 -0
- package/build/static/css/{7371.128298a9.chunk.css.map → 7371.2715730e.chunk.css.map} +1 -1
- package/build/static/css/7548.1ff965d9.chunk.css +12 -0
- package/build/static/css/{7548.e087a24a.chunk.css.map → 7548.1ff965d9.chunk.css.map} +1 -1
- package/build/static/css/760.e5c2e72c.chunk.css +2 -0
- package/build/static/css/{760.ca58e057.chunk.css.map → 760.e5c2e72c.chunk.css.map} +1 -1
- package/build/static/css/833.74e553af.chunk.css +2 -0
- package/build/static/css/{833.3df58f30.chunk.css.map → 833.74e553af.chunk.css.map} +1 -1
- package/build/static/css/8593.52d4a5dc.chunk.css +2 -0
- package/build/static/css/{8593.5838ba2d.chunk.css.map → 8593.52d4a5dc.chunk.css.map} +1 -1
- package/build/static/css/9556.934cb4f3.chunk.css +2 -0
- package/build/static/css/{9556.6ee73384.chunk.css.map → 9556.934cb4f3.chunk.css.map} +1 -1
- package/build/static/js/{1353.a91edf5b.chunk.js → 1353.7388baf9.chunk.js} +3 -3
- package/build/static/js/1353.7388baf9.chunk.js.map +1 -0
- package/build/static/js/{196.8bd96f9f.chunk.js → 196.3a94bd36.chunk.js} +1 -1
- package/build/static/js/1996.81780952.chunk.js +2 -0
- package/build/static/js/{1996.9f7e6143.chunk.js.map → 1996.81780952.chunk.js.map} +1 -1
- package/build/static/js/{2004.c830e5a3.chunk.js → 2004.667cba21.chunk.js} +3 -3
- package/build/static/js/{2004.c830e5a3.chunk.js.map → 2004.667cba21.chunk.js.map} +1 -1
- package/build/static/js/206.debedb25.chunk.js +2 -0
- package/build/static/js/206.debedb25.chunk.js.map +1 -0
- package/build/static/js/{2242.94fc47d8.chunk.js → 2242.dbfecdb7.chunk.js} +2 -2
- package/build/static/js/2242.dbfecdb7.chunk.js.map +1 -0
- package/build/static/js/254.802450c0.chunk.js +2 -0
- package/build/static/js/254.802450c0.chunk.js.map +1 -0
- package/build/static/js/{2628.df78cca9.chunk.js → 2628.b5bdedc8.chunk.js} +2 -2
- package/build/static/js/{2628.df78cca9.chunk.js.map → 2628.b5bdedc8.chunk.js.map} +1 -1
- package/build/static/js/2995.a8e5278e.chunk.js +2 -0
- package/build/static/js/2995.a8e5278e.chunk.js.map +1 -0
- package/build/static/js/{3404.9cb3e523.chunk.js → 3404.ede50d81.chunk.js} +3 -3
- package/build/static/js/{3404.9cb3e523.chunk.js.map → 3404.ede50d81.chunk.js.map} +1 -1
- package/build/static/js/3771.a2e5aca8.chunk.js +2 -0
- package/build/static/js/{3771.c34bfb11.chunk.js.map → 3771.a2e5aca8.chunk.js.map} +1 -1
- package/build/static/js/{3790.16145fc5.chunk.js → 3790.4ff8aa89.chunk.js} +2 -2
- package/build/static/js/{3790.16145fc5.chunk.js.map → 3790.4ff8aa89.chunk.js.map} +1 -1
- package/build/static/js/3856.683070f5.chunk.js +2 -0
- package/build/static/js/{3856.3decac1c.chunk.js.map → 3856.683070f5.chunk.js.map} +1 -1
- package/build/static/js/4474.47697046.chunk.js +2 -0
- package/build/static/js/4474.47697046.chunk.js.map +1 -0
- package/build/static/js/{4834.775e30b7.chunk.js → 4834.ddb658d0.chunk.js} +2 -2
- package/build/static/js/{4834.775e30b7.chunk.js.map → 4834.ddb658d0.chunk.js.map} +1 -1
- package/build/static/js/5083.a75cd808.chunk.js +3 -0
- package/build/static/js/5083.a75cd808.chunk.js.map +1 -0
- package/build/static/js/5195.969ae76a.chunk.js +2 -0
- package/build/static/js/{5195.06d77bb4.chunk.js.map → 5195.969ae76a.chunk.js.map} +1 -1
- package/build/static/js/6763.3efba0fa.chunk.js +2 -0
- package/build/static/js/{6763.add67f95.chunk.js.map → 6763.3efba0fa.chunk.js.map} +1 -1
- package/build/static/js/{7227.b6c123d7.chunk.js → 7227.83427af0.chunk.js} +3 -3
- package/build/static/js/{7227.b6c123d7.chunk.js.map → 7227.83427af0.chunk.js.map} +1 -1
- package/build/static/js/{7371.227ccafe.chunk.js → 7371.b37a6b03.chunk.js} +2 -2
- package/build/static/js/{7371.227ccafe.chunk.js.map → 7371.b37a6b03.chunk.js.map} +1 -1
- package/build/static/js/{7548.45e5dc85.chunk.js → 7548.f0ea309c.chunk.js} +2 -2
- package/build/static/js/{7548.45e5dc85.chunk.js.map → 7548.f0ea309c.chunk.js.map} +1 -1
- package/build/static/js/{760.64f75f04.chunk.js → 760.4c6c3bd8.chunk.js} +2 -2
- package/build/static/js/{760.64f75f04.chunk.js.map → 760.4c6c3bd8.chunk.js.map} +1 -1
- package/build/static/js/833.e99f3b90.chunk.js +2 -0
- package/build/static/js/{833.32a27f72.chunk.js.map → 833.e99f3b90.chunk.js.map} +1 -1
- package/build/static/js/8593.af5c71f2.chunk.js +2 -0
- package/build/static/js/{8593.0af3f1bd.chunk.js.map → 8593.af5c71f2.chunk.js.map} +1 -1
- package/build/static/js/9556.7a7bb4d4.chunk.js +3 -0
- package/build/static/js/{9556.f28d3154.chunk.js.map → 9556.7a7bb4d4.chunk.js.map} +1 -1
- package/build/static/js/{main.3f7d3274.js → main.9960c7c0.js} +2 -2
- package/build/static/js/{main.3f7d3274.js.map → main.9960c7c0.js.map} +1 -1
- package/package.json +2 -2
- package/build/static/css/1996.1feb46e4.chunk.css +0 -2
- package/build/static/css/2004.737b39bc.chunk.css +0 -2
- package/build/static/css/206.710bf519.chunk.css +0 -2
- package/build/static/css/206.710bf519.chunk.css.map +0 -1
- package/build/static/css/254.b824e50e.chunk.css +0 -2
- package/build/static/css/2628.d7dccf55.chunk.css +0 -2
- package/build/static/css/3404.6c847cf6.chunk.css +0 -2
- package/build/static/css/3771.1fa66ff2.chunk.css +0 -2
- package/build/static/css/4741.ae13daff.chunk.css +0 -2
- package/build/static/css/4834.48591cce.chunk.css +0 -2
- package/build/static/css/5195.339dc2db.chunk.css +0 -2
- package/build/static/css/5195.339dc2db.chunk.css.map +0 -1
- package/build/static/css/6763.1a96d043.chunk.css +0 -2
- package/build/static/css/7227.2cf2bf33.chunk.css +0 -2
- package/build/static/css/7371.128298a9.chunk.css +0 -2
- package/build/static/css/7548.e087a24a.chunk.css +0 -12
- package/build/static/css/760.ca58e057.chunk.css +0 -2
- package/build/static/css/833.3df58f30.chunk.css +0 -2
- package/build/static/css/8593.5838ba2d.chunk.css +0 -2
- package/build/static/css/9556.6ee73384.chunk.css +0 -2
- package/build/static/js/1353.a91edf5b.chunk.js.map +0 -1
- package/build/static/js/1996.9f7e6143.chunk.js +0 -2
- package/build/static/js/206.b6813a7e.chunk.js +0 -2
- package/build/static/js/206.b6813a7e.chunk.js.map +0 -1
- package/build/static/js/2242.94fc47d8.chunk.js.map +0 -1
- package/build/static/js/254.13803525.chunk.js +0 -2
- package/build/static/js/254.13803525.chunk.js.map +0 -1
- package/build/static/js/2995.156074ac.chunk.js +0 -2
- package/build/static/js/2995.156074ac.chunk.js.map +0 -1
- package/build/static/js/3771.c34bfb11.chunk.js +0 -2
- package/build/static/js/3856.3decac1c.chunk.js +0 -2
- package/build/static/js/4474.e0342d87.chunk.js +0 -2
- package/build/static/js/4474.e0342d87.chunk.js.map +0 -1
- package/build/static/js/5083.4e45cda2.chunk.js +0 -3
- package/build/static/js/5083.4e45cda2.chunk.js.map +0 -1
- package/build/static/js/5195.06d77bb4.chunk.js +0 -2
- package/build/static/js/6763.add67f95.chunk.js +0 -2
- package/build/static/js/833.32a27f72.chunk.js +0 -2
- package/build/static/js/8593.0af3f1bd.chunk.js +0 -2
- package/build/static/js/9556.f28d3154.chunk.js +0 -3
- /package/build/static/js/{1353.a91edf5b.chunk.js.LICENSE.txt → 1353.7388baf9.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2004.c830e5a3.chunk.js.LICENSE.txt → 2004.667cba21.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3404.9cb3e523.chunk.js.LICENSE.txt → 3404.ede50d81.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{5083.4e45cda2.chunk.js.LICENSE.txt → 5083.a75cd808.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.b6c123d7.chunk.js.LICENSE.txt → 7227.83427af0.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.f28d3154.chunk.js.LICENSE.txt → 9556.7a7bb4d4.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2995],{12434:(t,r,e)=>{const n=e(63532),o=e(60444),a={};Object.keys(n).forEach(t=>{a[t]={},Object.defineProperty(a[t],"channels",{value:n[t].channels}),Object.defineProperty(a[t],"labels",{value:n[t].labels});const r=o(t);Object.keys(r).forEach(e=>{const n=r[e];a[t][e]=function(t){const r=function(){for(var r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];const o=e[0];if(void 0===o||null===o)return o;o.length>1&&(e=o);const a=t(e);if("object"===typeof a)for(let t=a.length,s=0;s<t;s++)a[s]=Math.round(a[s]);return a};return"conversion"in t&&(r.conversion=t.conversion),r}(n),a[t][e].raw=function(t){const r=function(){for(var r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];const o=e[0];return void 0===o||null===o?o:(o.length>1&&(e=o),t(e))};return"conversion"in t&&(r.conversion=t.conversion),r}(n)})}),t.exports=a},21139:(t,r,e)=>{var n=e(38301),o=e(69849),a=Object.hasOwnProperty,s=Object.create(null);for(var l in n)a.call(n,l)&&(s[n[l]]=l);var i=t.exports={to:{},get:{}};function h(t,r,e){return Math.min(Math.max(r,t),e)}function c(t){var r=Math.round(t).toString(16).toUpperCase();return r.length<2?"0"+r:r}i.get=function(t){var r,e;switch(t.substring(0,3).toLowerCase()){case"hsl":r=i.get.hsl(t),e="hsl";break;case"hwb":r=i.get.hwb(t),e="hwb";break;default:r=i.get.rgb(t),e="rgb"}return r?{model:e,value:r}:null},i.get.rgb=function(t){if(!t)return null;var r,e,o,s=[0,0,0,1];if(r=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=r[2],r=r[1],e=0;e<3;e++){var l=2*e;s[e]=parseInt(r.slice(l,l+2),16)}o&&(s[3]=parseInt(o,16)/255)}else if(r=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(r=r[1])[3],e=0;e<3;e++)s[e]=parseInt(r[e]+r[e],16);o&&(s[3]=parseInt(o+o,16)/255)}else if(r=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(e=0;e<3;e++)s[e]=parseInt(r[e+1],0);r[4]&&(r[5]?s[3]=.01*parseFloat(r[4]):s[3]=parseFloat(r[4]))}else{if(!(r=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(r=t.match(/^(\w+)$/))?"transparent"===r[1]?[0,0,0,0]:a.call(n,r[1])?((s=n[r[1]])[3]=1,s):null:null;for(e=0;e<3;e++)s[e]=Math.round(2.55*parseFloat(r[e+1]));r[4]&&(r[5]?s[3]=.01*parseFloat(r[4]):s[3]=parseFloat(r[4]))}for(e=0;e<3;e++)s[e]=h(s[e],0,255);return s[3]=h(s[3],0,1),s},i.get.hsl=function(t){if(!t)return null;var r=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(r){var e=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,h(parseFloat(r[2]),0,100),h(parseFloat(r[3]),0,100),h(isNaN(e)?1:e,0,1)]}return null},i.get.hwb=function(t){if(!t)return null;var r=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(r){var e=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,h(parseFloat(r[2]),0,100),h(parseFloat(r[3]),0,100),h(isNaN(e)?1:e,0,1)]}return null},i.to.hex=function(){var t=o(arguments);return"#"+c(t[0])+c(t[1])+c(t[2])+(t[3]<1?c(Math.round(255*t[3])):"")},i.to.rgb=function(){var t=o(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},i.to.rgb.percent=function(){var t=o(arguments),r=Math.round(t[0]/255*100),e=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+r+"%, "+e+"%, "+n+"%)":"rgba("+r+"%, "+e+"%, "+n+"%, "+t[3]+")"},i.to.hsl=function(){var t=o(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},i.to.hwb=function(){var t=o(arguments),r="";return t.length>=4&&1!==t[3]&&(r=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+r+")"},i.to.keyword=function(t){return s[t.slice(0,3)]}},38301:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},42995:(t,r,e)=>{const n=e(21139),o=e(12434),a=["keyword","gray","hex"],s={};for(const b of Object.keys(o))s[[...o[b].labels].sort().join("")]=b;const l={};function i(t,r){if(!(this instanceof i))return new i(t,r);if(r&&r in a&&(r=null),r&&!(r in o))throw new Error("Unknown model: "+r);let e,h;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof i)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"===typeof t){const r=n.get(t);if(null===r)throw new Error("Unable to parse color from string: "+t);this.model=r.model,h=o[this.model].channels,this.color=r.value.slice(0,h),this.valpha="number"===typeof r.value[h]?r.value[h]:1}else if(t.length>0){this.model=r||"rgb",h=o[this.model].channels;const e=Array.prototype.slice.call(t,0,h);this.color=g(e,h),this.valpha="number"===typeof t[h]?t[h]:1}else if("number"===typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;const r=Object.keys(t);"alpha"in t&&(r.splice(r.indexOf("alpha"),1),this.valpha="number"===typeof t.alpha?t.alpha:0);const n=r.sort().join("");if(!(n in s))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=s[n];const{labels:a}=o[this.model],l=[];for(e=0;e<a.length;e++)l.push(t[a[e]]);this.color=g(l)}if(l[this.model])for(h=o[this.model].channels,e=0;e<h;e++){const t=l[this.model][e];t&&(this.color[e]=t(this.color[e]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}i.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let r=this.model in n.to?this:this.rgb();r=r.round("number"===typeof t?t:1);const e=1===r.valpha?r.color:[...r.color,this.valpha];return n.to[r.model](e)},percentString(t){const r=this.rgb().round("number"===typeof t?t:1),e=1===r.valpha?r.color:[...r.color,this.valpha];return n.to.rgb.percent(e)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:r}=o[this.model],{labels:e}=o[this.model];for(let n=0;n<r;n++)t[e[n]]=this.color[n];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new i([...this.color.map(h(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new i([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:c("rgb",0,u(255)),green:c("rgb",1,u(255)),blue:c("rgb",2,u(255)),hue:c(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:c("hsl",1,u(100)),lightness:c("hsl",2,u(100)),saturationv:c("hsv",1,u(100)),value:c("hsv",2,u(100)),chroma:c("hcg",1,u(100)),gray:c("hcg",2,u(100)),white:c("hwb",1,u(100)),wblack:c("hwb",2,u(100)),cyan:c("cmyk",0,u(100)),magenta:c("cmyk",1,u(100)),yellow:c("cmyk",2,u(100)),black:c("cmyk",3,u(100)),x:c("xyz",0,u(95.047)),y:c("xyz",1,u(100)),z:c("xyz",2,u(108.833)),l:c("lab",0,u(100)),a:c("lab",1),b:c("lab",2),keyword(t){return void 0!==t?new i(t):o[this.model].keyword(this.color)},hex(t){return void 0!==t?new i(t):n.to.hex(this.rgb().round().color)},hexa(t){if(void 0!==t)return new i(t);const r=this.rgb().round().color;let e=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===e.length&&(e="0"+e),n.to.hex(r)+e},rgbNumber(){const t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity(){const t=this.rgb().color,r=[];for(const[e,n]of t.entries()){const t=n/255;r[e]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*r[0]+.7152*r[1]+.0722*r[2]},contrast(t){const r=this.luminosity(),e=t.luminosity();return r>e?(r+.05)/(e+.05):(e+.05)/(r+.05)},level(t){const r=this.contrast(t);return r>=7?"AAA":r>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let r=0;r<3;r++)t.color[r]=255-t.color[r];return t},lighten(t){const r=this.hsl();return r.color[2]+=r.color[2]*t,r},darken(t){const r=this.hsl();return r.color[2]-=r.color[2]*t,r},saturate(t){const r=this.hsl();return r.color[1]+=r.color[1]*t,r},desaturate(t){const r=this.hsl();return r.color[1]-=r.color[1]*t,r},whiten(t){const r=this.hwb();return r.color[1]+=r.color[1]*t,r},blacken(t){const r=this.hwb();return r.color[2]+=r.color[2]*t,r},grayscale(){const t=this.rgb().color,r=.3*t[0]+.59*t[1]+.11*t[2];return i.rgb(r,r,r)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const r=this.hsl();let e=r.color[0];return e=(e+t)%360,e=e<0?360+e:e,r.color[0]=e,r},mix(t,r){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const e=t.rgb(),n=this.rgb(),o=void 0===r?.5:r,a=2*o-1,s=e.alpha()-n.alpha(),l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2,h=1-l;return i.rgb(l*e.red()+h*n.red(),l*e.green()+h*n.green(),l*e.blue()+h*n.blue(),e.alpha()*o+n.alpha()*(1-o))}};for(const b of Object.keys(o)){if(a.includes(b))continue;const{channels:t}=o[b];i.prototype[b]=function(){if(this.model===b)return new i(this);for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return r.length>0?new i(r,b):new i([...(n=o[this.model][b].raw(this.color),Array.isArray(n)?n:[n]),this.valpha],b);var n},i[b]=function(){for(var r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];let o=e[0];return"number"===typeof o&&(o=g(e,t)),new i(o,b)}}function h(t){return function(r){return function(t,r){return Number(t.toFixed(r))}(r,t)}}function c(t,r,e){t=Array.isArray(t)?t:[t];for(const n of t)(l[n]||(l[n]=[]))[r]=e;return t=t[0],function(n){let o;return void 0!==n?(e&&(n=e(n)),o=this[t](),o.color[r]=n,o):(o=this[t]().color[r],e&&(o=e(o)),o)}}function u(t){return function(r){return Math.max(0,Math.min(t,r))}}function g(t,r){for(let e=0;e<r;e++)"number"!==typeof t[e]&&(t[e]=0);return t}t.exports=i},60444:(t,r,e)=>{const n=e(63532);function o(t){const r=function(){const t={},r=Object.keys(n);for(let e=r.length,n=0;n<e;n++)t[r[n]]={distance:-1,parent:null};return t}(),e=[t];for(r[t].distance=0;e.length;){const t=e.pop(),o=Object.keys(n[t]);for(let n=o.length,a=0;a<n;a++){const n=o[a],s=r[n];-1===s.distance&&(s.distance=r[t].distance+1,s.parent=t,e.unshift(n))}}return r}function a(t,r){return function(e){return r(t(e))}}function s(t,r){const e=[r[t].parent,t];let o=n[r[t].parent][t],s=r[t].parent;for(;r[s].parent;)e.unshift(r[s].parent),o=a(n[r[s].parent][s],o),s=r[s].parent;return o.conversion=e,o}t.exports=function(t){const r=o(t),e={},n=Object.keys(r);for(let o=n.length,a=0;a<o;a++){const t=n[a];null!==r[t].parent&&(e[t]=s(t,r))}return e}},63532:(t,r,e)=>{const n=e(38301),o={};for(const l of Object.keys(n))o[n[l]]=l;const a={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=a;for(const l of Object.keys(a)){if(!("channels"in a[l]))throw new Error("missing channels property: "+l);if(!("labels"in a[l]))throw new Error("missing channel labels property: "+l);if(a[l].labels.length!==a[l].channels)throw new Error("channel and label counts mismatch: "+l);const{channels:t,labels:r}=a[l];delete a[l].channels,delete a[l].labels,Object.defineProperty(a[l],"channels",{value:t}),Object.defineProperty(a[l],"labels",{value:r})}function s(t,r){return(t[0]-r[0])**2+(t[1]-r[1])**2+(t[2]-r[2])**2}a.rgb.hsl=function(t){const r=t[0]/255,e=t[1]/255,n=t[2]/255,o=Math.min(r,e,n),a=Math.max(r,e,n),s=a-o;let l,i;a===o?l=0:r===a?l=(e-n)/s:e===a?l=2+(n-r)/s:n===a&&(l=4+(r-e)/s),l=Math.min(60*l,360),l<0&&(l+=360);const h=(o+a)/2;return i=a===o?0:h<=.5?s/(a+o):s/(2-a-o),[l,100*i,100*h]},a.rgb.hsv=function(t){let r,e,n,o,a;const s=t[0]/255,l=t[1]/255,i=t[2]/255,h=Math.max(s,l,i),c=h-Math.min(s,l,i),u=function(t){return(h-t)/6/c+.5};return 0===c?(o=0,a=0):(a=c/h,r=u(s),e=u(l),n=u(i),s===h?o=n-e:l===h?o=1/3+r-n:i===h&&(o=2/3+e-r),o<0?o+=1:o>1&&(o-=1)),[360*o,100*a,100*h]},a.rgb.hwb=function(t){const r=t[0],e=t[1];let n=t[2];const o=a.rgb.hsl(t)[0],s=1/255*Math.min(r,Math.min(e,n));return n=1-1/255*Math.max(r,Math.max(e,n)),[o,100*s,100*n]},a.rgb.cmyk=function(t){const r=t[0]/255,e=t[1]/255,n=t[2]/255,o=Math.min(1-r,1-e,1-n);return[100*((1-r-o)/(1-o)||0),100*((1-e-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*o]},a.rgb.keyword=function(t){const r=o[t];if(r)return r;let e,a=1/0;for(const o of Object.keys(n)){const r=s(t,n[o]);r<a&&(a=r,e=o)}return e},a.keyword.rgb=function(t){return n[t]},a.rgb.xyz=function(t){let r=t[0]/255,e=t[1]/255,n=t[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;return[100*(.4124*r+.3576*e+.1805*n),100*(.2126*r+.7152*e+.0722*n),100*(.0193*r+.1192*e+.9505*n)]},a.rgb.lab=function(t){const r=a.rgb.xyz(t);let e=r[0],n=r[1],o=r[2];e/=95.047,n/=100,o/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;return[116*n-16,500*(e-n),200*(n-o)]},a.hsl.rgb=function(t){const r=t[0]/360,e=t[1]/100,n=t[2]/100;let o,a,s;if(0===e)return s=255*n,[s,s,s];o=n<.5?n*(1+e):n+e-n*e;const l=2*n-o,i=[0,0,0];for(let h=0;h<3;h++)a=r+1/3*-(h-1),a<0&&a++,a>1&&a--,s=6*a<1?l+6*(o-l)*a:2*a<1?o:3*a<2?l+(o-l)*(2/3-a)*6:l,i[h]=255*s;return i},a.hsl.hsv=function(t){const r=t[0];let e=t[1]/100,n=t[2]/100,o=e;const a=Math.max(n,.01);n*=2,e*=n<=1?n:2-n,o*=a<=1?a:2-a;return[r,100*(0===n?2*o/(a+o):2*e/(n+e)),100*((n+e)/2)]},a.hsv.rgb=function(t){const r=t[0]/60,e=t[1]/100;let n=t[2]/100;const o=Math.floor(r)%6,a=r-Math.floor(r),s=255*n*(1-e),l=255*n*(1-e*a),i=255*n*(1-e*(1-a));switch(n*=255,o){case 0:return[n,i,s];case 1:return[l,n,s];case 2:return[s,n,i];case 3:return[s,l,n];case 4:return[i,s,n];case 5:return[n,s,l]}},a.hsv.hsl=function(t){const r=t[0],e=t[1]/100,n=t[2]/100,o=Math.max(n,.01);let a,s;s=(2-e)*n;const l=(2-e)*o;return a=e*o,a/=l<=1?l:2-l,a=a||0,s/=2,[r,100*a,100*s]},a.hwb.rgb=function(t){const r=t[0]/360;let e=t[1]/100,n=t[2]/100;const o=e+n;let a;o>1&&(e/=o,n/=o);const s=Math.floor(6*r),l=1-n;a=6*r-s,0!==(1&s)&&(a=1-a);const i=e+a*(l-e);let h,c,u;switch(s){default:case 6:case 0:h=l,c=i,u=e;break;case 1:h=i,c=l,u=e;break;case 2:h=e,c=l,u=i;break;case 3:h=e,c=i,u=l;break;case 4:h=i,c=e,u=l;break;case 5:h=l,c=e,u=i}return[255*h,255*c,255*u]},a.cmyk.rgb=function(t){const r=t[0]/100,e=t[1]/100,n=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},a.xyz.rgb=function(t){const r=t[0]/100,e=t[1]/100,n=t[2]/100;let o,a,s;return o=3.2406*r+-1.5372*e+-.4986*n,a=-.9689*r+1.8758*e+.0415*n,s=.0557*r+-.204*e+1.057*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[255*o,255*a,255*s]},a.xyz.lab=function(t){let r=t[0],e=t[1],n=t[2];r/=95.047,e/=100,n/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;return[116*e-16,500*(r-e),200*(e-n)]},a.lab.xyz=function(t){let r,e,n;e=(t[0]+16)/116,r=t[1]/500+e,n=e-t[2]/200;const o=e**3,a=r**3,s=n**3;return e=o>.008856?o:(e-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,r*=95.047,e*=100,n*=108.883,[r,e,n]},a.lab.lch=function(t){const r=t[0],e=t[1],n=t[2];let o;o=360*Math.atan2(n,e)/2/Math.PI,o<0&&(o+=360);return[r,Math.sqrt(e*e+n*n),o]},a.lch.lab=function(t){const r=t[0],e=t[1],n=t[2]/360*2*Math.PI;return[r,e*Math.cos(n),e*Math.sin(n)]},a.rgb.ansi16=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const[e,n,o]=t;let s=null===r?a.rgb.hsv(t)[2]:r;if(s=Math.round(s/50),0===s)return 30;let l=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===s&&(l+=60),l},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){const r=t[0],e=t[1],n=t[2];if(r===e&&e===n)return r<8?16:r>248?231:Math.round((r-8)/247*24)+232;return 16+36*Math.round(r/255*5)+6*Math.round(e/255*5)+Math.round(n/255*5)},a.ansi16.rgb=function(t){let r=t%10;if(0===r||7===r)return t>50&&(r+=3.5),r=r/10.5*255,[r,r,r];const e=.5*(1+~~(t>50));return[(1&r)*e*255,(r>>1&1)*e*255,(r>>2&1)*e*255]},a.ansi256.rgb=function(t){if(t>=232){const r=10*(t-232)+8;return[r,r,r]}let r;t-=16;return[Math.floor(t/36)/5*255,Math.floor((r=t%36)/6)/5*255,r%6/5*255]},a.rgb.hex=function(t){const r=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(r.length)+r},a.hex.rgb=function(t){const r=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let e=r[0];3===r[0].length&&(e=e.split("").map(t=>t+t).join(""));const n=parseInt(e,16);return[n>>16&255,n>>8&255,255&n]},a.rgb.hcg=function(t){const r=t[0]/255,e=t[1]/255,n=t[2]/255,o=Math.max(Math.max(r,e),n),a=Math.min(Math.min(r,e),n),s=o-a;let l,i;return l=s<1?a/(1-s):0,i=s<=0?0:o===r?(e-n)/s%6:o===e?2+(n-r)/s:4+(r-e)/s,i/=6,i%=1,[360*i,100*s,100*l]},a.hsl.hcg=function(t){const r=t[1]/100,e=t[2]/100,n=e<.5?2*r*e:2*r*(1-e);let o=0;return n<1&&(o=(e-.5*n)/(1-n)),[t[0],100*n,100*o]},a.hsv.hcg=function(t){const r=t[1]/100,e=t[2]/100,n=r*e;let o=0;return n<1&&(o=(e-n)/(1-n)),[t[0],100*n,100*o]},a.hcg.rgb=function(t){const r=t[0]/360,e=t[1]/100,n=t[2]/100;if(0===e)return[255*n,255*n,255*n];const o=[0,0,0],a=r%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-e)*n,[255*(e*o[0]+i),255*(e*o[1]+i),255*(e*o[2]+i)]},a.hcg.hsv=function(t){const r=t[1]/100,e=r+t[2]/100*(1-r);let n=0;return e>0&&(n=r/e),[t[0],100*n,100*e]},a.hcg.hsl=function(t){const r=t[1]/100,e=t[2]/100*(1-r)+.5*r;let n=0;return e>0&&e<.5?n=r/(2*e):e>=.5&&e<1&&(n=r/(2*(1-e))),[t[0],100*n,100*e]},a.hcg.hwb=function(t){const r=t[1]/100,e=r+t[2]/100*(1-r);return[t[0],100*(e-r),100*(1-e)]},a.hwb.hcg=function(t){const r=t[1]/100,e=1-t[2]/100,n=e-r;let o=0;return n<1&&(o=(e-n)/(1-n)),[t[0],100*n,100*o]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=function(t){return[0,0,t[0]]},a.gray.hsv=a.gray.hsl,a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){const r=255&Math.round(t[0]/100*255),e=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},67199:t=>{t.exports=function(t){return!(!t||"string"===typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},69849:(t,r,e)=>{"use strict";var n=e(67199),o=Array.prototype.concat,a=Array.prototype.slice,s=t.exports=function(t){for(var r=[],e=0,s=t.length;e<s;e++){var l=t[e];n(l)?r=o.call(r,a.call(l)):r.push(l)}return r};s.wrap=function(t){return function(){return t(s(arguments))}}}}]);
|
|
2
|
-
//# sourceMappingURL=2995.156074ac.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/2995.156074ac.chunk.js","mappings":"sIAAA,MAAMA,EAAcC,EAAQ,OACtBC,EAAQD,EAAQ,OAEhBE,EAAU,CAAC,EAEFC,OAAOC,KAAKL,GA0DpBM,QAAQC,IACdJ,EAAQI,GAAa,CAAC,EAEtBH,OAAOI,eAAeL,EAAQI,GAAY,WAAY,CAACE,MAAOT,EAAYO,GAAWG,WACrFN,OAAOI,eAAeL,EAAQI,GAAY,SAAU,CAACE,MAAOT,EAAYO,GAAWI,SAEnF,MAAMC,EAASV,EAAMK,GACDH,OAAOC,KAAKO,GAEpBN,QAAQO,IACnB,MAAMC,EAAKF,EAAOC,GAElBV,EAAQI,GAAWM,GA9CrB,SAAqBC,GACpB,MAAMC,EAAY,WAAmB,QAAAC,EAAAC,UAAAC,OAANC,EAAI,IAAAC,MAAAJ,GAAAK,EAAA,EAAAA,EAAAL,EAAAK,IAAJF,EAAIE,GAAAJ,UAAAI,GAClC,MAAMC,EAAOH,EAAK,GAElB,QAAaI,IAATD,GAA+B,OAATA,EACzB,OAAOA,EAGJA,EAAKJ,OAAS,IACjBC,EAAOG,GAGR,MAAME,EAASV,EAAGK,GAKlB,GAAsB,kBAAXK,EACV,IAAK,IAAIC,EAAMD,EAAON,OAAQQ,EAAI,EAAGA,EAAID,EAAKC,IAC7CF,EAAOE,GAAKC,KAAKC,MAAMJ,EAAOE,IAIhC,OAAOF,CACR,EAOA,MAJI,eAAgBV,IACnBC,EAAUc,WAAaf,EAAGe,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,CACD,C","sources":["../node_modules/color-convert/index.js","../node_modules/color-string/index.js","../node_modules/color-name/index.js","../node_modules/color/index.js","../node_modules/color-convert/route.js","../node_modules/color-convert/conversions.js","../node_modules/simple-swizzle/node_modules/is-arrayish/index.js","../node_modules/simple-swizzle/index.js"],"sourcesContent":["const conversions = require('./conversions');\nconst route = require('./route');\n\nconst convert = {};\n\nconst models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\tconst result = fn(args);\n\n\t\t// We're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (let len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(fromModel => {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tconst routes = route(fromModel);\n\tconst routeModels = Object.keys(routes);\n\n\trouteModels.forEach(toModel => {\n\t\tconst fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nmodule.exports = convert;\n","/* MIT license */\nvar colorNames = require('color-name');\nvar swizzle = require('simple-swizzle');\nvar hasOwnProperty = Object.hasOwnProperty;\n\nvar reverseNames = Object.create(null);\n\n// create a list of reverse color names\nfor (var name in colorNames) {\n\tif (hasOwnProperty.call(colorNames, name)) {\n\t\treverseNames[colorNames[name]] = name;\n\t}\n}\n\nvar cs = module.exports = {\n\tto: {},\n\tget: {}\n};\n\ncs.get = function (string) {\n\tvar prefix = string.substring(0, 3).toLowerCase();\n\tvar val;\n\tvar model;\n\tswitch (prefix) {\n\t\tcase 'hsl':\n\t\t\tval = cs.get.hsl(string);\n\t\t\tmodel = 'hsl';\n\t\t\tbreak;\n\t\tcase 'hwb':\n\t\t\tval = cs.get.hwb(string);\n\t\t\tmodel = 'hwb';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tval = cs.get.rgb(string);\n\t\t\tmodel = 'rgb';\n\t\t\tbreak;\n\t}\n\n\tif (!val) {\n\t\treturn null;\n\t}\n\n\treturn {model: model, value: val};\n};\n\ncs.get.rgb = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar abbr = /^#([a-f0-9]{3,4})$/i;\n\tvar hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;\n\tvar rgba = /^rgba?\\(\\s*([+-]?\\d+)(?=[\\s,])\\s*(?:,\\s*)?([+-]?\\d+)(?=[\\s,])\\s*(?:,\\s*)?([+-]?\\d+)\\s*(?:[,|\\/]\\s*([+-]?[\\d\\.]+)(%?)\\s*)?\\)$/;\n\tvar per = /^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,?\\s*([+-]?[\\d\\.]+)\\%\\s*,?\\s*([+-]?[\\d\\.]+)\\%\\s*(?:[,|\\/]\\s*([+-]?[\\d\\.]+)(%?)\\s*)?\\)$/;\n\tvar keyword = /^(\\w+)$/;\n\n\tvar rgb = [0, 0, 0, 1];\n\tvar match;\n\tvar i;\n\tvar hexAlpha;\n\n\tif (match = string.match(hex)) {\n\t\thexAlpha = match[2];\n\t\tmatch = match[1];\n\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\t// https://jsperf.com/slice-vs-substr-vs-substring-methods-long-string/19\n\t\t\tvar i2 = i * 2;\n\t\t\trgb[i] = parseInt(match.slice(i2, i2 + 2), 16);\n\t\t}\n\n\t\tif (hexAlpha) {\n\t\t\trgb[3] = parseInt(hexAlpha, 16) / 255;\n\t\t}\n\t} else if (match = string.match(abbr)) {\n\t\tmatch = match[1];\n\t\thexAlpha = match[3];\n\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = parseInt(match[i] + match[i], 16);\n\t\t}\n\n\t\tif (hexAlpha) {\n\t\t\trgb[3] = parseInt(hexAlpha + hexAlpha, 16) / 255;\n\t\t}\n\t} else if (match = string.match(rgba)) {\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = parseInt(match[i + 1], 0);\n\t\t}\n\n\t\tif (match[4]) {\n\t\t\tif (match[5]) {\n\t\t\t\trgb[3] = parseFloat(match[4]) * 0.01;\n\t\t\t} else {\n\t\t\t\trgb[3] = parseFloat(match[4]);\n\t\t\t}\n\t\t}\n\t} else if (match = string.match(per)) {\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);\n\t\t}\n\n\t\tif (match[4]) {\n\t\t\tif (match[5]) {\n\t\t\t\trgb[3] = parseFloat(match[4]) * 0.01;\n\t\t\t} else {\n\t\t\t\trgb[3] = parseFloat(match[4]);\n\t\t\t}\n\t\t}\n\t} else if (match = string.match(keyword)) {\n\t\tif (match[1] === 'transparent') {\n\t\t\treturn [0, 0, 0, 0];\n\t\t}\n\n\t\tif (!hasOwnProperty.call(colorNames, match[1])) {\n\t\t\treturn null;\n\t\t}\n\n\t\trgb = colorNames[match[1]];\n\t\trgb[3] = 1;\n\n\t\treturn rgb;\n\t} else {\n\t\treturn null;\n\t}\n\n\tfor (i = 0; i < 3; i++) {\n\t\trgb[i] = clamp(rgb[i], 0, 255);\n\t}\n\trgb[3] = clamp(rgb[3], 0, 1);\n\n\treturn rgb;\n};\n\ncs.get.hsl = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar hsl = /^hsla?\\(\\s*([+-]?(?:\\d{0,3}\\.)?\\d+)(?:deg)?\\s*,?\\s*([+-]?[\\d\\.]+)%\\s*,?\\s*([+-]?[\\d\\.]+)%\\s*(?:[,|\\/]\\s*([+-]?(?=\\.\\d|\\d)(?:0|[1-9]\\d*)?(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)\\s*)?\\)$/;\n\tvar match = string.match(hsl);\n\n\tif (match) {\n\t\tvar alpha = parseFloat(match[4]);\n\t\tvar h = ((parseFloat(match[1]) % 360) + 360) % 360;\n\t\tvar s = clamp(parseFloat(match[2]), 0, 100);\n\t\tvar l = clamp(parseFloat(match[3]), 0, 100);\n\t\tvar a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);\n\n\t\treturn [h, s, l, a];\n\t}\n\n\treturn null;\n};\n\ncs.get.hwb = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar hwb = /^hwb\\(\\s*([+-]?\\d{0,3}(?:\\.\\d+)?)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?(?=\\.\\d|\\d)(?:0|[1-9]\\d*)?(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)\\s*)?\\)$/;\n\tvar match = string.match(hwb);\n\n\tif (match) {\n\t\tvar alpha = parseFloat(match[4]);\n\t\tvar h = ((parseFloat(match[1]) % 360) + 360) % 360;\n\t\tvar w = clamp(parseFloat(match[2]), 0, 100);\n\t\tvar b = clamp(parseFloat(match[3]), 0, 100);\n\t\tvar a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);\n\t\treturn [h, w, b, a];\n\t}\n\n\treturn null;\n};\n\ncs.to.hex = function () {\n\tvar rgba = swizzle(arguments);\n\n\treturn (\n\t\t'#' +\n\t\thexDouble(rgba[0]) +\n\t\thexDouble(rgba[1]) +\n\t\thexDouble(rgba[2]) +\n\t\t(rgba[3] < 1\n\t\t\t? (hexDouble(Math.round(rgba[3] * 255)))\n\t\t\t: '')\n\t);\n};\n\ncs.to.rgb = function () {\n\tvar rgba = swizzle(arguments);\n\n\treturn rgba.length < 4 || rgba[3] === 1\n\t\t? 'rgb(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ')'\n\t\t: 'rgba(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ', ' + rgba[3] + ')';\n};\n\ncs.to.rgb.percent = function () {\n\tvar rgba = swizzle(arguments);\n\n\tvar r = Math.round(rgba[0] / 255 * 100);\n\tvar g = Math.round(rgba[1] / 255 * 100);\n\tvar b = Math.round(rgba[2] / 255 * 100);\n\n\treturn rgba.length < 4 || rgba[3] === 1\n\t\t? 'rgb(' + r + '%, ' + g + '%, ' + b + '%)'\n\t\t: 'rgba(' + r + '%, ' + g + '%, ' + b + '%, ' + rgba[3] + ')';\n};\n\ncs.to.hsl = function () {\n\tvar hsla = swizzle(arguments);\n\treturn hsla.length < 4 || hsla[3] === 1\n\t\t? 'hsl(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%)'\n\t\t: 'hsla(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%, ' + hsla[3] + ')';\n};\n\n// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax\n// (hwb have alpha optional & 1 is default value)\ncs.to.hwb = function () {\n\tvar hwba = swizzle(arguments);\n\n\tvar a = '';\n\tif (hwba.length >= 4 && hwba[3] !== 1) {\n\t\ta = ', ' + hwba[3];\n\t}\n\n\treturn 'hwb(' + hwba[0] + ', ' + hwba[1] + '%, ' + hwba[2] + '%' + a + ')';\n};\n\ncs.to.keyword = function (rgb) {\n\treturn reverseNames[rgb.slice(0, 3)];\n};\n\n// helpers\nfunction clamp(num, min, max) {\n\treturn Math.min(Math.max(min, num), max);\n}\n\nfunction hexDouble(num) {\n\tvar str = Math.round(num).toString(16).toUpperCase();\n\treturn (str.length < 2) ? '0' + str : str;\n}\n","'use strict'\r\n\r\nmodule.exports = {\r\n\t\"aliceblue\": [240, 248, 255],\r\n\t\"antiquewhite\": [250, 235, 215],\r\n\t\"aqua\": [0, 255, 255],\r\n\t\"aquamarine\": [127, 255, 212],\r\n\t\"azure\": [240, 255, 255],\r\n\t\"beige\": [245, 245, 220],\r\n\t\"bisque\": [255, 228, 196],\r\n\t\"black\": [0, 0, 0],\r\n\t\"blanchedalmond\": [255, 235, 205],\r\n\t\"blue\": [0, 0, 255],\r\n\t\"blueviolet\": [138, 43, 226],\r\n\t\"brown\": [165, 42, 42],\r\n\t\"burlywood\": [222, 184, 135],\r\n\t\"cadetblue\": [95, 158, 160],\r\n\t\"chartreuse\": [127, 255, 0],\r\n\t\"chocolate\": [210, 105, 30],\r\n\t\"coral\": [255, 127, 80],\r\n\t\"cornflowerblue\": [100, 149, 237],\r\n\t\"cornsilk\": [255, 248, 220],\r\n\t\"crimson\": [220, 20, 60],\r\n\t\"cyan\": [0, 255, 255],\r\n\t\"darkblue\": [0, 0, 139],\r\n\t\"darkcyan\": [0, 139, 139],\r\n\t\"darkgoldenrod\": [184, 134, 11],\r\n\t\"darkgray\": [169, 169, 169],\r\n\t\"darkgreen\": [0, 100, 0],\r\n\t\"darkgrey\": [169, 169, 169],\r\n\t\"darkkhaki\": [189, 183, 107],\r\n\t\"darkmagenta\": [139, 0, 139],\r\n\t\"darkolivegreen\": [85, 107, 47],\r\n\t\"darkorange\": [255, 140, 0],\r\n\t\"darkorchid\": [153, 50, 204],\r\n\t\"darkred\": [139, 0, 0],\r\n\t\"darksalmon\": [233, 150, 122],\r\n\t\"darkseagreen\": [143, 188, 143],\r\n\t\"darkslateblue\": [72, 61, 139],\r\n\t\"darkslategray\": [47, 79, 79],\r\n\t\"darkslategrey\": [47, 79, 79],\r\n\t\"darkturquoise\": [0, 206, 209],\r\n\t\"darkviolet\": [148, 0, 211],\r\n\t\"deeppink\": [255, 20, 147],\r\n\t\"deepskyblue\": [0, 191, 255],\r\n\t\"dimgray\": [105, 105, 105],\r\n\t\"dimgrey\": [105, 105, 105],\r\n\t\"dodgerblue\": [30, 144, 255],\r\n\t\"firebrick\": [178, 34, 34],\r\n\t\"floralwhite\": [255, 250, 240],\r\n\t\"forestgreen\": [34, 139, 34],\r\n\t\"fuchsia\": [255, 0, 255],\r\n\t\"gainsboro\": [220, 220, 220],\r\n\t\"ghostwhite\": [248, 248, 255],\r\n\t\"gold\": [255, 215, 0],\r\n\t\"goldenrod\": [218, 165, 32],\r\n\t\"gray\": [128, 128, 128],\r\n\t\"green\": [0, 128, 0],\r\n\t\"greenyellow\": [173, 255, 47],\r\n\t\"grey\": [128, 128, 128],\r\n\t\"honeydew\": [240, 255, 240],\r\n\t\"hotpink\": [255, 105, 180],\r\n\t\"indianred\": [205, 92, 92],\r\n\t\"indigo\": [75, 0, 130],\r\n\t\"ivory\": [255, 255, 240],\r\n\t\"khaki\": [240, 230, 140],\r\n\t\"lavender\": [230, 230, 250],\r\n\t\"lavenderblush\": [255, 240, 245],\r\n\t\"lawngreen\": [124, 252, 0],\r\n\t\"lemonchiffon\": [255, 250, 205],\r\n\t\"lightblue\": [173, 216, 230],\r\n\t\"lightcoral\": [240, 128, 128],\r\n\t\"lightcyan\": [224, 255, 255],\r\n\t\"lightgoldenrodyellow\": [250, 250, 210],\r\n\t\"lightgray\": [211, 211, 211],\r\n\t\"lightgreen\": [144, 238, 144],\r\n\t\"lightgrey\": [211, 211, 211],\r\n\t\"lightpink\": [255, 182, 193],\r\n\t\"lightsalmon\": [255, 160, 122],\r\n\t\"lightseagreen\": [32, 178, 170],\r\n\t\"lightskyblue\": [135, 206, 250],\r\n\t\"lightslategray\": [119, 136, 153],\r\n\t\"lightslategrey\": [119, 136, 153],\r\n\t\"lightsteelblue\": [176, 196, 222],\r\n\t\"lightyellow\": [255, 255, 224],\r\n\t\"lime\": [0, 255, 0],\r\n\t\"limegreen\": [50, 205, 50],\r\n\t\"linen\": [250, 240, 230],\r\n\t\"magenta\": [255, 0, 255],\r\n\t\"maroon\": [128, 0, 0],\r\n\t\"mediumaquamarine\": [102, 205, 170],\r\n\t\"mediumblue\": [0, 0, 205],\r\n\t\"mediumorchid\": [186, 85, 211],\r\n\t\"mediumpurple\": [147, 112, 219],\r\n\t\"mediumseagreen\": [60, 179, 113],\r\n\t\"mediumslateblue\": [123, 104, 238],\r\n\t\"mediumspringgreen\": [0, 250, 154],\r\n\t\"mediumturquoise\": [72, 209, 204],\r\n\t\"mediumvioletred\": [199, 21, 133],\r\n\t\"midnightblue\": [25, 25, 112],\r\n\t\"mintcream\": [245, 255, 250],\r\n\t\"mistyrose\": [255, 228, 225],\r\n\t\"moccasin\": [255, 228, 181],\r\n\t\"navajowhite\": [255, 222, 173],\r\n\t\"navy\": [0, 0, 128],\r\n\t\"oldlace\": [253, 245, 230],\r\n\t\"olive\": [128, 128, 0],\r\n\t\"olivedrab\": [107, 142, 35],\r\n\t\"orange\": [255, 165, 0],\r\n\t\"orangered\": [255, 69, 0],\r\n\t\"orchid\": [218, 112, 214],\r\n\t\"palegoldenrod\": [238, 232, 170],\r\n\t\"palegreen\": [152, 251, 152],\r\n\t\"paleturquoise\": [175, 238, 238],\r\n\t\"palevioletred\": [219, 112, 147],\r\n\t\"papayawhip\": [255, 239, 213],\r\n\t\"peachpuff\": [255, 218, 185],\r\n\t\"peru\": [205, 133, 63],\r\n\t\"pink\": [255, 192, 203],\r\n\t\"plum\": [221, 160, 221],\r\n\t\"powderblue\": [176, 224, 230],\r\n\t\"purple\": [128, 0, 128],\r\n\t\"rebeccapurple\": [102, 51, 153],\r\n\t\"red\": [255, 0, 0],\r\n\t\"rosybrown\": [188, 143, 143],\r\n\t\"royalblue\": [65, 105, 225],\r\n\t\"saddlebrown\": [139, 69, 19],\r\n\t\"salmon\": [250, 128, 114],\r\n\t\"sandybrown\": [244, 164, 96],\r\n\t\"seagreen\": [46, 139, 87],\r\n\t\"seashell\": [255, 245, 238],\r\n\t\"sienna\": [160, 82, 45],\r\n\t\"silver\": [192, 192, 192],\r\n\t\"skyblue\": [135, 206, 235],\r\n\t\"slateblue\": [106, 90, 205],\r\n\t\"slategray\": [112, 128, 144],\r\n\t\"slategrey\": [112, 128, 144],\r\n\t\"snow\": [255, 250, 250],\r\n\t\"springgreen\": [0, 255, 127],\r\n\t\"steelblue\": [70, 130, 180],\r\n\t\"tan\": [210, 180, 140],\r\n\t\"teal\": [0, 128, 128],\r\n\t\"thistle\": [216, 191, 216],\r\n\t\"tomato\": [255, 99, 71],\r\n\t\"turquoise\": [64, 224, 208],\r\n\t\"violet\": [238, 130, 238],\r\n\t\"wheat\": [245, 222, 179],\r\n\t\"white\": [255, 255, 255],\r\n\t\"whitesmoke\": [245, 245, 245],\r\n\t\"yellow\": [255, 255, 0],\r\n\t\"yellowgreen\": [154, 205, 50]\r\n};\r\n","const colorString = require('color-string');\nconst convert = require('color-convert');\n\nconst skippedModels = [\n\t// To be honest, I don't really feel like keyword belongs in color convert, but eh.\n\t'keyword',\n\n\t// Gray conflicts with some method names, and has its own method defined.\n\t'gray',\n\n\t// Shouldn't really be in color-convert either...\n\t'hex',\n];\n\nconst hashedModelKeys = {};\nfor (const model of Object.keys(convert)) {\n\thashedModelKeys[[...convert[model].labels].sort().join('')] = model;\n}\n\nconst limiters = {};\n\nfunction Color(object, model) {\n\tif (!(this instanceof Color)) {\n\t\treturn new Color(object, model);\n\t}\n\n\tif (model && model in skippedModels) {\n\t\tmodel = null;\n\t}\n\n\tif (model && !(model in convert)) {\n\t\tthrow new Error('Unknown model: ' + model);\n\t}\n\n\tlet i;\n\tlet channels;\n\n\tif (object == null) { // eslint-disable-line no-eq-null,eqeqeq\n\t\tthis.model = 'rgb';\n\t\tthis.color = [0, 0, 0];\n\t\tthis.valpha = 1;\n\t} else if (object instanceof Color) {\n\t\tthis.model = object.model;\n\t\tthis.color = [...object.color];\n\t\tthis.valpha = object.valpha;\n\t} else if (typeof object === 'string') {\n\t\tconst result = colorString.get(object);\n\t\tif (result === null) {\n\t\t\tthrow new Error('Unable to parse color from string: ' + object);\n\t\t}\n\n\t\tthis.model = result.model;\n\t\tchannels = convert[this.model].channels;\n\t\tthis.color = result.value.slice(0, channels);\n\t\tthis.valpha = typeof result.value[channels] === 'number' ? result.value[channels] : 1;\n\t} else if (object.length > 0) {\n\t\tthis.model = model || 'rgb';\n\t\tchannels = convert[this.model].channels;\n\t\tconst newArray = Array.prototype.slice.call(object, 0, channels);\n\t\tthis.color = zeroArray(newArray, channels);\n\t\tthis.valpha = typeof object[channels] === 'number' ? object[channels] : 1;\n\t} else if (typeof object === 'number') {\n\t\t// This is always RGB - can be converted later on.\n\t\tthis.model = 'rgb';\n\t\tthis.color = [\n\t\t\t(object >> 16) & 0xFF,\n\t\t\t(object >> 8) & 0xFF,\n\t\t\tobject & 0xFF,\n\t\t];\n\t\tthis.valpha = 1;\n\t} else {\n\t\tthis.valpha = 1;\n\n\t\tconst keys = Object.keys(object);\n\t\tif ('alpha' in object) {\n\t\t\tkeys.splice(keys.indexOf('alpha'), 1);\n\t\t\tthis.valpha = typeof object.alpha === 'number' ? object.alpha : 0;\n\t\t}\n\n\t\tconst hashedKeys = keys.sort().join('');\n\t\tif (!(hashedKeys in hashedModelKeys)) {\n\t\t\tthrow new Error('Unable to parse color from object: ' + JSON.stringify(object));\n\t\t}\n\n\t\tthis.model = hashedModelKeys[hashedKeys];\n\n\t\tconst {labels} = convert[this.model];\n\t\tconst color = [];\n\t\tfor (i = 0; i < labels.length; i++) {\n\t\t\tcolor.push(object[labels[i]]);\n\t\t}\n\n\t\tthis.color = zeroArray(color);\n\t}\n\n\t// Perform limitations (clamping, etc.)\n\tif (limiters[this.model]) {\n\t\tchannels = convert[this.model].channels;\n\t\tfor (i = 0; i < channels; i++) {\n\t\t\tconst limit = limiters[this.model][i];\n\t\t\tif (limit) {\n\t\t\t\tthis.color[i] = limit(this.color[i]);\n\t\t\t}\n\t\t}\n\t}\n\n\tthis.valpha = Math.max(0, Math.min(1, this.valpha));\n\n\tif (Object.freeze) {\n\t\tObject.freeze(this);\n\t}\n}\n\nColor.prototype = {\n\ttoString() {\n\t\treturn this.string();\n\t},\n\n\ttoJSON() {\n\t\treturn this[this.model]();\n\t},\n\n\tstring(places) {\n\t\tlet self = this.model in colorString.to ? this : this.rgb();\n\t\tself = self.round(typeof places === 'number' ? places : 1);\n\t\tconst args = self.valpha === 1 ? self.color : [...self.color, this.valpha];\n\t\treturn colorString.to[self.model](args);\n\t},\n\n\tpercentString(places) {\n\t\tconst self = this.rgb().round(typeof places === 'number' ? places : 1);\n\t\tconst args = self.valpha === 1 ? self.color : [...self.color, this.valpha];\n\t\treturn colorString.to.rgb.percent(args);\n\t},\n\n\tarray() {\n\t\treturn this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];\n\t},\n\n\tobject() {\n\t\tconst result = {};\n\t\tconst {channels} = convert[this.model];\n\t\tconst {labels} = convert[this.model];\n\n\t\tfor (let i = 0; i < channels; i++) {\n\t\t\tresult[labels[i]] = this.color[i];\n\t\t}\n\n\t\tif (this.valpha !== 1) {\n\t\t\tresult.alpha = this.valpha;\n\t\t}\n\n\t\treturn result;\n\t},\n\n\tunitArray() {\n\t\tconst rgb = this.rgb().color;\n\t\trgb[0] /= 255;\n\t\trgb[1] /= 255;\n\t\trgb[2] /= 255;\n\n\t\tif (this.valpha !== 1) {\n\t\t\trgb.push(this.valpha);\n\t\t}\n\n\t\treturn rgb;\n\t},\n\n\tunitObject() {\n\t\tconst rgb = this.rgb().object();\n\t\trgb.r /= 255;\n\t\trgb.g /= 255;\n\t\trgb.b /= 255;\n\n\t\tif (this.valpha !== 1) {\n\t\t\trgb.alpha = this.valpha;\n\t\t}\n\n\t\treturn rgb;\n\t},\n\n\tround(places) {\n\t\tplaces = Math.max(places || 0, 0);\n\t\treturn new Color([...this.color.map(roundToPlace(places)), this.valpha], this.model);\n\t},\n\n\talpha(value) {\n\t\tif (value !== undefined) {\n\t\t\treturn new Color([...this.color, Math.max(0, Math.min(1, value))], this.model);\n\t\t}\n\n\t\treturn this.valpha;\n\t},\n\n\t// Rgb\n\tred: getset('rgb', 0, maxfn(255)),\n\tgreen: getset('rgb', 1, maxfn(255)),\n\tblue: getset('rgb', 2, maxfn(255)),\n\n\thue: getset(['hsl', 'hsv', 'hsl', 'hwb', 'hcg'], 0, value => ((value % 360) + 360) % 360),\n\n\tsaturationl: getset('hsl', 1, maxfn(100)),\n\tlightness: getset('hsl', 2, maxfn(100)),\n\n\tsaturationv: getset('hsv', 1, maxfn(100)),\n\tvalue: getset('hsv', 2, maxfn(100)),\n\n\tchroma: getset('hcg', 1, maxfn(100)),\n\tgray: getset('hcg', 2, maxfn(100)),\n\n\twhite: getset('hwb', 1, maxfn(100)),\n\twblack: getset('hwb', 2, maxfn(100)),\n\n\tcyan: getset('cmyk', 0, maxfn(100)),\n\tmagenta: getset('cmyk', 1, maxfn(100)),\n\tyellow: getset('cmyk', 2, maxfn(100)),\n\tblack: getset('cmyk', 3, maxfn(100)),\n\n\tx: getset('xyz', 0, maxfn(95.047)),\n\ty: getset('xyz', 1, maxfn(100)),\n\tz: getset('xyz', 2, maxfn(108.833)),\n\n\tl: getset('lab', 0, maxfn(100)),\n\ta: getset('lab', 1),\n\tb: getset('lab', 2),\n\n\tkeyword(value) {\n\t\tif (value !== undefined) {\n\t\t\treturn new Color(value);\n\t\t}\n\n\t\treturn convert[this.model].keyword(this.color);\n\t},\n\n\thex(value) {\n\t\tif (value !== undefined) {\n\t\t\treturn new Color(value);\n\t\t}\n\n\t\treturn colorString.to.hex(this.rgb().round().color);\n\t},\n\n\thexa(value) {\n\t\tif (value !== undefined) {\n\t\t\treturn new Color(value);\n\t\t}\n\n\t\tconst rgbArray = this.rgb().round().color;\n\n\t\tlet alphaHex = Math.round(this.valpha * 255).toString(16).toUpperCase();\n\t\tif (alphaHex.length === 1) {\n\t\t\talphaHex = '0' + alphaHex;\n\t\t}\n\n\t\treturn colorString.to.hex(rgbArray) + alphaHex;\n\t},\n\n\trgbNumber() {\n\t\tconst rgb = this.rgb().color;\n\t\treturn ((rgb[0] & 0xFF) << 16) | ((rgb[1] & 0xFF) << 8) | (rgb[2] & 0xFF);\n\t},\n\n\tluminosity() {\n\t\t// http://www.w3.org/TR/WCAG20/#relativeluminancedef\n\t\tconst rgb = this.rgb().color;\n\n\t\tconst lum = [];\n\t\tfor (const [i, element] of rgb.entries()) {\n\t\t\tconst chan = element / 255;\n\t\t\tlum[i] = (chan <= 0.04045) ? chan / 12.92 : ((chan + 0.055) / 1.055) ** 2.4;\n\t\t}\n\n\t\treturn 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];\n\t},\n\n\tcontrast(color2) {\n\t\t// http://www.w3.org/TR/WCAG20/#contrast-ratiodef\n\t\tconst lum1 = this.luminosity();\n\t\tconst lum2 = color2.luminosity();\n\n\t\tif (lum1 > lum2) {\n\t\t\treturn (lum1 + 0.05) / (lum2 + 0.05);\n\t\t}\n\n\t\treturn (lum2 + 0.05) / (lum1 + 0.05);\n\t},\n\n\tlevel(color2) {\n\t\t// https://www.w3.org/TR/WCAG/#contrast-enhanced\n\t\tconst contrastRatio = this.contrast(color2);\n\t\tif (contrastRatio >= 7) {\n\t\t\treturn 'AAA';\n\t\t}\n\n\t\treturn (contrastRatio >= 4.5) ? 'AA' : '';\n\t},\n\n\tisDark() {\n\t\t// YIQ equation from http://24ways.org/2010/calculating-color-contrast\n\t\tconst rgb = this.rgb().color;\n\t\tconst yiq = (rgb[0] * 2126 + rgb[1] * 7152 + rgb[2] * 722) / 10000;\n\t\treturn yiq < 128;\n\t},\n\n\tisLight() {\n\t\treturn !this.isDark();\n\t},\n\n\tnegate() {\n\t\tconst rgb = this.rgb();\n\t\tfor (let i = 0; i < 3; i++) {\n\t\t\trgb.color[i] = 255 - rgb.color[i];\n\t\t}\n\n\t\treturn rgb;\n\t},\n\n\tlighten(ratio) {\n\t\tconst hsl = this.hsl();\n\t\thsl.color[2] += hsl.color[2] * ratio;\n\t\treturn hsl;\n\t},\n\n\tdarken(ratio) {\n\t\tconst hsl = this.hsl();\n\t\thsl.color[2] -= hsl.color[2] * ratio;\n\t\treturn hsl;\n\t},\n\n\tsaturate(ratio) {\n\t\tconst hsl = this.hsl();\n\t\thsl.color[1] += hsl.color[1] * ratio;\n\t\treturn hsl;\n\t},\n\n\tdesaturate(ratio) {\n\t\tconst hsl = this.hsl();\n\t\thsl.color[1] -= hsl.color[1] * ratio;\n\t\treturn hsl;\n\t},\n\n\twhiten(ratio) {\n\t\tconst hwb = this.hwb();\n\t\thwb.color[1] += hwb.color[1] * ratio;\n\t\treturn hwb;\n\t},\n\n\tblacken(ratio) {\n\t\tconst hwb = this.hwb();\n\t\thwb.color[2] += hwb.color[2] * ratio;\n\t\treturn hwb;\n\t},\n\n\tgrayscale() {\n\t\t// http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale\n\t\tconst rgb = this.rgb().color;\n\t\tconst value = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;\n\t\treturn Color.rgb(value, value, value);\n\t},\n\n\tfade(ratio) {\n\t\treturn this.alpha(this.valpha - (this.valpha * ratio));\n\t},\n\n\topaquer(ratio) {\n\t\treturn this.alpha(this.valpha + (this.valpha * ratio));\n\t},\n\n\trotate(degrees) {\n\t\tconst hsl = this.hsl();\n\t\tlet hue = hsl.color[0];\n\t\thue = (hue + degrees) % 360;\n\t\thue = hue < 0 ? 360 + hue : hue;\n\t\thsl.color[0] = hue;\n\t\treturn hsl;\n\t},\n\n\tmix(mixinColor, weight) {\n\t\t// Ported from sass implementation in C\n\t\t// https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209\n\t\tif (!mixinColor || !mixinColor.rgb) {\n\t\t\tthrow new Error('Argument to \"mix\" was not a Color instance, but rather an instance of ' + typeof mixinColor);\n\t\t}\n\n\t\tconst color1 = mixinColor.rgb();\n\t\tconst color2 = this.rgb();\n\t\tconst p = weight === undefined ? 0.5 : weight;\n\n\t\tconst w = 2 * p - 1;\n\t\tconst a = color1.alpha() - color2.alpha();\n\n\t\tconst w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2;\n\t\tconst w2 = 1 - w1;\n\n\t\treturn Color.rgb(\n\t\t\tw1 * color1.red() + w2 * color2.red(),\n\t\t\tw1 * color1.green() + w2 * color2.green(),\n\t\t\tw1 * color1.blue() + w2 * color2.blue(),\n\t\t\tcolor1.alpha() * p + color2.alpha() * (1 - p));\n\t},\n};\n\n// Model conversion methods and static constructors\nfor (const model of Object.keys(convert)) {\n\tif (skippedModels.includes(model)) {\n\t\tcontinue;\n\t}\n\n\tconst {channels} = convert[model];\n\n\t// Conversion methods\n\tColor.prototype[model] = function (...args) {\n\t\tif (this.model === model) {\n\t\t\treturn new Color(this);\n\t\t}\n\n\t\tif (args.length > 0) {\n\t\t\treturn new Color(args, model);\n\t\t}\n\n\t\treturn new Color([...assertArray(convert[this.model][model].raw(this.color)), this.valpha], model);\n\t};\n\n\t// 'static' construction methods\n\tColor[model] = function (...args) {\n\t\tlet color = args[0];\n\t\tif (typeof color === 'number') {\n\t\t\tcolor = zeroArray(args, channels);\n\t\t}\n\n\t\treturn new Color(color, model);\n\t};\n}\n\nfunction roundTo(number, places) {\n\treturn Number(number.toFixed(places));\n}\n\nfunction roundToPlace(places) {\n\treturn function (number) {\n\t\treturn roundTo(number, places);\n\t};\n}\n\nfunction getset(model, channel, modifier) {\n\tmodel = Array.isArray(model) ? model : [model];\n\n\tfor (const m of model) {\n\t\t(limiters[m] || (limiters[m] = []))[channel] = modifier;\n\t}\n\n\tmodel = model[0];\n\n\treturn function (value) {\n\t\tlet result;\n\n\t\tif (value !== undefined) {\n\t\t\tif (modifier) {\n\t\t\t\tvalue = modifier(value);\n\t\t\t}\n\n\t\t\tresult = this[model]();\n\t\t\tresult.color[channel] = value;\n\t\t\treturn result;\n\t\t}\n\n\t\tresult = this[model]().color[channel];\n\t\tif (modifier) {\n\t\t\tresult = modifier(result);\n\t\t}\n\n\t\treturn result;\n\t};\n}\n\nfunction maxfn(max) {\n\treturn function (v) {\n\t\treturn Math.max(0, Math.min(max, v));\n\t};\n}\n\nfunction assertArray(value) {\n\treturn Array.isArray(value) ? value : [value];\n}\n\nfunction zeroArray(array, length) {\n\tfor (let i = 0; i < length; i++) {\n\t\tif (typeof array[i] !== 'number') {\n\t\t\tarray[i] = 0;\n\t\t}\n\t}\n\n\treturn array;\n}\n\nmodule.exports = Color;\n","const conversions = require('./conversions');\n\n/*\n\tThis function routes a model to all other models.\n\n\tall functions that are routed have a property `.conversion` attached\n\tto the returned synthetic function. This property is an array\n\tof strings, each with the steps in between the 'from' and 'to'\n\tcolor models (inclusive).\n\n\tconversions that are not possible simply are not included.\n*/\n\nfunction buildGraph() {\n\tconst graph = {};\n\t// https://jsperf.com/object-keys-vs-for-in-with-closure/3\n\tconst models = Object.keys(conversions);\n\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tgraph[models[i]] = {\n\t\t\t// http://jsperf.com/1-vs-infinity\n\t\t\t// micro-opt, but this is simple.\n\t\t\tdistance: -1,\n\t\t\tparent: null\n\t\t};\n\t}\n\n\treturn graph;\n}\n\n// https://en.wikipedia.org/wiki/Breadth-first_search\nfunction deriveBFS(fromModel) {\n\tconst graph = buildGraph();\n\tconst queue = [fromModel]; // Unshift -> queue -> pop\n\n\tgraph[fromModel].distance = 0;\n\n\twhile (queue.length) {\n\t\tconst current = queue.pop();\n\t\tconst adjacents = Object.keys(conversions[current]);\n\n\t\tfor (let len = adjacents.length, i = 0; i < len; i++) {\n\t\t\tconst adjacent = adjacents[i];\n\t\t\tconst node = graph[adjacent];\n\n\t\t\tif (node.distance === -1) {\n\t\t\t\tnode.distance = graph[current].distance + 1;\n\t\t\t\tnode.parent = current;\n\t\t\t\tqueue.unshift(adjacent);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn graph;\n}\n\nfunction link(from, to) {\n\treturn function (args) {\n\t\treturn to(from(args));\n\t};\n}\n\nfunction wrapConversion(toModel, graph) {\n\tconst path = [graph[toModel].parent, toModel];\n\tlet fn = conversions[graph[toModel].parent][toModel];\n\n\tlet cur = graph[toModel].parent;\n\twhile (graph[cur].parent) {\n\t\tpath.unshift(graph[cur].parent);\n\t\tfn = link(conversions[graph[cur].parent][cur], fn);\n\t\tcur = graph[cur].parent;\n\t}\n\n\tfn.conversion = path;\n\treturn fn;\n}\n\nmodule.exports = function (fromModel) {\n\tconst graph = deriveBFS(fromModel);\n\tconst conversion = {};\n\n\tconst models = Object.keys(graph);\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tconst toModel = models[i];\n\t\tconst node = graph[toModel];\n\n\t\tif (node.parent === null) {\n\t\t\t// No possible conversion, or this node is the source model.\n\t\t\tcontinue;\n\t\t}\n\n\t\tconversion[toModel] = wrapConversion(toModel, graph);\n\t}\n\n\treturn conversion;\n};\n\n","/* MIT license */\n/* eslint-disable no-mixed-operators */\nconst cssKeywords = require('color-name');\n\n// NOTE: conversions should only return primitive values (i.e. arrays, or\n// values that give correct `typeof` results).\n// do not use box values types (i.e. Number(), String(), etc.)\n\nconst reverseKeywords = {};\nfor (const key of Object.keys(cssKeywords)) {\n\treverseKeywords[cssKeywords[key]] = key;\n}\n\nconst convert = {\n\trgb: {channels: 3, labels: 'rgb'},\n\thsl: {channels: 3, labels: 'hsl'},\n\thsv: {channels: 3, labels: 'hsv'},\n\thwb: {channels: 3, labels: 'hwb'},\n\tcmyk: {channels: 4, labels: 'cmyk'},\n\txyz: {channels: 3, labels: 'xyz'},\n\tlab: {channels: 3, labels: 'lab'},\n\tlch: {channels: 3, labels: 'lch'},\n\thex: {channels: 1, labels: ['hex']},\n\tkeyword: {channels: 1, labels: ['keyword']},\n\tansi16: {channels: 1, labels: ['ansi16']},\n\tansi256: {channels: 1, labels: ['ansi256']},\n\thcg: {channels: 3, labels: ['h', 'c', 'g']},\n\tapple: {channels: 3, labels: ['r16', 'g16', 'b16']},\n\tgray: {channels: 1, labels: ['gray']}\n};\n\nmodule.exports = convert;\n\n// Hide .channels and .labels properties\nfor (const model of Object.keys(convert)) {\n\tif (!('channels' in convert[model])) {\n\t\tthrow new Error('missing channels property: ' + model);\n\t}\n\n\tif (!('labels' in convert[model])) {\n\t\tthrow new Error('missing channel labels property: ' + model);\n\t}\n\n\tif (convert[model].labels.length !== convert[model].channels) {\n\t\tthrow new Error('channel and label counts mismatch: ' + model);\n\t}\n\n\tconst {channels, labels} = convert[model];\n\tdelete convert[model].channels;\n\tdelete convert[model].labels;\n\tObject.defineProperty(convert[model], 'channels', {value: channels});\n\tObject.defineProperty(convert[model], 'labels', {value: labels});\n}\n\nconvert.rgb.hsl = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst min = Math.min(r, g, b);\n\tconst max = Math.max(r, g, b);\n\tconst delta = max - min;\n\tlet h;\n\tlet s;\n\n\tif (max === min) {\n\t\th = 0;\n\t} else if (r === max) {\n\t\th = (g - b) / delta;\n\t} else if (g === max) {\n\t\th = 2 + (b - r) / delta;\n\t} else if (b === max) {\n\t\th = 4 + (r - g) / delta;\n\t}\n\n\th = Math.min(h * 60, 360);\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst l = (min + max) / 2;\n\n\tif (max === min) {\n\t\ts = 0;\n\t} else if (l <= 0.5) {\n\t\ts = delta / (max + min);\n\t} else {\n\t\ts = delta / (2 - max - min);\n\t}\n\n\treturn [h, s * 100, l * 100];\n};\n\nconvert.rgb.hsv = function (rgb) {\n\tlet rdif;\n\tlet gdif;\n\tlet bdif;\n\tlet h;\n\tlet s;\n\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst v = Math.max(r, g, b);\n\tconst diff = v - Math.min(r, g, b);\n\tconst diffc = function (c) {\n\t\treturn (v - c) / 6 / diff + 1 / 2;\n\t};\n\n\tif (diff === 0) {\n\t\th = 0;\n\t\ts = 0;\n\t} else {\n\t\ts = diff / v;\n\t\trdif = diffc(r);\n\t\tgdif = diffc(g);\n\t\tbdif = diffc(b);\n\n\t\tif (r === v) {\n\t\t\th = bdif - gdif;\n\t\t} else if (g === v) {\n\t\t\th = (1 / 3) + rdif - bdif;\n\t\t} else if (b === v) {\n\t\t\th = (2 / 3) + gdif - rdif;\n\t\t}\n\n\t\tif (h < 0) {\n\t\t\th += 1;\n\t\t} else if (h > 1) {\n\t\t\th -= 1;\n\t\t}\n\t}\n\n\treturn [\n\t\th * 360,\n\t\ts * 100,\n\t\tv * 100\n\t];\n};\n\nconvert.rgb.hwb = function (rgb) {\n\tconst r = rgb[0];\n\tconst g = rgb[1];\n\tlet b = rgb[2];\n\tconst h = convert.rgb.hsl(rgb)[0];\n\tconst w = 1 / 255 * Math.min(r, Math.min(g, b));\n\n\tb = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n\n\treturn [h, w * 100, b * 100];\n};\n\nconvert.rgb.cmyk = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\n\tconst k = Math.min(1 - r, 1 - g, 1 - b);\n\tconst c = (1 - r - k) / (1 - k) || 0;\n\tconst m = (1 - g - k) / (1 - k) || 0;\n\tconst y = (1 - b - k) / (1 - k) || 0;\n\n\treturn [c * 100, m * 100, y * 100, k * 100];\n};\n\nfunction comparativeDistance(x, y) {\n\t/*\n\t\tSee https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n\t*/\n\treturn (\n\t\t((x[0] - y[0]) ** 2) +\n\t\t((x[1] - y[1]) ** 2) +\n\t\t((x[2] - y[2]) ** 2)\n\t);\n}\n\nconvert.rgb.keyword = function (rgb) {\n\tconst reversed = reverseKeywords[rgb];\n\tif (reversed) {\n\t\treturn reversed;\n\t}\n\n\tlet currentClosestDistance = Infinity;\n\tlet currentClosestKeyword;\n\n\tfor (const keyword of Object.keys(cssKeywords)) {\n\t\tconst value = cssKeywords[keyword];\n\n\t\t// Compute comparative distance\n\t\tconst distance = comparativeDistance(rgb, value);\n\n\t\t// Check if its less, if so set as closest\n\t\tif (distance < currentClosestDistance) {\n\t\t\tcurrentClosestDistance = distance;\n\t\t\tcurrentClosestKeyword = keyword;\n\t\t}\n\t}\n\n\treturn currentClosestKeyword;\n};\n\nconvert.keyword.rgb = function (keyword) {\n\treturn cssKeywords[keyword];\n};\n\nconvert.rgb.xyz = function (rgb) {\n\tlet r = rgb[0] / 255;\n\tlet g = rgb[1] / 255;\n\tlet b = rgb[2] / 255;\n\n\t// Assume sRGB\n\tr = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);\n\tg = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);\n\tb = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);\n\n\tconst x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);\n\tconst y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);\n\tconst z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);\n\n\treturn [x * 100, y * 100, z * 100];\n};\n\nconvert.rgb.lab = function (rgb) {\n\tconst xyz = convert.rgb.xyz(rgb);\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.hsl.rgb = function (hsl) {\n\tconst h = hsl[0] / 360;\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\tlet t2;\n\tlet t3;\n\tlet val;\n\n\tif (s === 0) {\n\t\tval = l * 255;\n\t\treturn [val, val, val];\n\t}\n\n\tif (l < 0.5) {\n\t\tt2 = l * (1 + s);\n\t} else {\n\t\tt2 = l + s - l * s;\n\t}\n\n\tconst t1 = 2 * l - t2;\n\n\tconst rgb = [0, 0, 0];\n\tfor (let i = 0; i < 3; i++) {\n\t\tt3 = h + 1 / 3 * -(i - 1);\n\t\tif (t3 < 0) {\n\t\t\tt3++;\n\t\t}\n\n\t\tif (t3 > 1) {\n\t\t\tt3--;\n\t\t}\n\n\t\tif (6 * t3 < 1) {\n\t\t\tval = t1 + (t2 - t1) * 6 * t3;\n\t\t} else if (2 * t3 < 1) {\n\t\t\tval = t2;\n\t\t} else if (3 * t3 < 2) {\n\t\t\tval = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n\t\t} else {\n\t\t\tval = t1;\n\t\t}\n\n\t\trgb[i] = val * 255;\n\t}\n\n\treturn rgb;\n};\n\nconvert.hsl.hsv = function (hsl) {\n\tconst h = hsl[0];\n\tlet s = hsl[1] / 100;\n\tlet l = hsl[2] / 100;\n\tlet smin = s;\n\tconst lmin = Math.max(l, 0.01);\n\n\tl *= 2;\n\ts *= (l <= 1) ? l : 2 - l;\n\tsmin *= lmin <= 1 ? lmin : 2 - lmin;\n\tconst v = (l + s) / 2;\n\tconst sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);\n\n\treturn [h, sv * 100, v * 100];\n};\n\nconvert.hsv.rgb = function (hsv) {\n\tconst h = hsv[0] / 60;\n\tconst s = hsv[1] / 100;\n\tlet v = hsv[2] / 100;\n\tconst hi = Math.floor(h) % 6;\n\n\tconst f = h - Math.floor(h);\n\tconst p = 255 * v * (1 - s);\n\tconst q = 255 * v * (1 - (s * f));\n\tconst t = 255 * v * (1 - (s * (1 - f)));\n\tv *= 255;\n\n\tswitch (hi) {\n\t\tcase 0:\n\t\t\treturn [v, t, p];\n\t\tcase 1:\n\t\t\treturn [q, v, p];\n\t\tcase 2:\n\t\t\treturn [p, v, t];\n\t\tcase 3:\n\t\t\treturn [p, q, v];\n\t\tcase 4:\n\t\t\treturn [t, p, v];\n\t\tcase 5:\n\t\t\treturn [v, p, q];\n\t}\n};\n\nconvert.hsv.hsl = function (hsv) {\n\tconst h = hsv[0];\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\tconst vmin = Math.max(v, 0.01);\n\tlet sl;\n\tlet l;\n\n\tl = (2 - s) * v;\n\tconst lmin = (2 - s) * vmin;\n\tsl = s * vmin;\n\tsl /= (lmin <= 1) ? lmin : 2 - lmin;\n\tsl = sl || 0;\n\tl /= 2;\n\n\treturn [h, sl * 100, l * 100];\n};\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nconvert.hwb.rgb = function (hwb) {\n\tconst h = hwb[0] / 360;\n\tlet wh = hwb[1] / 100;\n\tlet bl = hwb[2] / 100;\n\tconst ratio = wh + bl;\n\tlet f;\n\n\t// Wh + bl cant be > 1\n\tif (ratio > 1) {\n\t\twh /= ratio;\n\t\tbl /= ratio;\n\t}\n\n\tconst i = Math.floor(6 * h);\n\tconst v = 1 - bl;\n\tf = 6 * h - i;\n\n\tif ((i & 0x01) !== 0) {\n\t\tf = 1 - f;\n\t}\n\n\tconst n = wh + f * (v - wh); // Linear interpolation\n\n\tlet r;\n\tlet g;\n\tlet b;\n\t/* eslint-disable max-statements-per-line,no-multi-spaces */\n\tswitch (i) {\n\t\tdefault:\n\t\tcase 6:\n\t\tcase 0: r = v; g = n; b = wh; break;\n\t\tcase 1: r = n; g = v; b = wh; break;\n\t\tcase 2: r = wh; g = v; b = n; break;\n\t\tcase 3: r = wh; g = n; b = v; break;\n\t\tcase 4: r = n; g = wh; b = v; break;\n\t\tcase 5: r = v; g = wh; b = n; break;\n\t}\n\t/* eslint-enable max-statements-per-line,no-multi-spaces */\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.cmyk.rgb = function (cmyk) {\n\tconst c = cmyk[0] / 100;\n\tconst m = cmyk[1] / 100;\n\tconst y = cmyk[2] / 100;\n\tconst k = cmyk[3] / 100;\n\n\tconst r = 1 - Math.min(1, c * (1 - k) + k);\n\tconst g = 1 - Math.min(1, m * (1 - k) + k);\n\tconst b = 1 - Math.min(1, y * (1 - k) + k);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.rgb = function (xyz) {\n\tconst x = xyz[0] / 100;\n\tconst y = xyz[1] / 100;\n\tconst z = xyz[2] / 100;\n\tlet r;\n\tlet g;\n\tlet b;\n\n\tr = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n\tg = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n\tb = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n\t// Assume sRGB\n\tr = r > 0.0031308\n\t\t? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)\n\t\t: r * 12.92;\n\n\tg = g > 0.0031308\n\t\t? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)\n\t\t: g * 12.92;\n\n\tb = b > 0.0031308\n\t\t? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)\n\t\t: b * 12.92;\n\n\tr = Math.min(Math.max(0, r), 1);\n\tg = Math.min(Math.max(0, g), 1);\n\tb = Math.min(Math.max(0, b), 1);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.lab = function (xyz) {\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.lab.xyz = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet x;\n\tlet y;\n\tlet z;\n\n\ty = (l + 16) / 116;\n\tx = a / 500 + y;\n\tz = y - b / 200;\n\n\tconst y2 = y ** 3;\n\tconst x2 = x ** 3;\n\tconst z2 = z ** 3;\n\ty = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n\tx = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n\tz = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n\n\tx *= 95.047;\n\ty *= 100;\n\tz *= 108.883;\n\n\treturn [x, y, z];\n};\n\nconvert.lab.lch = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet h;\n\n\tconst hr = Math.atan2(b, a);\n\th = hr * 360 / 2 / Math.PI;\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst c = Math.sqrt(a * a + b * b);\n\n\treturn [l, c, h];\n};\n\nconvert.lch.lab = function (lch) {\n\tconst l = lch[0];\n\tconst c = lch[1];\n\tconst h = lch[2];\n\n\tconst hr = h / 360 * 2 * Math.PI;\n\tconst a = c * Math.cos(hr);\n\tconst b = c * Math.sin(hr);\n\n\treturn [l, a, b];\n};\n\nconvert.rgb.ansi16 = function (args, saturation = null) {\n\tconst [r, g, b] = args;\n\tlet value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization\n\n\tvalue = Math.round(value / 50);\n\n\tif (value === 0) {\n\t\treturn 30;\n\t}\n\n\tlet ansi = 30\n\t\t+ ((Math.round(b / 255) << 2)\n\t\t| (Math.round(g / 255) << 1)\n\t\t| Math.round(r / 255));\n\n\tif (value === 2) {\n\t\tansi += 60;\n\t}\n\n\treturn ansi;\n};\n\nconvert.hsv.ansi16 = function (args) {\n\t// Optimization here; we already know the value and don't need to get\n\t// it converted for us.\n\treturn convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n};\n\nconvert.rgb.ansi256 = function (args) {\n\tconst r = args[0];\n\tconst g = args[1];\n\tconst b = args[2];\n\n\t// We use the extended greyscale palette here, with the exception of\n\t// black and white. normal palette only has 4 greyscale shades.\n\tif (r === g && g === b) {\n\t\tif (r < 8) {\n\t\t\treturn 16;\n\t\t}\n\n\t\tif (r > 248) {\n\t\t\treturn 231;\n\t\t}\n\n\t\treturn Math.round(((r - 8) / 247) * 24) + 232;\n\t}\n\n\tconst ansi = 16\n\t\t+ (36 * Math.round(r / 255 * 5))\n\t\t+ (6 * Math.round(g / 255 * 5))\n\t\t+ Math.round(b / 255 * 5);\n\n\treturn ansi;\n};\n\nconvert.ansi16.rgb = function (args) {\n\tlet color = args % 10;\n\n\t// Handle greyscale\n\tif (color === 0 || color === 7) {\n\t\tif (args > 50) {\n\t\t\tcolor += 3.5;\n\t\t}\n\n\t\tcolor = color / 10.5 * 255;\n\n\t\treturn [color, color, color];\n\t}\n\n\tconst mult = (~~(args > 50) + 1) * 0.5;\n\tconst r = ((color & 1) * mult) * 255;\n\tconst g = (((color >> 1) & 1) * mult) * 255;\n\tconst b = (((color >> 2) & 1) * mult) * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.ansi256.rgb = function (args) {\n\t// Handle greyscale\n\tif (args >= 232) {\n\t\tconst c = (args - 232) * 10 + 8;\n\t\treturn [c, c, c];\n\t}\n\n\targs -= 16;\n\n\tlet rem;\n\tconst r = Math.floor(args / 36) / 5 * 255;\n\tconst g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n\tconst b = (rem % 6) / 5 * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hex = function (args) {\n\tconst integer = ((Math.round(args[0]) & 0xFF) << 16)\n\t\t+ ((Math.round(args[1]) & 0xFF) << 8)\n\t\t+ (Math.round(args[2]) & 0xFF);\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.hex.rgb = function (args) {\n\tconst match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n\tif (!match) {\n\t\treturn [0, 0, 0];\n\t}\n\n\tlet colorString = match[0];\n\n\tif (match[0].length === 3) {\n\t\tcolorString = colorString.split('').map(char => {\n\t\t\treturn char + char;\n\t\t}).join('');\n\t}\n\n\tconst integer = parseInt(colorString, 16);\n\tconst r = (integer >> 16) & 0xFF;\n\tconst g = (integer >> 8) & 0xFF;\n\tconst b = integer & 0xFF;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hcg = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst max = Math.max(Math.max(r, g), b);\n\tconst min = Math.min(Math.min(r, g), b);\n\tconst chroma = (max - min);\n\tlet grayscale;\n\tlet hue;\n\n\tif (chroma < 1) {\n\t\tgrayscale = min / (1 - chroma);\n\t} else {\n\t\tgrayscale = 0;\n\t}\n\n\tif (chroma <= 0) {\n\t\thue = 0;\n\t} else\n\tif (max === r) {\n\t\thue = ((g - b) / chroma) % 6;\n\t} else\n\tif (max === g) {\n\t\thue = 2 + (b - r) / chroma;\n\t} else {\n\t\thue = 4 + (r - g) / chroma;\n\t}\n\n\thue /= 6;\n\thue %= 1;\n\n\treturn [hue * 360, chroma * 100, grayscale * 100];\n};\n\nconvert.hsl.hcg = function (hsl) {\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\n\tconst c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));\n\n\tlet f = 0;\n\tif (c < 1.0) {\n\t\tf = (l - 0.5 * c) / (1.0 - c);\n\t}\n\n\treturn [hsl[0], c * 100, f * 100];\n};\n\nconvert.hsv.hcg = function (hsv) {\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\n\tconst c = s * v;\n\tlet f = 0;\n\n\tif (c < 1.0) {\n\t\tf = (v - c) / (1 - c);\n\t}\n\n\treturn [hsv[0], c * 100, f * 100];\n};\n\nconvert.hcg.rgb = function (hcg) {\n\tconst h = hcg[0] / 360;\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tif (c === 0.0) {\n\t\treturn [g * 255, g * 255, g * 255];\n\t}\n\n\tconst pure = [0, 0, 0];\n\tconst hi = (h % 1) * 6;\n\tconst v = hi % 1;\n\tconst w = 1 - v;\n\tlet mg = 0;\n\n\t/* eslint-disable max-statements-per-line */\n\tswitch (Math.floor(hi)) {\n\t\tcase 0:\n\t\t\tpure[0] = 1; pure[1] = v; pure[2] = 0; break;\n\t\tcase 1:\n\t\t\tpure[0] = w; pure[1] = 1; pure[2] = 0; break;\n\t\tcase 2:\n\t\t\tpure[0] = 0; pure[1] = 1; pure[2] = v; break;\n\t\tcase 3:\n\t\t\tpure[0] = 0; pure[1] = w; pure[2] = 1; break;\n\t\tcase 4:\n\t\t\tpure[0] = v; pure[1] = 0; pure[2] = 1; break;\n\t\tdefault:\n\t\t\tpure[0] = 1; pure[1] = 0; pure[2] = w;\n\t}\n\t/* eslint-enable max-statements-per-line */\n\n\tmg = (1.0 - c) * g;\n\n\treturn [\n\t\t(c * pure[0] + mg) * 255,\n\t\t(c * pure[1] + mg) * 255,\n\t\t(c * pure[2] + mg) * 255\n\t];\n};\n\nconvert.hcg.hsv = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst v = c + g * (1.0 - c);\n\tlet f = 0;\n\n\tif (v > 0.0) {\n\t\tf = c / v;\n\t}\n\n\treturn [hcg[0], f * 100, v * 100];\n};\n\nconvert.hcg.hsl = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst l = g * (1.0 - c) + 0.5 * c;\n\tlet s = 0;\n\n\tif (l > 0.0 && l < 0.5) {\n\t\ts = c / (2 * l);\n\t} else\n\tif (l >= 0.5 && l < 1.0) {\n\t\ts = c / (2 * (1 - l));\n\t}\n\n\treturn [hcg[0], s * 100, l * 100];\n};\n\nconvert.hcg.hwb = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\tconst v = c + g * (1.0 - c);\n\treturn [hcg[0], (v - c) * 100, (1 - v) * 100];\n};\n\nconvert.hwb.hcg = function (hwb) {\n\tconst w = hwb[1] / 100;\n\tconst b = hwb[2] / 100;\n\tconst v = 1 - b;\n\tconst c = v - w;\n\tlet g = 0;\n\n\tif (c < 1) {\n\t\tg = (v - c) / (1 - c);\n\t}\n\n\treturn [hwb[0], c * 100, g * 100];\n};\n\nconvert.apple.rgb = function (apple) {\n\treturn [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];\n};\n\nconvert.rgb.apple = function (rgb) {\n\treturn [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];\n};\n\nconvert.gray.rgb = function (args) {\n\treturn [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n};\n\nconvert.gray.hsl = function (args) {\n\treturn [0, 0, args[0]];\n};\n\nconvert.gray.hsv = convert.gray.hsl;\n\nconvert.gray.hwb = function (gray) {\n\treturn [0, 100, gray[0]];\n};\n\nconvert.gray.cmyk = function (gray) {\n\treturn [0, 0, 0, gray[0]];\n};\n\nconvert.gray.lab = function (gray) {\n\treturn [gray[0], 0, 0];\n};\n\nconvert.gray.hex = function (gray) {\n\tconst val = Math.round(gray[0] / 100 * 255) & 0xFF;\n\tconst integer = (val << 16) + (val << 8) + val;\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.rgb.gray = function (rgb) {\n\tconst val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n\treturn [val / 255 * 100];\n};\n","module.exports = function isArrayish(obj) {\n\tif (!obj || typeof obj === 'string') {\n\t\treturn false;\n\t}\n\n\treturn obj instanceof Array || Array.isArray(obj) ||\n\t\t(obj.length >= 0 && (obj.splice instanceof Function ||\n\t\t\t(Object.getOwnPropertyDescriptor(obj, (obj.length - 1)) && obj.constructor.name !== 'String')));\n};\n","'use strict';\n\nvar isArrayish = require('is-arrayish');\n\nvar concat = Array.prototype.concat;\nvar slice = Array.prototype.slice;\n\nvar swizzle = module.exports = function swizzle(args) {\n\tvar results = [];\n\n\tfor (var i = 0, len = args.length; i < len; i++) {\n\t\tvar arg = args[i];\n\n\t\tif (isArrayish(arg)) {\n\t\t\t// http://jsperf.com/javascript-array-concat-vs-push/98\n\t\t\tresults = concat.call(results, slice.call(arg));\n\t\t} else {\n\t\t\tresults.push(arg);\n\t\t}\n\t}\n\n\treturn results;\n};\n\nswizzle.wrap = function (fn) {\n\treturn function () {\n\t\treturn fn(swizzle(arguments));\n\t};\n};\n"],"names":["conversions","require","route","convert","Object","keys","forEach","fromModel","defineProperty","value","channels","labels","routes","toModel","fn","wrappedFn","_len2","arguments","length","args","Array","_key2","arg0","undefined","result","len","i","Math","round","conversion","wrapRounded","raw","_len","_key","wrapRaw","module","exports","colorNames","swizzle","hasOwnProperty","reverseNames","create","name","call","cs","to","get","clamp","num","min","max","hexDouble","str","toString","toUpperCase","string","val","model","substring","toLowerCase","hsl","hwb","rgb","match","hexAlpha","i2","parseInt","slice","parseFloat","alpha","isNaN","hex","rgba","percent","r","g","b","hsla","hwba","a","keyword","colorString","skippedModels","hashedModelKeys","sort","join","limiters","Color","object","this","Error","color","valpha","newArray","prototype","zeroArray","splice","indexOf","hashedKeys","JSON","stringify","push","limit","freeze","toJSON","places","self","percentString","array","unitArray","unitObject","map","roundToPlace","red","getset","maxfn","green","blue","hue","saturationl","lightness","saturationv","chroma","gray","white","wblack","cyan","magenta","yellow","black","x","y","z","l","hexa","rgbArray","alphaHex","rgbNumber","luminosity","lum","element","entries","chan","contrast","color2","lum1","lum2","level","contrastRatio","isDark","isLight","negate","lighten","ratio","darken","saturate","desaturate","whiten","blacken","grayscale","fade","opaquer","rotate","degrees","mix","mixinColor","weight","color1","p","w","w1","w2","includes","isArray","number","Number","toFixed","roundTo","channel","modifier","m","v","deriveBFS","graph","models","distance","parent","buildGraph","queue","current","pop","adjacents","adjacent","node","unshift","link","from","wrapConversion","path","cur","cssKeywords","reverseKeywords","key","hsv","cmyk","xyz","lab","lch","ansi16","ansi256","hcg","apple","comparativeDistance","delta","h","s","rdif","gdif","bdif","diff","diffc","c","k","reversed","currentClosestKeyword","currentClosestDistance","Infinity","t2","t3","t1","smin","lmin","hi","floor","f","q","t","vmin","sl","wh","bl","n","y2","x2","z2","atan2","PI","sqrt","hr","cos","sin","saturation","ansi","mult","rem","split","char","integer","pure","mg","obj","Function","getOwnPropertyDescriptor","constructor","isArrayish","concat","results","arg","wrap"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2908,3771],{3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>q,TabsModal:()=>z,TabsModalButton:()=>H,default:()=>R,useConfirmModal:()=>P,useModal:()=>T,useTabsModal:()=>F});var n=t(89379),l=t(53986),s=t(73884),i=t(55199),r=t(83136),a=t.n(r);const c={modal:"style_modal__Pm3cF__j+s1S",large:"style_large__iaqVE__j+s1S","modal-body-inner":"style_modal-body-inner__4PhpA__j+s1S","modal-title":"style_modal-title__dswaw__j+s1S","modal-outer":"style_modal-outer__r3SkX__j+s1S","modal-body":"style_modal-body__jQJSI__j+s1S","right-options-modal":"style_right-options-modal__FajDP__j+s1S","right-options-row":"style_right-options-row__-mPb9__j+s1S","right-options-col":"style_right-options-col__3ilee__j+s1S","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__j+s1S",content:"style_content__k6MIF__j+s1S","modal-footer":"style_modal-footer__-prbN__j+s1S","modal-close":"style_modal-close__Oa5Kl__j+s1S","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__j+s1S","is-danger":"style_is-danger__H5110__j+s1S",title:"style_title__orTym__j+s1S","has-title":"style_has-title__qy0Wp__j+s1S"},d=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var m=t(47458),h=t(64671);const p=(e,o)=>"function"===typeof e?e(o):e;var f=t(81014),u=t(17342),_=t(70579);const g=["ButtonComponent","onClick","autoClose","display"],y=["children","rightOptions","rightSpan","footer","footerButtons","className","size","title","onClose","onConfirm","confirmText","onCancel","cancelText","closable","disabledScroller","withDecorator","childrenRef"],j=["size"],C=["children"],x=["type","icon","title","danger","wrapClassName","message","iconSetting","confirmType"],A="Modal",b=e=>{let{options:o,rightSpan:t=6,children:n}=e;return o?(0,_.jsxs)(i.Row,{wrap:!1,className:c["right-options-row"],children:[(0,_.jsx)(i.Col,{span:24-t,className:c["right-options-col"],children:n}),(0,_.jsx)(i.Col,{span:t,className:c["right-options-col"],children:o})]}):n},S=(e,o)=>"".concat(e-48-(o?58:0),"px"),w=e=>{let{footer:o,footerButtons:t,onConfirm:r,onCancel:a,cancelText:c,onClose:h,targetProps:p}=e;return(0,_.jsxs)(i.Row,{gutter:10,wrap:!1,children:[(0,_.jsx)(i.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,_.jsx)(i.Col,{children:(0,_.jsx)(i.Space,{children:(t||[{children:c||(0,_.jsx)(m.IntlProvider,{importMessages:d,moduleName:A,children:(0,_.jsx)(m.FormattedMessage,{id:"Cancel",moduleName:A})}),onClick:a},{type:"primary",children:(0,_.jsx)(m.IntlProvider,{importMessages:d,moduleName:A,children:(0,_.jsx)(m.FormattedMessage,{id:"Confirm",moduleName:A})}),onClick:r}]).filter(e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display)).map((e,o)=>{let{ButtonComponent:t,onClick:i,autoClose:r=!0,display:a}=e,c=(0,l.A)(e,g);const d=t||f.default;return(0,s.createElement)(d,(0,n.A)((0,n.A)({},c),{},{key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const n=await Promise.resolve(i&&i(...o,p));return r&&!1!==n&&h&&h(),n}}))})})})]})},N=e=>{let{title:o,footer:t,disabledScroller:n,footerButtons:l,onClose:r,closable:d,onConfirm:m,onCancel:p,children:f,targetProps:g,cancelText:y,confirmText:j}=e;const C=(0,s.useRef)(null);return(0,_.jsxs)("div",{className:a()(c["modal-outer"],"modal-container"),"data-testid":"components-core-modal",children:[!1===d?null:(0,_.jsx)(i.Button,{"data-testid":"components-core-modal-close-btn",className:a()(c["modal-close"],"modal-close"),type:"text",icon:(0,_.jsx)(h.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),r&&r()}}),o&&(0,_.jsx)("div",{className:c["modal-title"],children:o}),(0,_.jsx)(u.A,{className:a()(c["modal-body"],{[c["is-disabled-scroller"]]:n},"modal-body"),ref:C,children:(0,_.jsx)("div",{className:a()(c["modal-body-inner"],"modal-body-inner"),children:f})}),null!==t||l?(0,_.jsx)("div",{className:a()(c["modal-footer"],"modal-footer"),children:(0,_.jsx)(w,{footer:t,footerButtons:l,onConfirm:m,confirmText:j,onCancel:p,cancelText:y,onClose:r,targetProps:g})}):null]})},v=e=>{let{withDecorator:o,footerButtons:t,title:l,closable:s,onClose:i,onConfirm:r,confirmText:a,onCancel:c,cancelText:d,footer:m,rightOptions:h,rightSpan:f,disabledScroller:u,childrenRef:g,children:y}=e;const j=e=>(e=Object.assign({},{title:l},e),(0,_.jsx)(N,{title:p(e.title,(0,n.A)((0,n.A)({},e),{},{childrenRef:g,close:i})),closable:s,onClose:i,onConfirm:r,confirmText:a,onCancel:c,cancelText:d,footerButtons:p(t,(0,n.A)((0,n.A)({},e),{},{close:i})),disabledScroller:u,footer:p(m,(0,n.A)((0,n.A)({},e),{},{childrenRef:g,close:i})),targetProps:Object.assign({},e,{childrenRef:g,close:i}),children:(0,_.jsx)(b,{rightSpan:f,options:p(h,(0,n.A)((0,n.A)({},e),{},{childrenRef:g,close:i})),children:p(y,(0,n.A)((0,n.A)({},e),{},{childrenRef:g,close:i}))})}));return"function"===typeof o?o(j,{childrenRef:g,close:i}):j({})},k=e=>{let{children:o,rightOptions:t,rightSpan:s,footer:i,footerButtons:r,className:h,size:p,title:f,onClose:u,onConfirm:g,confirmText:j,onCancel:C,cancelText:x,closable:A,disabledScroller:b,withDecorator:w,childrenRef:N}=e,k=(0,l.A)(e,y);return(0,n.A)((0,n.A)((0,n.A)({},k),{},{icon:null,centered:!0,title:null,maskClosable:!!k.hasOwnProperty("maskClosable")&&k.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:u,className:a()(h,c.modal,c[p],{[c["right-options-modal"]]:t})},((e,o)=>"large"===e?{width:"".concat(Math.min(window.innerWidth-64,1500),"px"),style:{"--min-modal-height":S(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":S(300,o)}}:{width:"1000px",style:{"--min-modal-height":S(500,o)}})(p,!(null===i&&!r))),{},{children:(0,_.jsx)(m.IntlProvider,{importMessages:d,moduleName:"Modal",children:v({withDecorator:w,title:f,closable:A,onClose:u,onConfirm:g,confirmText:j,onCancel:C,cancelText:x,footer:i,footerButtons:r,rightOptions:t,rightSpan:s,disabledScroller:b,children:o,childrenRef:N})})})},T=()=>{const{modal:e}=i.App.useApp(),o=(0,s.useRef)(null);return t=>{const s={},i=k((0,n.A)({onClose:()=>s.close(),childrenRef:o},t)),{children:r}=i,a=(0,l.A)(i,C),{destroy:c}=e.info((0,n.A)((0,n.A)({},a),{},{content:r}));return s.close=c,s}},P=()=>{const{modal:e}=i.App.useApp();return o=>{const t={},s=(0,n.A)({onClose:()=>t.close(),maskClosable:!1},o),{type:r,icon:d,title:m,danger:p,wrapClassName:f,message:u,iconSetting:g={},confirmType:y="info"}=s,j=(0,l.A)(s,x),C=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},g);if(e[r]){const{destroy:o}=e[r]((0,n.A)((0,n.A)({},j),{},{icon:null,wrapClassName:a()(c["confirm-modal-wrap"],f,{[c["is-danger"]]:p}),title:(0,_.jsx)(i.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:m&&(0,_.jsxs)(i.Space,{size:0,align:"start",className:c.title,children:[p?(0,_.jsx)(h.default,{className:a()("title-icon","title-icon-".concat("confirm"===r?y:r)),type:d||C["confirm"===r?y:r]}):null,m]})}),content:(0,_.jsxs)(i.Space,{size:0,align:"start",className:a()(c.content,{[c["has-title"]]:m}),children:[!m&&p?(0,_.jsx)(h.default,{className:a()("title-icon","title-icon-".concat("confirm"===r?y:r)),type:d||C["confirm"===r?y:r]}):null,u]})}));t.close=o}return t}},R=e=>{let{size:o="default"}=e,t=(0,l.A)(e,j);const r=(0,s.useRef)(null);return(0,_.jsx)(i.Modal,(0,n.A)({},k(Object.assign({},t,{size:o,childrenRef:r}))))},M=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],B=["withDecorator"],O=["children"],D=e=>{let{items:o,className:t,activeKey:s,withDecorator:r,defaultActiveKey:c,onChange:d}=e,m=(0,l.A)(e,M);return(0,n.A)((0,n.A)({},m),{},{className:a()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,_.jsx)(i.Tabs,{items:o.map(o=>{let{withDecorator:n}=o,s=(0,l.A)(o,B);return Object.assign({},s,{children:"function"===typeof n?n(o=>e(Object.assign({},t,o,{children:s.children}))):e(Object.assign({},t,{children:s.children}))})}),destroyInactiveTabPane:!0,activeKey:s,defaultActiveKey:c,onChange:d});return"function"===typeof r?r(t):t()},children:e=>{let{children:o}=e,t=(0,l.A)(e,O);return"function"===typeof o?o(t):o}})},z=e=>(0,_.jsx)(R,(0,n.A)({},D(e))),F=()=>{const e=T();return o=>e(D(o))};var I=t(73025);const K=["modalProps"],H=e=>{const o=F();return e.api?(0,_.jsx)(I.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:o})):(0,_.jsx)(i.Button,(0,n.A)((0,n.A)({},e),{},{onClick:()=>{o(e.modalProps)}}))},q=e=>{const o=T();if(!e.api){const{modalProps:t}=e,s=(0,l.A)(e,K);return(0,_.jsx)(i.Button,(0,n.A)((0,n.A)({},s),{},{onClick:()=>{o(t)}}))}return(0,_.jsx)(I.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:o}))}},17342:(e,o,t)=>{t.d(o,{A:()=>s});var n=t(34581),l=t.n(n);t(46733);const s=l()},46733:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=3771.c34bfb11.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3856],{3382:(e,t,n)=>{n.r(t),n.d(t,{ModalButton:()=>W,TabsModal:()=>R,TabsModalButton:()=>V,default:()=>I,useConfirmModal:()=>P,useModal:()=>L,useTabsModal:()=>D});var a=n(89379),l=n(53986),s=n(73884),r=n(55199),o=n(83136),i=n.n(o);const c={modal:"style_modal__Pm3cF__j+s1S",large:"style_large__iaqVE__j+s1S","modal-body-inner":"style_modal-body-inner__4PhpA__j+s1S","modal-title":"style_modal-title__dswaw__j+s1S","modal-outer":"style_modal-outer__r3SkX__j+s1S","modal-body":"style_modal-body__jQJSI__j+s1S","right-options-modal":"style_right-options-modal__FajDP__j+s1S","right-options-row":"style_right-options-row__-mPb9__j+s1S","right-options-col":"style_right-options-col__3ilee__j+s1S","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__j+s1S",content:"style_content__k6MIF__j+s1S","modal-footer":"style_modal-footer__-prbN__j+s1S","modal-close":"style_modal-close__Oa5Kl__j+s1S","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__j+s1S","is-danger":"style_is-danger__H5110__j+s1S",title:"style_title__orTym__j+s1S","has-title":"style_has-title__qy0Wp__j+s1S"},d=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var u=n(47458),p=n(64671);const m=(e,t)=>"function"===typeof e?e(t):e;var h=n(81014),_=n(17342),g=n(70579);const f=["ButtonComponent","onClick","autoClose","display"],x=["children","rightOptions","rightSpan","footer","footerButtons","className","size","title","onClose","onConfirm","confirmText","onCancel","cancelText","closable","disabledScroller","withDecorator","childrenRef"],j=["size"],A=["children"],y=["type","icon","title","danger","wrapClassName","message","iconSetting","confirmType"],v="Modal",S=e=>{let{options:t,rightSpan:n=6,children:a}=e;return t?(0,g.jsxs)(r.Row,{wrap:!1,className:c["right-options-row"],children:[(0,g.jsx)(r.Col,{span:24-n,className:c["right-options-col"],children:a}),(0,g.jsx)(r.Col,{span:n,className:c["right-options-col"],children:t})]}):a},C=(e,t)=>"".concat(e-48-(t?58:0),"px"),b=e=>{let{footer:t,footerButtons:n,onConfirm:o,onCancel:i,cancelText:c,onClose:p,targetProps:m}=e;return(0,g.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,g.jsx)(r.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,g.jsx)(r.Col,{children:(0,g.jsx)(r.Space,{children:(n||[{children:c||(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:v,children:(0,g.jsx)(u.FormattedMessage,{id:"Cancel",moduleName:v})}),onClick:i},{type:"primary",children:(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:v,children:(0,g.jsx)(u.FormattedMessage,{id:"Confirm",moduleName:v})}),onClick:o}]).filter(e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display)).map((e,t)=>{let{ButtonComponent:n,onClick:r,autoClose:o=!0,display:i}=e,c=(0,l.A)(e,f);const d=n||h.default;return(0,s.createElement)(d,(0,a.A)((0,a.A)({},c),{},{key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=await Promise.resolve(r&&r(...t,m));return o&&!1!==a&&p&&p(),a}}))})})})]})},N=e=>{let{title:t,footer:n,disabledScroller:a,footerButtons:l,onClose:o,closable:d,onConfirm:u,onCancel:m,children:h,targetProps:f,cancelText:x,confirmText:j}=e;const A=(0,s.useRef)(null);return(0,g.jsxs)("div",{className:i()(c["modal-outer"],"modal-container"),"data-testid":"components-core-modal",children:[!1===d?null:(0,g.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:i()(c["modal-close"],"modal-close"),type:"text",icon:(0,g.jsx)(p.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),o&&o()}}),t&&(0,g.jsx)("div",{className:c["modal-title"],children:t}),(0,g.jsx)(_.A,{className:i()(c["modal-body"],{[c["is-disabled-scroller"]]:a},"modal-body"),ref:A,children:(0,g.jsx)("div",{className:i()(c["modal-body-inner"],"modal-body-inner"),children:h})}),null!==n||l?(0,g.jsx)("div",{className:i()(c["modal-footer"],"modal-footer"),children:(0,g.jsx)(b,{footer:n,footerButtons:l,onConfirm:u,confirmText:j,onCancel:m,cancelText:x,onClose:o,targetProps:f})}):null]})},w=e=>{let{withDecorator:t,footerButtons:n,title:l,closable:s,onClose:r,onConfirm:o,confirmText:i,onCancel:c,cancelText:d,footer:u,rightOptions:p,rightSpan:h,disabledScroller:_,childrenRef:f,children:x}=e;const j=e=>(e=Object.assign({},{title:l},e),(0,g.jsx)(N,{title:m(e.title,(0,a.A)((0,a.A)({},e),{},{childrenRef:f,close:r})),closable:s,onClose:r,onConfirm:o,confirmText:i,onCancel:c,cancelText:d,footerButtons:m(n,(0,a.A)((0,a.A)({},e),{},{close:r})),disabledScroller:_,footer:m(u,(0,a.A)((0,a.A)({},e),{},{childrenRef:f,close:r})),targetProps:Object.assign({},e,{childrenRef:f,close:r}),children:(0,g.jsx)(S,{rightSpan:h,options:m(p,(0,a.A)((0,a.A)({},e),{},{childrenRef:f,close:r})),children:m(x,(0,a.A)((0,a.A)({},e),{},{childrenRef:f,close:r}))})}));return"function"===typeof t?t(j,{childrenRef:f,close:r}):j({})},O=e=>{let{children:t,rightOptions:n,rightSpan:s,footer:r,footerButtons:o,className:p,size:m,title:h,onClose:_,onConfirm:f,confirmText:j,onCancel:A,cancelText:y,closable:v,disabledScroller:S,withDecorator:b,childrenRef:N}=e,O=(0,l.A)(e,x);return(0,a.A)((0,a.A)((0,a.A)({},O),{},{icon:null,centered:!0,title:null,maskClosable:!!O.hasOwnProperty("maskClosable")&&O.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:_,className:i()(p,c.modal,c[m],{[c["right-options-modal"]]:n})},((e,t)=>"large"===e?{width:"".concat(Math.min(window.innerWidth-64,1500),"px"),style:{"--min-modal-height":C(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":C(300,t)}}:{width:"1000px",style:{"--min-modal-height":C(500,t)}})(m,!(null===r&&!o))),{},{children:(0,g.jsx)(u.IntlProvider,{importMessages:d,moduleName:"Modal",children:w({withDecorator:b,title:h,closable:v,onClose:_,onConfirm:f,confirmText:j,onCancel:A,cancelText:y,footer:r,footerButtons:o,rightOptions:n,rightSpan:s,disabledScroller:S,children:t,childrenRef:N})})})},L=()=>{const{modal:e}=r.App.useApp(),t=(0,s.useRef)(null);return n=>{const s={},r=O((0,a.A)({onClose:()=>s.close(),childrenRef:t},n)),{children:o}=r,i=(0,l.A)(r,A),{destroy:c}=e.info((0,a.A)((0,a.A)({},i),{},{content:o}));return s.close=c,s}},P=()=>{const{modal:e}=r.App.useApp();return t=>{const n={},s=(0,a.A)({onClose:()=>n.close(),maskClosable:!1},t),{type:o,icon:d,title:u,danger:m,wrapClassName:h,message:_,iconSetting:f={},confirmType:x="info"}=s,j=(0,l.A)(s,y),A=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},f);if(e[o]){const{destroy:t}=e[o]((0,a.A)((0,a.A)({},j),{},{icon:null,wrapClassName:i()(c["confirm-modal-wrap"],h,{[c["is-danger"]]:m}),title:(0,g.jsx)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:u&&(0,g.jsxs)(r.Space,{size:0,align:"start",className:c.title,children:[m?(0,g.jsx)(p.default,{className:i()("title-icon","title-icon-".concat("confirm"===o?x:o)),type:d||A["confirm"===o?x:o]}):null,u]})}),content:(0,g.jsxs)(r.Space,{size:0,align:"start",className:i()(c.content,{[c["has-title"]]:u}),children:[!u&&m?(0,g.jsx)(p.default,{className:i()("title-icon","title-icon-".concat("confirm"===o?x:o)),type:d||A["confirm"===o?x:o]}):null,_]})}));n.close=t}return n}},I=e=>{let{size:t="default"}=e,n=(0,l.A)(e,j);const o=(0,s.useRef)(null);return(0,g.jsx)(r.Modal,(0,a.A)({},O(Object.assign({},n,{size:t,childrenRef:o}))))},k=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],F=["withDecorator"],T=["children"],M=e=>{let{items:t,className:n,activeKey:s,withDecorator:o,defaultActiveKey:c,onChange:d}=e,u=(0,l.A)(e,k);return(0,a.A)((0,a.A)({},u),{},{className:i()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,g.jsx)(r.Tabs,{items:t.map(t=>{let{withDecorator:a}=t,s=(0,l.A)(t,F);return Object.assign({},s,{children:"function"===typeof a?a(t=>e(Object.assign({},n,t,{children:s.children}))):e(Object.assign({},n,{children:s.children}))})}),destroyInactiveTabPane:!0,activeKey:s,defaultActiveKey:c,onChange:d});return"function"===typeof o?o(n):n()},children:e=>{let{children:t}=e,n=(0,l.A)(e,T);return"function"===typeof t?t(n):t}})},R=e=>(0,g.jsx)(I,(0,a.A)({},M(e))),D=()=>{const e=L();return t=>e(M(t))};var E=n(73025);const z=["modalProps"],V=e=>{const t=D();return e.api?(0,g.jsx)(E.A,(0,a.A)((0,a.A)({},e),{},{modalFunc:t})):(0,g.jsx)(r.Button,(0,a.A)((0,a.A)({},e),{},{onClick:()=>{t(e.modalProps)}}))},W=e=>{const t=L();if(!e.api){const{modalProps:n}=e,s=(0,l.A)(e,z);return(0,g.jsx)(r.Button,(0,a.A)((0,a.A)({},s),{},{onClick:()=>{t(n)}}))}return(0,g.jsx)(E.A,(0,a.A)((0,a.A)({},e),{},{modalFunc:t}))}},12392:(e,t,n)=>{n.d(t,{Bm:()=>U,Eo:()=>K,NR:()=>w,Ay:()=>q});var a=n(55199),l=n(83136),s=n.n(l),r=n(89379),o=n(53986),i=n(30509),c=n(25438),d=n(78784),u=n(33097),p=n.n(u),m=n(34677),h=n.n(m);const _="create-list_scroll-loader__zoaS7__j+s1S",g="create-list_is-popup__t3d-G__j+s1S",f="create-list_is-not-full__FXtX1__j+s1S",x="create-list_search-input__tV3vf__j+s1S",j="create-list_left__EXr3i__j+s1S",A="create-list_list-header__3xeJa__j+s1S",y="create-list_is-modal__BMfya__j+s1S";var v=n(73161),S=n(47458),C=n(70579);const b=["extra"],N=i.A.useContext,w=e=>{let{renderList:t,defaultProps:n}=e;const l=e=>{let{value:n,setValue:l}=e;const{fetchApi:r,searchText:o,setSearchText:i,props:u,mapping:m}=N(),b=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},u.pagination),w=p()(r.requestParams,[b.paramsType,b.current],1),O=p()(r.requestParams,[b.paramsType,b.pageSizeName])||b.pageSize,{formatMessage:L}=(0,S.useIntl)({moduleName:"Common"}),P=u.dataFormat(r.data),{right:I,leftBottom:k,leftSpan:F=24}=u,T=1===n.length&&"all"===n[0];return(0,C.jsxs)(a.Row,{wrap:!1,className:I?s()("is-not-full",f):"",children:[(0,C.jsxs)(a.Col,{span:F,className:s()(j,"advance-select-left"),children:[u.getSearchProps?(0,C.jsx)(v.A,{isPopup:u.isPopup,className:s()(x,c.A["search-input"],{[c.A["is-popup"]]:u.isPopup}),placeholder:u.searchPlaceholder||L({id:"search"}),value:o,onSearch:e=>{r.reload(u.getSearchProps(e)),i(e)}}):null,u.single||!u.showSelectedCount&&!u.allowSelectAll?null:(0,C.jsxs)(a.Flex,{className:s()(A,{[y]:!u.isPopup}),justify:"space-between",children:[u.showSelectedCount?(0,C.jsxs)(a.Space,{children:[(0,C.jsx)(a.Typography,{children:"\u5df2\u9009:"}),(0,C.jsx)(a.Typography.Link,{children:T?u.allLabel||(0,C.jsx)(S.FormattedMessage,{id:"all",moduleName:"Common"}):"".concat(n.length).concat(u.countUnit||L({id:"items"}))})]}):(0,C.jsx)("div",{}),u.allowSelectAll?(0,C.jsx)("div",{children:(0,C.jsx)(a.Checkbox,{checked:T,onChange:e=>{l(e.target.checked?[u.allValue||"all"]:[])},children:(0,C.jsx)(S.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:u.allLabel||(0,C.jsx)(S.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,C.jsx)("div",{})]}),(0,C.jsx)(d.default,{completeTips:"",isLoading:!r.isComplete,className:s()(_,{[g]:u.isPopup}),noMore:!P.total||w*O>=P.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(h()({[b.paramsType]:{[b.pageSizeName]:O,[b.current]:w+1}},u.getSearchProps&&u.getSearchProps(o)),u.mergeList)},children:(()=>{const e={props:u,value:n,setValue:l,list:P.list,data:r.data,fetchApi:r,itemIsSelected:e=>n.indexOf(e.value)>-1,isSelectedAll:T,onSelect:e=>{if(u.single)return void l([e.value]);const t=n.slice(0),a=t.indexOf(e.value);a>-1?t.splice(a,1):t.push(e.value),l(t)}},a=t(e);return"function"===typeof u.dropdownRender?u.dropdownRender(Object.assign({},e,{children:a})):a})()}),k&&k({fetchApi:r,value:n,mapping:m})]}),I&&I({value:n,mapping:m,fetchApi:r})]})},u=e=>{let{extra:t}=e,n=(0,o.A)(e,b);return(0,C.jsx)(i.A,(0,r.A)((0,r.A)({},n),{},{extra:t,children:e=>{let{value:t,setValue:n}=e;return(0,C.jsx)(l,{value:t,setValue:n})}}))};return u.defaultProps=Object.assign({},{isPopup:!0,pagination:{},mergeList:(e,t)=>Object.assign({},t,{pageData:e.pageData.concat(t.pageData)}),dataFormat:e=>({list:e.pageData,total:e.totalCount})},n),u},O="list_list__TGynD__j+s1S",L="list_list-item__WSswf__j+s1S",P="list_is-selected__6Wkgt__j+s1S",I="list_item-label__bYzhe__j+s1S",k="list_item-des__2nsEn__j+s1S",F="list_is-disabled__qxCvO__j+s1S",T="list_is-selected-all__Mp-hG__j+s1S";var M=n(40438),R=n(64671);const D="user_list-inner__V508e__j+s1S",E="user_list-info__y2nWo__j+s1S",z="user_selected-icon__9OQJL__j+s1S",V="user_item-des__o+7UR__j+s1S",W="user_is-selected-all__2q0VZ__j+s1S",K=w({renderList:e=>{let{list:t,onSelect:n,itemIsSelected:l,isSelectedAll:o}=e;return(0,C.jsx)(a.List,{size:"small",className:s()(O,{[T]:o,[W]:o}),dataSource:t,renderItem:e=>{const t=l(e);return(0,C.jsx)(a.List.Item,{className:s()(L,{[P]:t}),onClick:()=>n(e),children:(0,C.jsxs)(a.Row,{wrap:!1,align:"middle",className:D,children:[(0,C.jsx)(a.Col,{children:(0,C.jsx)(M.default.Avatar,(0,r.A)((0,r.A)({},Object.assign({},e.avatar)),{},{size:40,gender:"M"}))}),(0,C.jsx)(a.Col,{className:E,flex:1,children:(0,C.jsxs)(a.Space,{direction:"vertical",children:[(0,C.jsx)("span",{className:I,children:e.label}),e.description&&(0,C.jsx)("span",{className:V,children:e.description})]})}),(0,C.jsx)(a.Col,{children:o||t?(0,C.jsx)(R.default,{className:z,type:"icon-gouxuan"}):null})]})})}})}}),B={"is-selected-all":"table_is-selected-all__IwXUY__j+s1S"},U=w({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:n,onSelect:l,value:r,setValue:o,itemIsSelected:i,isSelectedAll:c}=e;return(0,C.jsx)(a.Table,{className:s()(B.list,O,{[T]:c,[B["is-selected-all"]]:c}),size:"small",dataSource:n,columns:t.columns,rowClassName:e=>s()({"ant-table-row-selected":i(e)}),rowKey:t.rowKey||"value",pagination:!1,rowSelection:t.single?null:c?{selectedRowKeys:n.map(e=>{let{value:t}=e;return t}),getCheckboxProps:()=>({disabled:!0})}:{selectedRowKeys:r,onChange:e=>{o(e)}},sticky:!0,onRow:e=>({onClick:()=>l(e)})})}}),q=w({renderList:e=>{let{props:t,list:n,itemIsSelected:l,isSelectedAll:r,onSelect:o}=e;const{listClassName:i="",selectIcon:c=null}=t||{};return(0,C.jsx)(a.List,{className:s()(O,i,{[T]:r}),size:"small",dataSource:n,renderItem:e=>{var n;const i=l(e);return(0,C.jsxs)(a.List.Item,{className:s()(L,{[P]:t.single&&i,[F]:r||e.disabled}),onClick:()=>{e.disabled||o(e)},children:[(0,C.jsxs)(a.Row,{wrap:!1,children:[t.single?null:(0,C.jsx)(a.Col,{children:(0,C.jsx)(a.Checkbox,{checked:r||i,disabled:r||e.disabled})}),(0,C.jsx)(a.Col,{children:(0,C.jsxs)(a.Space,{className:null!==(n=null===e||void 0===e?void 0:e.className)&&void 0!==n?n:"",children:[(0,C.jsx)("span",{className:I,children:e.label}),e.description&&(0,C.jsx)("span",{className:k,children:e.description})]})})]}),i&&c]})}})}})},17342:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(34581),l=n.n(a);n(46733);const s=l()},17508:(e,t,n)=>{n.d(t,{AG:()=>A,Ay:()=>f,FI:()=>j,Zi:()=>x,lN:()=>s.useFileUpload});var a=n(89379),l=n(53986),s=n(99776),r=n(55199),o=n(83136),i=n.n(o),c=n(70579);const d=["className","multiple","accept","onChange","children"],u=["children"],p=["children"],m=["className","multiple","accept","onChange","children"],h=["children"],_=["className","multiple","accept","onChange","children"],g=["children"],f=e=>t=>{let{className:n,multiple:r,accept:o,onChange:i,children:p}=t,m=(0,l.A)(t,d);return(0,c.jsx)(s.FileInput,{className:n,multiple:r,accept:o,onChange:i,children:t=>{let{children:n}=t,s=(0,l.A)(t,u);return(0,c.jsxs)(e,(0,a.A)((0,a.A)({},Object.assign({},m,s)),{},{children:[p,n]}))}})},x=e=>{let{children:t}=e,n=(0,l.A)(e,p);return(0,c.jsx)(s.FileInput,(0,a.A)((0,a.A)({},n),{},{buttonText:t}))},j=e=>{let{className:t,multiple:n,accept:o,onChange:i,children:d}=e,u=(0,l.A)(e,m);return(0,c.jsx)(s.FileInput,{className:t,multiple:n,accept:o,onChange:i,children:e=>{let{children:t}=e,n=(0,l.A)(e,h);return(0,c.jsxs)(r.Typography.Link,(0,a.A)((0,a.A)({},Object.assign({},u,n)),{},{children:[d,t]}))}})},A=e=>{let{className:t,multiple:n,accept:o,onChange:d,children:u}=e,p=(0,l.A)(e,_);return(0,c.jsx)(s.FileInput,{className:i()(t,"ant-btn"),multiple:n,accept:o,onChange:d,children:e=>{let{children:t}=e,n=(0,l.A)(e,g);return(0,c.jsxs)(r.Typography.Text,(0,a.A)((0,a.A)({},Object.assign({},p,n)),{},{children:[u,t]}))}})}},18411:(e,t,n)=>{n.d(t,{A:()=>a});n(73884);const a=n.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},20492:(e,t,n)=>{n.d(t,{A:()=>a});const a=e=>({"en-US":()=>n.e(3086).then(n.bind(n,13086)),"zh-CN":()=>n.e(4308).then(n.bind(n,84308))}[e]())},21485:(e,t,n)=>{n.d(t,{A:()=>p});var a=n(89379),l=n(53986),s=n(73884),r=n(71298),o=n.n(r),i=n(96418),c=n.n(i),d=n(70579);const u=["children","onScroll","options","onReady"],p=(0,s.forwardRef)((e,t)=>{let{children:n,onScroll:r,options:i,onReady:p}=e,m=(0,l.A)(e,u);const h=(0,s.useRef)(null),_=(0,s.useRef)(null),g=(0,s.useRef)(i),f=c()(p),x=c()(r);return(0,s.useImperativeHandle)(t,()=>_.current),(0,s.useEffect)(()=>{const e=new(o())(h.current,g.current);return _.current=e.getScrollElement(),_.current.addEventListener("scroll",x),f(_.current),()=>{_.current.removeEventListener("scroll",x)}},[x,f,n]),(0,d.jsx)("div",(0,a.A)((0,a.A)({},m),{},{ref:h,children:n}))})},25438:(e,t,n)=>{n.d(t,{A:()=>a});const a={"search-input":"common_search-input__P6qLg__j+s1S","is-popup":"common_is-popup__fJq+g__j+s1S",list:"common_list__TKFzS__j+s1S","list-item":"common_list-item__ASse7__j+s1S","is-selected":"common_is-selected__-PU4Y__j+s1S","item-label":"common_item-label__u+qz1__j+s1S","item-des":"common_item-des__no2z0__j+s1S"}},27047:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(83694),l=n(33097),s=n.n(l);const r=()=>{const e=(0,a.useGlobalContext)();return s()(e,"preset",{apis:{}})}},30509:(e,t,n)=>{n.d(t,{A:()=>X});var a=n(89379),l=n(53986);const s={"ant-tag":"style_ant-tag__nNp8-__j+s1S",overlay:"style_overlay__La5mO__j+s1S",input:"style_input__SpJTE__j+s1S","is-disabled":"style_is-disabled__joxdl__j+s1S","input-icon":"style_input-icon__vVd8R__j+s1S",large:"style_large__En6mL__j+s1S",small:"style_small__DY0AQ__j+s1S","input-inner":"style_input-inner__PWy27__j+s1S","input-custom":"style_input-custom__ktsWD__j+s1S","display-content":"style_display-content__hIKo+__j+s1S","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__j+s1S","selected-tag":"style_selected-tag__zXZZO__j+s1S","selected-tag-list":"style_selected-tag-list__xUIms__j+s1S","selected-tag-inner":"style_selected-tag-inner__Z5gPL__j+s1S","text-inner":"style_text-inner__H24hY__j+s1S",placeholder:"style_placeholder__x0ccE__j+s1S","is-modal":"style_is-modal__JU+uq__j+s1S","overlay-content":"style_overlay-content__WKqp+__j+s1S"};var r=n(74981);const{context:o,useContext:i,Provider:c,Consumer:d}=(0,r.A)();var u=n(73884),p=n(10986),m=n.n(p),h=n(87558),_=n(33097),g=n.n(_),f=n(55199),x=n(83136),j=n.n(x),A=n(3382),y=n(64671),v=n(79686),S=n.n(v),C=n(41740),b=n.n(C),N=n(74065),w=n.n(N),O=n(21485),L=n(96418),P=n.n(L),I=n(77964),k=n(91176),F=n(47458),T=n(20492),M=n(27047),R=n(70579);const D=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],E=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName","overlayClassName","disabled"],z=["setFetchApi","wrapClassName","getContentRef"],V=["api","className","displayItems","wrapClassName"],W=e=>{let{maxLength:t,single:n,setValue:a,value:l,message:s}=e;return e=>a(!n&&Number.isInteger(t)&&t>0&&e.length>t?(s(),l):e)},K=e=>{let{single:t,value:n,mapping:a,allValue:l,allLabel:r,onClose:o}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,R.jsx)("span",{className:s["text-inner"],children:g()(a.get(n[0]),"label")||n[0]}):1===n.length&&n[0]===(l||"all")?(0,R.jsx)("span",{className:s["text-inner"],children:r||(0,R.jsx)(F.FormattedMessage,{id:"all",moduleName:"Common"})}):n.map(e=>{const t=a.get(e);return(0,R.jsx)(f.Tag,{className:s["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),o(e,t)},children:(0,R.jsx)("span",{className:s["tag-inner"],children:g()(t,"label")||e})},e)}):null},B=(0,u.forwardRef)((e,t)=>{let{value:n,onChange:r,extra:o,showSelectedTag:i,renderSelectedContent:c,children:d}=e,p=(0,l.A)(e,D);const[m,h]=(0,u.useState)(n),_=(0,u.useRef)(n),{formatMessage:g}=(0,F.useIntl)({moduleName:"Common"});_.current=n;const[x,j]=(0,u.useState)(!1),y=e=>{var t;j(e),null===(t=p.onOpenChange)||void 0===t||t.call(p,e)},{message:v}=f.App.useApp(),S=W({maxLength:p.maxLength,single:p.single,setValue:h,value:m,message:()=>v.error(g({id:"maxSelectedCount"},{count:p.maxLength}))});return(0,u.useEffect)(()=>{x&&h(_.current)},[x]),(0,u.useImperativeHandle)(t,()=>({modalOpen:()=>{y(!0)},close:()=>{y(!1)}})),(0,R.jsx)(A.default,(0,a.A)((0,a.A)({},p),{},{open:x,onConfirm:()=>{r(m)},onClose:()=>{y(!1)},footer:(0,R.jsxs)(f.Space,{direction:"vertical",className:s["overlay-footer"],children:[o&&(0,R.jsx)("div",{className:s["overlay-footer-extra"],children:o}),i&&c({value:m,setValue:S})]}),children:"function"===typeof d?d({value:m,setValue:S}):d}))}),U=(0,u.forwardRef)((e,t)=>{let{value:n,setValue:r,children:o,renderSelectedContent:i,showSelectedTag:c,placement:d,inputContent:p,single:m,extra:h,overlayWidth:_,wrapClassName:g,overlayClassName:x,disabled:A}=e,y=(0,l.A)(e,E);const[v,S]=(0,u.useState)(!1),C=P()(e=>{var t;S(e),null===(t=y.onOpenChange)||void 0===t||t.call(y,e)});return(0,u.useImperativeHandle)(t,()=>({close:()=>{C(!1)}}),[C]),A?(0,R.jsx)("div",{className:s["input-inner"],children:p}):(0,R.jsx)(f.Popover,(0,a.A)((0,a.A)({},y),{},{open:v,onOpenChange:C,transitionName:"ant-slide-up",overlayClassName:j()(s.overlay,x),arrow:!1,content:(0,R.jsxs)("div",{style:_?{"--overlay-width":_}:{},className:j()(s["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,R.jsx)("div",{className:s["overlay-inner"],children:"function"===typeof o?o({value:n,setValue:e=>{(!m||n[0]!==e[0])&&r(e),m&&C(!1)}}):o}),(c||h)&&(0,R.jsxs)("div",{className:s["overlay-footer"],children:[h&&(0,R.jsx)("div",{className:s["overlay-footer-extra"],children:h}),c&&i({value:n,setValue:r})]})]}),trigger:"click",placement:d,children:(0,R.jsx)("div",{className:s["input-inner"],children:p})}))}),q=(0,h.withFetch)(e=>{let{setFetchApi:t,wrapClassName:n,getContentRef:a}=e,r=(0,l.A)(e,z);const[o,c]=(0,u.useState)(!1),d=(0,u.useRef)(null),p=(0,u.useRef)(null),m=i(),{valueState:h,mapping:_,props:g,inputWidth:x}=m,[A,v]=h,{formatMessage:S}=(0,F.useIntl)({moduleName:"Common"}),{single:C,placement:b,getPopupContainer:N,placeholder:w,isPopup:L,disabled:I,showSelectedTag:T,extra:M,inputContent:D,allowClear:E,overlayClassName:V}=g,W=(0,u.useRef)(r);W.current=r;const q=P()(a);(0,u.useEffect)(()=>{q(L?p:d)},[L,q]),(0,u.useEffect)(()=>{t(Object.assign({},W.current,{data:r.data,isComplete:r.isComplete}))},[r.data,t,r.isComplete]);const Q=K({single:C,value:A,mapping:_,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{v(t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n})}}),H=e=>{let{value:t,setValue:n}=e;return(0,R.jsxs)(f.Space,{className:s["selected-tag"],align:"center",wrap:!1,children:[(0,R.jsxs)("div",{children:[(0,R.jsx)(F.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?"(".concat(t.length,"/").concat(g.maxLength,")"):"",":"]}),(0,R.jsx)(O.A,{className:s["selected-tag-list"],children:(0,R.jsx)("div",{className:s["selected-tag-inner"],children:K({value:t,mapping:_,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{n(t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n})}})})})]})},X=D?D(m):(0,R.jsxs)(f.Space,{className:s["display-content"],onMouseOver:()=>{c(!0)},onMouseOut:()=>{c(!1)},children:[(0,R.jsx)("div",{children:Q||(0,R.jsx)("span",{className:s.placeholder,children:w||S({id:"pleaseSelect"})})}),o&&A&&A.length>0&&!I&&E?(0,R.jsx)(y.default,{className:j()(s.close,s["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),v([])}}):(0,R.jsx)(y.default,{className:j()(s["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return L?(0,R.jsx)(U,{ref:p,overlayWidth:(0,k.v)(Math.max(x,(0,k.j)(g.overlayWidth))),value:A,setValue:v,single:C,disabled:I,inputContent:X,onOpenChange:g.onOpenChange,overlayClassName:V,extra:"function"===typeof M?M({close:()=>p.current.close(),context:m}):M,renderSelectedContent:H,showSelectedTag:T,trigger:"click",placement:b,getPopupContainer:N,children:g.children}):(0,R.jsxs)("div",{className:s["input-inner"],onClick:()=>{I||d.current.modalOpen()},children:[(0,R.jsx)(B,{size:g.modalSize,ref:d,single:g.single,maxLength:g.maxLength,onOpenChange:g.onOpenChange,disabledScroller:!0,wrapClassName:j()(s.overlay,s["is-modal"],n),title:g.placeholder||S({id:"pleaseSelect"}),value:A,onChange:v,extra:"function"===typeof M?M({close:()=>d.current.close(),context:m}):M,showSelectedTag:T,renderSelectedContent:H,children:g.children}),X]})}),Q=e=>{let{api:t,className:n,displayItems:r,wrapClassName:o}=e,i=(0,l.A)(e,V);const{locale:d}=(0,M.A)(),[p,h]=(0,u.useState)(""),[_,x]=(0,u.useState)(new Map(r.map(e=>[e.value,e]))),{formatMessage:A}=(0,F.useIntl)({moduleName:"Common"}),[y,v]=(0,u.useState)(0),C=(0,I.A)(e=>{v(e.clientWidth)}),[N,O]=(0,u.useState)({}),{message:L}=f.App.useApp(),P=e=>{const t=e.filter(e=>_.get(e.value)!==e);0!==t.length&&x(e=>{const n=b()(e);return t.forEach(e=>{n.set(e.value,e)}),n})},k=e=>((e,t)=>Array.isArray(e)&&e.every(e=>e&&e.hasOwnProperty("value")&&e.hasOwnProperty("label"))?(t(e),e.map(e=>e.value)):e)(i.single?S()(e)?[]:[e]:e||[],P,i.valueType),[T,D]=m()(Object.assign({},i,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map(e=>t.get(e)).filter(e=>!!e))(e,_,i.valueType);i.onChange&&i.onChange(i.single?w()(t):t)}},"value"in i?{value:k(i.value)}:{defaultValue:k(i.defaultValue)})),E=W({maxLength:i.maxLength,single:i.single,setValue:D,value:T,message:()=>L.error(A({id:"maxSelectedCount"},{count:i.maxLength}))}),z=(0,u.useRef)(null);return(0,R.jsx)(c,{value:{inputWidth:y,mapping:_,searchText:p,setSearchText:h,appendMapping:P,setItems:e=>{N.setData(e),P(g()(i.dataFormat(e,{locale:d}),"list",[]))},getContentApi:()=>z.current,fetchApi:N,valueState:[T,E],props:i},children:(0,R.jsx)("div",{ref:C,className:j()(s["input".concat(i.inputContent&&"function"===typeof i.inputContent?"-custom":"")],{"select-input-disabled":!!i.disabled},n),children:(0,R.jsx)(q,(0,a.A)((0,a.A)({},t),{},{wrapClassName:o,loading:null,setFetchApi:O,getContentRef:e=>{e.current&&(z.current=e.current)},onRequestSuccess:e=>{P(g()(i.dataFormat(e,{locale:d}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};Q.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const H=(0,F.createWithIntl)({importMessages:T.A,moduleName:"Common"})(Q);H.useContext=i;const X=H},40438:(e,t,n)=>{n.r(t),n.d(t,{default:()=>w});var a=n(89379),l=n(53986),s=n(87558),r=n.n(s),o=n(97211),i=n(64671),c=n(83136),d=n.n(c),u=n(55199),p=n(73884);const m=e=>{let{params:t}=e;const{data:n}=t;return new Promise((e,t)=>{const a=new window.Image;a.src=n,a.addEventListener("load",()=>{e(n)}),a.addEventListener("error",e=>{t(e)})})},h="style_img-outer__4QLY5__j+s1S",_="style_img__PSExq__j+s1S",g="style_loading__WCOwA__j+s1S",f="style_error__+ECgZ__j+s1S";var x=n(18411),j=n(63743),A=n(70579);const y=["id","src","alt","onClick","loading","error","className","apis"],v=["id","src","alt","gender","loading","error","className","gap","icon","children","shape","size","width","height","defaultAvatar","apis"],S=e=>{let{data:t,className:n,alt:a,innerLoading:l,loading:s=(0,A.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:o=(0,A.jsx)(i.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),innerError:c,children:p,onClick:h,staticUrl:g}=e;const{staticUrl:f}=(0,j.usePreset)(),x=g||f||"";return(0,A.jsx)(r(),{loader:m,params:{data:/^https?:\/\//.test(t)?t:x+t},error:c||o,loading:l||s,render:e=>{let{data:t}=e;return"function"===typeof p?p({alt:a,className:d()(n,_),src:t}):(0,A.jsx)("img",{alt:a,className:d()(n,_),src:t,onClick:h})}})},C=(0,o.A)(S),b=e=>{let{loading:t,error:n,src:a,id:l,alt:s,className:r,children:o,apis:i,onClick:c}=e;const d=t&&(0,p.cloneElement)(t,{className:g}),u=n&&(0,p.cloneElement)(n,{className:f});return a?(0,A.jsx)(S,{alt:s,className:r,data:a,loading:d,error:u,onClick:c,children:o}):l?(0,A.jsx)(C,{alt:s,className:r,id:l,loading:d,innerLoading:d,error:u,innerError:u,apis:i,onClick:c,children:o}):u},N=e=>{let{id:t,src:n,alt:s,onClick:r,loading:o=(0,A.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:c=(0,A.jsx)(i.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:p,apis:m}=e,_=(0,l.A)(e,y);return(0,A.jsx)("div",(0,a.A)((0,a.A)({},_),{},{"data-testid":"components-core-image",className:d()(p,h),children:b({loading:o,error:c,src:n,id:t,alt:s,className:p,apis:m,onClick:r})}))};N.Avatar=e=>{let{id:t,src:n,alt:s,gender:r,loading:o=(0,A.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0}),error:c=(0,A.jsx)(i.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),className:p,gap:m,icon:_,children:g,shape:f,size:j=100,width:y,height:S,defaultAvatar:C=x.A,apis:N}=e,w=(0,l.A)(e,v);const O=(()=>{const e=y&&S?{style:{width:y,height:S}}:{size:j};if(y&&y!==S&&(f="square"),t||n)return b({loading:o,error:c,src:n,defaultAvatar:C,id:t,alt:s,className:p,apis:N,children:t=>(0,A.jsx)(u.Avatar,(0,a.A)((0,a.A)({},t),{},{gap:m,shape:f},e))});if(r){const t=r&&["F","female","f"].indexOf(r)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,A.jsx)(u.Avatar,(0,a.A)((0,a.A)({},w),{},{src:(0,A.jsx)(i.default,{role:"touxiang",colorful:!0,type:t}),gap:m,shape:f},e))}return(0,A.jsx)(u.Avatar,(0,a.A)((0,a.A)((0,a.A)({},w),{},{gap:m,icon:_,shape:f,size:j,src:C},e),{},{children:g}))})();return(0,A.jsx)("div",(0,a.A)((0,a.A)({},w),{},{"data-testid":"components-core-image-avatar",className:d()(p,h),style:{width:y&&S?y:j,height:y&&S?S:j},children:O}))};const w=N},41654:(e,t,n)=>{n.d(t,{A:()=>f,K:()=>g});var a=n(89379),l=n(53986),s=n(45776),r=n(27047),o=n(33097),i=n.n(o),c=n(70579);const d=["apis"],u=["apis"],p=(e,t)=>"en-US"===t?i()(e,"enName"):i()(e,"chName"),m=()=>n.e(719).then(n.t.bind(n,10719,19)).then(e=>e.__esModule?e.default:e),h={cache:"FUNCTION_DATA",isLocal:!0,ttl:864e5,loader:m},_=e=>{let{apis:t}=e,n=(0,l.A)(e,d);const{apis:o,locale:i}=(0,r.A)(),u=Object.assign({},{functionData:h},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.Ay,(0,a.A)((0,a.A)({},n),{},{api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,s.ON)(new Map(t.map(e=>[e.code,(0,a.A)((0,a.A)({},e),{},{id:e.code,label:p(e,i),parentId:e.parentCode||null})])));return n}},u.functionData)}))};_.defaultProps={overlayWidth:"640px",getSearchProps:e=>({data:{searchText:e}})},_.defaultData=m;const g=e=>{let{apis:t}=e,n=(0,l.A)(e,u);const{apis:o,locale:i}=(0,r.A)(),d=Object.assign({},{functionData:h},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.yK,(0,a.A)((0,a.A)((0,a.A)({},n),d.functionData),{},{type:"function",getLabel:e=>p(e,i),transformData:e=>{let{data:t}=e;return t}}))};_.FunctionEnum=_.Enum=g;const f=_},43856:(e,t,n)=>{n.r(t),n.d(t,{AddressEnum:()=>m.qn,AddressInputField:()=>m.TM,AddressSelectField:()=>m.Ay,AdvancedSelectField:()=>h.Ay,CascaderField:()=>g.Ay,FetchButton:()=>i.A,FetchScrollLoader:()=>o.FetchScrollLoader,FunctionEnum:()=>f.K,FunctionSelectField:()=>f.A,IndustryEnum:()=>x.W,IndustrySelectField:()=>x.A,InputFileButton:()=>p.Zi,InputFileLink:()=>p.FI,InputFileText:()=>p.AG,ScrollLoader:()=>o.default,SearchInput:()=>d.A,SelectInnerInput:()=>u.A,SimpleBar:()=>c.A,SuperSelectField:()=>_.Ay,SuperSelectTableListField:()=>_.e0,SuperSelectTreeField:()=>_.ec,SuperSelectUserField:()=>_.$9,TableField:()=>h.Bm,TypeDateRangePickerField:()=>j.A,UserField:()=>h.Eo,accept:()=>y.A,changeMoneyToChinese:()=>a.A,createAddressApi:()=>m.LH,createDeferred:()=>S(),createListField:()=>h.NR,createTreeUtils:()=>g.ON,getContainerBody:()=>l.c,getPopupContainer:()=>s,getScrollEl:()=>l.h,isNotEmpty:()=>C.A,numberToPx:()=>b.v,pxToNumber:()=>b.j,useFileUpload:()=>p.lN,useResize:()=>A.A,withAddressApi:()=>m.DF,withInputFile:()=>p.Ay,withOSSFile:()=>r.A});var a=n(69484),l=n(76801);const s=e=>{const t=e=>{const n=(0,l.h)();if(!e||e===n||!e.parentElement)return n;return[].slice.call(e.classList,0).find(e=>["ant-modal-body","ant-modal-content","ant-popover-content"].indexOf(e)>-1)?e:t(e.parentElement)};return t(e)};var r=n(97211),o=n(78784),i=n(73025),c=n(17342),d=n(73161),u=n(30509),p=n(17508),m=n(93761),h=n(12392),_=n(60586),g=n(45776),f=n(41654),x=n(53392),j=n(89319),A=n(77964),y=n(81348),v=n(1582),S=n.n(v),C=n(55490),b=n(91176)},45776:(e,t,n)=>{n.d(t,{yK:()=>T,ON:()=>g,Ay:()=>V});var a=n(53986),l=n(89379),s=n(30509),r=n(73884),o=n(96418),i=n.n(o),c=n(55199),d=n(64671),u=n(73161),p=n(33097),m=n.n(p),h=n(79686),_=n.n(h);const g=e=>{const t=Array.from(e.values()),n=t.filter(e=>null===e.parentId),a=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l=t=>{const n=[],a=t=>{const l=e.get(t);l&&Array.isArray(l.children)&&l.children.length>0&&(n.push(...l.children),l.children.forEach(e=>{a(e.id)}))};return a(t),n},s=(t,n)=>{const a=t=>{const l=e.get(t);return l?n(l)?l:_()(l.parentId)?null:a(l.parentId):null};return a(t)},r=t=>{const a=e.get(t);if(!a)return[];const l=a.parentId;if(_()(l))return n;return e.get(l).children},o=(()=>{const e=n=>Array.isArray(n)&&n.length>0?n.map(n=>{const a=t.filter(e=>e.parentId===n.id);return Object.assign({},n,{children:e(a)})}):null;return e(n)})();return{mapping:e,getSelectedQueue:t=>{const n=e.get(t);if(!n)return[];const a=e=>{if(e.children&&e.children.length>0)return a(e.children.find(t=>t.children&&e.children.length>0)||m()(e.children,"0"));const t=l(e.parentId).find(e=>e.children&&e.children.length>0);return t?a(t):e},s=function(t){const n=[t,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]],a=e.get(t);return!a||_()(a.parentId)?n:s(a.parentId,n)},r=a(n);return s(m()(r,"id"))},getAllChildren:l,computedCheckboxStatus:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(s(t,e=>n.indexOf(e.id)>-1))return{checked:!0,indeterminate:!1};const a=(t=>{const a=t=>{const l=e.get(t);return l?(s=l,n.indexOf(s.id)>-1?l:Array.isArray(l.children)&&l.children.length>0?l.children.find(e=>!!a(e.id)):void 0):null;var s};return!!a(t)})(t);return a?{checked:!1,indeterminate:!0}:{checked:!1,indeterminate:!1}},getSiblingNode:r,findInParents:s,setNodeChecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),s=t=>{const o=e.get(t);if(!o)return;n.push(t),l(t).forEach(e=>{a(n,e.id)});const i=r(t),c=i.every(e=>n.indexOf(e.id)>-1);o.parentId&&c&&(i.forEach(e=>{a(n,e.id)}),s(o.parentId))};return s(t),n},setNodeUnchecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),l=t=>{const s=e.get(t);if(!s)return;if(n.indexOf(s.id)>-1)return void a(n,s.id);const o=r(t);s.parentId&&(o.forEach(e=>{t!==e.id&&n.push(e.id)}),l(s.parentId))};return l(t),n},treeData:o,treeMapping:new Map(o.map(e=>[e.id,e]))}};var f=n(74065),x=n.n(f),j=n(19853),A=n.n(j),y=n(17342),v=n(83136),S=n.n(v);const C={content:"style_content__Hxlt9__j+s1S",columns:"style_columns__FmtPF__j+s1S","content-item":"style_content-item__i6HCO__j+s1S","last-level-area":"style_last-level-area__2y7jQ__j+s1S","is-popup":"style_is-popup__+r3Mn__j+s1S",menu:"style_menu__WZUVE__j+s1S","scroll-plus-box":"style_scroll-plus-box__QcTst__j+s1S","menu-label":"style_menu-label__iGt0Z__j+s1S","menu-item":"style_menu-item__hXHfm__j+s1S","checkbox-hidden":"style_checkbox-hidden__Xpx7J__j+s1S",loading:"style_loading__ZwrVe__j+s1S"};var b=n(87558),N=n(47458),w=n(25438),O=n(70579),L=n(27047);const P=["data","name","type","cache","children","getLabel"],I=new Map,k=(0,b.withFetch)(e=>{let{data:t,name:n,type:s,cache:o,children:i,getLabel:c}=e,d=(0,a.A)(e,P);const u=(0,r.useMemo)(()=>new Map(t.map(e=>[e.code,(0,l.A)((0,l.A)({},e),{},{id:e.code,label:c?c(e):e.chName,parentId:e.parentCode||null})])),[t,c]).get(n);return I.set("".concat(n,"_").concat(s),u),i(u,d)}),F=e=>{const{locale:t}=(0,L.A)(),n="".concat(t,"_").concat(e.name,"_").concat(e.type),a=I.get(n);return a&&!e.force?e.children(a):(0,O.jsx)(k,(0,l.A)({},e))};F.defaultProps={children:e=>m()(e,"label","")};const T=F,M=["maxLength","nodeFormat","dataFormat"],R=s.A.useContext,D=(0,b.withFetch)(e=>{let{data:t,computedIsChecked:n,onSelect:a}=e;return(0,O.jsx)(y.A,{className:C["scroll-plus-box"],children:(0,O.jsx)(c.List,{className:w.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=n(e);return(0,O.jsx)(c.List.Item,{className:S()(w.A["list-item"],{[w.A["is-selected"]]:t}),onClick:()=>a(e,t),children:(0,O.jsx)("span",{className:w.A["item-label"],children:e.label})})}})})}),E=e=>{let{value:t,setValue:n,size:a,selectLevel:s}=e;const{fetchApi:o,props:p}=R(),[h,_]=(0,r.useState)(""),f=i()(p.dataFormat),{formatMessage:j}=(0,N.useIntl)({moduleName:"Common"}),v=o.data,b=(0,r.useMemo)(()=>new Map(f(v).list.map(e=>[e.value,e])),[v,f]),L=(0,r.useMemo)(()=>g(b),[b]),P=(0,r.useRef)({});P.current={createMergeTree:p.createMergeTree,loadMore:o.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:L};const[I,k]=(0,r.useState)(()=>{const e=t.find(e=>!!b.get(e));return L.getSelectedQueue(e||m()(o.data.find(e=>e.children&&e.children.length>0),"id")||m()(o.data,"[0].id"),b)});(0,r.useEffect)(()=>{const{openLoadData:e,loadMore:t,parentIdKey:n,createMergeTree:a,treeUtils:l}=P.current;if(!e)return;const s=b.get(x()(I));if(!s)return;const r=l.getSelectedQueue(s.id);A()(I,r)?s.hasOwnProperty("children")||t({data:{[n]:s.id}},a(s.id)):k(r)},[I,b]);const F=(e,l)=>{const s=(()=>{if(p.onlyAllowLastLevel&&e){const e=t.slice(0);return e.push(l),e}if(p.onlyAllowLastLevel){const e=t.slice(0);return e.splice(t.indexOf(l),1),e}return e?L.setNodeChecked(l,t):L.setNodeUnchecked(l,t)})();s.length>a?c.message.error(j({id:"maxSelectedCount"},{count:a})):n(p.single&&s.length>0?[x()(s)]:s)},T=e=>{const t=b.get(e);return!(!p.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},M=!p.openLoadData&&"function"===typeof p.onSearch,E=M&&h&&(0,O.jsx)(D,{data:{searchText:h},loader:e=>{let{data:t}=e;return p.onSearch(t.searchText,{mapping:b})},computedIsChecked:e=>t.indexOf(e.id)>-1,onSelect:(e,t)=>{F(!t,e.id),!t&&k(L.getSelectedQueue(e.id,b)),_("")}});return(0,O.jsxs)("div",{className:S()(C.content,{[C["is-popup"]]:p.isPopup,[C["has-search"]]:M}),style:{"--menu-item-width":p.menuItemWidth},children:[M&&(0,O.jsx)(u.A,{isPopup:p.isPopup,className:S()(w.A["search-input"],{[w.A["is-popup"]]:p.isPopup}),placeholder:p.searchPlaceholder||j({id:"search"}),value:h,onSearch:e=>{_(e)}}),E||(0,O.jsx)("div",{children:(0,O.jsx)(y.A,{className:C.scroller,options:{autoHide:!1},children:(0,O.jsxs)("div",{className:C.columns,children:[I.map((e,n)=>{const a=b.get(e),o=L.getSiblingNode(e),i=!T(null===a||void 0===a?void 0:a.id)&&n>0;return(0,O.jsx)(y.A,{className:S()(C["content-item"],{[C["last-level-area"]]:i}),children:i?(0,O.jsx)(c.Space,{wrap:!0,children:o.map(e=>(0,r.createElement)(c.Checkbox,(0,l.A)((0,l.A)({},L.computedCheckboxStatus(e.id,t)),{},{disabled:s>1&&(t.indexOf(e.parentCode)>-1||t.indexOf(e.code.slice(0,3))>-1),key:e.id,onChange:t=>F(t.target.checked,e.id)}),e.label))}):(0,O.jsx)(c.Menu,{className:S()(C.menu),onSelect:e=>{const n=b.get(e.key);if(n)if(T(n.id))k(L.getSelectedQueue(n.id,b));else{const{checked:e}=L.computedCheckboxStatus(n.id,t);F(!e,n.id)}},selectedKeys:n===I.length-1?[]:I,items:o.map(e=>({key:e.id,label:(0,O.jsxs)(c.Space,{className:S()(C["menu-item"],{[C["checkbox-hidden"]]:p.onlyAllowLastLevel&&T(e.id)}),children:[!p.onlyAllowLastLevel&&(0,O.jsx)(c.Checkbox,(0,l.A)((0,l.A)({},L.computedCheckboxStatus(e.id,t)),{},{disabled:s>1&&t.indexOf(e.parentCode)>-1,onChange:t=>F(t.target.checked,e.id)})),(0,O.jsx)("div",{className:C["menu-label"],children:e.label}),T(e.id)&&(0,O.jsx)(d.default,{className:C["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})}))})},m()(o,"[0].id",n))}),o.isComplete?null:(0,O.jsx)("div",{className:C.loading,children:(0,O.jsx)(c.Spin,{size:"small"})})]})})})]})},z=e=>{let{maxLength:t,nodeFormat:n,dataFormat:r}=e,o=(0,a.A)(e,M);return(0,O.jsx)(s.A,(0,l.A)((0,l.A)({},o),{},{dataFormat:e=>r(e,n),children:e=>{let{value:n,setValue:a}=e;return(0,O.jsx)(E,(0,l.A)((0,l.A)({},o),{},{size:t,value:n,setValue:a}))}}))};z.defaultProps={maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,overlayWidth:"460px",menuItemWidth:"180px",openLoadData:!1,onlyAllowLastLevel:!1,parentIdKey:"id",onSearch:(e,t)=>{let{mapping:n}=t;return Array.from(n.values()).filter(t=>t.label.indexOf(e)>-1)},dataFormat:(e,t)=>{const n=(e,a)=>{const l=[];return l.push(...(e||[]).map(e=>("function"===typeof t&&Object.assign(e,t(e)),e.children&&e.children.length>0&&l.push(...n(e.children,e.id)),Object.assign({},e,{value:e.id,parentId:a})))),l};return{list:n(e,null)}},createMergeTree:e=>(t,n)=>{const a=t=>t.map(t=>t.id===e?Object.assign({},t,{children:n&&n.map(t=>Object.assign({},t,{parentId:e}))}):Array.isArray(t.children)&&t.children.length>0?Object.assign({},t,{children:a(t.children)}):t);return a(t)}};const V=z},53392:(e,t,n)=>{n.d(t,{A:()=>g,W:()=>_});var a=n(89379),l=n(53986),s=n(45776),r=n(27047),o=n(33097),i=n.n(o),c=n(70579);const d=["apis"],u=["apis"],p=(e,t)=>"en-US"===t?i()(e,"enName"):i()(e,"chName"),m={cache:"INDUSTRY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7183).then(n.t.bind(n,57183,19)).then(e=>e.__esModule?e.default:e)},h=e=>{let{apis:t}=e,n=(0,l.A)(e,d);const{apis:o,locale:i}=(0,r.A)(),u=Object.assign({},{industryData:m},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.Ay,(0,a.A)((0,a.A)({},n),{},{api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,s.ON)(new Map(t.filter(e=>"000"!==e.code).map(e=>[e.code,(0,a.A)((0,a.A)({},e),{},{id:e.code,label:p(e,i),parentId:e.parentCode||null})])));return n}},u.industryData)}))};h.defaultProps={overlayWidth:"635px"};const _=e=>{let{apis:t}=e,n=(0,l.A)(e,u);const{apis:o,locale:i}=(0,r.A)(),d=Object.assign({},{industryData:m},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.yK,(0,a.A)((0,a.A)((0,a.A)({},n),d.industryData),{},{type:"function",getLabel:e=>p(e,i),transformData:e=>{let{data:t}=e;return t}}))};h.IndustryEnum=h.Enum=_;const g=h},55490:(e,t,n)=>{n.d(t,{A:()=>a.isNotEmpty});var a=n(39129)},60586:(e,t,n)=>{n.d(t,{e0:()=>j,ec:()=>A,$9:()=>y,Ay:()=>x});var a=n(89379),l=n(73884),s=n(39768),r=n.n(s),o=n(3382),i=n(40438),c=n(55199);const d="style_select-list-item-description__ndJSX__j+s1S",u="style_select-list-item-label__gyGnt__j+s1S",p="style_select-list-item-content__2VJnt__j+s1S";var m=n(83136),h=n.n(m),_=(n(96316),n(70579));const g=e=>{const{props:t,open:n,onOpenChange:a,value:l,onComplete:r}=e,{placeholder:i,children:c,showSelectedTag:d,onConfirm:u}=t;return(0,_.jsx)(o.default,{title:i,open:n,onClose:()=>{a(!1)},footer:d&&(0,_.jsx)(s.SelectedTagList,{}),onConfirm:()=>{if(r(),"function"===typeof u)return u(l)},children:c(e)})},f=(0,l.forwardRef)((e,t)=>{const n=Object.assign({},{children:e=>{let{components:t}=e;return(0,_.jsxs)(c.Flex,{vertical:!0,children:[t.search,t.selectedAll,t.fetchList,t.footer,!1!==n.isPopup&&t.selectedTag]})},renderModal:g},e);return(0,_.jsx)(r(),(0,a.A)((0,a.A)({},n),{},{ref:t}))}),x=f,j=(0,l.forwardRef)((e,t)=>{const n=Object.assign({},{renderModal:g},e);return(0,_.jsx)(s.SelectTableList,(0,a.A)((0,a.A)({},n),{},{ref:t}))}),A=(0,l.forwardRef)((e,t)=>{const n=Object.assign({},{renderModal:g},e);return(0,_.jsx)(s.SelectTree,(0,a.A)((0,a.A)({},n),{},{ref:t}))}),y=(0,l.forwardRef)((e,t)=>(0,_.jsx)(f,(0,a.A)((0,a.A)({},e),{},{ref:t,renderItemContent:e=>{let{item:t,props:n}=e;const{labelKey:l,avatarKey:s,descriptionKey:r}=n,o=t[s||"avatar"];return(0,_.jsxs)(c.Flex,{gap:8,children:[(0,_.jsx)(i.default.Avatar,(0,a.A)((0,a.A)({},Object.assign({},"string"===typeof o?{id:o}:o)),{},{size:32,gender:"M"})),(0,_.jsxs)(c.Flex,{vertical:!0,gap:8,className:p,align:"flex-start",children:[(0,_.jsx)("div",{className:h()(u,"select-list-item-label"),children:t[l]}),t[r||"description"]&&(0,_.jsx)("div",{className:h()(d,"select-list-item-description"),title:t[r||"description"],children:t[r||"description"]})]})]})}})))},69484:(e,t,n)=>{n.d(t,{A:()=>l,e:()=>a});const a=1e15,l=e=>{let t,n,l,s=["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"],r=["","\u62fe","\u4f70","\u4edf"],o=["","\u4e07","\u4ebf","\u5146"],i=["\u89d2","\u5206","\u6beb","\u5398"],c="",d="";if(""===e)return"";if((e=parseFloat(e))>=a)return c="\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57",console.error("\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57"),c;if(0===e)return c=s[0]+"\u5143\u6574",c;if(e<0&&(e=-e,d="\u8d1f "),-1===(e=e.toString()).indexOf(".")?(t=e,n=""):(l=e.split("."),t=l[0],n=l[1].substr(0,4)),parseInt(t,10)>0){let e=0,n=t.length;for(let a=0;a<n;a++){let l=t.substr(a,1),i=n-a-1,d=i/4,u=i%4;"0"===l?e++:(e>0&&(c+=s[0]),e=0,c+=s[parseInt(l)]+r[u]),0===u&&e<4&&(c+=o[d])}c+="\u5143"}if(""!==n){let e=n.length;for(let t=0;t<e;t++){let e=n.substr(t,1);"0"!==e&&(c+=s[Number(e)]+i[t])}}return""===c?c+=s[0]+"\u5143\u6574":""===n&&(c+="\u6574"),c=d+c,c}},73161:(e,t,n)=>{n.d(t,{A:()=>_});var a=n(89379),l=n(53986),s=n(55199),r=n(83136),o=n.n(r);const i="style_search-input__8aH1G__j+s1S",c="style_is-popup__L0973__j+s1S";var d=n(64671),u=n(73884),p=n(51941),m=n(70579);const h=["value","debounce","onSearch","isPopup","placeholder","className"],_=e=>{let{value:t,debounce:n=500,onSearch:r,isPopup:_,placeholder:g,className:f}=e,x=(0,l.A)(e,h);const[j,A]=(0,u.useState)(t),y=(0,u.useRef)(t),v=(0,p.useDebouncedCallback)(r,n);return(0,u.useEffect)(()=>{t!==y.current&&(A(t),y.current=t)},[t]),(0,m.jsx)(s.Input.Search,(0,a.A)((0,a.A)({},x),{},{allowClear:!0,className:o()(f,i,{[c]:_}),value:j,placeholder:g,prefix:(0,m.jsx)(d.default,{type:"icon-sousuo"}),enterButton:(0,m.jsx)(d.default,{type:"icon-sousuo"}),onChange:e=>{const t=e.target.value;y.current=t,A(t),v(t.trim())},onSearch:e=>{v(e.trim())}}))}},74981:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(73884);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,a.createContext)(e),{Provider:n,Consumer:l}=t;return{context:t,Provider:n,Consumer:l,useContext:()=>(0,a.useContext)(t)}}},77964:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(73884),l=n(79889),s=n.n(l),r=n(93950),o=n.n(r),i=n(96418),c=n.n(i);const d=(e,t)=>{const n=(0,a.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const l=(0,a.useRef)(null),r=c()(e);return(0,a.useLayoutEffect)(()=>{const e=l.current,t=()=>window.requestAnimationFrame(()=>{e&&r(e)});t();const a=new ResizeObserver((n.current.isDebounce?o():s())(t,n.current.time));return e&&a.observe(e),()=>{a.disconnect()}},[r]),l}},78784:(e,t,n)=>{n.d(t,{default:()=>l.a});n(21219);var a=n(14311),l=n.n(a);n.o(a,"FetchScrollLoader")&&n.d(t,{FetchScrollLoader:function(){return a.FetchScrollLoader}})},81348:(e,t,n)=>{n.d(t,{A:()=>a.computedAccept});var a=n(99776)},89319:(e,t,n)=>{n.d(t,{A:()=>m});var a=n(89379),l=n(20454),s=n(55199),r=n(10986),o=n.n(r),i=n(57469),c=n.n(i),d=n(20492),u=n(47458),p=n(70579);const m=(0,u.createWithIntl)({importMessages:d.A,moduleName:"Common"})(e=>{let t=Object.assign({},((0,l.A)(e),e));const{formatMessage:n}=(0,u.useIntl)({moduleName:"Common"}),r=new Map([["date",n({id:"customTime"})],["month",n({id:"monthly"})],["week",n({id:"weekly"})]]),[i,d]=o()(t);return(0,p.jsxs)(s.Space.Compact,{children:[(0,p.jsx)(s.Select,{style:{width:"120px"},value:(null===i||void 0===i?void 0:i.type)||"date",onChange:e=>{d(t=>{var n;return{value:null!==t&&void 0!==t&&null!==(n=t.value)&&void 0!==n&&n.length?[c()(t.value[0]).startOf(e||"date"),c()(t.value[1]).endOf(e||"date")]:null,type:e||"date"}})},options:Array.from(r).map(e=>{let[t,n]=e;return{label:n,value:t}})}),(0,p.jsx)(s.DatePicker.RangePicker,(0,a.A)((0,a.A)({},t),{},{picker:(null===i||void 0===i?void 0:i.type)||"date",value:Array.isArray(null===i||void 0===i?void 0:i.value)&&2===i.value.length&&i.value.map(e=>e&&c()(e)),onChange:e=>{d(t=>(console.log(Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})),Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})))}}))]})})},91176:(e,t,n)=>{n.d(t,{j:()=>l,v:()=>a});const a=e=>"number"===typeof e?"".concat(e,"px"):e,l=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}},93761:(e,t,n)=>{n.d(t,{qn:()=>W,TM:()=>te,LH:()=>R,Ay:()=>B,NY:()=>D,DF:()=>K});var a=n(53986),l=n(89379),s=n(30509),r=n(25438),o=n(55199),i=n(27047),c=n(83136),d=n.n(c),u=n(64671),p=n(73884),m=n(21485),h=n(56434),_=n.n(h),g=n(15797),f=n.n(g),x=n(33097),j=n.n(x);const A="style_address__DIuRX__j+s1S",y="style_is-popup__tqVvp__j+s1S",v="style_title__FAe12__j+s1S",S="style_scroll-box__JWiDl__j+s1S",C="style_scroll-plus-box__lidEW__j+s1S",b="style_content__lAARZ__j+s1S",N="style_col-left__WPfeS__j+s1S",w="style_col-right__z0e9-__j+s1S";var O=n(87558),L=n.n(O);const P=e=>({"en-US":()=>n.e(3691).then(n.bind(n,83691)),"zh-CN":()=>n.e(2253).then(n.bind(n,32253))}[e]());var I=n(47458),k=n(70579);const F=["name","data","getAddressApi","children"],T=["data"],M=s.A.useContext,R=e=>{let{city:t,province:n,country:a}=e;const l=f()(()=>{const e=[];return["gangaotai","municipality"].forEach(n=>{e.push(...t.relations[n])}),["provinces","continents"].forEach(n=>{t.relations[n].forEach(n=>{e.push(n),e.push(...t.relations[n])})}),e.map(e=>t.list[e])});return{getCity:f()(e=>{const n=t.list[e];return n?{city:n,parent:n.parentCode?t.list[n.parentCode]:null}:{city:null,parent:null}}),getChinaHotCities:f()(()=>t.relations[2].map(e=>t.list[e])),getChinaCities:f()(()=>["2",...n.relations.municipality,...n.relations.provinces,"gangaotai"].map(e=>Object.assign({id:e},t.list[e]))),getCountries:f()(()=>["1",...a.relations.continents].map(e=>Object.assign({id:e},a.list[e]))),getList:f()((e,l)=>{const{showChinaQuan:s,showForeignQuan:r}=Object.assign({},l);if("gangaotai"===e)return n.relations.gangaotai.map(e=>t.list[e]);const o=Object.assign({},t.list[e]);if(n.relations.municipality.indexOf(e)>-1)return o.name="".concat(s?"\u5168":"")+o.name,[o];const i=t.relations[e].map(e=>t.list[e]);return n.relations.provinces.indexOf(e)>-1&&s&&(o.name="\u5168"+o.name,i.splice(0,0,o)),a.relations.continents.indexOf(e)>-1&&r&&(o.name="\u5168"+o.name,i.splice(0,0,o)),i}),getNationalityList:f()(e=>{let n=_()(t);return"1"===e&&n.relations[1].unshift("410"),"350"===e&&n.relations[350].unshift("410"),n.relations[e].filter(e=>n.list[e]).map(e=>n.list[e])}),getCityByName:f()(e=>{const t=l();let n;return[t=>t.name===e,t=>t.name===e.replace(/(\u7701|\u5e02)$/,""),t=>0===e.indexOf(t.name)].find(e=>(n=t.find(e),n)),n}),combineCities:f()((e,n)=>[...n.filter(n=>t.list[n].parentCode!==e&&t.list[e].parentCode!==n&&e!==n),e]),searchCities:f()(e=>{if(!e)return[];return l().filter(t=>["pinyin","name","enName","spelling"].some(n=>t[n].toUpperCase().indexOf(e.toUpperCase())>-1)).map(e=>{const n=e.parentCode?t.list[e.parentCode]:null;return{label:n?"".concat(n.name,"\xb7").concat(e.name):e.name,value:e.code}})})}},D=(e,t)=>"en-US"===t?j()(e,"enName"):j()(e,"name"),E={cache:"CITY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7820).then(n.t.bind(n,37820,19)).then(e=>e.__esModule?e.default:e)},z=e=>{let{value:t,setValue:n}=e;const{fetchApi:a,props:l}=M(),[s,c]=(0,p.useState)(""),[h,_]=(0,p.useState)("2"),{formatMessage:g}=(0,I.useIntl)({moduleName:"AddressSelect"}),{locale:f}=(0,i.A)(),{getCity:x,getChinaCities:j,getCountries:O,getList:L,searchCities:P}=(0,p.useMemo)(()=>R(a.data),[a.data]),F=e=>{if(l.single)return void n([e]);const a=t.slice(0),s=a.indexOf(e);s>-1?a.splice(s,1):a.push(e),n(a)},T=s&&(0,k.jsx)(m.A,{className:C,children:(0,k.jsx)(o.List,{className:r.A.list,size:"small",dataSource:P(s),rowKey:"value",renderItem:e=>(0,k.jsx)(o.List.Item,{className:r.A["list-item"],onClick:()=>{F(e.value),c("")},children:(0,k.jsx)("span",{className:r.A["item-label"],children:e.label})})})});return(0,k.jsxs)("div",{className:d()(A,{[y]:l.isPopup}),children:[(0,k.jsx)(o.Input.Search,{className:d()(r.A["search-input"],{[r.A["is-popup"]]:l.isPopup}),placeholder:l.searchPlaceholder||g({id:"searchCity"}),prefix:(0,k.jsx)(u.default,{type:"icon-sousuo"}),enterButton:(0,k.jsx)(u.default,{type:"icon-sousuo"}),value:s,allowClear:!0,onChange:e=>{const t=e.target.value;c(t)},onSearch:e=>{c(e)}}),(0,k.jsx)("div",{className:b,children:T||(0,k.jsxs)(o.Row,{wrap:!1,children:[(0,k.jsx)(o.Col,{className:N,children:(0,k.jsx)(o.Tabs,{centered:!0,onChange:e=>{_(e)},items:[{key:"2",label:(0,k.jsx)(I.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,k.jsx)(m.A,{className:S,children:(0,k.jsx)(o.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:j().map(e=>({label:D(e,f),key:e.id}))})})},{key:"1",label:(0,k.jsx)(I.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,k.jsx)(m.A,{className:S,children:(0,k.jsx)(o.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:O().map(e=>({label:D(e,f),key:e.id}))})})}]})}),(0,k.jsxs)(o.Col,{flex:1,className:w,children:[(0,k.jsx)(o.Divider,{className:v,orientation:"left",children:D(x(h).city,f)}),(0,k.jsx)(m.A,{className:S,children:(0,k.jsx)(o.Space,{wrap:!0,children:L(h,{showChinaQuan:l.showChinaQuan,showForeignQuan:l.showForeignQuan}).map(e=>(0,k.jsx)(o.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{F(e.code)},children:D(e,f)},e.code))})})]})]})})]})},V=e=>(0,k.jsx)(s.A,(0,l.A)((0,l.A)({},e),{},{children:e=>{let{value:t,setValue:n}=e;return(0,k.jsx)(I.IntlProvider,{moduleName:"AddressSelect",importMessages:P,children:(0,k.jsx)(z,{value:t,setValue:n})})}}));V.defaultProps={overlayWidth:"500px",isPopup:!0,api:E,dataFormat:(e,t)=>{let{city:n}=e;const{locale:a}=Object.assign({},t);return{list:Object.values(n.list).map(e=>Object.assign({},e,{value:e.code,label:D(e,a)}))}}};const W=(0,O.withFetch)(e=>{let{name:t,data:n,getAddressApi:l,children:s}=e,r=(0,a.A)(e,F);const{locale:o}=(0,i.A)(),c=(0,p.useMemo)(()=>R(n),[n]);return l?s(c):(0,k.jsx)(L(),{cache:"city-enum",params:{name:t},loader:e=>{let{params:t}=e;const{name:n}=t;return new Promise(e=>{setTimeout(()=>{e(c.getCity(n))},0)})},render:e=>{let{data:t}=e;return s(t,Object.assign({},r,{locale:o}))}})});W.defaultProps=(0,l.A)((0,l.A)({},E),{},{displayParent:!1,children:(e,t)=>{let{city:n,parent:a}=e,{displayParent:l,locale:s}=t;return l&&a?"".concat(D(a,s),"\xb7").concat(D(n,s)):D(n,s)}});const K=e=>{const t=(0,O.withFetch)(t=>{let{data:n}=t,s=(0,a.A)(t,T);const r=(0,p.useMemo)(()=>R(n),[n]);return(0,k.jsx)(e,(0,l.A)((0,l.A)({},s),{},{addressApi:r}))});return t.defaultProps=(0,l.A)({},E),t};V.AddressEnum=V.Enum=W,V.createAddressApi=R,V.withAddressApi=K,V.getLabelForLocal=D;const B=V;var U=n(10986),q=n.n(U),Q=n(78491),H=n.n(Q),X=n(20492),Z=n(22616),J=n.n(Z),Y=n(1488),G=n.n(Y);const $=["isPopup","size","disabled","inputPlaceholder","onBlur","className"],ee=e=>{const{isPopup:t,size:n,disabled:s,inputPlaceholder:r,onBlur:i,className:c}=e,d=(0,a.A)(e,$),[u,p]=q()(e),m=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:h}=(0,I.useIntl)({moduleName:"Common"}),_=H()(e=>{i&&i(e)});return(0,k.jsx)("div",{ref:_,children:(0,k.jsxs)(o.Row,{gutter:10,children:[(0,k.jsx)(o.Col,{span:12,children:(0,k.jsx)(B,(0,l.A)((0,l.A)({},J()(d,m)),{},{className:c,disabled:s,single:!0,size:n,value:j()(u,"city"),onChange:e=>{p({city:e,detail:j()(u,"detail")})}}))}),(0,k.jsx)(o.Col,{span:12,children:(0,k.jsx)(o.Input,(0,l.A)((0,l.A)({},G()(d,m)),{},{className:c,placeholder:r||h({id:"pleaseInput"}),disabled:s,size:n,value:j()(u,"detail"),onChange:e=>{p({city:j()(u,"city"),detail:e.target.value})}}))})]})})};ee.defaultProps={};const te=(0,I.createWithIntl)({importMessages:X.A,moduleName:"Common"})(ee)},97211:(e,t,n)=>{n.d(t,{A:()=>a.withOSSFile});var a=n(99776)}}]);
|
|
2
|
-
//# sourceMappingURL=3856.3decac1c.chunk.js.map
|