省委书记调整3天后 山西代省长蓝佛安到任

时间:2021-06-04 12:42内容来源:联合早报 版阅读:新闻归类:人物记事

省委书记调整3天后,山西代省长到任

资料图

据山西日报客户端消息,6月4日,山西省十三届人大常委会第二十八次会议在太原举行。会议决定任命蓝佛安为山西省人民政府副省长、代理山西省人民政府省长,任命孙洪山为山西省人民政府副省长、省公安厅厅长。

会议表决通过了关于接受楼阳生辞去山西省人民代表大会常务委员会主任职务请求的决定,关于接受林武辞去山西省人民政府省长职务请求的决定,关于接受孙洪山辞去山西省高级人民法院院长职务请求的决定。

蓝佛安

近日,蓝佛安已任山西省政府党组书记。

6月1日消息,日前,中共中央决定:楼阳生同志任河南省委委员、常委、书记,不再担任山西省委书记、常委、委员职务;林武同志任山西省委书记;王国生同志不再担任河南省委书记、常委、委员职务。

今年4月,蓝佛安由海南省委常委、省纪委书记、省监察委员会主任,调任山西省委副书记。

4月7日,时任山西省委书记楼阳生主持召开省委常委会扩大会议,宣布中央《关于蓝佛安同志职务任免的通知》,并就进一步加强政治建设提出要求。省委副书记、省长林武,省委副书记蓝佛安出席会议。 

楼阳生指出,中央决定蓝佛安同志来山西工作,是以习近平同志为核心的党中央从大局和我省工作实际出发,通盘考虑、慎重研究作出的决定,充分体现了党中央对山西的高度重视、亲切关怀和大力支持,是对山西省委领导班子的进一步加强,我们完全赞成、坚决拥护。蓝佛安同志政治坚定,思路清晰,熟悉党务和经济工作,勤奋敬业,敢于担当,推动工作力度大,公道正派,处事严谨,自我要求严格。相信蓝佛安同志一定会不负众望、不辱使命,为山西高质量转型发展作出积极贡献。

蓝佛安表示,坚决服从中央决定。山西是备受敬仰的革命老区,也是干事创业的一方热土,能够来山西工作深感荣幸,一定在以楼阳生书记为班长的省委领导下,修身律己,恪尽职守,把工作干好、把职责尽到。坚定理想信念、站稳政治立场,坚持求真务实、勇于担当作为,坚决维护团结、担好协助职责,自觉接受监督、守好廉洁底线,不断提高政治判断力、政治领悟力、政治执行力,坚决把增强“四个意识”、坚定“四个自信”、做到“两个维护”落实在实际行动上,带着对山西人民的深厚感情,为山西的改革发展事业贡献力量。

官方履历显示,蓝佛安1962年6月生,广东惠东人,1985年从湖北财经学院财政金融系财政专业毕业后,进入财政部预算司工作,三年后调任广东省财政厅,曾任办公室主任等职。

1999年,蓝佛安到地方工作,任东莞市副市长,2001年又重返省财政厅,任副厅长。2007年,他转任省审计厅党组书记,次年任厅长。

2015年,蓝佛安出任韶关市委书记,2016年1月任广东省副省长,升副部级。

2017年3月,蓝佛安首次跨省履新,任海南省委常委、省纪委书记,次年1月同时担任省监委主任。任职海南4年后,蓝佛安再次跨省履新,任山西省委副书记。

蓝佛安简历

蓝佛安,男,汉族,1962年6月生,广东惠东人,1985年8月参加工作,1985年4月加入中国共产党,大学学历,管理学硕士学位。

1981.09--1985.08 湖北财经学院财政金融系财政专业学习

1985.08--1988.11 财政部预算司中央处办事员、科员

1988.11--1993.03 广东省财政厅预算处科员、副主任科员、主任科员

1993.03--1995.03 广东省财政厅预算处副处长

1995.03--1999.03 广东省财政厅办公室主任

1999.03--2001.10 广东省东莞市副市长

2001.10--2007.04 广东省财政厅副厅长

2007.04--2008.03 广东省审计厅党组书记(其间:2007.09--2008.01中央党校地厅级干部进修班学习)

2008.03--2015.03 广东省审计厅党组书记、厅长

(2006.09--2009.06华南理工大学政治与公共管理学院行政管理专业研究生课程班学习,获管理学硕士学位)

2015.03--2016.01 广东省韶关市委书记

2016.01--2017.03 广东省副省长

2017.03--2018.01 海南省委常委、省纪委书记

2018.01--2021.04 海南省委常委、省纪委书记、省监察委员会主任

2021.04--    山西省委副书记

现任山西省委副书记、省政府党组书记、副省长、代省长。

十九届中央纪委委员,中共十九大代表,十三届全国人大代表

资料来源:山西日报等


欢迎关注

长按下方二维码关注“News”

了解新鲜时政资讯

点“在看”,Ta会看见↓↓

varfirst_sceen__time=(+newDate()); if(""==1&&document.getElementById('js_content')){ document.getElementById('js_content').addEventListener("selectstart",function(e){e.preventDefault();}); }
预览时标签不可点 收录于话题# 上一篇 下一篇 阅读 分享 收藏 在看 已同步到看一看写下你的想法 前往“发现”-“看一看”浏览“朋友在看”

前往看一看 看一看入口已关闭 在“设置”-“通用”-“发现页管理”打开“看一看”入口 我知道了 已发送

取消 发送到看一看 发送 省委书记调整3天后,山西代省长到任 最多200字,当前共 发送中

微信扫一扫关注该公众号

微信扫一扫使用小程序 取消 允许 取消 允许 知道了 长按识别前往小程序 varPAGE_MID='mmbizwap:appmsg/newindex.html'; window.logs.pagetime.page_begin=Date.now(); var__DEBUGINFO={ debug_js:"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/debug/console55871f.js", safe_js:"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/safe/moonsafe55871f.js", res_list:[] }; (function(){ vartotalCount=0, finishCount=0; function_loadVConsolePlugin(){ window.vConsole=newwindow.VConsole(); while(window.vConsolePlugins.length>0){ varp=window.vConsolePlugins.shift(); window.vConsole.addPlugin(p); } if(!window.vConsole.isInited){ window.vConsole._render(); window.vConsole._mockTap(); window.vConsole._bindEvent(); window.vConsole._autoRun(); } } function_addVConsole(uri,cb){ totalCount++; varnode=document.createElement('SCRIPT'); node.type='text/javascript'; node.src=uri; node.setAttribute('nonce','955074822'); if(cb){ node.onload=cb; } document.getElementsByTagName('head')[0].appendChild(node); } if( (document.cookie&&document.cookie.indexOf('vconsole_open=1')>-1) ||location.href.indexOf('vconsole=1')>-1 ){ window.vConsolePlugins=[]; _addVConsole('//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/vconsole/3.2.2/vconsole.min55871f.js',function(){ _addVConsole('//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/vconsole/plugin/vconsole-mpopt/1.0.1/vconsole-mpopt55871f.js',_loadVConsolePlugin); }); } try{ varadIframeUrl=localStorage.getItem('__WXLS_ad_iframe_url'); if(window===top){ if(adIframeUrl){ if(navigator.userAgent.indexOf('iPhone')>-1){ varimg=newImage(); img.src=adIframeUrl; }else{ varlink=document.createElement('link'); link.rel='prefetch'; link.href=adIframeUrl; document.getElementsByTagName('head')[0].appendChild(link); } } } }catch(err){ } })(); function_typeof(e){ returne&&"undefined"!=typeofSymbol&&e.constructor===Symbol?"symbol":typeofe; } !function(e){ if("object"===("undefined"==typeofmodule?"undefined":_typeof(module)))module.exports=e;else{ if(window.__second_open__)return; vart="1622781706",n="1622779600",i="2021-06-04"; e(t,n,i,document.getElementById("publish_time")); } window.__setPubTime=e; }(function(e,t,n,i){ vars="",o=86400,f=newDate(1e3*e),r=1*t,l=n||""; f.setHours(0),f.setMinutes(0),f.setSeconds(0); varc=f.getTime()/1e3; f.setDate(1),f.setMonth(0); varu=f.getTime()/1e3; if(r>=c)s="今天";elseif(r>=c-o)s="昨天";elseif(r>=c-2*o)s="前天";elseif(r>=c-3*o)s="3天前";elseif(r>=c-4*o)s="4天前";elseif(r>=c-5*o)s="5天前";elseif(r>=c-6*o)s="6天前";elseif(r>=c-14*o)s="1周前";elseif(r>=u){ vard=l.split("-"); s="%s月%s日".replace("%s",parseInt(d[1],10)).replace("%s",parseInt(d[2],10)); }elses=l; i&&(i.innerText=s,setTimeout(function(){ i.onclick=function(){ i.innerText=l; }; },10)); }); if(!window.console)window.console={log:function(){}}; if(typeofgetComputedStyle=='undefined'){ if(document.body.currentStyle){ window.getComputedStyle=function(el){ returnel.currentStyle; } }else{ window.getComputedStyle={}; } } (function(){ window.__zoom=1; varua=navigator.userAgent.toLowerCase(); varre=newRegExp("msie([0-9]+[\.0-9]*)"); varversion; if(re.exec(ua)!=null){ version=parseInt(RegExp.$1); } varisIE=false; if(typeofversion!='undefined'&&version>=6&&version<=9){ isIE=true; } varbodyWidth=''*1; if(bodyWidth){ var>0)break; outerWidth+=parseFloat(parent_>getParentWidth(item)&&!breakParentWidth){ widthNum=getParentWidth(item); } (widthNum-img_padding_border)*ratio+img_padding_border_top_bottom; if(isIE||'0'==='1'){ varurl=item.getAttribute('data-src'); item.src=url; }else{ if(parseFloat(widthNum,10)>40&&height>40&&breakParentWidth){ item.className+='img_loading'; } item.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg=="; } widthNum!=='auto'&&(item.>0){ varparent_width=getParentWidth(imageItem)||max_width; varinitWidth=imageItem.>max_width?max_width:initWidth; if(initWidth){ imageItem.setAttribute('_width',!isNaN(initWidth*1)?initWidth+'px':initWidth); } if(typeofinitWidth==='string'&&initWidth.indexOf('%')!==-1){ initWidth=parseFloat(initWidth.replace('%',''),10)/100*parent_width; } if(initWidth==='auto'){ initWidth=originWidth; } varwidthNum; varwidthUnit; if(initWidth==='auto'){ widthNum='auto'; }else{ varres=/^(\d+(?:\.\d+)?)([a-zA-Z%]+)?$/.exec(initWidth); widthNum=res&&res.length>=2?res[1]:0; widthUnit=res&&res.length>=3&&res[2]?res[2]:'px'; } setImgSize(imageItem,widthNum,widthUnit,ratio_,true); (function(item,widthNumber,unit,ratio){ setTimeout(function(){ setImgSize(item,widthNumber,unit,ratio,false); }); })(imageItem,widthNum,widthUnit,ratio_); }else{ imageItem.>parent_width?parent_width:width, outerW=getOuterW(dom)||0, outerH=getOuterH(dom)||0, videoW=width-outerW, videoH=videoW/ratio_, speedDotH=12, videoH+outerH+speedDotH; return{w:Math.ceil(width),h:Math.ceil(height),vh:videoH,vw:videoW,ratio:ratio_,sdh:speedDotH}; }; (function(){ variframe=document.getElementsByTagName('iframe'); for(vari=0,il=iframe.length;i播放'; mydiv.className="img_loading"; mydiv.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg=="; videoPlaceHolderSpan.>=200&&xhr.status<400){ obj.success&&obj.success(xhr.responseText); }else{ obj.error&&obj.error(xhr); } obj.complete&&obj.complete(); obj.complete=null; } }; xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8"); xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"); xhr.send(data); } varmid=""||""||"2247534719"; varbiz=""||"MzUzNTA4NTYxMA=="; varsessionid=""||"svr_8a3f953bbec"; varidx=""; (functionsendReq(parentNode,copyIframe,index){ ajax({ url:'/mp/videoplayer?vid='+vid+'&mid='+mid+'&idx=1&__biz='+biz+'&sessionid='+sessionid+'&f=json', type:"GET", dataType:'json', success:function(json){ varret=JSON.parse(json||'{}'); varori=ret.ori_status; varhit_biz_headimg=ret.hit_biz_headimg+'/64'; varhit_nickname=ret.hit_nickname; varhit_username=ret.hit_username; varselfUserName="gh_3f3b4ee5d724"; if(ori===2&&selfUserName!==hit_username){ varvideoBar=document.createElement('div'); varvideoBarHtml=''; videoBarHtml+='以下视频来源于'; videoBarHtml+=''; videoBarHtml+=''; videoBarHtml+=''+hit_nickname+''; videoBarHtml+=''; videoBarHtml+=''; videoBarHtml+=''; videoBarHtml+=''; videoBar.innerHTML=videoBarHtml; varspanContainer=document.getElementById('js_mp_video_container_'+vid) if(spanContainer){ spanContainer.parentNode.insertBefore(videoBar,spanContainer); }else{ parentNode.insertBefore(videoBar,copyIframe); } varavatorEle=document.getElementById(hit_biz_headimg+index); varavatorSrc=avatorEle.dataset.src; console.log('avatorSrc'+avatorSrc); if(ret.hit_biz_headimg){ avatorEle.setAttribute("height",obj.h); } a.setAttribute("data-vh",obj.vh); a.setAttribute("data-vw",obj.vw); if(a.getAttribute("data-mpvid")){ a.setAttribute("data-src",location.protocol+"//mp.weixin.qq.com/mp/readtemplate?t=pages/video_player_tmpl&auto=0&vid="+vid); }else{ a.setAttribute("data-src",location.protocol+"//v.qq.com/iframe/player.html?vid="+vid+"&width="+obj.vw+"&"+obj.vh+"&auto=0"); } } })(); (function(){ if(window.__zoom!=1){ if(!window.__second_open__){ document.getElementById('page-content').>=0&&child.getAttribute("data-vid")==vid){ child.> !function(t){ vare={ defaultContentTpl:'', config:[{ querySelector:"redpacketcover", genId:function(){ vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0]; returndecodeURIComponent(t.node.getAttribute("data-coveruri")||""); }, calW:function(){ vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0]; return.7854*t.parentWidth; }, calH:function(){ vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0]; returnthis.calW({ parentWidth:t.parentWidth })/.73346+27+37; }, replaceContentCssText:"", appendContentCssText:"display:inline-block;position:relative;", outerContainerLeft:'
', outerContainerRight:"
" },{ querySelector:"qqmusic", genId:function(){ vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0]; return(t.node.getAttribute("musicid")||"").replace(/^\s/,"").replace(/\s$/,"")+"_"+t.index; }, calW:function(){ vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0]; return1*t.parentWidth; }, calH:function(){ return88; }, replaceContentCssText:"", appendContentCssText:"margin:16px0;diplay:block;", outerContainerLeft:"", outerContainerRight:"" },{ querySelector:"mpvoice", genId:function(){ vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0],e=decodeURIComponent(t.node.getAttribute("voice_encode_fileid")||"").replace(/^\s/,"").replace(/\s$/,""); returne+"_"+t.index; }, calW:function(){ vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0]; return1*t.parentWidth; }, calH:function(){ return122; }, replaceContentCssText:"", appendContentCssText:"margin:16px0;diplay:block;", outerContainerLeft:"", outerContainerRight:"" },{ querySelector:"mppoi", genId:function(){ vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0]; returnt.node.getAttribute("data-id")||""; }, calW:function(){ vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0]; return1*t.parentWidth; }, calH:function(){ return219; }, replaceContentCssText:"", appendContentCssText:"margin:16px0;diplay:block;", outerContainerLeft:"", outerContainerRight:"" },{ querySelector:"mpsearch", genId:function(){ returndecodeURIComponent("mpsearch"); }, calW:function(){ vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0]; return1*t.parentWidth; }, calH:function(){ return100; }, replaceContentCssText:"", appendContentCssText:"margin:16px0;diplay:block;", outerContainerLeft:"", outerContainerRight:"" },{ querySelector:"mpvideosnap", genId:function(){ vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0],e=t.node.getAttribute("data-type")||"video"; returndecodeURIComponent("live"===e?t.node.getAttribute("data-noticeid")||"":t.node.getAttribute("data-id")||""); }, calW:function(){ vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0],e=t.node.getAttribute("data-type")||"video"; return"live"===e?t.parentWidth:.665*t.parentWidth; }, calH:function(){ vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0],e=t.node.getAttribute("data-desc")||"",n=t.node.getAttribute("data-type")||"video"; return"live"===n?113:e?this.calW(t)+44+35+27:this.calW(t)+44+35; }, replaceContentCssText:"", appendContentCssText:"margin:16pxauto;diplay:block;", outerContainerLeft:"", outerContainerRight:"" },{ querySelector:"mpprofile", genId:function(t){ returnt.node.getAttribute("data-id")||""; }, calW:function(){ vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0]; return1*t.parentWidth; }, calH:function(){ return141; }, replaceContentCssText:"", appendContentCssText:"margin:28px020px;diplay:block;", outerContainerLeft:"", outerContainerRight:"" }] }; t(e); }(function(){ vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0]; if("function"==typeofdocument.querySelectorAll)for(vare={ maxWith:document.getElementById("img-content").getBoundingClientRect().width, idAttr:"data-preloadingid" },n=0,r=t.config.length;r>n;n++)for(vara=t.config[n],i=document.querySelectorAll(a.querySelector),o=0,u=i.length;u>o;o++){ vard=i[o],g=d.parentNode.getBoundingClientRect().width; g=Math.min(g,e.maxWith); vars=a.calW({ parentWidth:g, node:d }),l=a.calH({ parentWidth:g, node:d }),c=a.genId({ index:o, node:d }),p=t.defaultContentTpl.replace(/#height#/g,l).replace(/#width#/g,s),m=document.createElement("div"); if(m.innerHTML=p,a.replaceContentCssText){ varh=a.replaceContentCssText.replace(/#height#/g,l).replace(/#width#/g,s); m.firstChild.> varwhiteList='rich_pages,blockquote_info,blockquote_biz,blockquote_other,blockquote_article,js_jump_icon,h5_image_link,js_banner_container,js_list_container,js_cover,js_tx_video_container,js_product_err_container,js_product_loop_content,js_product_container,img_loading,list-paddingleft-1,list-paddingleft-2,list-paddingleft-3,selectTdClass,noBorderTable,ue-table-interlace-color-single,ue-table-interlace-color-double,__bg_gif,weapp_text_link,weapp_image_link,js_img_loading,wx_video_context,db,wx_video_thumb_primary,wx_video_play_btn,wx_video_mask,qqmusic_area,tc,tips_global,unsupport_tips,qqmusic_wrp,appmsg_card_context,appmsg_card_active,qqmusic_bd,play_area,icon_qqmusic_switch,pic_qqmusic_default,qqmusic_thumb,access_area,qqmusic_songname,qqmusic_singername,qqmusic_source,js_audio_frame,share_audio_context,flex_context,pages_reset,share_audio_switch,icon_share_audio_switch,share_audio_info,flex_bd,share_audio_title,share_audio_tips,share_audio_progress_wrp,share_audio_progress,share_audio_progress_inner,share_audio_progress_buffer,share_audio_progress_loading,share_audio_progress_loading_inner,share_audio_progress_handle,share_audio_desc,share_audio_length_current,share_audio_length_total,video_iframe,vote_iframe,js_editor_vote_card,res_iframe,card_iframe,js_editor_card,weapp_display_element,js_weapp_display_element,weapp_card,app_context,weapp_card_bd,weapp_card_profile,radius_avatar,weapp_card_avatar,weapp_card_nickname,weapp_card_info,weapp_card_title,weapp_card_thumb_wrp,weapp_card_ft,weapp_card_logo,js_pay_btn,pay,pay__mask,wx_video_loading,js_redpacketcover,js_uneditable,js_uneditablemouseover,js_editor_qqmusic,js_editor_audio,ct_geography_loc_tip,js_poi_entry,subsc_context,subsc_btn,reset_btn,js_subsc_btn,icon_subsc'.split(','); varqaClassPrefix='qa__'; varwhiteListReg=[ newRegExp("^wxw"), newRegExp("^weui"), newRegExp("^appmsg"), newRegExp("^audio"), newRegExp("^music"), newRegExp("^cps_inner"), newRegExp("^bizsvr_"), newRegExp("^code-snippet"), newRegExp("^"+qaClassPrefix), newRegExp("^wx-edui-"), newRegExp("^wx_"), newRegExp("^wx-"), newRegExp('^js_darkmode__'), newRegExp('^js_wechannel'), ]; varuin=''; varkey=''; varpass_ticket=''; varnew_appmsg=1; varitem_show_type="0"; varcan_see_complaint="0"; varnot_in_mm_css="//res.wx.qq.com/mmbizwap/zh_CN/htmledition/> !function(e,t){ "object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define("Darkmode",[],t):"object"==typeofexports?exports.Darkmode=t():e.Darkmode=t(); }(window,function(){ returnfunction(e){ functiont(n){ if(r[n])returnr[n].exports; vara=r[n]={ i:n, l:!1, exports:{} }; returne[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports; } varr={}; returnt.m=e,t.c=r,t.d=function(e,r,n){ t.o(e,r)||Object.defineProperty(e,r,{ enumerable:!0, get:n }); },t.r=function(e){ "undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{ value:"Module" }),Object.defineProperty(e,"__esModule",{ value:!0 }); },t.t=function(e,r){ if(1&r&&(e=t(e)),8&r)returne; if(4&r&&"object"==typeofe&&e&&e.__esModule)returne; varn=Object.create(null); if(t.r(n),Object.defineProperty(n,"default",{ enumerable:!0, value:e }),2&r&&"string"!=typeofe)for(varaine)t.d(n,a,function(t){ returne[t]; }.bind(null,a)); returnn; },t.n=function(e){ varr=e&&e.__esModule?function(){ returne.default; }:function(){ returne; }; returnt.d(r,"a",r),r; },t.o=function(e,t){ returnObject.prototype.hasOwnProperty.call(e,t); },t.p="",t(t.s=9); }([function(e,t,r){ "usestrict"; functionn(e,t){ if(!(thisinstanceofn))returnnewn(e,t); if(t&&tinh&&(t=null),t&&!(tinu))thrownewError("Unknownmodel:"+t); varr,a; if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;elseif(einstanceofn)this.model=e.model, this.color=e.color.slice(),this.valpha=e.valpha;elseif("string"==typeofe){ varo=l.get(e); if(null===o)thrownewError("Unabletoparsecolorfromstring:"+e); this.model=o.model,a=u[this.model].channels,this.color=o.value.slice(0,a),this.valpha="number"==typeofo.value[a]?o.value[a]:1; }elseif(e.length){ this.model=t||"rgb",a=u[this.model].channels; vari=c.call(e,0,a); this.color=s(i,a),this.valpha="number"==typeofe[a]?e[a]:1; }elseif("number"==typeofe)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e], this.valpha=1;else{ this.valpha=1; vard=Object.keys(e); "alpha"ine&&(d.splice(d.indexOf("alpha"),1),this.valpha="number"==typeofe.alpha?e.alpha:0); varb=d.sort().join(""); if(!(binf))thrownewError("Unabletoparsecolorfromobject:"+JSON.stringify(e)); this.model=f[b]; varp=u[this.model].labels,m=[]; for(r=0;rr;r++){ vary=g[this.model][r]; y&&(this.color[r]=y(this.color[r])); } this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this); } functiona(e,t,r){ return(e=Array.isArray(e)?e:[e]).forEach(function(e){ (g[e]||(g[e]=[]))[t]=r; }),e=e[0],function(n){ vara; returnarguments.length?(r&&(n=r(n)),(a=this[e]()).color[t]=n,a):(a=this[e]().color[t], r&&(a=r(a)),a); }; } functiono(e){ returnfunction(t){ returnMath.max(0,Math.min(e,t)); }; } functioni(e){ returnArray.isArray(e)?e:[e]; } functions(e,t){ for(varr=0;t>r;r++)"number"!=typeofe[r]&&(e[r]=0); returne; } varl=r(3),u=r(6),c=[].slice,h=["keyword","gray","hex"],f={}; Object.keys(u).forEach(function(e){ f[c.call(u[e].labels).sort().join("")]=e; }); varg={}; n.prototype={ toString:function(){ returnthis.string(); }, toJSON:function(){ returnthis[this.model](); }, string:function(e){ vart=this.modelinl.to?this:this.rgb(),r=1===(t=t.round("number"==typeofe?e:1)).valpha?t.color:t.color.concat(this.valpha); returnl.to[t.model](r); }, percentString:function(e){ vart=this.rgb().round("number"==typeofe?e:1),r=1===t.valpha?t.color:t.color.concat(this.valpha); returnl.to.rgb.percent(r); }, array:function(){ return1===this.valpha?this.color.slice():this.color.concat(this.valpha); }, object:function(){ for(vare={},t=u[this.model].channels,r=u[this.model].labels,n=0;t>n;n++)e[r[n]]=this.color[n]; return1!==this.valpha&&(e.alpha=this.valpha),e; }, unitArray:function(){ vare=this.rgb().color; returne[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e; }, unitObject:function(){ vare=this.rgb().object(); returne.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e; }, round:function(e){ returne=Math.max(e||0,0),newn(this.color.map(function(e){ returnfunction(t){ returnfunction(e,t){ returnNumber(e.toFixed(t)); }(t,e); }; }(e)).concat(this.valpha),this.model); }, alpha:function(e){ returnarguments.length?newn(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha; }, red:a("rgb",0,o(255)), green:a("rgb",1,o(255)), blue:a("rgb",2,o(255)), hue:a(["hsl","hsv","hsl","hwb","hcg"],0,function(e){ return(e%360+360)%360; }), saturationl:a("hsl",1,o(100)), lightness:a("hsl",2,o(100)), saturationv:a("hsv",1,o(100)), value:a("hsv",2,o(100)), chroma:a("hcg",1,o(100)), gray:a("hcg",2,o(100)), white:a("hwb",1,o(100)), wblack:a("hwb",2,o(100)), cyan:a("cmyk",0,o(100)), magenta:a("cmyk",1,o(100)), yellow:a("cmyk",2,o(100)), black:a("cmyk",3,o(100)), x:a("xyz",0,o(100)), y:a("xyz",1,o(100)), z:a("xyz",2,o(100)), l:a("lab",0,o(100)), a:a("lab",1), b:a("lab",2), keyword:function(e){ returnarguments.length?newn(e):u[this.model].keyword(this.color); }, hex:function(e){ returnarguments.length?newn(e):l.to.hex(this.rgb().round().color); }, rgbNumber:function(){ vare=this.rgb().color; return(255&e[0])<<16|(255&e[1])<<8|255&e[2]; }, luminosity:function(){ for(vare=this.rgb().color,t=[],r=0;r=n?n/12.92:Math.pow((n+.055)/1.055,2.4); } return.2126*t[0]+.7152*t[1]+.0722*t[2]; }, contrast:function(e){ vart=this.luminosity(),r=e.luminosity(); returnt>r?(t+.05)/(r+.05):(r+.05)/(t+.05); }, level:function(e){ vart=this.contrast(e); returnt>=7.1?"AAA":t>=4.5?"AA":""; }, isDark:function(){ vare=this.rgb().color; return(299*e[0]+587*e[1]+114*e[2])/1e3<128; }, isLight:function(){ return!this.isDark(); }, negate:function(){ for(vare=this.rgb(),t=0;3>t;t++)e.color[t]=255-e.color[t]; returne; }, lighten:function(e){ vart=this.hsl(); returnt.color[2]+=t.color[2]*e,t; }, darken:function(e){ vart=this.hsl(); returnt.color[2]-=t.color[2]*e,t; }, saturate:function(e){ vart=this.hsl(); returnt.color[1]+=t.color[1]*e,t; }, desaturate:function(e){ vart=this.hsl(); returnt.color[1]-=t.color[1]*e,t; }, whiten:function(e){ vart=this.hwb(); returnt.color[1]+=t.color[1]*e,t; }, blacken:function(e){ vart=this.hwb(); returnt.color[2]+=t.color[2]*e,t; }, grayscale:function(){ vare=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2]; returnn.rgb(t,t,t); }, fade:function(e){ returnthis.alpha(this.valpha-this.valpha*e); }, opaquer:function(e){ returnthis.alpha(this.valpha+this.valpha*e); }, rotate:function(e){ vart=this.hsl(),r=t.color[0]; returnr=(r=(r+e)%360)<0?360+r:r,t.color[0]=r,t; }, mix:function(e,t){ if(!e||!e.rgb)thrownewError('Argumentto"mix"wasnotaColorinstance,butratheraninstanceof'+typeofe); varr=e.rgb(),a=this.rgb(),o=void0===t?.5:t,i=2*o-1,s=r.alpha()-a.alpha(),l=((i*s==-1?i:(i+s)/(1+i*s))+1)/2,u=1-l; returnn.rgb(l*r.red()+u*a.red(),l*r.green()+u*a.green(),l*r.blue()+u*a.blue(),r.alpha()*o+a.alpha()*(1-o)); } },Object.keys(u).forEach(function(e){ if(-1===h.indexOf(e)){ vart=u[e].channels; n.prototype[e]=function(){ if(this.model===e)returnnewn(this); if(arguments.length)returnnewn(arguments,e); varr="number"==typeofarguments[t]?t:this.valpha; returnnewn(i(u[this.model][e].raw(this.color)).concat(r),e); },n[e]=function(r){ return"number"==typeofr&&(r=s(c.call(arguments),t)),newn(r,e); }; } }),e.exports=n; },function(e){ "usestrict"; e.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] }; },function(e,t,r){ varn=r(7),a={}; for(varoinn)n.hasOwnProperty(o)&&(a[n[o]]=o); vari=e.exports={ 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"] } }; for(varsini)if(i.hasOwnProperty(s)){ if(!("channels"ini[s]))thrownewError("missingchannelsproperty:"+s); if(!("labels"ini[s]))thrownewError("missingchannellabelsproperty:"+s); if(i[s].labels.length!==i[s].channels)thrownewError("channelandlabelcountsmismatch:"+s); varl=i[s].channels,u=i[s].labels; deletei[s].channels,deletei[s].labels,Object.defineProperty(i[s],"channels",{ value:l }),Object.defineProperty(i[s],"labels",{ value:u }); } i.rgb.hsl=function(e){ vart,r,n=e[0]/255,a=e[1]/255,o=e[2]/255,i=Math.min(n,a,o),s=Math.max(n,a,o),l=s-i; returns===i?t=0:n===s?t=(a-o)/l:a===s?t=2+(o-n)/l:o===s&&(t=4+(n-a)/l),(t=Math.min(60*t,360))<0&&(t+=360), r=(i+s)/2,[t,100*(s===i?0:.5>=r?l/(s+i):l/(2-s-i)),100*r]; },i.rgb.hsv=function(e){ vart,r,n,a,o,i=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(i,s,l),c=u-Math.min(i,s,l),h=function(e){ return(u-e)/6/c+.5; }; return0===c?a=o=0:(o=c/u,t=h(i),r=h(s),n=h(l),i===u?a=n-r:s===u?a=1/3+t-n:l===u&&(a=2/3+r-t), 0>a?a+=1:a>1&&(a-=1)),[360*a,100*o,100*u]; },i.rgb.hwb=function(e){ vart=e[0],r=e[1],n=e[2]; return[i.rgb.hsl(e)[0],100*(1/255)*Math.min(t,Math.min(r,n)),100*(n=1-1/255*Math.max(t,Math.max(r,n)))]; },i.rgb.cmyk=function(e){ vart,r=e[0]/255,n=e[1]/255,a=e[2]/255; return[100*((1-r-(t=Math.min(1-r,1-n,1-a)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]; },i.rgb.keyword=function(e){ vart=a[e]; if(t)returnt; varr,o,i,s=1/0; for(varlinn)if(n.hasOwnProperty(l)){ varu=n[l],c=(o=e,i=u,Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2)+Math.pow(o[2]-i[2],2)); s>c&&(s=c,r=l); } returnr; },i.keyword.rgb=function(e){ returnn[e]; },i.rgb.xyz=function(e){ vart=e[0]/255,r=e[1]/255,n=e[2]/255; return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]; },i.rgb.lab=function(e){ vart=i.rgb.xyz(e),r=t[0],n=t[1],a=t[2]; returnn/=100,a/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]; },i.hsl.rgb=function(e){ vart,r,n,a,o,i=e[0]/360,s=e[1]/100,l=e[2]/100; if(0===s)return[o=255*l,o,o]; t=2*l-(r=.5>l?l*(1+s):l+s-l*s),a=[0,0,0]; for(varu=0;3>u;u++)(n=i+1/3*-(u-1))<0&&n++,n>1&&n--,o=1>6*n?t+6*(r-t)*n:1>2*n?r:2>3*n?t+(r-t)*(2/3-n)*6:t, a[u]=255*o; returna; },i.hsl.hsv=function(e){ vart=e[0],r=e[1]/100,n=e[2]/100,a=r,o=Math.max(n,.01); returnr*=(n*=2)<=1?n:2-n,a*=1>=o?o:2-o,[t,100*(0===n?2*a/(o+a):2*r/(n+r)),100*((n+r)/2)]; },i.hsv.rgb=function(e){ vart=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),i=255*n*(1-r),s=255*n*(1-r*o),l=255*n*(1-r*(1-o)); switch(n*=255,a){ case0: return[n,l,i]; case1: return[s,n,i]; case2: return[i,n,l]; case3: return[i,s,n]; case4: return[l,i,n]; case5: return[n,i,s]; } },i.hsv.hsl=function(e){ vart,r,n,a=e[0],o=e[1]/100,i=e[2]/100,s=Math.max(i,.01); returnn=(2-o)*i,r=o*s,[a,100*(r=(r/=(t=(2-o)*s)<=1?t:2-t)||0),100*(n/=2)]; },i.hwb.rgb=function(e){ vart,r,n,a,o,i,s,l=e[0]/360,u=e[1]/100,c=e[2]/100,h=u+c; switch(h>1&&(u/=h,c/=h),n=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(n=1-n),a=u+n*((r=1-c)-u), t){ default: case6: case0: o=r,i=a,s=u; break; case1: o=a,i=r,s=u; break; case2: o=u,i=r,s=a; break; case3: o=u,i=a,s=r; break; case4: o=a,i=u,s=r; break; case5: o=r,i=u,s=a; } return[255*o,255*i,255*s]; },i.cmyk.rgb=function(e){ vart=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100; return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]; },i.xyz.rgb=function(e){ vart,r,n,a=e[0]/100,o=e[1]/100,i=e[2]/100; returnr=-.9689*a+1.8758*o+.0415*i,n=.0557*a+-.204*o+1.057*i,t=(t=3.2406*a+-1.5372*o+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t, r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n, [255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]; },i.xyz.lab=function(e){ vart=e[0],r=e[1],n=e[2]; returnr/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]; },i.lab.xyz=function(e){ vart,r,n,a=e[0]; t=e[1]/500+(r=(a+16)/116),n=r-e[2]/200; varo=Math.pow(r,3),i=Math.pow(t,3),s=Math.pow(n,3); returnr=o>.008856?o:(r-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787, [t*=95.047,r*=100,n*=108.883]; },i.lab.lch=function(e){ vart,r=e[0],n=e[1],a=e[2]; return(t=360*Math.atan2(a,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+a*a),t]; },i.lch.lab=function(e){ vart,r=e[0],n=e[1]; returnt=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]; },i.rgb.ansi16=function(e){ vart=e[0],r=e[1],n=e[2],a=1inarguments?arguments[1]:i.rgb.hsv(e)[2]; if(0===(a=Math.round(a/50)))return30; varo=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255)); return2===a&&(o+=60),o; },i.hsv.ansi16=function(e){ returni.rgb.ansi16(i.hsv.rgb(e),e[2]); },i.rgb.ansi256=function(e){ vart=e[0],r=e[1],n=e[2]; returnt===r&&r===n?8>t?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5); },i.ansi16.rgb=function(e){ vart=e%10; if(0===t||7===t)returne>50&&(t+=3.5),[t=t/10.5*255,t,t]; varr=.5*(1+~~(e>50)); return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]; },i.ansi256.rgb=function(e){ if(e>=232){ vart=10*(e-232)+8; return[t,t,t]; } varr; returne-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]; },i.rgb.hex=function(e){ vart=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase(); return"000000".substring(t.length)+t; },i.hex.rgb=function(e){ vart=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); if(!t)return[0,0,0]; varr=t[0]; 3===t[0].length&&(r=r.split("").map(function(e){ returne+e; }).join("")); varn=parseInt(r,16); return[n>>16&255,n>>8&255,255&n]; },i.rgb.hcg=function(e){ vart,r=e[0]/255,n=e[1]/255,a=e[2]/255,o=Math.max(Math.max(r,n),a),i=Math.min(Math.min(r,n),a),s=o-i; returnt=0>=s?0:o===r?(n-a)/s%6:o===n?2+(a-r)/s:4+(r-n)/s+4,t/=6,[360*(t%=1),100*s,100*(1>s?i/(1-s):0)]; },i.hsl.hcg=function(e){ vart=e[1]/100,r=e[2]/100,n=1,a=0; return(n=.5>r?2*t*r:2*t*(1-r))<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]; },i.hsv.hcg=function(e){ vart=e[1]/100,r=e[2]/100,n=t*r,a=0; return1>n&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]; },i.hcg.rgb=function(e){ vart=e[0]/360,r=e[1]/100,n=e[2]/100; if(0===r)return[255*n,255*n,255*n]; vara,o=[0,0,0],i=t%1*6,s=i%1,l=1-s; switch(Math.floor(i)){ case0: o[0]=1,o[1]=s,o[2]=0; break; case1: o[0]=l,o[1]=1,o[2]=0; break; case2: o[0]=0,o[1]=1,o[2]=s; break; case3: o[0]=0,o[1]=l,o[2]=1; break; case4: o[0]=s,o[1]=0,o[2]=1; break; default: o[0]=1,o[1]=0,o[2]=l; } returna=(1-r)*n,[255*(r*o[0]+a),255*(r*o[1]+a),255*(r*o[2]+a)]; },i.hcg.hsv=function(e){ vart=e[1]/100,r=t+e[2]/100*(1-t),n=0; returnr>0&&(n=t/r),[e[0],100*n,100*r]; },i.hcg.hsl=function(e){ vart=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0; returnr>0&&.5>r?n=t/(2*r):r>=.5&&1>r&&(n=t/(2*(1-r))),[e[0],100*n,100*r]; },i.hcg.hwb=function(e){ vart=e[1]/100,r=t+e[2]/100*(1-t); return[e[0],100*(r-t),100*(1-r)]; },i.hwb.hcg=function(e){ vart=e[1]/100,r=1-e[2]/100,n=r-t,a=0; return1>n&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]; },i.apple.rgb=function(e){ return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]; },i.rgb.apple=function(e){ return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]; },i.gray.rgb=function(e){ return[e[0]/100*255,e[0]/100*255,e[0]/100*255]; },i.gray.hsl=i.gray.hsv=function(e){ return[0,0,e[0]]; },i.gray.hwb=function(e){ return[0,100,e[0]]; },i.gray.cmyk=function(e){ return[0,0,0,e[0]]; },i.gray.lab=function(e){ return[e[0],0,0]; },i.gray.hex=function(e){ vart=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase(); return"000000".substring(r.length)+r; },i.rgb.gray=function(e){ return[(e[0]+e[1]+e[2])/3/255*100]; }; },function(e,t,r){ functionn(e,t,r){ returnMath.min(Math.max(t,e),r); } functiona(e){ vart=e.toString(16).toUpperCase(); returnt.length<2?"0"+t:t; } varo=r(1),i=r(4),s={}; for(varlino)o.hasOwnProperty(l)&&(s[o[l]]=l); varu=e.exports={ to:{}, get:{} }; u.get=function(e){ vart,r; switch(e.substring(0,3).toLowerCase()){ case"hsl": t=u.get.hsl(e),r="hsl"; break; case"hwb": t=u.get.hwb(e),r="hwb"; break; default: t=u.get.rgb(e),r="rgb"; } returnt?{ model:r, value:t }:null; },u.get.rgb=function(e){ if(!e)returnnull; vart,r,a,i=[0,0,0,1]; if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){ for(a=t[2],t=t[1],r=0;3>r;r++){ vars=2*r; i[r]=parseInt(t.slice(s,s+2),16); } a&&(i[3]=Math.round(parseInt(a,16)/255*100)/100); }elseif(t=e.match(/^#([a-f0-9]{3,4})$/i)){ for(a=(t=t[1])[3],r=0;3>r;r++)i[r]=parseInt(t[r]+t[r],16); a&&(i[3]=Math.round(parseInt(a+a,16)/255*100)/100); }elseif(t=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){ for(r=0;3>r;r++)i[r]=parseInt(t[r+1],0); t[4]&&(i[3]=parseFloat(t[4])); }else{ if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(t=e.match(/(\D+)/))?"transparent"===t[1]?[0,0,0,0]:(i=o[t[1]])?(i[3]=1, i):null:null; for(r=0;3>r;r++)i[r]=Math.round(2.55*parseFloat(t[r+1])); t[4]&&(i[3]=parseFloat(t[4])); } for(r=0;3>r;r++)i[r]=n(i[r],0,255); returni[3]=n(i[3],0,1),i; },u.get.hsl=function(e){ if(!e)returnnull; vart=e.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/); if(t){ varr=parseFloat(t[4]); return[(parseFloat(t[1])+360)%360,n(parseFloat(t[2]),0,100),n(parseFloat(t[3]),0,100),n(isNaN(r)?1:r,0,1)]; } returnnull; },u.get.hwb=function(e){ if(!e)returnnull; vart=e.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/); if(t){ varr=parseFloat(t[4]); return[(parseFloat(t[1])%360+360)%360,n(parseFloat(t[2]),0,100),n(parseFloat(t[3]),0,100),n(isNaN(r)?1:r,0,1)]; } returnnull; },u.to.hex=function(){ vare=i(arguments); return"#"+a(e[0])+a(e[1])+a(e[2])+(e[3]<1?a(Math.round(255*e[3])):""); },u.to.rgb=function(){ vare=i(arguments); returne.length<4||1===e[3]?"rgb("+Math.round(e[0])+","+Math.round(e[1])+","+Math.round(e[2])+")":"rgba("+Math.round(e[0])+","+Math.round(e[1])+","+Math.round(e[2])+","+e[3]+")"; },u.to.rgb.percent=function(){ vare=i(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100); returne.length<4||1===e[3]?"rgb("+t+"%,"+r+"%,"+n+"%)":"rgba("+t+"%,"+r+"%,"+n+"%,"+e[3]+")"; },u.to.hsl=function(){ vare=i(arguments); returne.length<4||1===e[3]?"hsl("+e[0]+","+e[1]+"%,"+e[2]+"%)":"hsla("+e[0]+","+e[1]+"%,"+e[2]+"%,"+e[3]+")"; },u.to.hwb=function(){ vare=i(arguments),t=""; returne.length>=4&&1!==e[3]&&(t=","+e[3]),"hwb("+e[0]+","+e[1]+"%,"+e[2]+"%"+t+")"; },u.to.keyword=function(e){ returns[e.slice(0,3)]; }; },function(e,t,r){ "usestrict"; varn=r(5),a=Array.prototype.concat,o=Array.prototype.slice,i=e.exports=function(e){ for(vart=[],r=0,i=e.length;i>r;r++){ vars=e[r]; n(s)?t=a.call(t,o.call(s)):t.push(s); } returnt; }; i.wrap=function(e){ returnfunction(){ returne(i(arguments)); }; }; },function(e){ e.exports=function(e){ return!(!e||"string"==typeofe)&&(einstanceofArray||Array.isArray(e)||e.length>=0&&(e.spliceinstanceofFunction||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name)); }; },function(e,t,r){ varn=r(2),a=r(8),o={}; Object.keys(n).forEach(function(e){ o[e]={},Object.defineProperty(o[e],"channels",{ value:n[e].channels }),Object.defineProperty(o[e],"labels",{ value:n[e].labels }); vart=a(e); Object.keys(t).forEach(function(r){ varn=t[r]; o[e][r]=function(e){ vart=function(t){ if(null==t)returnt; arguments.length>1&&(t=Array.prototype.slice.call(arguments)); varr=e(t); if("object"==typeofr)for(varn=r.length,a=0;n>a;a++)r[a]=Math.round(r[a]); returnr; }; return"conversion"ine&&(t.conversion=e.conversion),t; }(n),o[e][r].raw=function(e){ vart=function(t){ returnnull==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)), e(t)); }; return"conversion"ine&&(t.conversion=e.conversion),t; }(n); }); }),e.exports=o; },function(e){ "usestrict"; e.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] }; },function(e,t,r){ functionn(e){ vart=function(){ for(vare={},t=Object.keys(i),r=t.length,n=0;r>n;n++)e[t[n]]={ distance:-1, parent:null }; returne; }(),r=[e]; for(t[e].distance=0;r.length;)for(varn=r.pop(),a=Object.keys(i[n]),o=a.length,s=0;o>s;s++){ varl=a[s],u=t[l]; -1===u.distance&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(l)); } returnt; } functiona(e,t){ returnfunction(r){ returnt(e(r)); }; } functiono(e,t){ for(varr=[t[e].parent,e],n=i[t[e].parent][e],o=t[e].parent;t[o].parent;)r.unshift(t[o].parent), n=a(i[t[o].parent][o],n),o=t[o].parent; returnn.conversion=r,n; } vari=r(2); e.exports=function(e){ for(vart=n(e),r={},a=Object.keys(t),i=a.length,s=0;i>s;s++){ varl=a[s]; null!==t[l].parent&&(r[l]=o(l,t)); } returnr; }; },function(e,t,r){ "usestrict"; functionn(e){ return(n="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){ returntypeofe; }:function(e){ returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe; })(e); } functiona(e,t){ for(varr=0;re.length)&&(t=e.length); for(varr=0,n=newArray(t);t>r;r++)n[r]=e[r]; returnn; } functiond(e){ vart; return(t=[e]).concat.apply(t,f(e.querySelectorAll("*"))); } functionb(e,t){ returnfunction(e){ returnArray.isArray(e)?e:void0; }(e)||function(e,t){ if("undefined"!=typeofSymbol&&Symbol.iteratorinObject(e)){ varr=[],n=!0,a=!1,o=void0; try{ for(vari,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0); }catch(e){ a=!0,o=e; }finally{ try{ n||null==s.return||s.return(); }finally{ if(a)throwo; } } returnr; } }(e,t)||m(e,t)||function(){ thrownewTypeError("Invalidattempttodestructurenon-iterableinstance.\nInordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method."); }(); } functionp(e){ returnfunction(e){ returnArray.isArray(e)?y(e):void0; }(e)||function(e){ return"undefined"!=typeofSymbol&&Symbol.iteratorinObject(e)?Array.from(e):void0; }(e)||m(e)||function(){ thrownewTypeError("Invalidattempttospreadnon-iterableinstance.\nInordertobeiterable,non-arrayobjectsmusthavea[Symbol.iterator]()method."); }(); } functionm(e,t){ if(e){ if("string"==typeofe)returny(e,t); varr=Object.prototype.toString.call(e).slice(8,-1); return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void0; } } functiony(e,t){ (null==t||t>e.length)&&(t=e.length); for(varr=0,n=newArray(t);t>r;r++)n[r]=e[r]; returnn; } functionv(e,t){ for(varr=0;r0&&void0!==arguments[0]?arguments[0]:{}; if(!tt.hasInit){ tt.hasInit=!0; vart=tt.whitelist.tagName; e.whitelist&&e.whitelist.tagNameinstanceofArray&&e.whitelist.tagName.forEach(function(e){ e=e.toUpperCase(),-1===t.indexOf(e)&&t.push(e); }),["dark","light"].indexOf(e.mode)>-1&&(rt("string",e,"mode"),document.getElementsByTagName("html")[0].classList.add(M)), rt("function",e,"begin"),rt("function",e,"error"),rt("boolean",e,"needJudgeFirstPage"), rt("boolean",e,"delayBgJudge"),rt("dom",e,"container"),rt("string",e,"cssSelectorsPrefix"), rt("string",e,"defaultLightTextColor"),rt("string",e,"defaultLightBgColor"),rt("string",e,"defaultDarkTextColor"), rt("string",e,"defaultDarkBgColor"),tt.mode||null!==lt||(lt=window.matchMedia(x)).addListener(ut); } } function_(e){ it.set(e),null!==tt.container&&(at.update(e),nt.update(e)),ut(lt,{ force:!0, type:"bg" }); } r.r(t),r.d(t,"run",function(){ returnk; }),r.d(t,"init",function(){ returnw; }),r.d(t,"convertBg",function(){ return_; }); varx="(prefers-color-scheme:dark)",M="data_color_scheme_dark",C="".concat(1*newDate).concat(Math.round(10*Math.random())),j="data-darkmode-color-".concat(C),S="data-darkmode-bgcolor-".concat(C),B="data-darkmode-original-color-".concat(C),A="data-darkmode-original-bgcolor-".concat(C),O="data-darkmode-bgimage-".concat(C),P=window.getInnerHeight&&window.getInnerHeight()||window.innerHeight||document.documentElement.clientHeight,E=["TABLE","TR","TD","TH"],T=navigator.userAgent,N=/windows\snt/i.test(T)&&!/Windows\sPhone/i.test(T)||/mac\sos/i.test(T)&&!/(iPhone|iPad|iPod|iOS)/i.test(T),L=/!important$/,F=function(){ functione(t,r){ !function(e,t){ if(!(einstanceoft))thrownewTypeError("Cannotcallaclassasafunction"); }(this,e),o(this,"_queue",[]),o(this,"_idx",0),this._config=t,this._prefix=r; } vart,r,i; returnt=e,(r=[{ key:"push", value:function(e){ vart="".concat(this._prefix).concat(this._idx++); e.classList.add(t),this._queue.push({ el:e, className:t, updated:!this._config.delayBgJudge }); } },{ key:"forEach", value:function(e){ vart=[]; for(this._queue.forEach(function(r,a){ r.updated&&(t.unshift(a),n(e)&&e(r.el)); });t.length;)this._queue.splice(t.shift(),1); } },{ key:"update", value:function(e){ this._queue.forEach(function(t){ t.updated||Array.prototype.some.call(e,function(e){ return!(1!==e.nodeType||!e.classList.contains(t.className)||(t.el=e,t.updated=!0, 0)); }); }); } }])&&a(t.prototype,r),i&&a(t,i),e; }(),D=function(){ functione(t,r){ !function(e,t){ if(!(einstanceoft))thrownewTypeError("Cannotcallaclassasafunction"); }(this,e),s(this,"_stack",[]),s(this,"_idx",0),this._config=t,this._prefix=r; } vart,r,n; returnt=e,(r=[{ key:"push", value:function(e,t){ varr="".concat(this._prefix).concat(this._idx++); e.classList.add(r),this._stack.unshift({ el:e, className:r, cssKV:t, updated:!this._config.delayBgJudge }); } },{ key:"contains", value:function(e,t){ varr=e.getBoundingClientRect(),n=[]; for(this._stack.forEach(function(e,t){ if(e.updated){ e.rect||(e.rect=e.el.getBoundingClientRect()); vara=e.rect; r.top>=a.bottom||r.bottom<=a.top||r.left>=a.right||r.right<=a.left||n.unshift(t); } });n.length;){ vara=this._stack.splice(n.shift(),1)[0]; "function"==typeoft&&t(a); } } },{ key:"update", value:function(e){ this._stack.forEach(function(t){ t.updated||Array.prototype.some.call(e,function(e){ return!(1!==e.nodeType||!e.classList.contains(t.className)||(t.el=e,t.updated=!0, 0)); }); }); } }])&&i(t.prototype,r),n&&i(t,n),e; }(),q=function(){ functione(t){ !function(e,t){ if(!(einstanceoft))thrownewTypeError("Cannotcallaclassasafunction"); }(this,e),u(this,"_firstPageStyle",""),u(this,"_otherPageStyle",""),u(this,"isFinish",!1), this._config=t; } vart,r,n; returnt=e,(r=[{ key:"genCssKV", value:function(e,t){ return"".concat(e,":").concat(t,"!important;"); } },{ key:"genCss", value:function(e,t){ return"".concat("dark"===this._config.mode?"html.".concat(M,""):"").concat(this._config.cssSelectorsPrefix&&"".concat(this._config.cssSelectorsPrefix,""),".").concat(e,"{").concat(t,"}"); } },{ key:"addCss", value:function(e,t){ this[t?"_firstPageStyle":"_otherPageStyle"]+=e; } },{ key:"writeStyle", value:function(e){ vart=""; e?t="_firstPageStyle":(this._otherPageStyle=this._firstPageStyle+this._otherPageStyle, this._firstPageStyle="",t="_otherPageStyle",this.isFinish=!0); varr=this[t]; r&&(document.head.insertAdjacentHTML("beforeend",'<>'.concat("dark"===this._config.mode?r:"@media".concat(x,"{").concat(r,"}"),"")), this[t]=""); } }])&&l(t.prototype,r),n&&l(t,n),e; }(),U={ "ue-table-interlace-color-single":"#fcfcfc", "ue-table-interlace-color-double":"#f7faff" },I=function(){ functione(t){ !function(e,t){ if(!(einstanceoft))thrownewTypeError("Cannotcallaclassasafunction"); }(this,e),h(this,"_nodes",[]),h(this,"_firstPageNodes",[]),h(this,"_delayNodes",[]), this._config=t; } vart,r,n; returnt=e,(r=[{ key:"set", value:function(){ vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:[]; this._nodes=e; } },{ key:"len", value:function(){ returnthis._nodes.length; } },{ key:"get", value:function(){ vare=[]; returnthis._nodes.length?(e=this._nodes,this._nodes=[]):this._delayNodes.length?(e=this._delayNodes, this._delayNodes=[]):this._config.container&&(e=this._config.container.querySelectorAll("*")), e; } },{ key:"delay", value:function(){ vare=this; Array.prototype.forEach.call(this._nodes,function(t){ returne._delayNodes.push(t); }),this._nodes=[]; } },{ key:"hasDelay", value:function(){ returnthis._delayNodes.length>0; } },{ key:"addFirstPageNode", value:function(e){ this._firstPageNodes.push(e); } },{ key:"showFirstPageNodes", value:function(){ this._firstPageNodes.forEach(function(e){ returne..visibility="visible"; }),this._firstPageNodes=[]; } }])&&c(t.prototype,r),n&&c(t,n),e; }(),z=r(0),V=r.n(z),K=r(1),J=r.n(K); J.a.windowtext=[0,0,0],J.a.transparent=[255,255,255,0]; varH=newRegExp(Object.keys(J.a).map(function(e){ return"\\b".concat(e,"\\b"); }).join("|"),"ig"),R=/\brgba?\([^)]+\)/i,$=/\brgba?\([^)]+\)/gi,Q=function(e){ returne.replace(L,""); },G=function(e,t){ returnQ(e).replace(H,function(e){ if(!t&&"transparent"===e)returne; varr=J.a[e.toLowerCase()]; return"".concat(r.length>3?"rgba":"rgb","(").concat(r.toString(),")"); }); },W=function(e){ if(!e||e.length<1)return""; if(1===e.length)returne[0]; for(vart=e.shift(),r=e.shift();r;){ varn=V()(r); t=V()(t).mix(n,n.alpha()),r=e.shift(); } returnt; },X=function(e){ vart=G(e); returnR.test(t)?t:""; },Y=function(e){ return(299*e[0]+
赞一下
(0)
0%
赞一下
(0)
0%

推荐内容