text
stringlengths 2
1.05M
|
|---|
import request from './request'
// 获取品牌列表
export function _brand(page,pageSize){
return request({
url:`/brand/pageList/${page}/${pageSize}`,
method:'get',
params:{page:page,pageSize:pageSize}
})
}
//上传图片
export function _fileUpload(params){
return request({
url:'/fileUpload',
method:'post',
data:params
})
}
//添加品牌信息
export function _addBrand(params){
return request({
url:'/brand/add',
method:'post',
data:params
})
}
|
/*
jQWidgets v13.2.0 (2022-Jan)
Copyright (c) 2011-2022 jQWidgets.
License: https://jqwidgets.com/license/
*/
/* eslint-disable */
(function(a){a.jqx.jqxWidget("jqxNavigationBar","",{});a.extend(a.jqx._jqxNavigationBar.prototype,{defineInstance:function(){var b={width:"auto",height:"auto",expandAnimationDuration:250,collapseAnimationDuration:250,animationType:"slide",toggleMode:"click",showArrow:true,arrowPosition:"right",disabled:false,initContent:null,rtl:false,easing:"easeInOutSine",expandMode:"singleFitHeight",expandedIndexes:[],_expandModes:["singleFitHeight","single","multiple","toggle","none"],aria:{"aria-disabled":{name:"disabled",type:"boolean"}},events:["expandingItem","expandedItem","collapsingItem","collapsedItem"]};if(this===a.jqx._jqxNavigationBar.prototype){return b}a.extend(true,this,b);return b},createInstance:function(){this._isTouchDevice=a.jqx.mobile.isTouchDevice();a.jqx.aria(this);this.render()},val:function(b){if(arguments.length===0||typeof(b)=="object"){return this.expandedIndexes}if(typeof b=="string"){this.expandedIndexes.push(parseInt(b,10));this._applyExpandedIndexes()}else{if(b instanceof Array){this.expandedIndexes=b}else{this.expandedIndexes=[b]}this._applyExpandedIndexes()}return this.expandedIndexes},expandAt:function(b){var f=this;if(this.expandMode=="single"||this.expandMode=="singleFitHeight"||this.expandMode=="toggle"){for(var c=0;c<f.items.length;c++){if(c!=b){f.collapseAt(c)}}}var g=this.items[b];if(g.disabled===false&&g.expanded===false&&g._expandChecker==1){g._expandChecker=0;this._raiseEvent("0",{item:b});g._headerHelper.removeClass(this.toThemeProperty("jqx-fill-state-normal"));g._headerHelper.addClass(this.toThemeProperty("jqx-fill-state-pressed jqx-expander-header-expanded"));g._arrowHelper.removeClass(this.toThemeProperty("jqx-icon-arrow-down jqx-icon-arrow-down-hover jqx-icon-arrow-up-hover jqx-icon-arrow-down-selected jqx-expander-arrow-top"));g._arrowHelper.addClass(this.toThemeProperty("jqx-icon-arrow-up jqx-icon-arrow-up-selected jqx-expander-arrow-bottom jqx-expander-arrow-expanded"));if(this.heightFlag===false){f.element.style.overflowX="hidden";f.element.style.overflowY="hidden"}this.eCFlag=1;switch(this.animationType){case"slide":var e=g._contentHelper,h=0,d=e.outerHeight();e.slideDown({duration:this.expandAnimationDuration,easing:this.easing,step:function(i,j){j.now=Math.round(i);if(j.prop!=="height"){h+=j.now}else{if(f._collapseContent){j.now=Math.round(d-f._collapseContent.outerHeight()-h);h=0}else{j.now=Math.round(i)}}},complete:function(){g.expanded=true;a.jqx.aria(g._header,"aria-expanded",true);a.jqx.aria(g._content,"aria-hidden",false);f._updateExpandedIndexes();f._raiseEvent("1",{item:b});f._checkHeight();if(f.heightFlag===true){f.element.style.overflowX="hidden";f.element.style.overflowY="auto"}if(f.initContent&&g._initialized===false){f.initContent(b);g._initialized=true}f.eCFlag=0}});break;case"fade":setTimeout(function(){g._contentHelper.fadeIn({duration:this.expandAnimationDuration,complete:function(){g.expanded=true;a.jqx.aria(g._header,"aria-expanded",true);a.jqx.aria(g._content,"aria-hidden",false);f._updateExpandedIndexes();f._raiseEvent("1",{item:b});f._checkHeight();if(f.heightFlag===true){f.element.style.overflowX="hidden";f.element.style.overflowY="auto"}if(f.initContent&&g._initialized===false){f.initContent(b);g._initialized=true}f.eCFlag=0}})},this.collapseAnimationDuration);break;case"none":g._content.style.display="";g.expanded=true;a.jqx.aria(g._header,"aria-expanded",true);a.jqx.aria(g._content,"aria-hidden",false);this._updateExpandedIndexes();this._raiseEvent("1",{item:b});this._checkHeight();if(this.heightFlag===true){f.element.style.overflowX="hidden";f.element.style.overflowY="auto"}if(this.initContent&&g._initialized===false){this.initContent(b);g._initialized=true}this.eCFlag=0;break}}},collapseAt:function(b){var e=this.items[b];if(e.disabled===false&&e.expanded===true&&e._expandChecker===0){var d=this;e._expandChecker=1;this._raiseEvent("2",{item:b});e._headerHelper.removeClass(this.toThemeProperty("jqx-fill-state-pressed jqx-expander-header-expanded"));e._headerHelper.addClass(this.toThemeProperty("jqx-fill-state-normal"));e._arrowHelper.removeClass(this.toThemeProperty("jqx-icon-arrow-up jqx-icon-arrow-up-selected jqx-icon-arrow-down-selected jqx-expander-arrow-bottom jqx-expander-arrow-expanded"));e._arrowHelper.addClass(this.toThemeProperty("jqx-icon-arrow-down jqx-expander-arrow-top"));if(this.heightFlag===false){d.element.style.overflowX="hidden";d.element.style.overflowY="hidden"}this.eCFlag=1;this._collapseContent=e._contentHelper;switch(this.animationType){case"slide":var c=e._contentHelper;c.slideUp({duration:this.collapseAnimationDuration,step:function(f,g){g.now=Math.round(f)},easing:this.easing,complete:function(){e.expanded=false;e._content.style.display="none";a.jqx.aria(e._header,"aria-expanded",false);a.jqx.aria(e._content,"aria-hidden",true);d._updateExpandedIndexes();d._raiseEvent("3",{item:b});d._checkHeight();if(d.heightFlag===true){d.element.style.overflowX="hidden";d.element.style.overflowY="auto"}d.eCFlag=0;d._collapseContent=null}});break;case"fade":e._contentHelper.fadeOut({duration:this.collapseAnimationDuration,complete:function(){e.expanded=false;a.jqx.aria(e._header,"aria-expanded",false);a.jqx.aria(e._content,"aria-hidden",true);d._updateExpandedIndexes();d._raiseEvent("3",{item:b});d._checkHeight();if(d.heightFlag===true){d.element.style.overflowX="hidden";d.element.style.overflowY="auto"}d.eCFlag=0}});break;case"none":e._content.style.display="none";e.expanded=false;a.jqx.aria(e._header,"aria-expanded",false);a.jqx.aria(e._content,"aria-hidden",true);this._updateExpandedIndexes();this._raiseEvent("3",{item:b});this._checkHeight();if(this.heightFlag===true){d.element.style.overflowX="hidden";d.element.style.overflowY="auto"}this.eCFlag=0;break}}},setHeaderContentAt:function(b,c){this.items[b]._headerText.innerHTML=c},getHeaderContentAt:function(b){return this.items[b]._headerText.innerHTML},setContentAt:function(b,c){this.items[b]._content.innerHTML=c;this._checkContent(b)},getContentAt:function(b){return this.items[b]._content.innerHTML},showArrowAt:function(b){this.items[b]._arrow.style.display="block"},hideArrowAt:function(b){this.items[b]._arrow.style.display="none"},enable:function(){this.disabled=false;this._enabledDisabledCheck();this.refresh();a.jqx.aria(this,"aria-disabled",false)},disable:function(){this.disabled=true;this._enabledDisabledCheck();this.refresh();a.jqx.aria(this,"aria-disabled",true)},enableAt:function(b){this.items[b].disabled=false;this.refresh()},disableAt:function(b){this.items[b].disabled=true;this.refresh()},invalidate:function(){this.refresh()},refresh:function(c){if(c===true){return}this._removeHandlers();for(var b=0;b<this.items.length;b++){this.items[b]._arrow.style.display=this.showArrow?"block":"none"}this._updateExpandedIndexes();this._setTheme();this._setSize();this._toggle();this._keyBoard()},render:function(){this.widgetID=this.element.id;var s=this;if(this._expandModes.indexOf(this.expandMode)==-1){this.expandMode="singleFitHeight"}a.jqx.utilities.resize(this.host,function(){s._setSize()});s.element.setAttribute("role","tablist");if(this.items){this._removeHandlers();a.each(this.items,function(){this._header.className="";this._header.setAttribute("tabindex",null);this._header.style.marginTop="0px";this._headerText.className="";this._header.innerHTML=this._headerText.innerHTML;this._content.setAttribute("tabindex",null)})}this.items=[];var t=s.host.children(),p=t.length;var w="Invalid jqxNavigationBar structure. Please add an even number of child div elements that will represent each item's header and content.";try{if(p%2!==0){throw w}}catch(d){throw new Error(d)}var g="Invalid jqxNavigationBar structure. Please make sure all the children elements of the navigationbar are divs.";try{for(var u=0;u<p;u++){if(t[u].tagName.toLowerCase()!="div"){throw g}}}catch(d){throw new Error(d)}for(var x=0;x<p;x+=2){var r=t[x];r.innerHTML="<div>"+r.innerHTML+"</div>"}var o=0;var h;for(var n=0;n<p/2;n++){h=o+1;var v={};v={};v._header=t[o];v._headerHelper=a(t[o]);t[o].setAttribute("role","tab");v._content=t[h];v._contentHelper=a(t[h]);if(v._contentHelper.initAnimate){v._contentHelper.initAnimate()}v.expandedFlag=false;v.expanded=false;v.focusedH=false;v.focusedC=false;this.items[n]=v;t[h].setAttribute("role","tabpanel");o+=2}var b=this.expandedIndexes.length;if(this.items&&this.items.length===0){return}if(this.expandMode=="single"||this.expandMode=="singleFitHeight"||this.expandMode=="toggle"||this.expandMode=="none"){if(b!==0){this.items[this.expandedIndexes[0]].expanded=true}else{if(b===0&&(this.expandMode=="single"||this.expandMode=="singleFitHeight")){this.items[0].expanded=true}}}else{if(this.expandMode=="multiple"){if(b!==0){for(var f=0;f<b;f++){s.items[this.expandedIndexes[f]].expanded=true}}}}this._enabledDisabledCheck();var q=0;a.each(this.items,function(c){var i=this;i._headerText=a(i._header).children()[0];if(!s.rtl){a(i._headerText).addClass(s.toThemeProperty("jqx-expander-header-content"))}else{a(i._headerText).addClass(s.toThemeProperty("jqx-expander-header-content-rtl"))}i._arrow=document.createElement("div");i._arrowHelper=a(i._arrow);i._header.appendChild(i._arrow);if(s.showArrow){i._arrow.style.display="block"}else{i._arrow.style.display="none"}if(i.expanded===true){i._arrowHelper.addClass(s.toThemeProperty("jqx-icon-arrow-up jqx-icon-arrow-up-selected jqx-expander-arrow-bottom jqx-expander-arrow-expanded"));if(s.initContent){setTimeout(function(){s.initContent(c);i._initialized=true},10)}else{i._initialized=true}i._expandChecker=0;a.jqx.aria(i._header,"aria-expanded",true);a.jqx.aria(i._content,"aria-hidden",false)}else{if(i.expanded===false){i._arrowHelper.addClass(s.toThemeProperty("jqx-icon-arrow-down jqx-expander-arrow-top"));i._initialized=false;i._expandChecker=1;i._content.style.display="none";a.jqx.aria(i._header,"aria-expanded",false);a.jqx.aria(i._content,"aria-hidden",true)}}if(i._header.getAttribute("tabindex")===null){q++;i._header.setAttribute("tabindex",q)}if(i._content.getAttribute("tabindex")===null){q++;i._content.setAttribute("tabindex",q)}});this._setTheme();this._setSize();for(var e=0;e<s.items.length;e++){s._checkContent(e)}this._toggle();this._keyBoard()},insert:function(b,g,e){var f=document.createElement("div"),c=document.createElement("div");f.innerHTML=g;c.innerHTML=e;if(b>=0&&b<=this.items.length){var d=this.items[b]._header;this.element.insertBefore(f,d);this.element.insertBefore(c,d)}else{this.element.appendChild(f);this.element.appendChild(c)}this.render()},add:function(c,b){this.insert(-1,c,b)},update:function(b,d,c){this.setHeaderContentAt(b,d);this.setContentAt(b,c)},remove:function(b){if(isNaN(b)){b=this.items.length-1}if(!this.items[b]){return}this.items[b]._header.remove();this.items[b]._content.remove();this.items.splice(b,1);var c=this.expandedIndexes.indexOf(b);if(c>-1){this.expandedIndexes.splice(c,1)}this.render()},destroy:function(){this._removeHandlers();this.host.remove()},focus:function(){try{for(var c=0;c<this.items.length;c++){var d=this.items[c];if(d.disabled===false){d._header.focus();return false}}}catch(b){}},_applyExpandedIndexes:function(){var g=this;var f=this.expandedIndexes.length;for(var d=0;d<f;d++){var h=g.expandedIndexes[d];for(var c=0;c<g.items.length;c++){var e=g.items[c];if(c==h){e.expandedFlag=true;if(e.expanded===false){g.expandAt(c)}if(g.expandMode=="single"||g.expandMode=="singleFitHeight"||g.expandMode=="toggle"||g.expandMode=="none"){return false}}else{if(c!=h&&e.expandedFlag===false){g.collapseAt(c)}}}}for(var b=0;b<g.items.length;b++){g.items[b].expandedFlag=false}},propertiesChangedHandler:function(b,c,d){if(d.width&&d.height&&Object.keys(d).length==2){b._setSize()}},propertyChangedHandler:function(b,c,e,d){if(b.batchUpdate&&b.batchUpdate.width&&b.batchUpdate.height&&Object.keys(b.batchUpdate).length==2){return}if(c=="width"||c=="height"){b._setSize();return}if(c==="theme"){b.render();return}if(c=="disabled"){b._enabledDisabledCheck()}else{if(c=="expandedIndexes"){b._applyExpandedIndexes()}else{b.refresh()}}},_raiseEvent:function(g,e){var c=this.events[g];var f=new a.Event(c);f.owner=this;f.args=e;f.item=f.args.item;var b;try{b=this.host.trigger(f)}catch(d){}return b},resize:function(c,b){this.width=c;this.height=b;this._setSize()},_setSize:function(){var k=this;this.headersHeight=0;var e=this.items&&this.items.length>0?parseInt(this.items[0]._headerHelper.css("padding-left"),10):0;var d=this.items&&this.items.length>0?parseInt(this.items[0]._headerHelper.css("padding-right"),10):0;var b=2;var c=e+d+b;if(isNaN(c)){c=12}if(this.width=="auto"){k.element.style.width="auto"}else{if(this.width!=null&&this.width.toString().indexOf("%")!=-1){k.element.style.width=k.width}else{k.element.style.width=(parseInt(this.width,10)+c)+"px"}}if(typeof k.height==="number"){k.element.style.height=k.height+"px"}else{k.element.style.height=k.height}for(var h=0;h<k.items.length;h++){var n=k.items[h];var f=k.arrowPosition;if(k.rtl){switch(f){case"left":f="right";break;case"right":f="left";break}}if(f=="right"){n._headerText.style["float"]="left";n._headerText.style.marginLeft="0px";n._arrow.style["float"]="right";n._arrow.style.position="relative"}else{if(f=="left"){if(k.width=="auto"){n._headerText.style["float"]="left";n._headerText.style.marginLeft="17px";n._arrow.style["float"]="left";n._arrow.style.position="absolute"}else{n._headerText.style["float"]="right";n._headerText.style.marginLeft="0px";n._arrow.style["float"]="left";n._arrow.style.position="relative"}}}n._header.style.height="auto";n._headerText.style.minHeight=n._arrow.offsetHeight;k.headersHeight+=a(n._header).outerHeight();n._arrow.style.marginTop=(n._headerText.offsetHeight/2-n._arrow.offsetHeight/2)+"px"}for(var g=0;g<k.items.length;g++){var m=k.items[g];if(k.height!="auto"){if(k.expandMode=="single"||k.expandMode=="toggle"||k.expandMode=="multiple"){k.element.style.overflowX="hidden";k.element.style.overflowY="auto"}else{if(k.expandMode=="singleFitHeight"){var l=parseInt(m._contentHelper.css("padding-top"),10)+parseInt(m._contentHelper.css("padding-bottom"),10);if(k.height&&k.height.toString().indexOf("%")>=0){m._content.style.height=Math.max(0,(k.element.offsetHeight-k.headersHeight-l+2))+"px"}else{m._content.style.height=Math.max(0,(k.element.offsetHeight-k.headersHeight-l))+"px"}}}}}k._checkHeight()},_toggle:function(){var b=this;if(this._isTouchDevice===false){switch(this.toggleMode){case"click":case"dblclick":a.each(this.items,function(c){var d=this;if(d.disabled===false){b.addHandler(d._header,b.toggleMode+".navigationbar"+b.widgetID,function(){b.focusedH=true;b._animate(c)})}});break;case"none":break}}else{if(this.toggleMode!="none"){a.each(this.items,function(c){var d=this;if(d.disabled===false){b.addHandler(d._header,a.jqx.mobile.getTouchEventName("touchstart")+"."+b.widgetID,function(){b._animate(c)})}})}else{return}}},_animate:function(c,b){var d=this;var e=this.items[c];if(this.expandMode!="none"&&this.eCFlag!=1){if(this.items[c].expanded===true){if(this.expandMode=="multiple"||this.expandMode=="toggle"){this.collapseAt(c)}}else{this.expandAt(c)}if(!d._isTouchDevice){if(b!==true){e._headerHelper.addClass(this.toThemeProperty("jqx-fill-state-hover jqx-expander-header-hover"));e._arrowHelper.addClass(this.toThemeProperty("jqx-expander-arrow-top-hover jqx-expander-arrow-down-hover"))}else{e._headerHelper.removeClass(this.toThemeProperty("jqx-fill-state-hover jqx-expander-header-hover"));e._arrowHelper.removeClass(this.toThemeProperty("jqx-expander-arrow-top-hover jqx-expander-arrow-down-hover"))}}}},_removeHandlers:function(){var d=this;this.removeHandler(this.host,"keydown.navigationbar"+this.widgetID);for(var b=0;b<d.items.length;b++){var c=d.items[b];d.removeHandler(c._header,"click.navigationbar"+d.widgetID);d.removeHandler(c._header,"dblclick.navigationbar"+d.widgetID);d.removeHandler(c._header,"mouseenter.navigationbar"+d.widgetID);d.removeHandler(c._header,"mouseleave.navigationbar"+d.widgetID);d.removeHandler(c._header,"focus.navigationbar"+d.widgetID);d.removeHandler(c._header,"blur.navigationbar"+d.widgetID);d.removeHandler(c._content,"focus.navigationbar"+d.widgetID);d.removeHandler(c._content,"blur.navigationbar"+d.widgetID);d.removeHandler(c._headerText,"focus.navigationbar"+d.widgetID);d.removeHandler(c._arrow,"focus.navigationbar"+d.widgetID)}},_setTheme:function(){var b=this;this.host.addClass(this.toThemeProperty("jqx-reset jqx-widget"));if(this.rtl===true){this.host.addClass(this.toThemeProperty("jqx-rtl"))}a.each(this.items,function(e){var g=this,h=g._headerHelper,i=g._arrowHelper,c=g._contentHelper,f="jqx-widget-header jqx-item jqx-expander-header",d="jqx-widget-content jqx-expander-content jqx-expander-content-bottom";g._header.style.position="relative";g._content.style.position="relative";if(g.disabled===false){h.removeClass(b.toThemeProperty("jqx-fill-state-disabled"));c.removeClass(b.toThemeProperty("jqx-fill-state-disabled"));if(g.expanded===true){f+=" jqx-fill-state-pressed jqx-expander-header-expanded"}else{f+=" jqx-fill-state-normal";h.removeClass(b.toThemeProperty("jqx-expander-header-expanded"))}if(!b._isTouchDevice){b.addHandler(g._header,"mouseenter.navigationbar"+b.widgetID,function(){if(g._expandChecker==1){if(!g.focusedH){g._header.style.zIndex=5}h.removeClass(b.toThemeProperty("jqx-fill-state-normal jqx-fill-state-pressed"));h.addClass(b.toThemeProperty("jqx-fill-state-hover jqx-expander-header-hover"));i.addClass(b.toThemeProperty("jqx-expander-arrow-top-hover jqx-expander-arrow-down-hover"));if(g.expanded){i.addClass(b.toThemeProperty("jqx-icon-arrow-up-hover"))}else{i.addClass(b.toThemeProperty("jqx-icon-arrow-down-hover"))}}});b.addHandler(g._header,"mouseleave.navigationbar"+b.widgetID,function(){if(!g.focusedH){g._header.style.zIndex=0}h.removeClass(b.toThemeProperty("jqx-fill-state-hover jqx-expander-header-hover"));i.removeClass(b.toThemeProperty("jqx-expander-arrow-top-hover jqx-expander-arrow-down-hover jqx-icon-arrow-up-hover jqx-icon-arrow-down-hover"));if(g._expandChecker==1){h.addClass(b.toThemeProperty("jqx-fill-state-normal"))}else{h.addClass(b.toThemeProperty("jqx-fill-state-pressed"))}})}}else{f+=" jqx-fill-state-disabled";d+=" jqx-fill-state-disabled"}b.host.addClass(b.toThemeProperty("jqx-navigationbar"));h.addClass(b.toThemeProperty(f));c.addClass(b.toThemeProperty(d));if(e!==0){g._header.style.marginTop="-1px"}i.addClass(b.toThemeProperty("jqx-expander-arrow"))})},_checkContent:function(b){var d=this.items[b];var c=d._content;this._cntntEmpty=/^\s*$/.test(this.items[b]._content.innerHTML);if(this._cntntEmpty===true){c.style.display="none";c.style.height="0px";d._contentHelper.addClass(this.toThemeProperty("jqx-expander-content-empty"))}else{if(d.expanded){c.style.display="block"}if(this.expandMode=="singleFitHeight"){var e=1;if(b!==0){}c.style.height=Math.max(0,(this.element.offsetHeight-this.headersHeight+this.items.length-2))+"px"}else{c.style.height="auto"}d._contentHelper.removeClass(this.toThemeProperty("jqx-expander-content-empty"))}},_checkHeight:function(){var h=this;if(typeof h.width==="string"&&h.width.indexOf("%")!==-1){return}var j=0;var e=this.items&&this.items.length>0?parseInt(this.items[0]._headerHelper.css("padding-left"),10):0;var d=this.items&&this.items.length>0?parseInt(this.items[0]._headerHelper.css("padding-right"),10):0;var b=2;var c=e+d+b;if(isNaN(c)){c=12}var g=17;for(var f=0;f<h.items.length;f++){var k=h.items[f];j+=(k.expanded?k._contentHelper.outerHeight():0)+k._headerHelper.outerHeight()}if(this.width!="auto"&&this.height!="auto"&&this.expandMode!="singleFitHeight"){if(j>h.element.offsetHeight){h.element.style.width=(parseInt(this.width,10)+c+g)+"px";this.heightFlag=true}else{h.element.style.width=(parseInt(this.width,10)+c)+"px";this.heightFlag=false}}},_enabledDisabledCheck:function(){for(var b=0;b<this.items.length;b++){this.items[b].disabled=this.disabled}},_updateExpandedIndexes:function(){var b=this;this.expandedIndexes=[];a.each(this.items,function(c){var d=this;if(d.expanded===true){b.expandedIndexes.push(c);if(b.expandMode=="single"||b.expandMode=="singleFitHeight"||b.expandMode=="toggle"||b.expandMode=="none"){return false}}})},_keyBoard:function(){var b=this;this._focus();this.addHandler(this.host,"keydown.navigationbar"+this.widgetID,function(d){var e=false,c=b.items.length;a.each(b.items,function(f){var g=this;if((g.focusedH===true||g.focusedC===true)&&g.disabled===false){switch(d.keyCode){case 13:case 32:if(b.toggleMode!="none"){if(g.focusedH===true){b._animate(f,true)}e=true}break;case 37:if(f!==0){b.items[f-1]._header.focus()}else{b.items[c-1]._header.focus()}e=true;break;case 38:if(d.ctrlKey===false){if(f!==0){b.items[f-1]._header.focus()}else{b.items[c-1]._header.focus()}}else{if(g.focusedC===true){g._header.focus()}}e=true;break;case 39:if(f!=c-1){b.items[f+1]._header.focus()}else{b.items[0]._header.focus()}e=true;break;case 40:if(d.ctrlKey===false){if(f!=c-1){b.items[f+1]._header.focus()}else{b.items[0]._header.focus()}}else{if(g.expanded===true){g._content.focus()}}e=true;break;case 35:if(f!=c-1){b.items[c-1]._header.focus()}e=true;break;case 36:if(f!==0){b.items[0]._header.focus()}e=true;break}return false}});if(e&&d.preventDefault){d.preventDefault()}return !e})},_focus:function(){var b=this;if(this.disabled){return}a.each(this.items,function(){var c=this;b.addHandler(c._header,"focus.navigationbar"+this.widgetID,function(){c.focusedH=true;a.jqx.aria(c._header,"aria-selected",true);c._headerHelper.addClass(b.toThemeProperty("jqx-fill-state-focus"));c._header.style.zIndex=10});b.addHandler(c._header,"blur.navigationbar"+this.widgetID,function(){c.focusedH=false;a.jqx.aria(c._header,"aria-selected",false);if(c._header.className.indexOf("jqx-expander-header-hover")!==-1){c._header.style.zIndex=5}else{c._header.style.zIndex=0}c._headerHelper.removeClass(b.toThemeProperty("jqx-fill-state-focus"))});b.addHandler(c._headerText,"focus.navigationbar"+this.widgetID,function(){c._header.focus()});b.addHandler(c._arrow,"focus.navigationbar"+this.widgetID,function(){c._header.focus()});b.addHandler(c._content,"focus.navigationbar"+this.widgetID,function(){c.focusedC=true;c._contentHelper.addClass(b.toThemeProperty("jqx-fill-state-focus"))});b.addHandler(c._content,"blur.navigationbar"+this.widgetID,function(){c.focusedC=false;c._contentHelper.removeClass(b.toThemeProperty("jqx-fill-state-focus"))})})}})})(jqxBaseFramework);
|
import MainLayout from './main';
const content = '<div><MainLayout><div slot="main"><slot></slot></div></MainLayout></div>';
const template = `<!DOCTYPE html>
<html lang="en">
<head>
<title>{{title}}</title>
<meta name="keywords" :content="keywords">
<meta name="description" :content="description">
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
</head>
<body :class="baseClass">
<div id="app">${content}</div>
</body>
</html>`;
export default {
name: 'Layout',
props: [ 'title', 'description', 'keywords' ],
components: {
MainLayout
},
computed: {
vTitle() {
return this.$root.title || this.title || 'Egg + Vue';
},
vKeywords() {
return this.$root.keywords || this.keywords || 'egg, vue, webpack, server side render';
},
vDescription() {
return this.$root.description || this.description || 'egg-vue-webpack server side render';
},
baseClass() {
return this.$root.baseClass;
}
},
template: EASY_ENV_IS_NODE ? template : content
};
|
const HDWalletProvider = require('@truffle/hdwallet-provider');
// Standalone Development Node Private Key
const privateKeyDev =
'cf92cec0a7809e0edd653979b5c3a9f475191e0d75d985ed0330be403ee8102e';
// Moonbase Alpha Private Key --> Please change this to your own Private Key with funds
// NOTE: Do not store your private key in plaintext files
// this is only for demostration purposes only
const privateKeyMoonbase =
'YOUR_PRIVATE_KEY_HERE_ONLY_FOR_DEMOSTRATION_PURPOSES';
module.exports = {
networks: {
// Standalode Network
dev: {
provider: () => {
if (!privateKeyDev.trim()) {
throw new Error(
'Please enter a private key with funds, you can use the default one'
);
}
return new HDWalletProvider(
privateKeyDev,
'http://localhost:9933/'
);
},
network_id: 1281,
},
// Moonbase Alpha TestNet
moonbase: {
provider: () => {
if (!privateKeyMoonbase.trim()) {
throw new Error(
'Please enter a private key with funds to send transactions to TestNet'
);
}
if (privateKeyDev == privateKeyMoonbase) {
throw new Error(
'Please change the private key used for Moonbase to your own with funds'
);
}
return new HDWalletProvider(
privateKeyMoonbase,
'https://rpc.testnet.moonbeam.network'
);
},
network_id: 1287,
},
},
// Solidity 0.7.0 Compiler
compilers: {
solc: {
version: '^0.7.0',
},
},
// Moonbeam Truffle Plugin
plugins: ['moonbeam-truffle-plugin'],
};
|
'use strict';
const Point = require('@mapbox/point-geometry');
module.exports = clipLine;
/**
* Returns the part of a multiline that intersects with the provided rectangular box.
*
* @param lines
* @param x1 the left edge of the box
* @param y1 the top edge of the box
* @param x2 the right edge of the box
* @param y2 the bottom edge of the box
* @returns lines
* @private
*/
function clipLine(lines, x1, y1, x2, y2) {
const clippedLines = [];
for (let l = 0; l < lines.length; l++) {
const line = lines[l];
let clippedLine;
for (let i = 0; i < line.length - 1; i++) {
let p0 = line[i];
let p1 = line[i + 1];
if (p0.x < x1 && p1.x < x1) {
continue;
} else if (p0.x < x1) {
p0 = new Point(x1, p0.y + (p1.y - p0.y) * ((x1 - p0.x) / (p1.x - p0.x)))._round();
} else if (p1.x < x1) {
p1 = new Point(x1, p0.y + (p1.y - p0.y) * ((x1 - p0.x) / (p1.x - p0.x)))._round();
}
if (p0.y < y1 && p1.y < y1) {
continue;
} else if (p0.y < y1) {
p0 = new Point(p0.x + (p1.x - p0.x) * ((y1 - p0.y) / (p1.y - p0.y)), y1)._round();
} else if (p1.y < y1) {
p1 = new Point(p0.x + (p1.x - p0.x) * ((y1 - p0.y) / (p1.y - p0.y)), y1)._round();
}
if (p0.x >= x2 && p1.x >= x2) {
continue;
} else if (p0.x >= x2) {
p0 = new Point(x2, p0.y + (p1.y - p0.y) * ((x2 - p0.x) / (p1.x - p0.x)))._round();
} else if (p1.x >= x2) {
p1 = new Point(x2, p0.y + (p1.y - p0.y) * ((x2 - p0.x) / (p1.x - p0.x)))._round();
}
if (p0.y >= y2 && p1.y >= y2) {
continue;
} else if (p0.y >= y2) {
p0 = new Point(p0.x + (p1.x - p0.x) * ((y2 - p0.y) / (p1.y - p0.y)), y2)._round();
} else if (p1.y >= y2) {
p1 = new Point(p0.x + (p1.x - p0.x) * ((y2 - p0.y) / (p1.y - p0.y)), y2)._round();
}
if (!clippedLine || !p0.equals(clippedLine[clippedLine.length - 1])) {
clippedLine = [p0];
clippedLines.push(clippedLine);
}
clippedLine.push(p1);
}
}
return clippedLines;
}
|
const logger = require('../config/logger_config');
const dbConnect = require('../utils/db_connect');
const dbSelect = require('../utils/db_select');
async function connectedUsers(wss, clientId) {
try {
const vpnOnlineRows = await dbConnect.dashboard.query(dbSelect.vpnOnline);
if (clientId) {
clientId.send(
JSON.stringify({
event: 'event_vpn_online',
data: vpnOnlineRows,
}),
);
} else {
wss.clients.forEach(client => {
client.send(
JSON.stringify({
event: 'event_vpn_online',
data: vpnOnlineRows,
}),
);
});
}
} catch (error) {
logger.error(error);
}
}
async function sendUserSessions(clientId, account) {
try {
const vpnUserSessionsRows = await dbConnect.dashboard.query(dbSelect.vpnUserSessions(account));
clientId.send(
JSON.stringify({
event: 'event_vpn_user_sessions',
data: vpnUserSessionsRows,
}),
);
} catch (error) {
logger.error(error);
}
}
async function sendUserSessionForDate(clientId, data) {
const date = JSON.parse(JSON.stringify(data)).sessionDate;
const account = JSON.parse(JSON.stringify(data)).vpnAccount;
// logger.info(JSON.stringify(date));
try {
const vpnUserSessionForDateRows = await dbConnect.dashboard.query(dbSelect.vpnUserSessionForDate(date, account));
clientId.send(
JSON.stringify({
event: 'event_vpn_user_session_for_date',
data: vpnUserSessionForDateRows,
}),
);
} catch (error) {
logger.error(error);
}
}
async function allUsers(wss, clientId) {
try {
const vpnAllUsersRows = await dbConnect.dashboard.query(dbSelect.vpnAllUsers);
if (clientId) {
clientId.send(
JSON.stringify({
event: 'event_vpn_all_users',
data: vpnAllUsersRows,
}),
);
} else {
wss.clients.forEach(client => {
client.send(
JSON.stringify({
event: 'event_vpn_all_users',
data: vpnAllUsersRows,
}),
);
});
}
} catch (error) {
logger.error(error);
}
}
async function sendUserStatus(clientId, data) {
const account = JSON.parse(JSON.stringify(data)).vpnAccount;
try {
const vpnUserStatusRows = await dbConnect.dashboard.query(dbSelect.vpnUserStatus(account));
if (vpnUserStatusRows.length !== 0) {
clientId.send(
JSON.stringify({
event: 'event_vpn_user_status',
data: vpnUserStatusRows[0].ipAddress,
}),
);
}
} catch (error) {
logger.error(error);
}
}
async function initApi(wss, clientId) {
connectedUsers(wss, clientId);
allUsers(wss, clientId);
}
async function vpnEvents(wss, clientId) {
setInterval(() => {
connectedUsers(wss, clientId);
// vpnSessionPerDay(wss, clientId);
}, 60000);
setInterval(() => {
allUsers(wss, clientId);
}, 600000);
}
exports.sendUserSessions = sendUserSessions;
exports.sendUserSessionForDate = sendUserSessionForDate;
exports.sendUserStatus = sendUserStatus;
exports.init = initApi;
exports.vpnEvents = vpnEvents;
/// / module.exports = initVPNAPIServer;
|
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['2267',"Tlece.Recruitment.Models.RecruitmentPlanning Namespace","topic_0000000000000692.html"],['2630',"StageQuestionVideoDto Class","topic_00000000000008DE.html"],['2631',"Properties","topic_00000000000008DE_props--.html"],['2636',"Order Property","topic_00000000000008E2.html"]];
|
(function () {
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[15], {
/***/
"ercB":
/*!**************************************************************!*\
!*** ./node_modules/@ionic/core/dist/esm/ion-input.entry.js ***!
\**************************************************************/
/*! exports provided: ion_input */
/***/
function ercB(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "ion_input", function () {
return Input;
});
/* harmony import */
var _index_7a8b7a1c_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./index-7a8b7a1c.js */
"wEJo");
/* harmony import */
var _ionic_global_63a97a32_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./ionic-global-63a97a32.js */
"E/Mt");
/* harmony import */
var _helpers_dd7e4b7b_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./helpers-dd7e4b7b.js */
"1vRN");
/* harmony import */
var _theme_ff3fc52f_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./theme-ff3fc52f.js */
"74mu");
var inputIosCss = ".sc-ion-input-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:.5;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--background:transparent;--color:initial;display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;width:100%;padding:0 !important;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}ion-item.sc-ion-input-ios-h:not(.item-label),ion-item:not(.item-label) .sc-ion-input-ios-h{--padding-start:0}.ion-color.sc-ion-input-ios-h{color:var(--ion-color-base)}.native-input.sc-ion-input-ios{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.native-input.sc-ion-input-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.native-input.sc-ion-input-ios::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-ios:invalid{-webkit-box-shadow:none;box-shadow:none}.native-input.sc-ion-input-ios::-ms-clear{display:none}.native-input[disabled].sc-ion-input-ios{opacity:0.4}.cloned-input.sc-ion-input-ios{left:0;top:0;position:absolute;pointer-events:none}[dir=rtl].sc-ion-input-ios .cloned-input.sc-ion-input-ios,[dir=rtl].sc-ion-input-ios-h .cloned-input.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h .cloned-input.sc-ion-input-ios{left:unset;right:unset;right:0}.input-clear-icon.sc-ion-input-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;visibility:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.input-clear-icon.sc-ion-input-ios:focus{opacity:0.5}.has-value.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{visibility:visible}.has-focus.sc-ion-input-ios-h{pointer-events:none}.has-focus.sc-ion-input-ios-h input.sc-ion-input-ios,.has-focus.sc-ion-input-ios-h a.sc-ion-input-ios,.has-focus.sc-ion-input-ios-h button.sc-ion-input-ios{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-ios-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-ios-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.sc-ion-input-ios-h{--padding-top:10px;--padding-end:10px;--padding-bottom:10px;--padding-start:0;font-size:inherit}.item-label-stacked.sc-ion-input-ios-h,.item-label-stacked .sc-ion-input-ios-h,.item-label-floating.sc-ion-input-ios-h,.item-label-floating .sc-ion-input-ios-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0px}.input-clear-icon.sc-ion-input-ios{background-image:url(\"data:image/svg+xml;charset=utf-8,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'><path%20fill='var(--ion-color-step-600,%20%23666666)'%20d='M403.1,108.9c-81.2-81.2-212.9-81.2-294.2,0s-81.2,212.9,0,294.2c81.2,81.2,212.9,81.2,294.2,0S484.3,190.1,403.1,108.9z%20M352,340.2L340.2,352l-84.4-84.2l-84,83.8L160,339.8l84-83.8l-84-83.8l11.8-11.8l84,83.8l84.4-84.2l11.8,11.8L267.6,256L352,340.2z'/></svg>\");width:30px;height:30px;background-size:18px}";
var inputMdCss = ".sc-ion-input-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:.5;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--background:transparent;--color:initial;display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;width:100%;padding:0 !important;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}ion-item.sc-ion-input-md-h:not(.item-label),ion-item:not(.item-label) .sc-ion-input-md-h{--padding-start:0}.ion-color.sc-ion-input-md-h{color:var(--ion-color-base)}.native-input.sc-ion-input-md{border-radius:var(--border-radius);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.native-input.sc-ion-input-md{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.native-input.sc-ion-input-md::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-md:invalid{-webkit-box-shadow:none;box-shadow:none}.native-input.sc-ion-input-md::-ms-clear{display:none}.native-input[disabled].sc-ion-input-md{opacity:0.4}.cloned-input.sc-ion-input-md{left:0;top:0;position:absolute;pointer-events:none}[dir=rtl].sc-ion-input-md .cloned-input.sc-ion-input-md,[dir=rtl].sc-ion-input-md-h .cloned-input.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h .cloned-input.sc-ion-input-md{left:unset;right:unset;right:0}.input-clear-icon.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;visibility:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.input-clear-icon.sc-ion-input-md:focus{opacity:0.5}.has-value.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{visibility:visible}.has-focus.sc-ion-input-md-h{pointer-events:none}.has-focus.sc-ion-input-md-h input.sc-ion-input-md,.has-focus.sc-ion-input-md-h a.sc-ion-input-md,.has-focus.sc-ion-input-md-h button.sc-ion-input-md{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-md-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-md-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.sc-ion-input-md-h{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:8px;font-size:inherit}.item-label-stacked.sc-ion-input-md-h,.item-label-stacked .sc-ion-input-md-h,.item-label-floating.sc-ion-input-md-h,.item-label-floating .sc-ion-input-md-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0}.input-clear-icon.sc-ion-input-md{background-image:url(\"data:image/svg+xml;charset=utf-8,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'><polygon%20fill='var(--ion-color-step-600,%20%23666666)'%20points='405,136.798%20375.202,107%20256,226.202%20136.798,107%20107,136.798%20226.202,256%20107,375.202%20136.798,405%20256,285.798%20375.202,405%20405,375.202%20285.798,256'/></svg>\");width:30px;height:30px;background-size:22px}";
var Input = /*#__PURE__*/function () {
function Input(hostRef) {
var _this = this;
_classCallCheck(this, Input);
Object(_index_7a8b7a1c_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
this.ionInput = Object(_index_7a8b7a1c_js__WEBPACK_IMPORTED_MODULE_0__["e"])(this, "ionInput", 7);
this.ionChange = Object(_index_7a8b7a1c_js__WEBPACK_IMPORTED_MODULE_0__["e"])(this, "ionChange", 7);
this.ionBlur = Object(_index_7a8b7a1c_js__WEBPACK_IMPORTED_MODULE_0__["e"])(this, "ionBlur", 7);
this.ionFocus = Object(_index_7a8b7a1c_js__WEBPACK_IMPORTED_MODULE_0__["e"])(this, "ionFocus", 7);
this.ionStyle = Object(_index_7a8b7a1c_js__WEBPACK_IMPORTED_MODULE_0__["e"])(this, "ionStyle", 7);
this.inputId = "ion-input-".concat(inputIds++);
this.didBlurAfterEdit = false;
this.inheritedAttributes = {};
/**
* This is required for a WebKit bug which requires us to
* blur and focus an input to properly focus the input in
* an item with delegatesFocus. It will no longer be needed
* with iOS 14.
*
* @internal
*/
this.fireFocusEvents = true;
this.hasFocus = false;
/**
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
* Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
*/
this.autocapitalize = 'off';
/**
* Indicates whether the value of the control can be automatically completed by the browser.
*/
this.autocomplete = 'off';
/**
* Whether auto correction should be enabled when the user is entering/editing the text value.
*/
this.autocorrect = 'off';
/**
* This Boolean attribute lets you specify that a form control should have input focus when the page loads.
*/
this.autofocus = false;
/**
* If `true`, a clear icon will appear in the input when there is a value. Clicking it clears the input.
*/
this.clearInput = false;
/**
* Set the amount of time, in milliseconds, to wait to trigger the `ionChange` event after each keystroke. This also impacts form bindings such as `ngModel` or `v-model`.
*/
this.debounce = 0;
/**
* If `true`, the user cannot interact with the input.
*/
this.disabled = false;
/**
* The name of the control, which is submitted with the form data.
*/
this.name = this.inputId;
/**
* If `true`, the user cannot modify the value.
*/
this.readonly = false;
/**
* If `true`, the user must fill in a value before submitting a form.
*/
this.required = false;
/**
* If `true`, the element will have its spelling and grammar checked.
*/
this.spellcheck = false;
/**
* The type of control to display. The default type is text.
*/
this.type = 'text';
/**
* The value of the input.
*/
this.value = '';
this.onInput = function (ev) {
var input = ev.target;
if (input) {
_this.value = input.value || '';
}
_this.ionInput.emit(ev);
};
this.onBlur = function (ev) {
_this.hasFocus = false;
_this.focusChanged();
_this.emitStyle();
if (_this.fireFocusEvents) {
_this.ionBlur.emit(ev);
}
};
this.onFocus = function (ev) {
_this.hasFocus = true;
_this.focusChanged();
_this.emitStyle();
if (_this.fireFocusEvents) {
_this.ionFocus.emit(ev);
}
};
this.onKeydown = function (ev) {
if (_this.shouldClearOnEdit()) {
// Did the input value change after it was blurred and edited?
// Do not clear if user is hitting Enter to submit form
if (_this.didBlurAfterEdit && _this.hasValue() && ev.key !== 'Enter') {
// Clear the input
_this.clearTextInput();
} // Reset the flag
_this.didBlurAfterEdit = false;
}
};
this.clearTextOnEnter = function (ev) {
if (ev.key === 'Enter') {
_this.clearTextInput(ev);
}
};
this.clearTextInput = function (ev) {
if (_this.clearInput && !_this.readonly && !_this.disabled && ev) {
ev.preventDefault();
ev.stopPropagation(); // Attempt to focus input again after pressing clear button
_this.setFocus();
}
_this.value = '';
/**
* This is needed for clearOnEdit
* Otherwise the value will not be cleared
* if user is inside the input
*/
if (_this.nativeInput) {
_this.nativeInput.value = '';
}
};
}
_createClass(Input, [{
key: "debounceChanged",
value: function debounceChanged() {
this.ionChange = Object(_helpers_dd7e4b7b_js__WEBPACK_IMPORTED_MODULE_2__["f"])(this.ionChange, this.debounce);
}
}, {
key: "disabledChanged",
value: function disabledChanged() {
this.emitStyle();
}
/**
* Update the item classes when the placeholder changes
*/
}, {
key: "placeholderChanged",
value: function placeholderChanged() {
this.emitStyle();
}
/**
* Update the native input element when the value changes
*/
}, {
key: "valueChanged",
value: function valueChanged() {
this.emitStyle();
this.ionChange.emit({
value: this.value == null ? this.value : this.value.toString()
});
}
}, {
key: "componentWillLoad",
value: function componentWillLoad() {
this.inheritedAttributes = Object(_helpers_dd7e4b7b_js__WEBPACK_IMPORTED_MODULE_2__["i"])(this.el, ['aria-label', 'tabindex', 'title']);
}
}, {
key: "connectedCallback",
value: function connectedCallback() {
this.emitStyle();
this.debounceChanged();
{
document.dispatchEvent(new CustomEvent('ionInputDidLoad', {
detail: this.el
}));
}
}
}, {
key: "disconnectedCallback",
value: function disconnectedCallback() {
{
document.dispatchEvent(new CustomEvent('ionInputDidUnload', {
detail: this.el
}));
}
}
/**
* Sets focus on the native `input` in `ion-input`. Use this method instead of the global
* `input.focus()`.
*/
}, {
key: "setFocus",
value: function () {
var _setFocus = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
if (this.nativeInput) {
this.nativeInput.focus();
}
case 1:
case "end":
return _context.stop();
}
}
}, _callee, this);
}));
function setFocus() {
return _setFocus.apply(this, arguments);
}
return setFocus;
}()
/**
* Sets blur on the native `input` in `ion-input`. Use this method instead of the global
* `input.blur()`.
* @internal
*/
}, {
key: "setBlur",
value: function () {
var _setBlur = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
return regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
if (this.nativeInput) {
this.nativeInput.blur();
}
case 1:
case "end":
return _context2.stop();
}
}
}, _callee2, this);
}));
function setBlur() {
return _setBlur.apply(this, arguments);
}
return setBlur;
}()
/**
* Returns the native `<input>` element used under the hood.
*/
}, {
key: "getInputElement",
value: function getInputElement() {
return Promise.resolve(this.nativeInput);
}
}, {
key: "shouldClearOnEdit",
value: function shouldClearOnEdit() {
var type = this.type,
clearOnEdit = this.clearOnEdit;
return clearOnEdit === undefined ? type === 'password' : clearOnEdit;
}
}, {
key: "getValue",
value: function getValue() {
return typeof this.value === 'number' ? this.value.toString() : (this.value || '').toString();
}
}, {
key: "emitStyle",
value: function emitStyle() {
this.ionStyle.emit({
'interactive': true,
'input': true,
'has-placeholder': this.placeholder != null,
'has-value': this.hasValue(),
'has-focus': this.hasFocus,
'interactive-disabled': this.disabled
});
}
}, {
key: "focusChanged",
value: function focusChanged() {
// If clearOnEdit is enabled and the input blurred but has a value, set a flag
if (!this.hasFocus && this.shouldClearOnEdit() && this.hasValue()) {
this.didBlurAfterEdit = true;
}
}
}, {
key: "hasValue",
value: function hasValue() {
return this.getValue().length > 0;
}
}, {
key: "render",
value: function render() {
var _Object,
_this2 = this;
var mode = Object(_ionic_global_63a97a32_js__WEBPACK_IMPORTED_MODULE_1__["b"])(this);
var value = this.getValue();
var labelId = this.inputId + '-lbl';
var label = Object(_helpers_dd7e4b7b_js__WEBPACK_IMPORTED_MODULE_2__["h"])(this.el);
if (label) {
label.id = labelId;
}
return Object(_index_7a8b7a1c_js__WEBPACK_IMPORTED_MODULE_0__["h"])(_index_7a8b7a1c_js__WEBPACK_IMPORTED_MODULE_0__["H"], {
"aria-disabled": this.disabled ? 'true' : null,
"class": Object(_theme_ff3fc52f_js__WEBPACK_IMPORTED_MODULE_3__["c"])(this.color, (_Object = {}, _defineProperty(_Object, mode, true), _defineProperty(_Object, 'has-value', this.hasValue()), _defineProperty(_Object, 'has-focus', this.hasFocus), _Object))
}, Object(_index_7a8b7a1c_js__WEBPACK_IMPORTED_MODULE_0__["h"])("input", Object.assign({
"class": "native-input",
ref: function ref(input) {
return _this2.nativeInput = input;
},
"aria-labelledby": label ? labelId : null,
disabled: this.disabled,
accept: this.accept,
autoCapitalize: this.autocapitalize,
autoComplete: this.autocomplete,
autoCorrect: this.autocorrect,
autoFocus: this.autofocus,
enterKeyHint: this.enterkeyhint,
inputMode: this.inputmode,
min: this.min,
max: this.max,
minLength: this.minlength,
maxLength: this.maxlength,
multiple: this.multiple,
name: this.name,
pattern: this.pattern,
placeholder: this.placeholder || '',
readOnly: this.readonly,
required: this.required,
spellcheck: this.spellcheck,
step: this.step,
size: this.size,
type: this.type,
value: value,
onInput: this.onInput,
onBlur: this.onBlur,
onFocus: this.onFocus,
onKeyDown: this.onKeydown
}, this.inheritedAttributes)), this.clearInput && !this.readonly && !this.disabled && Object(_index_7a8b7a1c_js__WEBPACK_IMPORTED_MODULE_0__["h"])("button", {
"aria-label": "reset",
type: "button",
"class": "input-clear-icon",
onTouchStart: this.clearTextInput,
onMouseDown: this.clearTextInput,
onKeyDown: this.clearTextOnEnter
}));
}
}, {
key: "el",
get: function get() {
return Object(_index_7a8b7a1c_js__WEBPACK_IMPORTED_MODULE_0__["i"])(this);
}
}], [{
key: "watchers",
get: function get() {
return {
"debounce": ["debounceChanged"],
"disabled": ["disabledChanged"],
"placeholder": ["placeholderChanged"],
"value": ["valueChanged"]
};
}
}]);
return Input;
}();
var inputIds = 0;
Input.style = {
ios: inputIosCss,
md: inputMdCss
};
/***/
}
}]);
})();
//# sourceMappingURL=15-es5.js.map
|
import Backend from 'i18next-http-backend';
import LanguageDetector from 'i18next-browser-languagedetector';
import { initReactI18next } from 'react-i18next';
import i18n from 'i18next';
// don't want to use this?
// have a look at the Quick start guide
// for passing in lng and translations on init
i18n
// load translation using http -> see /public/locales (i.e. https://github.com/i18next/react-i18next/tree/master/example/react/public/locales)
// learn more: https://github.com/i18next/i18next-http-backend
.use(Backend)
// detect user language
// learn more: https://github.com/i18next/i18next-browser-languageDetector
.use(LanguageDetector)
// pass the i18n instance to react-i18next.
.use(initReactI18next)
// init i18next
// for all options read: https://www.i18next.com/overview/configuration-options
.init({
fallbackLng: 'en',
debug: true,
interpolation: {
escapeValue: false, // not needed for react as it escapes by default
},
backend: {
loadPath: process.env.PUBLIC_URL + '/locales/{{lng}}/{{ns}}.json'
}
});
export default i18n;
|
const express = require("express");
const logger = require("morgan");
const mongoose = require("mongoose");
const compression = require("compression");
const PORT = process.env.PORT || 3000;
const app = express();
app.use(logger("dev"));
app.use(compression());
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
app.use(express.static("public"));
mongoose.connect(process.env.MONGODB_URI || "mongodb://localhost/budget", {
useNewUrlParser: true,
useFindAndModify: false
});
// routes
app.use(require("./routes/api.js"));
// Connecting to db
app.listen(PORT, () => {
console.log(`App running on http://localhost:${PORT}`);
});
|
var dir_010cedcb28970a389d49ec91db8d23ba =
[
[ "exceptions", "dir_3d2c908eaae9536dde708d4d25d04dde.html", "dir_3d2c908eaae9536dde708d4d25d04dde" ],
[ "type", "dir_3000977773590f58004ab594fb97ad5c.html", "dir_3000977773590f58004ab594fb97ad5c" ],
[ "OperationFactory.java", "_operation_factory_8java.html", [
[ "OperationFactory", "classes_1_1deusto_1_1deustock_1_1services_1_1investment_1_1operation_1_1_operation_factory.html", "classes_1_1deusto_1_1deustock_1_1services_1_1investment_1_1operation_1_1_operation_factory" ]
] ],
[ "OperationService.java", "_operation_service_8java.html", [
[ "OperationService", "classes_1_1deusto_1_1deustock_1_1services_1_1investment_1_1operation_1_1_operation_service.html", "classes_1_1deusto_1_1deustock_1_1services_1_1investment_1_1operation_1_1_operation_service" ]
] ]
];
|
var app = getApp();
Page({
data: {
searchValue: "",
showDelete: false,
result: {}
},
onLoad: function (options) {
// 页面初始化 options为页面跳转所带来的参数
},
onReady: function () {
// 页面渲染完成
},
onShow: function () {
// 页面显示
},
onHide: function () {
// 页面隐藏
},
onUnload: function () {
// 页面关闭
},
/** 搜索影视 */
bindSearchInput: function (event) {
var value = event.detail.value;
var readyData = { showDelete: false };
if (value.length > 0) {
readyData = { showDelete: true };
this.handleSearchData(value);
}
this.setData(readyData);
},
/**点击取消 */
bindSearchCancel: function (event) {
wx.navigateBack();
},
/** 提交搜索请求 */
handleSearchData: function (value) {
var that = this;
var serchURL = app.globalData.doubanBase + app.globalData.search;
wx.request({
url: serchURL,
method: 'GET', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
header: { 'content-type': 'json' }, // 设置请求的 header
success: function (res) {
// success
var data = res.data;
that.processSearchData(data);
},
fail: function () {
// fail
},
complete: function () {
// complete
}
});
},
/**组装搜索数据 */
processSearchData: function (data) {
var movies = [];
for (let idx in data.subjects) {
var subject = data.subjects[idx];
var directors = "";
var separate = " / ";
for (let i in subject.directors) {
directors += subject.directors[i].name + separate;
}
directors = directors.substring(0, directors.length - separate.length);
var summary = subject.rating.average + "分" + separate + subject.year + separate + directors;
var temp = {
id: subject.id,
casts: subject.casts,
collect_count: subject.collect_count,
directors: subject.directors,
title: subject.title,
images: subject.images,
rating: subject.rating,
year: subject.year,
summary: summary
};
movies.push(temp);
}
var readyData = {};
readyData["result"] = {
subjects: movies
}
this.setData(readyData);
},
/** 点击进入搜索条目 */
handletap: function (event) {
var id = event.currentTarget.dataset.id;
wx.redirectTo({
url: '/pages/movie/movie-detail/movie-detail?id=' + id
})
}
})
|
const routes = [{
path: '/',
component: () => import('layouts/initial.vue'),
children: [
{
path: 'web',
component: () => import('layouts/MainLayout.vue'),
children: [
{
path: '',
name: 'web_index',
component: () => import('pages/Index.vue')
},
{
path: 'dashboard',
name: 'dashboard',
component: () => import('pages/dashboard/dashboard.vue'),
children: [{
path: 'outbounddashboard',
name: 'outbounddashboard',
component: () => import('pages/dashboard/outbound.vue')
},
{
path: 'inbounddashboard',
name: 'inbounddashboard',
component: () => import('pages/dashboard/inbound.vue')
},
{
path: 'inboundAndOutbound',
name: 'inboundAndOutbound',
component: () => import('pages/dashboard/inboundAndOutbound.vue')
}
]
},
{
path: 'inbound',
name: 'inbound',
component: () => import('pages/inbound/inbound.vue'),
children: [{
path: 'asn',
name: 'asn',
component: () => import('pages/inbound/asn.vue')
},
{
path: 'predeliverystock',
name: 'predeliverystock',
component: () => import('pages/inbound/predeliverystock.vue')
},
{
path: 'preloadstock',
name: 'preloadstock',
component: () => import('pages/inbound/preloadstock.vue')
},
{
path: 'presortstock',
name: 'presortstock',
component: () => import('pages/inbound/presortstock.vue')
},
{
path: 'sortstock',
name: 'sortstock',
component: () => import('pages/inbound/sortstock.vue')
},
{
path: 'shortage',
name: 'shortage',
component: () => import('pages/inbound/shortage.vue')
},
{
path: 'more',
name: 'more',
component: () => import('pages/inbound/more.vue')
},
{
path: 'asnfinish',
name: 'asnfinish',
component: () => import('pages/inbound/asnfinish.vue')
}
]
},
{
path: 'outbound',
name: 'outbound',
component: () => import('pages/outbound/outbound.vue'),
children: [{
path: 'dn',
name: 'dn',
component: () => import('pages/outbound/dn.vue')
},
{
path: 'freshorder',
name: 'freshorder',
component: () => import('pages/outbound/freshorder.vue')
},
{
path: 'neworder',
name: 'neworder',
component: () => import('pages/outbound/neworder.vue')
},
{
path: 'pickstock',
name: 'pickstock',
component: () => import('pages/outbound/pickstock.vue')
},
{
path: 'pickedstock',
name: 'pickedstock',
component: () => import('pages/outbound/pickedstock.vue')
},
{
path: 'pickinglist',
name: 'pickinglist',
component: () => import('pages/outbound/pickinglist.vue')
},
{
path: 'shippedstock',
name: 'shippedstock',
component: () => import('pages/outbound/shippedstock.vue')
},
{
path: 'backorder',
name: 'backorder',
component: () => import('pages/outbound/backorder.vue')
},
{
path: 'pod',
name: 'pod',
component: () => import('pages/outbound/pod.vue')
}
]
},
{
path: 'stock',
name: 'stock',
component: () => import('pages/stock/stock.vue'),
children: [{
path: 'stocklist',
name: 'stocklist',
component: () => import('pages/stock/stocklist.vue')
},
{
path: 'stockbinlist',
name: 'stockbinlist',
component: () => import('pages/stock/stockbinlist.vue')
},
{
path: 'emptybin',
name: 'emptybin',
component: () => import('pages/stock/emptybin.vue')
},
{
path: 'occupiedbin',
name: 'occupiedbin',
component: () => import('pages/stock/occupiedbin.vue')
},
{
path: 'cyclecount',
name: 'cyclecount',
component: () => import('pages/stock/cyclecount.vue')
},
{
path: 'cyclecountrecorder',
name: 'cyclecountrecorder',
component: () => import('pages/stock/cyclecountrecorder.vue')
}
]
},
{
path: 'goods',
name: 'goods',
component: () => import('pages/goods/goods.vue'),
children: [{
path: 'goodslist',
name: 'goodslist',
component: () => import('pages/goods/goodslist.vue')
},
{
path: 'goodsunit',
name: 'goodsunit',
component: () => import('pages/goods/goodsunit.vue')
},
{
path: 'goodsclass',
name: 'goodsclass',
component: () => import('pages/goods/goodsclass.vue')
},
{
path: 'goodsbrand',
name: 'goodsbrand',
component: () => import('pages/goods/goodsbrand.vue')
},
{
path: 'goodscolor',
name: 'goodscolor',
component: () => import('pages/goods/goodscolor.vue')
},
{
path: 'goodsspecs',
name: 'goodsspecs',
component: () => import('pages/goods/goodsspecs.vue')
},
{
path: 'goodsshape',
name: 'goodsshape',
component: () => import('pages/goods/goodsshape.vue')
},
{
path: 'goodsorigin',
name: 'goodsorigin',
component: () => import('pages/goods/goodsorigin.vue')
}
]
},
{
path: 'baseinfo',
name: 'baseinfo',
component: () => import('pages/baseinfo/baseinfo.vue'),
children: [{
path: 'company',
name: 'company',
component: () => import('pages/baseinfo/company.vue')
},
{
path: 'supplier',
name: 'supplier',
component: () => import('pages/baseinfo/supplier.vue')
},
{
path: 'customer',
name: 'customer',
component: () => import('pages/baseinfo/customer.vue')
}
]
},
{
path: 'warehouse',
name: 'warehouse',
component: () => import('pages/warehouse/warehouse.vue'),
children: [{
path: 'warehouseset',
name: 'warehouseset',
component: () => import('pages/warehouse/warehouseset.vue')
},
{
path: 'binset',
name: 'binset',
component: () => import('pages/warehouse/binset.vue')
},
{
path: 'binsize',
name: 'binsize',
component: () => import('pages/warehouse/binsize.vue')
},
{
path: 'property',
name: 'property',
component: () => import('pages/warehouse/property.vue')
}
]
},
{
path: 'finance',
name: 'finance',
component: () => import('pages/finance/finance.vue'),
children: [{
path: 'capitallist',
name: 'capitallist',
component: () => import('pages/finance/capitallist.vue')
},
{
path: 'freight',
name: 'freight',
component: () => import('pages/finance/freight.vue')
}
]
},
{
path: 'staff',
name: 'staff',
component: () => import('pages/staff/staff.vue'),
children: [{
path: 'stafflist',
name: 'stafflist',
component: () => import('pages/staff/stafflist.vue')
},
{
path: 'stafflist_check_code',
name: 'stafflist_check_code',
component: () => import('pages/staff/stafflist_check_code.vue')
},
{
path: 'stafftype',
name: 'stafftype',
component: () => import('pages/staff/stafftype.vue')
}
]
},
{
path: 'driver',
name: 'driver',
component: () => import('pages/driverlist/driver.vue'),
children: [{
path: 'driverlist',
name: 'driverlist',
component: () => import('pages/driverlist/driverlist.vue')
},
{
path: 'dispatchlist',
name: 'dispatchlist',
component: () => import('pages/driverlist/dispatchlist.vue')
}
]
},
{
path: 'customerdn',
name: 'customerdn',
component: () => import('pages/customerdn/customer.vue'),
children: [{
path: 'customerdnlist',
name: 'customerdnlist',
component: () => import('pages/customerdn/customerdnlist.vue')
},
{
path: 'customerpod',
name: 'customerpod',
component: () => import('pages/customerdn/pod.vue')
}
]
},
{
path: 'supplierasn',
name: 'supplierasn',
component: () => import('pages/supplierasn/supplier.vue'),
children: [{
path: 'supplierasnlist',
name: 'supplierasnlist',
component: () => import('pages/supplierasn/supplierasnlist.vue')
},
{
path: 'supplierasnfinish',
name: 'supplierasnfinish',
component: () => import('pages/supplierasn/supplierasnfinish.vue')
}
]
},
{
path: 'uploadcenter',
name: 'uploadcenter',
component: () => import('pages/uploadcenter/upload.vue'),
children: [{
path: 'initializeupload',
name: 'initializeupload',
component: () => import('pages/uploadcenter/initializeupload.vue')
},
{
path: 'addupload',
name: 'addupload',
component: () => import('pages/uploadcenter/addupload.vue')
}
]
},
{
path: 'downloadcenter',
name: 'downloadcenter',
component: () => import('pages/downloadcenter/download.vue'),
children: [{
path: 'downloadinbound',
name: 'downloadinbound',
component: () => import('pages/downloadcenter/downloadinbound.vue')
}, {
path: 'downloadoutbound',
name: 'downloadoutbound',
component: () => import('pages/downloadcenter/downloadoutbound.vue')
}, {
path: 'downloadstocklist',
name: 'downloadstocklist',
component: () => import('pages/downloadcenter/downloadstocklist.vue')
}, {
path: 'downloadgoodslist',
name: 'downloadgoodslist',
component: () => import('pages/downloadcenter/downloadgoodslist.vue')
}, {
path: 'downloadbinlist',
name: 'downloadbinlist',
component: () => import('pages/downloadcenter/downloadbinlist.vue')
}]
},
{
path: 'shopid',
name: 'shopid',
component: () => import('pages/shopid/shopid.vue'),
children: [{
path: 'douyin',
name: 'douyin',
component: () => import('pages/shopid/douyin.vue')
}
]
}
]
},
{
path: 'mobile',
component: () => import('layouts/MainLayoutMobile.vue'),
children: [
{
path: '',
name: 'mobile_index',
component: () => import('pages/IndexMobile.vue')
},
{
path: 'mp_dashboard',
name: 'mp_dashboard',
component: () => import('pages/mobile/dashboard/dashboard.vue'),
children: [
{
path: 'mp_inboundAndOutbound',
name: 'mp_inboundAndOutbound',
component: () => import('pages/mobile/dashboard/inboundAndOutbound.vue')
}
]
},
{
path: 'mp_inbound',
name: 'mp_inbound',
component: () => import('pages/mobile/inbound/inbound.vue'),
children: [{
path: 'mp_asn',
name: 'mp_asn',
component: () => import('pages/mobile/inbound/asn.vue')
},
{
path: 'mp_asnfinish',
name: 'mp_asnfinish',
component: () => import('pages/mobile/inbound/asnfinish.vue')
}
]
},
{
path: 'mp_outbound',
name: 'mp_outbound',
component: () => import('pages/mobile/outbound/outbound.vue'),
children: [{
path: 'mp_dn',
name: 'mp_dn',
component: () => import('pages/mobile/outbound/dn.vue')
},
{
path: 'mp_shippedstock',
name: 'mp_shippedstock',
component: () => import('pages/mobile/outbound/shippedstock.vue')
}
]
},
{
path: 'mp_stock',
name: 'mp_stock',
component: () => import('pages/mobile/stock/stock.vue'),
children: [{
path: 'mp_stocklist',
name: 'mp_stocklist',
component: () => import('pages/mobile/stock/stocklist.vue')
},
{
path: 'mp_stockbinlist',
name: 'mp_stockbinlist',
component: () => import('pages/mobile/stock/stockbinlist.vue')
}
]
},
{
path: 'mp_goods',
name: 'mp_goods',
component: () => import('pages/mobile/goods/goods.vue'),
children: [{
path: 'mp_goodslist',
name: 'mp_goodslist',
component: () => import('pages/mobile/goods/goodslist.vue')
}
]
},
{
path: 'mp_baseinfo',
name: 'mp_baseinfo',
component: () => import('pages/mobile/baseinfo/baseinfo.vue'),
children: [
{
path: 'mp_supplier',
name: 'mp_supplier',
component: () => import('pages/mobile/baseinfo/supplier.vue')
},
{
path: 'mp_customer',
name: 'mp_customer',
component: () => import('pages/mobile/baseinfo/customer.vue')
}
]
},
{
path: 'mp_warehouse',
name: 'mp_warehouse',
component: () => import('pages/mobile/warehouse/warehouse.vue'),
children: [{
path: 'mp_warehouseset',
name: 'mp_warehouseset',
component: () => import('pages/mobile/warehouse/warehouseset.vue')
},
{
path: 'mp_binset',
name: 'mp_binset',
component: () => import('pages/mobile/warehouse/binset.vue')
}
]
},
{
path: 'mp_finance',
name: 'mp_finance',
component: () => import('pages/mobile/finance/finance.vue'),
children: [{
path: 'mp_capitallist',
name: 'mp_capitallist',
component: () => import('pages/mobile/finance/capitallist.vue')
},
{
path: 'mp_freight',
name: 'mp_freight',
component: () => import('pages/mobile/finance/freight.vue')
}
]
},
{
path: 'mp_staff',
name: 'mp_staff',
component: () => import('pages/mobile/staff/staff.vue'),
children: [{
path: 'mp_stafflist',
name: 'mp_stafflist',
component: () => import('pages/mobile/staff/stafflist.vue')
},
{
path: 'mp_stafflist_check_code',
name: 'mp_stafflist_check_code',
component: () => import('pages/mobile/staff/stafflist_check_code.vue')
}
]
},
{
path: 'mp_driver',
name: 'mp_driver',
component: () => import('pages/mobile/driverlist/driver.vue'),
children: [{
path: 'mp_driverlist',
name: 'mp_driverlist',
component: () => import('pages/mobile/driverlist/driverlist.vue')
},
{
path: 'mp_dispatchlist',
name: 'mp_dispatchlist',
component: () => import('pages/mobile/driverlist/dispatchlist.vue')
}
]
}
]
},
{
path: 'scannerzebra',
name: 'scannerzebra',
component: () => import('layouts/MainLayoutScannerZebra.vue'),
children: [
{
path: 'zebra',
name: '',
component: () => import('pages/scan/zebrascan.vue'),
children: [
{
path: '',
name: 'zebrascan',
component: () => import('pages/IndexScanner.vue')
},
{
path: 'zebra_goodslist',
name: 'zebra_goodslist',
component: () => import('pages/scan/goodslist.vue')
},
{
path: 'zebra_stocklist',
name: 'zebra_stocklist',
component: () => import('pages/scan/stocklist.vue')
},
{
path: 'zebra_movetobin',
name: 'zebra_movetobin',
component: () => import('pages/scan/movetobin.vue')
},
{
path: 'zebra_shipping',
name: 'zebra_shipping',
component: () => import('pages/scan/shipping.vue')
},
{
path: 'zebra_picking',
name: 'zebra_picking',
component: () => import('pages/scan/picking.vue')
},
{
path: 'zebra_uptobin',
name: 'zebra_uptobin',
component: () => import('pages/scan/uptobin.vue')
},
{
path: 'zebra_sorting',
name: 'zebra_sorting',
component: () => import('pages/scan/sorting.vue')
},
{
path: 'zebra_cyclecount',
name: 'zebra_cyclecount',
component: () => import('pages/scan/cyclecount.vue')
},
{
path: 'zebra_locationquery',
name: 'zebra_locationquery',
component: () => import('pages/scan/locationquery.vue')
}
]
}
]
},
{
path: 'scannerurovo',
component: () => import('layouts/MainLayoutScannerUrovo.vue'),
children: [
{
path: 'urovo',
name: '',
component: () => import('pages/scan/urovoscan.vue'),
children: [
{
path: '',
name: 'urovoscan',
component: () => import('pages/IndexScanner.vue')
},
{
path: 'urovo_goodslist',
name: 'urovo_goodslist',
component: () => import('pages/scan/goodslist.vue')
},
{
path: 'urovo_stocklist',
name: 'urovo_stocklist',
component: () => import('pages/scan/stocklist.vue')
},
{
path: 'urovo_movetobin',
name: 'urovo_movetobin',
component: () => import('pages/scan/movetobin.vue')
},
{
path: 'urovo_shipping',
name: 'urovo_shipping',
component: () => import('pages/scan/shipping.vue')
},
{
path: 'urovo_picking',
name: 'urovo_picking',
component: () => import('pages/scan/picking.vue')
},
{
path: 'urovo_uptobin',
name: 'urovo_uptobin',
component: () => import('pages/scan/uptobin.vue')
},
{
path: 'urovo_sorting',
name: 'urovo_sorting',
component: () => import('pages/scan/sorting.vue')
},
{
path: 'urovo_cyclecount',
name: 'urovo_cyclecount',
component: () => import('pages/scan/cyclecount.vue')
},
{
path: 'urovo_locationquery',
name: 'urovo_locationquery',
component: () => import('pages/scan/locationquery.vue')
}
]
}
]
}
]
}]
routes.push({
path: '/',
component: () => import('layouts/MainLayout.vue'),
children: []
})
// Always leave this as last one
if (process.env.MODE !== 'ssr') {
routes.push({
path: '*',
component: () => import('pages/Error404.vue')
})
}
export default routes
|
$(function () {
'use strict'
$('#checkAll').on('click', function () {
if ($(this).is(':checked')) {
$('.main-mail-list .ckbox input').each(function () {
$(this).closest('.main-mail-item').addClass('selected');
$(this).attr('checked', true);
});
$('.main-mail-options .btn:not(:first-child)').removeClass('disabled');
} else {
$('.main-mail-list .ckbox input').each(function () {
$(this).closest('.main-mail-item').removeClass('selected');
$(this).attr('checked', false);
});
$('.main-mail-options .btn:not(:first-child)').addClass('disabled');
}
});
$('.main-mail-item .main-mail-checkbox input').on('click', function () {
if ($(this).is(':checked')) {
$(this).attr('checked', false);
$(this).closest('.main-mail-item').addClass('selected');
$('.main-mail-options .btn:not(:first-child)').removeClass('disabled');
} else {
$(this).attr('checked', true);
$(this).closest('.main-mail-item').removeClass('selected');
if (!$('.main-mail-list .selected').length) {
$('.main-mail-options .btn:not(:first-child)').addClass('disabled');
}
}
});
$('.main-mail-star').on('click', function (e) {
$(this).toggleClass('active');
});
$('#btnCompose').on('click', function (e) {
e.preventDefault();
$('.main-mail-compose').show();
});
$('.main-mail-compose-header a:first-child').on('click', function (e) {
e.preventDefault();
$('.main-mail-compose').toggleClass('main-mail-compose-minimize');
})
$('.main-mail-compose-header a:nth-child(2)').on('click', function (e) {
e.preventDefault();
$(this).find('.fas').toggleClass('fa-compress');
$(this).find('.fas').toggleClass('fa-expand');
$('.main-mail-compose').toggleClass('main-mail-compose-compress');
$('.main-mail-compose').removeClass('main-mail-compose-minimize');
});
$('.main-mail-compose-header a:last-child').on('click', function (e) {
e.preventDefault();
$('.main-mail-compose').hide(100);
$('.main-mail-compose').removeClass('main-mail-compose-minimize');
});
});
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{"0Zpr":function(n,e,l){"use strict";l.r(e);var t=l("CcnG"),r=function(){return function(){}}(),A=l("pMnS"),i=l("gIcY"),a=l("Ip0R"),o=l("Lk47"),u=l("WX0g"),s=l("EzFf"),c=l("Y9fb"),d=l("zgil"),_=function(){return function(){this.alcance_vinculacion="",this.area_trabajo_empresa="",this.canton_residencia=new d.a,this.categoria_migratoria="",this.destino_ingreso="",this.direccion="",this.estado_civil="",this.ha_perdido_gratuidad="",this.ha_realizado_practicas="",this.ha_realizado_vinculacion="",this.ha_repetido_asignatura="",this.habla_idioma_ancestral="",this.matricula=new c.a,this.nivel_formacion_madre="",this.nivel_formacion_padre="",this.ocupacion="",this.posee_titulo_superior="",this.provincia_residencia=new d.a,this.recibe_bono_desarrollo="",this.sector_economico_practica="",this.telefono_celular="",this.telefono_fijo="",this.tiene_discapacidad="",this.tipo_discapacidad="",this.tipo_institucion_practicas="",this.titulo_superior_obtenido=""}}(),g=function(){function n(n,e){this.spinner=n,this.service=e}return n.prototype.ngOnInit=function(){this.estadoDatos="",this.user=JSON.parse(localStorage.getItem("user")),this.estudiante=new u.a,this.informacionEstudiante=new _,this.sexos=s.a.sexos,this.tiposDiscapacidad=s.a.tiposDiscapacidad,this.tiposDocumentos=s.a.tiposIdentificacion,this.generos=s.a.generos,this.tiposSangre=s.a.tiposSangre,this.etnias=s.a.etnias,this.estadosCiviles=s.a.estadosCivil,this.getEstudianteLoad(),this.getPaises(),this.getProvincias()},n.prototype.updateEstudiante=function(){var n=this;this.service.update("estudiantes/update_perfil",{estudiante:this.estudiante,informacion_estudiante:this.informacionEstudiante}).subscribe(function(e){n.getEstudiante()},function(e){n.getEstudiante()})},n.prototype.getEstudianteLoad=function(){var n=this;this.spinner.show(),this.service.get("estudiantes/"+this.user.id).subscribe(function(e){n.estudiante=e.estudiante,n.informacionEstudiante=e.informacion_estudiante,n.spinner.hide()},function(e){n.spinner.hide()})},n.prototype.getEstudiante=function(){var n=this;this.estadoDatos="Guardando...",this.service.get("estudiantes/"+this.user.id).subscribe(function(e){n.estudiante=e.estudiante,n.informacionEstudiante=e.informacion_estudiante,n.estadoDatos=""},function(e){n.estadoDatos=""})},n.prototype.getPaises=function(){var n=this;this.service.get("catalogos/paises").subscribe(function(e){n.paises=e.paises},function(n){})},n.prototype.getProvincias=function(){var n=this;this.service.get("catalogos/provincias").subscribe(function(e){n.provincias=e.provincias},function(n){})},n.prototype.getCantones=function(n){var e=this;this.service.get("catalogos/cantones?provincia_id="+n).subscribe(function(n){e.cantones=n.cantones},function(n){})},n.prototype.validateTipoIdentificacion=function(){},n}(),p=l("miAi"),f=t["\u0275crt"]({encapsulation:0,styles:[["#contenedor_carga[_ngcontent-%COMP%]{background-color:rgba(255,255,255,.9);height:100%;width:100%;top:0;left:0;bottom:0;right:0;position:fixed;transition:all 1s ease;z-index:10000}#carga[_ngcontent-%COMP%]{border:15px solid #000;border-top-color:#f0ad4e;border-top-style:groove;height:120px;width:120px;border-radius:100%;position:relative;top:40%;left:0;bottom:0;right:0;margin:auto;-webkit-animation:1.5s linear infinite girar;animation:1.5s linear infinite girar}@-webkit-keyframes girar{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes girar{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.backgroundTextFieldSuccess[_ngcontent-%COMP%]{background:#fff;color:#000}.backgroundTextFieldWarning[_ngcontent-%COMP%]{background:#f08080;color:#fff}"]],data:{}});function B(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function E(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function m(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function h(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"div",[["class","row mt-3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,2,"div",[["class","col-lg-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"span",[["class","fa fa-save btn btn-link"]],null,null,null,null,null)),(n()(),t["\u0275ted"](3,null,[" ",""]))],null,function(n,e){n(e,3,0,e.component.estadoDatos)})}function C(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,264,"div",[["class","card mt-1"]],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,263,"div",[["class","card-body"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,262,"form",[["method","post"],["name","datosPersnalesform"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,e,l){var r=!0;return"submit"===e&&(r=!1!==t["\u0275nov"](n,4).onSubmit(l)&&r),"reset"===e&&(r=!1!==t["\u0275nov"](n,4).onReset()&&r),r},null,null)),t["\u0275did"](3,16384,null,0,i.u,[],null,null),t["\u0275did"](4,4210688,[["formCtrl",4]],0,i.m,[[8,null],[8,null]],null,null),t["\u0275prd"](2048,null,i.b,null,[i.m]),t["\u0275did"](6,16384,null,0,i.l,[[4,i.b]],null,null),(n()(),t["\u0275eld"](7,0,null,null,257,"div",[["class","row ml-2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](8,0,null,null,256,"div",[["class","col-lg-12 col-sm-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](9,0,null,null,3,"h6",[["class","text-muted"]],null,null,null,null,null)),(n()(),t["\u0275eld"](10,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["* "])),(n()(),t["\u0275ted"](-1,null,["Todos los campos son obligatorios"])),(n()(),t["\u0275eld"](13,0,null,null,251,"table",[["class","table table-responsive"]],null,null,null,null,null)),(n()(),t["\u0275eld"](14,0,null,null,250,"tbody",[],null,null,null,null,null)),(n()(),t["\u0275eld"](15,0,null,null,74,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](16,0,null,null,18,"td",[["width","30%"]],null,null,null,null,null)),(n()(),t["\u0275eld"](17,0,null,null,3,"label",[["for","tipoDocumento"]],null,null,null,null,null)),(n()(),t["\u0275eld"](18,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 1. Tipo Documento: "])),(n()(),t["\u0275eld"](21,0,null,null,13,"select",[["class","form-control"],["disabled",""],["id","tipoDocumento"],["name","tipoDocumento"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,22).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,22).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.tipo_identificacion=l)&&r),"change"===e&&(r=!1!==A.validateTipoIdentificacion()&&r),r},null,null)),t["\u0275did"](22,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](23,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](26,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](28,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](29,0,null,null,3,"option",[["selected",""],["value",""]],null,null,null,null,null)),t["\u0275did"](30,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](31,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,B)),t["\u0275did"](34,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](35,0,null,null,12,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](36,0,null,null,3,"label",[["for","identificacion"]],null,null,null,null,null)),(n()(),t["\u0275eld"](37,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 2. N\xfamero de Documento: "])),(n()(),t["\u0275eld"](40,0,null,null,7,"input",[["class","form-control"],["disabled",""],["id","identificacion"],["name","identificacion"],["placeholder","Ej. 1723456789"],["required",""]],[[8,"type",0],[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,41)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,41).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,41)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,41)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.identificacion=l)&&r),r},null,null)),t["\u0275did"](41,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](42,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](45,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](47,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](48,0,null,null,20,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](49,0,null,null,3,"label",[["for","sexo"]],null,null,null,null,null)),(n()(),t["\u0275eld"](50,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 3. Sexo: "])),(n()(),t["\u0275eld"](53,0,null,null,15,"select",[["class","form-control"],["id","sexo"],["name","sexo"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,56).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,56).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.sexo=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](54,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](55,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](56,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](57,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](60,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](62,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](63,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](64,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](65,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,E)),t["\u0275did"](68,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](69,0,null,null,20,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](70,0,null,null,3,"label",[["for","genero"]],null,null,null,null,null)),(n()(),t["\u0275eld"](71,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 4. G\xe9nero: "])),(n()(),t["\u0275eld"](74,0,null,null,15,"select",[["class","form-control"],["id","genero"],["name","genero"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,77).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,77).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.genero=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](75,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](76,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](77,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](78,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](81,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](83,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](84,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](85,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](86,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,m)),t["\u0275did"](89,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](90,0,null,null,44,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](91,0,null,null,12,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](92,0,null,null,3,"label",[["for","apellido1"]],null,null,null,null,null)),(n()(),t["\u0275eld"](93,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 5.1. Primer Apellido: "])),(n()(),t["\u0275eld"](96,0,null,null,7,"input",[["class","form-control text-uppercase"],["disabled",""],["id","apellido1"],["name","apellido1"],["placeholder","Primer Apellido"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,97)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,97).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,97)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,97)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.apellido1=l)&&r),r},null,null)),t["\u0275did"](97,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](98,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](101,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](103,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](104,0,null,null,8,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](105,0,null,null,1,"label",[["for","apellido2"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,[" 5.2. Segundo Apellido: "])),(n()(),t["\u0275eld"](107,0,null,null,5,"input",[["class","form-control text-uppercase"],["disabled",""],["id","apellido2"],["name","apellidos"],["placeholder","Segundo Apellido"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,108)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,108).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,108)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,108)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.apellido2=l)&&r),r},null,null)),t["\u0275did"](108,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](110,671744,null,0,i.n,[[2,i.b],[8,null],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](112,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](113,0,null,null,12,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](114,0,null,null,3,"label",[["for","nombre1"]],null,null,null,null,null)),(n()(),t["\u0275eld"](115,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 5.3. Primer Nombre: "])),(n()(),t["\u0275eld"](118,0,null,null,7,"input",[["class","form-control text-uppercase"],["disabled",""],["id","nombre1"],["name","nombre1"],["placeholder","Primer Nombre"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,119)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,119).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,119)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,119)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.nombre1=l)&&r),r},null,null)),t["\u0275did"](119,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](120,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](123,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](125,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](126,0,null,null,8,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](127,0,null,null,1,"label",[["for","nombre2"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,[" 5.4. Segundo Nombre: "])),(n()(),t["\u0275eld"](129,0,null,null,5,"input",[["class","form-control text-uppercase"],["disabled",""],["id","nombre2"],["name","nombre2"],["placeholder","Segundo Nombre"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,130)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,130).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,130)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,130)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.nombre2=l)&&r),r},null,null)),t["\u0275did"](130,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](132,671744,null,0,i.n,[[2,i.b],[8,null],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](134,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](135,0,null,null,50,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](136,0,null,null,8,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](137,0,null,null,1,"label",[["for","correoPersonal"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,[" 6.1. Correo Personal: "])),(n()(),t["\u0275eld"](139,0,null,null,5,"input",[["class","form-control"],["id","correoPersonal"],["name","correoPersonal"],["placeholder","Ej. micorreo@gmail.com"],["type","email"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,140)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,140).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,140)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,140)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.correo_personal=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](140,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](142,671744,null,0,i.n,[[2,i.b],[8,null],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](144,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](145,0,null,null,10,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](146,0,null,null,3,"label",[["for","correoInstitucional"]],null,null,null,null,null)),(n()(),t["\u0275eld"](147,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 6.2. Correo Institucional: "])),(n()(),t["\u0275eld"](150,0,null,null,5,"input",[["class","form-control"],["disabled",""],["id","correoInstitucional"],["name","correoInstitucional"],["placeholder","Ej. micorreo@domini.edu.ec"],["type","email"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,151)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,151).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,151)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,151)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.correo_institucional=l)&&r),r},null,null)),t["\u0275did"](151,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](153,671744,null,0,i.n,[[2,i.b],[8,null],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](155,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](156,0,null,null,14,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](157,0,null,null,3,"label",[["for","telefonoCelular"]],null,null,null,null,null)),(n()(),t["\u0275eld"](158,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 7. Tel\xe9fono Celular: "])),(n()(),t["\u0275eld"](161,0,null,null,9,"input",[["class","form-control text-uppercase"],["id","telefonoCelular"],["name","telefonoCelular"],["placeholder","Ej. 098765432"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,164)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,164).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,164)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,164)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.telefono_celular=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](162,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](163,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](164,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](165,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](168,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](170,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](171,0,null,null,14,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](172,0,null,null,3,"label",[["for","telefonoFijo"]],null,null,null,null,null)),(n()(),t["\u0275eld"](173,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 8. Tel\xe9fono Convencional: "])),(n()(),t["\u0275eld"](176,0,null,null,9,"input",[["class","form-control text-uppercase"],["id","telefonoFijo"],["name","telefonoFijo"],["placeholder","Ej. 0234567890"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,179)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,179).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,179)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,179)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.telefono_fijo=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](177,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](178,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](179,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](180,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](183,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](185,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](186,0,null,null,32,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](187,0,null,null,14,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](188,0,null,null,3,"label",[["for","direccion"]],null,null,null,null,null)),(n()(),t["\u0275eld"](189,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 9. Direcci\xf3n de Domicilio: "])),(n()(),t["\u0275eld"](192,0,null,null,9,"textarea",[["class","form-control text-uppercase"],["id","direccion"],["name","direccion"],["placeholder","EJ. SECTOR, CALLE PRINCIPAL, CALLE SECUNDARIA, N\xdaMERO DE CASA"],["required",""],["rows","2"],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,195)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,195).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,195)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,195)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.direccion=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](193,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](194,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](195,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](196,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](199,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](201,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](202,0,null,null,16,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](203,0,null,null,5,"label",[["for","codigoPostal"]],null,null,null,null,null)),(n()(),t["\u0275eld"](204,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 10. C\xf3digo Postal: "])),(n()(),t["\u0275eld"](207,0,null,null,1,"a",[["class","btn-link"],["href","http://www.codigopostal.gob.ec/"],["target","_blank"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["(consulte aqu\xed)"])),(n()(),t["\u0275eld"](209,0,null,null,9,"input",[["class","form-control text-uppercase"],["id","codigoPostal"],["name","codigoPostal"],["placeholder","Ej. 170707"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,212)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,212).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,212)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,212)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.codigo_postal=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](210,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](211,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](212,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](213,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](216,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](218,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](219,0,null,null,45,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](220,0,null,null,14,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](221,0,null,null,3,"label",[["for","contactoEmergencia"]],null,null,null,null,null)),(n()(),t["\u0275eld"](222,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 11. Contacto Emergencia: "])),(n()(),t["\u0275eld"](225,0,null,null,9,"input",[["class","form-control text-uppercase"],["id","contactoEmergencia"],["name","contactoEmergencia"],["placeholder","Apellidos y Nombres"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,228)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,228).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,228)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,228)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.contacto_emergencia_nombres=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](226,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](227,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](228,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](229,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](232,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](234,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](235,0,null,null,14,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](236,0,null,null,3,"label",[["for","parentescoEmergencia"]],null,null,null,null,null)),(n()(),t["\u0275eld"](237,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 12. Parentesco: "])),(n()(),t["\u0275eld"](240,0,null,null,9,"input",[["class","form-control text-uppercase"],["id","parentescoEmergencia"],["name","parentescoEmergencia"],["placeholder","mam\xe1, pap\xe1, t\xedo, t\xeda, etc."],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,243)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,243).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,243)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,243)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.contacto_emergencia_parentesco=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](241,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](242,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](243,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](244,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](247,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](249,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](250,0,null,null,14,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](251,0,null,null,3,"label",[["for","telefonoContacto"]],null,null,null,null,null)),(n()(),t["\u0275eld"](252,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 13. Tel\xe9fono Emergencia: "])),(n()(),t["\u0275eld"](255,0,null,null,9,"input",[["class","form-control"],["id","telefonoContacto"],["name","telefonoContacto"],["placeholder","Ej. 098765432"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,258)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,258).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,258)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,258)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.contacto_emergencia_telefono=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](256,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](257,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](258,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](259,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](262,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](264,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275and"](16777216,null,null,1,null,h)),t["\u0275did"](266,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(n,e){var l=e.component;n(e,23,0,""),n(e,26,0,"tipoDocumento","",l.estudiante.tipo_identificacion),n(e,30,0,""),n(e,31,0,""),n(e,34,0,l.tiposDocumentos),n(e,42,0,""),n(e,45,0,"identificacion","",l.estudiante.identificacion);var t=n(e,55,0,"0"==l.estudiante.sexo,"1"==l.estudiante.sexo||"2"==l.estudiante.sexo);n(e,54,0,"form-control",t),n(e,57,0,""),n(e,60,0,"sexo",l.estudiante.sexo),n(e,64,0,"0"),n(e,65,0,"0"),n(e,68,0,l.sexos);var r=n(e,76,0,"0"==l.estudiante.genero,"1"==l.estudiante.genero||"2"==l.estudiante.genero);n(e,75,0,"form-control",r),n(e,78,0,""),n(e,81,0,"genero",l.estudiante.genero),n(e,85,0,"0"),n(e,86,0,"0"),n(e,89,0,l.generos),n(e,98,0,""),n(e,101,0,"apellido1","",l.estudiante.apellido1),n(e,110,0,"apellidos","",l.estudiante.apellido2),n(e,120,0,""),n(e,123,0,"nombre1","",l.estudiante.nombre1),n(e,132,0,"nombre2","",l.estudiante.nombre2),n(e,142,0,"correoPersonal",l.estudiante.correo_personal),n(e,153,0,"correoInstitucional","",l.estudiante.correo_institucional);var A=n(e,163,0,null==l.informacionEstudiante.telefono_celular||""==l.informacionEstudiante.telefono_celular.trim(),null!=l.informacionEstudiante.telefono_celular);n(e,162,0,"form-control text-uppercase",A),n(e,165,0,""),n(e,168,0,"telefonoCelular",l.informacionEstudiante.telefono_celular);var i=n(e,178,0,null==l.informacionEstudiante.telefono_fijo||""==l.informacionEstudiante.telefono_fijo.trim(),null!=l.informacionEstudiante.telefono_fijo);n(e,177,0,"form-control text-uppercase",i),n(e,180,0,""),n(e,183,0,"telefonoFijo",l.informacionEstudiante.telefono_fijo);var a=n(e,194,0,null==l.informacionEstudiante.direccion||""==l.informacionEstudiante.direccion.trim(),null!=l.informacionEstudiante.direccion);n(e,193,0,"form-control text-uppercase",a),n(e,196,0,""),n(e,199,0,"direccion",l.informacionEstudiante.direccion);var o=n(e,211,0,null==l.informacionEstudiante.codigo_postal||""==l.informacionEstudiante.codigo_postal.trim(),null!=l.informacionEstudiante.codigo_postal);n(e,210,0,"form-control text-uppercase",o),n(e,213,0,""),n(e,216,0,"codigoPostal",l.informacionEstudiante.codigo_postal);var u=n(e,227,0,null==l.informacionEstudiante.contacto_emergencia_nombres||""==l.informacionEstudiante.contacto_emergencia_nombres.trim(),null!=l.informacionEstudiante.contacto_emergencia_nombres);n(e,226,0,"form-control text-uppercase",u),n(e,229,0,""),n(e,232,0,"contactoEmergencia",l.informacionEstudiante.contacto_emergencia_nombres);var s=n(e,242,0,null==l.informacionEstudiante.contacto_emergencia_parentesco||""==l.informacionEstudiante.contacto_emergencia_parentesco.trim(),null!=l.informacionEstudiante.contacto_emergencia_parentesco);n(e,241,0,"form-control text-uppercase",s),n(e,244,0,""),n(e,247,0,"parentescoEmergencia",l.informacionEstudiante.contacto_emergencia_parentesco);var c=n(e,257,0,null==l.informacionEstudiante.contacto_emergencia_telefono||""==l.informacionEstudiante.contacto_emergencia_telefono.trim(),null!=l.informacionEstudiante.contacto_emergencia_telefono);n(e,256,0,"form-control",c),n(e,259,0,""),n(e,262,0,"telefonoContacto",l.informacionEstudiante.contacto_emergencia_telefono),n(e,266,0,""!=l.estadoDatos)},function(n,e){var l=e.component;n(e,2,0,t["\u0275nov"](e,6).ngClassUntouched,t["\u0275nov"](e,6).ngClassTouched,t["\u0275nov"](e,6).ngClassPristine,t["\u0275nov"](e,6).ngClassDirty,t["\u0275nov"](e,6).ngClassValid,t["\u0275nov"](e,6).ngClassInvalid,t["\u0275nov"](e,6).ngClassPending),n(e,21,0,t["\u0275nov"](e,23).required?"":null,t["\u0275nov"](e,28).ngClassUntouched,t["\u0275nov"](e,28).ngClassTouched,t["\u0275nov"](e,28).ngClassPristine,t["\u0275nov"](e,28).ngClassDirty,t["\u0275nov"](e,28).ngClassValid,t["\u0275nov"](e,28).ngClassInvalid,t["\u0275nov"](e,28).ngClassPending),n(e,40,0,t["\u0275inlineInterpolate"](1,"","2"==l.estudiante.tipo_identificacion?"text":"number",""),t["\u0275nov"](e,42).required?"":null,t["\u0275nov"](e,47).ngClassUntouched,t["\u0275nov"](e,47).ngClassTouched,t["\u0275nov"](e,47).ngClassPristine,t["\u0275nov"](e,47).ngClassDirty,t["\u0275nov"](e,47).ngClassValid,t["\u0275nov"](e,47).ngClassInvalid,t["\u0275nov"](e,47).ngClassPending),n(e,53,0,t["\u0275nov"](e,57).required?"":null,t["\u0275nov"](e,62).ngClassUntouched,t["\u0275nov"](e,62).ngClassTouched,t["\u0275nov"](e,62).ngClassPristine,t["\u0275nov"](e,62).ngClassDirty,t["\u0275nov"](e,62).ngClassValid,t["\u0275nov"](e,62).ngClassInvalid,t["\u0275nov"](e,62).ngClassPending),n(e,74,0,t["\u0275nov"](e,78).required?"":null,t["\u0275nov"](e,83).ngClassUntouched,t["\u0275nov"](e,83).ngClassTouched,t["\u0275nov"](e,83).ngClassPristine,t["\u0275nov"](e,83).ngClassDirty,t["\u0275nov"](e,83).ngClassValid,t["\u0275nov"](e,83).ngClassInvalid,t["\u0275nov"](e,83).ngClassPending),n(e,96,0,t["\u0275nov"](e,98).required?"":null,t["\u0275nov"](e,103).ngClassUntouched,t["\u0275nov"](e,103).ngClassTouched,t["\u0275nov"](e,103).ngClassPristine,t["\u0275nov"](e,103).ngClassDirty,t["\u0275nov"](e,103).ngClassValid,t["\u0275nov"](e,103).ngClassInvalid,t["\u0275nov"](e,103).ngClassPending),n(e,107,0,t["\u0275nov"](e,112).ngClassUntouched,t["\u0275nov"](e,112).ngClassTouched,t["\u0275nov"](e,112).ngClassPristine,t["\u0275nov"](e,112).ngClassDirty,t["\u0275nov"](e,112).ngClassValid,t["\u0275nov"](e,112).ngClassInvalid,t["\u0275nov"](e,112).ngClassPending),n(e,118,0,t["\u0275nov"](e,120).required?"":null,t["\u0275nov"](e,125).ngClassUntouched,t["\u0275nov"](e,125).ngClassTouched,t["\u0275nov"](e,125).ngClassPristine,t["\u0275nov"](e,125).ngClassDirty,t["\u0275nov"](e,125).ngClassValid,t["\u0275nov"](e,125).ngClassInvalid,t["\u0275nov"](e,125).ngClassPending),n(e,129,0,t["\u0275nov"](e,134).ngClassUntouched,t["\u0275nov"](e,134).ngClassTouched,t["\u0275nov"](e,134).ngClassPristine,t["\u0275nov"](e,134).ngClassDirty,t["\u0275nov"](e,134).ngClassValid,t["\u0275nov"](e,134).ngClassInvalid,t["\u0275nov"](e,134).ngClassPending),n(e,139,0,t["\u0275nov"](e,144).ngClassUntouched,t["\u0275nov"](e,144).ngClassTouched,t["\u0275nov"](e,144).ngClassPristine,t["\u0275nov"](e,144).ngClassDirty,t["\u0275nov"](e,144).ngClassValid,t["\u0275nov"](e,144).ngClassInvalid,t["\u0275nov"](e,144).ngClassPending),n(e,150,0,t["\u0275nov"](e,155).ngClassUntouched,t["\u0275nov"](e,155).ngClassTouched,t["\u0275nov"](e,155).ngClassPristine,t["\u0275nov"](e,155).ngClassDirty,t["\u0275nov"](e,155).ngClassValid,t["\u0275nov"](e,155).ngClassInvalid,t["\u0275nov"](e,155).ngClassPending),n(e,161,0,t["\u0275nov"](e,165).required?"":null,t["\u0275nov"](e,170).ngClassUntouched,t["\u0275nov"](e,170).ngClassTouched,t["\u0275nov"](e,170).ngClassPristine,t["\u0275nov"](e,170).ngClassDirty,t["\u0275nov"](e,170).ngClassValid,t["\u0275nov"](e,170).ngClassInvalid,t["\u0275nov"](e,170).ngClassPending),n(e,176,0,t["\u0275nov"](e,180).required?"":null,t["\u0275nov"](e,185).ngClassUntouched,t["\u0275nov"](e,185).ngClassTouched,t["\u0275nov"](e,185).ngClassPristine,t["\u0275nov"](e,185).ngClassDirty,t["\u0275nov"](e,185).ngClassValid,t["\u0275nov"](e,185).ngClassInvalid,t["\u0275nov"](e,185).ngClassPending),n(e,192,0,t["\u0275nov"](e,196).required?"":null,t["\u0275nov"](e,201).ngClassUntouched,t["\u0275nov"](e,201).ngClassTouched,t["\u0275nov"](e,201).ngClassPristine,t["\u0275nov"](e,201).ngClassDirty,t["\u0275nov"](e,201).ngClassValid,t["\u0275nov"](e,201).ngClassInvalid,t["\u0275nov"](e,201).ngClassPending),n(e,209,0,t["\u0275nov"](e,213).required?"":null,t["\u0275nov"](e,218).ngClassUntouched,t["\u0275nov"](e,218).ngClassTouched,t["\u0275nov"](e,218).ngClassPristine,t["\u0275nov"](e,218).ngClassDirty,t["\u0275nov"](e,218).ngClassValid,t["\u0275nov"](e,218).ngClassInvalid,t["\u0275nov"](e,218).ngClassPending),n(e,225,0,t["\u0275nov"](e,229).required?"":null,t["\u0275nov"](e,234).ngClassUntouched,t["\u0275nov"](e,234).ngClassTouched,t["\u0275nov"](e,234).ngClassPristine,t["\u0275nov"](e,234).ngClassDirty,t["\u0275nov"](e,234).ngClassValid,t["\u0275nov"](e,234).ngClassInvalid,t["\u0275nov"](e,234).ngClassPending),n(e,240,0,t["\u0275nov"](e,244).required?"":null,t["\u0275nov"](e,249).ngClassUntouched,t["\u0275nov"](e,249).ngClassTouched,t["\u0275nov"](e,249).ngClassPristine,t["\u0275nov"](e,249).ngClassDirty,t["\u0275nov"](e,249).ngClassValid,t["\u0275nov"](e,249).ngClassInvalid,t["\u0275nov"](e,249).ngClassPending),n(e,255,0,t["\u0275nov"](e,259).required?"":null,t["\u0275nov"](e,264).ngClassUntouched,t["\u0275nov"](e,264).ngClassTouched,t["\u0275nov"](e,264).ngClassPristine,t["\u0275nov"](e,264).ngClassDirty,t["\u0275nov"](e,264).ngClassValid,t["\u0275nov"](e,264).ngClassInvalid,t["\u0275nov"](e,264).ngClassPending)})}var w=function(){return function(){this.canton_id="0",this.provincia_id="0",this.pais_id="0"}}(),v=function(){return function(){this.canton_id="0",this.provincia_id="0",this.pais_id="0"}}(),b=function(){function n(n,e){this.spinner=n,this.service=e}return n.prototype.ngOnInit=function(){this.user=JSON.parse(localStorage.getItem("user")),this.estadoDatos="",this.ubicacionResidencia=new v,this.ubicacionNacimiento=new w,this.paises=new Array,this.provincias=new Array,this.estudiante=new u.a,this.informacionEstudiante=new _,this.sexos=s.a.sexos,this.estadosCivil=s.a.estadosCivil,this.tiposSangre=s.a.tiposSangre,this.etnias=s.a.etnias,this.opcionesSiNo=s.a.opcionesSiNo,this.tiposDiscapacidad=s.a.tiposDiscapacidad,this.pueblosNacionalidad=s.a.pueblosNacionalidad,this.categoriasMigratoria=s.a.categoriasMigratoria,this.getEstudianteLoad(),this.getPaises(),this.getProvincias()},n.prototype.updateEstudiante=function(){var n=this;0===this.estudiante.canton_nacimiento.id&&(this.estudiante.canton_nacimiento.id=Number(this.ubicacionNacimiento.pais_id)),0===this.informacionEstudiante.canton_residencia.id&&(this.informacionEstudiante.canton_residencia.id=Number(this.ubicacionResidencia.pais_id)),this.service.update("estudiantes/update_perfil",{estudiante:this.estudiante,informacion_estudiante:this.informacionEstudiante}).subscribe(function(e){n.getEstudiante()},function(e){n.getEstudiante()})},n.prototype.getEstudianteLoad=function(){var n=this;this.spinner.show(),this.service.get("estudiantes/"+this.user.id).subscribe(function(e){n.estudiante=e.estudiante,n.informacionEstudiante=e.informacion_estudiante,n.ubicacionNacimiento=e.ubicacion_nacimiento[0],n.ubicacionResidencia=e.ubicacion_residencia[0],n.ubicacionResidencia?n.getCantonesResidencia(n.ubicacionResidencia.provincia_id):(n.ubicacionResidencia=new v,console.log(n.ubicacionResidencia)),n.ubicacionNacimiento?n.getCantonesNacimiento(n.ubicacionNacimiento.provincia_id):(n.ubicacionNacimiento=new w,console.log(n.ubicacionResidencia)),n.spinner.hide()},function(e){n.spinner.hide()})},n.prototype.getEstudiante=function(){var n=this;this.estadoDatos="Guardando...",this.service.get("estudiantes/"+this.user.id).subscribe(function(e){n.estudiante=e.estudiante,n.informacionEstudiante=e.informacion_estudiante,n.ubicacionNacimiento=e.ubicacion_nacimiento[0],n.ubicacionResidencia=e.ubicacion_residencia[0],n.ubicacionResidencia?n.getCantonesResidencia(n.ubicacionResidencia.provincia_id):(n.ubicacionResidencia=new v,console.log(n.ubicacionResidencia)),n.ubicacionNacimiento?n.getCantonesNacimiento(n.ubicacionNacimiento.provincia_id):(n.ubicacionNacimiento=new w,console.log(n.ubicacionResidencia)),n.estadoDatos=""},function(e){n.estadoDatos=""})},n.prototype.getPaises=function(){var n=this;this.service.get("catalogos/paises").subscribe(function(e){n.paises=e.paises},function(e){n.spinner.hide()})},n.prototype.getProvincias=function(){var n=this;this.service.get("catalogos/provincias").subscribe(function(e){n.provincias=e.provincias},function(e){n.spinner.hide()})},n.prototype.getCantonesResidencia=function(n){var e=this;this.service.get("catalogos/cantones?provincia_id="+n).subscribe(function(n){e.cantonesResidencia=n.cantones},function(n){e.spinner.hide()})},n.prototype.getCantonesNacimiento=function(n){var e=this;this.service.get("catalogos/cantones?provincia_id="+n).subscribe(function(n){e.cantonesNacimiento=n.cantones},function(n){})},n.prototype.validateDiscapacidad=function(){"2"===this.informacionEstudiante.tiene_discapacidad?this.informacionEstudiante.tipo_discapacidad="7":(this.informacionEstudiante.numero_carnet_conadis="",this.informacionEstudiante.tipo_discapacidad="0",this.informacionEstudiante.porcentaje_discapacidad=null)},n.prototype.calculateEdad=function(){if(null!=this.estudiante.fecha_nacimiento&&""!==this.estudiante.fecha_nacimiento.toString()){var n=new Date(this.estudiante.fecha_nacimiento.toString()+" GMT-0500"),e=n.getFullYear(),l=n.getMonth(),t=n.getDay(),r=new Date,A=r.getFullYear(),i=r.getMonth(),a=r.getDate(),o=A+1900-e;i<l-1&&o--,l-1===i&&a<t&&o--,o>1900&&(o-=1900),this.edad=o}},n.prototype.validateEtnia=function(){this.estudiante.pueblo_nacionalidad="1"===this.estudiante.etnia||"8"===this.estudiante.etnia?"0":"34"},n.prototype.validateIdiomaAncestral=function(){this.informacionEstudiante.idioma_ancestral=""},n.prototype.validatePaisNacionalidad=function(){"1"===this.ubicacionNacimiento.pais_id?(this.ubicacionNacimiento.provincia_id="0",this.estudiante.canton_nacimiento.id=0,this.informacionEstudiante.categoria_migratoria="6"):(this.ubicacionNacimiento.provincia_id="0",this.estudiante.canton_nacimiento.id=0,this.informacionEstudiante.categoria_migratoria="0")},n.prototype.validatePaisResidencia=function(){this.ubicacionResidencia.provincia_id="0",this.informacionEstudiante.canton_residencia=new d.a},n}(),U=t["\u0275crt"]({encapsulation:0,styles:[["#contenedor_carga[_ngcontent-%COMP%]{background-color:rgba(255,255,255,.9);height:100%;width:100%;top:0;left:0;bottom:0;right:0;position:fixed;transition:all 1s ease;z-index:10000}#carga[_ngcontent-%COMP%]{border:15px solid #000;border-top-color:#f0ad4e;border-top-style:groove;height:120px;width:120px;border-radius:100%;position:relative;top:40%;left:0;bottom:0;right:0;margin:auto;-webkit-animation:1.5s linear infinite girar;animation:1.5s linear infinite girar}@-webkit-keyframes girar{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes girar{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.backgroundTextFieldSuccess[_ngcontent-%COMP%]{background:#fff;color:#000}.backgroundTextFieldWarning[_ngcontent-%COMP%]{background:#f08080;color:#fff}"]],data:{}});function I(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function Q(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function T(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,20,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","puebloNacionalidad"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 15. Pueblo Nacionalidad: "])),(n()(),t["\u0275eld"](5,0,null,null,15,"select",[["class","form-control"],["id","puebloNacionalidad"],["name","puebloNacionalidad"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,8).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.pueblo_nacionalidad=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](9,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](12,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](14,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](15,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](16,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](17,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,Q)),t["\u0275did"](20,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(n,e){var l=e.component,t=n(e,7,0,"0"==l.estudiante.pueblo_nacionalidad,"0"!=l.estudiante.pueblo_nacionalidad);n(e,6,0,"form-control",t),n(e,9,0,"1"==l.estudiante.etnia||"8"==l.estudiante.etnia),n(e,12,0,"puebloNacionalidad","1"!=l.estudiante.etnia&&"8"!=l.estudiante.etnia,l.estudiante.pueblo_nacionalidad),n(e,16,0,"0"),n(e,17,0,"0"),n(e,20,0,l.pueblosNacionalidad)},function(n,e){n(e,5,0,t["\u0275nov"](e,9).required?"":null,t["\u0275nov"](e,14).ngClassUntouched,t["\u0275nov"](e,14).ngClassTouched,t["\u0275nov"](e,14).ngClassPristine,t["\u0275nov"](e,14).ngClassDirty,t["\u0275nov"](e,14).ngClassValid,t["\u0275nov"](e,14).ngClassInvalid,t["\u0275nov"](e,14).ngClassPending)})}function R(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function F(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,14,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","idiomaAncestral"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" Especif\xedque Idioma Ancestral: "])),(n()(),t["\u0275eld"](5,0,null,null,9,"input",[["class","form-control text-uppercase"],["id","idiomaAncestral"],["name","idiomaAncestral"],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,8)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,8)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,8)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.idioma_ancestral=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](9,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](12,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](14,16384,null,0,i.k,[[4,i.j]],null,null)],function(n,e){var l=e.component,t=n(e,7,0,null==l.informacionEstudiante.idioma_ancestral||""==l.informacionEstudiante.idioma_ancestral,""!=l.informacionEstudiante.idioma_ancestral&&""!=l.informacionEstudiante.idioma_ancestral);n(e,6,0,"form-control text-uppercase",t),n(e,9,0,"1"==l.informacionEstudiante.habla_idioma_ancestral),n(e,12,0,"idiomaAncestral","1"!=l.informacionEstudiante.habla_idioma_ancestral,l.informacionEstudiante.idioma_ancestral)},function(n,e){n(e,5,0,t["\u0275nov"](e,9).required?"":null,t["\u0275nov"](e,14).ngClassUntouched,t["\u0275nov"](e,14).ngClassTouched,t["\u0275nov"](e,14).ngClassPristine,t["\u0275nov"](e,14).ngClassDirty,t["\u0275nov"](e,14).ngClassValid,t["\u0275nov"](e,14).ngClassInvalid,t["\u0275nov"](e,14).ngClassPending)})}function D(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.id,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.id,""))},function(n,e){n(e,3,0,e.context.$implicit.nombre)})}function O(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.id,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.id,""))},function(n,e){n(e,3,0,e.context.$implicit.nombre)})}function P(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,18,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","provinciaNacimiento"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 20. Provincia Nacimiento: "])),(n()(),t["\u0275eld"](5,0,null,null,13,"select",[["class","form-control"],["id","provinciaNacimiento"],["name","provinciaNacimiento"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,8).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.ubicacionNacimiento.provincia_id=l)&&r),"change"===e&&(r=!1!==A.getCantonesNacimiento(A.ubicacionNacimiento.provincia_id)&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](10,671744,null,0,i.n,[[2,i.b],[8,null],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](12,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](13,0,null,null,3,"option",[["value","0"]],null,null,null,null,null)),t["\u0275did"](14,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](15,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,O)),t["\u0275did"](18,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(n,e){var l=e.component,t=n(e,7,0,"0"==l.ubicacionNacimiento.provincia_id,"0"!=l.ubicacionNacimiento.provincia_id);n(e,6,0,"form-control",t),n(e,10,0,"provinciaNacimiento","1"!=l.ubicacionNacimiento.pais_id,l.ubicacionNacimiento.provincia_id),n(e,14,0,"0"),n(e,15,0,"0"),n(e,18,0,l.provincias)},function(n,e){n(e,5,0,t["\u0275nov"](e,12).ngClassUntouched,t["\u0275nov"](e,12).ngClassTouched,t["\u0275nov"](e,12).ngClassPristine,t["\u0275nov"](e,12).ngClassDirty,t["\u0275nov"](e,12).ngClassValid,t["\u0275nov"](e,12).ngClassInvalid,t["\u0275nov"](e,12).ngClassPending)})}function x(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function y(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,20,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","categoriaMigratoria"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 22. Categoria Migratoria: "])),(n()(),t["\u0275eld"](5,0,null,null,15,"select",[["class","form-control"],["id","categoriaMigratoria"],["name","categoriaMigratoria"],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,8).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.categoria_migratoria=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](9,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](12,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](14,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](15,0,null,null,3,"option",[["value","0"]],null,null,null,null,null)),t["\u0275did"](16,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](17,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,x)),t["\u0275did"](20,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(n,e){var l=e.component,t=n(e,7,0,"0"==l.informacionEstudiante.categoria_migratoria,"0"!=l.informacionEstudiante.categoria_migratoria);n(e,6,0,"form-control",t),n(e,9,0,"1"!=l.ubicacionNacimiento.pais_id),n(e,12,0,"categoriaMigratoria","1"==l.ubicacionNacimiento.pais_id||"0"==l.ubicacionNacimiento.pais_id,l.informacionEstudiante.categoria_migratoria),n(e,16,0,"0"),n(e,17,0,"0"),n(e,20,0,l.categoriasMigratoria)},function(n,e){n(e,5,0,t["\u0275nov"](e,9).required?"":null,t["\u0275nov"](e,14).ngClassUntouched,t["\u0275nov"](e,14).ngClassTouched,t["\u0275nov"](e,14).ngClassPristine,t["\u0275nov"](e,14).ngClassDirty,t["\u0275nov"](e,14).ngClassValid,t["\u0275nov"](e,14).ngClassInvalid,t["\u0275nov"](e,14).ngClassPending)})}function L(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.id,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.id,""))},function(n,e){n(e,3,0,e.context.$implicit.nombre)})}function k(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,18,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","cantonNacimiento"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 21. Cant\xf3n Nacimiento: "])),(n()(),t["\u0275eld"](5,0,null,null,13,"select",[["class","form-control"],["id","cantonNacimiento"],["name","cantonNacimiento"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,8).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.canton_nacimiento.id=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](10,671744,null,0,i.n,[[2,i.b],[8,null],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](12,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](13,0,null,null,3,"option",[["value","0"]],null,null,null,null,null)),t["\u0275did"](14,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](15,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE PROVINCIA..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,L)),t["\u0275did"](18,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(n,e){var l=e.component,t=n(e,7,0,"0"==l.estudiante.canton_nacimiento.id,"0"!=l.estudiante.canton_nacimiento.id);n(e,6,0,"form-control",t),n(e,10,0,"cantonNacimiento","1"!=l.ubicacionNacimiento.pais_id,l.estudiante.canton_nacimiento.id),n(e,14,0,"0"),n(e,15,0,"0"),n(e,18,0,l.cantonesNacimiento)},function(n,e){n(e,5,0,t["\u0275nov"](e,12).ngClassUntouched,t["\u0275nov"](e,12).ngClassTouched,t["\u0275nov"](e,12).ngClassPristine,t["\u0275nov"](e,12).ngClassDirty,t["\u0275nov"](e,12).ngClassValid,t["\u0275nov"](e,12).ngClassInvalid,t["\u0275nov"](e,12).ngClassPending)})}function S(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.id,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.id,""))},function(n,e){n(e,3,0,e.context.$implicit.nombre)})}function M(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.id,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.id,""))},function(n,e){n(e,3,0,e.context.$implicit.nombre)})}function H(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,20,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","provinciaResidencia"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 24. Provincia de Residencia: "])),(n()(),t["\u0275eld"](5,0,null,null,15,"select",[["class","form-control"],["id","provinciaResidencia"],["name","provinciaResidencia"],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,8).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.ubicacionResidencia.provincia_id=l)&&r),"change"===e&&(r=!1!==A.getCantonesResidencia(A.ubicacionResidencia.provincia_id)&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](9,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](12,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](14,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](15,0,null,null,3,"option",[["value","0"]],null,null,null,null,null)),t["\u0275did"](16,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](17,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,M)),t["\u0275did"](20,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(n,e){var l=e.component,t=n(e,7,0,"0"==l.ubicacionResidencia.provincia_id,"0"!=l.ubicacionResidencia.provincia_id);n(e,6,0,"form-control",t),n(e,9,0,"1"==l.ubicacionResidencia.pais_id),n(e,12,0,"provinciaResidencia","1"!=l.ubicacionResidencia.pais_id,l.ubicacionResidencia.provincia_id),n(e,16,0,"0"),n(e,17,0,"0"),n(e,20,0,l.provincias)},function(n,e){n(e,5,0,t["\u0275nov"](e,9).required?"":null,t["\u0275nov"](e,14).ngClassUntouched,t["\u0275nov"](e,14).ngClassTouched,t["\u0275nov"](e,14).ngClassPristine,t["\u0275nov"](e,14).ngClassDirty,t["\u0275nov"](e,14).ngClassValid,t["\u0275nov"](e,14).ngClassInvalid,t["\u0275nov"](e,14).ngClassPending)})}function N(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.id,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.id,""))},function(n,e){n(e,3,0,e.context.$implicit.nombre)})}function K(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,20,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","cantonResidencia"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 25. Cant\xf3n de Residencia: "])),(n()(),t["\u0275eld"](5,0,null,null,15,"select",[["class","form-control"],["id","cantonResidencia"],["name","cantonResidencia"],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,8).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.canton_residencia.id=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](9,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](12,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](14,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](15,0,null,null,3,"option",[["value","0"]],null,null,null,null,null)),t["\u0275did"](16,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](17,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE PROVINCIA..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,N)),t["\u0275did"](20,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(n,e){var l=e.component,t=n(e,7,0,"0"==l.informacionEstudiante.canton_residencia.id,"0"!=l.informacionEstudiante.canton_residencia.id);n(e,6,0,"form-control",t),n(e,9,0,"1"==l.ubicacionResidencia.pais_id),n(e,12,0,"cantonResidencia","1"!=l.ubicacionResidencia.pais_id,l.informacionEstudiante.canton_residencia.id),n(e,16,0,"0"),n(e,17,0,"0"),n(e,20,0,l.cantonesResidencia)},function(n,e){n(e,5,0,t["\u0275nov"](e,9).required?"":null,t["\u0275nov"](e,14).ngClassUntouched,t["\u0275nov"](e,14).ngClassTouched,t["\u0275nov"](e,14).ngClassPristine,t["\u0275nov"](e,14).ngClassDirty,t["\u0275nov"](e,14).ngClassValid,t["\u0275nov"](e,14).ngClassInvalid,t["\u0275nov"](e,14).ngClassPending)})}function W(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function V(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function q(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function z(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,14,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","numeroCarnetConadis"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 28. N\xfamero Carnet Conadis: "])),(n()(),t["\u0275eld"](5,0,null,null,9,"input",[["class","form-control text-uppercase"],["id","numeroCarnetConadis"],["name","numeroCarnetConadis"],["placeholder","Ej. 123456789"],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,8)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,8)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,8)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.numero_carnet_conadis=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](9,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](12,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](14,16384,null,0,i.k,[[4,i.j]],null,null)],function(n,e){var l=e.component,t=n(e,7,0,null==l.informacionEstudiante.numero_carnet_conadis||""==l.informacionEstudiante.numero_carnet_conadis.trim(),"0"!=l.informacionEstudiante.tiene_discapacidad);n(e,6,0,"form-control text-uppercase",t),n(e,9,0,"1"==l.informacionEstudiante.tiene_discapacidad),n(e,12,0,"numeroCarnetConadis","1"!=l.informacionEstudiante.tiene_discapacidad,l.informacionEstudiante.numero_carnet_conadis)},function(n,e){n(e,5,0,t["\u0275nov"](e,9).required?"":null,t["\u0275nov"](e,14).ngClassUntouched,t["\u0275nov"](e,14).ngClassTouched,t["\u0275nov"](e,14).ngClassPristine,t["\u0275nov"](e,14).ngClassDirty,t["\u0275nov"](e,14).ngClassValid,t["\u0275nov"](e,14).ngClassInvalid,t["\u0275nov"](e,14).ngClassPending)})}function j(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,19,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","porcentajeDiscapacidad"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 29. Porcentaje Discapacidad: "])),(n()(),t["\u0275eld"](5,0,null,null,14,"div",[["class","input-group mb-3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](6,0,null,null,13,"div",[["class","input-group-prepend"]],null,null,null,null,null)),(n()(),t["\u0275eld"](7,0,null,null,10,"input",[["class","form-control"],["id","porcentajeDiscapacidad"],["max","100"],["min","1"],["name","porcentajeDiscapacidad"],["type","number"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,10)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,10).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,10)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,10)._compositionEnd(l.target.value)&&r),"change"===e&&(r=!1!==t["\u0275nov"](n,11).onChange(l.target.value)&&r),"input"===e&&(r=!1!==t["\u0275nov"](n,11).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,11).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.porcentaje_discapacidad=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](8,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](9,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](10,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](11,16384,null,0,i.t,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](12,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n,e){return[n,e]},[i.c,i.t]),t["\u0275did"](15,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](17,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](18,0,null,null,1,"span",[["class","input-group-text"],["id","basic-addon-periodo"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["%"]))],function(n,e){var l=e.component,t=n(e,9,0,null==l.informacionEstudiante.porcentaje_discapacidad||""==l.informacionEstudiante.porcentaje_discapacidad,null!=l.informacionEstudiante.porcentaje_discapacidad||""!=l.informacionEstudiante.porcentaje_discapacidad);n(e,8,0,"form-control",t),n(e,12,0,"1"==l.informacionEstudiante.tiene_discapacidad),n(e,15,0,"porcentajeDiscapacidad","1"!=l.informacionEstudiante.tiene_discapacidad,l.informacionEstudiante.porcentaje_discapacidad)},function(n,e){n(e,7,0,t["\u0275nov"](e,12).required?"":null,t["\u0275nov"](e,17).ngClassUntouched,t["\u0275nov"](e,17).ngClassTouched,t["\u0275nov"](e,17).ngClassPristine,t["\u0275nov"](e,17).ngClassDirty,t["\u0275nov"](e,17).ngClassValid,t["\u0275nov"](e,17).ngClassInvalid,t["\u0275nov"](e,17).ngClassPending)})}function G(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function Y(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,20,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","tipoDiscapacidad"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 30. Tipo Discapacidad: "])),(n()(),t["\u0275eld"](5,0,null,null,15,"select",[["class","form-control"],["id","tipoDiscapacidad"],["name","tipoDiscapacidad"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,8).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.tipo_discapacidad=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](9,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](12,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](14,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](15,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](16,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](17,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,G)),t["\u0275did"](20,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(n,e){var l=e.component,t=n(e,7,0,0==l.informacionEstudiante.tipo_discapacidad,0!=l.informacionEstudiante.tipo_discapacidad);n(e,6,0,"form-control",t),n(e,9,0,"1"==l.informacionEstudiante.tiene_discapacidad),n(e,12,0,"tipoDiscapacidad","1"!=l.informacionEstudiante.tiene_discapacidad,l.informacionEstudiante.tipo_discapacidad),n(e,16,0,"0"),n(e,17,0,"0"),n(e,20,0,l.tiposDiscapacidad)},function(n,e){n(e,5,0,t["\u0275nov"](e,9).required?"":null,t["\u0275nov"](e,14).ngClassUntouched,t["\u0275nov"](e,14).ngClassTouched,t["\u0275nov"](e,14).ngClassPristine,t["\u0275nov"](e,14).ngClassDirty,t["\u0275nov"](e,14).ngClassValid,t["\u0275nov"](e,14).ngClassInvalid,t["\u0275nov"](e,14).ngClassPending)})}function X(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"div",[["class","row mt-3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,2,"div",[["class","col-lg-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"span",[["class","fa fa-save btn btn-link"]],null,null,null,null,null)),(n()(),t["\u0275ted"](3,null,[" ",""]))],null,function(n,e){n(e,3,0,e.component.estadoDatos)})}function J(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,209,"div",[["class","card mt-1"]],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,208,"div",[["class","card-body"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,207,"form",[["method","post"],["name","datosPersnalesform"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,e,l){var r=!0;return"submit"===e&&(r=!1!==t["\u0275nov"](n,4).onSubmit(l)&&r),"reset"===e&&(r=!1!==t["\u0275nov"](n,4).onReset()&&r),r},null,null)),t["\u0275did"](3,16384,null,0,i.u,[],null,null),t["\u0275did"](4,4210688,[["formCtrl",4]],0,i.m,[[8,null],[8,null]],null,null),t["\u0275prd"](2048,null,i.b,null,[i.m]),t["\u0275did"](6,16384,null,0,i.l,[[4,i.b]],null,null),(n()(),t["\u0275eld"](7,0,null,null,202,"div",[["class","row ml-2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](8,0,null,null,201,"div",[["class","col-lg-12 col-sm-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](9,0,null,null,3,"h6",[["class","text-muted"]],null,null,null,null,null)),(n()(),t["\u0275eld"](10,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["* "])),(n()(),t["\u0275ted"](-1,null,["Todos los campos son obligatorios"])),(n()(),t["\u0275eld"](13,0,null,null,196,"table",[["class","table table-responsive"]],null,null,null,null,null)),(n()(),t["\u0275eld"](14,0,null,null,195,"tbody",[],null,null,null,null,null)),(n()(),t["\u0275eld"](15,0,null,null,24,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](16,0,null,null,20,"td",[["colspan","2"],["width","50%"]],null,null,null,null,null)),(n()(),t["\u0275eld"](17,0,null,null,3,"label",[["for","etnia"]],null,null,null,null,null)),(n()(),t["\u0275eld"](18,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 14. Etnia: "])),(n()(),t["\u0275eld"](21,0,null,null,15,"select",[["class","form-control"],["id","etnia"],["name","etnia"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,24).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,24).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.etnia=l)&&r),"change"===e&&(A.validateEtnia(),r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](22,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](23,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](24,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](25,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](28,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](30,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](31,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](32,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](33,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,I)),t["\u0275did"](36,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](37,0,null,null,2,"td",[["colspan","2"],["width","50%"]],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,T)),t["\u0275did"](39,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](40,0,null,null,24,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](41,0,null,null,20,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](42,0,null,null,3,"label",[["for","hablaIdiomaAncestral"]],null,null,null,null,null)),(n()(),t["\u0275eld"](43,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 16. \xbfHabla alg\xfan idioma ancestral? "])),(n()(),t["\u0275eld"](46,0,null,null,15,"select",[["class","form-control"],["id","hablaIdiomaAncestral"],["name","hablaIdiomaAncestral"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,49).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,49).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.habla_idioma_ancestral=l)&&r),"change"===e&&(A.validateIdiomaAncestral(),r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](47,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](48,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](49,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](50,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](53,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](55,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](56,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](57,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](58,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,R)),t["\u0275did"](61,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](62,0,null,null,2,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,F)),t["\u0275did"](64,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](65,0,null,null,29,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](66,0,null,null,20,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](67,0,null,null,3,"label",[["for","paisNacionalidad"]],null,null,null,null,null)),(n()(),t["\u0275eld"](68,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 19. Pa\xeds Nacionalidad: "])),(n()(),t["\u0275eld"](71,0,null,null,15,"select",[["class","form-control"],["id","paisNacionalidad"],["name","paisNacionalidad"],["placeholder","Pa\xeds Nacionalidad"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,74).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,74).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.ubicacionNacimiento.pais_id=l)&&r),"change"===e&&(r=!1!==A.validatePaisNacionalidad()&&r),r},null,null)),t["\u0275did"](72,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](73,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](74,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](75,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](78,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](80,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](81,0,null,null,3,"option",[["value","0"]],null,null,null,null,null)),t["\u0275did"](82,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](83,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,D)),t["\u0275did"](86,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](87,0,null,null,4,"td",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,P)),t["\u0275did"](89,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275and"](16777216,null,null,1,null,y)),t["\u0275did"](91,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](92,0,null,null,2,"td",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,k)),t["\u0275did"](94,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](95,0,null,null,27,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](96,0,null,null,20,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](97,0,null,null,3,"label",[["for","paisResidencia"]],null,null,null,null,null)),(n()(),t["\u0275eld"](98,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 23. Pa\xeds de Residencia: "])),(n()(),t["\u0275eld"](101,0,null,null,15,"select",[["class","form-control"],["id","paisResidencia"],["name","paisResidencia"],["placeholder","Pa\xeds Residencia"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,104).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,104).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.ubicacionResidencia.pais_id=l)&&r),"change"===e&&(r=!1!==A.validatePaisResidencia()&&r),r},null,null)),t["\u0275did"](102,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](103,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](104,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](105,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](108,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](110,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](111,0,null,null,3,"option",[["value","0"]],null,null,null,null,null)),t["\u0275did"](112,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](113,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,S)),t["\u0275did"](116,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](117,0,null,null,2,"td",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,H)),t["\u0275did"](119,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](120,0,null,null,2,"td",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,K)),t["\u0275did"](122,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](123,0,null,null,55,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](124,0,null,null,12,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](125,0,null,null,3,"label",[["for","fechaNacimiento"]],null,null,null,null,null)),(n()(),t["\u0275eld"](126,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 17. Fecha de Nacimiento: "])),(n()(),t["\u0275eld"](129,0,null,null,7,"input",[["class","form-control"],["disabled",""],["id","fechaNacimiento"],["name","fechaNacimiento"],["required",""],["type","date"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,130)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,130).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,130)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,130)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.fecha_nacimiento=l)&&r),"change"===e&&(r=!1!==A.calculateEdad()&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](130,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](131,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](134,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](136,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](137,0,null,null,20,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](138,0,null,null,3,"label",[["for","tipoSangre"]],null,null,null,null,null)),(n()(),t["\u0275eld"](139,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 18. Tipo Sangre: "])),(n()(),t["\u0275eld"](142,0,null,null,15,"select",[["class","form-control"],["id","tipoSangre"],["name","tipoSangre"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,145).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,145).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.tipo_sangre=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](143,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](144,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](145,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](146,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](149,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](151,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](152,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](153,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](154,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,W)),t["\u0275did"](157,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](158,0,null,null,20,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](159,0,null,null,3,"label",[["for","estadoCivil"]],null,null,null,null,null)),(n()(),t["\u0275eld"](160,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 26. Estado Civil: "])),(n()(),t["\u0275eld"](163,0,null,null,15,"select",[["class","form-control"],["id","estadoCivil"],["name","estadoCivil"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,166).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,166).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.estado_civil=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](164,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](165,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](166,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](167,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](170,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](172,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](173,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](174,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](175,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,V)),t["\u0275did"](178,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](179,0,null,null,30,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](180,0,null,null,20,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](181,0,null,null,3,"label",[["for","tieneCarnetConadis"]],null,null,null,null,null)),(n()(),t["\u0275eld"](182,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 27. \xbfTiene Alguna Discapacidad? "])),(n()(),t["\u0275eld"](185,0,null,null,15,"select",[["class","form-control"],["id","tieneCarnetConadis"],["name","tieneCarnetConadis"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,188).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,188).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.tiene_discapacidad=l)&&r),"change"===e&&(A.validateDiscapacidad(),r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](186,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](187,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](188,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](189,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](192,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](194,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](195,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](196,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](197,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,q)),t["\u0275did"](200,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](201,0,null,null,2,"td",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,z)),t["\u0275did"](203,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](204,0,null,null,2,"td",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,j)),t["\u0275did"](206,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](207,0,null,null,2,"td",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,Y)),t["\u0275did"](209,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275and"](16777216,null,null,1,null,X)),t["\u0275did"](211,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(n,e){var l=e.component,t=n(e,23,0,"0"==l.estudiante.etnia,"0"!=l.estudiante.etnia);n(e,22,0,"form-control",t),n(e,25,0,""),n(e,28,0,"etnia",l.estudiante.etnia),n(e,32,0,"0"),n(e,33,0,"0"),n(e,36,0,l.etnias),n(e,39,0,"1"==l.estudiante.etnia);var r=n(e,48,0,"0"==l.informacionEstudiante.habla_idioma_ancestral,"0"!=l.informacionEstudiante.habla_idioma_ancestral);n(e,47,0,"form-control",r),n(e,50,0,""),n(e,53,0,"hablaIdiomaAncestral",l.informacionEstudiante.habla_idioma_ancestral),n(e,57,0,"0"),n(e,58,0,"0"),n(e,61,0,l.opcionesSiNo),n(e,64,0,"1"==l.informacionEstudiante.habla_idioma_ancestral);var A=n(e,73,0,"0"==l.ubicacionNacimiento.pais_id,"0"!=l.ubicacionNacimiento.pais_id);n(e,72,0,"form-control",A),n(e,75,0,""),n(e,78,0,"paisNacionalidad",l.ubicacionNacimiento.pais_id),n(e,82,0,"0"),n(e,83,0,"0"),n(e,86,0,l.paises),n(e,89,0,"1"==l.ubicacionNacimiento.pais_id),n(e,91,0,"1"!=l.ubicacionNacimiento.pais_id&&"0"!=l.ubicacionNacimiento.pais_id),n(e,94,0,"0"!=l.ubicacionNacimiento.provincia_id);var i=n(e,103,0,"0"==l.ubicacionResidencia.pais_id,"0"!=l.ubicacionResidencia.pais_id);n(e,102,0,"form-control",i),n(e,105,0,""),n(e,108,0,"paisResidencia",l.ubicacionResidencia.pais_id),n(e,112,0,"0"),n(e,113,0,"0"),n(e,116,0,l.paises),n(e,119,0,"1"==l.ubicacionResidencia.pais_id),n(e,122,0,"0"!=l.ubicacionResidencia.provincia_id),n(e,131,0,""),n(e,134,0,"fechaNacimiento","",l.estudiante.fecha_nacimiento);var a=n(e,144,0,"0"==l.estudiante.tipo_sangre,"0"!=l.estudiante.tipo_sangre);n(e,143,0,"form-control",a),n(e,146,0,""),n(e,149,0,"tipoSangre",l.estudiante.tipo_sangre),n(e,153,0,"0"),n(e,154,0,"0"),n(e,157,0,l.tiposSangre);var o=n(e,165,0,"0"==l.informacionEstudiante.estado_civil,"0"!=l.informacionEstudiante.estado_civil);n(e,164,0,"form-control",o),n(e,167,0,""),n(e,170,0,"estadoCivil",l.informacionEstudiante.estado_civil),n(e,174,0,"0"),n(e,175,0,"0"),n(e,178,0,l.estadosCivil);var u=n(e,187,0,"0"==l.informacionEstudiante.tiene_discapacidad,"0"!=l.informacionEstudiante.tiene_discapacidad);n(e,186,0,"form-control",u),n(e,189,0,""),n(e,192,0,"tieneCarnetConadis",l.informacionEstudiante.tiene_discapacidad),n(e,196,0,"0"),n(e,197,0,"0"),n(e,200,0,l.opcionesSiNo),n(e,203,0,"1"==l.informacionEstudiante.tiene_discapacidad),n(e,206,0,"1"==l.informacionEstudiante.tiene_discapacidad),n(e,209,0,"1"==l.informacionEstudiante.tiene_discapacidad),n(e,211,0,""!=l.estadoDatos)},function(n,e){n(e,2,0,t["\u0275nov"](e,6).ngClassUntouched,t["\u0275nov"](e,6).ngClassTouched,t["\u0275nov"](e,6).ngClassPristine,t["\u0275nov"](e,6).ngClassDirty,t["\u0275nov"](e,6).ngClassValid,t["\u0275nov"](e,6).ngClassInvalid,t["\u0275nov"](e,6).ngClassPending),n(e,21,0,t["\u0275nov"](e,25).required?"":null,t["\u0275nov"](e,30).ngClassUntouched,t["\u0275nov"](e,30).ngClassTouched,t["\u0275nov"](e,30).ngClassPristine,t["\u0275nov"](e,30).ngClassDirty,t["\u0275nov"](e,30).ngClassValid,t["\u0275nov"](e,30).ngClassInvalid,t["\u0275nov"](e,30).ngClassPending),n(e,46,0,t["\u0275nov"](e,50).required?"":null,t["\u0275nov"](e,55).ngClassUntouched,t["\u0275nov"](e,55).ngClassTouched,t["\u0275nov"](e,55).ngClassPristine,t["\u0275nov"](e,55).ngClassDirty,t["\u0275nov"](e,55).ngClassValid,t["\u0275nov"](e,55).ngClassInvalid,t["\u0275nov"](e,55).ngClassPending),n(e,71,0,t["\u0275nov"](e,75).required?"":null,t["\u0275nov"](e,80).ngClassUntouched,t["\u0275nov"](e,80).ngClassTouched,t["\u0275nov"](e,80).ngClassPristine,t["\u0275nov"](e,80).ngClassDirty,t["\u0275nov"](e,80).ngClassValid,t["\u0275nov"](e,80).ngClassInvalid,t["\u0275nov"](e,80).ngClassPending),n(e,101,0,t["\u0275nov"](e,105).required?"":null,t["\u0275nov"](e,110).ngClassUntouched,t["\u0275nov"](e,110).ngClassTouched,t["\u0275nov"](e,110).ngClassPristine,t["\u0275nov"](e,110).ngClassDirty,t["\u0275nov"](e,110).ngClassValid,t["\u0275nov"](e,110).ngClassInvalid,t["\u0275nov"](e,110).ngClassPending),n(e,129,0,t["\u0275nov"](e,131).required?"":null,t["\u0275nov"](e,136).ngClassUntouched,t["\u0275nov"](e,136).ngClassTouched,t["\u0275nov"](e,136).ngClassPristine,t["\u0275nov"](e,136).ngClassDirty,t["\u0275nov"](e,136).ngClassValid,t["\u0275nov"](e,136).ngClassInvalid,t["\u0275nov"](e,136).ngClassPending),n(e,142,0,t["\u0275nov"](e,146).required?"":null,t["\u0275nov"](e,151).ngClassUntouched,t["\u0275nov"](e,151).ngClassTouched,t["\u0275nov"](e,151).ngClassPristine,t["\u0275nov"](e,151).ngClassDirty,t["\u0275nov"](e,151).ngClassValid,t["\u0275nov"](e,151).ngClassInvalid,t["\u0275nov"](e,151).ngClassPending),n(e,163,0,t["\u0275nov"](e,167).required?"":null,t["\u0275nov"](e,172).ngClassUntouched,t["\u0275nov"](e,172).ngClassTouched,t["\u0275nov"](e,172).ngClassPristine,t["\u0275nov"](e,172).ngClassDirty,t["\u0275nov"](e,172).ngClassValid,t["\u0275nov"](e,172).ngClassInvalid,t["\u0275nov"](e,172).ngClassPending),n(e,185,0,t["\u0275nov"](e,189).required?"":null,t["\u0275nov"](e,194).ngClassUntouched,t["\u0275nov"](e,194).ngClassTouched,t["\u0275nov"](e,194).ngClassPristine,t["\u0275nov"](e,194).ngClassDirty,t["\u0275nov"](e,194).ngClassValid,t["\u0275nov"](e,194).ngClassInvalid,t["\u0275nov"](e,194).ngClassPending)})}var $=function(){function n(n,e){this.spinner=n,this.service=e,this.spinnerConfiguracion=s.a.spinnerConfiguracion[0]}return n.prototype.ngOnInit=function(){this.user=JSON.parse(localStorage.getItem("user")),this.estadoDatos="",this.estudiante=new u.a,this.informacionEstudiante=new _,this.tiposInstituciones=s.a.tiposInstituciones,this.tiposColegio=s.a.tiposColegio,this.opcionesSiNo=s.a.opcionesSiNo,this.ocupacionesEstudiante=s.a.ocupacionesEstudiante,this.tiposBachillerato=s.a.tiposBachillerato,this.sectoresEconomicos=s.a.sectoresEconomicos,this.alcancesVinculacion=s.a.alcancesVinculacion,this.destinosIngreso=s.a.destinosIngreso,this.nivelesFormacion=s.a.nivelesFormacion,this.getEstudianteLoad()},n.prototype.updateEstudiante=function(){var n=this;this.service.update("estudiantes/update_perfil",{estudiante:this.estudiante,informacion_estudiante:this.informacionEstudiante}).subscribe(function(e){n.getEstudiante()},function(e){n.getEstudiante()})},n.prototype.getEstudianteLoad=function(){var n=this;this.spinner.show(),this.service.get("estudiantes/"+this.user.id).subscribe(function(e){n.estudiante=e.estudiante,n.informacionEstudiante=e.informacion_estudiante,n.spinner.hide()},function(e){n.spinner.hide()})},n.prototype.getEstudiante=function(){var n=this;this.estadoDatos="Guardando...",this.service.get("estudiantes/"+this.user.id).subscribe(function(e){n.estudiante=e.estudiante,n.informacionEstudiante=e.informacion_estudiante,n.estadoDatos=""},function(e){n.estadoDatos=""})},n.prototype.getPaisesNacionalidad=function(){var n=this;this.service.get("paises_nacionalidad").subscribe(function(e){n.paisesNacionalidad=e.paises_nacionalidad},function(n){})},n.prototype.getPaisesResidencia=function(){var n=this;this.service.get("paises_residencia").subscribe(function(e){n.paisesNacionalidad=e.paises_residencia},function(n){})},n.prototype.validarPracticas=function(){this.informacionEstudiante.horas_practicas="","1"===this.informacionEstudiante.ha_realizado_practicas?(this.informacionEstudiante.tipo_institucion_practicas="0",this.informacionEstudiante.sector_economico_practica="0"):(this.informacionEstudiante.tipo_institucion_practicas="5",this.informacionEstudiante.sector_economico_practica="22")},n.prototype.validarVinculacion=function(){this.informacionEstudiante.alcance_vinculacion="1"===this.informacionEstudiante.ha_realizado_vinculacion?"0":"5"},n.prototype.validateTituloSuperior=function(){this.informacionEstudiante.titulo_superior_obtenido=""},n.prototype.validateOcupacion=function(){this.informacionEstudiante.nombre_empresa_labora="","1"===this.informacionEstudiante.ocupacion?(this.informacionEstudiante.area_trabajo_empresa="22",this.informacionEstudiante.destino_ingreso="4"):(this.informacionEstudiante.area_trabajo_empresa="0",this.informacionEstudiante.destino_ingreso="0")},n}(),Z=t["\u0275crt"]({encapsulation:0,styles:[["#contenedor_carga[_ngcontent-%COMP%]{background-color:rgba(255,255,255,.9);height:100%;width:100%;top:0;left:0;bottom:0;right:0;position:fixed;transition:all 1s ease;z-index:10000}#carga[_ngcontent-%COMP%]{border:15px solid #000;border-top-color:#f0ad4e;border-top-style:groove;height:120px;width:120px;border-radius:100%;position:relative;top:40%;left:0;bottom:0;right:0;margin:auto;-webkit-animation:1.5s linear infinite girar;animation:1.5s linear infinite girar}@-webkit-keyframes girar{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes girar{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.backgroundTextFieldSuccess[_ngcontent-%COMP%]{background:#fff;color:#000}.backgroundTextFieldWarning[_ngcontent-%COMP%]{background:#f08080;color:#fff}"]],data:{}});function nn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function en(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function ln(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function tn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,14,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","tituloSuperiorObtenido"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 34.1. Especifique el t\xedtulo obtenido: "])),(n()(),t["\u0275eld"](5,0,null,null,9,"input",[["class","form-control text-uppercase"],["id","tituloSuperiorObtenido"],["name","tituloSuperiorObtenido"],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,8)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,8)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,8)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.titulo_superior_obtenido=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](9,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](12,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](14,16384,null,0,i.k,[[4,i.j]],null,null)],function(n,e){var l=e.component,t=n(e,7,0,null==l.informacionEstudiante.titulo_superior_obtenido||""==l.informacionEstudiante.titulo_superior_obtenido.trim(),""!=l.informacionEstudiante.titulo_superior_obtenido);n(e,6,0,"form-control text-uppercase",t),n(e,9,0,"1"==l.informacionEstudiante.posee_titulo_superior),n(e,12,0,"tituloSuperiorObtenido","1"!=l.informacionEstudiante.posee_titulo_superior,l.informacionEstudiante.titulo_superior_obtenido)},function(n,e){n(e,5,0,t["\u0275nov"](e,9).required?"":null,t["\u0275nov"](e,14).ngClassUntouched,t["\u0275nov"](e,14).ngClassTouched,t["\u0275nov"](e,14).ngClassPristine,t["\u0275nov"](e,14).ngClassDirty,t["\u0275nov"](e,14).ngClassValid,t["\u0275nov"](e,14).ngClassInvalid,t["\u0275nov"](e,14).ngClassPending)})}function rn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function An(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,15,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","horasPracticas"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 50. Horas de Pr\xe1cticas Preprofesionales Realizadas: "])),(n()(),t["\u0275eld"](5,0,null,null,10,"input",[["class","form-control"],["id","horasPracticas"],["name","horasPracticas"],["type","number"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,8)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,8)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,8)._compositionEnd(l.target.value)&&r),"change"===e&&(r=!1!==t["\u0275nov"](n,9).onChange(l.target.value)&&r),"input"===e&&(r=!1!==t["\u0275nov"](n,9).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,9).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.horas_practicas=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](9,16384,null,0,i.t,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](10,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n,e){return[n,e]},[i.c,i.t]),t["\u0275did"](13,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](15,16384,null,0,i.k,[[4,i.j]],null,null)],function(n,e){var l=e.component,t=n(e,7,0,null==l.informacionEstudiante.horas_practicas||""==l.informacionEstudiante.horas_practicas,""!=l.informacionEstudiante.horas_practicas);n(e,6,0,"form-control",t),n(e,10,0,"1"==l.informacionEstudiante.ha_realizado_practicas),n(e,13,0,"horasPracticas","1"!=l.informacionEstudiante.ha_realizado_practicas,l.informacionEstudiante.horas_practicas)},function(n,e){n(e,5,0,t["\u0275nov"](e,10).required?"":null,t["\u0275nov"](e,15).ngClassUntouched,t["\u0275nov"](e,15).ngClassTouched,t["\u0275nov"](e,15).ngClassPristine,t["\u0275nov"](e,15).ngClassDirty,t["\u0275nov"](e,15).ngClassValid,t["\u0275nov"](e,15).ngClassInvalid,t["\u0275nov"](e,15).ngClassPending)})}function an(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function on(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,20,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","tipoInstitucionPracticas"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 51. Tipo de Instituci\xf3n en el que se realiza Pr\xe1cticas Preprofesionales: "])),(n()(),t["\u0275eld"](5,0,null,null,15,"select",[["class","form-control"],["id","tipoInstitucionPracticas"],["name","tipoInstitucionPracticas"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,8).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.tipo_institucion_practicas=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](9,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](12,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](14,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](15,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](16,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](17,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,an)),t["\u0275did"](20,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(n,e){var l=e.component,t=n(e,7,0,null==l.informacionEstudiante.tipo_institucion_practicas||"0"==l.informacionEstudiante.tipo_institucion_practicas,"0"!=l.informacionEstudiante.tipo_institucion_practicas);n(e,6,0,"form-control",t),n(e,9,0,"1"==l.informacionEstudiante.ha_realizado_practicas),n(e,12,0,"tipoInstitucionPracticas","1"!=l.informacionEstudiante.ha_realizado_practicas,l.informacionEstudiante.tipo_institucion_practicas),n(e,16,0,"0"),n(e,17,0,"0"),n(e,20,0,l.tiposInstituciones)},function(n,e){n(e,5,0,t["\u0275nov"](e,9).required?"":null,t["\u0275nov"](e,14).ngClassUntouched,t["\u0275nov"](e,14).ngClassTouched,t["\u0275nov"](e,14).ngClassPristine,t["\u0275nov"](e,14).ngClassDirty,t["\u0275nov"](e,14).ngClassValid,t["\u0275nov"](e,14).ngClassInvalid,t["\u0275nov"](e,14).ngClassPending)})}function un(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function sn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,20,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","sectorEconomico"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 52. Sector Econ\xf3mico en el que realiza Pr\xe1cticas Preprofesionales: "])),(n()(),t["\u0275eld"](5,0,null,null,15,"select",[["class","form-control"],["id","sectorEconomico"],["name","sectorEconomico"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,8).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.sector_economico_practica=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](9,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](12,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](14,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](15,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](16,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](17,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,un)),t["\u0275did"](20,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(n,e){var l=e.component,t=n(e,7,0,null==l.informacionEstudiante.sector_economico_practica||"0"==l.informacionEstudiante.sector_economico_practica,"0"!=l.informacionEstudiante.sector_economico_practica);n(e,6,0,"form-control",t),n(e,9,0,"1"==l.informacionEstudiante.ha_realizado_practicas),n(e,12,0,"sectorEconomico","1"!=l.informacionEstudiante.ha_realizado_practicas,l.informacionEstudiante.sector_economico_practica),n(e,16,0,"0"),n(e,17,0,"0"),n(e,20,0,l.sectoresEconomicos)},function(n,e){n(e,5,0,t["\u0275nov"](e,9).required?"":null,t["\u0275nov"](e,14).ngClassUntouched,t["\u0275nov"](e,14).ngClassTouched,t["\u0275nov"](e,14).ngClassPristine,t["\u0275nov"](e,14).ngClassDirty,t["\u0275nov"](e,14).ngClassValid,t["\u0275nov"](e,14).ngClassInvalid,t["\u0275nov"](e,14).ngClassPending)})}function cn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function dn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function _n(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,20,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","alcanceVinculacion"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 54. Cu\xe1l es el alcance del Proyecto de Vinculaci\xf3n con la Sociedad: "])),(n()(),t["\u0275eld"](5,0,null,null,15,"select",[["class","form-control"],["id","alcanceVinculacion"],["name","alcanceVinculacion"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,8).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.alcance_vinculacion=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](9,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](12,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](14,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](15,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](16,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](17,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,dn)),t["\u0275did"](20,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(n,e){var l=e.component,t=n(e,7,0,null==l.informacionEstudiante.alcance_vinculacion||"0"==l.informacionEstudiante.alcance_vinculacion,"0"!=l.informacionEstudiante.alcance_vinculacion);n(e,6,0,"form-control",t),n(e,9,0,"1"==l.informacionEstudiante.ha_realizado_vinculacion),n(e,12,0,"alcanceVinculacion","1"!=l.informacionEstudiante.ha_realizado_vinculacion,l.informacionEstudiante.alcance_vinculacion),n(e,16,0,"0"),n(e,17,0,"0"),n(e,20,0,l.alcancesVinculacion)},function(n,e){n(e,5,0,t["\u0275nov"](e,9).required?"":null,t["\u0275nov"](e,14).ngClassUntouched,t["\u0275nov"](e,14).ngClassTouched,t["\u0275nov"](e,14).ngClassPristine,t["\u0275nov"](e,14).ngClassDirty,t["\u0275nov"](e,14).ngClassValid,t["\u0275nov"](e,14).ngClassInvalid,t["\u0275nov"](e,14).ngClassPending)})}function gn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function pn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,14,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","nombreEmpresaLabora"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 56. Nombre de la empresa donde labora: "])),(n()(),t["\u0275eld"](5,0,null,null,9,"input",[["class","form-control"],["id","nombreEmpresaLabora"],["name","nombreEmpresaLabora"],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,8)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,8)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,8)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.nombre_empresa_labora=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](9,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](12,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](14,16384,null,0,i.k,[[4,i.j]],null,null)],function(n,e){var l=e.component,t=n(e,7,0,null==l.informacionEstudiante.nombre_empresa_labora||""==l.informacionEstudiante.nombre_empresa_labora.trim(),""!=l.informacionEstudiante.nombre_empresa_labora);n(e,6,0,"form-control",t),n(e,9,0,"2"==l.informacionEstudiante.ocupacion),n(e,12,0,"nombreEmpresaLabora","2"!=l.informacionEstudiante.ocupacion,l.informacionEstudiante.nombre_empresa_labora)},function(n,e){n(e,5,0,t["\u0275nov"](e,9).required?"":null,t["\u0275nov"](e,14).ngClassUntouched,t["\u0275nov"](e,14).ngClassTouched,t["\u0275nov"](e,14).ngClassPristine,t["\u0275nov"](e,14).ngClassDirty,t["\u0275nov"](e,14).ngClassValid,t["\u0275nov"](e,14).ngClassInvalid,t["\u0275nov"](e,14).ngClassPending)})}function fn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function Bn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,20,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","areaTrabajoEmpresa"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 57. \xc1rea de la empresa: "])),(n()(),t["\u0275eld"](5,0,null,null,15,"select",[["class","form-control"],["id","areaTrabajoEmpresa"],["name","areaTrabajoEmpresa"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,8).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.area_trabajo_empresa=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](9,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](12,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](14,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](15,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](16,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](17,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,fn)),t["\u0275did"](20,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(n,e){var l=e.component,t=n(e,7,0,null==l.informacionEstudiante.area_trabajo_empresa||"0"==l.informacionEstudiante.area_trabajo_empresa,"0"!=l.informacionEstudiante.area_trabajo_empresa);n(e,6,0,"form-control",t),n(e,9,0,"2"==l.informacionEstudiante.ocupacion),n(e,12,0,"areaTrabajoEmpresa","2"!=l.informacionEstudiante.ocupacion,l.informacionEstudiante.area_trabajo_empresa),n(e,16,0,"0"),n(e,17,0,"0"),n(e,20,0,l.sectoresEconomicos)},function(n,e){n(e,5,0,t["\u0275nov"](e,9).required?"":null,t["\u0275nov"](e,14).ngClassUntouched,t["\u0275nov"](e,14).ngClassTouched,t["\u0275nov"](e,14).ngClassPristine,t["\u0275nov"](e,14).ngClassDirty,t["\u0275nov"](e,14).ngClassValid,t["\u0275nov"](e,14).ngClassInvalid,t["\u0275nov"](e,14).ngClassPending)})}function En(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function mn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,20,"div",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,3,"label",[["for","destinoIngreso"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 58. \xbfPara qu\xe9 emplea sus ingresos econ\xf3micos? "])),(n()(),t["\u0275eld"](5,0,null,null,15,"select",[["class","form-control"],["id","destinoIngreso"],["name","destinoIngreso"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,8).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,8).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.destino_ingreso=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](6,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](7,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](8,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](9,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](12,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](14,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](15,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](16,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](17,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,En)),t["\u0275did"](20,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(n,e){var l=e.component,t=n(e,7,0,null==l.informacionEstudiante.area_trabajo_empresa||""==l.informacionEstudiante.area_trabajo_empresa,""!=l.informacionEstudiante.area_trabajo_empresa);n(e,6,0,"form-control",t),n(e,9,0,"2"==l.informacionEstudiante.ocupacion),n(e,12,0,"destinoIngreso","2"!=l.informacionEstudiante.ocupacion,l.informacionEstudiante.destino_ingreso),n(e,16,0,"0"),n(e,17,0,"0"),n(e,20,0,l.destinosIngreso)},function(n,e){n(e,5,0,t["\u0275nov"](e,9).required?"":null,t["\u0275nov"](e,14).ngClassUntouched,t["\u0275nov"](e,14).ngClassTouched,t["\u0275nov"](e,14).ngClassPristine,t["\u0275nov"](e,14).ngClassDirty,t["\u0275nov"](e,14).ngClassValid,t["\u0275nov"](e,14).ngClassInvalid,t["\u0275nov"](e,14).ngClassPending)})}function hn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function Cn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function wn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),t["\u0275did"](1,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](2,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){n(e,1,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,"")),n(e,2,0,t["\u0275inlineInterpolate"](1,"",e.context.$implicit.codigo,""))},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function vn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"div",[["class","row mt-3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,2,"div",[["class","col-lg-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,1,"span",[["class","fa fa-save btn btn-link"]],null,null,null,null,null)),(n()(),t["\u0275ted"](3,null,[" ",""]))],null,function(n,e){n(e,3,0,e.component.estadoDatos)})}function bn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,299,"div",[["class","card mt-1"]],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,298,"div",[["class","card-body"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,297,"form",[["method","post"],["name","datosAcademicosform"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,e,l){var r=!0;return"submit"===e&&(r=!1!==t["\u0275nov"](n,4).onSubmit(l)&&r),"reset"===e&&(r=!1!==t["\u0275nov"](n,4).onReset()&&r),r},null,null)),t["\u0275did"](3,16384,null,0,i.u,[],null,null),t["\u0275did"](4,4210688,[["formCtrl",4]],0,i.m,[[8,null],[8,null]],null,null),t["\u0275prd"](2048,null,i.b,null,[i.m]),t["\u0275did"](6,16384,null,0,i.l,[[4,i.b]],null,null),(n()(),t["\u0275eld"](7,0,null,null,292,"div",[["class","row ml-2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](8,0,null,null,291,"div",[["class","col-lg-12 col-sm-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](9,0,null,null,3,"h6",[["class","text-muted"]],null,null,null,null,null)),(n()(),t["\u0275eld"](10,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["* "])),(n()(),t["\u0275ted"](-1,null,["Todos los campos son obligatorios"])),(n()(),t["\u0275eld"](13,0,null,null,286,"table",[["class","table table-responsive"]],null,null,null,null,null)),(n()(),t["\u0275eld"](14,0,null,null,285,"tbody",[],null,null,null,null,null)),(n()(),t["\u0275eld"](15,0,null,null,42,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](16,0,null,null,20,"td",[["width","50%"]],null,null,null,null,null)),(n()(),t["\u0275eld"](17,0,null,null,3,"label",[["for","tipoColegio"]],null,null,null,null,null)),(n()(),t["\u0275eld"](18,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 31. Tipo Colegio: "])),(n()(),t["\u0275eld"](21,0,null,null,15,"select",[["class","form-control"],["id","tipoColegio"],["name","tipoColegio"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,24).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,24).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.tipo_colegio=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](22,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](23,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](24,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](25,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](28,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](30,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](31,0,null,null,3,"option",[["value","0"]],null,null,null,null,null)),t["\u0275did"](32,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](33,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE"])),(n()(),t["\u0275and"](16777216,null,null,1,null,nn)),t["\u0275did"](36,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](37,0,null,null,20,"td",[["width","50%"]],null,null,null,null,null)),(n()(),t["\u0275eld"](38,0,null,null,3,"label",[["for","tipoBachillerato"]],null,null,null,null,null)),(n()(),t["\u0275eld"](39,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 32. Tipo Bachillerato: "])),(n()(),t["\u0275eld"](42,0,null,null,15,"select",[["class","form-control"],["id","tipoBachillerato"],["name","tipoBachillerato"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,45).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,45).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.tipo_bachillerato=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](43,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](44,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](45,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](46,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](49,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](51,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](52,0,null,null,3,"option",[["value","0"]],null,null,null,null,null)),t["\u0275did"](53,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](54,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE"])),(n()(),t["\u0275and"](16777216,null,null,1,null,en)),t["\u0275did"](57,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](58,0,null,null,29,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](59,0,null,null,15,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](60,0,null,null,3,"label",[["for","anioGraduacionColegio"]],null,null,null,null,null)),(n()(),t["\u0275eld"](61,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 33. A\xf1o de Graduaci\xf3n del Colegio: "])),(n()(),t["\u0275eld"](64,0,null,null,10,"input",[["class","form-control"],["id","anioGraduacionColegio"],["name","anioGraduacionColegio"],["required",""],["type","number"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,67)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,67).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,67)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,67)._compositionEnd(l.target.value)&&r),"change"===e&&(r=!1!==t["\u0275nov"](n,68).onChange(l.target.value)&&r),"input"===e&&(r=!1!==t["\u0275nov"](n,68).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,68).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.anio_graduacion=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](65,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](66,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](67,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](68,16384,null,0,i.t,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](69,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n,e){return[n,e]},[i.c,i.t]),t["\u0275did"](72,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](74,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](75,0,null,null,12,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](76,0,null,null,3,"label",[["for","fechaInicioCarrera"]],null,null,null,null,null)),(n()(),t["\u0275eld"](77,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 35. Fecha de Inicio Carrera Superior: "])),(n()(),t["\u0275eld"](80,0,null,null,7,"input",[["class","form-control"],["disabled",""],["id","fechaInicioCarrera"],["name","fechaInicioCarrera"],["required",""],["type","date"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,81)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,81).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,81)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,81)._compositionEnd(l.target.value)&&r),"ngModelChange"===e&&(r=!1!==(A.estudiante.fecha_inicio_carrera=l)&&r),r},null,null)),t["\u0275did"](81,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](82,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.c]),t["\u0275did"](85,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](87,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](88,0,null,null,24,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](89,0,null,null,20,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](90,0,null,null,3,"label",[["for","poseeTituloSuperior"]],null,null,null,null,null)),(n()(),t["\u0275eld"](91,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 34. \xbfPosee t\xedtulo de Educaci\xf3n Superior? "])),(n()(),t["\u0275eld"](94,0,null,null,15,"select",[["class","form-control"],["id","poseeTituloSuperior"],["name","poseeTituloSuperior"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,97).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,97).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.posee_titulo_superior=l)&&r),"change"===e&&(A.validateTituloSuperior(),r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](95,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](96,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](97,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](98,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](101,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](103,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](104,0,null,null,3,"option",[["value","0"]],null,null,null,null,null)),t["\u0275did"](105,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](106,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE"])),(n()(),t["\u0275and"](16777216,null,null,1,null,ln)),t["\u0275did"](109,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](110,0,null,null,2,"td",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,tn)),t["\u0275did"](112,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](113,0,null,null,24,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](114,0,null,null,20,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](115,0,null,null,3,"label",[["for","haRealizadoPracticas"]],null,null,null,null,null)),(n()(),t["\u0275eld"](116,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 49. Ha realizado Pr\xe1cticas Preprofesionales: "])),(n()(),t["\u0275eld"](119,0,null,null,15,"select",[["class","form-control"],["id","haRealizadoPracticas"],["name","haRealizadoPracticas"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,122).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,122).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.ha_realizado_practicas=l)&&r),"change"===e&&(A.validarPracticas(),r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](120,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](121,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](122,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](123,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](126,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](128,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](129,0,null,null,3,"option",[["value","0"]],null,null,null,null,null)),t["\u0275did"](130,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](131,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE"])),(n()(),t["\u0275and"](16777216,null,null,1,null,rn)),t["\u0275did"](134,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](135,0,null,null,2,"td",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,An)),t["\u0275did"](137,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](138,0,null,null,6,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](139,0,null,null,2,"td",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,on)),t["\u0275did"](141,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](142,0,null,null,2,"td",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,sn)),t["\u0275did"](144,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](145,0,null,null,24,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](146,0,null,null,20,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](147,0,null,null,3,"label",[["for","haRealizadoVinculacion"]],null,null,null,null,null)),(n()(),t["\u0275eld"](148,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 53. Ha participado en alg\xfan Proyecto de Vinculaci\xf3n con la Sociedad en el Instituto: "])),(n()(),t["\u0275eld"](151,0,null,null,15,"select",[["class","form-control"],["id","haRealizadoVinculacion"],["name","haRealizadoVinculacion"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,154).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,154).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.ha_realizado_vinculacion=l)&&r),"change"===e&&(A.validarVinculacion(),r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](152,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](153,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](154,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](155,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](158,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](160,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](161,0,null,null,3,"option",[["value","0"]],null,null,null,null,null)),t["\u0275did"](162,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](163,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE"])),(n()(),t["\u0275and"](16777216,null,null,1,null,cn)),t["\u0275did"](166,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](167,0,null,null,2,"td",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,_n)),t["\u0275did"](169,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](170,0,null,null,24,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](171,0,null,null,20,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](172,0,null,null,3,"label",[["for","ocupacion"]],null,null,null,null,null)),(n()(),t["\u0275eld"](173,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 55. Se encuentra dedicado a: "])),(n()(),t["\u0275eld"](176,0,null,null,15,"select",[["class","form-control"],["id","ocupacion"],["name","ocupacion"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,179).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,179).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.ocupacion=l)&&r),"change"===e&&(A.validateOcupacion(),r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](177,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](178,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](179,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](180,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](183,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](185,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](186,0,null,null,3,"option",[["value","0"]],null,null,null,null,null)),t["\u0275did"](187,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](188,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,gn)),t["\u0275did"](191,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](192,0,null,null,2,"td",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,pn)),t["\u0275did"](194,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](195,0,null,null,6,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](196,0,null,null,2,"td",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,Bn)),t["\u0275did"](198,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](199,0,null,null,2,"td",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,mn)),t["\u0275did"](201,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](202,0,null,null,42,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](203,0,null,null,20,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](204,0,null,null,3,"label",[["for","recibeBonoDesarrollo"]],null,null,null,null,null)),(n()(),t["\u0275eld"](205,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 59. \xbfRecibe el bono de desarrollo humano? "])),(n()(),t["\u0275eld"](208,0,null,null,15,"select",[["class","form-control"],["id","recibeBonoDesarrollo"],["name","recibeBonoDesarrollo"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,211).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,211).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.recibe_bono_desarrollo=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](209,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](210,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](211,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](212,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](215,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](217,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](218,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](219,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](220,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,hn)),t["\u0275did"](223,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](224,0,null,null,20,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](225,0,null,null,3,"label",[["for","nivelFormacionPadre"]],null,null,null,null,null)),(n()(),t["\u0275eld"](226,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 60. Nivel Formaci\xf3n Padre: "])),(n()(),t["\u0275eld"](229,0,null,null,15,"select",[["class","form-control"],["id","nivelFormacionPadre"],["name","nivelFormacionPadre"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,232).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,232).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.nivel_formacion_padre=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](230,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](231,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](232,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](233,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](236,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](238,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](239,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](240,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](241,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,Cn)),t["\u0275did"](244,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](245,0,null,null,37,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](246,0,null,null,20,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](247,0,null,null,3,"label",[["for","nivelFormacionMadre"]],null,null,null,null,null)),(n()(),t["\u0275eld"](248,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 61. Nivel Formaci\xf3n Madre: "])),(n()(),t["\u0275eld"](251,0,null,null,15,"select",[["class","form-control"],["id","nivelFormacionMadre"],["name","nivelFormacionMadre"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(n,e,l){var r=!0,A=n.component;return"change"===e&&(r=!1!==t["\u0275nov"](n,254).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,254).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.nivel_formacion_madre=l)&&r),"change"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](252,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](253,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](254,16384,null,0,i.r,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](255,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n){return[n]},[i.r]),t["\u0275did"](258,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](260,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](261,0,null,null,3,"option",[["selected",""],["value","0"]],null,null,null,null,null)),t["\u0275did"](262,147456,null,0,i.o,[t.ElementRef,t.Renderer2,[2,i.r]],{value:[0,"value"]},null),t["\u0275did"](263,147456,null,0,i.x,[t.ElementRef,t.Renderer2,[8,null]],{value:[0,"value"]},null),(n()(),t["\u0275ted"](-1,null,["SELECCIONE..."])),(n()(),t["\u0275and"](16777216,null,null,1,null,wn)),t["\u0275did"](266,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](267,0,null,null,15,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](268,0,null,null,3,"label",[["for","ingresoFamiliar"]],null,null,null,null,null)),(n()(),t["\u0275eld"](269,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 62. Ingresos Familiares $: "])),(n()(),t["\u0275eld"](272,0,null,null,10,"input",[["class","form-control"],["id","ingresoFamiliar"],["min","1"],["name","ingresoFamiliar"],["placeholder","Total de ingresos familiares"],["required",""],["type","number"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,275)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,275).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,275)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,275)._compositionEnd(l.target.value)&&r),"change"===e&&(r=!1!==t["\u0275nov"](n,276).onChange(l.target.value)&&r),"input"===e&&(r=!1!==t["\u0275nov"](n,276).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,276).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.ingreso_familiar=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](273,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](274,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](275,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](276,16384,null,0,i.t,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](277,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n,e){return[n,e]},[i.c,i.t]),t["\u0275did"](280,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](282,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275eld"](283,0,null,null,16,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](284,0,null,null,15,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](285,0,null,null,3,"label",[["for","numeroMiembrosHogar"]],null,null,null,null,null)),(n()(),t["\u0275eld"](286,0,null,null,1,"b",[["class","text-danger"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["*"])),(n()(),t["\u0275ted"](-1,null,[" 63. Total Miembros del Hogar: "])),(n()(),t["\u0275eld"](289,0,null,null,10,"input",[["class","form-control"],["id","numeroMiembrosHogar"],["max","100"],["min","1"],["name","numeroMiembrosHogar"],["placeholder","Total de ingresos familiares"],["required",""],["type","number"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focusout"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(n,e,l){var r=!0,A=n.component;return"input"===e&&(r=!1!==t["\u0275nov"](n,292)._handleInput(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,292).onTouched()&&r),"compositionstart"===e&&(r=!1!==t["\u0275nov"](n,292)._compositionStart()&&r),"compositionend"===e&&(r=!1!==t["\u0275nov"](n,292)._compositionEnd(l.target.value)&&r),"change"===e&&(r=!1!==t["\u0275nov"](n,293).onChange(l.target.value)&&r),"input"===e&&(r=!1!==t["\u0275nov"](n,293).onChange(l.target.value)&&r),"blur"===e&&(r=!1!==t["\u0275nov"](n,293).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(A.informacionEstudiante.numero_miembros_hogar=l)&&r),"focusout"===e&&(r=!1!==A.updateEstudiante()&&r),r},null,null)),t["\u0275did"](290,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](291,{backgroundTextFieldWarning:0,backgroundTextFieldSuccess:1}),t["\u0275did"](292,16384,null,0,i.c,[t.Renderer2,t.ElementRef,[2,i.a]],null,null),t["\u0275did"](293,16384,null,0,i.t,[t.Renderer2,t.ElementRef],null,null),t["\u0275did"](294,16384,null,0,i.q,[],{required:[0,"required"]},null),t["\u0275prd"](1024,null,i.h,function(n){return[n]},[i.q]),t["\u0275prd"](1024,null,i.i,function(n,e){return[n,e]},[i.c,i.t]),t["\u0275did"](297,671744,null,0,i.n,[[2,i.b],[6,i.h],[8,null],[6,i.i]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),t["\u0275prd"](2048,null,i.j,null,[i.n]),t["\u0275did"](299,16384,null,0,i.k,[[4,i.j]],null,null),(n()(),t["\u0275and"](16777216,null,null,1,null,vn)),t["\u0275did"](301,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(n,e){var l=e.component,t=n(e,23,0,"0"==l.estudiante.tipo_colegio,"0"!=l.estudiante.tipo_colegio);n(e,22,0,"form-control",t),n(e,25,0,""),n(e,28,0,"tipoColegio",l.estudiante.tipo_colegio),n(e,32,0,"0"),n(e,33,0,"0"),n(e,36,0,l.tiposColegio);var r=n(e,44,0,"0"==l.estudiante.tipo_bachillerato,"0"!=l.estudiante.tipo_bachillerato);n(e,43,0,"form-control",r),n(e,46,0,""),n(e,49,0,"tipoBachillerato",l.estudiante.tipo_bachillerato),n(e,53,0,"0"),n(e,54,0,"0"),n(e,57,0,l.tiposBachillerato);var A=n(e,66,0,null==l.estudiante.anio_graduacion||""==l.estudiante.anio_graduacion,""!=l.estudiante.anio_graduacion);n(e,65,0,"form-control",A),n(e,69,0,""),n(e,72,0,"anioGraduacionColegio",l.estudiante.anio_graduacion),n(e,82,0,""),n(e,85,0,"fechaInicioCarrera","",l.estudiante.fecha_inicio_carrera);var i=n(e,96,0,"0"==l.informacionEstudiante.posee_titulo_superior,"0"!=l.informacionEstudiante.posee_titulo_superior);n(e,95,0,"form-control",i),n(e,98,0,""),n(e,101,0,"poseeTituloSuperior",l.informacionEstudiante.posee_titulo_superior),n(e,105,0,"0"),n(e,106,0,"0"),n(e,109,0,l.opcionesSiNo),n(e,112,0,"1"==l.informacionEstudiante.posee_titulo_superior);var a=n(e,121,0,null==l.informacionEstudiante.ha_realizado_practicas||"0"==l.informacionEstudiante.ha_realizado_practicas,"0"!=l.informacionEstudiante.ha_realizado_practicas);n(e,120,0,"form-control",a),n(e,123,0,""),n(e,126,0,"haRealizadoPracticas",l.informacionEstudiante.ha_realizado_practicas),n(e,130,0,"0"),n(e,131,0,"0"),n(e,134,0,l.opcionesSiNo),n(e,137,0,"1"==l.informacionEstudiante.ha_realizado_practicas),n(e,141,0,"1"==l.informacionEstudiante.ha_realizado_practicas),n(e,144,0,"1"==l.informacionEstudiante.ha_realizado_practicas);var o=n(e,153,0,null==l.informacionEstudiante.ha_realizado_vinculacion||"0"==l.informacionEstudiante.ha_realizado_vinculacion,"0"!=l.informacionEstudiante.ha_realizado_vinculacion);n(e,152,0,"form-control",o),n(e,155,0,""),n(e,158,0,"haRealizadoVinculacion",l.informacionEstudiante.ha_realizado_vinculacion),n(e,162,0,"0"),n(e,163,0,"0"),n(e,166,0,l.opcionesSiNo),n(e,169,0,"1"==l.informacionEstudiante.ha_realizado_vinculacion);var u=n(e,178,0,null==l.informacionEstudiante.ocupacion||"0"==l.informacionEstudiante.ocupacion,"0"!=l.informacionEstudiante.ocupacion);n(e,177,0,"form-control",u),n(e,180,0,""),n(e,183,0,"ocupacion",l.informacionEstudiante.ocupacion),n(e,187,0,"0"),n(e,188,0,"0"),n(e,191,0,l.ocupacionesEstudiante),n(e,194,0,"2"==l.informacionEstudiante.ocupacion),n(e,198,0,"2"==l.informacionEstudiante.ocupacion),n(e,201,0,"2"==l.informacionEstudiante.ocupacion);var s=n(e,210,0,null==l.informacionEstudiante.recibe_bono_desarrollo||"0"==l.informacionEstudiante.recibe_bono_desarrollo,"0"!=l.informacionEstudiante.recibe_bono_desarrollo);n(e,209,0,"form-control",s),n(e,212,0,""),n(e,215,0,"recibeBonoDesarrollo",l.informacionEstudiante.recibe_bono_desarrollo),n(e,219,0,"0"),n(e,220,0,"0"),n(e,223,0,l.opcionesSiNo);var c=n(e,231,0,null==l.informacionEstudiante.nivel_formacion_padre||"0"==l.informacionEstudiante.nivel_formacion_padre,"0"!=l.informacionEstudiante.nivel_formacion_padre);n(e,230,0,"form-control",c),n(e,233,0,""),n(e,236,0,"nivelFormacionPadre",l.informacionEstudiante.nivel_formacion_padre),n(e,240,0,"0"),n(e,241,0,"0"),n(e,244,0,l.nivelesFormacion);var d=n(e,253,0,null==l.informacionEstudiante.nivel_formacion_madre||"0"==l.informacionEstudiante.nivel_formacion_madre,"0"!=l.informacionEstudiante.nivel_formacion_madre);n(e,252,0,"form-control",d),n(e,255,0,""),n(e,258,0,"nivelFormacionMadre",l.informacionEstudiante.nivel_formacion_madre),n(e,262,0,"0"),n(e,263,0,"0"),n(e,266,0,l.nivelesFormacion);var _=n(e,274,0,null==l.informacionEstudiante.ingreso_familiar||""==l.informacionEstudiante.ingreso_familiar,""!=l.informacionEstudiante.ingreso_familiar);n(e,273,0,"form-control",_),n(e,277,0,""),n(e,280,0,"ingresoFamiliar",l.informacionEstudiante.ingreso_familiar);var g=n(e,291,0,null==l.informacionEstudiante.numero_miembros_hogar||""==l.informacionEstudiante.numero_miembros_hogar,""!=l.informacionEstudiante.numero_miembros_hogar);n(e,290,0,"form-control",g),n(e,294,0,""),n(e,297,0,"numeroMiembrosHogar",l.informacionEstudiante.numero_miembros_hogar),n(e,301,0,""!=l.estadoDatos)},function(n,e){n(e,2,0,t["\u0275nov"](e,6).ngClassUntouched,t["\u0275nov"](e,6).ngClassTouched,t["\u0275nov"](e,6).ngClassPristine,t["\u0275nov"](e,6).ngClassDirty,t["\u0275nov"](e,6).ngClassValid,t["\u0275nov"](e,6).ngClassInvalid,t["\u0275nov"](e,6).ngClassPending),n(e,21,0,t["\u0275nov"](e,25).required?"":null,t["\u0275nov"](e,30).ngClassUntouched,t["\u0275nov"](e,30).ngClassTouched,t["\u0275nov"](e,30).ngClassPristine,t["\u0275nov"](e,30).ngClassDirty,t["\u0275nov"](e,30).ngClassValid,t["\u0275nov"](e,30).ngClassInvalid,t["\u0275nov"](e,30).ngClassPending),n(e,42,0,t["\u0275nov"](e,46).required?"":null,t["\u0275nov"](e,51).ngClassUntouched,t["\u0275nov"](e,51).ngClassTouched,t["\u0275nov"](e,51).ngClassPristine,t["\u0275nov"](e,51).ngClassDirty,t["\u0275nov"](e,51).ngClassValid,t["\u0275nov"](e,51).ngClassInvalid,t["\u0275nov"](e,51).ngClassPending),n(e,64,0,t["\u0275nov"](e,69).required?"":null,t["\u0275nov"](e,74).ngClassUntouched,t["\u0275nov"](e,74).ngClassTouched,t["\u0275nov"](e,74).ngClassPristine,t["\u0275nov"](e,74).ngClassDirty,t["\u0275nov"](e,74).ngClassValid,t["\u0275nov"](e,74).ngClassInvalid,t["\u0275nov"](e,74).ngClassPending),n(e,80,0,t["\u0275nov"](e,82).required?"":null,t["\u0275nov"](e,87).ngClassUntouched,t["\u0275nov"](e,87).ngClassTouched,t["\u0275nov"](e,87).ngClassPristine,t["\u0275nov"](e,87).ngClassDirty,t["\u0275nov"](e,87).ngClassValid,t["\u0275nov"](e,87).ngClassInvalid,t["\u0275nov"](e,87).ngClassPending),n(e,94,0,t["\u0275nov"](e,98).required?"":null,t["\u0275nov"](e,103).ngClassUntouched,t["\u0275nov"](e,103).ngClassTouched,t["\u0275nov"](e,103).ngClassPristine,t["\u0275nov"](e,103).ngClassDirty,t["\u0275nov"](e,103).ngClassValid,t["\u0275nov"](e,103).ngClassInvalid,t["\u0275nov"](e,103).ngClassPending),n(e,119,0,t["\u0275nov"](e,123).required?"":null,t["\u0275nov"](e,128).ngClassUntouched,t["\u0275nov"](e,128).ngClassTouched,t["\u0275nov"](e,128).ngClassPristine,t["\u0275nov"](e,128).ngClassDirty,t["\u0275nov"](e,128).ngClassValid,t["\u0275nov"](e,128).ngClassInvalid,t["\u0275nov"](e,128).ngClassPending),n(e,151,0,t["\u0275nov"](e,155).required?"":null,t["\u0275nov"](e,160).ngClassUntouched,t["\u0275nov"](e,160).ngClassTouched,t["\u0275nov"](e,160).ngClassPristine,t["\u0275nov"](e,160).ngClassDirty,t["\u0275nov"](e,160).ngClassValid,t["\u0275nov"](e,160).ngClassInvalid,t["\u0275nov"](e,160).ngClassPending),n(e,176,0,t["\u0275nov"](e,180).required?"":null,t["\u0275nov"](e,185).ngClassUntouched,t["\u0275nov"](e,185).ngClassTouched,t["\u0275nov"](e,185).ngClassPristine,t["\u0275nov"](e,185).ngClassDirty,t["\u0275nov"](e,185).ngClassValid,t["\u0275nov"](e,185).ngClassInvalid,t["\u0275nov"](e,185).ngClassPending),n(e,208,0,t["\u0275nov"](e,212).required?"":null,t["\u0275nov"](e,217).ngClassUntouched,t["\u0275nov"](e,217).ngClassTouched,t["\u0275nov"](e,217).ngClassPristine,t["\u0275nov"](e,217).ngClassDirty,t["\u0275nov"](e,217).ngClassValid,t["\u0275nov"](e,217).ngClassInvalid,t["\u0275nov"](e,217).ngClassPending),n(e,229,0,t["\u0275nov"](e,233).required?"":null,t["\u0275nov"](e,238).ngClassUntouched,t["\u0275nov"](e,238).ngClassTouched,t["\u0275nov"](e,238).ngClassPristine,t["\u0275nov"](e,238).ngClassDirty,t["\u0275nov"](e,238).ngClassValid,t["\u0275nov"](e,238).ngClassInvalid,t["\u0275nov"](e,238).ngClassPending),n(e,251,0,t["\u0275nov"](e,255).required?"":null,t["\u0275nov"](e,260).ngClassUntouched,t["\u0275nov"](e,260).ngClassTouched,t["\u0275nov"](e,260).ngClassPristine,t["\u0275nov"](e,260).ngClassDirty,t["\u0275nov"](e,260).ngClassValid,t["\u0275nov"](e,260).ngClassInvalid,t["\u0275nov"](e,260).ngClassPending),n(e,272,0,t["\u0275nov"](e,277).required?"":null,t["\u0275nov"](e,282).ngClassUntouched,t["\u0275nov"](e,282).ngClassTouched,t["\u0275nov"](e,282).ngClassPristine,t["\u0275nov"](e,282).ngClassDirty,t["\u0275nov"](e,282).ngClassValid,t["\u0275nov"](e,282).ngClassInvalid,t["\u0275nov"](e,282).ngClassPending),n(e,289,0,t["\u0275nov"](e,294).required?"":null,t["\u0275nov"](e,299).ngClassUntouched,t["\u0275nov"](e,299).ngClassTouched,t["\u0275nov"](e,299).ngClassPristine,t["\u0275nov"](e,299).ngClassDirty,t["\u0275nov"](e,299).ngClassValid,t["\u0275nov"](e,299).ngClassInvalid,t["\u0275nov"](e,299).ngClassPending)})}var Un=l("5RHE"),In=l("wOnQ"),Qn=l("I8BI"),Tn=l("4EaS"),Rn=function(){function n(n,e){this.spinner=n,this.service=e,this.spinnerConfiguracion=s.a.spinnerConfiguracion[0]}return n.prototype.ngOnInit=function(){this.user=JSON.parse(localStorage.getItem("user")),this.flagFormulario=!1,this.ubicacionNacimiento="",this.ubicacionResidencia="",this.matricula=new c.a,this.instituto=new Tn.a,this.carrera=new Qn.a,this.informacionEstudiante=new _,this.jornadas=s.a.jornadas,this.pueblosNacionalidad=s.a.pueblosNacionalidad,this.tiposInstituciones=s.a.tiposInstituciones,this.tiposColegio=s.a.tiposColegio,this.etnias=s.a.etnias,this.sexos=s.a.sexos,this.generos=s.a.generos,this.opcionesSiNo=s.a.opcionesSiNo,this.opcionesSiNoNA=s.a.opcionesSiNoNA,this.tiposIdentificacion=s.a.tiposIdentificacion,this.ocupacionesEstudiante=s.a.ocupacionesEstudiante,this.tiposBachillerato=s.a.tiposBachillerato,this.sectoresEconomicos=s.a.sectoresEconomicos,this.alcancesVinculacion=s.a.alcancesVinculacion,this.destinosIngreso=s.a.destinosIngreso,this.nivelesFormacion=s.a.nivelesFormacion,this.tiposSangre=s.a.tiposSangre,this.categoriasMigratoria=s.a.categoriasMigratoria,this.estadosCivil=s.a.estadosCivil,this.tiposDiscapacidad=s.a.tiposDiscapacidad,this.semestres=s.a.semestres,this.paralelos=s.a.paralelos,this.getFormulario()},n.prototype.updateEstudiante=function(){var n=this;this.service.update("estudiantes/update_perfil",{estudiante:this.estudiante,informacion_estudiante:this.informacionEstudiante}).subscribe(function(e){n.getEstudiante()},function(e){n.spinner.hide()})},n.prototype.getFormulario=function(){var n=this;this.spinner.show(),this.service.get("estudiantes/formulario/"+this.user.id).subscribe(function(e){n.spinner.hide(),n.flagFormulario=!0,n.matricula=e.matricula,console.log(n.matricula.fecha_formulario),n.informacionEstudiante=e.informacion_estudiante,n.instituto=e.instituto,n.carrera=e.carrera,n.ubicacionNacimiento=e.ubicacion_nacimiento[0],n.ubicacionResidencia=e.ubicacion_residencia[0],n.calculateEdad(e.matricula.estudiante.fecha_nacimiento)},function(e){n.spinner.hide()})},n.prototype.getEstudiante=function(){var n=this;this.spinner.show(),this.service.get("estudiantes/3").subscribe(function(e){n.estudiante=e.estudiante,n.spinner.hide()},function(e){n.spinner.hide()})},n.prototype.getPaisesNacionalidad=function(){var n=this;this.service.get("paises_nacionalidad").subscribe(function(e){n.paisesNacionalidad=e.paises_nacionalidad},function(e){n.spinner.hide()})},n.prototype.getPaisesResidencia=function(){var n=this;this.service.get("paises_residencia").subscribe(function(e){n.paisesNacionalidad=e.paises_residencia},function(e){n.spinner.hide()})},n.prototype.validarPracticas=function(){},n.prototype.validarVinculacion=function(){},n.prototype.validateTituloSuperior=function(){this.informacionEstudiante.titulo_superior_obtenido=""},n.prototype.validateOcupacion=function(){this.informacionEstudiante.nombre_empresa_labora="",this.informacionEstudiante.area_trabajo_empresa="",this.informacionEstudiante.destino_ingreso=""},n.prototype.imprimir2=function(){return xepOnline.Formatter.Format("formulario1",{render:"download",filename:"PDF"})},n.prototype.imprimir=function(){var n=this;this.spinner.show(),In(this.encabezadoHojaVida.nativeElement).then(function(e){var l=e.toDataURL("image/png");In(n.cuerpoHojaVida1.nativeElement).then(function(e){var t=e.toDataURL("image/png");In(n.pieHojaVida1.nativeElement).then(function(e){var r=e.toDataURL("image/png");In(n.cuerpoHojaVida2.nativeElement).then(function(e){var A=e.toDataURL("image/png");In(n.pieHojaVida2.nativeElement).then(function(e){var i=e.toDataURL("image/png"),a=new Un;a.addImage(l,"PNG",10,10,190,25),a.addImage(t,"PNG",20,40,165,230),a.addImage(r,"PNG",10,280,180,5),a.addPage(),a.addImage(l,"PNG",10,10,190,30),a.addImage(A,"PNG",20,40,165,230),a.addImage(i,"PNG",10,280,180,10),a.save("FORMULARIO-MATRICULA-"+n.matricula.estudiante.apellido1+" "+n.matricula.estudiante.apellido2+" "+n.matricula.estudiante.nombre1+" "+n.matricula.estudiante.nombre2+"-"+n.matricula.estudiante.identificacion+".pdf"),window.open(a.output("bloburl")),n.spinner.hide()})})})})})},n.prototype.calculateEdad=function(n){if(null!=n&&""!==n){var e=new Date(n+" GMT-0500"),l=e.getFullYear(),t=e.getMonth(),r=e.getDay(),A=new Date,i=A.getFullYear(),a=A.getMonth(),o=A.getDate(),u=i+1900-l;a<t-1&&u--,t-1===a&&o<r&&u--,u>1900&&(u-=1900),this.edad=u}},n}(),Fn=t["\u0275crt"]({encapsulation:0,styles:[["#contenedor_carga[_ngcontent-%COMP%]{background-color:rgba(255,255,255,.9);height:100%;width:100%;top:0;left:0;bottom:0;right:0;position:fixed;transition:all 1s ease;z-index:10000}#carga[_ngcontent-%COMP%]{border:15px solid #000;border-top-color:#f0ad4e;border-top-style:groove;height:120px;width:120px;border-radius:100%;position:relative;top:40%;left:0;bottom:0;right:0;margin:auto;-webkit-animation:1.5s linear infinite girar;animation:1.5s linear infinite girar}@-webkit-keyframes girar{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes girar{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.backgroundTextFieldSuccess[_ngcontent-%COMP%]{background:#fff;color:#000}.backgroundTextFieldWarning[_ngcontent-%COMP%]{background:#f08080;color:#fff}"]],data:{}});function Dn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-primary fa fa-download btn-lg mt-3 mb-3"],["type","button"]],null,[[null,"click"]],function(n,e,l){var t=!0;return"click"===e&&(t=!1!==n.component.imprimir()&&t),t},null,null)),(n()(),t["\u0275ted"](-1,null,[" Descargar\n"]))],null,null)}function On(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.matricula.estudiante.tipo_identificacion==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function Pn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.matricula.estudiante.sexo==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function xn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.matricula.estudiante.genero==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function yn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.matricula.estudiante.etnia==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function Ln(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,1,"i",[["class","ml-3 text-capitalize"]],null,null,null,null,null)),(n()(),t["\u0275ted"](1,null,[" "," "]))],null,function(n,e){n(e,1,0,e.parent.context.$implicit.descripcion)})}function kn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,Ln)),t["\u0275did"](2,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(n,e){n(e,2,0,e.component.matricula.estudiante.pueblo_nacionalidad==e.context.$implicit.codigo)},null)}function Sn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.habla_idioma_ancestral==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function Mn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["Especifique:"]))],null,null)}function Hn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](1,null,[" "," "]))],null,function(n,e){n(e,1,0,e.parent.context.$implicit.descripcion)})}function Nn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,Hn)),t["\u0275did"](2,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(n,e){n(e,2,0,e.context.$implicit.codigo==e.component.matricula.estudiante.tipo_sangre)},null)}function Kn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.categoria_migratoria==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function Wn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.estado_civil==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function Vn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.tiene_discapacidad==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function qn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.tipo_discapacidad==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function zn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.matricula.estudiante.tipo_colegio==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function jn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.matricula.estudiante.tipo_bachillerato==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function Gn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.posee_titulo_superior==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function Yn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["Especif\xedque:"]))],null,null)}function Xn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.matricula.periodo_academico.id==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function Jn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](1,null,[" "," "]))],null,function(n,e){n(e,1,0,e.parent.context.$implicit.descripcion)})}function $n(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,Jn)),t["\u0275did"](2,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(n,e){n(e,2,0,e.context.$implicit.codigo==e.component.matricula.paralelo_principal)},null)}function Zn(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](1,null,[" "," "]))],null,function(n,e){n(e,1,0,e.parent.context.$implicit.descripcion)})}function ne(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,Zn)),t["\u0275did"](2,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(n,e){n(e,2,0,e.context.$implicit.codigo==e.component.matricula.jornada)},null)}function ee(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.ha_repetido_asignatura==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function le(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.ha_perdido_gratuidad==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function te(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.ha_realizado_practicas==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function re(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.tipo_institucion_practicas==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function Ae(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"li",[["class","ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"text-danger":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.sector_economico_practica==e.context.$implicit.codigo);n(e,1,0,"ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function ie(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.ha_realizado_vinculacion==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function ae(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.alcance_vinculacion==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function oe(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.ocupacion==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function ue(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"li",[["class","ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"text-danger":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.area_trabajo_empresa==e.context.$implicit.codigo);n(e,1,0,"ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function se(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.destino_ingreso==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function ce(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"i",[["class","fa fa-circle-o ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa-circle":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.recibe_bono_desarrollo==e.context.$implicit.codigo);n(e,1,0,"fa fa-circle-o ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function de(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"li",[["class","ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa fa-check text-danger":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.nivel_formacion_padre==e.context.$implicit.codigo);n(e,1,0,"ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function _e(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,3,"li",[["class","ml-3 text-capitalize"]],null,null,null,null,null)),t["\u0275did"](1,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](2,{"fa fa-check text-danger":0}),(n()(),t["\u0275ted"](3,null,[" "," "]))],function(n,e){var l=n(e,2,0,e.component.informacionEstudiante.nivel_formacion_madre==e.context.$implicit.codigo);n(e,1,0,"ml-3 text-capitalize",l)},function(n,e){n(e,3,0,e.context.$implicit.descripcion)})}function ge(n){return t["\u0275vid"](0,[t["\u0275pid"](0,a.d,[t.LOCALE_ID]),t["\u0275qud"](402653184,1,{encabezadoHojaVida:0}),t["\u0275qud"](402653184,2,{cuerpoHojaVida1:0}),t["\u0275qud"](402653184,3,{pieHojaVida1:0}),t["\u0275qud"](402653184,4,{cuerpoHojaVida2:0}),t["\u0275qud"](402653184,5,{pieHojaVida2:0}),(n()(),t["\u0275and"](16777216,null,null,1,null,Dn)),t["\u0275did"](7,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](8,0,null,null,307,"div",[["class","container"],["id","formulario1"]],null,null,null,null,null)),(n()(),t["\u0275eld"](9,0,[[1,0],["encabezadoHojaVida",1]],null,11,"div",[["class","row ml-3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](10,0,null,null,1,"div",[["class","col-lg-3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](11,0,null,null,0,"img",[["alt",""]],[[8,"src",4]],null,null,null,null)),(n()(),t["\u0275eld"](12,0,null,null,6,"div",[["class","col-lg-6 text-center"]],null,null,null,null,null)),(n()(),t["\u0275eld"](13,0,null,null,5,"p",[],null,null,null,null,null)),(n()(),t["\u0275eld"](14,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](15,null,["",""])),(n()(),t["\u0275eld"](16,0,null,null,0,"br",[],null,null,null,null,null)),(n()(),t["\u0275eld"](17,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["FORMULARIO DE MATR\xcdCULA"])),(n()(),t["\u0275eld"](19,0,null,null,1,"div",[["class","col-lg-3 text-left"]],null,null,null,null,null)),(n()(),t["\u0275eld"](20,0,null,null,0,"img",[["alt",""],["height","60%"],["src","assets/images/logo_gobierno_de_todos.jpg"],["width","80%"]],null,null,null,null,null)),(n()(),t["\u0275eld"](21,0,[[2,0],["cuerpoHojaVida1",1]],null,288,"div",[["class","row m-5"]],null,null,null,null,null)),(n()(),t["\u0275eld"](22,0,null,null,287,"div",[["class","col-lg-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](23,0,null,null,286,"table",[["class","table table-bordered"]],null,null,null,null,null)),(n()(),t["\u0275eld"](24,0,null,null,285,"tbody",[],null,null,null,null,null)),(n()(),t["\u0275eld"](25,0,null,null,10,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](26,0,null,null,4,"td",[["colspan","4"]],null,null,null,null,null)),(n()(),t["\u0275eld"](27,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["1. Tipo de Documento de ficaci\xf3n:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,On)),t["\u0275did"](30,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](31,0,null,null,4,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](32,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["Formulario Nro."])),(n()(),t["\u0275eld"](34,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](35,null,["",""])),(n()(),t["\u0275eld"](36,0,null,null,15,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](37,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](38,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["2. N\xfamero de Documento de Identificaci\xf3n:"])),(n()(),t["\u0275eld"](40,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](41,null,["",""])),(n()(),t["\u0275eld"](42,0,null,null,4,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](43,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["3. Sexo:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,Pn)),t["\u0275did"](46,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](47,0,null,null,4,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](48,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["4. G\xe9nero:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,xn)),t["\u0275did"](51,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](52,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](53,0,null,null,4,"td",[["colspan","5"]],null,null,null,null,null)),(n()(),t["\u0275eld"](54,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["5. Apellidos y Nombres del Estudiante:"])),(n()(),t["\u0275eld"](56,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](57,null,[" "," "])),(n()(),t["\u0275eld"](58,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](59,0,null,null,4,"td",[["colspan","3"],["rowspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](60,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["6. Correo Electr\xf3nico:"])),(n()(),t["\u0275eld"](62,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](63,null,["",""])),(n()(),t["\u0275eld"](64,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](65,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](66,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["7. No. Celular:"])),(n()(),t["\u0275eld"](68,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](69,null,["",""])),(n()(),t["\u0275eld"](70,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](71,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](72,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["8. No. Convencional:"])),(n()(),t["\u0275eld"](74,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](75,null,["",""])),(n()(),t["\u0275eld"](76,0,null,null,10,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](77,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](78,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["9. Direcci\xf3n:"])),(n()(),t["\u0275eld"](80,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](81,null,["",""])),(n()(),t["\u0275eld"](82,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](83,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["10. C\xf3digo Postal:"])),(n()(),t["\u0275eld"](85,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](86,null,["",""])),(n()(),t["\u0275eld"](87,0,null,null,15,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](88,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](89,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["11. En caso de emergencia contactar a:"])),(n()(),t["\u0275eld"](91,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](92,null,["",""])),(n()(),t["\u0275eld"](93,0,null,null,4,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](94,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["12. Parentesco:"])),(n()(),t["\u0275eld"](96,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](97,null,["",""])),(n()(),t["\u0275eld"](98,0,null,null,4,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](99,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["13. Nro Contacto:"])),(n()(),t["\u0275eld"](101,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](102,null,["",""])),(n()(),t["\u0275eld"](103,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](104,0,null,null,4,"td",[["colspan","5"]],null,null,null,null,null)),(n()(),t["\u0275eld"](105,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["14. Etnia:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,yn)),t["\u0275did"](108,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](109,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](110,0,null,null,4,"td",[["colspan","5"]],null,null,null,null,null)),(n()(),t["\u0275eld"](111,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["15. En caso de escoger etnia Ind\xedgena u Otro especifique su nacionalidad:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,kn)),t["\u0275did"](114,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](115,0,null,null,10,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](116,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](117,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["16. Habla alg\xfan idioma ancestral:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,Sn)),t["\u0275did"](120,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](121,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,Mn)),t["\u0275did"](123,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](124,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](125,null,["",""])),(n()(),t["\u0275eld"](126,0,null,null,15,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](127,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](128,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["17. Fecha de Nacimiento:"])),(n()(),t["\u0275eld"](130,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](131,null,["",""])),(n()(),t["\u0275eld"](132,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](133,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["17.1. Edad:"])),(n()(),t["\u0275eld"](135,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](136,null,["",""])),(n()(),t["\u0275eld"](137,0,null,null,4,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](138,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["18. Tipo De Sangre:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,Nn)),t["\u0275did"](141,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](142,0,null,null,15,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](143,0,null,null,4,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](144,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["19. Pa\xeds Nacionalidad:"])),(n()(),t["\u0275eld"](146,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](147,null,["",""])),(n()(),t["\u0275eld"](148,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](149,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["20. Provincia Nacimiento:"])),(n()(),t["\u0275eld"](151,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](152,null,["",""])),(n()(),t["\u0275eld"](153,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](154,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["21. Cant\xf3n Nacimiento:"])),(n()(),t["\u0275eld"](156,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](157,null,["",""])),(n()(),t["\u0275eld"](158,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](159,0,null,null,4,"td",[["colspan","5"]],null,null,null,null,null)),(n()(),t["\u0275eld"](160,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["22. Categor\xeda Migratoria:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,Kn)),t["\u0275did"](163,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](164,0,null,null,15,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](165,0,null,null,4,"td",[],null,null,null,null,null)),(n()(),t["\u0275eld"](166,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["23. Pa\xeds de Residencia:"])),(n()(),t["\u0275eld"](168,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](169,null,["",""])),(n()(),t["\u0275eld"](170,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](171,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["24.1. Provincia de Residencia:"])),(n()(),t["\u0275eld"](173,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](174,null,["",""])),(n()(),t["\u0275eld"](175,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](176,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["25. Cant\xf3n Residencia:"])),(n()(),t["\u0275eld"](178,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](179,null,["",""])),(n()(),t["\u0275eld"](180,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](181,0,null,null,4,"td",[["colspan","5"]],null,null,null,null,null)),(n()(),t["\u0275eld"](182,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["26. Estado Civil:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,Wn)),t["\u0275did"](185,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](186,0,null,null,10,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](187,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](188,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["27. Tiene Alguna Discapacidad:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,Vn)),t["\u0275did"](191,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](192,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](193,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["28. Nro. Carnet CON/ADIS:"])),(n()(),t["\u0275eld"](195,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](196,null,["",""])),(n()(),t["\u0275eld"](197,0,null,null,10,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](198,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](199,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["29. Porcentaje de Discapacidad:"])),(n()(),t["\u0275eld"](201,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](202,null,[" ",""])),(n()(),t["\u0275eld"](203,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](204,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["30. Tipo:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,qn)),t["\u0275did"](207,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](208,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](209,0,null,null,4,"td",[["colspan","5"]],null,null,null,null,null)),(n()(),t["\u0275eld"](210,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["31. Tipo de Colegio:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,zn)),t["\u0275did"](213,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](214,0,null,null,10,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](215,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](216,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["32. Tipo de Bachillerato:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,jn)),t["\u0275did"](219,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](220,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](221,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["33. A\xf1o Graduaci\xf3n:"])),(n()(),t["\u0275eld"](223,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](224,null,[" ",""])),(n()(),t["\u0275eld"](225,0,null,null,10,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](226,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](227,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["34. Posee alg\xfan t\xedtulo de Educaci\xf3n Superior:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,Gn)),t["\u0275did"](230,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](231,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,Yn)),t["\u0275did"](233,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](234,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](235,null,[" ",""])),(n()(),t["\u0275eld"](236,0,null,null,11,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](237,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](238,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["35. Fecha en la que inici\xf3 el estudiante la Carrera:"])),(n()(),t["\u0275eld"](240,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](241,null,[" ",""])),(n()(),t["\u0275eld"](242,0,null,null,5,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](243,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["36. Fecha de Matr\xedcula:"])),(n()(),t["\u0275eld"](245,0,null,null,2,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](246,null,[" ",""])),t["\u0275ppd"](247,2),(n()(),t["\u0275eld"](248,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](249,0,null,null,4,"td",[["colspan","5"]],null,null,null,null,null)),(n()(),t["\u0275eld"](250,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["37. Tipo de Matr\xedcula:"])),(n()(),t["\u0275eld"](252,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](253,null,[" ",""])),(n()(),t["\u0275eld"](254,0,null,null,16,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](255,0,null,null,10,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](256,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["38. Periodo /Ciclo Acad\xe9mico:"])),(n()(),t["\u0275eld"](258,0,null,null,3,"i",[["class","fa fa-circle ml-3"]],null,null,null,null,null)),t["\u0275did"](259,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](260,{"fa-circle":0}),(n()(),t["\u0275ted"](-1,null,[" Primero (May-Oct)"])),(n()(),t["\u0275eld"](262,0,null,null,3,"i",[["class","fa fa-circle-o ml-2"]],null,null,null,null,null)),t["\u0275did"](263,278528,null,0,a.k,[t.IterableDiffers,t.KeyValueDiffers,t.ElementRef,t.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t["\u0275pod"](264,{"fa-circle":0}),(n()(),t["\u0275ted"](-1,null,[" Segundo (Nov- Abril) "])),(n()(),t["\u0275eld"](266,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](267,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["39. A\xf1o del Periodo Acad\xe9mico:"])),(n()(),t["\u0275eld"](269,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](270,null,[" ",""])),(n()(),t["\u0275eld"](271,0,null,null,10,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](272,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](273,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["40. Periodo /Ciclo Acad\xe9mico:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,Xn)),t["\u0275did"](276,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](277,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](278,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["41. Paralelo:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,$n)),t["\u0275did"](281,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](282,0,null,null,10,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](283,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](284,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["42. Nombre de la Carrera:"])),(n()(),t["\u0275eld"](286,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](287,null,[" ",""])),(n()(),t["\u0275eld"](288,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](289,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["43. T\xeditulo que otorga la Carrera:"])),(n()(),t["\u0275eld"](291,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](292,null,[" ",""])),(n()(),t["\u0275eld"](293,0,null,null,10,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](294,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](295,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["44. Tipo de Carrera:"])),(n()(),t["\u0275eld"](297,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](298,null,[" ",""])),(n()(),t["\u0275eld"](299,0,null,null,4,"td",[["colspan","2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](300,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["45. Modalidad de la Carrera:"])),(n()(),t["\u0275eld"](302,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](303,null,[" ",""])),(n()(),t["\u0275eld"](304,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](305,0,null,null,4,"td",[["colspan","5"]],null,null,null,null,null)),(n()(),t["\u0275eld"](306,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["46. Jornada en la que estudia:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,ne)),t["\u0275did"](309,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](310,0,[[3,0],["pieHojaVida1",1]],null,5,"div",[["class","row m-5"]],null,null,null,null,null)),(n()(),t["\u0275eld"](311,0,null,null,4,"div",[["class","col-lg-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](312,0,null,null,3,"div",[["class","row"]],null,null,null,null,null)),(n()(),t["\u0275eld"](313,0,null,null,2,"div",[["class","col-lg-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](314,0,null,null,1,"i",[["class","pull-right"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["P\xe1g. 1 de 2"])),(n()(),t["\u0275eld"](316,0,null,null,0,"hr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](317,0,null,null,121,"div",[["class","container"],["id","formulario2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](318,0,[[4,0],["cuerpoHojaVida2",1]],null,108,"div",[["class","row ml-3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](319,0,null,null,107,"div",[["class","col-lg-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](320,0,null,null,106,"table",[["class","table table-bordered"]],null,null,null,null,null)),(n()(),t["\u0275eld"](321,0,null,null,105,"tbody",[],null,null,null,null,null)),(n()(),t["\u0275eld"](322,0,null,null,10,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](323,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](324,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["47. Ha repetido al menos una materia:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,ee)),t["\u0275did"](327,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](328,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](329,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["48. Ha perdido la Gratuidad:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,le)),t["\u0275did"](332,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](333,0,null,null,10,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](334,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](335,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["49. Ha realizado Pr\xe1cticas Preprofesionales:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,te)),t["\u0275did"](338,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](339,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](340,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["50. Nro. Horas de Pr\xe1cticas Preprofesionales Realizadas:"])),(n()(),t["\u0275eld"](342,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](343,null,[" ",""])),(n()(),t["\u0275eld"](344,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](345,0,null,null,4,"td",[["colspan","6"]],null,null,null,null,null)),(n()(),t["\u0275eld"](346,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["51. Tipo de Instituci\xf3n en el que se realiza Pr\xe1cticas Preprofesionales:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,re)),t["\u0275did"](349,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](350,0,null,null,7,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](351,0,null,null,6,"td",[["colspan","6"]],null,null,null,null,null)),(n()(),t["\u0275eld"](352,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["52. Sector Econ\xf3mico en el que realiza Pr\xe1cticas Preprofesionales:"])),(n()(),t["\u0275ted"](354,null,[" "," "])),(n()(),t["\u0275eld"](355,0,null,null,2,"ul",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,Ae)),t["\u0275did"](357,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](358,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](359,0,null,null,4,"td",[["colspan","6"]],null,null,null,null,null)),(n()(),t["\u0275eld"](360,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["53. Ha participado en alg\xfan Proyecto de Vinculaci\xf3n con la Sociedad en el Instituto:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,ie)),t["\u0275did"](363,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](364,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](365,0,null,null,4,"td",[["colspan","6"]],null,null,null,null,null)),(n()(),t["\u0275eld"](366,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["54. Cu\xe1l es el alcance del Proyecto de Vinculaci\xf3n con la Sociedad:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,ae)),t["\u0275did"](369,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](370,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](371,0,null,null,4,"td",[["colspan","6"]],null,null,null,null,null)),(n()(),t["\u0275eld"](372,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["55. El Estudiante se encuentra dedicado a:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,oe)),t["\u0275did"](375,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](376,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](377,0,null,null,4,"td",[["colspan","6"]],null,null,null,null,null)),(n()(),t["\u0275eld"](378,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["56. Cu\xe1l es el nombre de la empresa donde labora:"])),(n()(),t["\u0275eld"](380,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](381,null,[" ",""])),(n()(),t["\u0275eld"](382,0,null,null,7,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](383,0,null,null,6,"td",[["colspan","6"]],null,null,null,null,null)),(n()(),t["\u0275eld"](384,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["57. Indique cu\xe1l es el sector Econ\xf3mico de la empresa:"])),(n()(),t["\u0275ted"](386,null,[" "," "])),(n()(),t["\u0275eld"](387,0,null,null,2,"ul",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,ue)),t["\u0275did"](389,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](390,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](391,0,null,null,4,"td",[["colspan","6"]],null,null,null,null,null)),(n()(),t["\u0275eld"](392,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["58. Para que emplea sus ingresos econ\xf3micos el estudiante:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,se)),t["\u0275did"](395,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](396,0,null,null,5,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](397,0,null,null,4,"td",[["colspan","6"]],null,null,null,null,null)),(n()(),t["\u0275eld"](398,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["59. Usted o alg\xfan miembro de la familia del estudiante recibe el bono de desarrollo humano:"])),(n()(),t["\u0275and"](16777216,null,null,1,null,ce)),t["\u0275did"](401,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](402,0,null,null,6,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](403,0,null,null,5,"td",[["colspan","6"]],null,null,null,null,null)),(n()(),t["\u0275eld"](404,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["60. Nivel de Formaci\xf3n del Padre:"])),(n()(),t["\u0275eld"](406,0,null,null,2,"ul",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,de)),t["\u0275did"](408,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](409,0,null,null,6,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](410,0,null,null,5,"td",[["colspan","6"]],null,null,null,null,null)),(n()(),t["\u0275eld"](411,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["61. Nivel de Formaci\xf3n de la Madre:"])),(n()(),t["\u0275eld"](413,0,null,null,2,"ul",[],null,null,null,null,null)),(n()(),t["\u0275and"](16777216,null,null,1,null,_e)),t["\u0275did"](415,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](416,0,null,null,10,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](417,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](418,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["62. Ingresos del Hogar: $"])),(n()(),t["\u0275eld"](420,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](421,null,[" ",""])),(n()(),t["\u0275eld"](422,0,null,null,4,"td",[["colspan","3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](423,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["63. N\xfamero de Miembros del Hogar:"])),(n()(),t["\u0275eld"](425,0,null,null,1,"i",[["class","ml-3"]],null,null,null,null,null)),(n()(),t["\u0275ted"](426,null,[" ",""])),(n()(),t["\u0275eld"](427,0,[[5,0],["pieHojaVida2",1]],null,11,"div",[["class","row ml-3 mt-5"]],null,null,null,null,null)),(n()(),t["\u0275eld"](428,0,null,null,10,"div",[["class","col-lg-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](429,0,null,null,5,"div",[["class","row"]],null,null,null,null,null)),(n()(),t["\u0275eld"](430,0,null,null,4,"div",[["class","col-lg-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](431,0,null,null,1,"i",[["class","pull-right"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,[" __________________________________________"])),(n()(),t["\u0275eld"](433,0,null,null,1,"strong",[["class","pull-right"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["FIRMA ESTUDIANTE:"])),(n()(),t["\u0275eld"](435,0,null,null,3,"div",[["class","row"]],null,null,null,null,null)),(n()(),t["\u0275eld"](436,0,null,null,2,"div",[["class","col-lg-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](437,0,null,null,1,"i",[["class","pull-right"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["P\xe1g. 2 de 2"])),(n()(),t["\u0275eld"](439,0,null,null,1,"button",[["class","btn btn-primary fa fa-download btn-lg"],["type","button"]],null,[[null,"click"]],function(n,e,l){var t=!0;return"click"===e&&(t=!1!==n.component.imprimir()&&t),t},null,null)),(n()(),t["\u0275ted"](-1,null,[" Descargar"]))],function(n,e){var l=e.component;n(e,7,0,l.flagFormulario),n(e,30,0,l.tiposIdentificacion),n(e,46,0,l.sexos),n(e,51,0,l.generos),n(e,108,0,l.etnias),n(e,114,0,l.pueblosNacionalidad),n(e,120,0,l.opcionesSiNo),n(e,123,0,l.informacionEstudiante.idioma_ancestral),n(e,141,0,l.tiposSangre),n(e,163,0,l.categoriasMigratoria),n(e,185,0,l.estadosCivil),n(e,191,0,l.opcionesSiNo),n(e,207,0,l.tiposDiscapacidad),n(e,213,0,l.tiposColegio),n(e,219,0,l.tiposBachillerato),n(e,230,0,l.opcionesSiNo),n(e,233,0,l.informacionEstudiante.titulo_superior_obtenido);var t=n(e,260,0,"1"==l.matricula.periodo_lectivo.codigo.substring(5,6));n(e,259,0,"fa fa-circle ml-3",t);var r=n(e,264,0,"2"==l.matricula.periodo_lectivo.codigo.substring(5,6));n(e,263,0,"fa fa-circle-o ml-2",r),n(e,276,0,l.semestres),n(e,281,0,l.paralelos),n(e,309,0,l.jornadas),n(e,327,0,l.opcionesSiNo),n(e,332,0,l.opcionesSiNoNA),n(e,338,0,l.opcionesSiNo),n(e,349,0,l.tiposInstituciones),n(e,357,0,l.sectoresEconomicos),n(e,363,0,l.opcionesSiNo),n(e,369,0,l.alcancesVinculacion),n(e,375,0,l.ocupacionesEstudiante),n(e,389,0,l.sectoresEconomicos),n(e,395,0,l.destinosIngreso),n(e,401,0,l.opcionesSiNo),n(e,408,0,l.nivelesFormacion),n(e,415,0,l.nivelesFormacion)},function(n,e){var l=e.component;n(e,11,0,t["\u0275inlineInterpolate"](1,"","assets/images/logo_instituto_"+l.instituto.id+".png","")),n(e,15,0,l.instituto.nombre),n(e,35,0,l.matricula.id),n(e,41,0,l.matricula.estudiante.identificacion),n(e,57,0,l.matricula.estudiante.apellido1+" "+l.matricula.estudiante.apellido2+" "+l.matricula.estudiante.nombre1+" "+l.matricula.estudiante.nombre2+" "),n(e,63,0,l.matricula.estudiante.correo_institucional),n(e,69,0,l.informacionEstudiante.telefono_celular),n(e,75,0,l.informacionEstudiante.telefono_fijo),n(e,81,0,l.informacionEstudiante.direccion),n(e,86,0,l.informacionEstudiante.codigo_postal),n(e,92,0,l.informacionEstudiante.contacto_emergencia_nombres),n(e,97,0,l.informacionEstudiante.contacto_emergencia_parentesco),n(e,102,0,l.informacionEstudiante.contacto_emergencia_telefono),n(e,125,0,l.informacionEstudiante.idioma_ancestral),n(e,131,0,l.matricula.estudiante.fecha_nacimiento),n(e,136,0,l.edad),n(e,147,0,l.ubicacionNacimiento.pais_nombre),n(e,152,0,l.ubicacionNacimiento.provincia_nombre),n(e,157,0,l.ubicacionNacimiento.canton_nombre),n(e,169,0,l.ubicacionResidencia.pais_nombre),n(e,174,0,l.ubicacionResidencia.provincia_nombre),n(e,179,0,l.ubicacionResidencia.canton_nombre),n(e,196,0,l.informacionEstudiante.numero_carnet_conadis),n(e,202,0,l.informacionEstudiante.porcentaje_discapacidad),n(e,224,0,l.matricula.estudiante.anio_graduacion),n(e,235,0,l.informacionEstudiante.titulo_superior_obtenido),n(e,241,0,l.matricula.estudiante.fecha_inicio_carrera);var r=t["\u0275unv"](e,246,0,n(e,247,0,t["\u0275nov"](e,0),l.matricula.fecha_formulario,"yyyy-MM-dd"));n(e,246,0,r),n(e,253,0,l.matricula.tipo_matricula.nombre),n(e,270,0,l.matricula.periodo_lectivo.codigo.substring(0,4)),n(e,287,0,l.carrera.nombre),n(e,292,0,l.carrera.titulo_otorga),n(e,298,0,l.carrera.tipo_carrera),n(e,303,0,l.carrera.modalidad),n(e,343,0,l.informacionEstudiante.horas_practicas),n(e,354,0,l.informacionEstudiante.sector_economico_practica),n(e,381,0,l.informacionEstudiante.nombre_empresa_labora),n(e,386,0,l.informacionEstudiante.area_trabajo_empresa),n(e,421,0,l.informacionEstudiante.ingreso_familiar),n(e,426,0,l.informacionEstudiante.numero_miembros_hogar)})}var pe=l("nIz7"),fe=l.n(pe),Be=(l("DaQG"),l("PSD3")),Ee=l.n(Be),me=function(){function n(n,e){this.spinner=n,this.service=e}return n.prototype.ngOnInit=function(){this.flagSolicitud=!1,this.errors="",this.user=JSON.parse(localStorage.getItem("user")),this.messages=s.a.messages,this.jornadas=s.a.jornadas,this.numerosMatricula=s.a.numerosMatricula,this.getAsignaturas()},n.prototype.validateEstudiante=function(n,e){this.errors="",this.errors+="<h3>1. Datos Personales:</h3>",n.tipo_identificacion||(this.errors+="<li>Tipo Documento</li>"),n.identificacion||(this.errors+="<li>Identificaci\xf3n</li>"),e.categoria_migratoria||(this.errors+="<li>Categoria Migratoria</li>"),n.nombre1||(this.errors+="<li>Primer Nombre</li>"),n.apellido1||(this.errors+="<li>Primer Nombre</li>"),n.tipo_sangre||(this.errors+="<li>Tipo Sangre</li>"),n.sexo||(this.errors+="<li>Sexo</li>"),n.fecha_nacimiento||(this.errors+="<li>Fecha de Nacimiento</li>"),n.correo_institucional||(this.errors+="<li>Correo Institucional</li>"),e.codigo_postal||(this.errors+="<i>C\xf3digo Postal</i>"),e.telefono_celular&&e.telefono_celular||(this.errors+="<li>Tel\xe9fono Celular o Fijo</li>"),e.direccion||(this.errors+="<li>Direcci\xf3n</li>"),e.estado_civil||(this.errors+="<li>Estado Civil</li>"),this.errors+="<hr>",this.errors+="<h3>2. Datos Acad\xe9micos:</h3>",n.fecha_inicio_carrera||(this.errors+="<li>Fecha Inicio Carrera</li>"),e.ha_repetido_asignatura||(this.errors+="<li>Ha Repetido Asignaturas</li>"),e.ha_perdido_gratuidad||(this.errors+="<li>Ha Perdido la Gratuidad</li>"),e.ha_realizado_practicas||(this.errors+="<li>Ha Realizado Pr\xe1cticas</li>"),"SI"===e.ha_realizado_practicas&&(e.horas_practicas||(this.errors+="<li>Horas Pr\xe1cticas</li>"),e.sector_economico_practica||(this.errors+="<li>Sector Econ\xf3mico Pr\xe1cticas</li>"),e.tipo_institucion_practicas||(this.errors+="<li>Tipo Instituci\xf3n Pr\xe1cticas</li>")),e.ha_realizado_vinculacion||(this.errors+="<li>Ha Realizado VInculaci\xf3n</li>"),"SI"===e.ha_realizado_practicas&&(e.horas_vinculacion||(this.errors+="<li>Horas Vinculaci\xf3n</li>"),e.alcance_vinculacion||(this.errors+="<li>Alcance Vinculaci\xf3n</li>")),e.posee_titulo_superior||(this.errors+="<li>Posee T\xedtulo Superior</li>"),n.tipo_colegio||(this.errors+="<li>Tipo de Colegio</li>"),n.tipo_bachillerato||(this.errors+="<li>Tipo Bachillerato</li>"),n.anio_graduacion||(this.errors+="<li>A\xf1o de Graduaci\xf3n del Colegio</li>"),this.errors+="<hr>",this.errors+="<h3>3. Datos Familiares:</h3>",e.contacto_emergencia_telefono||(this.errors+="<li>Contacto Emergencia Tel\xe9fono</li>"),e.contacto_emergencia_parentesco||(this.errors+="<li>Contacto Emergencia Parentesco</li>"),e.contacto_emergencia_nombres||(this.errors+="<li>Contacto Emergencia Nombres</li>"),e.habla_idioma_ancestral||(this.errors+="<li>Habla Idioma Ancestral</li>"),"SI"===e.habla_idioma_ancestral&&(e.idioma_ancestral||(this.errors+="<li>Idioma Ancestral</li>")),e.ocupacion||(this.errors+="<li>Ocupaci\xf3n</li>"),"TRABAJA"===e.ocupacion&&(e.nombre_empresa_labora||(this.errors+="<li>Nombre de la Empresa Donde Labora</li>")),e.destino_ingreso||(this.errors+="<li>Destino Ingresos</li>"),e.nivel_formacion_padre||(this.errors+="<li>Nivel Formaci\xf3n Padre</li>"),e.nivel_formacion_madre||(this.errors+="<li>Nivel Formaci\xf3n Madre</li>"),e.ingreso_familiar||(this.errors+="<li>Ingreso Familiar</li>"),e.numero_miembros_hogar||(this.errors+="<li>N\xfamero de Miembros del Hogar</li>"),e.tiene_discapacidad||(this.errors+="<li>Tiene Carnet Conadis</li>"),"1"===e.tiene_discapacidad&&(e.numero_carnet_conadis||(this.errors+="<li>N\xfamero Carnet Conadis</li>"),e.tipo_discapacidad||(this.errors+="<li>Tipo Discapacidad</li>"),e.porcentaje_discapacidad||(this.errors+="<li>Porcentaje Discapacidad</li>")),this.errors+="<hr>",this.errors+="<h3>4. Ubicaci\xf3n:</h3>",n.canton_nacimiento||(this.errors+="<li>Cant\xf3n Nacimiento</li>"),e.canton_residencia||(this.errors+="<li>Cant\xf3n Residencia</li>"),n.etnia&&(this.errors+="<li>Etnia</li>"),"ID\xcdGENA"===n.etnia&&(n.pueblo_nacionalidad||(this.errors+="<li>Pueblo Nacionalidad</li>"))},n.prototype.getBarcodeData=function(n,e){return void 0===e&&(e=900),fe()({render:"canvas",crisp:!0,minVersion:1,ecLevel:"Q",size:e,ratio:void 0,fill:"#333",back:"#fff",text:n,rounded:10,quiet:2,mode:"plain",mSize:5,mPosX:50,mPosY:100,fontname:"sans-serif",fontcolor:"#3F51B5",image:void 0})},n.prototype.generateSolicitudMatricula=function(n,e){var l=this;if(console.log(n),""===this.errors)if(n.codigo){this.doc=new Un("p","pt");var t=this.getBarcodeData(n.codigo),r=new Image;r.src="assets/images/logo_instituto_"+n.instituto_id+".png",this.doc=new Un("p","pt"),this.doc.addImage(t,"JPG",70,30,80,80),1===n.instituto_id&&this.doc.addImage(r,"JPG",380,60,r.width,r.height),2!==n.instituto_id&&3!==n.instituto_id||this.doc.addImage(r,"JPG",450,30,r.width,r.height),4===n.instituto_id&&this.doc.addImage(r,"JPG",425,30,r.width,r.height),this.doc.setFontSize(20),this.doc.setFontStyle("bold"),this.doc.text("SOLICITUD DE MATR\xcdCULA",150,160),this.doc.setFontStyle("times"),this.doc.setFontSize(12),this.doc.text("Fecha: "+n.fecha_solicitud.toString().substring(0,10),450,140),this.doc.text("IVAN BORJA CARRERA",70,190),this.doc.text(n.carrera,70,210),this.doc.text("RECTOR.-",70,230);var A=n.estudiante.apellido1+" "+n.estudiante.apellido2+" "+n.estudiante.nombre1+" "+n.estudiante.nombre2,i="Yo, "+A+", con c\xe9dula de ciudadan\xeda N\xb0 "+n.estudiante.identificacion+", hago uso de mi cupo en la carrera "+n.carrera+", en el periodo lectivo "+n.periodo_lectivo.nombre+" con la inscripci\xf3n en las siguientes asignaturas:";this.doc.setFontStyle("normal");var a=this.doc.splitTextToSize(i,450);this.doc.text(70,255,a),In(this.asignaturas.nativeElement).then(function(t){l.asignaturasImg=t.toDataURL("image/png"),e.length<=1?(l.doc.text("Con sentimiento de distinguida consideraci\xf3n.",70,500),l.doc.text("Atentamente,",70,550),l.doc.text(A,70,600),l.doc.text("C.C. "+n.estudiante.identificacion,70,620),l.doc.addImage(l.asignaturasImg,"JPG",60,320,500,50)):e.length<=3?(l.doc.text("Con sentimiento de distinguida consideraci\xf3n.",70,500),l.doc.text("Atentamente,",70,550),l.doc.text(A,70,600),l.doc.text("C.C. "+n.estudiante.identificacion,70,620),l.doc.addImage(l.asignaturasImg,"JPG",60,320,500,100)):e.length<=6?(l.doc.text("Con sentimiento de distinguida consideraci\xf3n.",70,550),l.doc.text("Atentamente,",70,600),l.doc.text(A,70,650),l.doc.text("C.C. "+n.estudiante.identificacion,70,670),l.doc.addImage(l.asignaturasImg,"JPG",60,320,500,200)):e.length<=9?(l.doc.text("Con sentimiento de distinguida consideraci\xf3n.",70,600),l.doc.text("Atentamente,",70,650),l.doc.text(A,70,700),l.doc.text("C.C. "+n.estudiante.identificacion,70,720),l.doc.addImage(l.asignaturasImg,"JPG",60,320,500,250)):e.length<=12?(l.doc.text("Con sentimiento de distinguida consideraci\xf3n.",70,650),l.doc.text("Atentamente,",70,700),l.doc.text(A,70,750),l.doc.text("C.C. "+n.estudiante.identificacion,70,770),l.doc.addImage(l.asignaturasImg,"JPG",60,320,500,300)):e.length<=15?(l.doc.text("Con sentimiento de distinguida consideraci\xf3n.",70,650),l.doc.text("Atentamente,",70,700),l.doc.text(A,70,750),l.doc.text("C.C. "+n.estudiante.identificacion,70,770),l.doc.addImage(l.asignaturasImg,"JPG",60,320,500,300)):e.length<=18&&(l.doc.text("Con sentimiento de distinguida consideraci\xf3n.",70,700),l.doc.text("Atentamente,",70,730),l.doc.text(A,70,780),l.doc.text("C.C. "+n.estudiante.identificacion,70,800),l.doc.addImage(l.asignaturasImg,"JPG",60,320,500,350)),l.doc.save("SOLICITUD-MATRICULA-"+A+".pdf")})}else Ee.a.fire("Su cupo no ha sido aprobado","Pida ayuda a su coordinador","error");else Ee.a.fire("Falta la siguiente informaci\xf3n:",this.errors,"error")},n.prototype.getSolicitudMatricula=function(){var n=this;this.service.get("matriculas/solicitud_matricula?user_id="+this.user.id).subscribe(function(e){n.matricula=e.solicitud[0],n.detalleMatricula=e.solicitud,n.generateSolicitudMatricula(e.solicitud[0],e.solicitud)},function(e){n.spinner.hide(),Ee.a.fire(n.messages.error500)})},n.prototype.getAsignaturas=function(){var n=this;this.service.get("matriculas/solicitud_matricula?user_id="+this.user.id).subscribe(function(e){n.flagSolicitud=!0,n.matricula=e.solicitud[0],n.detalleMatricula=e.solicitud},function(e){n.spinner.hide(),Ee.a.fire(n.messages.error500)})},n.prototype.getColumns=function(){return[{title:"C\xd3DIGO",dataKey:"codigo"},{title:"ASIGNATURA",dataKey:"asignatura"},{title:"PERIODO",dataKey:"periodo"},{title:"H. DOCENTE",dataKey:"horas_docente"},{title:"H. PR\xc1CTICA",dataKey:"horas_practica"},{title:"H. AUT\xd3NOMA",dataKey:"horas_autonoma"}]},n.prototype.getheaderStyles=function(){return{fillColor:[255,255,255],textColor:0,fontSize:8}},n.prototype.getbodyStyles=function(){return{fillColor:[255,255,255],textColor:0,fontSize:8}},n.prototype.getalternateRowStyles=function(){return{fillColor:[255,255,255],textColor:0,fontSize:8}},n}(),he=t["\u0275crt"]({encapsulation:0,styles:[["#contenedor_carga[_ngcontent-%COMP%]{background-color:rgba(255,255,255,.9);height:100%;width:100%;top:0;left:0;bottom:0;right:0;position:fixed;transition:all 1s ease;z-index:10000}#carga[_ngcontent-%COMP%]{border:15px solid #000;border-top-color:#f0ad4e;border-top-style:groove;height:120px;width:120px;border-radius:100%;position:relative;top:40%;left:0;bottom:0;right:0;margin:auto;-webkit-animation:1.5s linear infinite girar;animation:1.5s linear infinite girar}@-webkit-keyframes girar{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes girar{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.backgroundTextFieldSuccess[_ngcontent-%COMP%]{background:#fff;color:#000}.backgroundTextFieldWarning[_ngcontent-%COMP%]{background:#f08080;color:#fff}"]],data:{}});function Ce(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-primary fa fa-download btn-lg mt-3"],["type","button"]],null,[[null,"click"]],function(n,e,l){var t=!0;return"click"===e&&(t=!1!==n.component.getSolicitudMatricula()&&t),t},null,null)),(n()(),t["\u0275ted"](-1,null,[" Descargar\n"]))],null,null)}function we(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,16,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,1,"td",[],null,null,null,null,null)),(n()(),t["\u0275ted"](2,null,[" "," "])),(n()(),t["\u0275eld"](3,0,null,null,1,"td",[],null,null,null,null,null)),(n()(),t["\u0275ted"](4,null,[" "," "])),(n()(),t["\u0275eld"](5,0,null,null,1,"td",[["class","text-center"]],null,null,null,null,null)),(n()(),t["\u0275ted"](6,null,[" "," "])),(n()(),t["\u0275eld"](7,0,null,null,1,"td",[],null,null,null,null,null)),(n()(),t["\u0275ted"](8,null,[" "," "])),(n()(),t["\u0275eld"](9,0,null,null,1,"td",[],null,null,null,null,null)),(n()(),t["\u0275ted"](10,null,[" "," "])),(n()(),t["\u0275eld"](11,0,null,null,1,"td",[],null,null,null,null,null)),(n()(),t["\u0275ted"](12,null,[" "," "])),(n()(),t["\u0275eld"](13,0,null,null,1,"td",[],null,null,null,null,null)),(n()(),t["\u0275ted"](14,null,[" "," "])),(n()(),t["\u0275eld"](15,0,null,null,1,"td",[],null,null,null,null,null)),(n()(),t["\u0275ted"](16,null,[" "," "]))],null,function(n,e){var l=e.component;n(e,2,0,e.context.$implicit.asignatura_codigo),n(e,4,0,e.context.$implicit.asignatura),n(e,6,0,e.context.$implicit.periodo),n(e,8,0,l.numerosMatricula[e.context.$implicit.numero_matricula-1].descripcion),n(e,10,0,l.jornadas[e.context.$implicit.jornada-1].descripcion),n(e,12,0,e.context.$implicit.horas_docente),n(e,14,0,e.context.$implicit.horas_practica),n(e,16,0,e.context.$implicit.horas_autonoma)})}function ve(n){return t["\u0275vid"](0,[t["\u0275qud"](402653184,1,{encabezadoHojaVida:0}),t["\u0275qud"](402653184,2,{cuerpoHojaVida1:0}),t["\u0275qud"](402653184,3,{pieHojaVida1:0}),t["\u0275qud"](402653184,4,{asignaturas:0}),(n()(),t["\u0275and"](16777216,null,null,1,null,Ce)),t["\u0275did"](5,16384,null,0,a.m,[t.ViewContainerRef,t.TemplateRef],{ngIf:[0,"ngIf"]},null),(n()(),t["\u0275eld"](6,0,null,null,37,"div",[["class","container"],["id","formulario1"]],null,null,null,null,null)),(n()(),t["\u0275eld"](7,0,[[1,0],["encabezadoHojaVida",1]],null,7,"div",[["class","row ml-3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](8,0,null,null,0,"div",[["class","col-lg-3"]],null,null,null,null,null)),(n()(),t["\u0275eld"](9,0,null,null,3,"div",[["class","col-lg-6 text-center"]],null,null,null,null,null)),(n()(),t["\u0275eld"](10,0,null,null,2,"h3",[],null,null,null,null,null)),(n()(),t["\u0275eld"](11,0,null,null,1,"strong",[],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["ASIGNATURAS"])),(n()(),t["\u0275eld"](13,0,null,null,1,"div",[["class","col-lg-2"]],null,null,null,null,null)),(n()(),t["\u0275eld"](14,0,null,null,0,"img",[["alt",""]],[[8,"src",4]],null,null,null,null)),(n()(),t["\u0275eld"](15,0,[[4,0],["asignaturas",1]],null,22,"div",[["class","row m-5"]],null,null,null,null,null)),(n()(),t["\u0275eld"](16,0,null,null,21,"div",[["class","col-lg-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](17,0,null,null,20,"table",[["class","table table-bordered table-sm"]],null,null,null,null,null)),(n()(),t["\u0275eld"](18,0,null,null,19,"tbody",[],null,null,null,null,null)),(n()(),t["\u0275eld"](19,0,null,null,16,"tr",[],null,null,null,null,null)),(n()(),t["\u0275eld"](20,0,null,null,1,"th",[["width","10%"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,[" C\xd3DIGO "])),(n()(),t["\u0275eld"](22,0,null,null,1,"th",[["width","20%"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,[" ASIGNATURA "])),(n()(),t["\u0275eld"](24,0,null,null,1,"th",[["width","10%"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,[" PERIODO "])),(n()(),t["\u0275eld"](26,0,null,null,1,"th",[["width","10%"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,[" N\xdaMERO MATR\xcdCULA "])),(n()(),t["\u0275eld"](28,0,null,null,1,"th",[["width","10%"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,[" JORNADA "])),(n()(),t["\u0275eld"](30,0,null,null,1,"th",[["width","10%"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,[" H. DOCENTES "])),(n()(),t["\u0275eld"](32,0,null,null,1,"th",[["width","10%"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,[" H. PR\xc1CTICAS "])),(n()(),t["\u0275eld"](34,0,null,null,1,"th",[["width","10%"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,[" H. AUT\xd3NOMAS "])),(n()(),t["\u0275and"](16777216,null,null,1,null,we)),t["\u0275did"](37,278528,null,0,a.l,[t.ViewContainerRef,t.TemplateRef,t.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(n()(),t["\u0275eld"](38,0,[[3,0],["pieHojaVida1",1]],null,5,"div",[["class","row m-5"]],null,null,null,null,null)),(n()(),t["\u0275eld"](39,0,null,null,4,"div",[["class","col-lg-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](40,0,null,null,3,"div",[["class","row"]],null,null,null,null,null)),(n()(),t["\u0275eld"](41,0,null,null,2,"div",[["class","col-lg-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](42,0,null,null,1,"i",[["class","pull-right"]],null,null,null,null,null)),(n()(),t["\u0275ted"](-1,null,["P\xe1g. 1 de 1"])),(n()(),t["\u0275eld"](44,0,null,null,0,"hr",[],null,null,null,null,null))],function(n,e){var l=e.component;n(e,5,0,l.flagSolicitud),n(e,37,0,l.detalleMatricula)},function(n,e){n(e,14,0,t["\u0275inlineInterpolate"](1,"","assets/images/logo_instituto_"+e.component.matricula.instituto_id+".png",""))})}var be=l("9AJC"),Ue=l("4GxJ"),Ie=function(){function n(n,e){this.spinner=n,this.service=e}return n.prototype.ngOnInit=function(){this.messages=s.a.messages,this.matricula=new c.a,this.estudiante=new u.a,this.getEstudiante()},n.prototype.getMatricula=function(){var n=this;this.service.get("matriculas/matricula").subscribe(function(e){n.informacionEstudiante=e.informacion_estudiante},function(e){n.spinner.hide()})},n.prototype.getEstudiante=function(){var n=this;this.spinner.show(),this.user=JSON.parse(localStorage.getItem("user")),this.service.get("estudiantes/"+this.user.id).subscribe(function(e){n.estudiante=e.estudiante,n.informacionEstudiante=e.informacion_estudiante,n.spinner.hide()},function(e){n.spinner.hide()})},n.prototype.validateEstudiante=function(n,e){this.errors="",this.errors+="<h3>1. Datos Personales:</h3>",n.tipo_identificacion||(this.errors+="<li>Tipo Documento</li>"),n.identificacion||(this.errors+="<li>Identificaci\xf3n</li>"),e.categoria_migratoria||(this.errors+="<li>Categoria Migratoria</li>"),n.nombre1||(this.errors+="<li>Primer Nombre</li>"),n.apellido1||(this.errors+="<li>Primer Nombre</li>"),n.tipo_sangre||(this.errors+="<li>Tipo Sangre</li>"),n.sexo||(this.errors+="<li>Sexo</li>"),n.fecha_nacimiento||(this.errors+="<li>Fecha de Nacimiento</li>"),n.correo_institucional||(this.errors+="<li>Correo Institucional</li>"),e.codigo_postal||(this.errors+="<i>C\xf3digo Postal</i>"),e.telefono_celular&&e.telefono_celular||(this.errors+="<li>Tel\xe9fono Celular o Fijo</li>"),e.direccion||(this.errors+="<li>Direcci\xf3n</li>"),e.estado_civil||(this.errors+="<li>Estado Civil</li>"),this.errors+="<hr>",this.errors+="<h3>2. Datos Acad\xe9micos:</h3>",n.fecha_inicio_carrera||(this.errors+="<li>Fecha Inicio Carrera</li>"),e.ha_repetido_asignatura||(this.errors+="<li>Ha Repetido Asignaturas</li>"),e.ha_perdido_gratuidad||(this.errors+="<li>Ha Perdido la Gratuidad</li>"),e.ha_realizado_practicas||(this.errors+="<li>Ha Realizado Pr\xe1cticas</li>"),"SI"===e.ha_realizado_practicas&&(e.horas_practicas||(this.errors+="<li>Horas Pr\xe1cticas</li>"),e.sector_economico_practica||(this.errors+="<li>Sector Econ\xf3mico Pr\xe1cticas</li>"),e.tipo_institucion_practicas||(this.errors+="<li>Tipo Instituci\xf3n Pr\xe1cticas</li>")),e.ha_realizado_vinculacion||(this.errors+="<li>Ha Realizado VInculaci\xf3n</li>"),"SI"===e.ha_realizado_practicas&&(e.horas_vinculacion||(this.errors+="<li>Horas Vinculaci\xf3n</li>"),e.alcance_vinculacion||(this.errors+="<li>Alcance Vinculaci\xf3n</li>")),e.posee_titulo_superior||(this.errors+="<li>Posee T\xedtulo Superior</li>"),n.tipo_colegio||(this.errors+="<li>Tipo de Colegio</li>"),n.tipo_bachillerato||(this.errors+="<li>Tipo Bachillerato</li>"),n.anio_graduacion||(this.errors+="<li>A\xf1o de Graduaci\xf3n del Colegio</li>"),this.errors+="<hr>",this.errors+="<h3>3. Datos Familiares:</h3>",e.contacto_emergencia_telefono||(this.errors+="<li>Contacto Emergencia Tel\xe9fono</li>"),e.contacto_emergencia_parentesco||(this.errors+="<li>Contacto Emergencia Parentesco</li>"),e.contacto_emergencia_nombres||(this.errors+="<li>Contacto Emergencia Nombres</li>"),e.habla_idioma_ancestral||(this.errors+="<li>Habla Idioma Ancestral</li>"),"SI"===e.habla_idioma_ancestral&&(e.idioma_ancestral||(this.errors+="<li>Idioma Ancestral</li>")),e.ocupacion||(this.errors+="<li>Ocupaci\xf3n</li>"),"TRABAJA"===e.ocupacion&&(e.nombre_empresa_labora||(this.errors+="<li>Nombre de la Empresa Donde Labora</li>")),e.destino_ingreso||(this.errors+="<li>Destino Ingresos</li>"),e.nivel_formacion_padre||(this.errors+="<li>Nivel Formaci\xf3n Padre</li>"),e.nivel_formacion_madre||(this.errors+="<li>Nivel Formaci\xf3n Madre</li>"),e.ingreso_familiar||(this.errors+="<li>Ingreso Familiar</li>"),e.numero_miembros_hogar||(this.errors+="<li>N\xfamero de Miembros del Hogar</li>"),e.tiene_discapacidad||(this.errors+="<li>Tiene Carnet Conadis</li>"),"1"===e.tiene_discapacidad&&(e.numero_carnet_conadis||(this.errors+="<li>N\xfamero Carnet Conadis</li>"),e.tipo_discapacidad||(this.errors+="<li>Tipo Discapacidad</li>"),e.porcentaje_discapacidad||(this.errors+="<li>Porcentaje Discapacidad</li>")),this.errors+="<hr>",this.errors+="<h3>4. Ubicaci\xf3n:</h3>",n.pais_nacionalidad||(this.errors+="<li>Pa\xeds Nacionalidad</li>"),n.provincia_nacimiento||(this.errors+="<li>Provincia Nacimiento</li>"),n.canton_nacimiento||(this.errors+="<li>Cant\xf3n Nacimiento</li>"),n.pais_residencia||(this.errors+="<li>Fecha Pa\xeds Residencia</li>"),e.provincia_residencia||(this.errors+="<li>Provincia Residencia</li>"),e.canton_residencia||(this.errors+="<li>Cant\xf3n Residencia</li>"),n.etnia&&(this.errors+="<li>Etnia</li>"),"ID\xcdGENA"===n.etnia&&(n.pueblo_nacionalidad||(this.errors+="<li>Pueblo Nacionalidad</li>"))},n.prototype.getBarcodeData=function(n,e){return void 0===e&&(e=900),fe()({render:"canvas",crisp:!0,minVersion:1,ecLevel:"Q",size:e,ratio:void 0,fill:"#333",back:"#fff",text:n,rounded:10,quiet:2,mode:"plain",mSize:5,mPosX:50,mPosY:100,fontname:"sans-serif",fontcolor:"#3F51B5",image:void 0})},n.prototype.generateSolicitudMatricula=function(n,e){if(""===this.errors){if(n.codigo){this.doc=new Un("p","pt");var l=this.getBarcodeData(n.codigo),t=new Image;t.src="assets/images/logo_carrera_1.jpg",this.doc.addImage(l,"JPG",10,10,100,100),this.doc.addImage(t,"JPG",10,10,500,100),this.doc.setFontSize(20),this.doc.setFontStyle("bold"),this.doc.text("SOLICITUD DE MATR\xcdCULA",175,100),this.doc.setFontStyle("times"),this.doc.setFontSize(12),this.doc.text(n.fecha,425,135),this.doc.text("IVAN BORJA CARRERA",70,180),this.doc.text(n.carrera,70,200),this.doc.text("RECTOR.-",70,220);var r=n.estudiante.nombre1+" "+n.estudiante.nombre2+" "+n.estudiante.apellido1+" "+n.estudiante.apellido2,A="Yo, "+r+", con c\xe9dula de ciudadan\xeda N\xb0 "+n.estudiante.identificacion+", hago uso de mi cupo en la carrera "+n.carrera+", en el periodo lectivo "+n.periodo_lectivo.nombre+" con la inscripci\xf3n en las siguientes asignaturas:";this.doc.setFontStyle("normal");var i=this.doc.splitTextToSize(A,450);this.doc.text(70,250,i);for(var a=[],o=0,u=e;o<u.length;o++){var s=u[o];a.push({codigo:s.asignatura_codigo,asignatura:s.asignatura,horas_docente:s.horas_docente,horas_practica:s.horas_practica,horas_autonoma:s.horas_autonoma,periodo:s.periodo})}this.doc.autoTable(this.getColumns(),a,{startY:350,margin:{top:205,right:70,left:70,bottom:100},bodyStyles:this.getbodyStyles(),alternateRowStyles:this.getalternateRowStyles(),headerStyles:this.getheaderStyles(),styles:{cellPadding:1,fontSize:8,valign:"middle",overflow:"linebreak",tableWidth:"auto",lineWidth:1}}),this.doc.text("Con sentimiento de distinguida consideraci\xf3n.",70,630),this.doc.text("Atentamente,",70,700),this.doc.text(r,70,730),this.doc.text("C.C. "+n.estudiante.identificacion,70,760),this.doc.save("CERTIFICADO-"+r+".pdf")}}else Ee.a.fire("Falta la siguiente informaci\xf3n:",this.errors,"error")},n.prototype.getCertificadoMatricula=function(n){var e=this;this.service.get("matriculas/solicitud_matricula?user_id="+this.user.id).subscribe(function(n){e.generateSolicitudMatricula(n.certificado[0],n.certificado)},function(n){e.spinner.hide(),Ee.a.fire(e.messages.error500)})},n.prototype.getColumns=function(){return[{title:"C\xd3DIGO",dataKey:"codigo"},{title:"ASIGNATURA",dataKey:"asignatura"},{title:"PERIODO",dataKey:"periodo"},{title:"H. DOCENTE",dataKey:"horas_docente"},{title:"H. PR\xc1CTICA",dataKey:"horas_practica"},{title:"H. AUT\xd3NOMA",dataKey:"horas_autonoma"}]},n.prototype.getheaderStyles=function(){return{fillColor:[255,255,255],textColor:0,fontSize:8}},n.prototype.getbodyStyles=function(){return{fillColor:[255,255,255],textColor:0,fontSize:8}},n.prototype.getalternateRowStyles=function(){return{fillColor:[255,255,255],textColor:0,fontSize:8}},n.prototype.updateFecha=function(n){"tab4"===n.nextId&&this.service.update("matriculas/fecha_formulario",{usuario:this.user.id}).subscribe(function(n){},function(n){}),"tab5"===n.nextId&&this.service.update("matriculas/fecha_solicitud",{usuario:this.user.id}).subscribe(function(n){},function(n){})},n}(),Qe=t["\u0275crt"]({encapsulation:0,styles:[["#contenedor_carga[_ngcontent-%COMP%]{background-color:rgba(255,255,255,.9);height:100%;width:100%;top:0;left:0;bottom:0;right:0;position:fixed;transition:all 1s ease;z-index:10000}#carga[_ngcontent-%COMP%]{border:15px solid #000;border-top-color:#f0ad4e;border-top-style:groove;height:120px;width:120px;border-radius:100%;position:relative;top:40%;left:0;bottom:0;right:0;margin:auto;-webkit-animation:1.5s linear infinite girar;animation:1.5s linear infinite girar}@-webkit-keyframes girar{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes girar{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.backgroundTextFieldSuccess[_ngcontent-%COMP%]{background:#fff;color:#000}.backgroundTextFieldWarning[_ngcontent-%COMP%]{background:#f08080;color:#fff}"]],data:{}});function Te(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,1,"app-seccion1",[],null,null,null,C,f)),t["\u0275did"](1,114688,null,0,g,[p.c,o.a],null,null)],function(n,e){n(e,1,0)},null)}function Re(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,1,"app-seccion2",[],null,null,null,J,U)),t["\u0275did"](1,114688,null,0,b,[p.c,o.a],null,null)],function(n,e){n(e,1,0)},null)}function Fe(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,1,"app-seccion3",[],null,null,null,bn,Z)),t["\u0275did"](1,114688,null,0,$,[p.c,o.a],null,null)],function(n,e){n(e,1,0)},null)}function De(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,1,"app-formulario",[],null,null,null,ge,Fn)),t["\u0275did"](1,114688,null,0,Rn,[p.c,o.a],null,null)],function(n,e){n(e,1,0)},null)}function Oe(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,1,"app-solicitud",[],null,null,null,ve,he)),t["\u0275did"](1,114688,null,0,me,[p.c,o.a],null,null)],function(n,e){n(e,1,0)},null)}function Pe(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,34,"div",[["class","row"]],null,null,null,null,null)),(n()(),t["\u0275eld"](1,0,null,null,33,"div",[["class","col-lg-12"]],null,null,null,null,null)),(n()(),t["\u0275eld"](2,0,null,null,32,"ngb-tabset",[],null,[[null,"tabChange"]],function(n,e,l){var t=!0;return"tabChange"===e&&(t=!1!==n.component.updateFecha(l)&&t),t},be.m,be.g)),t["\u0275did"](3,2146304,null,1,Ue.T,[Ue.U],null,{tabChange:"tabChange"}),t["\u0275qud"](603979776,1,{tabs:1}),(n()(),t["\u0275eld"](5,0,null,null,5,"ngb-tab",[["id","tab1"],["title","Secci\xf3n 1"]],null,null,null,null,null)),t["\u0275did"](6,2113536,[[1,4]],2,Ue.Q,[],{id:[0,"id"],title:[1,"title"]},null),t["\u0275qud"](603979776,2,{titleTpls:1}),t["\u0275qud"](603979776,3,{contentTpls:1}),(n()(),t["\u0275and"](0,null,null,1,null,Te)),t["\u0275did"](10,16384,[[3,4]],0,Ue.R,[t.TemplateRef],null,null),(n()(),t["\u0275eld"](11,0,null,null,5,"ngb-tab",[["id","tab2"],["title","Secci\xf3n 2"]],null,[[null,"tabChange"]],function(n,e,l){var t=!0;return"tabChange"===e&&(t=!1!==n.component.updateFecha(l)&&t),t},null,null)),t["\u0275did"](12,2113536,[[1,4]],2,Ue.Q,[],{id:[0,"id"],title:[1,"title"]},null),t["\u0275qud"](603979776,4,{titleTpls:1}),t["\u0275qud"](603979776,5,{contentTpls:1}),(n()(),t["\u0275and"](0,null,null,1,null,Re)),t["\u0275did"](16,16384,[[5,4]],0,Ue.R,[t.TemplateRef],null,null),(n()(),t["\u0275eld"](17,0,null,null,5,"ngb-tab",[["id","tab3"],["title","Secci\xf3n 3"]],null,[[null,"tabChange"]],function(n,e,l){var t=!0;return"tabChange"===e&&(t=!1!==n.component.updateFecha(l)&&t),t},null,null)),t["\u0275did"](18,2113536,[[1,4]],2,Ue.Q,[],{id:[0,"id"],title:[1,"title"]},null),t["\u0275qud"](603979776,6,{titleTpls:1}),t["\u0275qud"](603979776,7,{contentTpls:1}),(n()(),t["\u0275and"](0,null,null,1,null,Fe)),t["\u0275did"](22,16384,[[7,4]],0,Ue.R,[t.TemplateRef],null,null),(n()(),t["\u0275eld"](23,0,null,null,5,"ngb-tab",[["id","tab4"],["title","Formulario"]],null,[[null,"tabChange"]],function(n,e,l){var t=!0;return"tabChange"===e&&(t=!1!==n.component.updateFecha(l)&&t),t},null,null)),t["\u0275did"](24,2113536,[[1,4]],2,Ue.Q,[],{id:[0,"id"],title:[1,"title"]},null),t["\u0275qud"](603979776,8,{titleTpls:1}),t["\u0275qud"](603979776,9,{contentTpls:1}),(n()(),t["\u0275and"](0,null,null,1,null,De)),t["\u0275did"](28,16384,[[9,4]],0,Ue.R,[t.TemplateRef],null,null),(n()(),t["\u0275eld"](29,0,null,null,5,"ngb-tab",[["id","tab5"],["title","Solicitud"]],null,[[null,"tabChange"]],function(n,e,l){var t=!0;return"tabChange"===e&&(t=!1!==n.component.updateFecha(l)&&t),t},null,null)),t["\u0275did"](30,2113536,[[1,4]],2,Ue.Q,[],{id:[0,"id"],title:[1,"title"]},null),t["\u0275qud"](603979776,10,{titleTpls:1}),t["\u0275qud"](603979776,11,{contentTpls:1}),(n()(),t["\u0275and"](0,null,null,1,null,Oe)),t["\u0275did"](34,16384,[[11,4]],0,Ue.R,[t.TemplateRef],null,null)],function(n,e){n(e,6,0,"tab1","Secci\xf3n 1"),n(e,12,0,"tab2","Secci\xf3n 2"),n(e,18,0,"tab3","Secci\xf3n 3"),n(e,24,0,"tab4","Formulario"),n(e,30,0,"tab5","Solicitud")},null)}function xe(n){return t["\u0275vid"](0,[(n()(),t["\u0275eld"](0,0,null,null,1,"app-perfil-estudiante",[],null,null,null,Pe,Qe)),t["\u0275did"](1,114688,null,0,Ie,[p.c,o.a],null,null)],function(n,e){n(e,1,0)},null)}var ye=t["\u0275ccf"]("app-perfil-estudiante",Ie,xe,{},{},[]),Le=l("ZYCi"),ke=function(){return function(){}}();l.d(e,"PerfilEstudianteModuleNgFactory",function(){return Se});var Se=t["\u0275cmf"](r,[],function(n){return t["\u0275mod"]([t["\u0275mpd"](512,t.ComponentFactoryResolver,t["\u0275CodegenComponentFactoryResolver"],[[8,[A.a,ye,be.a,be.b,be.s,be.o,be.p,be.q,be.r]],[3,t.ComponentFactoryResolver],t.NgModuleRef]),t["\u0275mpd"](4608,a.o,a.n,[t.LOCALE_ID,[2,a.B]]),t["\u0275mpd"](4608,i.v,i.v,[]),t["\u0275mpd"](4608,Ue.z,Ue.z,[t.ComponentFactoryResolver,t.Injector,Ue.hb,Ue.A]),t["\u0275mpd"](1073742336,a.b,a.b,[]),t["\u0275mpd"](1073742336,Le.o,Le.o,[[2,Le.u],[2,Le.l]]),t["\u0275mpd"](1073742336,ke,ke,[]),t["\u0275mpd"](1073742336,Ue.d,Ue.d,[]),t["\u0275mpd"](1073742336,Ue.g,Ue.g,[]),t["\u0275mpd"](1073742336,Ue.h,Ue.h,[]),t["\u0275mpd"](1073742336,Ue.l,Ue.l,[]),t["\u0275mpd"](1073742336,Ue.n,Ue.n,[]),t["\u0275mpd"](1073742336,i.s,i.s,[]),t["\u0275mpd"](1073742336,i.g,i.g,[]),t["\u0275mpd"](1073742336,Ue.t,Ue.t,[]),t["\u0275mpd"](1073742336,Ue.w,Ue.w,[]),t["\u0275mpd"](1073742336,Ue.B,Ue.B,[]),t["\u0275mpd"](1073742336,Ue.F,Ue.F,[]),t["\u0275mpd"](1073742336,Ue.I,Ue.I,[]),t["\u0275mpd"](1073742336,Ue.L,Ue.L,[]),t["\u0275mpd"](1073742336,Ue.P,Ue.P,[]),t["\u0275mpd"](1073742336,Ue.V,Ue.V,[]),t["\u0275mpd"](1073742336,Ue.Z,Ue.Z,[]),t["\u0275mpd"](1073742336,Ue.cb,Ue.cb,[]),t["\u0275mpd"](1073742336,Ue.db,Ue.db,[]),t["\u0275mpd"](1073742336,Ue.C,Ue.C,[]),t["\u0275mpd"](1073742336,r,r,[]),t["\u0275mpd"](1024,Le.j,function(){return[[{path:"",component:Ie}]]},[])])})},wOnQ:function(module,exports,__webpack_require__){var factory;window,factory=function(){return function(n){var e={};function l(t){if(e[t])return e[t].exports;var r=e[t]={i:t,l:!1,exports:{}};return n[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}return l.m=n,l.c=e,l.d=function(n,e,t){l.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:t})},l.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},l.t=function(n,e){if(1&e&&(n=l(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)l.d(t,r,(function(e){return n[e]}).bind(null,r));return t},l.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return l.d(e,"a",e),e},l.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},l.p="",l(l.s="./src/index.js")}({"./node_modules/css-line-break/dist/LineBreak.js":function(module,exports,__webpack_require__){"use strict";eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.LineBreaker = exports.inlineBreakOpportunities = exports.lineBreakAtIndex = exports.codePointsToCharacterClasses = exports.UnicodeTrie = exports.BREAK_ALLOWED = exports.BREAK_NOT_ALLOWED = exports.BREAK_MANDATORY = exports.classes = exports.LETTER_NUMBER_MODIFIER = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _Trie = __webpack_require__(/*! ./Trie */ \"./node_modules/css-line-break/dist/Trie.js\");\n\nvar _linebreakTrie = __webpack_require__(/*! ./linebreak-trie */ \"./node_modules/css-line-break/dist/linebreak-trie.js\");\n\nvar _linebreakTrie2 = _interopRequireDefault(_linebreakTrie);\n\nvar _Util = __webpack_require__(/*! ./Util */ \"./node_modules/css-line-break/dist/Util.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar LETTER_NUMBER_MODIFIER = exports.LETTER_NUMBER_MODIFIER = 50;\n\n// Non-tailorable Line Breaking Classes\nvar BK = 1; // Cause a line break (after)\nvar CR = 2; // Cause a line break (after), except between CR and LF\nvar LF = 3; // Cause a line break (after)\nvar CM = 4; // Prohibit a line break between the character and the preceding character\nvar NL = 5; // Cause a line break (after)\nvar SG = 6; // Do not occur in well-formed text\nvar WJ = 7; // Prohibit line breaks before and after\nvar ZW = 8; // Provide a break opportunity\nvar GL = 9; // Prohibit line breaks before and after\nvar SP = 10; // Enable indirect line breaks\nvar ZWJ = 11; // Prohibit line breaks within joiner sequences\n// Break Opportunities\nvar B2 = 12; // Provide a line break opportunity before and after the character\nvar BA = 13; // Generally provide a line break opportunity after the character\nvar BB = 14; // Generally provide a line break opportunity before the character\nvar HY = 15; // Provide a line break opportunity after the character, except in numeric context\nvar CB = 16; // Provide a line break opportunity contingent on additional information\n// Characters Prohibiting Certain Breaks\nvar CL = 17; // Prohibit line breaks before\nvar CP = 18; // Prohibit line breaks before\nvar EX = 19; // Prohibit line breaks before\nvar IN = 20; // Allow only indirect line breaks between pairs\nvar NS = 21; // Allow only indirect line breaks before\nvar OP = 22; // Prohibit line breaks after\nvar QU = 23; // Act like they are both opening and closing\n// Numeric Context\nvar IS = 24; // Prevent breaks after any and before numeric\nvar NU = 25; // Form numeric expressions for line breaking purposes\nvar PO = 26; // Do not break following a numeric expression\nvar PR = 27; // Do not break in front of a numeric expression\nvar SY = 28; // Prevent a break before; and allow a break after\n// Other Characters\nvar AI = 29; // Act like AL when the resolvedEAW is N; otherwise; act as ID\nvar AL = 30; // Are alphabetic characters or symbols that are used with alphabetic characters\nvar CJ = 31; // Treat as NS or ID for strict or normal breaking.\nvar EB = 32; // Do not break from following Emoji Modifier\nvar EM = 33; // Do not break from preceding Emoji Base\nvar H2 = 34; // Form Korean syllable blocks\nvar H3 = 35; // Form Korean syllable blocks\nvar HL = 36; // Do not break around a following hyphen; otherwise act as Alphabetic\nvar ID = 37; // Break before or after; except in some numeric context\nvar JL = 38; // Form Korean syllable blocks\nvar JV = 39; // Form Korean syllable blocks\nvar JT = 40; // Form Korean syllable blocks\nvar RI = 41; // Keep pairs together. For pairs; break before and after other classes\nvar SA = 42; // Provide a line break opportunity contingent on additional, language-specific context analysis\nvar XX = 43; // Have as yet unknown line breaking behavior or unassigned code positions\n\nvar classes = exports.classes = {\n BK: BK,\n CR: CR,\n LF: LF,\n CM: CM,\n NL: NL,\n SG: SG,\n WJ: WJ,\n ZW: ZW,\n GL: GL,\n SP: SP,\n ZWJ: ZWJ,\n B2: B2,\n BA: BA,\n BB: BB,\n HY: HY,\n CB: CB,\n CL: CL,\n CP: CP,\n EX: EX,\n IN: IN,\n NS: NS,\n OP: OP,\n QU: QU,\n IS: IS,\n NU: NU,\n PO: PO,\n PR: PR,\n SY: SY,\n AI: AI,\n AL: AL,\n CJ: CJ,\n EB: EB,\n EM: EM,\n H2: H2,\n H3: H3,\n HL: HL,\n ID: ID,\n JL: JL,\n JV: JV,\n JT: JT,\n RI: RI,\n SA: SA,\n XX: XX\n};\n\nvar BREAK_MANDATORY = exports.BREAK_MANDATORY = '!';\nvar BREAK_NOT_ALLOWED = exports.BREAK_NOT_ALLOWED = '\xd7';\nvar BREAK_ALLOWED = exports.BREAK_ALLOWED = '\xf7';\nvar UnicodeTrie = exports.UnicodeTrie = (0, _Trie.createTrieFromBase64)(_linebreakTrie2.default);\n\nvar ALPHABETICS = [AL, HL];\nvar HARD_LINE_BREAKS = [BK, CR, LF, NL];\nvar SPACE = [SP, ZW];\nvar PREFIX_POSTFIX = [PR, PO];\nvar LINE_BREAKS = HARD_LINE_BREAKS.concat(SPACE);\nvar KOREAN_SYLLABLE_BLOCK = [JL, JV, JT, H2, H3];\nvar HYPHEN = [HY, BA];\n\nvar codePointsToCharacterClasses = exports.codePointsToCharacterClasses = function codePointsToCharacterClasses(codePoints) {\n var lineBreak = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'strict';\n\n var types = [];\n var indicies = [];\n var categories = [];\n codePoints.forEach(function (codePoint, index) {\n var classType = UnicodeTrie.get(codePoint);\n if (classType > LETTER_NUMBER_MODIFIER) {\n categories.push(true);\n classType -= LETTER_NUMBER_MODIFIER;\n } else {\n categories.push(false);\n }\n\n if (['normal', 'auto', 'loose'].indexOf(lineBreak) !== -1) {\n // U+2010, \u2013 U+2013, \u301c U+301C, \u30a0 U+30A0\n if ([0x2010, 0x2013, 0x301c, 0x30a0].indexOf(codePoint) !== -1) {\n indicies.push(index);\n return types.push(CB);\n }\n }\n\n if (classType === CM || classType === ZWJ) {\n // LB10 Treat any remaining combining mark or ZWJ as AL.\n if (index === 0) {\n indicies.push(index);\n return types.push(AL);\n }\n\n // LB9 Do not break a combining character sequence; treat it as if it has the line breaking class of\n // the base character in all of the following rules. Treat ZWJ as if it were CM.\n var prev = types[index - 1];\n if (LINE_BREAKS.indexOf(prev) === -1) {\n indicies.push(indicies[index - 1]);\n return types.push(prev);\n }\n indicies.push(index);\n return types.push(AL);\n }\n\n indicies.push(index);\n\n if (classType === CJ) {\n return types.push(lineBreak === 'strict' ? NS : ID);\n }\n\n if (classType === SA) {\n return types.push(AL);\n }\n\n if (classType === AI) {\n return types.push(AL);\n }\n\n // For supplementary characters, a useful default is to treat characters in the range 10000..1FFFD as AL\n // and characters in the ranges 20000..2FFFD and 30000..3FFFD as ID, until the implementation can be revised\n // to take into account the actual line breaking properties for these characters.\n if (classType === XX) {\n if (codePoint >= 0x20000 && codePoint <= 0x2fffd || codePoint >= 0x30000 && codePoint <= 0x3fffd) {\n return types.push(ID);\n } else {\n return types.push(AL);\n }\n }\n\n types.push(classType);\n });\n\n return [indicies, types, categories];\n};\n\nvar isAdjacentWithSpaceIgnored = function isAdjacentWithSpaceIgnored(a, b, currentIndex, classTypes) {\n var current = classTypes[currentIndex];\n if (Array.isArray(a) ? a.indexOf(current) !== -1 : a === current) {\n var i = currentIndex;\n while (i <= classTypes.length) {\n i++;\n var next = classTypes[i];\n\n if (next === b) {\n return true;\n }\n\n if (next !== SP) {\n break;\n }\n }\n }\n\n if (current === SP) {\n var _i = currentIndex;\n\n while (_i > 0) {\n _i--;\n var prev = classTypes[_i];\n\n if (Array.isArray(a) ? a.indexOf(prev) !== -1 : a === prev) {\n var n = currentIndex;\n while (n <= classTypes.length) {\n n++;\n var _next = classTypes[n];\n\n if (_next === b) {\n return true;\n }\n\n if (_next !== SP) {\n break;\n }\n }\n }\n\n if (prev !== SP) {\n break;\n }\n }\n }\n return false;\n};\n\nvar previousNonSpaceClassType = function previousNonSpaceClassType(currentIndex, classTypes) {\n var i = currentIndex;\n while (i >= 0) {\n var type = classTypes[i];\n if (type === SP) {\n i--;\n } else {\n return type;\n }\n }\n return 0;\n};\n\nvar _lineBreakAtIndex = function _lineBreakAtIndex(codePoints, classTypes, indicies, index, forbiddenBreaks) {\n if (indicies[index] === 0) {\n return BREAK_NOT_ALLOWED;\n }\n\n var currentIndex = index - 1;\n if (Array.isArray(forbiddenBreaks) && forbiddenBreaks[currentIndex] === true) {\n return BREAK_NOT_ALLOWED;\n }\n\n var beforeIndex = currentIndex - 1;\n var afterIndex = currentIndex + 1;\n var current = classTypes[currentIndex];\n\n // LB4 Always break after hard line breaks.\n // LB5 Treat CR followed by LF, as well as CR, LF, and NL as hard line breaks.\n var before = beforeIndex >= 0 ? classTypes[beforeIndex] : 0;\n var next = classTypes[afterIndex];\n\n if (current === CR && next === LF) {\n return BREAK_NOT_ALLOWED;\n }\n\n if (HARD_LINE_BREAKS.indexOf(current) !== -1) {\n return BREAK_MANDATORY;\n }\n\n // LB6 Do not break before hard line breaks.\n if (HARD_LINE_BREAKS.indexOf(next) !== -1) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB7 Do not break before spaces or zero width space.\n if (SPACE.indexOf(next) !== -1) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB8 Break before any character following a zero-width space, even if one or more spaces intervene.\n if (previousNonSpaceClassType(currentIndex, classTypes) === ZW) {\n return BREAK_ALLOWED;\n }\n\n // LB8a Do not break between a zero width joiner and an ideograph, emoji base or emoji modifier.\n if (UnicodeTrie.get(codePoints[currentIndex]) === ZWJ && (next === ID || next === EB || next === EM)) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB11 Do not break before or after Word joiner and related characters.\n if (current === WJ || next === WJ) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB12 Do not break after NBSP and related characters.\n if (current === GL) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB12a Do not break before NBSP and related characters, except after spaces and hyphens.\n if ([SP, BA, HY].indexOf(current) === -1 && next === GL) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB13 Do not break before \u2018]\u2019 or \u2018!\u2019 or \u2018;\u2019 or \u2018/\u2019, even after spaces.\n if ([CL, CP, EX, IS, SY].indexOf(next) !== -1) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB14 Do not break after \u2018[\u2019, even after spaces.\n if (previousNonSpaceClassType(currentIndex, classTypes) === OP) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB15 Do not break within \u2018\u201d[\u2019, even with intervening spaces.\n if (isAdjacentWithSpaceIgnored(QU, OP, currentIndex, classTypes)) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB16 Do not break between closing punctuation and a nonstarter (lb=NS), even with intervening spaces.\n if (isAdjacentWithSpaceIgnored([CL, CP], NS, currentIndex, classTypes)) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB17 Do not break within \u2018\u2014\u2014\u2019, even with intervening spaces.\n if (isAdjacentWithSpaceIgnored(B2, B2, currentIndex, classTypes)) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB18 Break after spaces.\n if (current === SP) {\n return BREAK_ALLOWED;\n }\n\n // LB19 Do not break before or after quotation marks, such as \u2018 \u201d \u2019.\n if (current === QU || next === QU) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB20 Break before and after unresolved CB.\n if (next === CB || current === CB) {\n return BREAK_ALLOWED;\n }\n\n // LB21 Do not break before hyphen-minus, other hyphens, fixed-width spaces, small kana, and other non-starters, or after acute accents.\n if ([BA, HY, NS].indexOf(next) !== -1 || current === BB) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB21a Don't break after Hebrew + Hyphen.\n if (before === HL && HYPHEN.indexOf(current) !== -1) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB21b Don\u2019t break between Solidus and Hebrew letters.\n if (current === SY && next === HL) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB22 Do not break between two ellipses, or between letters, numbers or exclamations and ellipsis.\n if (next === IN && ALPHABETICS.concat(IN, EX, NU, ID, EB, EM).indexOf(current) !== -1) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB23 Do not break between digits and letters.\n if (ALPHABETICS.indexOf(next) !== -1 && current === NU || ALPHABETICS.indexOf(current) !== -1 && next === NU) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB23a Do not break between numeric prefixes and ideographs, or between ideographs and numeric postfixes.\n if (current === PR && [ID, EB, EM].indexOf(next) !== -1 || [ID, EB, EM].indexOf(current) !== -1 && next === PO) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB24 Do not break between numeric prefix/postfix and letters, or between letters and prefix/postfix.\n if (ALPHABETICS.indexOf(current) !== -1 && PREFIX_POSTFIX.indexOf(next) !== -1 || PREFIX_POSTFIX.indexOf(current) !== -1 && ALPHABETICS.indexOf(next) !== -1) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB25 Do not break between the following pairs of classes relevant to numbers:\n if (\n // (PR | PO) \xd7 ( OP | HY )? NU\n [PR, PO].indexOf(current) !== -1 && (next === NU || [OP, HY].indexOf(next) !== -1 && classTypes[afterIndex + 1] === NU) ||\n // ( OP | HY ) \xd7 NU\n [OP, HY].indexOf(current) !== -1 && next === NU ||\n // NU \xd7\t(NU | SY | IS)\n current === NU && [NU, SY, IS].indexOf(next) !== -1) {\n return BREAK_NOT_ALLOWED;\n }\n\n // NU (NU | SY | IS)* \xd7 (NU | SY | IS | CL | CP)\n if ([NU, SY, IS, CL, CP].indexOf(next) !== -1) {\n var prevIndex = currentIndex;\n while (prevIndex >= 0) {\n var type = classTypes[prevIndex];\n if (type === NU) {\n return BREAK_NOT_ALLOWED;\n } else if ([SY, IS].indexOf(type) !== -1) {\n prevIndex--;\n } else {\n break;\n }\n }\n }\n\n // NU (NU | SY | IS)* (CL | CP)? \xd7 (PO | PR))\n if ([PR, PO].indexOf(next) !== -1) {\n var _prevIndex = [CL, CP].indexOf(current) !== -1 ? beforeIndex : currentIndex;\n while (_prevIndex >= 0) {\n var _type = classTypes[_prevIndex];\n if (_type === NU) {\n return BREAK_NOT_ALLOWED;\n } else if ([SY, IS].indexOf(_type) !== -1) {\n _prevIndex--;\n } else {\n break;\n }\n }\n }\n\n // LB26 Do not break a Korean syllable.\n if (JL === current && [JL, JV, H2, H3].indexOf(next) !== -1 || [JV, H2].indexOf(current) !== -1 && [JV, JT].indexOf(next) !== -1 || [JT, H3].indexOf(current) !== -1 && next === JT) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB27 Treat a Korean Syllable Block the same as ID.\n if (KOREAN_SYLLABLE_BLOCK.indexOf(current) !== -1 && [IN, PO].indexOf(next) !== -1 || KOREAN_SYLLABLE_BLOCK.indexOf(next) !== -1 && current === PR) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB28 Do not break between alphabetics (\u201cat\u201d).\n if (ALPHABETICS.indexOf(current) !== -1 && ALPHABETICS.indexOf(next) !== -1) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB29 Do not break between numeric punctuation and alphabetics (\u201ce.g.\u201d).\n if (current === IS && ALPHABETICS.indexOf(next) !== -1) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB30 Do not break between letters, numbers, or ordinary symbols and opening or closing parentheses.\n if (ALPHABETICS.concat(NU).indexOf(current) !== -1 && next === OP || ALPHABETICS.concat(NU).indexOf(next) !== -1 && current === CP) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB30a Break between two regional indicator symbols if and only if there are an even number of regional\n // indicators preceding the position of the break.\n if (current === RI && next === RI) {\n var i = indicies[currentIndex];\n var count = 1;\n while (i > 0) {\n i--;\n if (classTypes[i] === RI) {\n count++;\n } else {\n break;\n }\n }\n if (count % 2 !== 0) {\n return BREAK_NOT_ALLOWED;\n }\n }\n\n // LB30b Do not break between an emoji base and an emoji modifier.\n if (current === EB && next === EM) {\n return BREAK_NOT_ALLOWED;\n }\n\n return BREAK_ALLOWED;\n};\n\nvar lineBreakAtIndex = exports.lineBreakAtIndex = function lineBreakAtIndex(codePoints, index) {\n // LB2 Never break at the start of text.\n if (index === 0) {\n return BREAK_NOT_ALLOWED;\n }\n\n // LB3 Always break at the end of text.\n if (index >= codePoints.length) {\n return BREAK_MANDATORY;\n }\n\n var _codePointsToCharacte = codePointsToCharacterClasses(codePoints),\n _codePointsToCharacte2 = _slicedToArray(_codePointsToCharacte, 2),\n indicies = _codePointsToCharacte2[0],\n classTypes = _codePointsToCharacte2[1];\n\n return _lineBreakAtIndex(codePoints, classTypes, indicies, index);\n};\n\nvar cssFormattedClasses = function cssFormattedClasses(codePoints, options) {\n if (!options) {\n options = { lineBreak: 'normal', wordBreak: 'normal' };\n }\n\n var _codePointsToCharacte3 = codePointsToCharacterClasses(codePoints, options.lineBreak),\n _codePointsToCharacte4 = _slicedToArray(_codePointsToCharacte3, 3),\n indicies = _codePointsToCharacte4[0],\n classTypes = _codePointsToCharacte4[1],\n isLetterNumber = _codePointsToCharacte4[2];\n\n if (options.wordBreak === 'break-all' || options.wordBreak === 'break-word') {\n classTypes = classTypes.map(function (type) {\n return [NU, AL, SA].indexOf(type) !== -1 ? ID : type;\n });\n }\n\n var forbiddenBreakpoints = options.wordBreak === 'keep-all' ? isLetterNumber.map(function (isLetterNumber, i) {\n return isLetterNumber && codePoints[i] >= 0x4e00 && codePoints[i] <= 0x9fff;\n }) : null;\n\n return [indicies, classTypes, forbiddenBreakpoints];\n};\n\nvar inlineBreakOpportunities = exports.inlineBreakOpportunities = function inlineBreakOpportunities(str, options) {\n var codePoints = (0, _Util.toCodePoints)(str);\n var output = BREAK_NOT_ALLOWED;\n\n var _cssFormattedClasses = cssFormattedClasses(codePoints, options),\n _cssFormattedClasses2 = _slicedToArray(_cssFormattedClasses, 3),\n indicies = _cssFormattedClasses2[0],\n classTypes = _cssFormattedClasses2[1],\n forbiddenBreakpoints = _cssFormattedClasses2[2];\n\n codePoints.forEach(function (codePoint, i) {\n output += (0, _Util.fromCodePoint)(codePoint) + (i >= codePoints.length - 1 ? BREAK_MANDATORY : _lineBreakAtIndex(codePoints, classTypes, indicies, i + 1, forbiddenBreakpoints));\n });\n\n return output;\n};\n\nvar Break = function () {\n function Break(codePoints, lineBreak, start, end) {\n _classCallCheck(this, Break);\n\n this._codePoints = codePoints;\n this.required = lineBreak === BREAK_MANDATORY;\n this.start = start;\n this.end = end;\n }\n\n _createClass(Break, [{\n key: 'slice',\n value: function slice() {\n return _Util.fromCodePoint.apply(undefined, _toConsumableArray(this._codePoints.slice(this.start, this.end)));\n }\n }]);\n\n return Break;\n}();\n\nvar LineBreaker = exports.LineBreaker = function LineBreaker(str, options) {\n var codePoints = (0, _Util.toCodePoints)(str);\n\n var _cssFormattedClasses3 = cssFormattedClasses(codePoints, options),\n _cssFormattedClasses4 = _slicedToArray(_cssFormattedClasses3, 3),\n indicies = _cssFormattedClasses4[0],\n classTypes = _cssFormattedClasses4[1],\n forbiddenBreakpoints = _cssFormattedClasses4[2];\n\n var length = codePoints.length;\n var lastEnd = 0;\n var nextIndex = 0;\n\n return {\n next: function next() {\n if (nextIndex >= length) {\n return { done: true };\n }\n var lineBreak = BREAK_NOT_ALLOWED;\n while (nextIndex < length && (lineBreak = _lineBreakAtIndex(codePoints, classTypes, indicies, ++nextIndex, forbiddenBreakpoints)) === BREAK_NOT_ALLOWED) {}\n\n if (lineBreak !== BREAK_NOT_ALLOWED || nextIndex === length) {\n var value = new Break(codePoints, lineBreak, lastEnd, nextIndex);\n lastEnd = nextIndex;\n return { value: value, done: false };\n }\n\n return { done: true };\n }\n };\n};\n\n//# sourceURL=webpack://html2canvas/./node_modules/css-line-break/dist/LineBreak.js?")},"./node_modules/css-line-break/dist/Trie.js":function(module,exports,__webpack_require__){"use strict";eval('\n\nObject.defineProperty(exports, "__esModule", {\n value: true\n});\nexports.Trie = exports.createTrieFromBase64 = exports.UTRIE2_INDEX_2_MASK = exports.UTRIE2_INDEX_2_BLOCK_LENGTH = exports.UTRIE2_OMITTED_BMP_INDEX_1_LENGTH = exports.UTRIE2_INDEX_1_OFFSET = exports.UTRIE2_UTF8_2B_INDEX_2_LENGTH = exports.UTRIE2_UTF8_2B_INDEX_2_OFFSET = exports.UTRIE2_INDEX_2_BMP_LENGTH = exports.UTRIE2_LSCP_INDEX_2_LENGTH = exports.UTRIE2_DATA_MASK = exports.UTRIE2_DATA_BLOCK_LENGTH = exports.UTRIE2_LSCP_INDEX_2_OFFSET = exports.UTRIE2_SHIFT_1_2 = exports.UTRIE2_INDEX_SHIFT = exports.UTRIE2_SHIFT_1 = exports.UTRIE2_SHIFT_2 = undefined;\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _Util = __webpack_require__(/*! ./Util */ "./node_modules/css-line-break/dist/Util.js");\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\n/** Shift size for getting the index-2 table offset. */\nvar UTRIE2_SHIFT_2 = exports.UTRIE2_SHIFT_2 = 5;\n\n/** Shift size for getting the index-1 table offset. */\nvar UTRIE2_SHIFT_1 = exports.UTRIE2_SHIFT_1 = 6 + 5;\n\n/**\n * Shift size for shifting left the index array values.\n * Increases possible data size with 16-bit index values at the cost\n * of compactability.\n * This requires data blocks to be aligned by UTRIE2_DATA_GRANULARITY.\n */\nvar UTRIE2_INDEX_SHIFT = exports.UTRIE2_INDEX_SHIFT = 2;\n\n/**\n * Difference between the two shift sizes,\n * for getting an index-1 offset from an index-2 offset. 6=11-5\n */\nvar UTRIE2_SHIFT_1_2 = exports.UTRIE2_SHIFT_1_2 = UTRIE2_SHIFT_1 - UTRIE2_SHIFT_2;\n\n/**\n * The part of the index-2 table for U+D800..U+DBFF stores values for\n * lead surrogate code _units_ not code _points_.\n * Values for lead surrogate code _points_ are indexed with this portion of the table.\n * Length=32=0x20=0x400>>UTRIE2_SHIFT_2. (There are 1024=0x400 lead surrogates.)\n */\nvar UTRIE2_LSCP_INDEX_2_OFFSET = exports.UTRIE2_LSCP_INDEX_2_OFFSET = 0x10000 >> UTRIE2_SHIFT_2;\n\n/** Number of entries in a data block. 32=0x20 */\nvar UTRIE2_DATA_BLOCK_LENGTH = exports.UTRIE2_DATA_BLOCK_LENGTH = 1 << UTRIE2_SHIFT_2;\n/** Mask for getting the lower bits for the in-data-block offset. */\nvar UTRIE2_DATA_MASK = exports.UTRIE2_DATA_MASK = UTRIE2_DATA_BLOCK_LENGTH - 1;\n\nvar UTRIE2_LSCP_INDEX_2_LENGTH = exports.UTRIE2_LSCP_INDEX_2_LENGTH = 0x400 >> UTRIE2_SHIFT_2;\n/** Count the lengths of both BMP pieces. 2080=0x820 */\nvar UTRIE2_INDEX_2_BMP_LENGTH = exports.UTRIE2_INDEX_2_BMP_LENGTH = UTRIE2_LSCP_INDEX_2_OFFSET + UTRIE2_LSCP_INDEX_2_LENGTH;\n/**\n * The 2-byte UTF-8 version of the index-2 table follows at offset 2080=0x820.\n * Length 32=0x20 for lead bytes C0..DF, regardless of UTRIE2_SHIFT_2.\n */\nvar UTRIE2_UTF8_2B_INDEX_2_OFFSET = exports.UTRIE2_UTF8_2B_INDEX_2_OFFSET = UTRIE2_INDEX_2_BMP_LENGTH;\nvar UTRIE2_UTF8_2B_INDEX_2_LENGTH = exports.UTRIE2_UTF8_2B_INDEX_2_LENGTH = 0x800 >> 6; /* U+0800 is the first code point after 2-byte UTF-8 */\n/**\n * The index-1 table, only used for supplementary code points, at offset 2112=0x840.\n * Variable length, for code points up to highStart, where the last single-value range starts.\n * Maximum length 512=0x200=0x100000>>UTRIE2_SHIFT_1.\n * (For 0x100000 supplementary code points U+10000..U+10ffff.)\n *\n * The part of the index-2 table for supplementary code points starts\n * after this index-1 table.\n *\n * Both the index-1 table and the following part of the index-2 table\n * are omitted completely if there is only BMP data.\n */\nvar UTRIE2_INDEX_1_OFFSET = exports.UTRIE2_INDEX_1_OFFSET = UTRIE2_UTF8_2B_INDEX_2_OFFSET + UTRIE2_UTF8_2B_INDEX_2_LENGTH;\n\n/**\n * Number of index-1 entries for the BMP. 32=0x20\n * This part of the index-1 table is omitted from the serialized form.\n */\nvar UTRIE2_OMITTED_BMP_INDEX_1_LENGTH = exports.UTRIE2_OMITTED_BMP_INDEX_1_LENGTH = 0x10000 >> UTRIE2_SHIFT_1;\n\n/** Number of entries in an index-2 block. 64=0x40 */\nvar UTRIE2_INDEX_2_BLOCK_LENGTH = exports.UTRIE2_INDEX_2_BLOCK_LENGTH = 1 << UTRIE2_SHIFT_1_2;\n/** Mask for getting the lower bits for the in-index-2-block offset. */\nvar UTRIE2_INDEX_2_MASK = exports.UTRIE2_INDEX_2_MASK = UTRIE2_INDEX_2_BLOCK_LENGTH - 1;\n\nvar createTrieFromBase64 = exports.createTrieFromBase64 = function createTrieFromBase64(base64) {\n var buffer = (0, _Util.decode)(base64);\n var view32 = Array.isArray(buffer) ? (0, _Util.polyUint32Array)(buffer) : new Uint32Array(buffer);\n var view16 = Array.isArray(buffer) ? (0, _Util.polyUint16Array)(buffer) : new Uint16Array(buffer);\n var headerLength = 24;\n\n var index = view16.slice(headerLength / 2, view32[4] / 2);\n var data = view32[5] === 2 ? view16.slice((headerLength + view32[4]) / 2) : view32.slice(Math.ceil((headerLength + view32[4]) / 4));\n\n return new Trie(view32[0], view32[1], view32[2], view32[3], index, data);\n};\n\nvar Trie = exports.Trie = function () {\n function Trie(initialValue, errorValue, highStart, highValueIndex, index, data) {\n _classCallCheck(this, Trie);\n\n this.initialValue = initialValue;\n this.errorValue = errorValue;\n this.highStart = highStart;\n this.highValueIndex = highValueIndex;\n this.index = index;\n this.data = data;\n }\n\n /**\n * Get the value for a code point as stored in the Trie.\n *\n * @param codePoint the code point\n * @return the value\n */\n\n\n _createClass(Trie, [{\n key: \'get\',\n value: function get(codePoint) {\n var ix = void 0;\n if (codePoint >= 0) {\n if (codePoint < 0x0d800 || codePoint > 0x0dbff && codePoint <= 0x0ffff) {\n // Ordinary BMP code point, excluding leading surrogates.\n // BMP uses a single level lookup. BMP index starts at offset 0 in the Trie2 index.\n // 16 bit data is stored in the index array itself.\n ix = this.index[codePoint >> UTRIE2_SHIFT_2];\n ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);\n return this.data[ix];\n }\n\n if (codePoint <= 0xffff) {\n // Lead Surrogate Code Point. A Separate index section is stored for\n // lead surrogate code units and code points.\n // The main index has the code unit data.\n // For this function, we need the code point data.\n // Note: this expression could be refactored for slightly improved efficiency, but\n // surrogate code points will be so rare in practice that it\'s not worth it.\n ix = this.index[UTRIE2_LSCP_INDEX_2_OFFSET + (codePoint - 0xd800 >> UTRIE2_SHIFT_2)];\n ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);\n return this.data[ix];\n }\n\n if (codePoint < this.highStart) {\n // Supplemental code point, use two-level lookup.\n ix = UTRIE2_INDEX_1_OFFSET - UTRIE2_OMITTED_BMP_INDEX_1_LENGTH + (codePoint >> UTRIE2_SHIFT_1);\n ix = this.index[ix];\n ix += codePoint >> UTRIE2_SHIFT_2 & UTRIE2_INDEX_2_MASK;\n ix = this.index[ix];\n ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);\n return this.data[ix];\n }\n if (codePoint <= 0x10ffff) {\n return this.data[this.highValueIndex];\n }\n }\n\n // Fall through. The code point is outside of the legal range of 0..0x10ffff.\n return this.errorValue;\n }\n }]);\n\n return Trie;\n}();\n\n//# sourceURL=webpack://html2canvas/./node_modules/css-line-break/dist/Trie.js?')},"./node_modules/css-line-break/dist/Util.js":function(module,exports,__webpack_require__){"use strict";eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar toCodePoints = exports.toCodePoints = function toCodePoints(str) {\n var codePoints = [];\n var i = 0;\n var length = str.length;\n while (i < length) {\n var value = str.charCodeAt(i++);\n if (value >= 0xd800 && value <= 0xdbff && i < length) {\n var extra = str.charCodeAt(i++);\n if ((extra & 0xfc00) === 0xdc00) {\n codePoints.push(((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000);\n } else {\n codePoints.push(value);\n i--;\n }\n } else {\n codePoints.push(value);\n }\n }\n return codePoints;\n};\n\nvar fromCodePoint = exports.fromCodePoint = function fromCodePoint() {\n if (String.fromCodePoint) {\n return String.fromCodePoint.apply(String, arguments);\n }\n\n var length = arguments.length;\n if (!length) {\n return '';\n }\n\n var codeUnits = [];\n\n var index = -1;\n var result = '';\n while (++index < length) {\n var codePoint = arguments.length <= index ? undefined : arguments[index];\n if (codePoint <= 0xffff) {\n codeUnits.push(codePoint);\n } else {\n codePoint -= 0x10000;\n codeUnits.push((codePoint >> 10) + 0xd800, codePoint % 0x400 + 0xdc00);\n }\n if (index + 1 === length || codeUnits.length > 0x4000) {\n result += String.fromCharCode.apply(String, codeUnits);\n codeUnits.length = 0;\n }\n }\n return result;\n};\n\nvar chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\n// Use a lookup table to find the index.\nvar lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);\nfor (var i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n}\n\nvar decode = exports.decode = function decode(base64) {\n var bufferLength = base64.length * 0.75,\n len = base64.length,\n i = void 0,\n p = 0,\n encoded1 = void 0,\n encoded2 = void 0,\n encoded3 = void 0,\n encoded4 = void 0;\n\n if (base64[base64.length - 1] === '=') {\n bufferLength--;\n if (base64[base64.length - 2] === '=') {\n bufferLength--;\n }\n }\n\n var buffer = typeof ArrayBuffer !== 'undefined' && typeof Uint8Array !== 'undefined' && typeof Uint8Array.prototype.slice !== 'undefined' ? new ArrayBuffer(bufferLength) : new Array(bufferLength);\n var bytes = Array.isArray(buffer) ? buffer : new Uint8Array(buffer);\n\n for (i = 0; i < len; i += 4) {\n encoded1 = lookup[base64.charCodeAt(i)];\n encoded2 = lookup[base64.charCodeAt(i + 1)];\n encoded3 = lookup[base64.charCodeAt(i + 2)];\n encoded4 = lookup[base64.charCodeAt(i + 3)];\n\n bytes[p++] = encoded1 << 2 | encoded2 >> 4;\n bytes[p++] = (encoded2 & 15) << 4 | encoded3 >> 2;\n bytes[p++] = (encoded3 & 3) << 6 | encoded4 & 63;\n }\n\n return buffer;\n};\n\nvar polyUint16Array = exports.polyUint16Array = function polyUint16Array(buffer) {\n var length = buffer.length;\n var bytes = [];\n for (var _i = 0; _i < length; _i += 2) {\n bytes.push(buffer[_i + 1] << 8 | buffer[_i]);\n }\n return bytes;\n};\n\nvar polyUint32Array = exports.polyUint32Array = function polyUint32Array(buffer) {\n var length = buffer.length;\n var bytes = [];\n for (var _i2 = 0; _i2 < length; _i2 += 4) {\n bytes.push(buffer[_i2 + 3] << 24 | buffer[_i2 + 2] << 16 | buffer[_i2 + 1] << 8 | buffer[_i2]);\n }\n return bytes;\n};\n\n//# sourceURL=webpack://html2canvas/./node_modules/css-line-break/dist/Util.js?")},"./node_modules/css-line-break/dist/index.js":function(module,exports,__webpack_require__){"use strict";eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Util = __webpack_require__(/*! ./Util */ \"./node_modules/css-line-break/dist/Util.js\");\n\nObject.defineProperty(exports, 'toCodePoints', {\n enumerable: true,\n get: function get() {\n return _Util.toCodePoints;\n }\n});\nObject.defineProperty(exports, 'fromCodePoint', {\n enumerable: true,\n get: function get() {\n return _Util.fromCodePoint;\n }\n});\n\nvar _LineBreak = __webpack_require__(/*! ./LineBreak */ \"./node_modules/css-line-break/dist/LineBreak.js\");\n\nObject.defineProperty(exports, 'LineBreaker', {\n enumerable: true,\n get: function get() {\n return _LineBreak.LineBreaker;\n }\n});\n\n//# sourceURL=webpack://html2canvas/./node_modules/css-line-break/dist/index.js?")},"./node_modules/css-line-break/dist/linebreak-trie.js":function(module,exports,__webpack_require__){"use strict";eval("\n\nmodule.exports = 'KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA';\n\n//# sourceURL=webpack://html2canvas/./node_modules/css-line-break/dist/linebreak-trie.js?")},"./src/Angle.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseAngle\", function() { return parseAngle; });\n\n\nvar ANGLE = /([+-]?\\d*\\.?\\d+)(deg|grad|rad|turn)/i;\nvar parseAngle = function parseAngle(angle) {\n var match = angle.match(ANGLE);\n\n if (match) {\n var value = parseFloat(match[1]);\n\n switch (match[2].toLowerCase()) {\n case 'deg':\n return Math.PI * value / 180;\n\n case 'grad':\n return Math.PI / 200 * value;\n\n case 'rad':\n return value;\n\n case 'turn':\n return Math.PI * 2 * value;\n }\n }\n\n return null;\n};\n\n//# sourceURL=webpack://html2canvas/./src/Angle.js?")},"./src/Bounds.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bounds", function() { return Bounds; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseBounds", function() { return parseBounds; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculatePaddingBox", function() { return calculatePaddingBox; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateContentBox", function() { return calculateContentBox; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseDocumentSize", function() { return parseDocumentSize; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parsePathForBorder", function() { return parsePathForBorder; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateBorderBoxPath", function() { return calculateBorderBoxPath; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculatePaddingBoxPath", function() { return calculatePaddingBoxPath; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseBoundCurves", function() { return parseBoundCurves; });\n/* harmony import */ var _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./drawing/Vector */ "./src/drawing/Vector.js");\n/* harmony import */ var _drawing_BezierCurve__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./drawing/BezierCurve */ "./src/drawing/BezierCurve.js");\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n\nvar TOP = 0;\nvar RIGHT = 1;\nvar BOTTOM = 2;\nvar LEFT = 3;\nvar H = 0;\nvar V = 1;\nvar Bounds =\n/*#__PURE__*/\nfunction () {\n function Bounds(x, y, w, h) {\n _classCallCheck(this, Bounds);\n\n this.left = x;\n this.top = y;\n this.width = w;\n this.height = h;\n }\n\n _createClass(Bounds, null, [{\n key: "fromClientRect",\n value: function fromClientRect(clientRect, scrollX, scrollY) {\n return new Bounds(clientRect.left + scrollX, clientRect.top + scrollY, clientRect.width, clientRect.height);\n }\n }]);\n\n return Bounds;\n}();\nvar parseBounds = function parseBounds(node, scrollX, scrollY) {\n return Bounds.fromClientRect(node.getBoundingClientRect(), scrollX, scrollY);\n};\nvar calculatePaddingBox = function calculatePaddingBox(bounds, borders) {\n return new Bounds(bounds.left + borders[LEFT].borderWidth, bounds.top + borders[TOP].borderWidth, bounds.width - (borders[RIGHT].borderWidth + borders[LEFT].borderWidth), bounds.height - (borders[TOP].borderWidth + borders[BOTTOM].borderWidth));\n};\nvar calculateContentBox = function calculateContentBox(bounds, padding, borders) {\n // TODO support percentage paddings\n var paddingTop = padding[TOP].value;\n var paddingRight = padding[RIGHT].value;\n var paddingBottom = padding[BOTTOM].value;\n var paddingLeft = padding[LEFT].value;\n return new Bounds(bounds.left + paddingLeft + borders[LEFT].borderWidth, bounds.top + paddingTop + borders[TOP].borderWidth, bounds.width - (borders[RIGHT].borderWidth + borders[LEFT].borderWidth + paddingLeft + paddingRight), bounds.height - (borders[TOP].borderWidth + borders[BOTTOM].borderWidth + paddingTop + paddingBottom));\n};\nvar parseDocumentSize = function parseDocumentSize(document) {\n var body = document.body;\n var documentElement = document.documentElement;\n\n if (!body || !documentElement) {\n throw new Error( true ? "Unable to get document size" : undefined);\n }\n\n var width = Math.max(Math.max(body.scrollWidth, documentElement.scrollWidth), Math.max(body.offsetWidth, documentElement.offsetWidth), Math.max(body.clientWidth, documentElement.clientWidth));\n var height = Math.max(Math.max(body.scrollHeight, documentElement.scrollHeight), Math.max(body.offsetHeight, documentElement.offsetHeight), Math.max(body.clientHeight, documentElement.clientHeight));\n return new Bounds(0, 0, width, height);\n};\nvar parsePathForBorder = function parsePathForBorder(curves, borderSide) {\n switch (borderSide) {\n case TOP:\n return createPathFromCurves(curves.topLeftOuter, curves.topLeftInner, curves.topRightOuter, curves.topRightInner);\n\n case RIGHT:\n return createPathFromCurves(curves.topRightOuter, curves.topRightInner, curves.bottomRightOuter, curves.bottomRightInner);\n\n case BOTTOM:\n return createPathFromCurves(curves.bottomRightOuter, curves.bottomRightInner, curves.bottomLeftOuter, curves.bottomLeftInner);\n\n case LEFT:\n default:\n return createPathFromCurves(curves.bottomLeftOuter, curves.bottomLeftInner, curves.topLeftOuter, curves.topLeftInner);\n }\n};\n\nvar createPathFromCurves = function createPathFromCurves(outer1, inner1, outer2, inner2) {\n var path = [];\n\n if (outer1 instanceof _drawing_BezierCurve__WEBPACK_IMPORTED_MODULE_1__["default"]) {\n path.push(outer1.subdivide(0.5, false));\n } else {\n path.push(outer1);\n }\n\n if (outer2 instanceof _drawing_BezierCurve__WEBPACK_IMPORTED_MODULE_1__["default"]) {\n path.push(outer2.subdivide(0.5, true));\n } else {\n path.push(outer2);\n }\n\n if (inner2 instanceof _drawing_BezierCurve__WEBPACK_IMPORTED_MODULE_1__["default"]) {\n path.push(inner2.subdivide(0.5, true).reverse());\n } else {\n path.push(inner2);\n }\n\n if (inner1 instanceof _drawing_BezierCurve__WEBPACK_IMPORTED_MODULE_1__["default"]) {\n path.push(inner1.subdivide(0.5, false).reverse());\n } else {\n path.push(inner1);\n }\n\n return path;\n};\n\nvar calculateBorderBoxPath = function calculateBorderBoxPath(curves) {\n return [curves.topLeftOuter, curves.topRightOuter, curves.bottomRightOuter, curves.bottomLeftOuter];\n};\nvar calculatePaddingBoxPath = function calculatePaddingBoxPath(curves) {\n return [curves.topLeftInner, curves.topRightInner, curves.bottomRightInner, curves.bottomLeftInner];\n};\nvar parseBoundCurves = function parseBoundCurves(bounds, borders, borderRadius) {\n var tlh = borderRadius[CORNER.TOP_LEFT][H].getAbsoluteValue(bounds.width);\n var tlv = borderRadius[CORNER.TOP_LEFT][V].getAbsoluteValue(bounds.height);\n var trh = borderRadius[CORNER.TOP_RIGHT][H].getAbsoluteValue(bounds.width);\n var trv = borderRadius[CORNER.TOP_RIGHT][V].getAbsoluteValue(bounds.height);\n var brh = borderRadius[CORNER.BOTTOM_RIGHT][H].getAbsoluteValue(bounds.width);\n var brv = borderRadius[CORNER.BOTTOM_RIGHT][V].getAbsoluteValue(bounds.height);\n var blh = borderRadius[CORNER.BOTTOM_LEFT][H].getAbsoluteValue(bounds.width);\n var blv = borderRadius[CORNER.BOTTOM_LEFT][V].getAbsoluteValue(bounds.height);\n var factors = [];\n factors.push((tlh + trh) / bounds.width);\n factors.push((blh + brh) / bounds.width);\n factors.push((tlv + blv) / bounds.height);\n factors.push((trv + brv) / bounds.height);\n var maxFactor = Math.max.apply(Math, factors);\n\n if (maxFactor > 1) {\n tlh /= maxFactor;\n tlv /= maxFactor;\n trh /= maxFactor;\n trv /= maxFactor;\n brh /= maxFactor;\n brv /= maxFactor;\n blh /= maxFactor;\n blv /= maxFactor;\n }\n\n var topWidth = bounds.width - trh;\n var rightHeight = bounds.height - brv;\n var bottomWidth = bounds.width - brh;\n var leftHeight = bounds.height - blv;\n return {\n topLeftOuter: tlh > 0 || tlv > 0 ? getCurvePoints(bounds.left, bounds.top, tlh, tlv, CORNER.TOP_LEFT) : new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](bounds.left, bounds.top),\n topLeftInner: tlh > 0 || tlv > 0 ? getCurvePoints(bounds.left + borders[LEFT].borderWidth, bounds.top + borders[TOP].borderWidth, Math.max(0, tlh - borders[LEFT].borderWidth), Math.max(0, tlv - borders[TOP].borderWidth), CORNER.TOP_LEFT) : new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](bounds.left + borders[LEFT].borderWidth, bounds.top + borders[TOP].borderWidth),\n topRightOuter: trh > 0 || trv > 0 ? getCurvePoints(bounds.left + topWidth, bounds.top, trh, trv, CORNER.TOP_RIGHT) : new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](bounds.left + bounds.width, bounds.top),\n topRightInner: trh > 0 || trv > 0 ? getCurvePoints(bounds.left + Math.min(topWidth, bounds.width + borders[LEFT].borderWidth), bounds.top + borders[TOP].borderWidth, topWidth > bounds.width + borders[LEFT].borderWidth ? 0 : trh - borders[LEFT].borderWidth, trv - borders[TOP].borderWidth, CORNER.TOP_RIGHT) : new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](bounds.left + bounds.width - borders[RIGHT].borderWidth, bounds.top + borders[TOP].borderWidth),\n bottomRightOuter: brh > 0 || brv > 0 ? getCurvePoints(bounds.left + bottomWidth, bounds.top + rightHeight, brh, brv, CORNER.BOTTOM_RIGHT) : new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](bounds.left + bounds.width, bounds.top + bounds.height),\n bottomRightInner: brh > 0 || brv > 0 ? getCurvePoints(bounds.left + Math.min(bottomWidth, bounds.width - borders[LEFT].borderWidth), bounds.top + Math.min(rightHeight, bounds.height + borders[TOP].borderWidth), Math.max(0, brh - borders[RIGHT].borderWidth), brv - borders[BOTTOM].borderWidth, CORNER.BOTTOM_RIGHT) : new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](bounds.left + bounds.width - borders[RIGHT].borderWidth, bounds.top + bounds.height - borders[BOTTOM].borderWidth),\n bottomLeftOuter: blh > 0 || blv > 0 ? getCurvePoints(bounds.left, bounds.top + leftHeight, blh, blv, CORNER.BOTTOM_LEFT) : new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](bounds.left, bounds.top + bounds.height),\n bottomLeftInner: blh > 0 || blv > 0 ? getCurvePoints(bounds.left + borders[LEFT].borderWidth, bounds.top + leftHeight, Math.max(0, blh - borders[LEFT].borderWidth), blv - borders[BOTTOM].borderWidth, CORNER.BOTTOM_LEFT) : new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](bounds.left + borders[LEFT].borderWidth, bounds.top + bounds.height - borders[BOTTOM].borderWidth)\n };\n};\nvar CORNER = {\n TOP_LEFT: 0,\n TOP_RIGHT: 1,\n BOTTOM_RIGHT: 2,\n BOTTOM_LEFT: 3\n};\n\nvar getCurvePoints = function getCurvePoints(x, y, r1, r2, position) {\n var kappa = 4 * ((Math.sqrt(2) - 1) / 3);\n var ox = r1 * kappa; // control point offset horizontal\n\n var oy = r2 * kappa; // control point offset vertical\n\n var xm = x + r1; // x-middle\n\n var ym = y + r2; // y-middle\n\n switch (position) {\n case CORNER.TOP_LEFT:\n return new _drawing_BezierCurve__WEBPACK_IMPORTED_MODULE_1__["default"](new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](x, ym), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](x, ym - oy), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](xm - ox, y), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](xm, y));\n\n case CORNER.TOP_RIGHT:\n return new _drawing_BezierCurve__WEBPACK_IMPORTED_MODULE_1__["default"](new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](x, y), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](x + ox, y), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](xm, ym - oy), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](xm, ym));\n\n case CORNER.BOTTOM_RIGHT:\n return new _drawing_BezierCurve__WEBPACK_IMPORTED_MODULE_1__["default"](new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](xm, y), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](xm, y + oy), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](x + ox, ym), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](x, ym));\n\n case CORNER.BOTTOM_LEFT:\n default:\n return new _drawing_BezierCurve__WEBPACK_IMPORTED_MODULE_1__["default"](new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](xm, ym), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](xm - ox, ym), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](x, y + oy), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_0__["default"](x, y));\n }\n};\n\n//# sourceURL=webpack://html2canvas/./src/Bounds.js?')},"./src/Clone.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DocumentCloner", function() { return DocumentCloner; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneWindow", function() { return cloneWindow; });\n/* harmony import */ var _Bounds__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Bounds */ "./src/Bounds.js");\n/* harmony import */ var _Proxy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Proxy */ "./src/Proxy.js");\n/* harmony import */ var _ResourceLoader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ResourceLoader */ "./src/ResourceLoader.js");\n/* harmony import */ var _Util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Util */ "./src/Util.js");\n/* harmony import */ var _parsing_background__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./parsing/background */ "./src/parsing/background.js");\n/* harmony import */ var _renderer_CanvasRenderer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./renderer/CanvasRenderer */ "./src/renderer/CanvasRenderer.js");\n/* harmony import */ var _PseudoNodeContent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./PseudoNodeContent */ "./src/PseudoNodeContent.js");\n\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n\n\n\n\n\n\nvar IGNORE_ATTRIBUTE = \'data-html2canvas-ignore\';\nvar DocumentCloner =\n/*#__PURE__*/\nfunction () {\n function DocumentCloner(element, options, logger, copyInline, renderer) {\n _classCallCheck(this, DocumentCloner);\n\n this.referenceElement = element;\n this.scrolledElements = [];\n this.copyStyles = copyInline;\n this.inlineImages = copyInline;\n this.logger = logger;\n this.options = options;\n this.renderer = renderer;\n this.resourceLoader = new _ResourceLoader__WEBPACK_IMPORTED_MODULE_2__["default"](options, logger, window);\n this.pseudoContentData = {\n counters: {},\n quoteDepth: 0\n }; // $FlowFixMe\n\n this.documentElement = this.cloneNode(element.ownerDocument.documentElement);\n }\n\n _createClass(DocumentCloner, [{\n key: "inlineAllImages",\n value: function inlineAllImages(node) {\n var _this = this;\n\n if (this.inlineImages && node) {\n var style = node.style;\n Promise.all(Object(_parsing_background__WEBPACK_IMPORTED_MODULE_4__["parseBackgroundImage"])(style.backgroundImage).map(function (backgroundImage) {\n if (backgroundImage.method === \'url\') {\n return _this.resourceLoader.inlineImage(backgroundImage.args[0]).then(function (img) {\n return img && typeof img.src === \'string\' ? "url(\\"".concat(img.src, "\\")") : \'none\';\n }).catch(function (e) {\n if (true) {\n _this.logger.log("Unable to load image", e);\n }\n });\n }\n\n return Promise.resolve("".concat(backgroundImage.prefix).concat(backgroundImage.method, "(").concat(backgroundImage.args.join(\',\'), ")"));\n })).then(function (backgroundImages) {\n if (backgroundImages.length > 1) {\n // TODO Multiple backgrounds somehow broken in Chrome\n style.backgroundColor = \'\';\n }\n\n style.backgroundImage = backgroundImages.join(\',\');\n });\n\n if (node instanceof HTMLImageElement) {\n this.resourceLoader.inlineImage(node.src).then(function (img) {\n if (img && node instanceof HTMLImageElement && node.parentNode) {\n var parentNode = node.parentNode;\n var clonedChild = Object(_Util__WEBPACK_IMPORTED_MODULE_3__["copyCSSStyles"])(node.style, img.cloneNode(false));\n parentNode.replaceChild(clonedChild, node);\n }\n }).catch(function (e) {\n if (true) {\n _this.logger.log("Unable to load image", e);\n }\n });\n }\n }\n }\n }, {\n key: "inlineFonts",\n value: function inlineFonts(document) {\n var _this2 = this;\n\n return Promise.all(Array.from(document.styleSheets).map(function (sheet) {\n if (sheet.href) {\n return fetch(sheet.href).then(function (res) {\n return res.text();\n }).then(function (text) {\n return createStyleSheetFontsFromText(text, sheet.href);\n }).catch(function (e) {\n if (true) {\n _this2.logger.log("Unable to load stylesheet", e);\n }\n\n return [];\n });\n }\n\n return getSheetFonts(sheet, document);\n })).then(function (fonts) {\n return fonts.reduce(function (acc, font) {\n return acc.concat(font);\n }, []);\n }).then(function (fonts) {\n return Promise.all(fonts.map(function (font) {\n return fetch(font.formats[0].src).then(function (response) {\n return response.blob();\n }).then(function (blob) {\n return new Promise(function (resolve, reject) {\n var reader = new FileReader();\n reader.onerror = reject;\n\n reader.onload = function () {\n // $FlowFixMe\n var result = reader.result;\n resolve(result);\n };\n\n reader.readAsDataURL(blob);\n });\n }).then(function (dataUri) {\n font.fontFace.setProperty(\'src\', "url(\\"".concat(dataUri, "\\")"));\n return "@font-face {".concat(font.fontFace.cssText, " ");\n });\n }));\n }).then(function (fontCss) {\n var style = document.createElement(\'style\');\n style.textContent = fontCss.join(\'\\n\');\n\n _this2.documentElement.appendChild(style);\n });\n }\n }, {\n key: "createElementClone",\n value: function createElementClone(node) {\n var _this3 = this;\n\n if (this.copyStyles && node instanceof HTMLCanvasElement) {\n var img = node.ownerDocument.createElement(\'img\');\n\n try {\n img.src = node.toDataURL();\n return img;\n } catch (e) {\n if (true) {\n this.logger.log("Unable to clone canvas contents, canvas is tainted");\n }\n }\n }\n\n if (node instanceof HTMLIFrameElement) {\n var tempIframe = node.cloneNode(false);\n var iframeKey = generateIframeKey();\n tempIframe.setAttribute(\'data-html2canvas-internal-iframe-key\', iframeKey);\n\n var _parseBounds = Object(_Bounds__WEBPACK_IMPORTED_MODULE_0__["parseBounds"])(node, 0, 0),\n width = _parseBounds.width,\n height = _parseBounds.height;\n\n this.resourceLoader.cache[iframeKey] = getIframeDocumentElement(node, this.options).then(function (documentElement) {\n return _this3.renderer(documentElement, {\n async: _this3.options.async,\n allowTaint: _this3.options.allowTaint,\n backgroundColor: \'#ffffff\',\n canvas: null,\n imageTimeout: _this3.options.imageTimeout,\n logging: _this3.options.logging,\n proxy: _this3.options.proxy,\n removeContainer: _this3.options.removeContainer,\n scale: _this3.options.scale,\n foreignObjectRendering: _this3.options.foreignObjectRendering,\n useCORS: _this3.options.useCORS,\n target: new _renderer_CanvasRenderer__WEBPACK_IMPORTED_MODULE_5__["default"](),\n width: width,\n height: height,\n x: 0,\n y: 0,\n windowWidth: documentElement.ownerDocument.defaultView.innerWidth,\n windowHeight: documentElement.ownerDocument.defaultView.innerHeight,\n scrollX: documentElement.ownerDocument.defaultView.pageXOffset,\n scrollY: documentElement.ownerDocument.defaultView.pageYOffset\n }, _this3.logger.child(iframeKey));\n }).then(function (canvas) {\n return new Promise(function (resolve, reject) {\n var iframeCanvas = document.createElement(\'img\');\n\n iframeCanvas.onload = function () {\n return resolve(canvas);\n };\n\n iframeCanvas.onerror = function (event) {\n // Empty iframes may result in empty "data:," URLs, which are invalid from the <img>\'s point of view\n // and instead of `onload` cause `onerror` and unhandled rejection warnings\n // https://github.com/niklasvh/html2canvas/issues/1502\n iframeCanvas.src == \'data:,\' ? resolve(canvas) : reject(event);\n };\n\n iframeCanvas.src = canvas.toDataURL();\n\n if (tempIframe.parentNode) {\n tempIframe.parentNode.replaceChild(Object(_Util__WEBPACK_IMPORTED_MODULE_3__["copyCSSStyles"])(node.ownerDocument.defaultView.getComputedStyle(node), iframeCanvas), tempIframe);\n }\n });\n });\n return tempIframe;\n }\n\n try {\n if (node instanceof HTMLStyleElement && node.sheet && node.sheet.cssRules) {\n var css = [].slice.call(node.sheet.cssRules, 0).reduce(function (css, rule) {\n if (rule && rule.cssText) {\n return css + rule.cssText;\n }\n\n return css;\n }, \'\');\n var style = node.cloneNode(false);\n style.textContent = css;\n return style;\n }\n } catch (e) {\n // accessing node.sheet.cssRules throws a DOMException\n this.logger.log(\'Unable to access cssRules property\');\n\n if (e.name !== \'SecurityError\') {\n this.logger.log(e);\n throw e;\n }\n }\n\n return node.cloneNode(false);\n }\n }, {\n key: "cloneNode",\n value: function cloneNode(node) {\n var clone = node.nodeType === Node.TEXT_NODE ? document.createTextNode(node.nodeValue) : this.createElementClone(node);\n var window = node.ownerDocument.defaultView;\n var style = node instanceof window.HTMLElement ? window.getComputedStyle(node) : null;\n var styleBefore = node instanceof window.HTMLElement ? window.getComputedStyle(node, \':before\') : null;\n var styleAfter = node instanceof window.HTMLElement ? window.getComputedStyle(node, \':after\') : null;\n\n if (this.referenceElement === node && clone instanceof window.HTMLElement) {\n this.clonedReferenceElement = clone;\n }\n\n if (clone instanceof window.HTMLBodyElement) {\n createPseudoHideStyles(clone);\n }\n\n var counters = Object(_PseudoNodeContent__WEBPACK_IMPORTED_MODULE_6__["parseCounterReset"])(style, this.pseudoContentData);\n var contentBefore = Object(_PseudoNodeContent__WEBPACK_IMPORTED_MODULE_6__["resolvePseudoContent"])(node, styleBefore, this.pseudoContentData);\n\n for (var child = node.firstChild; child; child = child.nextSibling) {\n if (child.nodeType !== Node.ELEMENT_NODE || child.nodeName !== \'SCRIPT\' && // $FlowFixMe\n !child.hasAttribute(IGNORE_ATTRIBUTE) && (typeof this.options.ignoreElements !== \'function\' || // $FlowFixMe\n !this.options.ignoreElements(child))) {\n if (!this.copyStyles || child.nodeName !== \'STYLE\') {\n clone.appendChild(this.cloneNode(child));\n }\n }\n }\n\n var contentAfter = Object(_PseudoNodeContent__WEBPACK_IMPORTED_MODULE_6__["resolvePseudoContent"])(node, styleAfter, this.pseudoContentData);\n Object(_PseudoNodeContent__WEBPACK_IMPORTED_MODULE_6__["popCounters"])(counters, this.pseudoContentData);\n\n if (node instanceof window.HTMLElement && clone instanceof window.HTMLElement) {\n if (styleBefore) {\n this.inlineAllImages(inlinePseudoElement(node, clone, styleBefore, contentBefore, PSEUDO_BEFORE));\n }\n\n if (styleAfter) {\n this.inlineAllImages(inlinePseudoElement(node, clone, styleAfter, contentAfter, PSEUDO_AFTER));\n }\n\n if (style && this.copyStyles && !(node instanceof HTMLIFrameElement)) {\n Object(_Util__WEBPACK_IMPORTED_MODULE_3__["copyCSSStyles"])(style, clone);\n }\n\n this.inlineAllImages(clone);\n\n if (node.scrollTop !== 0 || node.scrollLeft !== 0) {\n this.scrolledElements.push([clone, node.scrollLeft, node.scrollTop]);\n }\n\n switch (node.nodeName) {\n case \'CANVAS\':\n if (!this.copyStyles) {\n cloneCanvasContents(node, clone);\n }\n\n break;\n\n case \'TEXTAREA\':\n case \'SELECT\':\n clone.value = node.value;\n break;\n }\n }\n\n return clone;\n }\n }]);\n\n return DocumentCloner;\n}();\n\nvar getSheetFonts = function getSheetFonts(sheet, document) {\n // $FlowFixMe\n return (sheet.cssRules ? Array.from(sheet.cssRules) : []).filter(function (rule) {\n return rule.type === CSSRule.FONT_FACE_RULE;\n }).map(function (rule) {\n var src = Object(_parsing_background__WEBPACK_IMPORTED_MODULE_4__["parseBackgroundImage"])(rule.style.getPropertyValue(\'src\'));\n var formats = [];\n\n for (var i = 0; i < src.length; i++) {\n if (src[i].method === \'url\' && src[i + 1] && src[i + 1].method === \'format\') {\n var a = document.createElement(\'a\');\n a.href = src[i].args[0];\n\n if (document.body) {\n document.body.appendChild(a);\n }\n\n var font = {\n src: a.href,\n format: src[i + 1].args[0]\n };\n formats.push(font);\n }\n }\n\n return {\n // TODO select correct format for browser),\n formats: formats.filter(function (font) {\n return /^woff/i.test(font.format);\n }),\n fontFace: rule.style\n };\n }).filter(function (font) {\n return font.formats.length;\n });\n};\n\nvar createStyleSheetFontsFromText = function createStyleSheetFontsFromText(text, baseHref) {\n var doc = document.implementation.createHTMLDocument(\'\');\n var base = document.createElement(\'base\'); // $FlowFixMe\n\n base.href = baseHref;\n var style = document.createElement(\'style\');\n style.textContent = text;\n\n if (doc.head) {\n doc.head.appendChild(base);\n }\n\n if (doc.body) {\n doc.body.appendChild(style);\n }\n\n return style.sheet ? getSheetFonts(style.sheet, doc) : [];\n};\n\nvar restoreOwnerScroll = function restoreOwnerScroll(ownerDocument, x, y) {\n if (ownerDocument.defaultView && (x !== ownerDocument.defaultView.pageXOffset || y !== ownerDocument.defaultView.pageYOffset)) {\n ownerDocument.defaultView.scrollTo(x, y);\n }\n};\n\nvar cloneCanvasContents = function cloneCanvasContents(canvas, clonedCanvas) {\n try {\n if (clonedCanvas) {\n clonedCanvas.width = canvas.width;\n clonedCanvas.height = canvas.height;\n var ctx = canvas.getContext(\'2d\');\n var clonedCtx = clonedCanvas.getContext(\'2d\');\n\n if (ctx) {\n clonedCtx.putImageData(ctx.getImageData(0, 0, canvas.width, canvas.height), 0, 0);\n } else {\n clonedCtx.drawImage(canvas, 0, 0);\n }\n }\n } catch (e) {}\n};\n\nvar inlinePseudoElement = function inlinePseudoElement(node, clone, style, contentItems, pseudoElt) {\n if (!style || !style.content || style.content === \'none\' || style.content === \'-moz-alt-content\' || style.display === \'none\') {\n return;\n }\n\n var anonymousReplacedElement = clone.ownerDocument.createElement(\'html2canvaspseudoelement\');\n Object(_Util__WEBPACK_IMPORTED_MODULE_3__["copyCSSStyles"])(style, anonymousReplacedElement);\n\n if (contentItems) {\n var len = contentItems.length;\n\n for (var i = 0; i < len; i++) {\n var item = contentItems[i];\n\n switch (item.type) {\n case _PseudoNodeContent__WEBPACK_IMPORTED_MODULE_6__["PSEUDO_CONTENT_ITEM_TYPE"].IMAGE:\n var img = clone.ownerDocument.createElement(\'img\');\n img.src = Object(_parsing_background__WEBPACK_IMPORTED_MODULE_4__["parseBackgroundImage"])("url(".concat(item.value, ")"))[0].args[0];\n img.style.opacity = \'1\';\n anonymousReplacedElement.appendChild(img);\n break;\n\n case _PseudoNodeContent__WEBPACK_IMPORTED_MODULE_6__["PSEUDO_CONTENT_ITEM_TYPE"].TEXT:\n anonymousReplacedElement.appendChild(clone.ownerDocument.createTextNode(item.value));\n break;\n }\n }\n }\n\n anonymousReplacedElement.className = "".concat(PSEUDO_HIDE_ELEMENT_CLASS_BEFORE, " ").concat(PSEUDO_HIDE_ELEMENT_CLASS_AFTER);\n clone.className += pseudoElt === PSEUDO_BEFORE ? " ".concat(PSEUDO_HIDE_ELEMENT_CLASS_BEFORE) : " ".concat(PSEUDO_HIDE_ELEMENT_CLASS_AFTER);\n\n if (pseudoElt === PSEUDO_BEFORE) {\n clone.insertBefore(anonymousReplacedElement, clone.firstChild);\n } else {\n clone.appendChild(anonymousReplacedElement);\n }\n\n return anonymousReplacedElement;\n};\n\nvar URL_REGEXP = /^url\\((.+)\\)$/i;\nvar PSEUDO_BEFORE = \':before\';\nvar PSEUDO_AFTER = \':after\';\nvar PSEUDO_HIDE_ELEMENT_CLASS_BEFORE = \'___html2canvas___pseudoelement_before\';\nvar PSEUDO_HIDE_ELEMENT_CLASS_AFTER = \'___html2canvas___pseudoelement_after\';\nvar PSEUDO_HIDE_ELEMENT_STYLE = "{\\n content: \\"\\" !important;\\n display: none !important;\\n}";\n\nvar createPseudoHideStyles = function createPseudoHideStyles(body) {\n createStyles(body, ".".concat(PSEUDO_HIDE_ELEMENT_CLASS_BEFORE).concat(PSEUDO_BEFORE).concat(PSEUDO_HIDE_ELEMENT_STYLE, "\\n .").concat(PSEUDO_HIDE_ELEMENT_CLASS_AFTER).concat(PSEUDO_AFTER).concat(PSEUDO_HIDE_ELEMENT_STYLE));\n};\n\nvar createStyles = function createStyles(body, styles) {\n var style = body.ownerDocument.createElement(\'style\');\n style.innerHTML = styles;\n body.appendChild(style);\n};\n\nvar initNode = function initNode(_ref) {\n var _ref2 = _slicedToArray(_ref, 3),\n element = _ref2[0],\n x = _ref2[1],\n y = _ref2[2];\n\n element.scrollLeft = x;\n element.scrollTop = y;\n};\n\nvar generateIframeKey = function generateIframeKey() {\n return Math.ceil(Date.now() + Math.random() * 10000000).toString(16);\n};\n\nvar DATA_URI_REGEXP = /^data:text\\/(.+);(base64)?,(.*)$/i;\n\nvar getIframeDocumentElement = function getIframeDocumentElement(node, options) {\n try {\n return Promise.resolve(node.contentWindow.document.documentElement);\n } catch (e) {\n return options.proxy ? Object(_Proxy__WEBPACK_IMPORTED_MODULE_1__["Proxy"])(node.src, options).then(function (html) {\n var match = html.match(DATA_URI_REGEXP);\n\n if (!match) {\n return Promise.reject();\n }\n\n return match[2] === \'base64\' ? window.atob(decodeURIComponent(match[3])) : decodeURIComponent(match[3]);\n }).then(function (html) {\n return createIframeContainer(node.ownerDocument, Object(_Bounds__WEBPACK_IMPORTED_MODULE_0__["parseBounds"])(node, 0, 0)).then(function (cloneIframeContainer) {\n var cloneWindow = cloneIframeContainer.contentWindow;\n var documentClone = cloneWindow.document;\n documentClone.open();\n documentClone.write(html);\n var iframeLoad = iframeLoader(cloneIframeContainer).then(function () {\n return documentClone.documentElement;\n });\n documentClone.close();\n return iframeLoad;\n });\n }) : Promise.reject();\n }\n};\n\nvar createIframeContainer = function createIframeContainer(ownerDocument, bounds) {\n var cloneIframeContainer = ownerDocument.createElement(\'iframe\');\n cloneIframeContainer.className = \'html2canvas-container\';\n cloneIframeContainer.style.visibility = \'hidden\';\n cloneIframeContainer.style.position = \'fixed\';\n cloneIframeContainer.style.left = \'-10000px\';\n cloneIframeContainer.style.top = \'0px\';\n cloneIframeContainer.style.border = \'0\';\n cloneIframeContainer.width = bounds.width.toString();\n cloneIframeContainer.height = bounds.height.toString();\n cloneIframeContainer.scrolling = \'no\'; // ios won\'t scroll without it\n\n cloneIframeContainer.setAttribute(IGNORE_ATTRIBUTE, \'true\');\n\n if (!ownerDocument.body) {\n return Promise.reject( true ? "Body element not found in Document that is getting rendered" : undefined);\n }\n\n ownerDocument.body.appendChild(cloneIframeContainer);\n return Promise.resolve(cloneIframeContainer);\n};\n\nvar iframeLoader = function iframeLoader(cloneIframeContainer) {\n var cloneWindow = cloneIframeContainer.contentWindow;\n var documentClone = cloneWindow.document;\n return new Promise(function (resolve, reject) {\n cloneWindow.onload = cloneIframeContainer.onload = documentClone.onreadystatechange = function () {\n var interval = setInterval(function () {\n if (documentClone.body.childNodes.length > 0 && documentClone.readyState === \'complete\') {\n clearInterval(interval);\n resolve(cloneIframeContainer);\n }\n }, 50);\n };\n });\n};\n\nvar cloneWindow = function cloneWindow(ownerDocument, bounds, referenceElement, options, logger, renderer) {\n var cloner = new DocumentCloner(referenceElement, options, logger, false, renderer);\n var scrollX = ownerDocument.defaultView.pageXOffset;\n var scrollY = ownerDocument.defaultView.pageYOffset;\n return createIframeContainer(ownerDocument, bounds).then(function (cloneIframeContainer) {\n var cloneWindow = cloneIframeContainer.contentWindow;\n var documentClone = cloneWindow.document;\n /* Chrome doesn\'t detect relative background-images assigned in inline <style> sheets when fetched through getComputedStyle\n if window url is about:blank, we can assign the url to current by writing onto the document\n */\n\n var iframeLoad = iframeLoader(cloneIframeContainer).then(function () {\n cloner.scrolledElements.forEach(initNode);\n cloneWindow.scrollTo(bounds.left, bounds.top);\n\n if (/(iPad|iPhone|iPod)/g.test(navigator.userAgent) && (cloneWindow.scrollY !== bounds.top || cloneWindow.scrollX !== bounds.left)) {\n documentClone.documentElement.style.top = -bounds.top + \'px\';\n documentClone.documentElement.style.left = -bounds.left + \'px\';\n documentClone.documentElement.style.position = \'absolute\';\n }\n\n var result = Promise.resolve([cloneIframeContainer, cloner.clonedReferenceElement, cloner.resourceLoader]);\n var onclone = options.onclone;\n return cloner.clonedReferenceElement instanceof cloneWindow.HTMLElement || cloner.clonedReferenceElement instanceof ownerDocument.defaultView.HTMLElement || cloner.clonedReferenceElement instanceof HTMLElement ? typeof onclone === \'function\' ? Promise.resolve().then(function () {\n return onclone(documentClone);\n }).then(function () {\n return result;\n }) : result : Promise.reject( true ? "Error finding the ".concat(referenceElement.nodeName, " in the cloned document") : undefined);\n });\n documentClone.open();\n documentClone.write("".concat(serializeDoctype(document.doctype), "<html></html>")); // Chrome scrolls the parent document for some reason after the write to the cloned window???\n\n restoreOwnerScroll(referenceElement.ownerDocument, scrollX, scrollY);\n documentClone.replaceChild(documentClone.adoptNode(cloner.documentElement), documentClone.documentElement);\n documentClone.close();\n return iframeLoad;\n });\n};\n\nvar serializeDoctype = function serializeDoctype(doctype) {\n var str = \'\';\n\n if (doctype) {\n str += \'<!DOCTYPE \';\n\n if (doctype.name) {\n str += doctype.name;\n }\n\n if (doctype.internalSubset) {\n str += doctype.internalSubset;\n }\n\n if (doctype.publicId) {\n str += "\\"".concat(doctype.publicId, "\\"");\n }\n\n if (doctype.systemId) {\n str += "\\"".concat(doctype.systemId, "\\"");\n }\n\n str += \'>\';\n }\n\n return str;\n};\n\n//# sourceURL=webpack://html2canvas/./src/Clone.js?')},"./src/Color.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Color; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TRANSPARENT", function() { return TRANSPARENT; });\n // http://dev.w3.org/csswg/css-color/\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar HEX3 = /^#([a-f0-9]{3})$/i;\n\nvar hex3 = function hex3(value) {\n var match = value.match(HEX3);\n\n if (match) {\n return [parseInt(match[1][0] + match[1][0], 16), parseInt(match[1][1] + match[1][1], 16), parseInt(match[1][2] + match[1][2], 16), null];\n }\n\n return false;\n};\n\nvar HEX6 = /^#([a-f0-9]{6})$/i;\n\nvar hex6 = function hex6(value) {\n var match = value.match(HEX6);\n\n if (match) {\n return [parseInt(match[1].substring(0, 2), 16), parseInt(match[1].substring(2, 4), 16), parseInt(match[1].substring(4, 6), 16), null];\n }\n\n return false;\n};\n\nvar RGB = /^rgb\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*\\)$/;\n\nvar rgb = function rgb(value) {\n var match = value.match(RGB);\n\n if (match) {\n return [Number(match[1]), Number(match[2]), Number(match[3]), null];\n }\n\n return false;\n};\n\nvar RGBA = /^rgba\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d?\\.?\\d+)\\s*\\)$/;\n\nvar rgba = function rgba(value) {\n var match = value.match(RGBA);\n\n if (match && match.length > 4) {\n return [Number(match[1]), Number(match[2]), Number(match[3]), Number(match[4])];\n }\n\n return false;\n};\n\nvar fromArray = function fromArray(array) {\n return [Math.min(array[0], 255), Math.min(array[1], 255), Math.min(array[2], 255), array.length > 3 ? array[3] : null];\n};\n\nvar namedColor = function namedColor(name) {\n var color = NAMED_COLORS[name.toLowerCase()];\n return color ? color : false;\n};\n\nvar Color =\n/*#__PURE__*/\nfunction () {\n function Color(value) {\n _classCallCheck(this, Color);\n\n var _ref = Array.isArray(value) ? fromArray(value) : hex3(value) || rgb(value) || rgba(value) || namedColor(value) || hex6(value) || [0, 0, 0, null],\n _ref2 = _slicedToArray(_ref, 4),\n r = _ref2[0],\n g = _ref2[1],\n b = _ref2[2],\n a = _ref2[3];\n\n this.r = r;\n this.g = g;\n this.b = b;\n this.a = a;\n }\n\n _createClass(Color, [{\n key: "isTransparent",\n value: function isTransparent() {\n return this.a === 0;\n }\n }, {\n key: "toString",\n value: function toString() {\n return this.a !== null && this.a !== 1 ? "rgba(".concat(this.r, ",").concat(this.g, ",").concat(this.b, ",").concat(this.a, ")") : "rgb(".concat(this.r, ",").concat(this.g, ",").concat(this.b, ")");\n }\n }]);\n\n return Color;\n}();\n\n\nvar NAMED_COLORS = {\n transparent: [0, 0, 0, 0],\n aliceblue: [240, 248, 255, null],\n antiquewhite: [250, 235, 215, null],\n aqua: [0, 255, 255, null],\n aquamarine: [127, 255, 212, null],\n azure: [240, 255, 255, null],\n beige: [245, 245, 220, null],\n bisque: [255, 228, 196, null],\n black: [0, 0, 0, null],\n blanchedalmond: [255, 235, 205, null],\n blue: [0, 0, 255, null],\n blueviolet: [138, 43, 226, null],\n brown: [165, 42, 42, null],\n burlywood: [222, 184, 135, null],\n cadetblue: [95, 158, 160, null],\n chartreuse: [127, 255, 0, null],\n chocolate: [210, 105, 30, null],\n coral: [255, 127, 80, null],\n cornflowerblue: [100, 149, 237, null],\n cornsilk: [255, 248, 220, null],\n crimson: [220, 20, 60, null],\n cyan: [0, 255, 255, null],\n darkblue: [0, 0, 139, null],\n darkcyan: [0, 139, 139, null],\n darkgoldenrod: [184, 134, 11, null],\n darkgray: [169, 169, 169, null],\n darkgreen: [0, 100, 0, null],\n darkgrey: [169, 169, 169, null],\n darkkhaki: [189, 183, 107, null],\n darkmagenta: [139, 0, 139, null],\n darkolivegreen: [85, 107, 47, null],\n darkorange: [255, 140, 0, null],\n darkorchid: [153, 50, 204, null],\n darkred: [139, 0, 0, null],\n darksalmon: [233, 150, 122, null],\n darkseagreen: [143, 188, 143, null],\n darkslateblue: [72, 61, 139, null],\n darkslategray: [47, 79, 79, null],\n darkslategrey: [47, 79, 79, null],\n darkturquoise: [0, 206, 209, null],\n darkviolet: [148, 0, 211, null],\n deeppink: [255, 20, 147, null],\n deepskyblue: [0, 191, 255, null],\n dimgray: [105, 105, 105, null],\n dimgrey: [105, 105, 105, null],\n dodgerblue: [30, 144, 255, null],\n firebrick: [178, 34, 34, null],\n floralwhite: [255, 250, 240, null],\n forestgreen: [34, 139, 34, null],\n fuchsia: [255, 0, 255, null],\n gainsboro: [220, 220, 220, null],\n ghostwhite: [248, 248, 255, null],\n gold: [255, 215, 0, null],\n goldenrod: [218, 165, 32, null],\n gray: [128, 128, 128, null],\n green: [0, 128, 0, null],\n greenyellow: [173, 255, 47, null],\n grey: [128, 128, 128, null],\n honeydew: [240, 255, 240, null],\n hotpink: [255, 105, 180, null],\n indianred: [205, 92, 92, null],\n indigo: [75, 0, 130, null],\n ivory: [255, 255, 240, null],\n khaki: [240, 230, 140, null],\n lavender: [230, 230, 250, null],\n lavenderblush: [255, 240, 245, null],\n lawngreen: [124, 252, 0, null],\n lemonchiffon: [255, 250, 205, null],\n lightblue: [173, 216, 230, null],\n lightcoral: [240, 128, 128, null],\n lightcyan: [224, 255, 255, null],\n lightgoldenrodyellow: [250, 250, 210, null],\n lightgray: [211, 211, 211, null],\n lightgreen: [144, 238, 144, null],\n lightgrey: [211, 211, 211, null],\n lightpink: [255, 182, 193, null],\n lightsalmon: [255, 160, 122, null],\n lightseagreen: [32, 178, 170, null],\n lightskyblue: [135, 206, 250, null],\n lightslategray: [119, 136, 153, null],\n lightslategrey: [119, 136, 153, null],\n lightsteelblue: [176, 196, 222, null],\n lightyellow: [255, 255, 224, null],\n lime: [0, 255, 0, null],\n limegreen: [50, 205, 50, null],\n linen: [250, 240, 230, null],\n magenta: [255, 0, 255, null],\n maroon: [128, 0, 0, null],\n mediumaquamarine: [102, 205, 170, null],\n mediumblue: [0, 0, 205, null],\n mediumorchid: [186, 85, 211, null],\n mediumpurple: [147, 112, 219, null],\n mediumseagreen: [60, 179, 113, null],\n mediumslateblue: [123, 104, 238, null],\n mediumspringgreen: [0, 250, 154, null],\n mediumturquoise: [72, 209, 204, null],\n mediumvioletred: [199, 21, 133, null],\n midnightblue: [25, 25, 112, null],\n mintcream: [245, 255, 250, null],\n mistyrose: [255, 228, 225, null],\n moccasin: [255, 228, 181, null],\n navajowhite: [255, 222, 173, null],\n navy: [0, 0, 128, null],\n oldlace: [253, 245, 230, null],\n olive: [128, 128, 0, null],\n olivedrab: [107, 142, 35, null],\n orange: [255, 165, 0, null],\n orangered: [255, 69, 0, null],\n orchid: [218, 112, 214, null],\n palegoldenrod: [238, 232, 170, null],\n palegreen: [152, 251, 152, null],\n paleturquoise: [175, 238, 238, null],\n palevioletred: [219, 112, 147, null],\n papayawhip: [255, 239, 213, null],\n peachpuff: [255, 218, 185, null],\n peru: [205, 133, 63, null],\n pink: [255, 192, 203, null],\n plum: [221, 160, 221, null],\n powderblue: [176, 224, 230, null],\n purple: [128, 0, 128, null],\n rebeccapurple: [102, 51, 153, null],\n red: [255, 0, 0, null],\n rosybrown: [188, 143, 143, null],\n royalblue: [65, 105, 225, null],\n saddlebrown: [139, 69, 19, null],\n salmon: [250, 128, 114, null],\n sandybrown: [244, 164, 96, null],\n seagreen: [46, 139, 87, null],\n seashell: [255, 245, 238, null],\n sienna: [160, 82, 45, null],\n silver: [192, 192, 192, null],\n skyblue: [135, 206, 235, null],\n slateblue: [106, 90, 205, null],\n slategray: [112, 128, 144, null],\n slategrey: [112, 128, 144, null],\n snow: [255, 250, 250, null],\n springgreen: [0, 255, 127, null],\n steelblue: [70, 130, 180, null],\n tan: [210, 180, 140, null],\n teal: [0, 128, 128, null],\n thistle: [216, 191, 216, null],\n tomato: [255, 99, 71, null],\n turquoise: [64, 224, 208, null],\n violet: [238, 130, 238, null],\n wheat: [245, 222, 179, null],\n white: [255, 255, 255, null],\n whitesmoke: [245, 245, 245, null],\n yellow: [255, 255, 0, null],\n yellowgreen: [154, 205, 50, null]\n};\nvar TRANSPARENT = new Color([0, 0, 0, 0]);\n\n//# sourceURL=webpack://html2canvas/./src/Color.js?')},"./src/Feature.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _renderer_ForeignObjectRenderer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./renderer/ForeignObjectRenderer */ \"./src/renderer/ForeignObjectRenderer.js\");\n\n\n\n\nvar testRangeBounds = function testRangeBounds(document) {\n var TEST_HEIGHT = 123;\n\n if (document.createRange) {\n var range = document.createRange();\n\n if (range.getBoundingClientRect) {\n var testElement = document.createElement('boundtest');\n testElement.style.height = \"\".concat(TEST_HEIGHT, \"px\");\n testElement.style.display = 'block';\n document.body.appendChild(testElement);\n range.selectNode(testElement);\n var rangeBounds = range.getBoundingClientRect();\n var rangeHeight = Math.round(rangeBounds.height);\n document.body.removeChild(testElement);\n\n if (rangeHeight === TEST_HEIGHT) {\n return true;\n }\n }\n }\n\n return false;\n}; // iOS 10.3 taints canvas with base64 images unless crossOrigin = 'anonymous'\n\n\nvar testBase64 = function testBase64(document, src) {\n var img = new Image();\n var canvas = document.createElement('canvas');\n var ctx = canvas.getContext('2d');\n return new Promise(function (resolve) {\n // Single pixel base64 image renders fine on iOS 10.3???\n img.src = src;\n\n var onload = function onload() {\n try {\n ctx.drawImage(img, 0, 0);\n canvas.toDataURL();\n } catch (e) {\n return resolve(false);\n }\n\n return resolve(true);\n };\n\n img.onload = onload;\n\n img.onerror = function () {\n return resolve(false);\n };\n\n if (img.complete === true) {\n setTimeout(function () {\n onload();\n }, 500);\n }\n });\n};\n\nvar testCORS = function testCORS() {\n return typeof new Image().crossOrigin !== 'undefined';\n};\n\nvar testResponseType = function testResponseType() {\n return typeof new XMLHttpRequest().responseType === 'string';\n};\n\nvar testSVG = function testSVG(document) {\n var img = new Image();\n var canvas = document.createElement('canvas');\n var ctx = canvas.getContext('2d');\n img.src = \"data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>\";\n\n try {\n ctx.drawImage(img, 0, 0);\n canvas.toDataURL();\n } catch (e) {\n return false;\n }\n\n return true;\n};\n\nvar isGreenPixel = function isGreenPixel(data) {\n return data[0] === 0 && data[1] === 255 && data[2] === 0 && data[3] === 255;\n};\n\nvar testForeignObject = function testForeignObject(document) {\n var canvas = document.createElement('canvas');\n var size = 100;\n canvas.width = size;\n canvas.height = size;\n var ctx = canvas.getContext('2d');\n ctx.fillStyle = 'rgb(0, 255, 0)';\n ctx.fillRect(0, 0, size, size);\n var img = new Image();\n var greenImageSrc = canvas.toDataURL();\n img.src = greenImageSrc;\n var svg = Object(_renderer_ForeignObjectRenderer__WEBPACK_IMPORTED_MODULE_0__[\"createForeignObjectSVG\"])(size, size, 0, 0, img);\n ctx.fillStyle = 'red';\n ctx.fillRect(0, 0, size, size);\n return Object(_renderer_ForeignObjectRenderer__WEBPACK_IMPORTED_MODULE_0__[\"loadSerializedSVG\"])(svg).then(function (img) {\n ctx.drawImage(img, 0, 0);\n var data = ctx.getImageData(0, 0, size, size).data;\n ctx.fillStyle = 'red';\n ctx.fillRect(0, 0, size, size);\n var node = document.createElement('div');\n node.style.backgroundImage = \"url(\".concat(greenImageSrc, \")\");\n node.style.height = \"\".concat(size, \"px\"); // Firefox 55 does not render inline <img /> tags\n\n return isGreenPixel(data) ? Object(_renderer_ForeignObjectRenderer__WEBPACK_IMPORTED_MODULE_0__[\"loadSerializedSVG\"])(Object(_renderer_ForeignObjectRenderer__WEBPACK_IMPORTED_MODULE_0__[\"createForeignObjectSVG\"])(size, size, 0, 0, node)) : Promise.reject(false);\n }).then(function (img) {\n ctx.drawImage(img, 0, 0); // Edge does not render background-images\n\n return isGreenPixel(ctx.getImageData(0, 0, size, size).data);\n }).catch(function (e) {\n return false;\n });\n};\n\nvar FEATURES = {\n // $FlowFixMe - get/set properties not yet supported\n get SUPPORT_RANGE_BOUNDS() {\n 'use strict';\n\n var value = testRangeBounds(document);\n Object.defineProperty(FEATURES, 'SUPPORT_RANGE_BOUNDS', {\n value: value\n });\n return value;\n },\n\n // $FlowFixMe - get/set properties not yet supported\n get SUPPORT_SVG_DRAWING() {\n 'use strict';\n\n var value = testSVG(document);\n Object.defineProperty(FEATURES, 'SUPPORT_SVG_DRAWING', {\n value: value\n });\n return value;\n },\n\n // $FlowFixMe - get/set properties not yet supported\n get SUPPORT_BASE64_DRAWING() {\n 'use strict';\n\n return function (src) {\n var _value = testBase64(document, src);\n\n Object.defineProperty(FEATURES, 'SUPPORT_BASE64_DRAWING', {\n value: function value() {\n return _value;\n }\n });\n return _value;\n };\n },\n\n // $FlowFixMe - get/set properties not yet supported\n get SUPPORT_FOREIGNOBJECT_DRAWING() {\n 'use strict';\n\n var value = typeof Array.from === 'function' && typeof window.fetch === 'function' ? testForeignObject(document) : Promise.resolve(false);\n Object.defineProperty(FEATURES, 'SUPPORT_FOREIGNOBJECT_DRAWING', {\n value: value\n });\n return value;\n },\n\n // $FlowFixMe - get/set properties not yet supported\n get SUPPORT_CORS_IMAGES() {\n 'use strict';\n\n var value = testCORS();\n Object.defineProperty(FEATURES, 'SUPPORT_CORS_IMAGES', {\n value: value\n });\n return value;\n },\n\n // $FlowFixMe - get/set properties not yet supported\n get SUPPORT_RESPONSE_TYPE() {\n 'use strict';\n\n var value = testResponseType();\n Object.defineProperty(FEATURES, 'SUPPORT_RESPONSE_TYPE', {\n value: value\n });\n return value;\n },\n\n // $FlowFixMe - get/set properties not yet supported\n get SUPPORT_CORS_XHR() {\n 'use strict';\n\n var value = 'withCredentials' in new XMLHttpRequest();\n Object.defineProperty(FEATURES, 'SUPPORT_CORS_XHR', {\n value: value\n });\n return value;\n }\n\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (FEATURES);\n\n//# sourceURL=webpack://html2canvas/./src/Feature.js?")},"./src/Font.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FontMetrics\", function() { return FontMetrics; });\n/* harmony import */ var _Util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Util */ \"./src/Util.js\");\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar SAMPLE_TEXT = 'Hidden Text';\n\nvar FontMetrics =\n/*#__PURE__*/\nfunction () {\n function FontMetrics(document) {\n _classCallCheck(this, FontMetrics);\n\n this._data = {};\n this._document = document;\n }\n\n _createClass(FontMetrics, [{\n key: \"_parseMetrics\",\n value: function _parseMetrics(font) {\n var container = this._document.createElement('div');\n\n var img = this._document.createElement('img');\n\n var span = this._document.createElement('span');\n\n var body = this._document.body;\n\n if (!body) {\n throw new Error( true ? 'No document found for font metrics' : undefined);\n }\n\n container.style.visibility = 'hidden';\n container.style.fontFamily = font.fontFamily;\n container.style.fontSize = font.fontSize;\n container.style.margin = '0';\n container.style.padding = '0';\n body.appendChild(container);\n img.src = _Util__WEBPACK_IMPORTED_MODULE_0__[\"SMALL_IMAGE\"];\n img.width = 1;\n img.height = 1;\n img.style.margin = '0';\n img.style.padding = '0';\n img.style.verticalAlign = 'baseline';\n span.style.fontFamily = font.fontFamily;\n span.style.fontSize = font.fontSize;\n span.style.margin = '0';\n span.style.padding = '0';\n span.appendChild(this._document.createTextNode(SAMPLE_TEXT));\n container.appendChild(span);\n container.appendChild(img);\n var baseline = img.offsetTop - span.offsetTop + 2;\n container.removeChild(span);\n container.appendChild(this._document.createTextNode(SAMPLE_TEXT));\n container.style.lineHeight = 'normal';\n img.style.verticalAlign = 'super';\n var middle = img.offsetTop - container.offsetTop + 2;\n body.removeChild(container);\n return {\n baseline: baseline,\n middle: middle\n };\n }\n }, {\n key: \"getMetrics\",\n value: function getMetrics(font) {\n var key = \"\".concat(font.fontFamily, \" \").concat(font.fontSize);\n\n if (this._data[key] === undefined) {\n this._data[key] = this._parseMetrics(font);\n }\n\n return this._data[key];\n }\n }]);\n\n return FontMetrics;\n}();\n\n//# sourceURL=webpack://html2canvas/./src/Font.js?")},"./src/Gradient.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"GRADIENT_TYPE\", function() { return GRADIENT_TYPE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RADIAL_GRADIENT_SHAPE\", function() { return RADIAL_GRADIENT_SHAPE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LinearGradient\", function() { return LinearGradient; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RadialGradient\", function() { return RadialGradient; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseGradient\", function() { return parseGradient; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"transformWebkitRadialGradientArgs\", function() { return transformWebkitRadialGradientArgs; });\n/* harmony import */ var _NodeContainer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./NodeContainer */ \"./src/NodeContainer.js\");\n/* harmony import */ var _Angle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Angle */ \"./src/Angle.js\");\n/* harmony import */ var _Color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Color */ \"./src/Color.js\");\n/* harmony import */ var _Length__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Length */ \"./src/Length.js\");\n/* harmony import */ var _Util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Util */ \"./src/Util.js\");\n\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n\n\n\n\n\nvar SIDE_OR_CORNER = /^(to )?(left|top|right|bottom)( (left|top|right|bottom))?$/i;\nvar PERCENTAGE_ANGLES = /^([+-]?\\d*\\.?\\d+)% ([+-]?\\d*\\.?\\d+)%$/i;\nvar ENDS_WITH_LENGTH = /(px)|%|( 0)$/i;\nvar FROM_TO_COLORSTOP = /^(from|to|color-stop)\\((?:([\\d.]+)(%)?,\\s*)?(.+?)\\)$/i;\nvar RADIAL_SHAPE_DEFINITION = /^\\s*(circle|ellipse)?\\s*((?:([\\d.]+)(px|r?em|%)\\s*(?:([\\d.]+)(px|r?em|%))?)|closest-side|closest-corner|farthest-side|farthest-corner)?\\s*(?:at\\s*(?:(left|center|right)|([\\d.]+)(px|r?em|%))\\s+(?:(top|center|bottom)|([\\d.]+)(px|r?em|%)))?(?:\\s|$)/i;\nvar GRADIENT_TYPE = {\n LINEAR_GRADIENT: 0,\n RADIAL_GRADIENT: 1\n};\nvar RADIAL_GRADIENT_SHAPE = {\n CIRCLE: 0,\n ELLIPSE: 1\n};\nvar LENGTH_FOR_POSITION = {\n left: new _Length__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('0%'),\n top: new _Length__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('0%'),\n center: new _Length__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('50%'),\n right: new _Length__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('100%'),\n bottom: new _Length__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('100%')\n};\nvar LinearGradient = function LinearGradient(colorStops, direction) {\n _classCallCheck(this, LinearGradient);\n\n this.type = GRADIENT_TYPE.LINEAR_GRADIENT;\n this.colorStops = colorStops;\n this.direction = direction;\n};\nvar RadialGradient = function RadialGradient(colorStops, shape, center, radius) {\n _classCallCheck(this, RadialGradient);\n\n this.type = GRADIENT_TYPE.RADIAL_GRADIENT;\n this.colorStops = colorStops;\n this.shape = shape;\n this.center = center;\n this.radius = radius;\n};\nvar parseGradient = function parseGradient(container, _ref, bounds) {\n var args = _ref.args,\n method = _ref.method,\n prefix = _ref.prefix;\n\n if (method === 'linear-gradient') {\n return parseLinearGradient(args, bounds, !!prefix);\n } else if (method === 'gradient' && args[0] === 'linear') {\n // TODO handle correct angle\n return parseLinearGradient(['to bottom'].concat(transformObsoleteColorStops(args.slice(3))), bounds, !!prefix);\n } else if (method === 'radial-gradient') {\n return parseRadialGradient(container, prefix === '-webkit-' ? transformWebkitRadialGradientArgs(args) : args, bounds);\n } else if (method === 'gradient' && args[0] === 'radial') {\n return parseRadialGradient(container, transformObsoleteColorStops(transformWebkitRadialGradientArgs(args.slice(1))), bounds);\n }\n};\n\nvar parseColorStops = function parseColorStops(args, firstColorStopIndex, lineLength) {\n var colorStops = [];\n\n for (var i = firstColorStopIndex; i < args.length; i++) {\n var value = args[i];\n var HAS_LENGTH = ENDS_WITH_LENGTH.test(value);\n var lastSpaceIndex = value.lastIndexOf(' ');\n var color = new _Color__WEBPACK_IMPORTED_MODULE_2__[\"default\"](HAS_LENGTH ? value.substring(0, lastSpaceIndex) : value);\n var stop = HAS_LENGTH ? new _Length__WEBPACK_IMPORTED_MODULE_3__[\"default\"](value.substring(lastSpaceIndex + 1)) : i === firstColorStopIndex ? new _Length__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('0%') : i === args.length - 1 ? new _Length__WEBPACK_IMPORTED_MODULE_3__[\"default\"]('100%') : null;\n colorStops.push({\n color: color,\n stop: stop\n });\n }\n\n var absoluteValuedColorStops = colorStops.map(function (_ref2) {\n var color = _ref2.color,\n stop = _ref2.stop;\n var absoluteStop = lineLength === 0 ? 0 : stop ? stop.getAbsoluteValue(lineLength) / lineLength : null;\n return {\n color: color,\n // $FlowFixMe\n stop: absoluteStop\n };\n });\n var previousColorStop = absoluteValuedColorStops[0].stop;\n\n for (var _i = 0; _i < absoluteValuedColorStops.length; _i++) {\n if (previousColorStop !== null) {\n var _stop = absoluteValuedColorStops[_i].stop;\n\n if (_stop === null) {\n var n = _i;\n\n while (absoluteValuedColorStops[n].stop === null) {\n n++;\n }\n\n var steps = n - _i + 1;\n var nextColorStep = absoluteValuedColorStops[n].stop;\n var stepSize = (nextColorStep - previousColorStop) / steps;\n\n for (; _i < n; _i++) {\n previousColorStop = absoluteValuedColorStops[_i].stop = previousColorStop + stepSize;\n }\n } else {\n previousColorStop = _stop;\n }\n }\n }\n\n return absoluteValuedColorStops;\n};\n\nvar parseLinearGradient = function parseLinearGradient(args, bounds, hasPrefix) {\n var angle = Object(_Angle__WEBPACK_IMPORTED_MODULE_1__[\"parseAngle\"])(args[0]);\n var HAS_SIDE_OR_CORNER = SIDE_OR_CORNER.test(args[0]);\n var HAS_DIRECTION = HAS_SIDE_OR_CORNER || angle !== null || PERCENTAGE_ANGLES.test(args[0]);\n var direction = HAS_DIRECTION ? angle !== null ? calculateGradientDirection( // if there is a prefix, the 0\xb0 angle points due East (instead of North per W3C)\n hasPrefix ? angle - Math.PI * 0.5 : angle, bounds) : HAS_SIDE_OR_CORNER ? parseSideOrCorner(args[0], bounds) : parsePercentageAngle(args[0], bounds) : calculateGradientDirection(Math.PI, bounds);\n var firstColorStopIndex = HAS_DIRECTION ? 1 : 0; // TODO: Fix some inaccuracy with color stops with px values\n\n var lineLength = Math.min(Object(_Util__WEBPACK_IMPORTED_MODULE_4__[\"distance\"])(Math.abs(direction.x0) + Math.abs(direction.x1), Math.abs(direction.y0) + Math.abs(direction.y1)), bounds.width * 2, bounds.height * 2);\n return new LinearGradient(parseColorStops(args, firstColorStopIndex, lineLength), direction);\n};\n\nvar parseRadialGradient = function parseRadialGradient(container, args, bounds) {\n var m = args[0].match(RADIAL_SHAPE_DEFINITION);\n var shape = m && (m[1] === 'circle' || // explicit shape specification\n m[3] !== undefined && m[5] === undefined) // only one radius coordinate\n ? RADIAL_GRADIENT_SHAPE.CIRCLE : RADIAL_GRADIENT_SHAPE.ELLIPSE;\n var radius = {};\n var center = {};\n\n if (m) {\n // Radius\n if (m[3] !== undefined) {\n radius.x = Object(_Length__WEBPACK_IMPORTED_MODULE_3__[\"calculateLengthFromValueWithUnit\"])(container, m[3], m[4]).getAbsoluteValue(bounds.width);\n }\n\n if (m[5] !== undefined) {\n radius.y = Object(_Length__WEBPACK_IMPORTED_MODULE_3__[\"calculateLengthFromValueWithUnit\"])(container, m[5], m[6]).getAbsoluteValue(bounds.height);\n } // Position\n\n\n if (m[7]) {\n center.x = LENGTH_FOR_POSITION[m[7].toLowerCase()];\n } else if (m[8] !== undefined) {\n center.x = Object(_Length__WEBPACK_IMPORTED_MODULE_3__[\"calculateLengthFromValueWithUnit\"])(container, m[8], m[9]);\n }\n\n if (m[10]) {\n center.y = LENGTH_FOR_POSITION[m[10].toLowerCase()];\n } else if (m[11] !== undefined) {\n center.y = Object(_Length__WEBPACK_IMPORTED_MODULE_3__[\"calculateLengthFromValueWithUnit\"])(container, m[11], m[12]);\n }\n }\n\n var gradientCenter = {\n x: center.x === undefined ? bounds.width / 2 : center.x.getAbsoluteValue(bounds.width),\n y: center.y === undefined ? bounds.height / 2 : center.y.getAbsoluteValue(bounds.height)\n };\n var gradientRadius = calculateRadius(m && m[2] || 'farthest-corner', shape, gradientCenter, radius, bounds);\n return new RadialGradient(parseColorStops(args, m ? 1 : 0, Math.min(gradientRadius.x, gradientRadius.y)), shape, gradientCenter, gradientRadius);\n};\n\nvar calculateGradientDirection = function calculateGradientDirection(radian, bounds) {\n var width = bounds.width;\n var height = bounds.height;\n var HALF_WIDTH = width * 0.5;\n var HALF_HEIGHT = height * 0.5;\n var lineLength = Math.abs(width * Math.sin(radian)) + Math.abs(height * Math.cos(radian));\n var HALF_LINE_LENGTH = lineLength / 2;\n var x0 = HALF_WIDTH + Math.sin(radian) * HALF_LINE_LENGTH;\n var y0 = HALF_HEIGHT - Math.cos(radian) * HALF_LINE_LENGTH;\n var x1 = width - x0;\n var y1 = height - y0;\n return {\n x0: x0,\n x1: x1,\n y0: y0,\n y1: y1\n };\n};\n\nvar parseTopRight = function parseTopRight(bounds) {\n return Math.acos(bounds.width / 2 / (Object(_Util__WEBPACK_IMPORTED_MODULE_4__[\"distance\"])(bounds.width, bounds.height) / 2));\n};\n\nvar parseSideOrCorner = function parseSideOrCorner(side, bounds) {\n switch (side) {\n case 'bottom':\n case 'to top':\n return calculateGradientDirection(0, bounds);\n\n case 'left':\n case 'to right':\n return calculateGradientDirection(Math.PI / 2, bounds);\n\n case 'right':\n case 'to left':\n return calculateGradientDirection(3 * Math.PI / 2, bounds);\n\n case 'top right':\n case 'right top':\n case 'to bottom left':\n case 'to left bottom':\n return calculateGradientDirection(Math.PI + parseTopRight(bounds), bounds);\n\n case 'top left':\n case 'left top':\n case 'to bottom right':\n case 'to right bottom':\n return calculateGradientDirection(Math.PI - parseTopRight(bounds), bounds);\n\n case 'bottom left':\n case 'left bottom':\n case 'to top right':\n case 'to right top':\n return calculateGradientDirection(parseTopRight(bounds), bounds);\n\n case 'bottom right':\n case 'right bottom':\n case 'to top left':\n case 'to left top':\n return calculateGradientDirection(2 * Math.PI - parseTopRight(bounds), bounds);\n\n case 'top':\n case 'to bottom':\n default:\n return calculateGradientDirection(Math.PI, bounds);\n }\n};\n\nvar parsePercentageAngle = function parsePercentageAngle(angle, bounds) {\n var _angle$split$map = angle.split(' ').map(parseFloat),\n _angle$split$map2 = _slicedToArray(_angle$split$map, 2),\n left = _angle$split$map2[0],\n top = _angle$split$map2[1];\n\n var ratio = left / 100 * bounds.width / (top / 100 * bounds.height);\n return calculateGradientDirection(Math.atan(isNaN(ratio) ? 1 : ratio) + Math.PI / 2, bounds);\n};\n\nvar findCorner = function findCorner(bounds, x, y, closest) {\n var corners = [{\n x: 0,\n y: 0\n }, {\n x: 0,\n y: bounds.height\n }, {\n x: bounds.width,\n y: 0\n }, {\n x: bounds.width,\n y: bounds.height\n }]; // $FlowFixMe\n\n return corners.reduce(function (stat, corner) {\n var d = Object(_Util__WEBPACK_IMPORTED_MODULE_4__[\"distance\"])(x - corner.x, y - corner.y);\n\n if (closest ? d < stat.optimumDistance : d > stat.optimumDistance) {\n return {\n optimumCorner: corner,\n optimumDistance: d\n };\n }\n\n return stat;\n }, {\n optimumDistance: closest ? Infinity : -Infinity,\n optimumCorner: null\n }).optimumCorner;\n};\n\nvar calculateRadius = function calculateRadius(extent, shape, center, radius, bounds) {\n var x = center.x;\n var y = center.y;\n var rx = 0;\n var ry = 0;\n\n switch (extent) {\n case 'closest-side':\n // The ending shape is sized so that that it exactly meets the side of the gradient box closest to the gradient\u2019s center.\n // If the shape is an ellipse, it exactly meets the closest side in each dimension.\n if (shape === RADIAL_GRADIENT_SHAPE.CIRCLE) {\n rx = ry = Math.min(Math.abs(x), Math.abs(x - bounds.width), Math.abs(y), Math.abs(y - bounds.height));\n } else if (shape === RADIAL_GRADIENT_SHAPE.ELLIPSE) {\n rx = Math.min(Math.abs(x), Math.abs(x - bounds.width));\n ry = Math.min(Math.abs(y), Math.abs(y - bounds.height));\n }\n\n break;\n\n case 'closest-corner':\n // The ending shape is sized so that that it passes through the corner of the gradient box closest to the gradient\u2019s center.\n // If the shape is an ellipse, the ending shape is given the same aspect-ratio it would have if closest-side were specified.\n if (shape === RADIAL_GRADIENT_SHAPE.CIRCLE) {\n rx = ry = Math.min(Object(_Util__WEBPACK_IMPORTED_MODULE_4__[\"distance\"])(x, y), Object(_Util__WEBPACK_IMPORTED_MODULE_4__[\"distance\"])(x, y - bounds.height), Object(_Util__WEBPACK_IMPORTED_MODULE_4__[\"distance\"])(x - bounds.width, y), Object(_Util__WEBPACK_IMPORTED_MODULE_4__[\"distance\"])(x - bounds.width, y - bounds.height));\n } else if (shape === RADIAL_GRADIENT_SHAPE.ELLIPSE) {\n // Compute the ratio ry/rx (which is to be the same as for \"closest-side\")\n var c = Math.min(Math.abs(y), Math.abs(y - bounds.height)) / Math.min(Math.abs(x), Math.abs(x - bounds.width));\n var corner = findCorner(bounds, x, y, true);\n rx = Object(_Util__WEBPACK_IMPORTED_MODULE_4__[\"distance\"])(corner.x - x, (corner.y - y) / c);\n ry = c * rx;\n }\n\n break;\n\n case 'farthest-side':\n // Same as closest-side, except the ending shape is sized based on the farthest side(s)\n if (shape === RADIAL_GRADIENT_SHAPE.CIRCLE) {\n rx = ry = Math.max(Math.abs(x), Math.abs(x - bounds.width), Math.abs(y), Math.abs(y - bounds.height));\n } else if (shape === RADIAL_GRADIENT_SHAPE.ELLIPSE) {\n rx = Math.max(Math.abs(x), Math.abs(x - bounds.width));\n ry = Math.max(Math.abs(y), Math.abs(y - bounds.height));\n }\n\n break;\n\n case 'farthest-corner':\n // Same as closest-corner, except the ending shape is sized based on the farthest corner.\n // If the shape is an ellipse, the ending shape is given the same aspect ratio it would have if farthest-side were specified.\n if (shape === RADIAL_GRADIENT_SHAPE.CIRCLE) {\n rx = ry = Math.max(Object(_Util__WEBPACK_IMPORTED_MODULE_4__[\"distance\"])(x, y), Object(_Util__WEBPACK_IMPORTED_MODULE_4__[\"distance\"])(x, y - bounds.height), Object(_Util__WEBPACK_IMPORTED_MODULE_4__[\"distance\"])(x - bounds.width, y), Object(_Util__WEBPACK_IMPORTED_MODULE_4__[\"distance\"])(x - bounds.width, y - bounds.height));\n } else if (shape === RADIAL_GRADIENT_SHAPE.ELLIPSE) {\n // Compute the ratio ry/rx (which is to be the same as for \"farthest-side\")\n var _c = Math.max(Math.abs(y), Math.abs(y - bounds.height)) / Math.max(Math.abs(x), Math.abs(x - bounds.width));\n\n var _corner = findCorner(bounds, x, y, false);\n\n rx = Object(_Util__WEBPACK_IMPORTED_MODULE_4__[\"distance\"])(_corner.x - x, (_corner.y - y) / _c);\n ry = _c * rx;\n }\n\n break;\n\n default:\n // pixel or percentage values\n rx = radius.x || 0;\n ry = radius.y !== undefined ? radius.y : rx;\n break;\n }\n\n return {\n x: rx,\n y: ry\n };\n};\n\nvar transformWebkitRadialGradientArgs = function transformWebkitRadialGradientArgs(args) {\n var shape = '';\n var radius = '';\n var extent = '';\n var position = '';\n var idx = 0;\n var POSITION = /^(left|center|right|\\d+(?:px|r?em|%)?)(?:\\s+(top|center|bottom|\\d+(?:px|r?em|%)?))?$/i;\n var SHAPE_AND_EXTENT = /^(circle|ellipse)?\\s*(closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)?$/i;\n var RADIUS = /^\\d+(px|r?em|%)?(?:\\s+\\d+(px|r?em|%)?)?$/i;\n var matchStartPosition = args[idx].match(POSITION);\n\n if (matchStartPosition) {\n idx++;\n }\n\n var matchShapeExtent = args[idx].match(SHAPE_AND_EXTENT);\n\n if (matchShapeExtent) {\n shape = matchShapeExtent[1] || '';\n extent = matchShapeExtent[2] || '';\n\n if (extent === 'contain') {\n extent = 'closest-side';\n } else if (extent === 'cover') {\n extent = 'farthest-corner';\n }\n\n idx++;\n }\n\n var matchStartRadius = args[idx].match(RADIUS);\n\n if (matchStartRadius) {\n idx++;\n }\n\n var matchEndPosition = args[idx].match(POSITION);\n\n if (matchEndPosition) {\n idx++;\n }\n\n var matchEndRadius = args[idx].match(RADIUS);\n\n if (matchEndRadius) {\n idx++;\n }\n\n var matchPosition = matchEndPosition || matchStartPosition;\n\n if (matchPosition && matchPosition[1]) {\n position = matchPosition[1] + (/^\\d+$/.test(matchPosition[1]) ? 'px' : '');\n\n if (matchPosition[2]) {\n position += ' ' + matchPosition[2] + (/^\\d+$/.test(matchPosition[2]) ? 'px' : '');\n }\n }\n\n var matchRadius = matchEndRadius || matchStartRadius;\n\n if (matchRadius) {\n radius = matchRadius[0];\n\n if (!matchRadius[1]) {\n radius += 'px';\n }\n }\n\n if (position && !shape && !radius && !extent) {\n radius = position;\n position = '';\n }\n\n if (position) {\n position = \"at \".concat(position);\n }\n\n return [[shape, extent, radius, position].filter(function (s) {\n return !!s;\n }).join(' ')].concat(args.slice(idx));\n};\n\nvar transformObsoleteColorStops = function transformObsoleteColorStops(args) {\n return args.map(function (color) {\n return color.match(FROM_TO_COLORSTOP);\n }) // $FlowFixMe\n .map(function (v, index) {\n if (!v) {\n return args[index];\n }\n\n switch (v[1]) {\n case 'from':\n return \"\".concat(v[4], \" 0%\");\n\n case 'to':\n return \"\".concat(v[4], \" 100%\");\n\n case 'color-stop':\n if (v[3] === '%') {\n return \"\".concat(v[4], \" \").concat(v[2]);\n }\n\n return \"\".concat(v[4], \" \").concat(parseFloat(v[2]) * 100, \"%\");\n }\n });\n};\n\n//# sourceURL=webpack://html2canvas/./src/Gradient.js?")},"./src/Input.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INPUT_COLOR", function() { return INPUT_COLOR; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INPUT_BORDERS", function() { return INPUT_BORDERS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INPUT_BACKGROUND", function() { return INPUT_BACKGROUND; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getInputBorderRadius", function() { return getInputBorderRadius; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inlineInputElement", function() { return inlineInputElement; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inlineTextAreaElement", function() { return inlineTextAreaElement; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inlineSelectElement", function() { return inlineSelectElement; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reformatInputBounds", function() { return reformatInputBounds; });\n/* harmony import */ var _TextContainer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TextContainer */ "./src/TextContainer.js");\n/* harmony import */ var _parsing_background__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parsing/background */ "./src/parsing/background.js");\n/* harmony import */ var _parsing_border__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./parsing/border */ "./src/parsing/border.js");\n/* harmony import */ var _drawing_Circle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./drawing/Circle */ "./src/drawing/Circle.js");\n/* harmony import */ var _drawing_Vector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./drawing/Vector */ "./src/drawing/Vector.js");\n/* harmony import */ var _Color__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Color */ "./src/Color.js");\n/* harmony import */ var _Length__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Length */ "./src/Length.js");\n/* harmony import */ var _Bounds__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Bounds */ "./src/Bounds.js");\n/* harmony import */ var _TextBounds__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TextBounds */ "./src/TextBounds.js");\n/* harmony import */ var _Util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Util */ "./src/Util.js");\n\n\n\n\n\n\n\n\n\n\n\n\nvar INPUT_COLOR = new _Color__WEBPACK_IMPORTED_MODULE_5__["default"]([42, 42, 42]);\nvar INPUT_BORDER_COLOR = new _Color__WEBPACK_IMPORTED_MODULE_5__["default"]([165, 165, 165]);\nvar INPUT_BACKGROUND_COLOR = new _Color__WEBPACK_IMPORTED_MODULE_5__["default"]([222, 222, 222]);\nvar INPUT_BORDER = {\n borderWidth: 1,\n borderColor: INPUT_BORDER_COLOR,\n borderStyle: _parsing_border__WEBPACK_IMPORTED_MODULE_2__["BORDER_STYLE"].SOLID\n};\nvar INPUT_BORDERS = [INPUT_BORDER, INPUT_BORDER, INPUT_BORDER, INPUT_BORDER];\nvar INPUT_BACKGROUND = {\n backgroundColor: INPUT_BACKGROUND_COLOR,\n backgroundImage: [],\n backgroundClip: _parsing_background__WEBPACK_IMPORTED_MODULE_1__["BACKGROUND_CLIP"].PADDING_BOX,\n backgroundOrigin: _parsing_background__WEBPACK_IMPORTED_MODULE_1__["BACKGROUND_ORIGIN"].PADDING_BOX\n};\nvar RADIO_BORDER_RADIUS = new _Length__WEBPACK_IMPORTED_MODULE_6__["default"](\'50%\');\nvar RADIO_BORDER_RADIUS_TUPLE = [RADIO_BORDER_RADIUS, RADIO_BORDER_RADIUS];\nvar INPUT_RADIO_BORDER_RADIUS = [RADIO_BORDER_RADIUS_TUPLE, RADIO_BORDER_RADIUS_TUPLE, RADIO_BORDER_RADIUS_TUPLE, RADIO_BORDER_RADIUS_TUPLE];\nvar CHECKBOX_BORDER_RADIUS = new _Length__WEBPACK_IMPORTED_MODULE_6__["default"](\'3px\');\nvar CHECKBOX_BORDER_RADIUS_TUPLE = [CHECKBOX_BORDER_RADIUS, CHECKBOX_BORDER_RADIUS];\nvar INPUT_CHECKBOX_BORDER_RADIUS = [CHECKBOX_BORDER_RADIUS_TUPLE, CHECKBOX_BORDER_RADIUS_TUPLE, CHECKBOX_BORDER_RADIUS_TUPLE, CHECKBOX_BORDER_RADIUS_TUPLE];\nvar getInputBorderRadius = function getInputBorderRadius(node) {\n return node.type === \'radio\' ? INPUT_RADIO_BORDER_RADIUS : INPUT_CHECKBOX_BORDER_RADIUS;\n};\nvar inlineInputElement = function inlineInputElement(node, container) {\n if (node.type === \'radio\' || node.type === \'checkbox\') {\n if (node.checked) {\n var size = Math.min(container.bounds.width, container.bounds.height);\n container.childNodes.push(node.type === \'checkbox\' ? [new _drawing_Vector__WEBPACK_IMPORTED_MODULE_4__["default"](container.bounds.left + size * 0.39363, container.bounds.top + size * 0.79), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_4__["default"](container.bounds.left + size * 0.16, container.bounds.top + size * 0.5549), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_4__["default"](container.bounds.left + size * 0.27347, container.bounds.top + size * 0.44071), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_4__["default"](container.bounds.left + size * 0.39694, container.bounds.top + size * 0.5649), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_4__["default"](container.bounds.left + size * 0.72983, container.bounds.top + size * 0.23), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_4__["default"](container.bounds.left + size * 0.84, container.bounds.top + size * 0.34085), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_4__["default"](container.bounds.left + size * 0.39363, container.bounds.top + size * 0.79)] : new _drawing_Circle__WEBPACK_IMPORTED_MODULE_3__["default"](container.bounds.left + size / 4, container.bounds.top + size / 4, size / 4));\n }\n } else {\n inlineFormElement(getInputValue(node), node, container, false);\n }\n};\nvar inlineTextAreaElement = function inlineTextAreaElement(node, container) {\n inlineFormElement(node.value, node, container, true);\n};\nvar inlineSelectElement = function inlineSelectElement(node, container) {\n var option = node.options[node.selectedIndex || 0];\n inlineFormElement(option ? option.text || \'\' : \'\', node, container, false);\n};\nvar reformatInputBounds = function reformatInputBounds(bounds) {\n if (bounds.width > bounds.height) {\n bounds.left += (bounds.width - bounds.height) / 2;\n bounds.width = bounds.height;\n } else if (bounds.width < bounds.height) {\n bounds.top += (bounds.height - bounds.width) / 2;\n bounds.height = bounds.width;\n }\n\n return bounds;\n};\n\nvar inlineFormElement = function inlineFormElement(value, node, container, allowLinebreak) {\n var body = node.ownerDocument.body;\n\n if (value.length > 0 && body) {\n var wrapper = node.ownerDocument.createElement(\'html2canvaswrapper\');\n Object(_Util__WEBPACK_IMPORTED_MODULE_9__["copyCSSStyles"])(node.ownerDocument.defaultView.getComputedStyle(node, null), wrapper);\n wrapper.style.position = \'absolute\';\n wrapper.style.left = "".concat(container.bounds.left, "px");\n wrapper.style.top = "".concat(container.bounds.top, "px");\n\n if (!allowLinebreak) {\n wrapper.style.whiteSpace = \'nowrap\';\n }\n\n var text = node.ownerDocument.createTextNode(value);\n wrapper.appendChild(text);\n body.appendChild(wrapper);\n container.childNodes.push(_TextContainer__WEBPACK_IMPORTED_MODULE_0__["default"].fromTextNode(text, container));\n body.removeChild(wrapper);\n }\n};\n\nvar getInputValue = function getInputValue(node) {\n var value = node.type === \'password\' ? new Array(node.value.length + 1).join("\\u2022") : node.value;\n return value.length === 0 ? node.placeholder || \'\' : value;\n};\n\n//# sourceURL=webpack://html2canvas/./src/Input.js?')},"./src/Length.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LENGTH_TYPE", function() { return LENGTH_TYPE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Length; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateLengthFromValueWithUnit", function() { return calculateLengthFromValueWithUnit; });\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar LENGTH_WITH_UNIT = /([\\d.]+)(px|r?em|%)/i;\nvar LENGTH_TYPE = {\n PX: 0,\n PERCENTAGE: 1\n};\n\nvar Length =\n/*#__PURE__*/\nfunction () {\n function Length(value) {\n _classCallCheck(this, Length);\n\n this.type = value.substr(value.length - 1) === \'%\' ? LENGTH_TYPE.PERCENTAGE : LENGTH_TYPE.PX;\n var parsedValue = parseFloat(value);\n\n if ( true && isNaN(parsedValue)) {\n console.error("Invalid value given for Length: \\"".concat(value, "\\""));\n }\n\n this.value = isNaN(parsedValue) ? 0 : parsedValue;\n }\n\n _createClass(Length, [{\n key: "isPercentage",\n value: function isPercentage() {\n return this.type === LENGTH_TYPE.PERCENTAGE;\n }\n }, {\n key: "getAbsoluteValue",\n value: function getAbsoluteValue(parentLength) {\n return this.isPercentage() ? parentLength * (this.value / 100) : this.value;\n }\n }], [{\n key: "create",\n value: function create(v) {\n return new Length(v);\n }\n }]);\n\n return Length;\n}();\n\n\n\nvar getRootFontSize = function getRootFontSize(container) {\n var parent = container.parent;\n return parent ? getRootFontSize(parent) : parseFloat(container.style.font.fontSize);\n};\n\nvar calculateLengthFromValueWithUnit = function calculateLengthFromValueWithUnit(container, value, unit) {\n switch (unit) {\n case \'px\':\n case \'%\':\n return new Length(value + unit);\n\n case \'em\':\n case \'rem\':\n var length = new Length(value);\n length.value *= unit === \'em\' ? parseFloat(container.style.font.fontSize) : getRootFontSize(container);\n return length;\n\n default:\n // TODO: handle correctly if unknown unit is used\n return new Length(\'0\');\n }\n};\n\n//# sourceURL=webpack://html2canvas/./src/Length.js?')},"./src/ListItem.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getListOwner\", function() { return getListOwner; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"inlineListItemElement\", function() { return inlineListItemElement; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createCounterText\", function() { return createCounterText; });\n/* harmony import */ var _Util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Util */ \"./src/Util.js\");\n/* harmony import */ var _NodeContainer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NodeContainer */ \"./src/NodeContainer.js\");\n/* harmony import */ var _TextContainer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TextContainer */ \"./src/TextContainer.js\");\n/* harmony import */ var _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./parsing/listStyle */ \"./src/parsing/listStyle.js\");\n/* harmony import */ var _Unicode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Unicode */ \"./src/Unicode.js\");\n\n\n\n\n\n\n // Margin between the enumeration and the list item content\n\nvar MARGIN_RIGHT = 7;\nvar ancestorTypes = ['OL', 'UL', 'MENU'];\nvar getListOwner = function getListOwner(container) {\n var parent = container.parent;\n\n if (!parent) {\n return null;\n }\n\n do {\n var isAncestor = ancestorTypes.indexOf(parent.tagName) !== -1;\n\n if (isAncestor) {\n return parent;\n }\n\n parent = parent.parent;\n } while (parent);\n\n return container.parent;\n};\nvar inlineListItemElement = function inlineListItemElement(node, container, resourceLoader) {\n var listStyle = container.style.listStyle;\n\n if (!listStyle) {\n return;\n }\n\n var style = node.ownerDocument.defaultView.getComputedStyle(node, null);\n var wrapper = node.ownerDocument.createElement('html2canvaswrapper');\n Object(_Util__WEBPACK_IMPORTED_MODULE_0__[\"copyCSSStyles\"])(style, wrapper);\n wrapper.style.position = 'absolute';\n wrapper.style.bottom = 'auto';\n wrapper.style.display = 'block';\n wrapper.style.letterSpacing = 'normal';\n\n switch (listStyle.listStylePosition) {\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_POSITION\"].OUTSIDE:\n wrapper.style.left = 'auto';\n wrapper.style.right = \"\".concat(node.ownerDocument.defaultView.innerWidth - container.bounds.left - container.style.margin[1].getAbsoluteValue(container.bounds.width) + MARGIN_RIGHT, \"px\");\n wrapper.style.textAlign = 'right';\n break;\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_POSITION\"].INSIDE:\n wrapper.style.left = \"\".concat(container.bounds.left - container.style.margin[3].getAbsoluteValue(container.bounds.width), \"px\");\n wrapper.style.right = 'auto';\n wrapper.style.textAlign = 'left';\n break;\n }\n\n var text;\n var MARGIN_TOP = container.style.margin[0].getAbsoluteValue(container.bounds.width);\n var styleImage = listStyle.listStyleImage;\n\n if (styleImage) {\n if (styleImage.method === 'url') {\n var image = node.ownerDocument.createElement('img');\n image.src = styleImage.args[0];\n wrapper.style.top = \"\".concat(container.bounds.top - MARGIN_TOP, \"px\");\n wrapper.style.width = 'auto';\n wrapper.style.height = 'auto';\n wrapper.appendChild(image);\n } else {\n var size = parseFloat(container.style.font.fontSize) * 0.5;\n wrapper.style.top = \"\".concat(container.bounds.top - MARGIN_TOP + container.bounds.height - 1.5 * size, \"px\");\n wrapper.style.width = \"\".concat(size, \"px\");\n wrapper.style.height = \"\".concat(size, \"px\");\n wrapper.style.backgroundImage = style.listStyleImage;\n }\n } else if (typeof container.listIndex === 'number') {\n text = node.ownerDocument.createTextNode(createCounterText(container.listIndex, listStyle.listStyleType, true));\n wrapper.appendChild(text);\n wrapper.style.top = \"\".concat(container.bounds.top - MARGIN_TOP, \"px\");\n } // $FlowFixMe\n\n\n var body = node.ownerDocument.body;\n body.appendChild(wrapper);\n\n if (text) {\n container.childNodes.push(_TextContainer__WEBPACK_IMPORTED_MODULE_2__[\"default\"].fromTextNode(text, container));\n body.removeChild(wrapper);\n } else {\n // $FlowFixMe\n container.childNodes.push(new _NodeContainer__WEBPACK_IMPORTED_MODULE_1__[\"default\"](wrapper, container, resourceLoader, 0));\n }\n};\nvar ROMAN_UPPER = {\n integers: [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1],\n values: ['M', 'CM', 'D', 'CD', 'C', 'XC', 'L', 'XL', 'X', 'IX', 'V', 'IV', 'I']\n};\nvar ARMENIAN = {\n integers: [9000, 8000, 7000, 6000, 5000, 4000, 3000, 2000, 1000, 900, 800, 700, 600, 500, 400, 300, 200, 100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1],\n values: ['\u0554', '\u0553', '\u0552', '\u0551', '\u0550', '\u054f', '\u054e', '\u054d', '\u054c', '\u054b', '\u054a', '\u0549', '\u0548', '\u0547', '\u0546', '\u0545', '\u0544', '\u0543', '\u0542', '\u0541', '\u0540', '\u053f', '\u053e', '\u053d', '\u053c', '\u053b', '\u053a', '\u0539', '\u0538', '\u0537', '\u0536', '\u0535', '\u0534', '\u0533', '\u0532', '\u0531']\n};\nvar HEBREW = {\n integers: [10000, 9000, 8000, 7000, 6000, 5000, 4000, 3000, 2000, 1000, 400, 300, 200, 100, 90, 80, 70, 60, 50, 40, 30, 20, 19, 18, 17, 16, 15, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1],\n values: ['\u05d9\u05f3', '\u05d8\u05f3', '\u05d7\u05f3', '\u05d6\u05f3', '\u05d5\u05f3', '\u05d4\u05f3', '\u05d3\u05f3', '\u05d2\u05f3', '\u05d1\u05f3', '\u05d0\u05f3', '\u05ea', '\u05e9', '\u05e8', '\u05e7', '\u05e6', '\u05e4', '\u05e2', '\u05e1', '\u05e0', '\u05de', '\u05dc', '\u05db', '\u05d9\u05d8', '\u05d9\u05d7', '\u05d9\u05d6', '\u05d8\u05d6', '\u05d8\u05d5', '\u05d9', '\u05d8', '\u05d7', '\u05d6', '\u05d5', '\u05d4', '\u05d3', '\u05d2', '\u05d1', '\u05d0']\n};\nvar GEORGIAN = {\n integers: [10000, 9000, 8000, 7000, 6000, 5000, 4000, 3000, 2000, 1000, 900, 800, 700, 600, 500, 400, 300, 200, 100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1],\n values: ['\u10f5', '\u10f0', '\u10ef', '\u10f4', '\u10ee', '\u10ed', '\u10ec', '\u10eb', '\u10ea', '\u10e9', '\u10e8', '\u10e7', '\u10e6', '\u10e5', '\u10e4', '\u10f3', '\u10e2', '\u10e1', '\u10e0', '\u10df', '\u10de', '\u10dd', '\u10f2', '\u10dc', '\u10db', '\u10da', '\u10d9', '\u10d8', '\u10d7', '\u10f1', '\u10d6', '\u10d5', '\u10d4', '\u10d3', '\u10d2', '\u10d1', '\u10d0']\n};\n\nvar createAdditiveCounter = function createAdditiveCounter(value, min, max, symbols, fallback, suffix) {\n if (value < min || value > max) {\n return createCounterText(value, fallback, suffix.length > 0);\n }\n\n return symbols.integers.reduce(function (string, integer, index) {\n while (value >= integer) {\n value -= integer;\n string += symbols.values[index];\n }\n\n return string;\n }, '') + suffix;\n};\n\nvar createCounterStyleWithSymbolResolver = function createCounterStyleWithSymbolResolver(value, codePointRangeLength, isNumeric, resolver) {\n var string = '';\n\n do {\n if (!isNumeric) {\n value--;\n }\n\n string = resolver(value) + string;\n value /= codePointRangeLength;\n } while (value * codePointRangeLength >= codePointRangeLength);\n\n return string;\n};\n\nvar createCounterStyleFromRange = function createCounterStyleFromRange(value, codePointRangeStart, codePointRangeEnd, isNumeric, suffix) {\n var codePointRangeLength = codePointRangeEnd - codePointRangeStart + 1;\n return (value < 0 ? '-' : '') + (createCounterStyleWithSymbolResolver(Math.abs(value), codePointRangeLength, isNumeric, function (codePoint) {\n return Object(_Unicode__WEBPACK_IMPORTED_MODULE_4__[\"fromCodePoint\"])(Math.floor(codePoint % codePointRangeLength) + codePointRangeStart);\n }) + suffix);\n};\n\nvar createCounterStyleFromSymbols = function createCounterStyleFromSymbols(value, symbols) {\n var suffix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '. ';\n var codePointRangeLength = symbols.length;\n return createCounterStyleWithSymbolResolver(Math.abs(value), codePointRangeLength, false, function (codePoint) {\n return symbols[Math.floor(codePoint % codePointRangeLength)];\n }) + suffix;\n};\n\nvar CJK_ZEROS = 1 << 0;\nvar CJK_TEN_COEFFICIENTS = 1 << 1;\nvar CJK_TEN_HIGH_COEFFICIENTS = 1 << 2;\nvar CJK_HUNDRED_COEFFICIENTS = 1 << 3;\n\nvar createCJKCounter = function createCJKCounter(value, numbers, multipliers, negativeSign, suffix, flags) {\n if (value < -9999 || value > 9999) {\n return createCounterText(value, _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].CJK_DECIMAL, suffix.length > 0);\n }\n\n var tmp = Math.abs(value);\n var string = suffix;\n\n if (tmp === 0) {\n return numbers[0] + string;\n }\n\n for (var digit = 0; tmp > 0 && digit <= 4; digit++) {\n var coefficient = tmp % 10;\n\n if (coefficient === 0 && Object(_Util__WEBPACK_IMPORTED_MODULE_0__[\"contains\"])(flags, CJK_ZEROS) && string !== '') {\n string = numbers[coefficient] + string;\n } else if (coefficient > 1 || coefficient === 1 && digit === 0 || coefficient === 1 && digit === 1 && Object(_Util__WEBPACK_IMPORTED_MODULE_0__[\"contains\"])(flags, CJK_TEN_COEFFICIENTS) || coefficient === 1 && digit === 1 && Object(_Util__WEBPACK_IMPORTED_MODULE_0__[\"contains\"])(flags, CJK_TEN_HIGH_COEFFICIENTS) && value > 100 || coefficient === 1 && digit > 1 && Object(_Util__WEBPACK_IMPORTED_MODULE_0__[\"contains\"])(flags, CJK_HUNDRED_COEFFICIENTS)) {\n string = numbers[coefficient] + (digit > 0 ? multipliers[digit - 1] : '') + string;\n } else if (coefficient === 1 && digit > 0) {\n string = multipliers[digit - 1] + string;\n }\n\n tmp = Math.floor(tmp / 10);\n }\n\n return (value < 0 ? negativeSign : '') + string;\n};\n\nvar CHINESE_INFORMAL_MULTIPLIERS = '\u5341\u767e\u5343\u842c';\nvar CHINESE_FORMAL_MULTIPLIERS = '\u62fe\u4f70\u4edf\u842c';\nvar JAPANESE_NEGATIVE = '\u30de\u30a4\u30ca\u30b9';\nvar KOREAN_NEGATIVE = '\ub9c8\uc774\ub108\uc2a4';\nvar createCounterText = function createCounterText(value, type, appendSuffix) {\n var defaultSuffix = appendSuffix ? '. ' : '';\n var cjkSuffix = appendSuffix ? '\u3001' : '';\n var koreanSuffix = appendSuffix ? ', ' : '';\n\n switch (type) {\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].DISC:\n return '\u2022';\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].CIRCLE:\n return '\u25e6';\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].SQUARE:\n return '\u25fe';\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].DECIMAL_LEADING_ZERO:\n var string = createCounterStyleFromRange(value, 48, 57, true, defaultSuffix);\n return string.length < 4 ? \"0\".concat(string) : string;\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].CJK_DECIMAL:\n return createCounterStyleFromSymbols(value, '\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d', cjkSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].LOWER_ROMAN:\n return createAdditiveCounter(value, 1, 3999, ROMAN_UPPER, _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].DECIMAL, defaultSuffix).toLowerCase();\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].UPPER_ROMAN:\n return createAdditiveCounter(value, 1, 3999, ROMAN_UPPER, _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].DECIMAL, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].LOWER_GREEK:\n return createCounterStyleFromRange(value, 945, 969, false, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].LOWER_ALPHA:\n return createCounterStyleFromRange(value, 97, 122, false, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].UPPER_ALPHA:\n return createCounterStyleFromRange(value, 65, 90, false, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].ARABIC_INDIC:\n return createCounterStyleFromRange(value, 1632, 1641, true, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].ARMENIAN:\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].UPPER_ARMENIAN:\n return createAdditiveCounter(value, 1, 9999, ARMENIAN, _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].DECIMAL, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].LOWER_ARMENIAN:\n return createAdditiveCounter(value, 1, 9999, ARMENIAN, _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].DECIMAL, defaultSuffix).toLowerCase();\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].BENGALI:\n return createCounterStyleFromRange(value, 2534, 2543, true, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].CAMBODIAN:\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].KHMER:\n return createCounterStyleFromRange(value, 6112, 6121, true, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].CJK_EARTHLY_BRANCH:\n return createCounterStyleFromSymbols(value, '\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5', cjkSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].CJK_HEAVENLY_STEM:\n return createCounterStyleFromSymbols(value, '\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678', cjkSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].CJK_IDEOGRAPHIC:\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].TRAD_CHINESE_INFORMAL:\n return createCJKCounter(value, '\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d', CHINESE_INFORMAL_MULTIPLIERS, '\u8ca0', cjkSuffix, CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].TRAD_CHINESE_FORMAL:\n return createCJKCounter(value, '\u96f6\u58f9\u8cb3\u53c3\u8086\u4f0d\u9678\u67d2\u634c\u7396', CHINESE_FORMAL_MULTIPLIERS, '\u8ca0', cjkSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].SIMP_CHINESE_INFORMAL:\n return createCJKCounter(value, '\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d', CHINESE_INFORMAL_MULTIPLIERS, '\u8d1f', cjkSuffix, CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].SIMP_CHINESE_FORMAL:\n return createCJKCounter(value, '\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396', CHINESE_FORMAL_MULTIPLIERS, '\u8d1f', cjkSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS | CJK_HUNDRED_COEFFICIENTS);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].JAPANESE_INFORMAL:\n return createCJKCounter(value, '\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d', '\u5341\u767e\u5343\u4e07', JAPANESE_NEGATIVE, cjkSuffix, 0);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].JAPANESE_FORMAL:\n return createCJKCounter(value, '\u96f6\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d', '\u62fe\u767e\u5343\u4e07', JAPANESE_NEGATIVE, cjkSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].KOREAN_HANGUL_FORMAL:\n return createCJKCounter(value, '\uc601\uc77c\uc774\uc0bc\uc0ac\uc624\uc721\uce60\ud314\uad6c', '\uc2ed\ubc31\ucc9c\ub9cc', KOREAN_NEGATIVE, koreanSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].KOREAN_HANJA_INFORMAL:\n return createCJKCounter(value, '\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d', '\u5341\u767e\u5343\u842c', KOREAN_NEGATIVE, koreanSuffix, 0);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].KOREAN_HANJA_FORMAL:\n return createCJKCounter(value, '\u96f6\u58f9\u8cb3\u53c3\u56db\u4e94\u516d\u4e03\u516b\u4e5d', '\u62fe\u767e\u5343', KOREAN_NEGATIVE, koreanSuffix, CJK_ZEROS | CJK_TEN_COEFFICIENTS | CJK_TEN_HIGH_COEFFICIENTS);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].DEVANAGARI:\n return createCounterStyleFromRange(value, 0x966, 0x96f, true, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].GEORGIAN:\n return createAdditiveCounter(value, 1, 19999, GEORGIAN, _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].DECIMAL, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].GUJARATI:\n return createCounterStyleFromRange(value, 0xae6, 0xaef, true, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].GURMUKHI:\n return createCounterStyleFromRange(value, 0xa66, 0xa6f, true, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].HEBREW:\n return createAdditiveCounter(value, 1, 10999, HEBREW, _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].DECIMAL, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].HIRAGANA:\n return createCounterStyleFromSymbols(value, '\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u305f\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308a\u308b\u308c\u308d\u308f\u3090\u3091\u3092\u3093');\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].HIRAGANA_IROHA:\n return createCounterStyleFromSymbols(value, '\u3044\u308d\u306f\u306b\u307b\u3078\u3068\u3061\u308a\u306c\u308b\u3092\u308f\u304b\u3088\u305f\u308c\u305d\u3064\u306d\u306a\u3089\u3080\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304d\u3086\u3081\u307f\u3057\u3091\u3072\u3082\u305b\u3059');\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].KANNADA:\n return createCounterStyleFromRange(value, 0xce6, 0xcef, true, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].KATAKANA:\n return createCounterStyleFromSymbols(value, '\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f0\u30f1\u30f2\u30f3', cjkSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].KATAKANA_IROHA:\n return createCounterStyleFromSymbols(value, '\u30a4\u30ed\u30cf\u30cb\u30db\u30d8\u30c8\u30c1\u30ea\u30cc\u30eb\u30f2\u30ef\u30ab\u30e8\u30bf\u30ec\u30bd\u30c4\u30cd\u30ca\u30e9\u30e0\u30a6\u30f0\u30ce\u30aa\u30af\u30e4\u30de\u30b1\u30d5\u30b3\u30a8\u30c6\u30a2\u30b5\u30ad\u30e6\u30e1\u30df\u30b7\u30f1\u30d2\u30e2\u30bb\u30b9', cjkSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].LAO:\n return createCounterStyleFromRange(value, 0xed0, 0xed9, true, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].MONGOLIAN:\n return createCounterStyleFromRange(value, 0x1810, 0x1819, true, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].MYANMAR:\n return createCounterStyleFromRange(value, 0x1040, 0x1049, true, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].ORIYA:\n return createCounterStyleFromRange(value, 0xb66, 0xb6f, true, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].PERSIAN:\n return createCounterStyleFromRange(value, 0x6f0, 0x6f9, true, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].TAMIL:\n return createCounterStyleFromRange(value, 0xbe6, 0xbef, true, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].TELUGU:\n return createCounterStyleFromRange(value, 0xc66, 0xc6f, true, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].THAI:\n return createCounterStyleFromRange(value, 0xe50, 0xe59, true, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].TIBETAN:\n return createCounterStyleFromRange(value, 0xf20, 0xf29, true, defaultSuffix);\n\n case _parsing_listStyle__WEBPACK_IMPORTED_MODULE_3__[\"LIST_STYLE_TYPE\"].DECIMAL:\n default:\n return createCounterStyleFromRange(value, 48, 57, true, defaultSuffix);\n }\n};\n\n//# sourceURL=webpack://html2canvas/./src/ListItem.js?")},"./src/Logger.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Logger; });\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar Logger =\n/*#__PURE__*/\nfunction () {\n function Logger(enabled, id, start) {\n _classCallCheck(this, Logger);\n\n this.enabled = typeof window !== \'undefined\' && enabled;\n this.start = start ? start : Date.now();\n this.id = id;\n }\n\n _createClass(Logger, [{\n key: "child",\n value: function child(id) {\n return new Logger(this.enabled, id, this.start);\n } // eslint-disable-next-line flowtype/no-weak-types\n\n }, {\n key: "log",\n value: function log() {\n if (this.enabled && window.console && window.console.log) {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n Function.prototype.bind.call(window.console.log, window.console).apply(window.console, [Date.now() - this.start + \'ms\', this.id ? "html2canvas (".concat(this.id, "):") : \'html2canvas:\'].concat([].slice.call(args, 0)));\n }\n } // eslint-disable-next-line flowtype/no-weak-types\n\n }, {\n key: "error",\n value: function error() {\n if (this.enabled && window.console && window.console.error) {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n Function.prototype.bind.call(window.console.error, window.console).apply(window.console, [Date.now() - this.start + \'ms\', this.id ? "html2canvas (".concat(this.id, "):") : \'html2canvas:\'].concat([].slice.call(args, 0)));\n }\n }\n }]);\n\n return Logger;\n}();\n\n\n\n//# sourceURL=webpack://html2canvas/./src/Logger.js?')},"./src/NodeContainer.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return NodeContainer; });\n/* harmony import */ var _Color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Color */ "./src/Color.js");\n/* harmony import */ var _Util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Util */ "./src/Util.js");\n/* harmony import */ var _parsing_background__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./parsing/background */ "./src/parsing/background.js");\n/* harmony import */ var _parsing_border__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./parsing/border */ "./src/parsing/border.js");\n/* harmony import */ var _parsing_borderRadius__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./parsing/borderRadius */ "./src/parsing/borderRadius.js");\n/* harmony import */ var _parsing_display__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./parsing/display */ "./src/parsing/display.js");\n/* harmony import */ var _parsing_float__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./parsing/float */ "./src/parsing/float.js");\n/* harmony import */ var _parsing_font__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./parsing/font */ "./src/parsing/font.js");\n/* harmony import */ var _parsing_letterSpacing__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./parsing/letterSpacing */ "./src/parsing/letterSpacing.js");\n/* harmony import */ var _parsing_lineBreak__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./parsing/lineBreak */ "./src/parsing/lineBreak.js");\n/* harmony import */ var _parsing_listStyle__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./parsing/listStyle */ "./src/parsing/listStyle.js");\n/* harmony import */ var _parsing_margin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./parsing/margin */ "./src/parsing/margin.js");\n/* harmony import */ var _parsing_overflow__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./parsing/overflow */ "./src/parsing/overflow.js");\n/* harmony import */ var _parsing_overflowWrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./parsing/overflowWrap */ "./src/parsing/overflowWrap.js");\n/* harmony import */ var _parsing_padding__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./parsing/padding */ "./src/parsing/padding.js");\n/* harmony import */ var _parsing_position__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./parsing/position */ "./src/parsing/position.js");\n/* harmony import */ var _parsing_textDecoration__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./parsing/textDecoration */ "./src/parsing/textDecoration.js");\n/* harmony import */ var _parsing_textShadow__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./parsing/textShadow */ "./src/parsing/textShadow.js");\n/* harmony import */ var _parsing_textTransform__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./parsing/textTransform */ "./src/parsing/textTransform.js");\n/* harmony import */ var _parsing_transform__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./parsing/transform */ "./src/parsing/transform.js");\n/* harmony import */ var _parsing_visibility__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./parsing/visibility */ "./src/parsing/visibility.js");\n/* harmony import */ var _parsing_word_break__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./parsing/word-break */ "./src/parsing/word-break.js");\n/* harmony import */ var _parsing_zIndex__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./parsing/zIndex */ "./src/parsing/zIndex.js");\n/* harmony import */ var _Bounds__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Bounds */ "./src/Bounds.js");\n/* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Input */ "./src/Input.js");\n/* harmony import */ var _ListItem__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./ListItem */ "./src/ListItem.js");\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar INPUT_TAGS = [\'INPUT\', \'TEXTAREA\', \'SELECT\'];\n\nvar NodeContainer =\n/*#__PURE__*/\nfunction () {\n function NodeContainer(node, parent, resourceLoader, index) {\n var _this = this;\n\n _classCallCheck(this, NodeContainer);\n\n this.parent = parent;\n this.tagName = node.tagName;\n this.index = index;\n this.childNodes = [];\n this.listItems = [];\n\n if (typeof node.start === \'number\') {\n this.listStart = node.start;\n }\n\n var defaultView = node.ownerDocument.defaultView;\n var scrollX = defaultView.pageXOffset;\n var scrollY = defaultView.pageYOffset;\n var style = defaultView.getComputedStyle(node, null);\n var display = Object(_parsing_display__WEBPACK_IMPORTED_MODULE_5__["parseDisplay"])(style.display);\n var IS_INPUT = node.type === \'radio\' || node.type === \'checkbox\';\n var position = Object(_parsing_position__WEBPACK_IMPORTED_MODULE_15__["parsePosition"])(style.position);\n this.style = {\n background: IS_INPUT ? _Input__WEBPACK_IMPORTED_MODULE_24__["INPUT_BACKGROUND"] : Object(_parsing_background__WEBPACK_IMPORTED_MODULE_2__["parseBackground"])(style, resourceLoader),\n border: IS_INPUT ? _Input__WEBPACK_IMPORTED_MODULE_24__["INPUT_BORDERS"] : Object(_parsing_border__WEBPACK_IMPORTED_MODULE_3__["parseBorder"])(style),\n borderRadius: (node instanceof defaultView.HTMLInputElement || node instanceof HTMLInputElement) && IS_INPUT ? Object(_Input__WEBPACK_IMPORTED_MODULE_24__["getInputBorderRadius"])(node) : Object(_parsing_borderRadius__WEBPACK_IMPORTED_MODULE_4__["parseBorderRadius"])(style),\n color: IS_INPUT ? _Input__WEBPACK_IMPORTED_MODULE_24__["INPUT_COLOR"] : new _Color__WEBPACK_IMPORTED_MODULE_0__["default"](style.color),\n display: display,\n float: Object(_parsing_float__WEBPACK_IMPORTED_MODULE_6__["parseCSSFloat"])(style.float),\n font: Object(_parsing_font__WEBPACK_IMPORTED_MODULE_7__["parseFont"])(style),\n letterSpacing: Object(_parsing_letterSpacing__WEBPACK_IMPORTED_MODULE_8__["parseLetterSpacing"])(style.letterSpacing),\n listStyle: display === _parsing_display__WEBPACK_IMPORTED_MODULE_5__["DISPLAY"].LIST_ITEM ? Object(_parsing_listStyle__WEBPACK_IMPORTED_MODULE_10__["parseListStyle"])(style) : null,\n lineBreak: Object(_parsing_lineBreak__WEBPACK_IMPORTED_MODULE_9__["parseLineBreak"])(style.lineBreak),\n margin: Object(_parsing_margin__WEBPACK_IMPORTED_MODULE_11__["parseMargin"])(style),\n opacity: parseFloat(style.opacity),\n overflow: INPUT_TAGS.indexOf(node.tagName) === -1 ? Object(_parsing_overflow__WEBPACK_IMPORTED_MODULE_12__["parseOverflow"])(style.overflow) : _parsing_overflow__WEBPACK_IMPORTED_MODULE_12__["OVERFLOW"].HIDDEN,\n overflowWrap: Object(_parsing_overflowWrap__WEBPACK_IMPORTED_MODULE_13__["parseOverflowWrap"])(style.overflowWrap ? style.overflowWrap : style.wordWrap),\n padding: Object(_parsing_padding__WEBPACK_IMPORTED_MODULE_14__["parsePadding"])(style),\n position: position,\n textDecoration: Object(_parsing_textDecoration__WEBPACK_IMPORTED_MODULE_16__["parseTextDecoration"])(style),\n textShadow: Object(_parsing_textShadow__WEBPACK_IMPORTED_MODULE_17__["parseTextShadow"])(style.textShadow),\n textTransform: Object(_parsing_textTransform__WEBPACK_IMPORTED_MODULE_18__["parseTextTransform"])(style.textTransform),\n transform: Object(_parsing_transform__WEBPACK_IMPORTED_MODULE_19__["parseTransform"])(style),\n visibility: Object(_parsing_visibility__WEBPACK_IMPORTED_MODULE_20__["parseVisibility"])(style.visibility),\n wordBreak: Object(_parsing_word_break__WEBPACK_IMPORTED_MODULE_21__["parseWordBreak"])(style.wordBreak),\n zIndex: Object(_parsing_zIndex__WEBPACK_IMPORTED_MODULE_22__["parseZIndex"])(position !== _parsing_position__WEBPACK_IMPORTED_MODULE_15__["POSITION"].STATIC ? style.zIndex : \'auto\')\n };\n\n if (this.isTransformed()) {\n // getBoundingClientRect provides values post-transform, we want them without the transformation\n node.style.transform = \'matrix(1,0,0,1,0,0)\';\n }\n\n if (display === _parsing_display__WEBPACK_IMPORTED_MODULE_5__["DISPLAY"].LIST_ITEM) {\n var listOwner = Object(_ListItem__WEBPACK_IMPORTED_MODULE_25__["getListOwner"])(this);\n\n if (listOwner) {\n var listIndex = listOwner.listItems.length;\n listOwner.listItems.push(this);\n this.listIndex = node.hasAttribute(\'value\') && typeof node.value === \'number\' ? node.value : listIndex === 0 ? typeof listOwner.listStart === \'number\' ? listOwner.listStart : 1 : listOwner.listItems[listIndex - 1].listIndex + 1;\n }\n } // TODO move bound retrieval for all nodes to a later stage?\n\n\n if (node.tagName === \'IMG\') {\n node.addEventListener(\'load\', function () {\n _this.bounds = Object(_Bounds__WEBPACK_IMPORTED_MODULE_23__["parseBounds"])(node, scrollX, scrollY);\n _this.curvedBounds = Object(_Bounds__WEBPACK_IMPORTED_MODULE_23__["parseBoundCurves"])(_this.bounds, _this.style.border, _this.style.borderRadius);\n });\n }\n\n this.image = getImage(node, resourceLoader);\n this.bounds = IS_INPUT ? Object(_Input__WEBPACK_IMPORTED_MODULE_24__["reformatInputBounds"])(Object(_Bounds__WEBPACK_IMPORTED_MODULE_23__["parseBounds"])(node, scrollX, scrollY)) : Object(_Bounds__WEBPACK_IMPORTED_MODULE_23__["parseBounds"])(node, scrollX, scrollY);\n this.curvedBounds = Object(_Bounds__WEBPACK_IMPORTED_MODULE_23__["parseBoundCurves"])(this.bounds, this.style.border, this.style.borderRadius);\n\n if (true) {\n this.name = "".concat(node.tagName.toLowerCase()).concat(node.id ? "#".concat(node.id) : \'\').concat(node.className.toString().split(\' \').map(function (s) {\n return s.length ? ".".concat(s) : \'\';\n }).join(\'\'));\n }\n }\n\n _createClass(NodeContainer, [{\n key: "getClipPaths",\n value: function getClipPaths() {\n var parentClips = this.parent ? this.parent.getClipPaths() : [];\n var isClipped = this.style.overflow !== _parsing_overflow__WEBPACK_IMPORTED_MODULE_12__["OVERFLOW"].VISIBLE;\n return isClipped ? parentClips.concat([Object(_Bounds__WEBPACK_IMPORTED_MODULE_23__["calculatePaddingBoxPath"])(this.curvedBounds)]) : parentClips;\n }\n }, {\n key: "isInFlow",\n value: function isInFlow() {\n return this.isRootElement() && !this.isFloating() && !this.isAbsolutelyPositioned();\n }\n }, {\n key: "isVisible",\n value: function isVisible() {\n return !Object(_Util__WEBPACK_IMPORTED_MODULE_1__["contains"])(this.style.display, _parsing_display__WEBPACK_IMPORTED_MODULE_5__["DISPLAY"].NONE) && this.style.opacity > 0 && this.style.visibility === _parsing_visibility__WEBPACK_IMPORTED_MODULE_20__["VISIBILITY"].VISIBLE;\n }\n }, {\n key: "isAbsolutelyPositioned",\n value: function isAbsolutelyPositioned() {\n return this.style.position !== _parsing_position__WEBPACK_IMPORTED_MODULE_15__["POSITION"].STATIC && this.style.position !== _parsing_position__WEBPACK_IMPORTED_MODULE_15__["POSITION"].RELATIVE;\n }\n }, {\n key: "isPositioned",\n value: function isPositioned() {\n return this.style.position !== _parsing_position__WEBPACK_IMPORTED_MODULE_15__["POSITION"].STATIC;\n }\n }, {\n key: "isFloating",\n value: function isFloating() {\n return this.style.float !== _parsing_float__WEBPACK_IMPORTED_MODULE_6__["FLOAT"].NONE;\n }\n }, {\n key: "isRootElement",\n value: function isRootElement() {\n return this.parent === null;\n }\n }, {\n key: "isTransformed",\n value: function isTransformed() {\n return this.style.transform !== null;\n }\n }, {\n key: "isPositionedWithZIndex",\n value: function isPositionedWithZIndex() {\n return this.isPositioned() && !this.style.zIndex.auto;\n }\n }, {\n key: "isInlineLevel",\n value: function isInlineLevel() {\n return Object(_Util__WEBPACK_IMPORTED_MODULE_1__["contains"])(this.style.display, _parsing_display__WEBPACK_IMPORTED_MODULE_5__["DISPLAY"].INLINE) || Object(_Util__WEBPACK_IMPORTED_MODULE_1__["contains"])(this.style.display, _parsing_display__WEBPACK_IMPORTED_MODULE_5__["DISPLAY"].INLINE_BLOCK) || Object(_Util__WEBPACK_IMPORTED_MODULE_1__["contains"])(this.style.display, _parsing_display__WEBPACK_IMPORTED_MODULE_5__["DISPLAY"].INLINE_FLEX) || Object(_Util__WEBPACK_IMPORTED_MODULE_1__["contains"])(this.style.display, _parsing_display__WEBPACK_IMPORTED_MODULE_5__["DISPLAY"].INLINE_GRID) || Object(_Util__WEBPACK_IMPORTED_MODULE_1__["contains"])(this.style.display, _parsing_display__WEBPACK_IMPORTED_MODULE_5__["DISPLAY"].INLINE_LIST_ITEM) || Object(_Util__WEBPACK_IMPORTED_MODULE_1__["contains"])(this.style.display, _parsing_display__WEBPACK_IMPORTED_MODULE_5__["DISPLAY"].INLINE_TABLE);\n }\n }, {\n key: "isInlineBlockOrInlineTable",\n value: function isInlineBlockOrInlineTable() {\n return Object(_Util__WEBPACK_IMPORTED_MODULE_1__["contains"])(this.style.display, _parsing_display__WEBPACK_IMPORTED_MODULE_5__["DISPLAY"].INLINE_BLOCK) || Object(_Util__WEBPACK_IMPORTED_MODULE_1__["contains"])(this.style.display, _parsing_display__WEBPACK_IMPORTED_MODULE_5__["DISPLAY"].INLINE_TABLE);\n }\n }]);\n\n return NodeContainer;\n}();\n\n\n\nvar getImage = function getImage(node, resourceLoader) {\n if (node instanceof node.ownerDocument.defaultView.SVGSVGElement || node instanceof SVGSVGElement) {\n var s = new XMLSerializer();\n return resourceLoader.loadImage("data:image/svg+xml,".concat(encodeURIComponent(s.serializeToString(node))));\n }\n\n switch (node.tagName) {\n case \'IMG\':\n // $FlowFixMe\n var img = node;\n return resourceLoader.loadImage(img.currentSrc || img.src);\n\n case \'CANVAS\':\n // $FlowFixMe\n var canvas = node;\n return resourceLoader.loadCanvas(canvas);\n\n case \'IFRAME\':\n var iframeKey = node.getAttribute(\'data-html2canvas-internal-iframe-key\');\n\n if (iframeKey) {\n return iframeKey;\n }\n\n break;\n }\n\n return null;\n};\n\n//# sourceURL=webpack://html2canvas/./src/NodeContainer.js?')},"./src/NodeParser.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeParser", function() { return NodeParser; });\n/* harmony import */ var _StackingContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./StackingContext */ "./src/StackingContext.js");\n/* harmony import */ var _NodeContainer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NodeContainer */ "./src/NodeContainer.js");\n/* harmony import */ var _TextContainer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TextContainer */ "./src/TextContainer.js");\n/* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Input */ "./src/Input.js");\n/* harmony import */ var _ListItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ListItem */ "./src/ListItem.js");\n/* harmony import */ var _parsing_listStyle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./parsing/listStyle */ "./src/parsing/listStyle.js");\n\n\n\n\n\n\n\n\nvar NodeParser = function NodeParser(node, resourceLoader, logger) {\n if (true) {\n logger.log("Starting node parsing");\n }\n\n var index = 0;\n var container = new _NodeContainer__WEBPACK_IMPORTED_MODULE_1__["default"](node, null, resourceLoader, index++);\n var stack = new _StackingContext__WEBPACK_IMPORTED_MODULE_0__["default"](container, null, true);\n parseNodeTree(node, container, stack, resourceLoader, index);\n\n if (true) {\n logger.log("Finished parsing node tree");\n }\n\n return stack;\n};\nvar IGNORED_NODE_NAMES = [\'SCRIPT\', \'HEAD\', \'TITLE\', \'OBJECT\', \'BR\', \'OPTION\'];\n\nvar parseNodeTree = function parseNodeTree(node, parent, stack, resourceLoader, index) {\n if ( true && index > 50000) {\n throw new Error("Recursion error while parsing node tree");\n }\n\n for (var childNode = node.firstChild, nextNode; childNode; childNode = nextNode) {\n nextNode = childNode.nextSibling;\n var defaultView = childNode.ownerDocument.defaultView;\n\n if (childNode instanceof defaultView.Text || childNode instanceof Text || defaultView.parent && childNode instanceof defaultView.parent.Text) {\n if (childNode.data.trim().length > 0) {\n parent.childNodes.push(_TextContainer__WEBPACK_IMPORTED_MODULE_2__["default"].fromTextNode(childNode, parent));\n }\n } else if (childNode instanceof defaultView.HTMLElement || childNode instanceof HTMLElement || defaultView.parent && childNode instanceof defaultView.parent.HTMLElement) {\n if (IGNORED_NODE_NAMES.indexOf(childNode.nodeName) === -1) {\n var container = new _NodeContainer__WEBPACK_IMPORTED_MODULE_1__["default"](childNode, parent, resourceLoader, index++);\n\n if (container.isVisible()) {\n if (childNode.tagName === \'INPUT\') {\n // $FlowFixMe\n Object(_Input__WEBPACK_IMPORTED_MODULE_3__["inlineInputElement"])(childNode, container);\n } else if (childNode.tagName === \'TEXTAREA\') {\n // $FlowFixMe\n Object(_Input__WEBPACK_IMPORTED_MODULE_3__["inlineTextAreaElement"])(childNode, container);\n } else if (childNode.tagName === \'SELECT\') {\n // $FlowFixMe\n Object(_Input__WEBPACK_IMPORTED_MODULE_3__["inlineSelectElement"])(childNode, container);\n } else if (container.style.listStyle && container.style.listStyle.listStyleType !== _parsing_listStyle__WEBPACK_IMPORTED_MODULE_5__["LIST_STYLE_TYPE"].NONE) {\n Object(_ListItem__WEBPACK_IMPORTED_MODULE_4__["inlineListItemElement"])(childNode, container, resourceLoader);\n }\n\n var SHOULD_TRAVERSE_CHILDREN = childNode.tagName !== \'TEXTAREA\';\n var treatAsRealStackingContext = createsRealStackingContext(container, childNode);\n\n if (treatAsRealStackingContext || createsStackingContext(container)) {\n // for treatAsRealStackingContext:false, any positioned descendants and descendants\n // which actually create a new stacking context should be considered part of the parent stacking context\n var parentStack = treatAsRealStackingContext || container.isPositioned() ? stack.getRealParentStackingContext() : stack;\n var childStack = new _StackingContext__WEBPACK_IMPORTED_MODULE_0__["default"](container, parentStack, treatAsRealStackingContext);\n parentStack.contexts.push(childStack);\n\n if (SHOULD_TRAVERSE_CHILDREN) {\n parseNodeTree(childNode, container, childStack, resourceLoader, index);\n }\n } else {\n stack.children.push(container);\n\n if (SHOULD_TRAVERSE_CHILDREN) {\n parseNodeTree(childNode, container, stack, resourceLoader, index);\n }\n }\n }\n }\n } else if (childNode instanceof defaultView.SVGSVGElement || childNode instanceof SVGSVGElement || defaultView.parent && childNode instanceof defaultView.parent.SVGSVGElement) {\n var _container = new _NodeContainer__WEBPACK_IMPORTED_MODULE_1__["default"](childNode, parent, resourceLoader, index++);\n\n var _treatAsRealStackingContext = createsRealStackingContext(_container, childNode);\n\n if (_treatAsRealStackingContext || createsStackingContext(_container)) {\n // for treatAsRealStackingContext:false, any positioned descendants and descendants\n // which actually create a new stacking context should be considered part of the parent stacking context\n var _parentStack = _treatAsRealStackingContext || _container.isPositioned() ? stack.getRealParentStackingContext() : stack;\n\n var _childStack = new _StackingContext__WEBPACK_IMPORTED_MODULE_0__["default"](_container, _parentStack, _treatAsRealStackingContext);\n\n _parentStack.contexts.push(_childStack);\n } else {\n stack.children.push(_container);\n }\n }\n }\n};\n\nvar createsRealStackingContext = function createsRealStackingContext(container, node) {\n return container.isRootElement() || container.isPositionedWithZIndex() || container.style.opacity < 1 || container.isTransformed() || isBodyWithTransparentRoot(container, node);\n};\n\nvar createsStackingContext = function createsStackingContext(container) {\n return container.isPositioned() || container.isFloating();\n};\n\nvar isBodyWithTransparentRoot = function isBodyWithTransparentRoot(container, node) {\n return node.nodeName === \'BODY\' && container.parent instanceof _NodeContainer__WEBPACK_IMPORTED_MODULE_1__["default"] && container.parent.style.background.backgroundColor.isTransparent();\n};\n\n//# sourceURL=webpack://html2canvas/./src/NodeParser.js?')},"./src/Proxy.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Proxy", function() { return Proxy; });\n/* harmony import */ var _Feature__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Feature */ "./src/Feature.js");\n\n\n\nvar Proxy = function Proxy(src, options) {\n if (!options.proxy) {\n return Promise.reject( true ? \'No proxy defined\' : undefined);\n }\n\n var proxy = options.proxy;\n return new Promise(function (resolve, reject) {\n var responseType = _Feature__WEBPACK_IMPORTED_MODULE_0__["default"].SUPPORT_CORS_XHR && _Feature__WEBPACK_IMPORTED_MODULE_0__["default"].SUPPORT_RESPONSE_TYPE ? \'blob\' : \'text\';\n var xhr = _Feature__WEBPACK_IMPORTED_MODULE_0__["default"].SUPPORT_CORS_XHR ? new XMLHttpRequest() : new XDomainRequest();\n\n xhr.onload = function () {\n if (xhr instanceof XMLHttpRequest) {\n if (xhr.status === 200) {\n if (responseType === \'text\') {\n resolve(xhr.response);\n } else {\n var reader = new FileReader(); // $FlowFixMe\n\n reader.addEventListener(\'load\', function () {\n return resolve(reader.result);\n }, false); // $FlowFixMe\n\n reader.addEventListener(\'error\', function (e) {\n return reject(e);\n }, false);\n reader.readAsDataURL(xhr.response);\n }\n } else {\n reject( true ? "Failed to proxy resource ".concat(src.substring(0, 256), " with status code ").concat(xhr.status) : undefined);\n }\n } else {\n resolve(xhr.responseText);\n }\n };\n\n xhr.onerror = reject;\n xhr.open(\'GET\', "".concat(proxy, "?url=").concat(encodeURIComponent(src), "&responseType=").concat(responseType));\n\n if (responseType !== \'text\' && xhr instanceof XMLHttpRequest) {\n xhr.responseType = responseType;\n }\n\n if (options.imageTimeout) {\n var timeout = options.imageTimeout;\n xhr.timeout = timeout;\n\n xhr.ontimeout = function () {\n return reject( true ? "Timed out (".concat(timeout, "ms) proxying ").concat(src.substring(0, 256)) : undefined);\n };\n }\n\n xhr.send();\n });\n};\n\n//# sourceURL=webpack://html2canvas/./src/Proxy.js?')},"./src/PseudoNodeContent.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"PSEUDO_CONTENT_ITEM_TYPE\", function() { return PSEUDO_CONTENT_ITEM_TYPE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TOKEN_TYPE\", function() { return TOKEN_TYPE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseCounterReset\", function() { return parseCounterReset; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"popCounters\", function() { return popCounters; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"resolvePseudoContent\", function() { return resolvePseudoContent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseContent\", function() { return parseContent; });\n/* harmony import */ var _ListItem__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ListItem */ \"./src/ListItem.js\");\n/* harmony import */ var _parsing_listStyle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parsing/listStyle */ \"./src/parsing/listStyle.js\");\n\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\nvar PSEUDO_CONTENT_ITEM_TYPE = {\n TEXT: 0,\n IMAGE: 1\n};\nvar TOKEN_TYPE = {\n STRING: 0,\n ATTRIBUTE: 1,\n URL: 2,\n COUNTER: 3,\n COUNTERS: 4,\n OPENQUOTE: 5,\n CLOSEQUOTE: 6\n};\nvar parseCounterReset = function parseCounterReset(style, data) {\n if (!style || !style.counterReset || style.counterReset === 'none') {\n return [];\n }\n\n var counterNames = [];\n var counterResets = style.counterReset.split(/\\s*,\\s*/);\n var lenCounterResets = counterResets.length;\n\n for (var i = 0; i < lenCounterResets; i++) {\n var _counterResets$i$spli = counterResets[i].split(/\\s+/),\n _counterResets$i$spli2 = _slicedToArray(_counterResets$i$spli, 2),\n counterName = _counterResets$i$spli2[0],\n initialValue = _counterResets$i$spli2[1];\n\n counterNames.push(counterName);\n var counter = data.counters[counterName];\n\n if (!counter) {\n counter = data.counters[counterName] = [];\n }\n\n counter.push(parseInt(initialValue || 0, 10));\n }\n\n return counterNames;\n};\nvar popCounters = function popCounters(counterNames, data) {\n var lenCounters = counterNames.length;\n\n for (var i = 0; i < lenCounters; i++) {\n data.counters[counterNames[i]].pop();\n }\n};\nvar resolvePseudoContent = function resolvePseudoContent(node, style, data) {\n if (!style || !style.content || style.content === 'none' || style.content === '-moz-alt-content' || style.display === 'none') {\n return null;\n }\n\n var tokens = parseContent(style.content);\n var len = tokens.length;\n var contentItems = [];\n var s = ''; // increment the counter (if there is a \"counter-increment\" declaration)\n\n var counterIncrement = style.counterIncrement;\n\n if (counterIncrement && counterIncrement !== 'none') {\n var _counterIncrement$spl = counterIncrement.split(/\\s+/),\n _counterIncrement$spl2 = _slicedToArray(_counterIncrement$spl, 2),\n counterName = _counterIncrement$spl2[0],\n incrementValue = _counterIncrement$spl2[1];\n\n var counter = data.counters[counterName];\n\n if (counter) {\n counter[counter.length - 1] += incrementValue === undefined ? 1 : parseInt(incrementValue, 10);\n }\n } // build the content string\n\n\n for (var i = 0; i < len; i++) {\n var token = tokens[i];\n\n switch (token.type) {\n case TOKEN_TYPE.STRING:\n s += token.value || '';\n break;\n\n case TOKEN_TYPE.ATTRIBUTE:\n if (node instanceof HTMLElement && token.value) {\n s += node.getAttribute(token.value) || '';\n }\n\n break;\n\n case TOKEN_TYPE.COUNTER:\n var _counter = data.counters[token.name || ''];\n\n if (_counter) {\n s += formatCounterValue([_counter[_counter.length - 1]], '', token.format);\n }\n\n break;\n\n case TOKEN_TYPE.COUNTERS:\n var counters = data.counters[token.name || ''];\n\n if (counters) {\n s += formatCounterValue(counters, token.glue, token.format);\n }\n\n break;\n\n case TOKEN_TYPE.OPENQUOTE:\n s += getQuote(style, true, data.quoteDepth);\n data.quoteDepth++;\n break;\n\n case TOKEN_TYPE.CLOSEQUOTE:\n data.quoteDepth--;\n s += getQuote(style, false, data.quoteDepth);\n break;\n\n case TOKEN_TYPE.URL:\n if (s) {\n contentItems.push({\n type: PSEUDO_CONTENT_ITEM_TYPE.TEXT,\n value: s\n });\n s = '';\n }\n\n contentItems.push({\n type: PSEUDO_CONTENT_ITEM_TYPE.IMAGE,\n value: token.value || ''\n });\n break;\n }\n }\n\n if (s) {\n contentItems.push({\n type: PSEUDO_CONTENT_ITEM_TYPE.TEXT,\n value: s\n });\n }\n\n return contentItems;\n};\nvar parseContent = function parseContent(content, cache) {\n if (cache && cache[content]) {\n return cache[content];\n }\n\n var tokens = [];\n var len = content.length;\n var isString = false;\n var isEscaped = false;\n var isFunction = false;\n var str = '';\n var functionName = '';\n var args = [];\n\n for (var i = 0; i < len; i++) {\n var c = content.charAt(i);\n\n switch (c) {\n case \"'\":\n case '\"':\n if (isEscaped) {\n str += c;\n } else {\n isString = !isString;\n\n if (!isFunction && !isString) {\n tokens.push({\n type: TOKEN_TYPE.STRING,\n value: str\n });\n str = '';\n }\n }\n\n break;\n\n case '\\\\':\n if (isEscaped) {\n str += c;\n isEscaped = false;\n } else {\n isEscaped = true;\n }\n\n break;\n\n case '(':\n if (isString) {\n str += c;\n } else {\n isFunction = true;\n functionName = str;\n str = '';\n args = [];\n }\n\n break;\n\n case ')':\n if (isString) {\n str += c;\n } else if (isFunction) {\n if (str) {\n args.push(str);\n }\n\n switch (functionName) {\n case 'attr':\n if (args.length > 0) {\n tokens.push({\n type: TOKEN_TYPE.ATTRIBUTE,\n value: args[0]\n });\n }\n\n break;\n\n case 'counter':\n if (args.length > 0) {\n var counter = {\n type: TOKEN_TYPE.COUNTER,\n name: args[0]\n };\n\n if (args.length > 1) {\n counter.format = args[1];\n }\n\n tokens.push(counter);\n }\n\n break;\n\n case 'counters':\n if (args.length > 0) {\n var counters = {\n type: TOKEN_TYPE.COUNTERS,\n name: args[0]\n };\n\n if (args.length > 1) {\n counters.glue = args[1];\n }\n\n if (args.length > 2) {\n counters.format = args[2];\n }\n\n tokens.push(counters);\n }\n\n break;\n\n case 'url':\n if (args.length > 0) {\n tokens.push({\n type: TOKEN_TYPE.URL,\n value: args[0]\n });\n }\n\n break;\n }\n\n isFunction = false;\n str = '';\n }\n\n break;\n\n case ',':\n if (isString) {\n str += c;\n } else if (isFunction) {\n args.push(str);\n str = '';\n }\n\n break;\n\n case ' ':\n case '\\t':\n if (isString) {\n str += c;\n } else if (str) {\n addOtherToken(tokens, str);\n str = '';\n }\n\n break;\n\n default:\n str += c;\n }\n\n if (c !== '\\\\') {\n isEscaped = false;\n }\n }\n\n if (str) {\n addOtherToken(tokens, str);\n }\n\n if (cache) {\n cache[content] = tokens;\n }\n\n return tokens;\n};\n\nvar addOtherToken = function addOtherToken(tokens, identifier) {\n switch (identifier) {\n case 'open-quote':\n tokens.push({\n type: TOKEN_TYPE.OPENQUOTE\n });\n break;\n\n case 'close-quote':\n tokens.push({\n type: TOKEN_TYPE.CLOSEQUOTE\n });\n break;\n }\n};\n\nvar getQuote = function getQuote(style, isOpening, quoteDepth) {\n var quotes = style.quotes ? style.quotes.split(/\\s+/) : [\"'\\\"'\", \"'\\\"'\"];\n var idx = quoteDepth * 2;\n\n if (idx >= quotes.length) {\n idx = quotes.length - 2;\n }\n\n if (!isOpening) {\n ++idx;\n }\n\n return quotes[idx].replace(/^[\"']|[\"']$/g, '');\n};\n\nvar formatCounterValue = function formatCounterValue(counter, glue, format) {\n var len = counter.length;\n var result = '';\n\n for (var i = 0; i < len; i++) {\n if (i > 0) {\n result += glue || '';\n }\n\n result += Object(_ListItem__WEBPACK_IMPORTED_MODULE_0__[\"createCounterText\"])(counter[i], Object(_parsing_listStyle__WEBPACK_IMPORTED_MODULE_1__[\"parseListStyleType\"])(format || 'decimal'), false);\n }\n\n return result;\n};\n\n//# sourceURL=webpack://html2canvas/./src/PseudoNodeContent.js?")},"./src/Renderer.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Renderer; });\n/* harmony import */ var _Bounds__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Bounds */ "./src/Bounds.js");\n/* harmony import */ var _Font__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Font */ "./src/Font.js");\n/* harmony import */ var _Gradient__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Gradient */ "./src/Gradient.js");\n/* harmony import */ var _TextContainer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TextContainer */ "./src/TextContainer.js");\n/* harmony import */ var _parsing_background__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./parsing/background */ "./src/parsing/background.js");\n/* harmony import */ var _parsing_border__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./parsing/border */ "./src/parsing/border.js");\n\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n\n\n\n\n\n\nvar Renderer =\n/*#__PURE__*/\nfunction () {\n function Renderer(target, options) {\n _classCallCheck(this, Renderer);\n\n this.target = target;\n this.options = options;\n target.render(options);\n }\n\n _createClass(Renderer, [{\n key: "renderNode",\n value: function renderNode(container) {\n if (container.isVisible()) {\n this.renderNodeBackgroundAndBorders(container);\n this.renderNodeContent(container);\n }\n }\n }, {\n key: "renderNodeContent",\n value: function renderNodeContent(container) {\n var _this = this;\n\n var callback = function callback() {\n if (container.childNodes.length) {\n container.childNodes.forEach(function (child) {\n if (child instanceof _TextContainer__WEBPACK_IMPORTED_MODULE_3__["default"]) {\n var style = child.parent.style;\n\n _this.target.renderTextNode(child.bounds, style.color, style.font, style.textDecoration, style.textShadow);\n } else {\n _this.target.drawShape(child, container.style.color);\n }\n });\n }\n\n if (container.image) {\n var _image = _this.options.imageStore.get(container.image);\n\n if (_image) {\n var contentBox = Object(_Bounds__WEBPACK_IMPORTED_MODULE_0__["calculateContentBox"])(container.bounds, container.style.padding, container.style.border);\n\n var _width = typeof _image.width === \'number\' && _image.width > 0 ? _image.width : contentBox.width;\n\n var _height = typeof _image.height === \'number\' && _image.height > 0 ? _image.height : contentBox.height;\n\n if (_width > 0 && _height > 0) {\n _this.target.clip([Object(_Bounds__WEBPACK_IMPORTED_MODULE_0__["calculatePaddingBoxPath"])(container.curvedBounds)], function () {\n _this.target.drawImage(_image, new _Bounds__WEBPACK_IMPORTED_MODULE_0__["Bounds"](0, 0, _width, _height), contentBox);\n });\n }\n }\n }\n };\n\n var paths = container.getClipPaths();\n\n if (paths.length) {\n this.target.clip(paths, callback);\n } else {\n callback();\n }\n }\n }, {\n key: "renderNodeBackgroundAndBorders",\n value: function renderNodeBackgroundAndBorders(container) {\n var _this2 = this;\n\n var HAS_BACKGROUND = !container.style.background.backgroundColor.isTransparent() || container.style.background.backgroundImage.length;\n var hasRenderableBorders = container.style.border.some(function (border) {\n return border.borderStyle !== _parsing_border__WEBPACK_IMPORTED_MODULE_5__["BORDER_STYLE"].NONE && !border.borderColor.isTransparent();\n });\n\n var callback = function callback() {\n var backgroundPaintingArea = Object(_parsing_background__WEBPACK_IMPORTED_MODULE_4__["calculateBackgroungPaintingArea"])(container.curvedBounds, container.style.background.backgroundClip);\n\n if (HAS_BACKGROUND) {\n _this2.target.clip([backgroundPaintingArea], function () {\n if (!container.style.background.backgroundColor.isTransparent()) {\n _this2.target.fill(container.style.background.backgroundColor);\n }\n\n _this2.renderBackgroundImage(container);\n });\n }\n\n container.style.border.forEach(function (border, side) {\n if (border.borderStyle !== _parsing_border__WEBPACK_IMPORTED_MODULE_5__["BORDER_STYLE"].NONE && !border.borderColor.isTransparent()) {\n _this2.renderBorder(border, side, container.curvedBounds);\n }\n });\n };\n\n if (HAS_BACKGROUND || hasRenderableBorders) {\n var paths = container.parent ? container.parent.getClipPaths() : [];\n\n if (paths.length) {\n this.target.clip(paths, callback);\n } else {\n callback();\n }\n }\n }\n }, {\n key: "renderBackgroundImage",\n value: function renderBackgroundImage(container) {\n var _this3 = this;\n\n container.style.background.backgroundImage.slice(0).reverse().forEach(function (backgroundImage) {\n if (backgroundImage.source.method === \'url\' && backgroundImage.source.args.length) {\n _this3.renderBackgroundRepeat(container, backgroundImage);\n } else if (/gradient/i.test(backgroundImage.source.method)) {\n _this3.renderBackgroundGradient(container, backgroundImage);\n }\n });\n }\n }, {\n key: "renderBackgroundRepeat",\n value: function renderBackgroundRepeat(container, background) {\n var image = this.options.imageStore.get(background.source.args[0]);\n\n if (image) {\n var backgroundPositioningArea = Object(_parsing_background__WEBPACK_IMPORTED_MODULE_4__["calculateBackgroungPositioningArea"])(container.style.background.backgroundOrigin, container.bounds, container.style.padding, container.style.border);\n var backgroundImageSize = Object(_parsing_background__WEBPACK_IMPORTED_MODULE_4__["calculateBackgroundSize"])(background, image, backgroundPositioningArea);\n var position = Object(_parsing_background__WEBPACK_IMPORTED_MODULE_4__["calculateBackgroundPosition"])(background.position, backgroundImageSize, backgroundPositioningArea);\n\n var _path = Object(_parsing_background__WEBPACK_IMPORTED_MODULE_4__["calculateBackgroundRepeatPath"])(background, position, backgroundImageSize, backgroundPositioningArea, container.bounds);\n\n var _offsetX = Math.round(backgroundPositioningArea.left + position.x);\n\n var _offsetY = Math.round(backgroundPositioningArea.top + position.y);\n\n this.target.renderRepeat(_path, image, backgroundImageSize, _offsetX, _offsetY);\n }\n }\n }, {\n key: "renderBackgroundGradient",\n value: function renderBackgroundGradient(container, background) {\n var backgroundPositioningArea = Object(_parsing_background__WEBPACK_IMPORTED_MODULE_4__["calculateBackgroungPositioningArea"])(container.style.background.backgroundOrigin, container.bounds, container.style.padding, container.style.border);\n var backgroundImageSize = Object(_parsing_background__WEBPACK_IMPORTED_MODULE_4__["calculateGradientBackgroundSize"])(background, backgroundPositioningArea);\n var position = Object(_parsing_background__WEBPACK_IMPORTED_MODULE_4__["calculateBackgroundPosition"])(background.position, backgroundImageSize, backgroundPositioningArea);\n var gradientBounds = new _Bounds__WEBPACK_IMPORTED_MODULE_0__["Bounds"](Math.round(backgroundPositioningArea.left + position.x), Math.round(backgroundPositioningArea.top + position.y), backgroundImageSize.width, backgroundImageSize.height);\n var gradient = Object(_Gradient__WEBPACK_IMPORTED_MODULE_2__["parseGradient"])(container, background.source, gradientBounds);\n\n if (gradient) {\n switch (gradient.type) {\n case _Gradient__WEBPACK_IMPORTED_MODULE_2__["GRADIENT_TYPE"].LINEAR_GRADIENT:\n // $FlowFixMe\n this.target.renderLinearGradient(gradientBounds, gradient);\n break;\n\n case _Gradient__WEBPACK_IMPORTED_MODULE_2__["GRADIENT_TYPE"].RADIAL_GRADIENT:\n // $FlowFixMe\n this.target.renderRadialGradient(gradientBounds, gradient);\n break;\n }\n }\n }\n }, {\n key: "renderBorder",\n value: function renderBorder(border, side, curvePoints) {\n this.target.drawShape(Object(_Bounds__WEBPACK_IMPORTED_MODULE_0__["parsePathForBorder"])(curvePoints, side), border.borderColor);\n }\n }, {\n key: "renderStack",\n value: function renderStack(stack) {\n var _this4 = this;\n\n if (stack.container.isVisible()) {\n var _opacity = stack.getOpacity();\n\n if (_opacity !== this._opacity) {\n this.target.setOpacity(stack.getOpacity());\n this._opacity = _opacity;\n }\n\n var transform = stack.container.style.transform;\n\n if (transform !== null) {\n this.target.transform(stack.container.bounds.left + transform.transformOrigin[0].value, stack.container.bounds.top + transform.transformOrigin[1].value, transform.transform, function () {\n return _this4.renderStackContent(stack);\n });\n } else {\n this.renderStackContent(stack);\n }\n }\n }\n }, {\n key: "renderStackContent",\n value: function renderStackContent(stack) {\n var _splitStackingContext = splitStackingContexts(stack),\n _splitStackingContext2 = _slicedToArray(_splitStackingContext, 5),\n negativeZIndex = _splitStackingContext2[0],\n zeroOrAutoZIndexOrTransformedOrOpacity = _splitStackingContext2[1],\n positiveZIndex = _splitStackingContext2[2],\n nonPositionedFloats = _splitStackingContext2[3],\n nonPositionedInlineLevel = _splitStackingContext2[4];\n\n var _splitDescendants = splitDescendants(stack),\n _splitDescendants2 = _slicedToArray(_splitDescendants, 2),\n inlineLevel = _splitDescendants2[0],\n nonInlineLevel = _splitDescendants2[1]; // https://www.w3.org/TR/css-position-3/#painting-order\n // 1. the background and borders of the element forming the stacking context.\n\n\n this.renderNodeBackgroundAndBorders(stack.container); // 2. the child stacking contexts with negative stack levels (most negative first).\n\n negativeZIndex.sort(sortByZIndex).forEach(this.renderStack, this); // 3. For all its in-flow, non-positioned, block-level descendants in tree order:\n\n this.renderNodeContent(stack.container);\n nonInlineLevel.forEach(this.renderNode, this); // 4. All non-positioned floating descendants, in tree order. For each one of these,\n // treat the element as if it created a new stacking context, but any positioned descendants and descendants\n // which actually create a new stacking context should be considered part of the parent stacking context,\n // not this new one.\n\n nonPositionedFloats.forEach(this.renderStack, this); // 5. the in-flow, inline-level, non-positioned descendants, including inline tables and inline blocks.\n\n nonPositionedInlineLevel.forEach(this.renderStack, this);\n inlineLevel.forEach(this.renderNode, this); // 6. All positioned, opacity or transform descendants, in tree order that fall into the following categories:\n // All positioned descendants with \'z-index: auto\' or \'z-index: 0\', in tree order.\n // For those with \'z-index: auto\', treat the element as if it created a new stacking context,\n // but any positioned descendants and descendants which actually create a new stacking context should be\n // considered part of the parent stacking context, not this new one. For those with \'z-index: 0\',\n // treat the stacking context generated atomically.\n //\n // All opacity descendants with opacity less than 1\n //\n // All transform descendants with transform other than none\n\n zeroOrAutoZIndexOrTransformedOrOpacity.forEach(this.renderStack, this); // 7. Stacking contexts formed by positioned descendants with z-indices greater than or equal to 1 in z-index\n // order (smallest first) then tree order.\n\n positiveZIndex.sort(sortByZIndex).forEach(this.renderStack, this);\n }\n }, {\n key: "render",\n value: function render(stack) {\n var _this5 = this;\n\n if (this.options.backgroundColor) {\n this.target.rectangle(this.options.x, this.options.y, this.options.width, this.options.height, this.options.backgroundColor);\n }\n\n this.renderStack(stack);\n var target = this.target.getTarget();\n\n if (true) {\n return target.then(function (output) {\n _this5.options.logger.log("Render completed");\n\n return output;\n });\n }\n\n return target;\n }\n }]);\n\n return Renderer;\n}();\n\n\n\nvar splitDescendants = function splitDescendants(stack) {\n var inlineLevel = [];\n var nonInlineLevel = [];\n var length = stack.children.length;\n\n for (var i = 0; i < length; i++) {\n var child = stack.children[i];\n\n if (child.isInlineLevel()) {\n inlineLevel.push(child);\n } else {\n nonInlineLevel.push(child);\n }\n }\n\n return [inlineLevel, nonInlineLevel];\n};\n\nvar splitStackingContexts = function splitStackingContexts(stack) {\n var negativeZIndex = [];\n var zeroOrAutoZIndexOrTransformedOrOpacity = [];\n var positiveZIndex = [];\n var nonPositionedFloats = [];\n var nonPositionedInlineLevel = [];\n var length = stack.contexts.length;\n\n for (var i = 0; i < length; i++) {\n var child = stack.contexts[i];\n\n if (child.container.isPositioned() || child.container.style.opacity < 1 || child.container.isTransformed()) {\n if (child.container.style.zIndex.order < 0) {\n negativeZIndex.push(child);\n } else if (child.container.style.zIndex.order > 0) {\n positiveZIndex.push(child);\n } else {\n zeroOrAutoZIndexOrTransformedOrOpacity.push(child);\n }\n } else {\n if (child.container.isFloating()) {\n nonPositionedFloats.push(child);\n } else {\n nonPositionedInlineLevel.push(child);\n }\n }\n }\n\n return [negativeZIndex, zeroOrAutoZIndexOrTransformedOrOpacity, positiveZIndex, nonPositionedFloats, nonPositionedInlineLevel];\n};\n\nvar sortByZIndex = function sortByZIndex(a, b) {\n if (a.container.style.zIndex.order > b.container.style.zIndex.order) {\n return 1;\n } else if (a.container.style.zIndex.order < b.container.style.zIndex.order) {\n return -1;\n }\n\n return a.container.index > b.container.index ? 1 : -1;\n};\n\n//# sourceURL=webpack://html2canvas/./src/Renderer.js?')},"./src/ResourceLoader.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ResourceLoader; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResourceStore", function() { return ResourceStore; });\n/* harmony import */ var _Feature__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Feature */ "./src/Feature.js");\n/* harmony import */ var _Proxy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Proxy */ "./src/Proxy.js");\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n\n\nvar ResourceLoader =\n/*#__PURE__*/\nfunction () {\n function ResourceLoader(options, logger, window) {\n _classCallCheck(this, ResourceLoader);\n\n this.options = options;\n this._window = window;\n this.origin = this.getOrigin(window.location.href);\n this.cache = {};\n this.logger = logger;\n this._index = 0;\n }\n\n _createClass(ResourceLoader, [{\n key: "loadImage",\n value: function loadImage(src) {\n var _this = this;\n\n if (this.hasResourceInCache(src)) {\n return src;\n }\n\n if (isBlobImage(src)) {\n this.cache[src] = _loadImage(src, this.options.imageTimeout || 0);\n return src;\n }\n\n if (!isSVG(src) || _Feature__WEBPACK_IMPORTED_MODULE_0__["default"].SUPPORT_SVG_DRAWING) {\n if (this.options.allowTaint === true || isInlineImage(src) || this.isSameOrigin(src)) {\n return this.addImage(src, src, false);\n } else if (!this.isSameOrigin(src)) {\n if (typeof this.options.proxy === \'string\') {\n this.cache[src] = Object(_Proxy__WEBPACK_IMPORTED_MODULE_1__["Proxy"])(src, this.options).then(function (src) {\n return _loadImage(src, _this.options.imageTimeout || 0);\n });\n return src;\n } else if (this.options.useCORS === true && _Feature__WEBPACK_IMPORTED_MODULE_0__["default"].SUPPORT_CORS_IMAGES) {\n return this.addImage(src, src, true);\n }\n }\n }\n }\n }, {\n key: "inlineImage",\n value: function inlineImage(src) {\n var _this2 = this;\n\n if (isInlineImage(src)) {\n return _loadImage(src, this.options.imageTimeout || 0);\n }\n\n if (this.hasResourceInCache(src)) {\n return this.cache[src];\n }\n\n if (!this.isSameOrigin(src) && typeof this.options.proxy === \'string\') {\n return this.cache[src] = Object(_Proxy__WEBPACK_IMPORTED_MODULE_1__["Proxy"])(src, this.options).then(function (src) {\n return _loadImage(src, _this2.options.imageTimeout || 0);\n });\n }\n\n return this.xhrImage(src);\n }\n }, {\n key: "xhrImage",\n value: function xhrImage(src) {\n var _this3 = this;\n\n this.cache[src] = new Promise(function (resolve, reject) {\n var xhr = new XMLHttpRequest();\n\n xhr.onreadystatechange = function () {\n if (xhr.readyState === 4) {\n if (xhr.status !== 200) {\n reject("Failed to fetch image ".concat(src.substring(0, 256), " with status code ").concat(xhr.status));\n } else {\n var reader = new FileReader();\n reader.addEventListener(\'load\', function () {\n // $FlowFixMe\n var result = reader.result;\n resolve(result);\n }, false);\n reader.addEventListener(\'error\', function (e) {\n return reject(e);\n }, false);\n reader.readAsDataURL(xhr.response);\n }\n }\n };\n\n xhr.responseType = \'blob\';\n\n if (_this3.options.imageTimeout) {\n var timeout = _this3.options.imageTimeout;\n xhr.timeout = timeout;\n\n xhr.ontimeout = function () {\n return reject( true ? "Timed out (".concat(timeout, "ms) fetching ").concat(src.substring(0, 256)) : undefined);\n };\n }\n\n xhr.open(\'GET\', src, true);\n xhr.send();\n }).then(function (src) {\n return _loadImage(src, _this3.options.imageTimeout || 0);\n });\n return this.cache[src];\n }\n }, {\n key: "loadCanvas",\n value: function loadCanvas(node) {\n var key = String(this._index++);\n this.cache[key] = Promise.resolve(node);\n return key;\n }\n }, {\n key: "hasResourceInCache",\n value: function hasResourceInCache(key) {\n return typeof this.cache[key] !== \'undefined\';\n }\n }, {\n key: "addImage",\n value: function addImage(key, src, useCORS) {\n var _this4 = this;\n\n if (true) {\n this.logger.log("Added image ".concat(key.substring(0, 256)));\n }\n\n var imageLoadHandler = function imageLoadHandler(supportsDataImages) {\n return new Promise(function (resolve, reject) {\n var img = new Image();\n\n img.onload = function () {\n return resolve(img);\n }; //ios safari 10.3 taints canvas with data urls unless crossOrigin is set to anonymous\n\n\n if (!supportsDataImages || useCORS) {\n img.crossOrigin = \'anonymous\';\n }\n\n img.onerror = reject;\n img.src = src;\n\n if (img.complete === true) {\n // Inline XML images may fail to parse, throwing an Error later on\n setTimeout(function () {\n resolve(img);\n }, 500);\n }\n\n if (_this4.options.imageTimeout) {\n var timeout = _this4.options.imageTimeout;\n setTimeout(function () {\n return reject( true ? "Timed out (".concat(timeout, "ms) fetching ").concat(src.substring(0, 256)) : undefined);\n }, timeout);\n }\n });\n };\n\n this.cache[key] = isInlineBase64Image(src) && !isSVG(src) ? // $FlowFixMe\n _Feature__WEBPACK_IMPORTED_MODULE_0__["default"].SUPPORT_BASE64_DRAWING(src).then(imageLoadHandler) : imageLoadHandler(true);\n return key;\n }\n }, {\n key: "isSameOrigin",\n value: function isSameOrigin(url) {\n return this.getOrigin(url) === this.origin;\n }\n }, {\n key: "getOrigin",\n value: function getOrigin(url) {\n var link = this._link || (this._link = this._window.document.createElement(\'a\'));\n\n link.href = url;\n link.href = link.href; // IE9, LOL! - http://jsfiddle.net/niklasvh/2e48b/\n\n return link.protocol + link.hostname + link.port;\n }\n }, {\n key: "ready",\n value: function ready() {\n var _this5 = this;\n\n var keys = Object.keys(this.cache);\n var values = keys.map(function (str) {\n return _this5.cache[str].catch(function (e) {\n if (true) {\n _this5.logger.log("Unable to load image", e);\n }\n\n return null;\n });\n });\n return Promise.all(values).then(function (images) {\n if (true) {\n _this5.logger.log("Finished loading ".concat(images.length, " images"), images);\n }\n\n return new ResourceStore(keys, images);\n });\n }\n }]);\n\n return ResourceLoader;\n}();\n\n\nvar ResourceStore =\n/*#__PURE__*/\nfunction () {\n function ResourceStore(keys, resources) {\n _classCallCheck(this, ResourceStore);\n\n this._keys = keys;\n this._resources = resources;\n }\n\n _createClass(ResourceStore, [{\n key: "get",\n value: function get(key) {\n var index = this._keys.indexOf(key);\n\n return index === -1 ? null : this._resources[index];\n }\n }]);\n\n return ResourceStore;\n}();\nvar INLINE_SVG = /^data:image\\/svg\\+xml/i;\nvar INLINE_BASE64 = /^data:image\\/.*;base64,/i;\nvar INLINE_IMG = /^data:image\\/.*/i;\n\nvar isInlineImage = function isInlineImage(src) {\n return INLINE_IMG.test(src);\n};\n\nvar isInlineBase64Image = function isInlineBase64Image(src) {\n return INLINE_BASE64.test(src);\n};\n\nvar isBlobImage = function isBlobImage(src) {\n return src.substr(0, 4) === \'blob\';\n};\n\nvar isSVG = function isSVG(src) {\n return src.substr(-3).toLowerCase() === \'svg\' || INLINE_SVG.test(src);\n};\n\nvar _loadImage = function _loadImage(src, timeout) {\n return new Promise(function (resolve, reject) {\n var img = new Image();\n\n img.onload = function () {\n return resolve(img);\n };\n\n img.onerror = reject;\n img.src = src;\n\n if (img.complete === true) {\n // Inline XML images may fail to parse, throwing an Error later on\n setTimeout(function () {\n resolve(img);\n }, 500);\n }\n\n if (timeout) {\n setTimeout(function () {\n return reject( true ? "Timed out (".concat(timeout, "ms) loading image") : undefined);\n }, timeout);\n }\n });\n};\n\n//# sourceURL=webpack://html2canvas/./src/ResourceLoader.js?')},"./src/StackingContext.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return StackingContext; });\n/* harmony import */ var _NodeContainer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./NodeContainer */ "./src/NodeContainer.js");\n/* harmony import */ var _parsing_position__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parsing/position */ "./src/parsing/position.js");\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n\n\nvar StackingContext =\n/*#__PURE__*/\nfunction () {\n function StackingContext(container, parent, treatAsRealStackingContext) {\n _classCallCheck(this, StackingContext);\n\n this.container = container;\n this.parent = parent;\n this.contexts = [];\n this.children = [];\n this.treatAsRealStackingContext = treatAsRealStackingContext;\n }\n\n _createClass(StackingContext, [{\n key: "getOpacity",\n value: function getOpacity() {\n return this.parent ? this.container.style.opacity * this.parent.getOpacity() : this.container.style.opacity;\n }\n }, {\n key: "getRealParentStackingContext",\n value: function getRealParentStackingContext() {\n return !this.parent || this.treatAsRealStackingContext ? this : this.parent.getRealParentStackingContext();\n }\n }]);\n\n return StackingContext;\n}();\n\n\n\n//# sourceURL=webpack://html2canvas/./src/StackingContext.js?')},"./src/TextBounds.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextBounds", function() { return TextBounds; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseTextBounds", function() { return parseTextBounds; });\n/* harmony import */ var _Bounds__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Bounds */ "./src/Bounds.js");\n/* harmony import */ var _parsing_textDecoration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parsing/textDecoration */ "./src/parsing/textDecoration.js");\n/* harmony import */ var _Feature__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Feature */ "./src/Feature.js");\n/* harmony import */ var _Unicode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Unicode */ "./src/Unicode.js");\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\n\n\n\n\nvar TextBounds = function TextBounds(text, bounds) {\n _classCallCheck(this, TextBounds);\n\n this.text = text;\n this.bounds = bounds;\n};\nvar parseTextBounds = function parseTextBounds(value, parent, node) {\n var letterRendering = parent.style.letterSpacing !== 0;\n var textList = letterRendering ? Object(_Unicode__WEBPACK_IMPORTED_MODULE_3__["toCodePoints"])(value).map(function (i) {\n return Object(_Unicode__WEBPACK_IMPORTED_MODULE_3__["fromCodePoint"])(i);\n }) : Object(_Unicode__WEBPACK_IMPORTED_MODULE_3__["breakWords"])(value, parent);\n var length = textList.length;\n var defaultView = node.parentNode ? node.parentNode.ownerDocument.defaultView : null;\n var scrollX = defaultView ? defaultView.pageXOffset : 0;\n var scrollY = defaultView ? defaultView.pageYOffset : 0;\n var textBounds = [];\n var offset = 0;\n\n for (var i = 0; i < length; i++) {\n var text = textList[i];\n\n if (parent.style.textDecoration !== _parsing_textDecoration__WEBPACK_IMPORTED_MODULE_1__["TEXT_DECORATION"].NONE || text.trim().length > 0) {\n if (_Feature__WEBPACK_IMPORTED_MODULE_2__["default"].SUPPORT_RANGE_BOUNDS) {\n textBounds.push(new TextBounds(text, getRangeBounds(node, offset, text.length, scrollX, scrollY)));\n } else {\n var replacementNode = node.splitText(text.length);\n textBounds.push(new TextBounds(text, getWrapperBounds(node, scrollX, scrollY)));\n node = replacementNode;\n }\n } else if (!_Feature__WEBPACK_IMPORTED_MODULE_2__["default"].SUPPORT_RANGE_BOUNDS) {\n node = node.splitText(text.length);\n }\n\n offset += text.length;\n }\n\n return textBounds;\n};\n\nvar getWrapperBounds = function getWrapperBounds(node, scrollX, scrollY) {\n var wrapper = node.ownerDocument.createElement(\'html2canvaswrapper\');\n wrapper.appendChild(node.cloneNode(true));\n var parentNode = node.parentNode;\n\n if (parentNode) {\n parentNode.replaceChild(wrapper, node);\n var bounds = Object(_Bounds__WEBPACK_IMPORTED_MODULE_0__["parseBounds"])(wrapper, scrollX, scrollY);\n\n if (wrapper.firstChild) {\n parentNode.replaceChild(wrapper.firstChild, wrapper);\n }\n\n return bounds;\n }\n\n return new _Bounds__WEBPACK_IMPORTED_MODULE_0__["Bounds"](0, 0, 0, 0);\n};\n\nvar getRangeBounds = function getRangeBounds(node, offset, length, scrollX, scrollY) {\n var range = node.ownerDocument.createRange();\n range.setStart(node, offset);\n range.setEnd(node, offset + length);\n return _Bounds__WEBPACK_IMPORTED_MODULE_0__["Bounds"].fromClientRect(range.getBoundingClientRect(), scrollX, scrollY);\n};\n\n//# sourceURL=webpack://html2canvas/./src/TextBounds.js?')},"./src/TextContainer.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return TextContainer; });\n/* harmony import */ var _parsing_textTransform__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./parsing/textTransform */ "./src/parsing/textTransform.js");\n/* harmony import */ var _TextBounds__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TextBounds */ "./src/TextBounds.js");\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n\n\nvar TextContainer =\n/*#__PURE__*/\nfunction () {\n function TextContainer(text, parent, bounds) {\n _classCallCheck(this, TextContainer);\n\n this.text = text;\n this.parent = parent;\n this.bounds = bounds;\n }\n\n _createClass(TextContainer, null, [{\n key: "fromTextNode",\n value: function fromTextNode(node, parent) {\n var text = transform(node.data, parent.style.textTransform);\n return new TextContainer(text, parent, Object(_TextBounds__WEBPACK_IMPORTED_MODULE_1__["parseTextBounds"])(text, parent, node));\n }\n }]);\n\n return TextContainer;\n}();\n\n\nvar CAPITALIZE = /(^|\\s|:|-|\\(|\\))([a-z])/g;\n\nvar transform = function transform(text, _transform) {\n switch (_transform) {\n case _parsing_textTransform__WEBPACK_IMPORTED_MODULE_0__["TEXT_TRANSFORM"].LOWERCASE:\n return text.toLowerCase();\n\n case _parsing_textTransform__WEBPACK_IMPORTED_MODULE_0__["TEXT_TRANSFORM"].CAPITALIZE:\n return text.replace(CAPITALIZE, capitalize);\n\n case _parsing_textTransform__WEBPACK_IMPORTED_MODULE_0__["TEXT_TRANSFORM"].UPPERCASE:\n return text.toUpperCase();\n\n default:\n return text;\n }\n};\n\nfunction capitalize(m, p1, p2) {\n if (m.length > 0) {\n return p1 + p2.toUpperCase();\n }\n\n return m;\n}\n\n//# sourceURL=webpack://html2canvas/./src/TextContainer.js?')},"./src/Unicode.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "breakWords", function() { return breakWords; });\n/* harmony import */ var css_line_break__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! css-line-break */ "./node_modules/css-line-break/dist/index.js");\n/* harmony import */ var css_line_break__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(css_line_break__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _parsing_overflowWrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parsing/overflowWrap */ "./src/parsing/overflowWrap.js");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "toCodePoints", function() { return css_line_break__WEBPACK_IMPORTED_MODULE_0__["toCodePoints"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "fromCodePoint", function() { return css_line_break__WEBPACK_IMPORTED_MODULE_0__["fromCodePoint"]; });\n\n\n\n\n\n\nvar breakWords = function breakWords(str, parent) {\n var breaker = Object(css_line_break__WEBPACK_IMPORTED_MODULE_0__["LineBreaker"])(str, {\n lineBreak: parent.style.lineBreak,\n wordBreak: parent.style.overflowWrap === _parsing_overflowWrap__WEBPACK_IMPORTED_MODULE_1__["OVERFLOW_WRAP"].BREAK_WORD ? \'break-word\' : parent.style.wordBreak\n });\n var words = [];\n var bk;\n\n while (!(bk = breaker.next()).done) {\n words.push(bk.value.slice());\n }\n\n return words;\n};\n\n//# sourceURL=webpack://html2canvas/./src/Unicode.js?')},"./src/Util.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "contains", function() { return contains; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "distance", function() { return distance; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copyCSSStyles", function() { return copyCSSStyles; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SMALL_IMAGE", function() { return SMALL_IMAGE; });\n\n\nvar contains = function contains(bit, value) {\n return (bit & value) !== 0;\n};\nvar distance = function distance(a, b) {\n return Math.sqrt(a * a + b * b);\n};\nvar copyCSSStyles = function copyCSSStyles(style, target) {\n // Edge does not provide value for cssText\n for (var i = style.length - 1; i >= 0; i--) {\n var property = style.item(i); // Safari shows pseudoelements if content is set\n\n if (property !== \'content\') {\n target.style.setProperty(property, style.getPropertyValue(property));\n }\n }\n\n return target;\n};\nvar SMALL_IMAGE = \'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\';\n\n//# sourceURL=webpack://html2canvas/./src/Util.js?')},"./src/Window.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "renderElement", function() { return renderElement; });\n/* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Logger */ "./src/Logger.js");\n/* harmony import */ var _NodeParser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NodeParser */ "./src/NodeParser.js");\n/* harmony import */ var _Renderer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Renderer */ "./src/Renderer.js");\n/* harmony import */ var _renderer_ForeignObjectRenderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./renderer/ForeignObjectRenderer */ "./src/renderer/ForeignObjectRenderer.js");\n/* harmony import */ var _Feature__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Feature */ "./src/Feature.js");\n/* harmony import */ var _Bounds__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Bounds */ "./src/Bounds.js");\n/* harmony import */ var _Clone__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Clone */ "./src/Clone.js");\n/* harmony import */ var _Font__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Font */ "./src/Font.js");\n/* harmony import */ var _Color__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Color */ "./src/Color.js");\n\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\n\n\n\nvar renderElement = function renderElement(element, options, logger) {\n var ownerDocument = element.ownerDocument;\n var windowBounds = new _Bounds__WEBPACK_IMPORTED_MODULE_5__["Bounds"](options.scrollX, options.scrollY, options.windowWidth, options.windowHeight); // http://www.w3.org/TR/css3-background/#special-backgrounds\n\n var documentBackgroundColor = ownerDocument.documentElement ? new _Color__WEBPACK_IMPORTED_MODULE_8__["default"](getComputedStyle(ownerDocument.documentElement).backgroundColor) : _Color__WEBPACK_IMPORTED_MODULE_8__["TRANSPARENT"];\n var bodyBackgroundColor = ownerDocument.body ? new _Color__WEBPACK_IMPORTED_MODULE_8__["default"](getComputedStyle(ownerDocument.body).backgroundColor) : _Color__WEBPACK_IMPORTED_MODULE_8__["TRANSPARENT"];\n var backgroundColor = element === ownerDocument.documentElement ? documentBackgroundColor.isTransparent() ? bodyBackgroundColor.isTransparent() ? options.backgroundColor ? new _Color__WEBPACK_IMPORTED_MODULE_8__["default"](options.backgroundColor) : null : bodyBackgroundColor : documentBackgroundColor : options.backgroundColor ? new _Color__WEBPACK_IMPORTED_MODULE_8__["default"](options.backgroundColor) : null;\n return (options.foreignObjectRendering ? // $FlowFixMe\n _Feature__WEBPACK_IMPORTED_MODULE_4__["default"].SUPPORT_FOREIGNOBJECT_DRAWING : Promise.resolve(false)).then(function (supportForeignObject) {\n return supportForeignObject ? function (cloner) {\n if (true) {\n logger.log("Document cloned, using foreignObject rendering");\n }\n\n return cloner.inlineFonts(ownerDocument).then(function () {\n return cloner.resourceLoader.ready();\n }).then(function () {\n var renderer = new _renderer_ForeignObjectRenderer__WEBPACK_IMPORTED_MODULE_3__["default"](cloner.documentElement);\n var defaultView = ownerDocument.defaultView;\n var scrollX = defaultView.pageXOffset;\n var scrollY = defaultView.pageYOffset;\n var isDocument = element.tagName === \'HTML\' || element.tagName === \'BODY\';\n\n var _ref = isDocument ? Object(_Bounds__WEBPACK_IMPORTED_MODULE_5__["parseDocumentSize"])(ownerDocument) : Object(_Bounds__WEBPACK_IMPORTED_MODULE_5__["parseBounds"])(element, scrollX, scrollY),\n width = _ref.width,\n height = _ref.height,\n left = _ref.left,\n top = _ref.top;\n\n return renderer.render({\n backgroundColor: backgroundColor,\n logger: logger,\n scale: options.scale,\n x: typeof options.x === \'number\' ? options.x : left,\n y: typeof options.y === \'number\' ? options.y : top,\n width: typeof options.width === \'number\' ? options.width : Math.ceil(width),\n height: typeof options.height === \'number\' ? options.height : Math.ceil(height),\n windowWidth: options.windowWidth,\n windowHeight: options.windowHeight,\n scrollX: options.scrollX,\n scrollY: options.scrollY\n });\n });\n }(new _Clone__WEBPACK_IMPORTED_MODULE_6__["DocumentCloner"](element, options, logger, true, renderElement)) : Object(_Clone__WEBPACK_IMPORTED_MODULE_6__["cloneWindow"])(ownerDocument, windowBounds, element, options, logger, renderElement).then(function (_ref2) {\n var _ref3 = _slicedToArray(_ref2, 3),\n container = _ref3[0],\n clonedElement = _ref3[1],\n resourceLoader = _ref3[2];\n\n if (true) {\n logger.log("Document cloned, using computed rendering");\n }\n\n var stack = Object(_NodeParser__WEBPACK_IMPORTED_MODULE_1__["NodeParser"])(clonedElement, resourceLoader, logger);\n var clonedDocument = clonedElement.ownerDocument;\n\n if (backgroundColor === stack.container.style.background.backgroundColor) {\n stack.container.style.background.backgroundColor = _Color__WEBPACK_IMPORTED_MODULE_8__["TRANSPARENT"];\n }\n\n return resourceLoader.ready().then(function (imageStore) {\n var fontMetrics = new _Font__WEBPACK_IMPORTED_MODULE_7__["FontMetrics"](clonedDocument);\n\n if (true) {\n logger.log("Starting renderer");\n }\n\n var defaultView = clonedDocument.defaultView;\n var scrollX = defaultView.pageXOffset;\n var scrollY = defaultView.pageYOffset;\n var isDocument = clonedElement.tagName === \'HTML\' || clonedElement.tagName === \'BODY\';\n\n var _ref4 = isDocument ? Object(_Bounds__WEBPACK_IMPORTED_MODULE_5__["parseDocumentSize"])(ownerDocument) : Object(_Bounds__WEBPACK_IMPORTED_MODULE_5__["parseBounds"])(clonedElement, scrollX, scrollY),\n width = _ref4.width,\n height = _ref4.height,\n left = _ref4.left,\n top = _ref4.top;\n\n var renderOptions = {\n backgroundColor: backgroundColor,\n fontMetrics: fontMetrics,\n imageStore: imageStore,\n logger: logger,\n scale: options.scale,\n x: typeof options.x === \'number\' ? options.x : left,\n y: typeof options.y === \'number\' ? options.y : top,\n width: typeof options.width === \'number\' ? options.width : Math.ceil(width),\n height: typeof options.height === \'number\' ? options.height : Math.ceil(height)\n };\n\n if (Array.isArray(options.target)) {\n return Promise.all(options.target.map(function (target) {\n var renderer = new _Renderer__WEBPACK_IMPORTED_MODULE_2__["default"](target, renderOptions);\n return renderer.render(stack);\n }));\n } else {\n var renderer = new _Renderer__WEBPACK_IMPORTED_MODULE_2__["default"](options.target, renderOptions);\n var canvas = renderer.render(stack);\n\n if (options.removeContainer === true) {\n if (container.parentNode) {\n container.parentNode.removeChild(container);\n } else if (true) {\n logger.log("Cannot detach cloned iframe as it is not in the DOM anymore");\n }\n }\n\n return canvas;\n }\n });\n });\n });\n};\n\n//# sourceURL=webpack://html2canvas/./src/Window.js?')},"./src/drawing/BezierCurve.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return BezierCurve; });\n/* harmony import */ var _Path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Path */ "./src/drawing/Path.js");\n/* harmony import */ var _Vector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Vector */ "./src/drawing/Vector.js");\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n\n\nvar lerp = function lerp(a, b, t) {\n return new _Vector__WEBPACK_IMPORTED_MODULE_1__["default"](a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t);\n};\n\nvar BezierCurve =\n/*#__PURE__*/\nfunction () {\n function BezierCurve(start, startControl, endControl, end) {\n _classCallCheck(this, BezierCurve);\n\n this.type = _Path__WEBPACK_IMPORTED_MODULE_0__["PATH"].BEZIER_CURVE;\n this.start = start;\n this.startControl = startControl;\n this.endControl = endControl;\n this.end = end;\n }\n\n _createClass(BezierCurve, [{\n key: "subdivide",\n value: function subdivide(t, firstHalf) {\n var ab = lerp(this.start, this.startControl, t);\n var bc = lerp(this.startControl, this.endControl, t);\n var cd = lerp(this.endControl, this.end, t);\n var abbc = lerp(ab, bc, t);\n var bccd = lerp(bc, cd, t);\n var dest = lerp(abbc, bccd, t);\n return firstHalf ? new BezierCurve(this.start, ab, abbc, dest) : new BezierCurve(dest, bccd, cd, this.end);\n }\n }, {\n key: "reverse",\n value: function reverse() {\n return new BezierCurve(this.end, this.endControl, this.startControl, this.start);\n }\n }]);\n\n return BezierCurve;\n}();\n\n\n\n//# sourceURL=webpack://html2canvas/./src/drawing/BezierCurve.js?')},"./src/drawing/Circle.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Circle; });\n/* harmony import */ var _Path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Path */ "./src/drawing/Path.js");\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\n\n\nvar Circle = function Circle(x, y, radius) {\n _classCallCheck(this, Circle);\n\n this.type = _Path__WEBPACK_IMPORTED_MODULE_0__["PATH"].CIRCLE;\n this.x = x;\n this.y = y;\n this.radius = radius;\n\n if (true) {\n if (isNaN(x)) {\n console.error("Invalid x value given for Circle");\n }\n\n if (isNaN(y)) {\n console.error("Invalid y value given for Circle");\n }\n\n if (isNaN(radius)) {\n console.error("Invalid radius value given for Circle");\n }\n }\n};\n\n\n\n//# sourceURL=webpack://html2canvas/./src/drawing/Circle.js?')},"./src/drawing/Path.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PATH", function() { return PATH; });\n\n\nvar PATH = {\n VECTOR: 0,\n BEZIER_CURVE: 1,\n CIRCLE: 2\n};\n\n//# sourceURL=webpack://html2canvas/./src/drawing/Path.js?')},"./src/drawing/Size.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Size; });\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nvar Size = function Size(width, height) {\n _classCallCheck(this, Size);\n\n this.width = width;\n this.height = height;\n};\n\n\n\n//# sourceURL=webpack://html2canvas/./src/drawing/Size.js?')},"./src/drawing/Vector.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Vector; });\n/* harmony import */ var _Path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Path */ "./src/drawing/Path.js");\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\n\n\nvar Vector = function Vector(x, y) {\n _classCallCheck(this, Vector);\n\n this.type = _Path__WEBPACK_IMPORTED_MODULE_0__["PATH"].VECTOR;\n this.x = x;\n this.y = y;\n\n if (true) {\n if (isNaN(x)) {\n console.error("Invalid x value given for Vector");\n }\n\n if (isNaN(y)) {\n console.error("Invalid y value given for Vector");\n }\n }\n};\n\n\n\n//# sourceURL=webpack://html2canvas/./src/drawing/Vector.js?')},"./src/index.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _renderer_CanvasRenderer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./renderer/CanvasRenderer */ "./src/renderer/CanvasRenderer.js");\n/* harmony import */ var _Logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Logger */ "./src/Logger.js");\n/* harmony import */ var _Window__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Window */ "./src/Window.js");\n\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === \'function\') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\n\nvar html2canvas = function html2canvas(element, conf) {\n var config = conf || {};\n var logger = new _Logger__WEBPACK_IMPORTED_MODULE_1__["default"](typeof config.logging === \'boolean\' ? config.logging : true);\n logger.log("html2canvas ".concat("1.0.0-rc.0"));\n\n if ( true && typeof config.onrendered === \'function\') {\n logger.error("onrendered option is deprecated, html2canvas returns a Promise with the canvas as the value");\n }\n\n var ownerDocument = element.ownerDocument;\n\n if (!ownerDocument) {\n return Promise.reject("Provided element is not within a Document");\n }\n\n var defaultView = ownerDocument.defaultView;\n var defaultOptions = {\n async: true,\n allowTaint: false,\n backgroundColor: \'#ffffff\',\n imageTimeout: 15000,\n logging: true,\n proxy: null,\n removeContainer: true,\n foreignObjectRendering: false,\n scale: defaultView.devicePixelRatio || 1,\n target: new _renderer_CanvasRenderer__WEBPACK_IMPORTED_MODULE_0__["default"](config.canvas),\n useCORS: false,\n windowWidth: defaultView.innerWidth,\n windowHeight: defaultView.innerHeight,\n scrollX: defaultView.pageXOffset,\n scrollY: defaultView.pageYOffset\n };\n var result = Object(_Window__WEBPACK_IMPORTED_MODULE_2__["renderElement"])(element, _objectSpread({}, defaultOptions, config), logger);\n\n if (true) {\n return result.catch(function (e) {\n logger.error(e);\n throw e;\n });\n }\n\n return result;\n};\n\nhtml2canvas.CanvasRenderer = _renderer_CanvasRenderer__WEBPACK_IMPORTED_MODULE_0__["default"];\n/* harmony default export */ __webpack_exports__["default"] = (html2canvas);\n\n//# sourceURL=webpack://html2canvas/./src/index.js?')},"./src/parsing/background.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BACKGROUND_REPEAT", function() { return BACKGROUND_REPEAT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BACKGROUND_SIZE", function() { return BACKGROUND_SIZE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BACKGROUND_CLIP", function() { return BACKGROUND_CLIP; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BACKGROUND_ORIGIN", function() { return BACKGROUND_ORIGIN; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateBackgroundSize", function() { return calculateBackgroundSize; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateGradientBackgroundSize", function() { return calculateGradientBackgroundSize; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateBackgroungPaintingArea", function() { return calculateBackgroungPaintingArea; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateBackgroungPositioningArea", function() { return calculateBackgroungPositioningArea; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateBackgroundPosition", function() { return calculateBackgroundPosition; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateBackgroundRepeatPath", function() { return calculateBackgroundRepeatPath; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseBackground", function() { return parseBackground; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseBackgroundImage", function() { return parseBackgroundImage; });\n/* harmony import */ var _Color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Color */ "./src/Color.js");\n/* harmony import */ var _Length__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Length */ "./src/Length.js");\n/* harmony import */ var _drawing_Size__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../drawing/Size */ "./src/drawing/Size.js");\n/* harmony import */ var _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../drawing/Vector */ "./src/drawing/Vector.js");\n/* harmony import */ var _Bounds__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Bounds */ "./src/Bounds.js");\n/* harmony import */ var _padding__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./padding */ "./src/parsing/padding.js");\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\n\n\n\n\n\n\nvar BACKGROUND_REPEAT = {\n REPEAT: 0,\n NO_REPEAT: 1,\n REPEAT_X: 2,\n REPEAT_Y: 3\n};\nvar BACKGROUND_SIZE = {\n AUTO: 0,\n CONTAIN: 1,\n COVER: 2,\n LENGTH: 3\n};\nvar BACKGROUND_CLIP = {\n BORDER_BOX: 0,\n PADDING_BOX: 1,\n CONTENT_BOX: 2\n};\nvar BACKGROUND_ORIGIN = BACKGROUND_CLIP;\nvar AUTO = \'auto\';\n\nvar BackgroundSize = function BackgroundSize(size) {\n _classCallCheck(this, BackgroundSize);\n\n switch (size) {\n case \'contain\':\n this.size = BACKGROUND_SIZE.CONTAIN;\n break;\n\n case \'cover\':\n this.size = BACKGROUND_SIZE.COVER;\n break;\n\n case \'auto\':\n this.size = BACKGROUND_SIZE.AUTO;\n break;\n\n default:\n this.value = new _Length__WEBPACK_IMPORTED_MODULE_1__["default"](size);\n }\n};\n\nvar calculateBackgroundSize = function calculateBackgroundSize(backgroundImage, image, bounds) {\n var width = 0;\n var height = 0;\n var size = backgroundImage.size;\n\n if (size[0].size === BACKGROUND_SIZE.CONTAIN || size[0].size === BACKGROUND_SIZE.COVER) {\n var targetRatio = bounds.width / bounds.height;\n var currentRatio = image.width / image.height;\n return targetRatio < currentRatio !== (size[0].size === BACKGROUND_SIZE.COVER) ? new _drawing_Size__WEBPACK_IMPORTED_MODULE_2__["default"](bounds.width, bounds.width / currentRatio) : new _drawing_Size__WEBPACK_IMPORTED_MODULE_2__["default"](bounds.height * currentRatio, bounds.height);\n }\n\n if (size[0].value) {\n width = size[0].value.getAbsoluteValue(bounds.width);\n }\n\n if (size[0].size === BACKGROUND_SIZE.AUTO && size[1].size === BACKGROUND_SIZE.AUTO) {\n height = image.height;\n } else if (size[1].size === BACKGROUND_SIZE.AUTO) {\n height = width / image.width * image.height;\n } else if (size[1].value) {\n height = size[1].value.getAbsoluteValue(bounds.height);\n }\n\n if (size[0].size === BACKGROUND_SIZE.AUTO) {\n width = height / image.height * image.width;\n }\n\n return new _drawing_Size__WEBPACK_IMPORTED_MODULE_2__["default"](width, height);\n};\nvar calculateGradientBackgroundSize = function calculateGradientBackgroundSize(backgroundImage, bounds) {\n var size = backgroundImage.size;\n var width = size[0].value ? size[0].value.getAbsoluteValue(bounds.width) : bounds.width;\n var height = size[1].value ? size[1].value.getAbsoluteValue(bounds.height) : size[0].value ? width : bounds.height;\n return new _drawing_Size__WEBPACK_IMPORTED_MODULE_2__["default"](width, height);\n};\nvar AUTO_SIZE = new BackgroundSize(AUTO);\nvar calculateBackgroungPaintingArea = function calculateBackgroungPaintingArea(curves, clip) {\n switch (clip) {\n case BACKGROUND_CLIP.BORDER_BOX:\n return Object(_Bounds__WEBPACK_IMPORTED_MODULE_4__["calculateBorderBoxPath"])(curves);\n\n case BACKGROUND_CLIP.PADDING_BOX:\n default:\n return Object(_Bounds__WEBPACK_IMPORTED_MODULE_4__["calculatePaddingBoxPath"])(curves);\n }\n};\nvar calculateBackgroungPositioningArea = function calculateBackgroungPositioningArea(backgroundOrigin, bounds, padding, border) {\n var paddingBox = Object(_Bounds__WEBPACK_IMPORTED_MODULE_4__["calculatePaddingBox"])(bounds, border);\n\n switch (backgroundOrigin) {\n case BACKGROUND_ORIGIN.BORDER_BOX:\n return bounds;\n\n case BACKGROUND_ORIGIN.CONTENT_BOX:\n var paddingLeft = padding[_padding__WEBPACK_IMPORTED_MODULE_5__["PADDING_SIDES"].LEFT].getAbsoluteValue(bounds.width);\n var paddingRight = padding[_padding__WEBPACK_IMPORTED_MODULE_5__["PADDING_SIDES"].RIGHT].getAbsoluteValue(bounds.width);\n var paddingTop = padding[_padding__WEBPACK_IMPORTED_MODULE_5__["PADDING_SIDES"].TOP].getAbsoluteValue(bounds.width);\n var paddingBottom = padding[_padding__WEBPACK_IMPORTED_MODULE_5__["PADDING_SIDES"].BOTTOM].getAbsoluteValue(bounds.width);\n return new _Bounds__WEBPACK_IMPORTED_MODULE_4__["Bounds"](paddingBox.left + paddingLeft, paddingBox.top + paddingTop, paddingBox.width - paddingLeft - paddingRight, paddingBox.height - paddingTop - paddingBottom);\n\n case BACKGROUND_ORIGIN.PADDING_BOX:\n default:\n return paddingBox;\n }\n};\nvar calculateBackgroundPosition = function calculateBackgroundPosition(position, size, bounds) {\n return new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](position[0].getAbsoluteValue(bounds.width - size.width), position[1].getAbsoluteValue(bounds.height - size.height));\n};\nvar calculateBackgroundRepeatPath = function calculateBackgroundRepeatPath(background, position, size, backgroundPositioningArea, bounds) {\n var repeat = background.repeat;\n\n switch (repeat) {\n case BACKGROUND_REPEAT.REPEAT_X:\n return [new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](Math.round(bounds.left), Math.round(backgroundPositioningArea.top + position.y)), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](Math.round(bounds.left + bounds.width), Math.round(backgroundPositioningArea.top + position.y)), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](Math.round(bounds.left + bounds.width), Math.round(size.height + backgroundPositioningArea.top + position.y)), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](Math.round(bounds.left), Math.round(size.height + backgroundPositioningArea.top + position.y))];\n\n case BACKGROUND_REPEAT.REPEAT_Y:\n return [new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](Math.round(backgroundPositioningArea.left + position.x), Math.round(bounds.top)), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](Math.round(backgroundPositioningArea.left + position.x + size.width), Math.round(bounds.top)), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](Math.round(backgroundPositioningArea.left + position.x + size.width), Math.round(bounds.height + bounds.top)), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](Math.round(backgroundPositioningArea.left + position.x), Math.round(bounds.height + bounds.top))];\n\n case BACKGROUND_REPEAT.NO_REPEAT:\n return [new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](Math.round(backgroundPositioningArea.left + position.x), Math.round(backgroundPositioningArea.top + position.y)), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](Math.round(backgroundPositioningArea.left + position.x + size.width), Math.round(backgroundPositioningArea.top + position.y)), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](Math.round(backgroundPositioningArea.left + position.x + size.width), Math.round(backgroundPositioningArea.top + position.y + size.height)), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](Math.round(backgroundPositioningArea.left + position.x), Math.round(backgroundPositioningArea.top + position.y + size.height))];\n\n default:\n return [new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](Math.round(bounds.left), Math.round(bounds.top)), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](Math.round(bounds.left + bounds.width), Math.round(bounds.top)), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](Math.round(bounds.left + bounds.width), Math.round(bounds.height + bounds.top)), new _drawing_Vector__WEBPACK_IMPORTED_MODULE_3__["default"](Math.round(bounds.left), Math.round(bounds.height + bounds.top))];\n }\n};\nvar parseBackground = function parseBackground(style, resourceLoader) {\n return {\n backgroundColor: new _Color__WEBPACK_IMPORTED_MODULE_0__["default"](style.backgroundColor),\n backgroundImage: parseBackgroundImages(style, resourceLoader),\n backgroundClip: parseBackgroundClip(style.backgroundClip),\n backgroundOrigin: parseBackgroundOrigin(style.backgroundOrigin)\n };\n};\n\nvar parseBackgroundClip = function parseBackgroundClip(backgroundClip) {\n switch (backgroundClip) {\n case \'padding-box\':\n return BACKGROUND_CLIP.PADDING_BOX;\n\n case \'content-box\':\n return BACKGROUND_CLIP.CONTENT_BOX;\n }\n\n return BACKGROUND_CLIP.BORDER_BOX;\n};\n\nvar parseBackgroundOrigin = function parseBackgroundOrigin(backgroundOrigin) {\n switch (backgroundOrigin) {\n case \'padding-box\':\n return BACKGROUND_ORIGIN.PADDING_BOX;\n\n case \'content-box\':\n return BACKGROUND_ORIGIN.CONTENT_BOX;\n }\n\n return BACKGROUND_ORIGIN.BORDER_BOX;\n};\n\nvar parseBackgroundRepeat = function parseBackgroundRepeat(backgroundRepeat) {\n switch (backgroundRepeat.trim()) {\n case \'no-repeat\':\n return BACKGROUND_REPEAT.NO_REPEAT;\n\n case \'repeat-x\':\n case \'repeat no-repeat\':\n return BACKGROUND_REPEAT.REPEAT_X;\n\n case \'repeat-y\':\n case \'no-repeat repeat\':\n return BACKGROUND_REPEAT.REPEAT_Y;\n\n case \'repeat\':\n return BACKGROUND_REPEAT.REPEAT;\n }\n\n if (true) {\n console.error("Invalid background-repeat value \\"".concat(backgroundRepeat, "\\""));\n }\n\n return BACKGROUND_REPEAT.REPEAT;\n};\n\nvar parseBackgroundImages = function parseBackgroundImages(style, resourceLoader) {\n var sources = parseBackgroundImage(style.backgroundImage).map(function (backgroundImage) {\n if (backgroundImage.method === \'url\') {\n var key = resourceLoader.loadImage(backgroundImage.args[0]);\n backgroundImage.args = key ? [key] : [];\n }\n\n return backgroundImage;\n });\n var positions = style.backgroundPosition.split(\',\');\n var repeats = style.backgroundRepeat.split(\',\');\n var sizes = style.backgroundSize.split(\',\');\n return sources.map(function (source, index) {\n var size = (sizes[index] || AUTO).trim().split(\' \').map(parseBackgroundSize);\n var position = (positions[index] || AUTO).trim().split(\' \').map(parseBackgoundPosition);\n return {\n source: source,\n repeat: parseBackgroundRepeat(typeof repeats[index] === \'string\' ? repeats[index] : repeats[0]),\n size: size.length < 2 ? [size[0], AUTO_SIZE] : [size[0], size[1]],\n position: position.length < 2 ? [position[0], position[0]] : [position[0], position[1]]\n };\n });\n};\n\nvar parseBackgroundSize = function parseBackgroundSize(size) {\n return size === \'auto\' ? AUTO_SIZE : new BackgroundSize(size);\n};\n\nvar parseBackgoundPosition = function parseBackgoundPosition(position) {\n switch (position) {\n case \'bottom\':\n case \'right\':\n return new _Length__WEBPACK_IMPORTED_MODULE_1__["default"](\'100%\');\n\n case \'left\':\n case \'top\':\n return new _Length__WEBPACK_IMPORTED_MODULE_1__["default"](\'0%\');\n\n case \'auto\':\n return new _Length__WEBPACK_IMPORTED_MODULE_1__["default"](\'0\');\n }\n\n return new _Length__WEBPACK_IMPORTED_MODULE_1__["default"](position);\n};\n\nvar parseBackgroundImage = function parseBackgroundImage(image) {\n var whitespace = /^\\s$/;\n var results = [];\n var args = [];\n var method = \'\';\n var quote = null;\n var definition = \'\';\n var mode = 0;\n var numParen = 0;\n\n var appendResult = function appendResult() {\n var prefix = \'\';\n\n if (method) {\n if (definition.substr(0, 1) === \'"\') {\n definition = definition.substr(1, definition.length - 2);\n }\n\n if (definition) {\n args.push(definition.trim());\n }\n\n var prefix_i = method.indexOf(\'-\', 1) + 1;\n\n if (method.substr(0, 1) === \'-\' && prefix_i > 0) {\n prefix = method.substr(0, prefix_i).toLowerCase();\n method = method.substr(prefix_i);\n }\n\n method = method.toLowerCase();\n\n if (method !== \'none\') {\n results.push({\n prefix: prefix,\n method: method,\n args: args\n });\n }\n }\n\n args = [];\n method = definition = \'\';\n };\n\n image.split(\'\').forEach(function (c) {\n if (mode === 0 && whitespace.test(c)) {\n return;\n }\n\n switch (c) {\n case \'"\':\n if (!quote) {\n quote = c;\n } else if (quote === c) {\n quote = null;\n }\n\n break;\n\n case \'(\':\n if (quote) {\n break;\n } else if (mode === 0) {\n mode = 1;\n return;\n } else {\n numParen++;\n }\n\n break;\n\n case \')\':\n if (quote) {\n break;\n } else if (mode === 1) {\n if (numParen === 0) {\n mode = 0;\n appendResult();\n return;\n } else {\n numParen--;\n }\n }\n\n break;\n\n case \',\':\n if (quote) {\n break;\n } else if (mode === 0) {\n appendResult();\n return;\n } else if (mode === 1) {\n if (numParen === 0 && !method.match(/^url$/i)) {\n args.push(definition.trim());\n definition = \'\';\n return;\n }\n }\n\n break;\n }\n\n if (mode === 0) {\n method += c;\n } else {\n definition += c;\n }\n });\n appendResult();\n return results;\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/background.js?')},"./src/parsing/border.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BORDER_STYLE", function() { return BORDER_STYLE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BORDER_SIDES", function() { return BORDER_SIDES; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseBorder", function() { return parseBorder; });\n/* harmony import */ var _Color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Color */ "./src/Color.js");\n\n\n\nvar BORDER_STYLE = {\n NONE: 0,\n SOLID: 1\n};\nvar BORDER_SIDES = {\n TOP: 0,\n RIGHT: 1,\n BOTTOM: 2,\n LEFT: 3\n};\nvar SIDES = Object.keys(BORDER_SIDES).map(function (s) {\n return s.toLowerCase();\n});\n\nvar parseBorderStyle = function parseBorderStyle(style) {\n switch (style) {\n case \'none\':\n return BORDER_STYLE.NONE;\n }\n\n return BORDER_STYLE.SOLID;\n};\n\nvar parseBorder = function parseBorder(style) {\n return SIDES.map(function (side) {\n var borderColor = new _Color__WEBPACK_IMPORTED_MODULE_0__["default"](style.getPropertyValue("border-".concat(side, "-color")));\n var borderStyle = parseBorderStyle(style.getPropertyValue("border-".concat(side, "-style")));\n var borderWidth = parseFloat(style.getPropertyValue("border-".concat(side, "-width")));\n return {\n borderColor: borderColor,\n borderStyle: borderStyle,\n borderWidth: isNaN(borderWidth) ? 0 : borderWidth\n };\n });\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/border.js?')},"./src/parsing/borderRadius.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseBorderRadius", function() { return parseBorderRadius; });\n/* harmony import */ var _Length__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Length */ "./src/Length.js");\n\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\nvar SIDES = [\'top-left\', \'top-right\', \'bottom-right\', \'bottom-left\'];\nvar parseBorderRadius = function parseBorderRadius(style) {\n return SIDES.map(function (side) {\n var value = style.getPropertyValue("border-".concat(side, "-radius"));\n\n var _value$split$map = value.split(\' \').map(_Length__WEBPACK_IMPORTED_MODULE_0__["default"].create),\n _value$split$map2 = _slicedToArray(_value$split$map, 2),\n horizontal = _value$split$map2[0],\n vertical = _value$split$map2[1];\n\n return typeof vertical === \'undefined\' ? [horizontal, horizontal] : [horizontal, vertical];\n });\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/borderRadius.js?')},"./src/parsing/display.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DISPLAY\", function() { return DISPLAY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseDisplay\", function() { return parseDisplay; });\n\n\nvar DISPLAY = {\n NONE: 1 << 0,\n BLOCK: 1 << 1,\n INLINE: 1 << 2,\n RUN_IN: 1 << 3,\n FLOW: 1 << 4,\n FLOW_ROOT: 1 << 5,\n TABLE: 1 << 6,\n FLEX: 1 << 7,\n GRID: 1 << 8,\n RUBY: 1 << 9,\n SUBGRID: 1 << 10,\n LIST_ITEM: 1 << 11,\n TABLE_ROW_GROUP: 1 << 12,\n TABLE_HEADER_GROUP: 1 << 13,\n TABLE_FOOTER_GROUP: 1 << 14,\n TABLE_ROW: 1 << 15,\n TABLE_CELL: 1 << 16,\n TABLE_COLUMN_GROUP: 1 << 17,\n TABLE_COLUMN: 1 << 18,\n TABLE_CAPTION: 1 << 19,\n RUBY_BASE: 1 << 20,\n RUBY_TEXT: 1 << 21,\n RUBY_BASE_CONTAINER: 1 << 22,\n RUBY_TEXT_CONTAINER: 1 << 23,\n CONTENTS: 1 << 24,\n INLINE_BLOCK: 1 << 25,\n INLINE_LIST_ITEM: 1 << 26,\n INLINE_TABLE: 1 << 27,\n INLINE_FLEX: 1 << 28,\n INLINE_GRID: 1 << 29\n};\n\nvar parseDisplayValue = function parseDisplayValue(display) {\n switch (display) {\n case 'block':\n return DISPLAY.BLOCK;\n\n case 'inline':\n return DISPLAY.INLINE;\n\n case 'run-in':\n return DISPLAY.RUN_IN;\n\n case 'flow':\n return DISPLAY.FLOW;\n\n case 'flow-root':\n return DISPLAY.FLOW_ROOT;\n\n case 'table':\n return DISPLAY.TABLE;\n\n case 'flex':\n return DISPLAY.FLEX;\n\n case 'grid':\n return DISPLAY.GRID;\n\n case 'ruby':\n return DISPLAY.RUBY;\n\n case 'subgrid':\n return DISPLAY.SUBGRID;\n\n case 'list-item':\n return DISPLAY.LIST_ITEM;\n\n case 'table-row-group':\n return DISPLAY.TABLE_ROW_GROUP;\n\n case 'table-header-group':\n return DISPLAY.TABLE_HEADER_GROUP;\n\n case 'table-footer-group':\n return DISPLAY.TABLE_FOOTER_GROUP;\n\n case 'table-row':\n return DISPLAY.TABLE_ROW;\n\n case 'table-cell':\n return DISPLAY.TABLE_CELL;\n\n case 'table-column-group':\n return DISPLAY.TABLE_COLUMN_GROUP;\n\n case 'table-column':\n return DISPLAY.TABLE_COLUMN;\n\n case 'table-caption':\n return DISPLAY.TABLE_CAPTION;\n\n case 'ruby-base':\n return DISPLAY.RUBY_BASE;\n\n case 'ruby-text':\n return DISPLAY.RUBY_TEXT;\n\n case 'ruby-base-container':\n return DISPLAY.RUBY_BASE_CONTAINER;\n\n case 'ruby-text-container':\n return DISPLAY.RUBY_TEXT_CONTAINER;\n\n case 'contents':\n return DISPLAY.CONTENTS;\n\n case 'inline-block':\n return DISPLAY.INLINE_BLOCK;\n\n case 'inline-list-item':\n return DISPLAY.INLINE_LIST_ITEM;\n\n case 'inline-table':\n return DISPLAY.INLINE_TABLE;\n\n case 'inline-flex':\n return DISPLAY.INLINE_FLEX;\n\n case 'inline-grid':\n return DISPLAY.INLINE_GRID;\n }\n\n return DISPLAY.NONE;\n};\n\nvar setDisplayBit = function setDisplayBit(bit, display) {\n return bit | parseDisplayValue(display);\n};\n\nvar parseDisplay = function parseDisplay(display) {\n return display.split(' ').reduce(setDisplayBit, 0);\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/display.js?")},"./src/parsing/float.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FLOAT\", function() { return FLOAT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseCSSFloat\", function() { return parseCSSFloat; });\n\n\nvar FLOAT = {\n NONE: 0,\n LEFT: 1,\n RIGHT: 2,\n INLINE_START: 3,\n INLINE_END: 4\n};\nvar parseCSSFloat = function parseCSSFloat(float) {\n switch (float) {\n case 'left':\n return FLOAT.LEFT;\n\n case 'right':\n return FLOAT.RIGHT;\n\n case 'inline-start':\n return FLOAT.INLINE_START;\n\n case 'inline-end':\n return FLOAT.INLINE_END;\n }\n\n return FLOAT.NONE;\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/float.js?")},"./src/parsing/font.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseFont\", function() { return parseFont; });\n\n\nvar parseFontWeight = function parseFontWeight(weight) {\n switch (weight) {\n case 'normal':\n return 400;\n\n case 'bold':\n return 700;\n }\n\n var value = parseInt(weight, 10);\n return isNaN(value) ? 400 : value;\n};\n\nvar parseFont = function parseFont(style) {\n var fontFamily = style.fontFamily;\n var fontSize = style.fontSize;\n var fontStyle = style.fontStyle;\n var fontVariant = style.fontVariant;\n var fontWeight = parseFontWeight(style.fontWeight);\n return {\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontStyle: fontStyle,\n fontVariant: fontVariant,\n fontWeight: fontWeight\n };\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/font.js?")},"./src/parsing/letterSpacing.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseLetterSpacing\", function() { return parseLetterSpacing; });\n\n\nvar parseLetterSpacing = function parseLetterSpacing(letterSpacing) {\n if (letterSpacing === 'normal') {\n return 0;\n }\n\n var value = parseFloat(letterSpacing);\n return isNaN(value) ? 0 : value;\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/letterSpacing.js?")},"./src/parsing/lineBreak.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LINE_BREAK\", function() { return LINE_BREAK; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseLineBreak\", function() { return parseLineBreak; });\n\n\nvar LINE_BREAK = {\n NORMAL: 'normal',\n STRICT: 'strict'\n};\nvar parseLineBreak = function parseLineBreak(wordBreak) {\n switch (wordBreak) {\n case 'strict':\n return LINE_BREAK.STRICT;\n\n case 'normal':\n default:\n return LINE_BREAK.NORMAL;\n }\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/lineBreak.js?")},"./src/parsing/listStyle.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LIST_STYLE_POSITION\", function() { return LIST_STYLE_POSITION; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LIST_STYLE_TYPE\", function() { return LIST_STYLE_TYPE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseListStyleType\", function() { return parseListStyleType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseListStyle\", function() { return parseListStyle; });\n/* harmony import */ var _background__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./background */ \"./src/parsing/background.js\");\n\n\n\nvar LIST_STYLE_POSITION = {\n INSIDE: 0,\n OUTSIDE: 1\n};\nvar LIST_STYLE_TYPE = {\n NONE: -1,\n DISC: 0,\n CIRCLE: 1,\n SQUARE: 2,\n DECIMAL: 3,\n CJK_DECIMAL: 4,\n DECIMAL_LEADING_ZERO: 5,\n LOWER_ROMAN: 6,\n UPPER_ROMAN: 7,\n LOWER_GREEK: 8,\n LOWER_ALPHA: 9,\n UPPER_ALPHA: 10,\n ARABIC_INDIC: 11,\n ARMENIAN: 12,\n BENGALI: 13,\n CAMBODIAN: 14,\n CJK_EARTHLY_BRANCH: 15,\n CJK_HEAVENLY_STEM: 16,\n CJK_IDEOGRAPHIC: 17,\n DEVANAGARI: 18,\n ETHIOPIC_NUMERIC: 19,\n GEORGIAN: 20,\n GUJARATI: 21,\n GURMUKHI: 22,\n HEBREW: 22,\n HIRAGANA: 23,\n HIRAGANA_IROHA: 24,\n JAPANESE_FORMAL: 25,\n JAPANESE_INFORMAL: 26,\n KANNADA: 27,\n KATAKANA: 28,\n KATAKANA_IROHA: 29,\n KHMER: 30,\n KOREAN_HANGUL_FORMAL: 31,\n KOREAN_HANJA_FORMAL: 32,\n KOREAN_HANJA_INFORMAL: 33,\n LAO: 34,\n LOWER_ARMENIAN: 35,\n MALAYALAM: 36,\n MONGOLIAN: 37,\n MYANMAR: 38,\n ORIYA: 39,\n PERSIAN: 40,\n SIMP_CHINESE_FORMAL: 41,\n SIMP_CHINESE_INFORMAL: 42,\n TAMIL: 43,\n TELUGU: 44,\n THAI: 45,\n TIBETAN: 46,\n TRAD_CHINESE_FORMAL: 47,\n TRAD_CHINESE_INFORMAL: 48,\n UPPER_ARMENIAN: 49,\n DISCLOSURE_OPEN: 50,\n DISCLOSURE_CLOSED: 51\n};\nvar parseListStyleType = function parseListStyleType(type) {\n switch (type) {\n case 'disc':\n return LIST_STYLE_TYPE.DISC;\n\n case 'circle':\n return LIST_STYLE_TYPE.CIRCLE;\n\n case 'square':\n return LIST_STYLE_TYPE.SQUARE;\n\n case 'decimal':\n return LIST_STYLE_TYPE.DECIMAL;\n\n case 'cjk-decimal':\n return LIST_STYLE_TYPE.CJK_DECIMAL;\n\n case 'decimal-leading-zero':\n return LIST_STYLE_TYPE.DECIMAL_LEADING_ZERO;\n\n case 'lower-roman':\n return LIST_STYLE_TYPE.LOWER_ROMAN;\n\n case 'upper-roman':\n return LIST_STYLE_TYPE.UPPER_ROMAN;\n\n case 'lower-greek':\n return LIST_STYLE_TYPE.LOWER_GREEK;\n\n case 'lower-alpha':\n return LIST_STYLE_TYPE.LOWER_ALPHA;\n\n case 'upper-alpha':\n return LIST_STYLE_TYPE.UPPER_ALPHA;\n\n case 'arabic-indic':\n return LIST_STYLE_TYPE.ARABIC_INDIC;\n\n case 'armenian':\n return LIST_STYLE_TYPE.ARMENIAN;\n\n case 'bengali':\n return LIST_STYLE_TYPE.BENGALI;\n\n case 'cambodian':\n return LIST_STYLE_TYPE.CAMBODIAN;\n\n case 'cjk-earthly-branch':\n return LIST_STYLE_TYPE.CJK_EARTHLY_BRANCH;\n\n case 'cjk-heavenly-stem':\n return LIST_STYLE_TYPE.CJK_HEAVENLY_STEM;\n\n case 'cjk-ideographic':\n return LIST_STYLE_TYPE.CJK_IDEOGRAPHIC;\n\n case 'devanagari':\n return LIST_STYLE_TYPE.DEVANAGARI;\n\n case 'ethiopic-numeric':\n return LIST_STYLE_TYPE.ETHIOPIC_NUMERIC;\n\n case 'georgian':\n return LIST_STYLE_TYPE.GEORGIAN;\n\n case 'gujarati':\n return LIST_STYLE_TYPE.GUJARATI;\n\n case 'gurmukhi':\n return LIST_STYLE_TYPE.GURMUKHI;\n\n case 'hebrew':\n return LIST_STYLE_TYPE.HEBREW;\n\n case 'hiragana':\n return LIST_STYLE_TYPE.HIRAGANA;\n\n case 'hiragana-iroha':\n return LIST_STYLE_TYPE.HIRAGANA_IROHA;\n\n case 'japanese-formal':\n return LIST_STYLE_TYPE.JAPANESE_FORMAL;\n\n case 'japanese-informal':\n return LIST_STYLE_TYPE.JAPANESE_INFORMAL;\n\n case 'kannada':\n return LIST_STYLE_TYPE.KANNADA;\n\n case 'katakana':\n return LIST_STYLE_TYPE.KATAKANA;\n\n case 'katakana-iroha':\n return LIST_STYLE_TYPE.KATAKANA_IROHA;\n\n case 'khmer':\n return LIST_STYLE_TYPE.KHMER;\n\n case 'korean-hangul-formal':\n return LIST_STYLE_TYPE.KOREAN_HANGUL_FORMAL;\n\n case 'korean-hanja-formal':\n return LIST_STYLE_TYPE.KOREAN_HANJA_FORMAL;\n\n case 'korean-hanja-informal':\n return LIST_STYLE_TYPE.KOREAN_HANJA_INFORMAL;\n\n case 'lao':\n return LIST_STYLE_TYPE.LAO;\n\n case 'lower-armenian':\n return LIST_STYLE_TYPE.LOWER_ARMENIAN;\n\n case 'malayalam':\n return LIST_STYLE_TYPE.MALAYALAM;\n\n case 'mongolian':\n return LIST_STYLE_TYPE.MONGOLIAN;\n\n case 'myanmar':\n return LIST_STYLE_TYPE.MYANMAR;\n\n case 'oriya':\n return LIST_STYLE_TYPE.ORIYA;\n\n case 'persian':\n return LIST_STYLE_TYPE.PERSIAN;\n\n case 'simp-chinese-formal':\n return LIST_STYLE_TYPE.SIMP_CHINESE_FORMAL;\n\n case 'simp-chinese-informal':\n return LIST_STYLE_TYPE.SIMP_CHINESE_INFORMAL;\n\n case 'tamil':\n return LIST_STYLE_TYPE.TAMIL;\n\n case 'telugu':\n return LIST_STYLE_TYPE.TELUGU;\n\n case 'thai':\n return LIST_STYLE_TYPE.THAI;\n\n case 'tibetan':\n return LIST_STYLE_TYPE.TIBETAN;\n\n case 'trad-chinese-formal':\n return LIST_STYLE_TYPE.TRAD_CHINESE_FORMAL;\n\n case 'trad-chinese-informal':\n return LIST_STYLE_TYPE.TRAD_CHINESE_INFORMAL;\n\n case 'upper-armenian':\n return LIST_STYLE_TYPE.UPPER_ARMENIAN;\n\n case 'disclosure-open':\n return LIST_STYLE_TYPE.DISCLOSURE_OPEN;\n\n case 'disclosure-closed':\n return LIST_STYLE_TYPE.DISCLOSURE_CLOSED;\n\n case 'none':\n default:\n return LIST_STYLE_TYPE.NONE;\n }\n};\nvar parseListStyle = function parseListStyle(style) {\n var listStyleImage = Object(_background__WEBPACK_IMPORTED_MODULE_0__[\"parseBackgroundImage\"])(style.getPropertyValue('list-style-image'));\n return {\n listStyleType: parseListStyleType(style.getPropertyValue('list-style-type')),\n listStyleImage: listStyleImage.length ? listStyleImage[0] : null,\n listStylePosition: parseListStylePosition(style.getPropertyValue('list-style-position'))\n };\n};\n\nvar parseListStylePosition = function parseListStylePosition(position) {\n switch (position) {\n case 'inside':\n return LIST_STYLE_POSITION.INSIDE;\n\n case 'outside':\n default:\n return LIST_STYLE_POSITION.OUTSIDE;\n }\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/listStyle.js?")},"./src/parsing/margin.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseMargin\", function() { return parseMargin; });\n/* harmony import */ var _Length__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Length */ \"./src/Length.js\");\n\n\n\nvar SIDES = ['top', 'right', 'bottom', 'left'];\nvar parseMargin = function parseMargin(style) {\n return SIDES.map(function (side) {\n return new _Length__WEBPACK_IMPORTED_MODULE_0__[\"default\"](style.getPropertyValue(\"margin-\".concat(side)));\n });\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/margin.js?")},"./src/parsing/overflow.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"OVERFLOW\", function() { return OVERFLOW; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseOverflow\", function() { return parseOverflow; });\n\n\nvar OVERFLOW = {\n VISIBLE: 0,\n HIDDEN: 1,\n SCROLL: 2,\n AUTO: 3\n};\nvar parseOverflow = function parseOverflow(overflow) {\n switch (overflow) {\n case 'hidden':\n return OVERFLOW.HIDDEN;\n\n case 'scroll':\n return OVERFLOW.SCROLL;\n\n case 'auto':\n return OVERFLOW.AUTO;\n\n case 'visible':\n default:\n return OVERFLOW.VISIBLE;\n }\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/overflow.js?")},"./src/parsing/overflowWrap.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"OVERFLOW_WRAP\", function() { return OVERFLOW_WRAP; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseOverflowWrap\", function() { return parseOverflowWrap; });\n\n\nvar OVERFLOW_WRAP = {\n NORMAL: 0,\n BREAK_WORD: 1\n};\nvar parseOverflowWrap = function parseOverflowWrap(overflow) {\n switch (overflow) {\n case 'break-word':\n return OVERFLOW_WRAP.BREAK_WORD;\n\n case 'normal':\n default:\n return OVERFLOW_WRAP.NORMAL;\n }\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/overflowWrap.js?")},"./src/parsing/padding.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PADDING_SIDES", function() { return PADDING_SIDES; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parsePadding", function() { return parsePadding; });\n/* harmony import */ var _Length__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Length */ "./src/Length.js");\n\n\n\nvar PADDING_SIDES = {\n TOP: 0,\n RIGHT: 1,\n BOTTOM: 2,\n LEFT: 3\n};\nvar SIDES = [\'top\', \'right\', \'bottom\', \'left\'];\nvar parsePadding = function parsePadding(style) {\n return SIDES.map(function (side) {\n return new _Length__WEBPACK_IMPORTED_MODULE_0__["default"](style.getPropertyValue("padding-".concat(side)));\n });\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/padding.js?')},"./src/parsing/position.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"POSITION\", function() { return POSITION; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parsePosition\", function() { return parsePosition; });\n\n\nvar POSITION = {\n STATIC: 0,\n RELATIVE: 1,\n ABSOLUTE: 2,\n FIXED: 3,\n STICKY: 4\n};\nvar parsePosition = function parsePosition(position) {\n switch (position) {\n case 'relative':\n return POSITION.RELATIVE;\n\n case 'absolute':\n return POSITION.ABSOLUTE;\n\n case 'fixed':\n return POSITION.FIXED;\n\n case 'sticky':\n return POSITION.STICKY;\n }\n\n return POSITION.STATIC;\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/position.js?")},"./src/parsing/textDecoration.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TEXT_DECORATION_STYLE\", function() { return TEXT_DECORATION_STYLE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TEXT_DECORATION\", function() { return TEXT_DECORATION; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TEXT_DECORATION_LINE\", function() { return TEXT_DECORATION_LINE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseTextDecoration\", function() { return parseTextDecoration; });\n/* harmony import */ var _Color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Color */ \"./src/Color.js\");\n\n\n\nvar TEXT_DECORATION_STYLE = {\n SOLID: 0,\n DOUBLE: 1,\n DOTTED: 2,\n DASHED: 3,\n WAVY: 4\n};\nvar TEXT_DECORATION = {\n NONE: null\n};\nvar TEXT_DECORATION_LINE = {\n UNDERLINE: 1,\n OVERLINE: 2,\n LINE_THROUGH: 3,\n BLINK: 4\n};\n\nvar parseLine = function parseLine(line) {\n switch (line) {\n case 'underline':\n return TEXT_DECORATION_LINE.UNDERLINE;\n\n case 'overline':\n return TEXT_DECORATION_LINE.OVERLINE;\n\n case 'line-through':\n return TEXT_DECORATION_LINE.LINE_THROUGH;\n }\n\n return TEXT_DECORATION_LINE.BLINK;\n};\n\nvar parseTextDecorationLine = function parseTextDecorationLine(line) {\n if (line === 'none') {\n return null;\n }\n\n return line.split(' ').map(parseLine);\n};\n\nvar parseTextDecorationStyle = function parseTextDecorationStyle(style) {\n switch (style) {\n case 'double':\n return TEXT_DECORATION_STYLE.DOUBLE;\n\n case 'dotted':\n return TEXT_DECORATION_STYLE.DOTTED;\n\n case 'dashed':\n return TEXT_DECORATION_STYLE.DASHED;\n\n case 'wavy':\n return TEXT_DECORATION_STYLE.WAVY;\n }\n\n return TEXT_DECORATION_STYLE.SOLID;\n};\n\nvar parseTextDecoration = function parseTextDecoration(style) {\n var textDecorationLine = parseTextDecorationLine(style.textDecorationLine ? style.textDecorationLine : style.textDecoration);\n\n if (textDecorationLine === null) {\n return TEXT_DECORATION.NONE;\n }\n\n var textDecorationColor = style.textDecorationColor ? new _Color__WEBPACK_IMPORTED_MODULE_0__[\"default\"](style.textDecorationColor) : null;\n var textDecorationStyle = parseTextDecorationStyle(style.textDecorationStyle);\n return {\n textDecorationLine: textDecorationLine,\n textDecorationColor: textDecorationColor,\n textDecorationStyle: textDecorationStyle\n };\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/textDecoration.js?")},"./src/parsing/textShadow.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseTextShadow\", function() { return parseTextShadow; });\n/* harmony import */ var _Color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Color */ \"./src/Color.js\");\n\n\n\nvar NUMBER = /^([+-]|\\d|\\.)$/i;\nvar parseTextShadow = function parseTextShadow(textShadow) {\n if (textShadow === 'none' || typeof textShadow !== 'string') {\n return null;\n }\n\n var currentValue = '';\n var isLength = false;\n var values = [];\n var shadows = [];\n var numParens = 0;\n var color = null;\n\n var appendValue = function appendValue() {\n if (currentValue.length) {\n if (isLength) {\n values.push(parseFloat(currentValue));\n } else {\n color = new _Color__WEBPACK_IMPORTED_MODULE_0__[\"default\"](currentValue);\n }\n }\n\n isLength = false;\n currentValue = '';\n };\n\n var appendShadow = function appendShadow() {\n if (values.length && color !== null) {\n shadows.push({\n color: color,\n offsetX: values[0] || 0,\n offsetY: values[1] || 0,\n blur: values[2] || 0\n });\n }\n\n values.splice(0, values.length);\n color = null;\n };\n\n for (var i = 0; i < textShadow.length; i++) {\n var c = textShadow[i];\n\n switch (c) {\n case '(':\n currentValue += c;\n numParens++;\n break;\n\n case ')':\n currentValue += c;\n numParens--;\n break;\n\n case ',':\n if (numParens === 0) {\n appendValue();\n appendShadow();\n } else {\n currentValue += c;\n }\n\n break;\n\n case ' ':\n if (numParens === 0) {\n appendValue();\n } else {\n currentValue += c;\n }\n\n break;\n\n default:\n if (currentValue.length === 0 && NUMBER.test(c)) {\n isLength = true;\n }\n\n currentValue += c;\n }\n }\n\n appendValue();\n appendShadow();\n\n if (shadows.length === 0) {\n return null;\n }\n\n return shadows;\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/textShadow.js?")},"./src/parsing/textTransform.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TEXT_TRANSFORM\", function() { return TEXT_TRANSFORM; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseTextTransform\", function() { return parseTextTransform; });\n\n\nvar TEXT_TRANSFORM = {\n NONE: 0,\n LOWERCASE: 1,\n UPPERCASE: 2,\n CAPITALIZE: 3\n};\nvar parseTextTransform = function parseTextTransform(textTransform) {\n switch (textTransform) {\n case 'uppercase':\n return TEXT_TRANSFORM.UPPERCASE;\n\n case 'lowercase':\n return TEXT_TRANSFORM.LOWERCASE;\n\n case 'capitalize':\n return TEXT_TRANSFORM.CAPITALIZE;\n }\n\n return TEXT_TRANSFORM.NONE;\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/textTransform.js?")},"./src/parsing/transform.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseTransform\", function() { return parseTransform; });\n/* harmony import */ var _Length__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Length */ \"./src/Length.js\");\n\n\n\n\nvar toFloat = function toFloat(s) {\n return parseFloat(s.trim());\n};\n\nvar MATRIX = /(matrix|matrix3d)\\((.+)\\)/;\nvar parseTransform = function parseTransform(style) {\n var transform = parseTransformMatrix(style.transform || style.webkitTransform || style.mozTransform || // $FlowFixMe\n style.msTransform || // $FlowFixMe\n style.oTransform);\n\n if (transform === null) {\n return null;\n }\n\n return {\n transform: transform,\n transformOrigin: parseTransformOrigin(style.transformOrigin || style.webkitTransformOrigin || style.mozTransformOrigin || // $FlowFixMe\n style.msTransformOrigin || // $FlowFixMe\n style.oTransformOrigin)\n };\n}; // $FlowFixMe\n\nvar parseTransformOrigin = function parseTransformOrigin(origin) {\n if (typeof origin !== 'string') {\n var v = new _Length__WEBPACK_IMPORTED_MODULE_0__[\"default\"]('0');\n return [v, v];\n }\n\n var values = origin.split(' ').map(_Length__WEBPACK_IMPORTED_MODULE_0__[\"default\"].create);\n return [values[0], values[1]];\n}; // $FlowFixMe\n\n\nvar parseTransformMatrix = function parseTransformMatrix(transform) {\n if (transform === 'none' || typeof transform !== 'string') {\n return null;\n }\n\n var match = transform.match(MATRIX);\n\n if (match) {\n if (match[1] === 'matrix') {\n var matrix = match[2].split(',').map(toFloat);\n return [matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]];\n } else {\n var matrix3d = match[2].split(',').map(toFloat);\n return [matrix3d[0], matrix3d[1], matrix3d[4], matrix3d[5], matrix3d[12], matrix3d[13]];\n }\n }\n\n return null;\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/transform.js?")},"./src/parsing/visibility.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"VISIBILITY\", function() { return VISIBILITY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseVisibility\", function() { return parseVisibility; });\n\n\nvar VISIBILITY = {\n VISIBLE: 0,\n HIDDEN: 1,\n COLLAPSE: 2\n};\nvar parseVisibility = function parseVisibility(visibility) {\n switch (visibility) {\n case 'hidden':\n return VISIBILITY.HIDDEN;\n\n case 'collapse':\n return VISIBILITY.COLLAPSE;\n\n case 'visible':\n default:\n return VISIBILITY.VISIBLE;\n }\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/visibility.js?")},"./src/parsing/word-break.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"WORD_BREAK\", function() { return WORD_BREAK; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseWordBreak\", function() { return parseWordBreak; });\n\n\nvar WORD_BREAK = {\n NORMAL: 'normal',\n BREAK_ALL: 'break-all',\n KEEP_ALL: 'keep-all'\n};\nvar parseWordBreak = function parseWordBreak(wordBreak) {\n switch (wordBreak) {\n case 'break-all':\n return WORD_BREAK.BREAK_ALL;\n\n case 'keep-all':\n return WORD_BREAK.KEEP_ALL;\n\n case 'normal':\n default:\n return WORD_BREAK.NORMAL;\n }\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/word-break.js?")},"./src/parsing/zIndex.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseZIndex\", function() { return parseZIndex; });\n\n\nvar parseZIndex = function parseZIndex(zIndex) {\n var auto = zIndex === 'auto';\n return {\n auto: auto,\n order: auto ? 0 : parseInt(zIndex, 10)\n };\n};\n\n//# sourceURL=webpack://html2canvas/./src/parsing/zIndex.js?")},"./src/renderer/CanvasRenderer.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CanvasRenderer; });\n/* harmony import */ var _drawing_Path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../drawing/Path */ "./src/drawing/Path.js");\n/* harmony import */ var _parsing_textDecoration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../parsing/textDecoration */ "./src/parsing/textDecoration.js");\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n\n\n\nvar addColorStops = function addColorStops(gradient, canvasGradient) {\n var maxStop = Math.max.apply(null, gradient.colorStops.map(function (colorStop) {\n return colorStop.stop;\n }));\n var f = 1 / Math.max(1, maxStop);\n gradient.colorStops.forEach(function (colorStop) {\n canvasGradient.addColorStop(Math.floor(Math.max(0, f * colorStop.stop)), colorStop.color.toString());\n });\n};\n\nvar CanvasRenderer =\n/*#__PURE__*/\nfunction () {\n function CanvasRenderer(canvas) {\n _classCallCheck(this, CanvasRenderer);\n\n this.canvas = canvas ? canvas : document.createElement(\'canvas\');\n }\n\n _createClass(CanvasRenderer, [{\n key: "render",\n value: function render(options) {\n this.ctx = this.canvas.getContext(\'2d\');\n this.options = options;\n this.canvas.width = Math.floor(options.width * options.scale);\n this.canvas.height = Math.floor(options.height * options.scale);\n this.canvas.style.width = "".concat(options.width, "px");\n this.canvas.style.height = "".concat(options.height, "px");\n this.ctx.scale(this.options.scale, this.options.scale);\n this.ctx.translate(-options.x, -options.y);\n this.ctx.textBaseline = \'bottom\';\n options.logger.log("Canvas renderer initialized (".concat(options.width, "x").concat(options.height, " at ").concat(options.x, ",").concat(options.y, ") with scale ").concat(this.options.scale));\n }\n }, {\n key: "clip",\n value: function clip(clipPaths, callback) {\n var _this = this;\n\n if (clipPaths.length) {\n this.ctx.save();\n clipPaths.forEach(function (path) {\n _this.path(path);\n\n _this.ctx.clip();\n });\n }\n\n callback();\n\n if (clipPaths.length) {\n this.ctx.restore();\n }\n }\n }, {\n key: "drawImage",\n value: function drawImage(image, source, destination) {\n this.ctx.drawImage(image, source.left, source.top, source.width, source.height, destination.left, destination.top, destination.width, destination.height);\n }\n }, {\n key: "drawShape",\n value: function drawShape(path, color) {\n this.path(path);\n this.ctx.fillStyle = color.toString();\n this.ctx.fill();\n }\n }, {\n key: "fill",\n value: function fill(color) {\n this.ctx.fillStyle = color.toString();\n this.ctx.fill();\n }\n }, {\n key: "getTarget",\n value: function getTarget() {\n this.canvas.getContext(\'2d\').setTransform(1, 0, 0, 1, 0, 0);\n return Promise.resolve(this.canvas);\n }\n }, {\n key: "path",\n value: function path(_path) {\n var _this2 = this;\n\n this.ctx.beginPath();\n\n if (Array.isArray(_path)) {\n _path.forEach(function (point, index) {\n var start = point.type === _drawing_Path__WEBPACK_IMPORTED_MODULE_0__["PATH"].VECTOR ? point : point.start;\n\n if (index === 0) {\n _this2.ctx.moveTo(start.x, start.y);\n } else {\n _this2.ctx.lineTo(start.x, start.y);\n }\n\n if (point.type === _drawing_Path__WEBPACK_IMPORTED_MODULE_0__["PATH"].BEZIER_CURVE) {\n _this2.ctx.bezierCurveTo(point.startControl.x, point.startControl.y, point.endControl.x, point.endControl.y, point.end.x, point.end.y);\n }\n });\n } else {\n this.ctx.arc(_path.x + _path.radius, _path.y + _path.radius, _path.radius, 0, Math.PI * 2, true);\n }\n\n this.ctx.closePath();\n }\n }, {\n key: "rectangle",\n value: function rectangle(x, y, width, height, color) {\n this.ctx.fillStyle = color.toString();\n this.ctx.fillRect(x, y, width, height);\n }\n }, {\n key: "renderLinearGradient",\n value: function renderLinearGradient(bounds, gradient) {\n var linearGradient = this.ctx.createLinearGradient(bounds.left + gradient.direction.x1, bounds.top + gradient.direction.y1, bounds.left + gradient.direction.x0, bounds.top + gradient.direction.y0);\n addColorStops(gradient, linearGradient);\n this.ctx.fillStyle = linearGradient;\n this.ctx.fillRect(bounds.left, bounds.top, bounds.width, bounds.height);\n }\n }, {\n key: "renderRadialGradient",\n value: function renderRadialGradient(bounds, gradient) {\n var _this3 = this;\n\n var x = bounds.left + gradient.center.x;\n var y = bounds.top + gradient.center.y;\n var radialGradient = this.ctx.createRadialGradient(x, y, 0, x, y, gradient.radius.x);\n\n if (!radialGradient) {\n return;\n }\n\n addColorStops(gradient, radialGradient);\n this.ctx.fillStyle = radialGradient;\n\n if (gradient.radius.x !== gradient.radius.y) {\n // transforms for elliptical radial gradient\n var midX = bounds.left + 0.5 * bounds.width;\n var midY = bounds.top + 0.5 * bounds.height;\n var f = gradient.radius.y / gradient.radius.x;\n var invF = 1 / f;\n this.transform(midX, midY, [1, 0, 0, f, 0, 0], function () {\n return _this3.ctx.fillRect(bounds.left, invF * (bounds.top - midY) + midY, bounds.width, bounds.height * invF);\n });\n } else {\n this.ctx.fillRect(bounds.left, bounds.top, bounds.width, bounds.height);\n }\n }\n }, {\n key: "renderRepeat",\n value: function renderRepeat(path, image, imageSize, offsetX, offsetY) {\n this.path(path);\n this.ctx.fillStyle = this.ctx.createPattern(this.resizeImage(image, imageSize), \'repeat\');\n this.ctx.translate(offsetX, offsetY);\n this.ctx.fill();\n this.ctx.translate(-offsetX, -offsetY);\n }\n }, {\n key: "renderTextNode",\n value: function renderTextNode(textBounds, color, font, textDecoration, textShadows) {\n var _this4 = this;\n\n this.ctx.font = [font.fontStyle, font.fontVariant, font.fontWeight, font.fontSize, font.fontFamily].join(\' \');\n textBounds.forEach(function (text) {\n _this4.ctx.fillStyle = color.toString();\n\n if (textShadows && text.text.trim().length) {\n textShadows.slice(0).reverse().forEach(function (textShadow) {\n _this4.ctx.shadowColor = textShadow.color.toString();\n _this4.ctx.shadowOffsetX = textShadow.offsetX * _this4.options.scale;\n _this4.ctx.shadowOffsetY = textShadow.offsetY * _this4.options.scale;\n _this4.ctx.shadowBlur = textShadow.blur;\n\n _this4.ctx.fillText(text.text, text.bounds.left, text.bounds.top + text.bounds.height);\n });\n } else {\n _this4.ctx.fillText(text.text, text.bounds.left, text.bounds.top + text.bounds.height);\n }\n\n if (textDecoration !== null) {\n var textDecorationColor = textDecoration.textDecorationColor || color;\n textDecoration.textDecorationLine.forEach(function (textDecorationLine) {\n switch (textDecorationLine) {\n case _parsing_textDecoration__WEBPACK_IMPORTED_MODULE_1__["TEXT_DECORATION_LINE"].UNDERLINE:\n // Draws a line at the baseline of the font\n // TODO As some browsers display the line as more than 1px if the font-size is big,\n // need to take that into account both in position and size\n var _this4$options$fontMe = _this4.options.fontMetrics.getMetrics(font),\n baseline = _this4$options$fontMe.baseline;\n\n _this4.rectangle(text.bounds.left, Math.round(text.bounds.top + baseline), text.bounds.width, 1, textDecorationColor);\n\n break;\n\n case _parsing_textDecoration__WEBPACK_IMPORTED_MODULE_1__["TEXT_DECORATION_LINE"].OVERLINE:\n _this4.rectangle(text.bounds.left, Math.round(text.bounds.top), text.bounds.width, 1, textDecorationColor);\n\n break;\n\n case _parsing_textDecoration__WEBPACK_IMPORTED_MODULE_1__["TEXT_DECORATION_LINE"].LINE_THROUGH:\n // TODO try and find exact position for line-through\n var _this4$options$fontMe2 = _this4.options.fontMetrics.getMetrics(font),\n middle = _this4$options$fontMe2.middle;\n\n _this4.rectangle(text.bounds.left, Math.ceil(text.bounds.top + middle), text.bounds.width, 1, textDecorationColor);\n\n break;\n }\n });\n }\n });\n }\n }, {\n key: "resizeImage",\n value: function resizeImage(image, size) {\n if (image.width === size.width && image.height === size.height) {\n return image;\n }\n\n var canvas = this.canvas.ownerDocument.createElement(\'canvas\');\n canvas.width = size.width;\n canvas.height = size.height;\n var ctx = canvas.getContext(\'2d\');\n ctx.drawImage(image, 0, 0, image.width, image.height, 0, 0, size.width, size.height);\n return canvas;\n }\n }, {\n key: "setOpacity",\n value: function setOpacity(opacity) {\n this.ctx.globalAlpha = opacity;\n }\n }, {\n key: "transform",\n value: function transform(offsetX, offsetY, matrix, callback) {\n this.ctx.save();\n this.ctx.translate(offsetX, offsetY);\n this.ctx.transform(matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]);\n this.ctx.translate(-offsetX, -offsetY);\n callback();\n this.ctx.restore();\n }\n }]);\n\n return CanvasRenderer;\n}();\n\n\n\n//# sourceURL=webpack://html2canvas/./src/renderer/CanvasRenderer.js?')},"./src/renderer/ForeignObjectRenderer.js":function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ForeignObjectRenderer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createForeignObjectSVG", function() { return createForeignObjectSVG; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadSerializedSVG", function() { return loadSerializedSVG; });\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar ForeignObjectRenderer =\n/*#__PURE__*/\nfunction () {\n function ForeignObjectRenderer(element) {\n _classCallCheck(this, ForeignObjectRenderer);\n\n this.element = element;\n }\n\n _createClass(ForeignObjectRenderer, [{\n key: "render",\n value: function render(options) {\n var _this = this;\n\n this.options = options;\n this.canvas = document.createElement(\'canvas\');\n this.ctx = this.canvas.getContext(\'2d\');\n this.canvas.width = Math.floor(options.width) * options.scale;\n this.canvas.height = Math.floor(options.height) * options.scale;\n this.canvas.style.width = "".concat(options.width, "px");\n this.canvas.style.height = "".concat(options.height, "px");\n options.logger.log("ForeignObject renderer initialized (".concat(options.width, "x").concat(options.height, " at ").concat(options.x, ",").concat(options.y, ") with scale ").concat(options.scale));\n var svg = createForeignObjectSVG(Math.max(options.windowWidth, options.width) * options.scale, Math.max(options.windowHeight, options.height) * options.scale, options.scrollX * options.scale, options.scrollY * options.scale, this.element);\n return loadSerializedSVG(svg).then(function (img) {\n if (options.backgroundColor) {\n _this.ctx.fillStyle = options.backgroundColor.toString();\n\n _this.ctx.fillRect(0, 0, options.width * options.scale, options.height * options.scale);\n }\n\n _this.ctx.drawImage(img, -options.x * options.scale, -options.y * options.scale);\n\n return _this.canvas;\n });\n }\n }]);\n\n return ForeignObjectRenderer;\n}();\n\n\nvar createForeignObjectSVG = function createForeignObjectSVG(width, height, x, y, node) {\n var xmlns = \'http://www.w3.org/2000/svg\';\n var svg = document.createElementNS(xmlns, \'svg\');\n var foreignObject = document.createElementNS(xmlns, \'foreignObject\');\n svg.setAttributeNS(null, \'width\', width);\n svg.setAttributeNS(null, \'height\', height);\n foreignObject.setAttributeNS(null, \'width\', \'100%\');\n foreignObject.setAttributeNS(null, \'height\', \'100%\');\n foreignObject.setAttributeNS(null, \'x\', x);\n foreignObject.setAttributeNS(null, \'y\', y);\n foreignObject.setAttributeNS(null, \'externalResourcesRequired\', \'true\');\n svg.appendChild(foreignObject);\n foreignObject.appendChild(node);\n return svg;\n};\nvar loadSerializedSVG = function loadSerializedSVG(svg) {\n return new Promise(function (resolve, reject) {\n var img = new Image();\n\n img.onload = function () {\n return resolve(img);\n };\n\n img.onerror = reject;\n img.src = "data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(new XMLSerializer().serializeToString(svg)));\n });\n};\n\n//# sourceURL=webpack://html2canvas/./src/renderer/ForeignObjectRenderer.js?')}}).default},module.exports=factory()}}]);
|
import { TestData } from "./models/test-model/test-data.js";
import {
getCommandName,
getCommandTarget,
getCommandValue,
getTdRealValueNode,
getTdShowValueNode
} from "./view/records-grid/record-utils.js";
import { makeTextFile } from "./services/helper-service/make-text-file.js";
import { modifyCaseSuite } from "./view/records-grid/modify-case-suite.js";
import { Log } from "./models/logger/logger.js";
import { genCommandDatalist } from "./view/command-toolbar/generate-command-data-list.js";
import { readSuiteFromString } from "./services/html-service/read-suite-from-string.js";
window.newFormatters = {};
window.KRData = new TestData();
window.getTdRealValueNode = getTdRealValueNode;
window.getTdShowValueNode = getTdShowValueNode;
window.getCommandName = getCommandName;
window.getCommandTarget = getCommandTarget;
window.getCommandValue = getCommandValue;
window.readSuiteFromString = readSuiteFromString;
window.makeTextFile = makeTextFile;
window.modifyCaseSuite = modifyCaseSuite;
window.formalCommands = {};
window.genCommandDatalist = genCommandDatalist;
$(document).ready(function(){
window.sideex_log = new Log(document.getElementById("logcontainer"));
window.help_log = new Log(document.getElementById("refercontainer"));
});
|
/**
* Created by 39797 on 2017/2/21.
*/
|
import React, { Component } from "react";
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: "" };
}
render() {
return (
<div className="search-bar">
<input
value = {this.state.term}
onChange={e => this.onInputChange(e.target.value)} />
</div>
);
}
onInputChange(term) {
this.setState({term});
this.props.onSearchTermChange(term);
}
}
export default SearchBar;
|
import React from 'react';
import Link from '@docusaurus/Link';
import useBaseUrl from '@docusaurus/useBaseUrl';
import './index.css';
import TechStack from '../TechStack';
import WizardCli from '../WizardCli';
const Wave = () => (
<div className="cantara__wave-container">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
<path
fill="#fff"
fillOpacity="1"
d="M0,32L40,42.7C80,53,160,75,240,80C320,85,400,75,480,64C560,53,640,43,720,85.3C800,128,880,224,960,261.3C1040,299,1120,277,1200,229.3C1280,181,1360,107,1400,69.3L1440,32L1440,0L1400,0C1360,0,1280,0,1200,0C1120,0,1040,0,960,0C880,0,800,0,720,0C640,0,560,0,480,0C400,0,320,0,240,0C160,0,80,0,40,0L0,0Z"
></path>
</svg>
</div>
);
export default function Hero() {
return (
<header className="cantara__hero">
<div className="cantara__hero__inner">
<div className="cantara__hero__container">
<span className="badge badge--secondary">v3!</span>
<div className="cantara__hero__logo">
<img src={useBaseUrl('img/cantara.svg')} alt="Cantara" />
</div>
<h1 className="cantara__slogan">
A CLI tool to create Fullstack React apps in minutes
</h1>
{/* <h2 className="cantara__subtitle">zero config, zero problems</h2> */}
<div className="cantara__hero__buttons">
<Link
href={useBaseUrl('docs/introduction')}
className="button button--primary button--lg"
>
Get Started
</Link>
<Link
className="button button--secondary button--lg"
href="#features"
>
Features
</Link>
</div>
</div>
<TechStack />
<WizardCli />
</div>
<Wave />
</header>
);
}
|
define("Core/ControlBatchUpdater",["Core/core-extend","Env/Env","Core/Deferred","Core/ParallelDeferred","Core/core-instance","Core/helpers/Object/isEmpty","Core/helpers/Function/runDelayed"],function(e,h,u,f,i,O,t){var a=new(e({},{$protected:{_applyUpdateInProcess:false,_batchUpdateSpanHint:null,_batchUpdateCount:0,_batchUpdateControls:{},_delayedEventsHash:{},_delayedActionsHash:{},_delayedActionsHashLastOrder:0,_con:null,_debugEnabled:false,_delayedEvents:[],_uids:{},_batches:{}},$constructor:function(){this._setDebugEnabled(this._debugEnabled)},_dummyUpdate:{},_nop:function(){},_setDebugEnabled:function(e){this._debugEnabled=e;var o=this;if(this._con=window&&window.console,!this._con||!this._debugEnabled)this._con={log:this._nop,info:this._nop,group:this._nop,groupEnd:this._nop,profile:this._nop,profileEnd:this._nop};if(!this._con.group){this._con.groupLevel=0,this._con.group=function(e,t,n){o._con.log(e," ",t," ",n),o._con.groupLevel++};var s=this._con.log;this._con.log=function(e,t,n){for(var a="",i=2*(o._con.groupLevel+1),r=0;r<i;r++)a+="_";if(s.call)s.call(o._con,a," ",e," ",t," ",n);else s(a," ",e," ",t," ",n)},this._con.groupEnd=function(){o._con.groupLevel--}}if(!this._con.profile)this._con.profile=this._nop;if(!this._con.profileEnd)this._con.profileEnd=this._nop;this.addComment=this._debugEnabled?this._addComment:this._nop,this.getType=this._debugEnabled?this._getType:this._nop},ensureBatchUpdate:function(e){if(!this.haveBatchUpdate()&&!this.haveApplyUpdateInProcess())this.beginBatchUpdate(e),t(this.endBatchUpdate.bind(this,e))},beginBatchUpdate:function(e){if(!(e in this._batches))this._batches[e]=0;if(this._batches[e]++,0===this._batchUpdateCount)this._batchUpdateSpanHint=e;this._batchUpdateCount++},_endBatchUpdateFinish:function(){this._con.group("endBatchUpdateFinish ",this._batchUpdateSpanHint);try{this._applyBatchUpdate(this._batchUpdateSpanHint,true)}finally{try{this._batchUpdateSpanHint=null;var e=this._delayedEvents,t=function(e){return e&&(!e.control||!e.control.isDestroyed())};this._delayedEvents=[],this._delayedEventsHash={},this._runDelayedActions(),e.filter(t).forEach(function(e){if(e.event)e.control._notify.apply(e.control,e.args);else if(e.func)e.func.apply(e.control)})}finally{this._con.groupEnd()}}},endBatchUpdate:function(e){var t;if(this._batches[e])t=true,this._batches[e]--;if(0===this._batches[e])delete this._batches[e];if(t)this._batchUpdateCount--;if(0===this._batchUpdateCount)this._endBatchUpdateFinish(e)},createBatchUpdateWrapper:function(e,t,n){return this._createBatchUpdateWrapperOpts({hint:e,callback:t,thisObject:n})},createBatchUpdateWrapperNoWaitDeferred:function(e,t,n){return a._createBatchUpdateWrapperOpts({hint:e,waitDeferredResult:false,callback:t,thisObject:n})},_createBatchUpdateWrapperOpts:function(n){var e=this,t=Object.keys(n).reduce(function(e,t){return e[t]=n[t],e}.bind(this),{});if("string"===typeof t.callback){var a=t.callback;t.callback=function(){return this[a].apply(this,arguments)}}if(t.thisObject)return function(){t.args=arguments;try{return e._runInBatchUpdateOpts(t)}finally{t.args=null}};else return function(){t.args=arguments,t.thisObject=this;try{return e._runInBatchUpdateOpts(t)}finally{t.thisObject=null,t.args=null}}},runInBatchUpdate:function(e,t,n){return this._runInBatchUpdate("",t,e,n)},_runInBatchUpdate:function(e,t,n,a){return this._runInBatchUpdateOpts({hint:e,thisObject:t,callback:n,args:a})},_runInBatchUpdateOpts:function(e){var t=e||{},o=t.hint,s=t.thisObject,l=t.callback,c=t.args,d=void 0!==t.waitDeferredResult?t.waitDeferredResult:true,n;function a(){var t=this,e=true,n=false;function a(){return function(e){return t.endBatchUpdate(o),e}}function i(e){h.IoC.resolve("ILogger").error("ControlBatchUpdater","_runInBatchUpdate: "+rk("нельзя добавить обработчик в")+" "+e+": "+rk("обработчики заблокированы")+". hint: "+o)}this.beginBatchUpdate(o);try{var r=l.apply(s,c||[]);if(r instanceof u){if(e=false,d)if(r.isCallbacksLocked())i("Deferred");else r.addCallbacks(a("Deferred"),a("Deferred Error")),n=true}else if(r instanceof f)if(e=false,d)if(r.getResult().isCallbacksLocked())i("ParallelDeferred");else r.getResult().addCallbacks(a("Parallel Deferred"),a("Parallel Deferred Error")),n=true}finally{if(e)this.endBatchUpdate(o);else if(!d)this.endBatchUpdate(o);else if(!n)this.endBatchUpdate(o)}return r}function i(){return l.apply(s,c||[])}return(this._applyUpdateInProcess?i:a).apply(this)},getType:null,_getType:function(e){var t=e.getContainer()&&e.getContainer().attr("type");if(!t)if(i.instanceOfModule(e,"Deprecated/Controls/ToolBar/ToolBar"))t="@Control/ToolBar";else if(i.instanceOfModule(e,"Deprecated/Controls/OperationsPanel/OperationsPanel"))t="@Control/OperationsPanel";else if(i.instanceOfModule(e,"Lib/Control/Window/Window"))t="@Control/Window";else if(i.instanceOfModule(e,"Lib/Control/Dialog/Dialog"))t="@Control/Dialog";else if(i.instanceOfModule(e,"Deprecated/Controls/SimpleDialogAbstract/SimpleDialogAbstract"))t="@Control/SimpleDialogAbstract";else if(i.instanceOfModule(e,"Deprecated/Controls/Tabs/Tabs"))t="@Control/Tabs";else if(i.instanceOfModule(e,"Lib/Control/HTMLView/HTMLView"))t="@Control/HTMLView";else if(i.instanceOfModule(e,"Deprecated/Controls/FiltersArea/FiltersArea"))t="@Control/FiltersArea";else if(i.instanceOfModule(e,"Lib/Control/TemplatedArea/TemplatedArea"))t="@Control/TemplatedArea";else if(i.instanceOfModule(e,"Lib/Control/TemplatedAreaAbstract/TemplatedAreaAbstract"))t="@Control/TemplatedAreaAbstract";else if(i.instanceOfModule(e,"Lib/Control/AreaAbstract/AreaAbstract"))t="@Control/AreaAbstract";return t},addComment:null,_addComment:function(e,t){if(!e.comments)e.comments=[t];else e.comments.push(t)},_ensureGetBatchUpdateData:function(e){var t=e._getBatchUpdateData();if(void 0===t)t={},e._setBatchUpdateData(t);return t},_getUID:function(e){var t=this._ensureGetBatchUpdateData(e);if(void 0===t.uid){var n=e.getId(),a;if(void 0===this._uids[n]){if(this._uids[n]=0,t.uid=n,!e.isDestroyed())e.once("onDestroy",function(){delete this._uids[n]}.bind(this))}else a=this._uids[n]+1,this._uids[n]=a,t.uid=n+"_"+a}return t.uid},_checkDelayedEventName:function(e,t,n){var a=e+":"+this._getUID(n),i=this._delayedEventsHash[a],r=this._delayedEvents.length;if(!i)i=this._delayedEventsHash[a]={last:void 0};if(void 0!==i.last&&t)this._delayedEvents[i.last]=null;i.last=r},addDelayedFunc:function(e,t,n){if(e)this._checkDelayedEventName(e,true,t);this._delayedEvents.push({func:n,control:t})},addDelayedEvent:function(e,t,n,a){if(n.getEventHandlers(e))this._checkDelayedEventName(e,t,n),this._delayedEvents.push({event:e,control:n,args:a})},registerDelayedAction:function(e,t,n){this._delayedActionsHash[e]={actionFunc:t,uniqueInGroup:n||"DefaultActions",delayed:false,args:[],order:0}},_addDelayedAction:function(e,t){var n=this._delayedActionsHash[e];if(n)for(var a in this._delayedActionsHashLastOrder++,n.delayed=true,n.args=t,n.order=this._delayedActionsHashLastOrder,this._delayedActionsHash)if(this._delayedActionsHash.hasOwnProperty(a)){var i=this._delayedActionsHash[a];if(n!==i&&i.uniqueInGroup===n.uniqueInGroup)i.delayed=false}},runBatchedDelayedAction:function(e,t){if(this.haveBatchUpdate())this._addDelayedAction(e,t);else this._runInBatchUpdate("runBatchedDelayedAction."+e,this,function(){this._addDelayedAction(e,t)})},addBatchSizeChanged:function(e,t){var n=this._getUID(e),a=this._batchUpdateControls,i=a[n];if(!i)i=a[n]={control:e,sizeChanged:true};if(t)i.recalculateOwnSize=true},_runDelayedActions:function(){this._delayedActionsHashLastOrder=0;var e=Object.keys(this._delayedActionsHash).reduce(function(e,t){var n=this._delayedActionsHash[t];if(n.delayed)e.push([t,n.args,n.order]);return n.delayed=false,n.args=[],e}.bind(this),[]);for(var t in e.sort(function(e,t){return e[2]-t[2]}),e)if(e.hasOwnProperty(t)){var n=e[t],a=n[0],i=n[1]||[],r=this._delayedActionsHash[a];if(r)r.actionFunc.apply(this,i)}},applyBatchUpdateIntermediate:function(e){this._con.group("applyBatchUpdateIntermediate ",e);try{this._applyBatchUpdate(e,false)}finally{this._con.groupEnd()}},_applyBatchUpdate:function(l,p){var c,d,_=this,y=this.addComment,h=this.getType,g=this._debugEnabled;function n(e){return!!i.instanceOfMixin(e,"Lib/Mixins/LikeWindowMixin")}function a(e){return!!i.instanceOfModule(e,"SBIS3.CONTROLS/ScrollContainer")}function r(e){if(n(e))return true;if(a(e)){var t=e.getParent();while(t){if(n(t))return false;if(a(t))return false;t=t.getParent()}return true}}function u(e){var t=e.getParent(),n=t&&_._getUID(t),a,i;if(n&&!r(e)){if(!(a=d[n]))i=u(t),a={control:t,type:h(t),children:{}},i.children[n]=a,d[n]=a}else a=c;return a}function b(e){return e.control._haveAutoSize()}function v(e){return e.map(function(e){return e.control})}function C(e,t){var n=e.isVisible(),a;if(n){a=e.getContainer();do{n=!a.hasClass("ws-hidden"),a=a.parent()}while(n&&0!==a.length&&a.get(0)!==t)}return n}function o(e,t){var n=e.children||{};for(var a in n)if(n.hasOwnProperty(a)){var i;o(n[a],t),t(e)}}function U(e){var i=e.control,r=0;function t(e){var t=e.update,n,a;if(t&&t.sizeChanged){if(void 0===(a=(n=_._ensureGetBatchUpdateData(i)).delayedRecalkData))a=[],n.delayedRecalkData=a;a.push({control:e.control,recalculateOwnSize:!!t.recalculateOwnSize}),r++}}if(o(e,t),t(e),y(e,"невидимый"),0!==r&&g)y(e,"отложено "+r+" элементов")}function D(n,a,i){var e=n.update||_._dummyUpdate,t=!n.children||O(n.children),r=e.sizeChanged,o=n.control,s=a||C(o,i),l=!s&&o._needRecalkInvisible(),c,d,h,u,f;if(s||l){if(!s)y(n,"невидимый - всё равно пересчитываем"),U(n);u=b(n),o._beforeChildrenBatchCalc&&o._beforeChildrenBatchCalc();try{if(f=(f=o.getContainer())&&f.get(0),c=Object.keys(n.children).reduce(function(e,t){if(D(n.children[t],l||a,f||i))e.push(n.children[t]);return e},[]),!t&&g)y(n,u?"прозрачный":"непрозрачный"),y(n,c.length+" изм.");if(d=r||c.length>0&&u,c.length>0||e.recalculateOwnSize){if(!(h=o._onSizeChangedBatch&&o._onSizeChangedBatch(v(c))))d=false;if(p&&o.hasEventHandlers("onBatchFinished"))o._notifyBatchDelayed("onBatchFinished");if(n.needSendOnResize=!!o._onResizeHandlerBatch,g)if(n.needSendOnResize)y(n,"пакетный - есть изм. узлы! - "+(h?"есть изм.":"нет изм."));else y(n,"пакетный - пересчёт себя (нет изм. дочерних)")}else if(g)y(n,t?"пакетный - листовой":"пакетный - нет изм. узлов")}finally{o._afterChildrenBatchCalc&&o._afterChildrenBatchCalc()}}else U(n),d=r;return d}function f(e,t){if(e.needSendOnResize&&!t){if(t=true,!e.control.isDestroyed())if(e.control._template){if(false!==e.control._mounted)e.control._onResizeHandlerBatch()}else e.control._onResizeHandlerBatch();y(e,"*")}if(!t)for(var n in e.children)if(e.children.hasOwnProperty(n)){var a;f(e.children[n],t)}}function B(e){var t,n,a,i;for(a=e.type+" ("+(e.control?_._getUID(e.control)+" - ":"")+") ",t=0,n=(i=e.comments||[]).length;t<n;t++)a+=i[t]+(t<n-1?", ":"");if(!O(e.children)){for(var r in _._con.group(a,e.control&&e.control.getContainer()),e.children)if(e.children.hasOwnProperty(r))B(e.children[r]);_._con.groupEnd()}else _._con.log(a,e.control&&e.control.getContainer())}function e(){for(var e in c={control:null,children:{}},d={},this._con.group("_applyBatchUpdate: "+l),this._batchUpdateControls)if(this._batchUpdateControls.hasOwnProperty(e)){var t=this._batchUpdateControls[e],n=t.control;if(n&&!n.isDestroyed()){var a=h(n),i=u(n),r;if(i!==c||t.recalculateOwnSize){if(r=i.children[e])r.control=n,r.type=a;else r={control:n,type:a,children:{}},i.children[e]=r,d[e]=r;r.update=t}}}if(p)this._batchUpdateControls={};var o=$("html").get(0);for(var s in c.children)if(c.children.hasOwnProperty(s)){var r;D(r=c.children[s],false,o)}if(f(c,false),this._debugEnabled)B(c);this._con.groupEnd()}this._applyUpdateInProcess=true;try{if(e.call(this),p&&!O(this._batchUpdateControls))e.call(this)}finally{if(p)this._batchUpdateControls={};this._applyUpdateInProcess=false}},haveBatchUpdate:function(){return this._batchUpdateCount>0},haveApplyUpdateInProcess:function(){return this._applyUpdateInProcess},_needDelayedRecalk:function(e){var t=e._getBatchUpdateData();return t&&t.delayedRecalkData},_doDelayedRecalk:function(n){var i=this,e=n._getBatchUpdateData(),t=e&&e.delayedRecalkData,a=t.reduce(function(e,t){if(n!==t.control)e.push(t);return e},[]);if(e)delete e.delayedRecalkData;function r(e){var t;if(i._debugEnabled)t="_doDelayedRecalk: "+e+i.getType(n)+": "+i._getUID(n);else t="_doDelayedRecalk "+e;return t}function o(e,a){function t(){for(var e in a)if(a.hasOwnProperty(e)){var t=a[e],n=t.control;if(n&&!n.isDestroyed())n._notifyOnSizeChanged(n,n,t.recalculateOwnSize)}}i._runInBatchUpdate(r(e),i,t)}o("-1 step-",t),this.addDelayedFunc("doDelayedReCalc -2 step-",n,function(){o("-2 step-",a)})}}));return a});
|
const suffixOptions = [
'',
'Jr',
'Sr',
'II',
'III',
'IV',
'V',
'VI',
'VII',
'VIII',
'IX',
'X',
'Other'
]
export default class NameValidator {
constructor(data = {}) {
this.first = data.first
this.firstInitialOnly = data.firstInitialOnly
this.last = data.last
this.middleInitialOnly = data.middleInitialOnly
this.noMiddleName = data.noMiddleName
this.hideMiddleName = data.hideMiddleName
this.middle = data.middle
this.suffix = data.suffix
this.suffixOther = data.suffixOther
}
/**
* Validates a persons first name
*/
validFirst() {
if (!this.first) {
return false
}
if (this.firstInitialOnly && this.first.length > 1) {
return false
}
return true
}
/**
* Validates a persons last name
*/
validLast() {
if (!this.last) {
return false
}
return true
}
/**
* Validates a persons middle name
*/
validMiddle() {
if (this.hideMiddleName) {
return true
}
switch (this.noMiddleName) {
case true:
// If user does not have a middle name, make sure middle name is not entered
if (this.middle) {
return false
}
break
case false:
// User should have a middle name or initial
if (!this.middle) {
return false
}
if (this.middleInitialOnly && this.middle.length > 1) {
return false
}
break
default:
return false
}
return true
}
/**
* Validates a users suffix
*/
validSuffix() {
// Suffix is optional
if (!this.suffix) {
return true
}
let found = false
for (let validSuffix of suffixOptions) {
if (validSuffix === this.suffix) {
found = true
}
}
if (!found) {
return false
}
if (this.suffix === 'Other' && !this.suffixOther) {
return false
}
return true
}
/**
* Validates all portions of a persons name
*/
isValid() {
return this.validFirst() && this.validLast() && this.validMiddle()
}
}
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[285],{3762:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return i}));r(2),r(15),r(16),r(12);var n=r(0);function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function a(t,e){if(null==t)return{};var r,n,l=function(t,e){if(null==t)return{};var r,n,l={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(l[r]=t[r]);return l}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(l[r]=t[r])}return l}var i=function(t){var e=t.title,r=t.titleId,i=a(t,["title","titleId"]);return n.createElement("svg",l({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},i),e?n.createElement("title",{id:r},e):null,n.createElement("path",{d:"M11.994 4c1.059 0 1.924.818 2 1.856l.006.15v1.988a2.005 2.005 0 01-1.856 2L12 10H3.484l1.91 1.82a.52.52 0 010 .77.616.616 0 01-.829 0l-2.05-1.95a1.551 1.551 0 010-2.31l2.05-1.95a.617.617 0 01.83 0 .52.52 0 010 .77L3.45 9H12c.514-.003.935-.39.993-.888L13 7.994V6.006c0-.516-.388-.941-.888-1L11.994 5H9.5a.5.5 0 01-.09-.992L9.5 4h2.494z"}))}}}]);
//# sourceMappingURL=icon.return_key-js.min.js.map
|
const http = require('http');
const server = http.createServer((request, response) => {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Welcome to Devops Azure!");
});
const port = process.env.PORT || 1337;
server.listen(port);
console.log("Server running at http://localhost:%d", port);
|
import React from 'react'
import styles from './styles.module.css'
import Link from 'next/link'
const Header = () => {
return (
<React.Fragment>
<div className={styles.wrapper}>
<div className='container mx-auto'>
<Link href='/'>
<a><img className='mx-auto' src='/logo_palpitebox.png' alt ='PalpiteBox' /></a>
</Link>
</div>
</div>
<div className='bg-gray-300 p-4 shadow-md text-center'>
<Link href='/sobre'>
<a className='px-2 hover:underline'>Sobre</a>
</Link>
<Link href='/contato'>
<a className='px-2 hover:underline'>Contato</a>
</Link>
<Link href='/pesquisa'>
<a className='px-2 hover:underline'>Pesquisa</a>
</Link>
</div>
</React.Fragment>
)
}
export default Header
|
// Daniel Shiffman
// http://youtube.com/thecodingtrain
// http://codingtra.in
// Coding Challenge #118: Mastodon Tree Bot
// 1: https://youtu.be/luxczHFn1rU
// 2: https://youtu.be/PUPWPjjkNqQ
require('dotenv').config();
const Mastodon = require('mastodon-api');
const util = require('util');
const fs = require('fs');
const exec = util.promisify(require('child_process').exec);
console.log('Mastodon Bot starting...');
const M = new Mastodon({
client_key: process.env.CLIENT_KEY,
client_secret: process.env.CLIENT_SECRET,
access_token: process.env.ACCESS_TOKEN,
timeout_ms: 60 * 1000, // optional HTTP request timeout to apply to all requests.
api_url: 'https://botsin.space/api/v1/' // optional, defaults to https://mastodon.social/api/v1/
});
const cmd = 'processing-java --sketch=`pwd`/treegen --run';
const stream = M.stream('streaming/user');
stream.on('message', response => {
if (response.event === 'notification' && response.data.type === 'mention') {
const id = response.data.status.id;
const acct = response.data.account.acct;
const content = response.data.status.content;
const regex = /\d+/;
const results = content.match(regex);
let angle = -1;
if (results) {
angle = results[0];
}
toot(acct, id, angle)
.then(response => console.log(response))
.catch(error => console.error(error));
}
});
//tooter();
//setInterval(tooter, 24 * 60 * 60 * 1000);
async function toot(acct, reply_id, angle) {
if (angle === -1) {
const params = {
status: `@${acct} Please specify an angle in degrees using digits`,
in_reply_to_id: reply_id
};
const response = await M.post('statuses', params);
return {
success: true,
angle: -1
};
} else {
// Step 1
const response1 = await exec(cmd + ' ' + angle);
const out = response1.stdout.split('\n');
const stream = fs.createReadStream('treegen/tree.png');
// Step 2: Upload Media
const params1 = {
file: stream,
description: `A randomly generated fractal tree with ${angle}`
};
const response2 = await M.post('media', params1);
const id = response2.data.id;
// Step 3
const params2 = {
status: `@${acct} Behold my beautiful tree with angle ${angle} degrees`,
in_reply_to_id: reply_id,
media_ids: [id]
};
const response3 = await M.post('statuses', params2);
return {
success: true,
angle: angle
};
}
}
|
const mongoose = require('mongoose');
const KeywordLog = mongoose.Schema({
log_name: String,
keywords:[String],
date: {
type: Date,
default:Date.now()
},
});
module.exports = mongoose.model('Posts', KeywordLog);
|
import {
login,
logout,
getUserInfo,
getMessage,
getContentByMsgId,
hasRead,
removeReaded,
restoreTrash,
getUnreadCount
} from '@/api/user'
import {
setToken,
getToken,
setTagNavListInLocalstorage,
} from '@/libs/util'
import {
getUnion
} from '@/libs/tools'
import staticRouters from '@/router/static-routers'
export default {
state: {
userName: '',
userGuid: '',
user_type: -1,
avatorImgPath: '',
token: getToken(),
access: '',
hasGetInfo: false,
unreadCount: 0,
messageUnreadList: [],
messageReadedList: [],
messageTrashList: [],
messageContentStore: {},
pages: [],
permissions: {},
profile: {}
},
mutations: {
setAvator(state, avatorPath) {
state.avatorImgPath = avatorPath
},
setUserGuid(state, guid) {
state.userGuid = guid
},
setUserType(state, type) {
state.user_type = type
},
setUserName(state, name) {
state.userName = name
},
setAccess(state, access) {
state.access = access
},
//设置用户可以访问的页面编码列表
setPages(state, pages) {
state.pages = pages;
},
//设置用户可以访问页面的权限集合
setPermissions(state, permissions) {
state.permissions = permissions;
},
setToken(state, token) {
state.token = token
setToken(token)
},
setHasGetInfo(state, status) {
state.hasGetInfo = status
},
setMessageCount(state, count) {
state.unreadCount = count
},
setMessageUnreadList(state, list) {
state.messageUnreadList = list
},
setMessageReadedList(state, list) {
state.messageReadedList = list
},
setMessageTrashList(state, list) {
state.messageTrashList = list
},
updateMessageContentStore(state, {
msg_id,
content
}) {
state.messageContentStore[msg_id] = content
},
moveMsg(state, {
from,
to,
msg_id
}) {
const index = state[from].findIndex(_ => _.msg_id === msg_id)
const msgItem = state[from].splice(index, 1)[0]
msgItem.loading = false
state[to].unshift(msgItem)
}
},
getters: {
messageUnreadCount: state => state.messageUnreadList.length,
messageReadedCount: state => state.messageReadedList.length,
messageTrashCount: state => state.messageTrashList.length
},
actions: {
// 登录
handleLogin({
commit
}, {
userName,
password
}) {
userName = userName.trim()
return new Promise((resolve, reject) => {
login({
userName,
password
}).then(res => {
const data = res.data
if (data.code === 200 && data && data.data) {
commit('setToken', data.data)
} else {
}
resolve(res)
}).catch(err => {
reject(err)
})
})
},
// 退出登录
handleLogOut({
state,
commit
}) {
return new Promise((resolve, reject) => {
// 如果登录需要请求接口,则使用如下(1)的ajax请求,否则使用(2)的本地退出方式
// 1.远程接口退出登录方式
// logout(state.token).then(() => {
// commit('setToken', '')
// commit('setAccess', [])
// commit('setPages', [])
// resolve()
// }).catch(err => {
// reject(err)
// })
// 2.本地退出登录方式
// 如果你的退出登录无需请求接口,则可以直接使用下面三行代码而无需使用logout调用接口
commit('setToken', '')
commit('setAccess', [])
commit('setPages', [])
commit('setPermissions', {})
setTagNavListInLocalstorage([]);
resolve()
})
},
// 获取用户相关信息
getUserInfo({
state,
commit
}) {
return new Promise((resolve, reject) => {
try {
getUserInfo(state.token).then(res => {
const data = res.data.data
commit('setAvator', data.avator)
commit('setUserName', data.user_name)
commit('setUserGuid', data.user_guid)
commit('setAccess', data.access)
commit('setPages', getUnion(data.pages, staticRouters))
commit('setPermissions', data.permissions)
commit("setUserType", data.user_type);
commit('setHasGetInfo', true)
resolve(data)
}).catch(err => {
reject(err)
})
} catch (error) {
reject(error)
}
})
},
// 此方法用来获取未读消息条数,接口只返回数值,不返回消息列表
getUnreadMessageCount({
state,
commit
}) {
getUnreadCount().then(res => {
const {
data
} = res
commit('setMessageCount', data)
})
},
// 获取消息列表,其中包含未读、已读、回收站三个列表
getMessageList({
state,
commit
}) {
return new Promise((resolve, reject) => {
getMessage().then(res => {
const {
unread,
readed,
trash
} = res.data.data
commit('setMessageUnreadList', unread.sort((a, b) => new Date(b.create_time) - new Date(a.create_time)))
commit('setMessageReadedList', readed.map(_ => {
_.loading = false
return _
}).sort((a, b) => new Date(b.create_time) - new Date(a.create_time)))
commit('setMessageTrashList', trash.map(_ => {
_.loading = false
return _
}).sort((a, b) => new Date(b.create_time) - new Date(a.create_time)))
resolve()
}).catch(error => {
reject(error)
})
})
},
// 根据当前点击的消息的id获取内容
getContentByMsgId({
state,
commit
}, {
msg_id
}) {
return new Promise((resolve, reject) => {
let contentItem = state.messageContentStore[msg_id]
if (contentItem) {
resolve(contentItem)
} else {
getContentByMsgId(msg_id).then(res => {
const content = res.data.data
commit('updateMessageContentStore', {
msg_id,
content
})
resolve(content)
})
}
})
},
// 把一个未读消息标记为已读
hasRead({
state,
commit
}, {
msg_id
}) {
return new Promise((resolve, reject) => {
hasRead(msg_id).then(() => {
commit('moveMsg', {
from: 'messageUnreadList',
to: 'messageReadedList',
msg_id
})
commit('setMessageCount', state.unreadCount - 1)
resolve()
}).catch(error => {
reject(error)
})
})
},
// 删除一个已读消息到回收站
removeReaded({
commit
}, {
msg_id
}) {
return new Promise((resolve, reject) => {
removeReaded(msg_id).then(() => {
commit('moveMsg', {
from: 'messageReadedList',
to: 'messageTrashList',
msg_id
})
resolve()
}).catch(error => {
reject(error)
})
})
},
// 还原一个已删除消息到已读消息
restoreTrash({
commit
}, {
msg_id
}) {
return new Promise((resolve, reject) => {
restoreTrash(msg_id).then(() => {
commit('moveMsg', {
from: 'messageTrashList',
to: 'messageReadedList',
msg_id
})
resolve()
}).catch(error => {
reject(error)
})
})
}
}
}
|
import React, { useEffect, useState } from 'react';
import { observer } from 'mobx-react-lite';
import { useStore } from '../../../stores';
import { useHistory } from 'react-router-dom';
import PictureCardList from './PicutreCardList';
import ActionButton from '../../../components/elements/Button/ActionButton';
import GalleryIcon from '../../../assets/icons/gallery.svg';
import { realtimeDB } from '../../../firebase';
import { nanoid } from 'nanoid';
import { LoadingSpinner } from '../../../components';
import { useVisible } from 'react-hooks-visible';
function PictureFeed() {
const store = useStore();
const [pictures, setPictures] = useState([]);
const [initialLoading, setLoading] = useState(true);
const [fetching, setFetchingState] = useState(false);
const [fetchedAll, setFetchedAll] = useState(false); // Whether all pictures have been fetched
const [targetRef, visible] = useVisible(); // Check if the bottom spinner is visible
const history = useHistory();
useEffect(() => {
const livePictures = realtimeDB.ref('live_feed').orderByChild('createdAt').limitToLast(10);
livePictures.on('child_added', (data) => {
setPictures((prevState) => {
return [{ ...data.val(), id: nanoid() }, ...prevState];
});
});
livePictures.once('value', () => {
setLoading(false);
});
return () => {
livePictures.off();
};
}, []);
// If reached page bottom, fetch more pictures
useEffect(() => {
if (visible && !fetching) {
setFetchingState(true);
const lastPictureTimestamp = pictures[pictures.length - 1].createdAt - 1;
const picturesQuery = realtimeDB.ref(`live_feed`).orderByChild('createdAt').endAt(lastPictureTimestamp).limitToLast(10);
picturesQuery.once('value', (snapshot) => {
const snapshotValue = snapshot.val();
if (snapshotValue) {
const newPictures = Object.values(snapshotValue)
.reverse()
.map((picture) => ({ ...picture, id: nanoid() }));
setPictures((prevState) => [...prevState, ...newPictures]);
setFetchingState(false);
} else {
// Fetched all pictures
setFetchedAll(true);
}
});
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [visible]);
return (
<div>
{initialLoading ? (
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', margin: '25px 0' }}>
<p style={{ fontSize: 17 }}>טוען ...</p>
<LoadingSpinner />
</div>
) : (
<>
<PictureCardList pictures={pictures} />
{!fetchedAll && (
<div ref={targetRef} style={{ display: 'flex', justifyContent: 'center', margin: '25px 0' }}>
<LoadingSpinner />
</div>
)}
<div style={{ position: 'sticky', bottom: 20, display: 'flex', justifyContent: 'flex-end' }}>
<ActionButton
onClick={() =>
history.push(
store.userStore.user ? '/upload-image?returnUrl=/live' : `/sign-up?returnUrl=/upload-image?returnUrl=/live`
)
}
icon={GalleryIcon}
>
העלאת תמונה
</ActionButton>
</div>
</>
)}
</div>
);
}
export default observer(PictureFeed);
|
export const SET_LOGIN_STATE = 'SET_LOGIN_STATE';// 设置登录状态
export const SET_ROUTER_MAP = 'SET_ROUTER_MAP';// 设置路由映射
export const SET_PREVIOUS_ROUTER = 'SET_PREVIOUS_ROUTER';// 设置前一个路由
export const SET_CUR_ROUTER = 'SET_CUR_ROUTER';// 设置当前路由
export const SET_DIRECTION = 'SET_DIRECTION'; // 设置路由方向
export const SET_ACCOUNT = 'SET_ACCOUNT'; // 设置账户
export const SET_BALANCES = 'SET_BALANCES'; // 设置余额
export const SET_NETWORK = 'SET_NETWORK'; // 设置网络
export const SET_SETTING = 'SET_SETTING'; // 设置配置
export const SET_MARKET = 'SET_MARKET'; // 设置行情
export const SET_CURRENCY_UNIT = 'SET_CURRENCY_UNIT'; // 设置货币单位
export const SET_LANGUAGE = 'SET_LANGUAGE'; // 设置语种
export const SET_GESTUREPWD = 'SET_GESTUREPWD'; // 设置手势密码
export const SET_ACTIVATED_MAP = 'SET_ACTIVATED_MAP'; // 设置激活
export const SET_DEFAULT_ADDRESS = 'SET_DEFAULT_ADDRESS'; // 设置默认地址
export const SET_PASSWORD_MAP = 'SET_PASSWORD_MAP'; // 设置密码
export const SET_TOKEN_CONFIG = 'SET_TOKEN_CONFIG'; // 设置配置版本
export const SET_PRIVACY_MODE = 'SET_PRIVACY_MODE'; // 设置隐私模式
export const SET_APP_VERSION = 'SET_APP_VERSION'; // 设置app版本号
export const SET_MYTOKEN_API = 'SET_MYTOKEN_API'; // 设置请求行情的api地址
|
const puppeteer = require('puppeteer');
const os = require('os');
const path = require('path');
const { v4: uuidv4 } = require('uuid');
const tmpdir = os.tmpdir();
const env = process.env.NODE_ENV || 'development';
const config = require(`../config/${env}.json`);
let backendUrl = config.backendUrl;
async function shoot(url) {
const fullUrl = backendUrl+url;
console.log(`env: ${env}, fullUrl: ${fullUrl}, BACKEND_SERVICE_HOST: ${process.env.BACKEND_SERVICE_HOST}, BACKEND_SERVICE_PORT: ${process.env.BACKEND_SERVICE_PORT}`);
const browser = await puppeteer.launch({
args: ['--disable-dev-shm-usage', '--no-sandbox', '--disable-setuid-sandbox']
});
const page = await browser.newPage();
await page.goto(fullUrl, {waitUntil: 'networkidle0'});
// FRAGILE: we're poluting the tmp folder and not cleaning it up
const fileAndPath = path.join(tmpdir, uuidv4()+'.pdf');
await page.setCacheEnabled(false);
await page.pdf({
printBackground: true,
path: fileAndPath,
margin: {
top: '1in',
right: '0in',
bottom: '0.5in',
left: '0in'
}
});
await browser.close();
return fileAndPath;
}
module.exports = shoot;
|
"use strict";
/* eslint-env browser */
////////////////////
//// Polyfills /////
////////////////////
//------------//
//// ES2015 ////
//------------//
// Drops anything after the decimal. Similar to Math.floor but doesn't matter for negatives
if(!Math.trunc)
{
Math.trunc = function trunc(x)
{
x = +x; // eslint-disable-line no-param-reassign
return (x-(x%1)) || (!isFinite(x) || x===0 ? x : (x<0 ? -0 : 0));
};
}
////////////////
//// Custom ////
////////////////
// Returns a truly random number, taking advantage of window.crypto if available
if(!Math.trueRandom)
{
Math.trueRandom = function trueRandom()
{
let result = Math.random();
try
{
if(window && window.chrome && window.crypto && window.crypto.getRandomValues) // eslint-disable-line @typescript-eslint/prefer-optional-chain
result = window.crypto.getRandomValues(new Uint32Array(1))[0] / 0x1_00_00_00_00;
}
catch
{
result = Math.random();
}
return result;
};
}
// Returns a random integer between min and max inclusive. Optional array of numbers to exclude
if(!Math.randomInt)
{
Math.randomInt = function randomInt(min, max, _excluding)
{
if(!_excluding || !Array.isArray(_excluding) || _excluding.length===0)
return Math.floor(Math.trueRandom() * (max - min + 1)) + min;
const excluding = Array.force(_excluding).map(i => Math.trunc(i)).filter(i => (i>=min && i<=max)).unique();
if(excluding.length===((max-min)+1))
throw new RangeError("randomIntExcluding called with excluding all nums, no possible return value");
let num = undefined;
do
num = Math.randomInt(min, max);
while(excluding.includes(num));
return num;
};
}
// Rotates a box of width x height by angleInDegrees (in degrees)
if(!Math.getRotatedDimensions)
{
Math.getRotatedDimensions = function getRotatedDimensions(angleInDegrees, width, height)
{
const angle = angleInDegrees * Math.PI / 180,
sin = Math.sin(angle),
cos = Math.cos(angle);
const x1 = cos * width,
y1 = sin * width;
const x2 = -sin * height,
y2 = cos * height;
const x3 = (cos * width) - (sin * height),
y3 = (sin * width) + (cos * height);
const minX = Math.min(0, x1, x2, x3),
maxX = Math.max(0, x1, x2, x3),
minY = Math.min(0, y1, y2, y3),
maxY = Math.max(0, y1, y2, y3);
return [Math.floor((maxX - minX)), Math.floor((maxY - minY))];
};
}
// Converts an angle from degrees to radians
if(!Math.degreesToRadians)
{
Math.degreesToRadians = function degreesToRadians(degrees)
{
return degrees * (Math.PI/180);
};
}
// Converts an angle from radians to degrees
if(!Math.radiansToDegrees)
{
Math.radiansToDegrees = function radiansToDegrees(radians)
{
return radians * (180/Math.PI);
};
}
// Rotates a point within a box by the angle (in degrees) and returns the place that point should now be
if(!Math.rotatePointInBox)
{
Math.rotatePointInBox = function rotatePointInBox(x, y, _angle, width, height)
{
const angle = Math.degreesToRadians(_angle);
const centerX = width / 2.0;
const centerY = height / 2.0;
const dx = x - centerX;
const dy = y - centerY;
const dist = Math.sqrt((dx * dx) + (dy * dy));
const a = Math.atan2(dy, dx) + angle;
const dx2 = Math.cos(a) * dist;
const dy2 = Math.sin(a) * dist;
return [dx2 + centerX, dy2 + centerY];
};
}
// Expands or contracts the given w x h box to mw x mh
if(!Math.expandToBounds)
{
Math.expandToBounds = function expandToBounds(w, h, mw, mh)
{
const scale = Math.min((mw/w), (mh/h));
return [w*scale, h*scale];
};
}
|
import React from 'react'
import { mount } from 'enzyme'
import Avatar from '../Avatar'
import AvatarEntry from '../index'
import PropProvider from '../../PropProvider'
describe('AvatarV2', () => {
test('Can render Avatar V2', () => {
const wrapper = mount(<Avatar />)
const o = wrapper.find('div.c-Avatar')
expect(o.length).toBe(1)
})
test('Can render Avatar V2, via PropProvider', () => {
const wrapper = mount(
<PropProvider value={{ Avatar: { version: 2 } }}>
<AvatarEntry />
</PropProvider>
)
const el = wrapper.find('div.c-Avatar')
const comp = wrapper.find('Avatar').first()
expect(el.length).toBe(1)
expect(comp.prop('version')).toBe(2)
})
test('Can renders Avatar (v1), with enhanced properties', () => {
const wrapper = mount(
<PropProvider value={{ Avatar: { version: 2 } }}>
<AvatarEntry />
</PropProvider>
)
const comp = wrapper.find('Avatar').last()
expect(comp.prop('borderColor')).toBe('white')
expect(comp.prop('withShadow')).toBe(true)
expect(comp.prop('showStatusBorderColor')).toBe(true)
})
test('Can renders with adjusted properties', () => {
const wrapper = mount(<AvatarEntry version={2} withBorder={false} />)
const comp = wrapper.find('Avatar').last()
expect(comp.prop('borderColor')).toBeFalsy()
expect(comp.prop('withShadow')).toBe(false)
})
})
|
/*!
* Quasar Framework v2.4.2
* (c) 2015-present Razvan Stoenescu
* Released under the MIT License.
*/
(function(e,i){"object"===typeof exports&&"undefined"!==typeof module?module.exports=i():"function"===typeof define&&define.amd?define(i):(e="undefined"!==typeof globalThis?globalThis:e||self,e.Quasar=e.Quasar||{},e.Quasar.iconSet=e.Quasar.iconSet||{},e.Quasar.iconSet.mdiV3=i())})(this,function(){"use strict";var e={name:"mdi-v3",type:{positive:"mdi-check-circle",negative:"mdi-alert",info:"mdi-information",warning:"mdi-exclamation"},arrow:{up:"mdi-arrow-up",right:"mdi-arrow-right",down:"mdi-arrow-down",left:"mdi-arrow-left",dropdown:"mdi-menu-down"},chevron:{left:"mdi-chevron-left",right:"mdi-chevron-right"},colorPicker:{spectrum:"mdi-gradient",tune:"mdi-tune",palette:"mdi-palette-swatch"},pullToRefresh:{icon:"mdi-refresh"},carousel:{left:"mdi-chevron-left",right:"mdi-chevron-right",up:"mdi-chevron-up",down:"mdi-chevron-down",navigationIcon:"mdi-circle"},chip:{remove:"mdi-close-circle",selected:"mdi-check"},datetime:{arrowLeft:"mdi-chevron-left",arrowRight:"mdi-chevron-right",now:"mdi-clock-outline",today:"mdi-calendar-today"},editor:{bold:"mdi-format-bold",italic:"mdi-format-italic",strikethrough:"mdi-format-strikethrough-variant",underline:"mdi-format-underline",unorderedList:"mdi-format-list-bulleted",orderedList:"mdi-format-list-numbered",subscript:"mdi-format-subscript",superscript:"mdi-format-superscript",hyperlink:"mdi-link",toggleFullscreen:"mdi-fullscreen",quote:"mdi-format-quote-close",left:"mdi-format-align-left",center:"mdi-format-align-center",right:"mdi-format-align-right",justify:"mdi-format-align-justify",print:"mdi-printer",outdent:"mdi-format-indent-decrease",indent:"mdi-format-indent-increase",removeFormat:"mdi-format-clear",formatting:"mdi-format-color-text",fontSize:"mdi-format-size",align:"mdi-format-align-left",hr:"mdi-minus",undo:"mdi-undo",redo:"mdi-redo",heading:"mdi-format-size",heading1:"mdi-format-header-1",heading2:"mdi-format-header-2",heading3:"mdi-format-header-3",heading4:"mdi-format-header-4",heading5:"mdi-format-header-5",heading6:"mdi-format-header-6",code:"mdi-code-tags",size:"mdi-format-size",size1:"mdi-numeric-1-box",size2:"mdi-numeric-2-box",size3:"mdi-numeric-3-box",size4:"mdi-numeric-4-box",size5:"mdi-numeric-5-box",size6:"mdi-numeric-6-box",size7:"mdi-numeric-7-box",font:"mdi-format-font",viewSource:"mdi-code-tags"},expansionItem:{icon:"mdi-chevron-down",denseIcon:"mdi-menu-down"},fab:{icon:"mdi-plus",activeIcon:"mdi-close"},field:{clear:"mdi-close-circle",error:"mdi-alert-circle"},pagination:{first:"mdi-chevron-double-left",prev:"mdi-chevron-left",next:"mdi-chevron-right",last:"mdi-chevron-double-right"},rating:{icon:"mdi-star"},stepper:{done:"mdi-check",active:"mdi-pencil",error:"mdi-alert"},tabs:{left:"mdi-chevron-left",right:"mdi-chevron-right",up:"mdi-chevron-up",down:"mdi-chevron-down"},table:{arrowUp:"mdi-arrow-up",warning:"mdi-alert",firstPage:"mdi-chevron-double-left",prevPage:"mdi-chevron-left",nextPage:"mdi-chevron-right",lastPage:"mdi-chevron-double-right"},tree:{icon:"mdi-play"},uploader:{done:"mdi-check",clear:"mdi-close",add:"mdi-plus-box",upload:"mdi-cloud-upload",removeQueue:"mdi-notification-clear-all",removeUploaded:"mdi-check-all"}};return e});
|
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@polymer/polymer/polymer-element.js"),require("@lrnwebcomponents/hax-body-behaviors/lib/HAXWiring.js"),require("@polymer/polymer/lib/utils/flattened-nodes-observer.js")):"function"==typeof define&&define.amd?define(["exports","@polymer/polymer/polymer-element.js","@lrnwebcomponents/hax-body-behaviors/lib/HAXWiring.js","@polymer/polymer/lib/utils/flattened-nodes-observer.js"],n):n((e=e||self).CodeSample={},e.polymerElement_js,e.HAXWiring_js,e.flattenedNodesObserver_js)}(this,function(e,n,t,r){"use strict";function a(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,n){return(i=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function s(e,n){return!n||"object"!=typeof n&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function l(e,n,t){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,n,t){var r=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=o(e)););return e}(e,n);if(r){var a=Object.getOwnPropertyDescriptor(r,n);return a.get?a.get.call(t):a.value}})(e,n,t||e)}function c(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function u(){var e=c(["\n <style>\n /*\n\n Atom One Dark by Daniel Gamage\n Original One Dark Syntax theme from https://github.com/atom/one-dark-syntax\n\n base: #282c34\n mono-1: #abb2bf\n mono-2: #818896\n mono-3: #5c6370\n hue-1: #56b6c2\n hue-2: #61aeee\n hue-3: #c678dd\n hue-4: #98c379\n hue-5: #e06c75\n hue-5-2: #be5046\n hue-6: #d19a66\n hue-6-2: #e6c07b\n\n */\n\n .hljs {\n display: block;\n overflow-x: auto;\n color: var(--code-sample-color, #abb2bf);\n background: var(--code-sample-background, #282c34);\n }\n\n .hljs-comment,\n .hljs-quote {\n color: #5c6370;\n font-style: italic;\n }\n\n .hljs-doctag,\n .hljs-keyword,\n .hljs-formula {\n color: #c678dd;\n }\n\n .hljs-section,\n .hljs-name,\n .hljs-selector-tag,\n .hljs-deletion,\n .hljs-subst,\n .hljs-tag {\n color: #e06c75;\n }\n\n .hljs-literal {\n color: #56b6c2;\n }\n\n .hljs-string,\n .hljs-regexp,\n .hljs-addition,\n .hljs-attribute,\n .hljs-meta-string {\n color: #98c379;\n }\n\n .hljs-built_in,\n .hljs-class .hljs-title {\n color: #e6c07b;\n }\n\n .hljs-attr,\n .hljs-variable,\n .hljs-template-variable,\n .hljs-type,\n .hljs-selector-class,\n .hljs-selector-attr,\n .hljs-selector-pseudo,\n .hljs-number {\n color: #d19a66;\n }\n\n .hljs-symbol,\n .hljs-bullet,\n .hljs-link,\n .hljs-meta,\n .hljs-selector-id,\n .hljs-title {\n color: #61aeee;\n }\n\n .hljs-emphasis {\n font-style: italic;\n }\n\n .hljs-strong {\n font-weight: bold;\n }\n\n .hljs-link {\n text-decoration: underline;\n }\n\n .hljs-params {\n color: #e6c07b;\n }\n </style>\n"]);return u=function(){return e},e}var d=n.html(u()),g={},p=[],h=Object.keys,m={},b={},f=/^(no-?highlight|plain|text)$/i,v=/\blang(?:uage)?-([\w-]+)\b/i,y=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,E="</span>",_={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};function N(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function O(e){return e.nodeName.toLowerCase()}function R(e,n){var t=e&&e.exec(n);return t&&0===t.index}function C(e){return f.test(e)}function w(e){var n,t={},r=Array.prototype.slice.call(arguments,1);for(n in e)t[n]=e[n];return r.forEach(function(e){for(n in e)t[n]=e[n]}),t}function M(e){var n=[];return function e(t,r){for(var a=t.firstChild;a;a=a.nextSibling)3===a.nodeType?r+=a.nodeValue.length:1===a.nodeType&&(n.push({event:"start",offset:r,node:a}),r=e(a,r),O(a).match(/br|hr|img|input/)||n.push({event:"stop",offset:r,node:a}));return r}(e,0),n}function x(e){function n(e){return e&&e.source||e}function t(t,r){return new RegExp(n(t),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}!function r(a,o){if(!a.compiled){if(a.compiled=!0,a.keywords=a.keywords||a.beginKeywords,a.keywords){var i={},s=function(n,t){e.case_insensitive&&(t=t.toLowerCase()),t.split(" ").forEach(function(e){var t=e.split("|");i[t[0]]=[n,t[1]?Number(t[1]):1]})};"string"==typeof a.keywords?s("keyword",a.keywords):h(a.keywords).forEach(function(e){s(e,a.keywords[e])}),a.keywords=i}a.lexemesRe=t(a.lexemes||/\w+/,!0),o&&(a.beginKeywords&&(a.begin="\\b("+a.beginKeywords.split(" ").join("|")+")\\b"),a.begin||(a.begin=/\B|\b/),a.beginRe=t(a.begin),a.endSameAsBegin&&(a.end=a.begin),a.end||a.endsWithParent||(a.end=/\B|\b/),a.end&&(a.endRe=t(a.end)),a.terminator_end=n(a.end)||"",a.endsWithParent&&o.terminator_end&&(a.terminator_end+=(a.end?"|":"")+o.terminator_end)),a.illegal&&(a.illegalRe=t(a.illegal)),null==a.relevance&&(a.relevance=1),a.contains||(a.contains=[]),a.contains=Array.prototype.concat.apply([],a.contains.map(function(e){return function(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map(function(n){return w(e,{variants:null},n)})),e.cached_variants||e.endsWithParent&&[w(e)]||[e]}("self"===e?a:e)})),a.contains.forEach(function(e){r(e,a)}),a.starts&&r(a.starts,o);var l=a.contains.map(function(e){return e.beginKeywords?"\\.?(?:"+e.begin+")\\.?":e.begin}).concat([a.terminator_end,a.illegal]).map(n).filter(Boolean);a.terminators=l.length?t(function(e,t){for(var r=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,a=0,o="",i=0;i<e.length;i++){var s=a,l=n(e[i]);for(i>0&&(o+=t);l.length>0;){var c=r.exec(l);if(null==c){o+=l;break}o+=l.substring(0,c.index),l=l.substring(c.index+c[0].length),"\\"==c[0][0]&&c[1]?o+="\\"+String(Number(c[1])+s):(o+=c[0],"("==c[0]&&a++)}}return o}(l,"|"),!0):{exec:function(){return null}}}}(e)}function j(e,n,t,r){function a(e,n){var t=c.case_insensitive?n[0].toLowerCase():n[0];return e.keywords.hasOwnProperty(t)&&e.keywords[t]}function o(e,n,t,r){var a='<span class="'+(r?"":_.classPrefix);return(a+=e+'">')+n+(t?"":E)}function i(){p+=null!=d.subLanguage?function(){var e="string"==typeof d.subLanguage;if(e&&!m[d.subLanguage])return N(h);var n=e?j(d.subLanguage,h,!0,g[d.subLanguage]):S(h,d.subLanguage.length?d.subLanguage:void 0);return d.relevance>0&&(b+=n.relevance),e&&(g[d.subLanguage]=n.top),o(n.language,n.value,!1,!0)}():function(){var e,n,t,r;if(!d.keywords)return N(h);for(r="",n=0,d.lexemesRe.lastIndex=0,t=d.lexemesRe.exec(h);t;)r+=N(h.substring(n,t.index)),(e=a(d,t))?(b+=e[1],r+=o(e[0],N(t[0]))):r+=N(t[0]),n=d.lexemesRe.lastIndex,t=d.lexemesRe.exec(h);return r+N(h.substr(n))}(),h=""}function s(e){p+=e.className?o(e.className,"",!0):"",d=Object.create(e,{parent:{value:d}})}function l(e,n){if(h+=e,null==n)return i(),0;var r=function(e,n){var t,r,a;for(t=0,r=n.contains.length;t<r;t++)if(R(n.contains[t].beginRe,e))return n.contains[t].endSameAsBegin&&(n.contains[t].endRe=(a=n.contains[t].beginRe.exec(e)[0],new RegExp(a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"m"))),n.contains[t]}(n,d);if(r)return r.skip?h+=n:(r.excludeBegin&&(h+=n),i(),r.returnBegin||r.excludeBegin||(h=n)),s(r),r.returnBegin?0:n.length;var a=function e(n,t){if(R(n.endRe,t)){for(;n.endsParent&&n.parent;)n=n.parent;return n}if(n.endsWithParent)return e(n.parent,t)}(d,n);if(a){var o=d;o.skip?h+=n:(o.returnEnd||o.excludeEnd||(h+=n),i(),o.excludeEnd&&(h=n));do{d.className&&(p+=E),d.skip||d.subLanguage||(b+=d.relevance),d=d.parent}while(d!==a.parent);return a.starts&&(a.endSameAsBegin&&(a.starts.endRe=a.endRe),s(a.starts)),o.returnEnd?0:n.length}if(function(e,n){return!t&&R(n.illegalRe,e)}(n,d))throw new Error('Illegal lexeme "'+n+'" for mode "'+(d.className||"<unnamed>")+'"');return h+=n,n.length||1}var c=D(e);if(!c)throw new Error('Unknown language: "'+e+'"');x(c);var u,d=r||c,g={},p="";for(u=d;u!==c;u=u.parent)u.className&&(p=o(u.className,"",!0)+p);var h="",b=0;try{for(var f,v,y=0;d.terminators.lastIndex=y,f=d.terminators.exec(n);)v=l(n.substring(y,f.index),f[0]),y=f.index+v;for(l(n.substr(y)),u=d;u.parent;u=u.parent)u.className&&(p+=E);return{relevance:b,value:p,language:e,top:d}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{relevance:0,value:N(n)};throw e}}function S(e,n){n=n||_.languages||h(m);var t={relevance:0,value:N(e)},r=t;return n.filter(D).filter(L).forEach(function(n){var a=j(n,e,!1);a.language=n,a.relevance>r.relevance&&(r=a),a.relevance>t.relevance&&(r=t,t=a)}),r.language&&(t.second_best=r),t}function k(e){return _.tabReplace||_.useBR?e.replace(y,function(e,n){return _.useBR&&"\n"===e?"<br>":_.tabReplace?n.replace(/\t/g,_.tabReplace):""}):e}function T(e){var n,t,r,a,o,i=function(e){var n,t,r,a,o=e.className+" ";if(o+=e.parentNode?e.parentNode.className:"",t=v.exec(o))return D(t[1])?t[1]:"no-highlight";for(n=0,r=(o=o.split(/\s+/)).length;n<r;n++)if(C(a=o[n])||D(a))return a}(e);C(i)||(_.useBR?(n=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n"):n=e,o=n.textContent,r=i?j(i,o,!0):S(o),(t=M(n)).length&&((a=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=r.value,r.value=function(e,n,t){var r=0,a="",o=[];function i(){return e.length&&n.length?e[0].offset!==n[0].offset?e[0].offset<n[0].offset?e:n:"start"===n[0].event?e:n:e.length?e:n}function s(e){a+="<"+O(e)+p.map.call(e.attributes,function(e){return" "+e.nodeName+'="'+N(e.value).replace('"',""")+'"'}).join("")+">"}function l(e){a+="</"+O(e)+">"}function c(e){("start"===e.event?s:l)(e.node)}for(;e.length||n.length;){var u=i();if(a+=N(t.substring(r,u[0].offset)),r=u[0].offset,u===e){o.reverse().forEach(l);do{c(u.splice(0,1)[0]),u=i()}while(u===e&&u.length&&u[0].offset===r);o.reverse().forEach(s)}else"start"===u[0].event?o.push(u[0].node):o.pop(),c(u.splice(0,1)[0])}return a+N(t.substr(r))}(t,M(a),o)),r.value=k(r.value),e.innerHTML=r.value,e.className=function(e,n,t){var r=n?b[n]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(r)&&a.push(r),a.join(" ").trim()}(e.className,i,r.language),e.result={language:r.language,re:r.relevance},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.relevance}))}function A(){if(!A.called){A.called=!0;var e=document.querySelectorAll("pre code");p.forEach.call(e,T)}}function D(e){return e=(e||"").toLowerCase(),m[e]||m[b[e]]}function L(e){var n=D(e);return n&&!n.disableAutodetect}g.highlight=j,g.highlightAuto=S,g.fixMarkup=k,g.highlightBlock=T,g.configure=function(e){_=w(_,e)},g.initHighlighting=A,g.initHighlightingOnLoad=function(){addEventListener("DOMContentLoaded",A,!1),addEventListener("load",A,!1)},g.registerLanguage=function(e,n){var t=m[e]=n(g);t.aliases&&t.aliases.forEach(function(n){b[n]=e})},g.listLanguages=function(){return h(m)},g.getLanguage=D,g.autoDetection=L,g.inherit=w,g.IDENT_RE="[a-zA-Z]\\w*",g.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",g.NUMBER_RE="\\b\\d+(\\.\\d+)?",g.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",g.BINARY_NUMBER_RE="\\b(0b[01]+)",g.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",g.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},g.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[g.BACKSLASH_ESCAPE]},g.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[g.BACKSLASH_ESCAPE]},g.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},g.COMMENT=function(e,n,t){var r=g.inherit({className:"comment",begin:e,end:n,contains:[]},t||{});return r.contains.push(g.PHRASAL_WORDS_MODE),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),r},g.C_LINE_COMMENT_MODE=g.COMMENT("//","$"),g.C_BLOCK_COMMENT_MODE=g.COMMENT("/\\*","\\*/"),g.HASH_COMMENT_MODE=g.COMMENT("#","$"),g.NUMBER_MODE={className:"number",begin:g.NUMBER_RE,relevance:0},g.C_NUMBER_MODE={className:"number",begin:g.C_NUMBER_RE,relevance:0},g.BINARY_NUMBER_MODE={className:"number",begin:g.BINARY_NUMBER_RE,relevance:0},g.CSS_NUMBER_MODE={className:"number",begin:g.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},g.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[g.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[g.BACKSLASH_ESCAPE]}]},g.TITLE_MODE={className:"title",begin:g.IDENT_RE,relevance:0},g.UNDERSCORE_TITLE_MODE={className:"title",begin:g.UNDERSCORE_IDENT_RE,relevance:0},g.METHOD_GUARD={begin:"\\.\\s*"+g.UNDERSCORE_IDENT_RE,relevance:0};function B(){var e=c(['\n<style>:host {\n display: block;\n}\n\n:host([hidden]),\n[hidden] {\n display: none;\n}\n\npre {\n margin: 0;\n @apply --code-sample-pre;\n}\n\npre, code {\n font-family: var(--code-sample-font-family, Operator Mono, Inconsolata, Roboto Mono, monaco, consolas, monospace);\n font-size: var(--code-sample-font-size, 0.875rem);\n}\n\n.hljs {\n padding: 0 1.25rem;\n line-height: var(--code-sample-line-height, 1.3);\n @apply --code-sample-hljs;\n}\n\n.demo:not(:empty) {\n padding: var(--code-sample-demo-padding, 0 0 1.25rem);\n @apply --code-sample-demo-not-empty;\n}\n\n.demo {\n @apply --code-sample-demo;\n}\n\n#code-container {\n position: relative;\n @apply --code-sample-code-container;\n}\n\n#code-container:hover {\n @apply --code-sample-code-container-hover;\n}\n\n#code-container:hover > button {\n @apply --code-sample-code-container-hover-button;\n}\n\nbutton {\n background: var(--code-sample-copy-button-bg-color, #e0e0e0);\n border: none;\n cursor: pointer;\n display: block;\n position: absolute;\n right: 0;\n top: 0;\n text-transform: uppercase;\n @apply --code-sample-copy-clipboard-button;\n}</style>\n<div id="theme">','</div>\n<div id="demo" class="demo"></div>\n<slot id="content"></slot>\n\n<div id="code-container">\n <button type="button" hidden="[[!copyClipboardButton]]" id="copyButton" title="Copy to clipboard" on-click="_copyToClipboard">Copy</button>\n <pre id="code"></pre>\n</div>']);return B=function(){return e},e}g.registerLanguage("javascript",function(e){var n="[A-Za-z$_][0-9A-Za-z$_]*",t={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},r={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},a={className:"subst",begin:"\\$\\{",end:"\\}",keywords:t,contains:[]},o={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,a]};a.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,r,e.REGEXP_MODE];var i=a.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx"],keywords:t,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{begin:/[{,]\s*/,relevance:0,contains:[{begin:n+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:n,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+n+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:i}]}]},{begin:/</,end:/(\/\w+|\w+\/)>/,subLanguage:"xml",contains:[{begin:/<\w+\s*\/>/,skip:!0},{begin:/<\w+/,end:/(\/\w+|\w+\/)>/,skip:!0,contains:[{begin:/<\w+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:n}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:i}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor get set",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}),g.registerLanguage("xml",function(e){var n={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:"[A-Za-z0-9\\._:-]+",relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/[^\s"'=<>`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],case_insensitive:!0,contains:[{className:"meta",begin:"<!DOCTYPE",end:">",relevance:10,contains:[{begin:"\\[",end:"\\]"}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?(php)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]},{className:"tag",begin:"<style(?=\\s|>|$)",end:">",keywords:{name:"style"},contains:[n],starts:{end:"</style>",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"<script(?=\\s|>|$)",end:">",keywords:{name:"script"},contains:[n],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml"]}},{className:"tag",begin:"</?",end:"/?>",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},n]}]}}),window.hljs=g;var I=function(e){function c(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,c),s(this,o(c).apply(this,arguments))}var u,p,h;return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&i(e,n)}(c,n.PolymerElement),u=c,h=[{key:"template",get:function(){return n.html(B(),this.constructor.theme||d)}},{key:"haxProperties",get:function(){return{canScale:!0,canPosition:!0,canEditSource:!1,gizmo:{title:"Code sample",description:"A sample of code highlighted in the page",icon:"icons:code",color:"blue",groups:["Code","Development"],meta:{author:"kuscamara"}},settings:{quick:[],configure:[{slot:"",slotWrapper:"template",slotAttributes:{"preserve-content":"preserve-content"},title:"Source",description:"The URL for this video.",inputMethod:"code-editor"},{attribute:"copy-clipboard-button",title:"Copy to clipboard button",description:"button in top right that says copy to clipboard",inputMethod:"boolean"}],advanced:[]}}}},{key:"properties",get:function(){var e={copyClipboardButton:{type:Boolean,value:!1},theme:{type:String,observer:"_themeChanged"},render:{type:Boolean,value:!1},type:{type:String}};return l(o(c),"properties",this)&&(e=Object.assign(e,l(o(c),"properties",this))),e}},{key:"tag",get:function(){return"code-sample"}}],(p=[{key:"connectedCallback",value:function(){var e=this;l(o(c.prototype),"connectedCallback",this).call(this),this.HAXWiring=new t.HAXWiring,this.HAXWiring.setup(c.haxProperties,c.tag,this),setTimeout(function(){e.querySelector("template")?e._observer=new r.FlattenedNodesObserver(e.$.content,function(){return e._updateContent()}):e.childNodes.length&&console.error("<code-sample>:","content must be provided inside a <template> tag")})}},{key:"disconnectedCallback",value:function(){l(o(c.prototype),"disconnectedCallback",this).call(this),this._observer&&(this._observer.disconnect(),this._observer=null)}},{key:"_themeChanged",value:function(e){if(e&&this._themeCanBeChanged()){var n=this.$.theme.querySelector("style");this.$.theme.replaceChild(document.importNode(e.content,!0),n)}}},{key:"_themeCanBeChanged",value:function(){if(window.ShadyCSS)console.error("<code-sample>:","Theme changing is not supported in Shady DOM.");else{if("TEMPLATE"===this.theme.tagName)return!0;console.error("<code-sample>:","theme must be a template")}}},{key:"_updateContent",value:function(){this._code&&this._code.parentNode.removeChild(this._code),this._demo&&(this.$.demo.innerHTML="");var e=this._getCodeTemplate();this.render&&(this._demo=this.$.demo.appendChild(document.importNode(e.content,!0))),this._highlight(e.innerHTML)}},{key:"_getCodeTemplate",value:function(){var e=r.FlattenedNodesObserver.getFlattenedNodes(this.$.content);return[].filter.call(e,function(e){return e.nodeType===Node.ELEMENT_NODE})[0]}},{key:"_highlight",value:function(e){this._code=document.createElement("code"),this.type&&this._code.classList.add(this.type),this._code.innerHTML=this._entitize(this._cleanIndentation(e)),this.$.code.appendChild(this._code),g.highlightBlock(this._code)}},{key:"_cleanIndentation",value:function(e){var n=e.match(/\s*\n[\t\s]*/);return e.replace(new RegExp(n,"g"),"\n")}},{key:"_entitize",value:function(e){return String(e).replace(/</g,"<").replace(/>/g,">").replace(/=""/g,"").replace(/=>/g,"=>").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}},{key:"_copyToClipboard",value:function(e){var n=e.target,t=this._textAreaWithClonedContent();t.select();try{document.execCommand("copy",!1),n.textContent="Done"}catch(e){console.error(e),n.textContent="Error"}t.remove(),setTimeout(function(){n.textContent="Copy"},1e3)}},{key:"_textAreaWithClonedContent",value:function(){var e=document.createElement("textarea");return document.body.appendChild(e),e.value=this._cleanIndentation(this._getCodeTemplate().innerHTML),e}}])&&a(u.prototype,p),h&&a(u,h),c}();window.customElements.define(I.tag,I),e.CodeSample=I,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=code-sample.umd.js.map
|
import React, { PureComponent } from "react";
import { Layout } from "antd";
import { urlToList, getMenuMatches } from "../../utils";
import BaseMenu from "./base-menu";
const { Sider } = Layout;
/**
* 获得菜单子节点
* @memberof SiderMenu
*/
const getDefaultCollapsedSubMenus = (props, flatMenuKeys) => {
const {
location: { pathname }
} = props;
return urlToList(pathname)
.map(item => getMenuMatches(flatMenuKeys, item)[0])
.filter(item => item);
};
/**
* Recursively flatten the data
* [{path:string},{path:string}] => {path,path2}
* @param menu
*/
export const getFlatMenuKeys = menu =>
menu.reduce((keys, item) => {
keys.push(item.path);
if (item.children) {
return keys.concat(getFlatMenuKeys(item.children));
}
return keys;
}, []);
export default class SideMenu extends PureComponent {
flatMenuKeys = getFlatMenuKeys(this.props.menuData);
state = {
openKeys: getDefaultCollapsedSubMenus(this.props, this.flatMenuKeys)
};
static getDerivedStateFromProps(props, state) {
const { pathname } = state;
if (props.location.pathname !== pathname) {
return {
pathname: props.location.pathname,
openKeys: getDefaultCollapsedSubMenus(
props,
getFlatMenuKeys(props.menuData)
)
};
}
return null;
}
isMainMenu = key => {
const { menuData } = this.props;
return menuData.some(item => {
if (key) {
return item.key === key || item.path === key;
}
return false;
});
};
handleOpenChange = openKeys => {
const moreThanOne =
openKeys.filter(openKey => this.isMainMenu(openKey)).length > 1;
this.setState({
openKeys: moreThanOne ? [openKeys.pop()] : [...openKeys]
});
};
render() {
const { collapsed, theme, logo, onCollapse, userAuth } = this.props;
const { openKeys } = this.state;
const siderToMenuProps = collapsed ? {} : { openKeys };
console.log(openKeys, siderToMenuProps, "siderMenuOpenKeys");
return (
<Sider
trigger={null}
breakpoint="xxl"
width={200}
collapsible
onCollapse={onCollapse}
collapsed={collapsed}
theme={theme}
// style={{zIndex: "2000"}}
>
<div className="logo" id="logo">
{logo}
</div>
<BaseMenu
{...siderToMenuProps}
handleOpenChange={this.handleOpenChange}
onOpenChange={this.handleOpenChange}
{...this.props}
userAuth={userAuth}
mode="inline"
className="base-menu"
/>
</Sider>
);
}
}
|
/* istanbul instrument in package npmdoc_generator_zf5 */
/*jslint
bitwise: true,
browser: true,
maxerr: 8,
maxlen: 96,
node: true,
nomen: true,
regexp: true,
stupid: true
*/
(function () {
'use strict';
var local;
// run shared js-env code - pre-init
(function () {
// init local
local = {};
// init modeJs
local.modeJs = (function () {
try {
return typeof navigator.userAgent === 'string' &&
typeof document.querySelector('body') === 'object' &&
typeof XMLHttpRequest.prototype.open === 'function' &&
'browser';
} catch (errorCaughtBrowser) {
return module.exports &&
typeof process.versions.node === 'string' &&
typeof require('http').createServer === 'function' &&
'node';
}
}());
// init global
local.global = local.modeJs === 'browser'
? window
: global;
// init utility2_rollup
local = local.global.utility2_rollup || local;
// init lib
local.local = local.npmdoc_generator_zf5 = local;
// init exports
if (local.modeJs === 'browser') {
local.global.utility2_npmdoc_generator_zf5 = local;
} else {
module.exports = local;
module.exports.__dirname = __dirname;
module.exports.module = module;
}
}());
}());
|
import React from 'react';
import { Icon } from 'antd-mobile';
export default () => (
<div style={{textAlign:'center',padding:'15px 0 10px 0'}}>
<Icon type={"loading"} size={'lg'} />
<p>努力加载中...</p>
</div>
);
|
declare module "utif" {
declare export type TiffTag = string[] | number[];
/**
* Each IFD is an object, keys are "tXYZ" (XYZ is a TIFF tag number), values are values of these tags.
* You can get the the dimension (and other properties, "metadata") of the image without decompressing pixel data.
* For more information on what each tag means, refer https://github.com/photopea/UTIF.js/blob/master/UTIF.js#L742 or TIFF 6 specification.
*/
declare export interface IFD {
[property: string]: TiffTag | number | Uint8Array;
data: Uint8Array;
width: number;
height: number;
}
/**
* Returns an array of "IFDs" (image file directories).
* @param buffer A Buffer or ArrayBuffer containing TIFF or EXIF data.
*/
declare export function decode(buffer: Buffer | ArrayBuffer): IFD[];
/**
* If there is an image inside the IFD, it is decoded and three new properties are added to the IFD: width, height and data.
* Note: TIFF files may have various number of channels and various color depth. The interpretation of data depends on many tags (see the TIFF 6 specification).
* @param buffer A Buffer or ArrayBuffer containing TIFF or EXIF data
* @param ifd The element of the output of UTIF.decode()
*/
declare export function decodeImage(
buffer: Buffer | ArrayBuffer,
ifd: IFD
): void;
/**
* Returns Uint8Array of the image in RGBA format, 8 bits per channel (ready to use in context2d.putImageData() etc.)
* @param ifd An image file directory
*/
declare export function toRGBA8(ifd: IFD): Uint8Array;
/**
* Returns an ArrayBuffer of the binary TIFF file.
* Note: No compression available right now.
* @param rgba A Uint8Array containing RGBA pixel data.
* @param w Width of the image.
* @param h Height of the image.
* @param metadata [optional] The image file directory which should be encoded.
*/
declare export function encodeImage(
rgba: Uint8Array,
w: number,
h: number,
metadata?: IFD
): ArrayBuffer;
/**
* Returns ArrayBuffer of binary data which can be used to encode EXIF data.
* @param ifds The array of IFDs (image file directories) to be encoded.
*/
declare export function encode(ifds: IFD[]): ArrayBuffer;
/**
* Replaces all Image elements in the document with Canvas elements.
* The attributes "id", "class" and "style" will be copied from the original Image to the new Canvas.
*/
declare export function replaceIMG(): void;
}
|
const execa = require('execa')
const run = (...args) => {
const p = execa(...args)
p.stdout.pipe(process.stdout)
p.stderr.pipe(process.stderr)
return p
}
module.exports = run;
|
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/deploy/assets/",n(n.s=80)}([function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(55));t.default=function(e,t,n){return t in e?(0,r.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(115)),o=a(n(113)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===i(r.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":i(e)}},function(e,t,n){(function(e,r){var o;
/*!
* Platform.js <https://mths.be/platform>
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
* Available under MIT license <https://mths.be/mit>
*/(function(){"use strict";var i={function:!0,object:!0},a=i[typeof window]&&window||this,s=i[typeof t]&&t,u=i[typeof e]&&e&&!e.nodeType&&e,c=s&&u&&"object"==typeof r&&r;!c||c.global!==c&&c.window!==c&&c.self!==c||(a=c);var f=Math.pow(2,53)-1,l=/\bOpera/,d=Object.prototype,h=d.hasOwnProperty,p=d.toString;function v(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function g(e){return e=_(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:v(e)}function m(e,t){for(var n in e)h.call(e,n)&&t(e[n],n,e)}function b(e){return null==e?v(e):p.call(e).slice(8,-1)}function y(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function w(e,t){var n=null;return function(e,t){var n=-1,r=e?e.length:0;if("number"==typeof r&&r>-1&&r<=f)for(;++n<r;)t(e[n],n,e);else m(e,t)}(e,function(r,o){n=t(n,r,o,e)}),n}function _(e){return String(e).replace(/^ +| +$/g,"")}var E=function e(t){var n=a,r=t&&"object"==typeof t&&"String"!=b(t);r&&(n=t,t=null);var o=n.navigator||{},i=o.userAgent||"";t||(t=i);var s,u,c=r?!!o.likeChrome:/\bChrome\b/.test(t)&&!/internal|\n/i.test(p.toString()),f=r?"Object":"ScriptBridgingProxyObject",d=r?"Object":"Environment",h=r&&n.java?"JavaPackage":b(n.java),v=r?"Object":"RuntimeObject",E=/\bJava/.test(h)&&n.java,I=E&&b(n.environment)==d,O=E?"a":"α",S=E?"b":"β",x=n.document||{},C=n.operamini||n.opera,A=l.test(A=r&&C?C["[[Class]]"]:b(C))?A:C=null,T=t,M=[],N=null,k=t==i,j=k&&C&&"function"==typeof C.version&&C.version(),D=function(e){return w(e,function(e,n){return e||RegExp("\\b"+(n.pattern||y(n))+"\\b","i").exec(t)&&(n.label||n)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),P=function(e){return w(e,function(e,n){return e||RegExp("\\b"+(n.pattern||y(n))+"\\b","i").exec(t)&&(n.label||n)})}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),R=L([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),U=function(e){return w(e,function(e,n,r){return e||(n[R]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(R)]||RegExp("\\b"+y(r)+"(?:\\b|\\w*\\d)","i").exec(t))&&r})}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),F=function(e){return w(e,function(e,n){var r=n.pattern||y(n);return!e&&(e=RegExp("\\b"+r+"(?:/[\\d.]+|[ \\w.]*)","i").exec(t))&&(e=function(e,t,n){var r={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(r=r[/[\d.]+$/.exec(e)])&&(e="Windows "+r),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),e=g(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(e,r,n.label||n)),e})}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function L(e){return w(e,function(e,n){var r=n.pattern||y(n);return!e&&(e=RegExp("\\b"+r+" *\\d+[.\\w_]*","i").exec(t)||RegExp("\\b"+r+" *\\w+-[\\w]*","i").exec(t)||RegExp("\\b"+r+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(t))&&((e=String(n.label&&!RegExp(r,"i").test(n.label)?n.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])&&(e[0]+=" "+e[1]),n=n.label||n,e=g(e[0].replace(RegExp(r,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),e})}if(D&&(D=[D]),U&&!R&&(R=L([U])),(s=/\bGoogle TV\b/.exec(R))&&(R=s[0]),/\bSimulator\b/i.test(t)&&(R=(R?R+" ":"")+"Simulator"),"Opera Mini"==P&&/\bOPiOS\b/.test(t)&&M.push("running in Turbo/Uncompressed mode"),"IE"==P&&/\blike iPhone OS\b/.test(t)?(U=(s=e(t.replace(/like iPhone OS/,""))).manufacturer,R=s.product):/^iP/.test(R)?(P||(P="Safari"),F="iOS"+((s=/ OS ([\d_]+)/i.exec(t))?" "+s[1].replace(/_/g,"."):"")):"Konqueror"!=P||/buntu/i.test(F)?U&&"Google"!=U&&(/Chrome/.test(P)&&!/\bMobile Safari\b/i.test(t)||/\bVita\b/.test(R))||/\bAndroid\b/.test(F)&&/^Chrome/.test(P)&&/\bVersion\//i.test(t)?(P="Android Browser",F=/\bAndroid\b/.test(F)?F:"Android"):"Silk"==P?(/\bMobi/i.test(t)||(F="Android",M.unshift("desktop mode")),/Accelerated *= *true/i.test(t)&&M.unshift("accelerated")):"PaleMoon"==P&&(s=/\bFirefox\/([\d.]+)\b/.exec(t))?M.push("identifying as Firefox "+s[1]):"Firefox"==P&&(s=/\b(Mobile|Tablet|TV)\b/i.exec(t))?(F||(F="Firefox OS"),R||(R=s[1])):!P||(s=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec(P))?(P&&!R&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(s+"/")+8))&&(P=null),(s=R||U||F)&&(R||U||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(F))&&(P=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(F)?F:s)+" Browser")):"Electron"==P&&(s=(/\bChrome\/([\d.]+)\b/.exec(t)||0)[1])&&M.push("Chromium "+s):F="Kubuntu",j||(j=function(e){return w(e,function(e,n){return e||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(t)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",y(P),"(?:Firefox|Minefield|NetFront)"])),(s=("iCab"==D&&parseFloat(j)>3?"WebKit":/\bOpera\b/.test(P)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(D)&&"WebKit"||!D&&/\bMSIE\b/i.test(t)&&("Mac OS"==F?"Tasman":"Trident")||"WebKit"==D&&/\bPlayStation\b(?! Vita\b)/i.test(P)&&"NetFront")&&(D=[s]),"IE"==P&&(s=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(P+=" Mobile",F="Windows Phone "+(/\+$/.test(s)?s:s+".x"),M.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(P="IE Mobile",F="Windows Phone 8.x",M.unshift("desktop mode"),j||(j=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=P&&"Trident"==D&&(s=/\brv:([\d.]+)/.exec(t))&&(P&&M.push("identifying as "+P+(j?" "+j:"")),P="IE",j=s[1]),k){if(function(e,t){var n=null!=e?typeof e[t]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(n)||"object"==n&&!e[t])}(n,"global"))if(E&&(T=(s=E.lang.System).getProperty("os.arch"),F=F||s.getProperty("os.name")+" "+s.getProperty("os.version")),I){try{j=n.require("ringo/engine").version.join("."),P="RingoJS"}catch(e){(s=n.system)&&s.global.system==n.system&&(P="Narwhal",F||(F=s[0].os||null))}P||(P="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(s=n.process)&&("object"==typeof s.versions&&("string"==typeof s.versions.electron?(M.push("Node "+s.versions.node),P="Electron",j=s.versions.electron):"string"==typeof s.versions.nw&&(M.push("Chromium "+j,"Node "+s.versions.node),P="NW.js",j=s.versions.nw)),P||(P="Node.js",T=s.arch,F=s.platform,j=(j=/[\d.]+/.exec(s.version))?j[0]:null));else b(s=n.runtime)==f?(P="Adobe AIR",F=s.flash.system.Capabilities.os):b(s=n.phantom)==v?(P="PhantomJS",j=(s=s.version||null)&&s.major+"."+s.minor+"."+s.patch):"number"==typeof x.documentMode&&(s=/\bTrident\/(\d+)/i.exec(t))?(j=[j,x.documentMode],(s=+s[1]+4)!=j[1]&&(M.push("IE "+j[1]+" mode"),D&&(D[1]=""),j[1]=s),j="IE"==P?String(j[1].toFixed(1)):j[0]):"number"==typeof x.documentMode&&/^(?:Chrome|Firefox)\b/.test(P)&&(M.push("masking as "+P+" "+j),P="IE",j="11.0",D=["Trident"],F="Windows");F=F&&g(F)}if(j&&(s=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(j)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(k&&o.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(N=/b/i.test(s)?"beta":"alpha",j=j.replace(RegExp(s+"\\+?$"),"")+("beta"==N?S:O)+(/\d+\+?/.exec(s)||"")),"Fennec"==P||"Firefox"==P&&/\b(?:Android|Firefox OS)\b/.test(F))P="Firefox Mobile";else if("Maxthon"==P&&j)j=j.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(R))"Xbox 360"==R&&(F=null),"Xbox 360"==R&&/\bIEMobile\b/.test(t)&&M.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(P)&&(!P||R||/Browser|Mobi/.test(P))||"Windows CE"!=F&&!/Mobi/i.test(t))if("IE"==P&&k)try{null===n.external&&M.unshift("platform preview")}catch(e){M.unshift("embedded")}else(/\bBlackBerry\b/.test(R)||/\bBB10\b/.test(t))&&(s=(RegExp(R.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||j)?(F=((s=[s,/BB10/.test(t)])[1]?(R=null,U="BlackBerry"):"Device Software")+" "+s[0],j=null):this!=m&&"Wii"!=R&&(k&&C||/Opera/.test(P)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==P&&/\bOS X (?:\d+\.){2,}/.test(F)||"IE"==P&&(F&&!/^Win/.test(F)&&j>5.5||/\bWindows XP\b/.test(F)&&j>8||8==j&&!/\bTrident\b/.test(t)))&&!l.test(s=e.call(m,t.replace(l,"")+";"))&&s.name&&(s="ing as "+s.name+((s=s.version)?" "+s:""),l.test(P)?(/\bIE\b/.test(s)&&"Mac OS"==F&&(F=null),s="identify"+s):(s="mask"+s,P=A?g(A.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(s)&&(F=null),k||(j=null)),D=["Presto"],M.push(s));else P+=" Mobile";(s=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(s=[parseFloat(s.replace(/\.(\d)$/,".0$1")),s],"Safari"==P&&"+"==s[1].slice(-1)?(P="WebKit Nightly",N="alpha",j=s[1].slice(0,-1)):j!=s[1]&&j!=(s[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(j=null),s[1]=(/\bChrome\/([\d.]+)/i.exec(t)||0)[1],537.36==s[0]&&537.36==s[2]&&parseFloat(s[1])>=28&&"WebKit"==D&&(D=["Blink"]),k&&(c||s[1])?(D&&(D[1]="like Chrome"),s=s[1]||((s=s[0])<530?1:s<532?2:s<532.05?3:s<533?4:s<534.03?5:s<534.07?6:s<534.1?7:s<534.13?8:s<534.16?9:s<534.24?10:s<534.3?11:s<535.01?12:s<535.02?"13+":s<535.07?15:s<535.11?16:s<535.19?17:s<536.05?18:s<536.1?19:s<537.01?20:s<537.11?"21+":s<537.13?23:s<537.18?24:s<537.24?25:s<537.36?26:"Blink"!=D?"27":"28")):(D&&(D[1]="like Safari"),s=(s=s[0])<400?1:s<500?2:s<526?3:s<533?4:s<534?"4+":s<535?5:s<537?6:s<538?7:s<601?8:"8"),D&&(D[1]+=" "+(s+="number"==typeof s?".x":/[.+]/.test(s)?"":"+")),"Safari"==P&&(!j||parseInt(j)>45)&&(j=s)),"Opera"==P&&(s=/\bzbov|zvav$/.exec(F))?(P+=" ",M.unshift("desktop mode"),"zvav"==s?(P+="Mini",j=null):P+="Mobile",F=F.replace(RegExp(" *"+s+"$"),"")):"Safari"==P&&/\bChrome\b/.exec(D&&D[1])&&(M.unshift("desktop mode"),P="Chrome Mobile",j=null,/\bOS X\b/.test(F)?(U="Apple",F="iOS 4.3+"):F=null),j&&0==j.indexOf(s=/[\d.]+$/.exec(F))&&t.indexOf("/"+s+"-")>-1&&(F=_(F.replace(s,""))),D&&!/\b(?:Avant|Nook)\b/.test(P)&&(/Browser|Lunascape|Maxthon/.test(P)||"Safari"!=P&&/^iOS/.test(F)&&/\bSafari\b/.test(D[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(P)&&D[1])&&(s=D[D.length-1])&&M.push(s),M.length&&(M=["("+M.join("; ")+")"]),U&&R&&R.indexOf(U)<0&&M.push("on "+U),R&&M.push((/^on /.test(M[M.length-1])?"":"on ")+R),F&&(s=/ ([\d.+]+)$/.exec(F),u=s&&"/"==F.charAt(F.length-s[0].length-1),F={architecture:32,family:s&&!u?F.replace(s[0],""):F,version:s?s[1]:null,toString:function(){var e=this.version;return this.family+(e&&!u?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(s=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(T))&&!/\bi686\b/i.test(T)?(F&&(F.architecture=64,F.family=F.family.replace(RegExp(" *"+s),"")),P&&(/\bWOW64\b/i.test(t)||k&&/\w(?:86|32)$/.test(o.cpuClass||o.platform)&&!/\bWin64; x64\b/i.test(t))&&M.unshift("32-bit")):F&&/^OS X/.test(F.family)&&"Chrome"==P&&parseFloat(j)>=39&&(F.architecture=64),t||(t=null);var W={};return W.description=t,W.layout=D&&D[0],W.manufacturer=U,W.name=P,W.prerelease=N,W.product=R,W.ua=t,W.version=P&&j,W.os=F||{architecture:null,family:null,version:null,toString:function(){return"null"}},W.parse=e,W.toString=function(){return this.description||""},W.version&&M.unshift(j),W.name&&M.unshift(P),F&&P&&(F!=String(F).split(" ")[0]||F!=P.split(" ")[0]&&!R)&&M.push(R?"("+F+")":"on "+F),M.length&&(W.description=M.join(" ")),W}();a.platform=E,void 0===(o=function(){return E}.call(t,n,t,e))||(e.exports=o)}).call(this)}).call(this,n(54)(e),n(36))},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(41)("wks"),o=n(28),i=n(9).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(131));t.default=r.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(79),a="object"==("undefined"==typeof self?"undefined":o()(self))&&self&&self.Object===Object&&self,s=i.a||a||Function("return this")();t.a=s},function(e,t,n){e.exports=!n(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(20),o=n(64),i=n(45),a=Object.defineProperty;t.f=n(7)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(9),o=n(3),i=n(65),a=n(21),s=n(14),u=function(e,t,n){var c,f,l,d=e&u.F,h=e&u.G,p=e&u.S,v=e&u.P,g=e&u.B,m=e&u.W,b=h?o:o[t]||(o[t]={}),y=b.prototype,w=h?r:p?r[t]:(r[t]||{}).prototype;for(c in h&&(n=t),n)(f=!d&&w&&void 0!==w[c])&&s(b,c)||(l=f?w[c]:n[c],b[c]=h&&"function"!=typeof w[c]?n[c]:g&&f?i(l,r):m&&w[c]==l?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((b.virtual||(b.virtual={}))[c]=l,e&u.R&&y&&!y[c]&&a(y,c,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(25));t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,r.default)(e)}},function(e,t,n){var r=n(60),o=n(46);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(46);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(61),o=n(40);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports={}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(19);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(8),o=n(24);e.exports=n(7)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){e.exports={default:n(117),__esModule:!0}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){e.exports={default:n(144),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(127)),o=i(n(31));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return function(e,t){if(Array.isArray(e))return e;if((0,r.default)(Object(e)))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var s,u=(0,o.default)(e);!(r=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){"use strict";(function(e){var r=n(1),o=n.n(r),i=n(6),a=n(146),s="object"==("undefined"==typeof exports?"undefined":o()(exports))&&exports&&!exports.nodeType&&exports,u=s&&"object"==o()(e)&&e&&!e.nodeType&&e,c=u&&u.exports===s?i.a.Buffer:void 0,f=(c?c.isBuffer:void 0)||a.a;t.a=f}).call(this,n(32)(e))},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=!0},function(e,t,n){"use strict";var r=n(143)(!0);n(66)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){e.exports={default:n(121),__esModule:!0}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r=n(9),o=n(3),i=n(29),a=n(34),s=n(8).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(4)},function(e,t,n){var r=n(10),o=n(3),i=n(18);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){n(125);for(var r=n(9),o=n(21),i=n(17),a=n(4)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var c=s[u],f=r[c],l=f&&f.prototype;l&&!l[a]&&o(l,a,c),i[c]=i.Array}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(8).f,o=n(14),i=n(4)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(3),o=n(9),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(29)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(41)("keys"),o=n(28);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(20),o=n(140),i=n(40),a=n(42)("IE_PROTO"),s=function(){},u=function(){var e,t=n(63)("iframe"),r=i.length;for(t.style.display="none",n(137).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[i[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(19);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(25));t.default=function(e){return Array.isArray(e)?e:(0,r.default)(e)}},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))o.call(n,c)&&(s[c]=n[c]);if(r){a=r(n);for(var f=0;f<a.length;f++)i.call(n,a[f])&&(s[a[f]]=n[a[f]])}}return s}},function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(i){"object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,c=36,f=1,l=26,d=38,h=700,p=72,v=128,g="-",m=/^xn--/,b=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=c-f,E=Math.floor,I=String.fromCharCode;function O(e){throw new RangeError(w[e])}function S(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function x(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+S((e=e.replace(y,".")).split("."),t).join(".")}function C(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function A(e){return S(e,function(e){var t="";return e>65535&&(t+=I((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=I(e)}).join("")}function T(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c}function M(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function N(e,t,n){var r=0;for(e=n?E(e/h):e>>1,e+=E(e/t);e>_*l>>1;r+=c)e=E(e/_);return E(r+(_+1)*e/(e+d))}function k(e){var t,n,r,o,i,a,s,d,h,m,b=[],y=e.length,w=0,_=v,I=p;for((n=e.lastIndexOf(g))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&O("not-basic"),b.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<y;){for(i=w,a=1,s=c;o>=y&&O("invalid-input"),((d=T(e.charCodeAt(o++)))>=c||d>E((u-w)/a))&&O("overflow"),w+=d*a,!(d<(h=s<=I?f:s>=I+l?l:s-I));s+=c)a>E(u/(m=c-h))&&O("overflow"),a*=m;I=N(w-i,t=b.length+1,0==i),E(w/t)>u-_&&O("overflow"),_+=E(w/t),w%=t,b.splice(w++,0,_)}return A(b)}function j(e){var t,n,r,o,i,a,s,d,h,m,b,y,w,_,S,x=[];for(y=(e=C(e)).length,t=v,n=0,i=p,a=0;a<y;++a)(b=e[a])<128&&x.push(I(b));for(r=o=x.length,o&&x.push(g);r<y;){for(s=u,a=0;a<y;++a)(b=e[a])>=t&&b<s&&(s=b);for(s-t>E((u-n)/(w=r+1))&&O("overflow"),n+=(s-t)*w,t=s,a=0;a<y;++a)if((b=e[a])<t&&++n>u&&O("overflow"),b==t){for(d=n,h=c;!(d<(m=h<=i?f:h>=i+l?l:h-i));h+=c)S=d-m,_=c-m,x.push(I(M(m+S%_,0))),d=E(S/_);x.push(I(M(d,0))),i=N(n,w,r==o),n=0,++r}++n,++t}return x.join("")}s={version:"1.4.1",ucs2:{decode:C,encode:A},decode:k,encode:j,toASCII:function(e){return x(e,function(e){return b.test(e)?"xn--"+j(e):e})},toUnicode:function(e){return x(e,function(e){return m.test(e)?k(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return s}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(54)(e),n(36))},function(e,t,n){var r=n(61),o=n(40).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){"use strict";var r=n(9),o=n(14),i=n(7),a=n(10),s=n(62),u=n(53).KEY,c=n(18),f=n(41),l=n(39),d=n(28),h=n(4),p=n(34),v=n(33),g=n(111),m=n(110),b=n(20),y=n(19),w=n(15),_=n(13),E=n(45),I=n(24),O=n(44),S=n(109),x=n(108),C=n(38),A=n(8),T=n(16),M=x.f,N=A.f,k=S.f,j=r.Symbol,D=r.JSON,P=D&&D.stringify,R=h("_hidden"),U=h("toPrimitive"),F={}.propertyIsEnumerable,L=f("symbol-registry"),W=f("symbols"),K=f("op-symbols"),B=Object.prototype,G="function"==typeof j&&!!C.f,H=r.QObject,z=!H||!H.prototype||!H.prototype.findChild,V=i&&c(function(){return 7!=O(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=M(B,t);r&&delete B[t],N(e,t,n),r&&e!==B&&N(B,t,r)}:N,q=function(e){var t=W[e]=O(j.prototype);return t._k=e,t},J=G&&"symbol"==typeof j.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof j},$=function(e,t,n){return e===B&&$(K,t,n),b(e),t=E(t,!0),b(n),o(W,t)?(n.enumerable?(o(e,R)&&e[R][t]&&(e[R][t]=!1),n=O(n,{enumerable:I(0,!1)})):(o(e,R)||N(e,R,I(1,{})),e[R][t]=!0),V(e,t,n)):N(e,t,n)},X=function(e,t){b(e);for(var n,r=g(t=_(t)),o=0,i=r.length;i>o;)$(e,n=r[o++],t[n]);return e},Q=function(e){var t=F.call(this,e=E(e,!0));return!(this===B&&o(W,e)&&!o(K,e))&&(!(t||!o(this,e)||!o(W,e)||o(this,R)&&this[R][e])||t)},Y=function(e,t){if(e=_(e),t=E(t,!0),e!==B||!o(W,t)||o(K,t)){var n=M(e,t);return!n||!o(W,t)||o(e,R)&&e[R][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=k(_(e)),r=[],i=0;n.length>i;)o(W,t=n[i++])||t==R||t==u||r.push(t);return r},ee=function(e){for(var t,n=e===B,r=k(n?K:_(e)),i=[],a=0;r.length>a;)!o(W,t=r[a++])||n&&!o(B,t)||i.push(W[t]);return i};G||(s((j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(K,n),o(this,R)&&o(this[R],e)&&(this[R][e]=!1),V(this,e,I(1,n))};return i&&z&&V(B,e,{configurable:!0,set:t}),q(e)}).prototype,"toString",function(){return this._k}),x.f=Y,A.f=$,n(51).f=S.f=Z,n(23).f=Q,C.f=ee,i&&!n(29)&&s(B,"propertyIsEnumerable",Q,!0),p.f=function(e){return q(h(e))}),a(a.G+a.W+a.F*!G,{Symbol:j});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)h(te[ne++]);for(var re=T(h.store),oe=0;re.length>oe;)v(re[oe++]);a(a.S+a.F*!G,"Symbol",{for:function(e){return o(L,e+="")?L[e]:L[e]=j(e)},keyFor:function(e){if(!J(e))throw TypeError(e+" is not a symbol!");for(var t in L)if(L[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!G,"Object",{create:function(e,t){return void 0===t?O(e):X(O(e),t)},defineProperty:$,defineProperties:X,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var ie=c(function(){C.f(1)});a(a.S+a.F*ie,"Object",{getOwnPropertySymbols:function(e){return C.f(w(e))}}),D&&a(a.S+a.F*(!G||c(function(){var e=j();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(y(t)||void 0!==e)&&!J(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!J(t))return t}),r[1]=t,P.apply(D,r)}}),j.prototype[U]||n(21)(j.prototype,U,j.prototype.valueOf),l(j,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(e,t,n){var r=n(28)("meta"),o=n(19),i=n(14),a=n(8).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(18)(function(){return u(Object.preventExtensions({}))}),f=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},l=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!u(e))return"F";if(!t)return"E";f(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!u(e))return!0;if(!t)return!1;f(e)}return e[r].w},onFreeze:function(e){return c&&l.NEED&&u(e)&&!i(e,r)&&f(e),e}}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){e.exports={default:n(119),__esModule:!0}},function(e,t,n){var r=n(43),o=n(4)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r=n(56),o=n(4)("iterator"),i=n(17);e.exports=n(3).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(14),o=n(15),i=n(42)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(47),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(43);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(14),o=n(13),i=n(139)(!1),a=n(42)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){e.exports=n(21)},function(e,t,n){var r=n(19),o=n(9).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){e.exports=!n(7)&&!n(18)(function(){return 7!=Object.defineProperty(n(63)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(142);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(29),o=n(10),i=n(62),a=n(21),s=n(17),u=n(141),c=n(39),f=n(58),l=n(4)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,v,g,m){u(n,t,p);var b,y,w,_=function(e){if(!d&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",I="values"==v,O=!1,S=e.prototype,x=S[l]||S["@@iterator"]||v&&S[v],C=x||_(v),A=v?I?_("entries"):C:void 0,T="Array"==t&&S.entries||x;if(T&&(w=f(T.call(new e)))!==Object.prototype&&w.next&&(c(w,E,!0),r||"function"==typeof w[l]||a(w,l,h)),I&&x&&"values"!==x.name&&(O=!0,C=function(){return x.call(this)}),r&&!m||!d&&!O&&S[l]||a(S,l,C),s[t]=C,s[E]=h,v)if(b={values:I?C:_("values"),keys:g?C:_("keys"),entries:A},m)for(y in b)y in S||i(S,y,b[y]);else o(o.P+o.F*(d||O),t,b);return b}},function(e,t,n){var r=n(81);e.exports=function(){return{set:function(e,t,n){return document.cookie=r.serialize(e,t,n)},get:function(e){return r.parse(document.cookie)[e]},remove:function(e,t){var n=t||{};return n.expires=new Date(0),!!(document.cookie=r.serialize(e,"",n))},all:function(){return r.parse(document.cookie)}}}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(55));t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,r.default)(e,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){"use strict";var r=n(83);function o(e){this.message=e}o.prototype=new Error,o.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new o("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(r(e.split(".")[n]))}catch(e){throw new o("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=o},function(e,t,n){e.exports={default:n(86),__esModule:!0}},function(e,t,n){e.exports={default:n(87),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){e.exports={default:n(89),__esModule:!0}},function(e,t,n){"use strict";var r=n(99),o=n(50),i=n(94),a=n(92),s=n(91),u=n(49),c={"http:":80,"https:":443,"ftp:":21},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function l(e,t){return t.some(function(t){return t instanceof RegExp?t.test(e):t===e})}e.exports=function(e,t){if(t=u({normalizeProtocol:!0,stripFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0},t),"string"!=typeof e)throw new TypeError("Expected a string");var n=0===e.indexOf("//");e=a(e.trim()).replace(/^\/\//,"http://");var d=r.parse(e);if(!d.hostname&&!d.pathname)throw new Error("Invalid URL");delete d.host,delete d.query,t.stripFragment&&delete d.hash;var h=c[d.protocol];if(Number(d.port)===h&&delete d.port,d.pathname&&(d.pathname=d.pathname.replace(/\/{2,}/g,"/")),f[d.protocol]){var p=d.protocol+"//"+d.hostname,v=r.resolve(p,d.pathname);d.pathname=v.replace(p,"")}d.hostname&&(d.hostname=o.toUnicode(d.hostname).toLowerCase(),d.hostname=d.hostname.replace(/\.$/,""),t.stripWWW&&(d.hostname=d.hostname.replace(/^www\./,""))),"?"===d.search&&delete d.search;var g=i.parse(d.search);if(Array.isArray(t.removeQueryParameters))for(var m in g)l(m,t.removeQueryParameters)&&delete g[m];return d.search=i.stringify(s(g)),d.search=decodeURIComponent(d.search),e=r.format(d),(t.removeTrailingSlash||"/"===d.pathname)&&(e=e.replace(/\/$/,"")),n&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),e}},function(e,t,n){e.exports={default:n(100),__esModule:!0}},function(e,t,n){e.exports={default:n(102),__esModule:!0}},function(e,t,n){e.exports={default:n(104),__esModule:!0}},function(e,t,n){"use strict";(function(e){var r=n(1),o=n.n(r),i=n(79),a="object"==("undefined"==typeof exports?"undefined":o()(exports))&&exports&&!exports.nodeType&&exports,s=a&&"object"==o()(e)&&e&&!e.nodeType&&e,u=s&&s.exports===a&&i.a.process,c=function(){try{var e=s&&s.require&&s.require("util").types;return e||u&&u.binding&&u.binding("util")}catch(e){}}();t.a=c}).call(this,n(32)(e))},function(e,t,n){"use strict";(function(e){var r=n(1),o="object"==(void 0===e?"undefined":n.n(r)()(e))&&e&&e.Object===Object&&e;t.a=o}).call(this,n(36))},function(e,t,n){"use strict";n.r(t);var r=n(12),o=n.n(r),i=n(48),a=n.n(i),s=n(5),u=n.n(s),c=n(26),f=n.n(c),l=n(11),d=n.n(l);var h=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var p=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}();var v=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},g=n(6),m=g.a.Symbol,b=Object.prototype,y=b.hasOwnProperty,w=b.toString,_=m?m.toStringTag:void 0;var E=function(e){var t=y.call(e,_),n=e[_];try{e[_]=void 0;var r=!0}catch(e){}var o=w.call(e);return r&&(t?e[_]=n:delete e[_]),o},I=Object.prototype.toString;var O=function(e){return I.call(e)},S="[object Null]",x="[object Undefined]",C=m?m.toStringTag:void 0;var A=function(e){return null==e?void 0===e?x:S:C&&C in Object(e)?E(e):O(e)},T=n(1),M=n.n(T);var N=function(e){return null!=e&&"object"==(void 0===e?"undefined":M()(e))},k="[object Arguments]";var j=function(e){return N(e)&&A(e)==k},D=Object.prototype,P=D.hasOwnProperty,R=D.propertyIsEnumerable,U=j(function(){return arguments}())?j:function(e){return N(e)&&P.call(e,"callee")&&!R.call(e,"callee")},F=Array.isArray,L=n(27),W=9007199254740991,K=/^(?:0|[1-9]\d*)$/;var B=function(e,t){var n=void 0===e?"undefined":M()(e);return!!(t=null==t?W:t)&&("number"==n||"symbol"!=n&&K.test(e))&&e>-1&&e%1==0&&e<t},G=9007199254740991;var H=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=G},z={};z["[object Float32Array]"]=z["[object Float64Array]"]=z["[object Int8Array]"]=z["[object Int16Array]"]=z["[object Int32Array]"]=z["[object Uint8Array]"]=z["[object Uint8ClampedArray]"]=z["[object Uint16Array]"]=z["[object Uint32Array]"]=!0,z["[object Arguments]"]=z["[object Array]"]=z["[object ArrayBuffer]"]=z["[object Boolean]"]=z["[object DataView]"]=z["[object Date]"]=z["[object Error]"]=z["[object Function]"]=z["[object Map]"]=z["[object Number]"]=z["[object Object]"]=z["[object RegExp]"]=z["[object Set]"]=z["[object String]"]=z["[object WeakMap]"]=!1;var V=function(e){return N(e)&&H(e.length)&&!!z[A(e)]};var q=function(e){return function(t){return e(t)}},J=n(78),$=J.a&&J.a.isTypedArray,X=$?q($):V,Q=Object.prototype.hasOwnProperty;var Y=function(e,t){var n=F(e),r=!n&&U(e),o=!n&&!r&&Object(L.a)(e),i=!n&&!r&&!o&&X(e),a=n||r||o||i,s=a?v(e.length,String):[],u=s.length;for(var c in e)!t&&!Q.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||B(c,u))||s.push(c);return s},Z=Object.prototype;var ee=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Z)},te=n(73);var ne=function(e,t){return function(n){return e(t(n))}},re=ne(n.n(te).a,Object),oe=Object.prototype.hasOwnProperty;var ie=function(e){if(!ee(e))return re(e);var t=[];for(var n in Object(e))oe.call(e,n)&&"constructor"!=n&&t.push(n);return t};var ae=function(e){var t=void 0===e?"undefined":M()(e);return null!=e&&("object"==t||"function"==t)},se="[object AsyncFunction]",ue="[object Function]",ce="[object GeneratorFunction]",fe="[object Proxy]";var le=function(e){if(!ae(e))return!1;var t=A(e);return t==ue||t==ce||t==se||t==fe};var de=function(e){return null!=e&&H(e.length)&&!le(e)};var he=function(e){return de(e)?Y(e):ie(e)};var pe=function(e,t){return e&&p(e,t,he)};var ve=function(e,t){return function(n,r){if(null==n)return n;if(!de(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}(pe);var ge=function(e){return e};var me=function(e){return"function"==typeof e?e:ge};var be=function(e,t){return(F(e)?h:ve)(e,me(t))};var ye=function(e){return e&&e.length?e[0]:void 0},we=g.a["__core-js_shared__"],_e=function(){var e=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var Ee=function(e){return!!_e&&_e in e},Ie=Function.prototype.toString;var Oe=function(e){if(null!=e){try{return Ie.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Se=/^\[object .+?Constructor\]$/,xe=Function.prototype,Ce=Object.prototype,Ae=xe.toString,Te=Ce.hasOwnProperty,Me=RegExp("^"+Ae.call(Te).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ne=function(e){return!(!ae(e)||Ee(e))&&(le(e)?Me:Se).test(Oe(e))};var ke=function(e,t){return null==e?void 0:e[t]};var je=function(e,t){var n=ke(e,t);return Ne(n)?n:void 0},De=function(){try{var e=je(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Pe=function(e,t,n){"__proto__"==t&&De?De(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var Re=function(e,t){return e===t||e!=e&&t!=t},Ue=Object.prototype.hasOwnProperty;var Fe=function(e,t,n){var r=e[t];Ue.call(e,t)&&Re(r,n)&&(void 0!==n||t in e)||Pe(e,t,n)};var Le=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),o?Pe(n,s,u):Fe(n,s,u)}return n};var We=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Ke=Math.max;var Be=function(e,t,n){return t=Ke(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Ke(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),We(e,this,s)}};var Ge=function(e){return function(){return e}},He=De?function(e,t){return De(e,"toString",{configurable:!0,enumerable:!1,value:Ge(t),writable:!0})}:ge,ze=800,Ve=16,qe=Date.now;var Je=function(e){var t=0,n=0;return function(){var r=qe(),o=Ve-(r-n);if(n=r,o>0){if(++t>=ze)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(He);var $e=function(e,t){return Je(Be(e,t,ge),e+"")};var Xe=function(e,t,n){if(!ae(n))return!1;var r=void 0===t?"undefined":M()(t);return!!("number"==r?de(n)&&B(t,n.length):"string"==r&&t in n)&&Re(n[t],e)};var Qe=function(e){return $e(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&Xe(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})},Ye=Object.prototype.hasOwnProperty,Ze=Qe(function(e,t){if(ee(t)||de(t))Le(t,he(t),e);else for(var n in t)Ye.call(t,n)&&Fe(e,n,t[n])}),et=function e(){var t=this;d()(this,e),this.eventListeners={},this.readyTriggered=!1,this.readyApi=null,this.readyArgs=null,this.authReadyTriggered=!1,this.addListener=function(e,n){"ready"===e&&t.readyTriggered?n.apply(void 0,[t.readyApi].concat(o()(t.readyArgs))):("authReady"===e&&t.authReadyTriggered&&n(t.authReadyPayload),t.eventListeners[e]=t.eventListeners[e]||[],t.eventListeners[e].push(n))},this.removeListener=function(e,n){t.eventListeners[e]=t.eventListeners[e]||[],t.eventListeners[e]=t.eventListeners[e].filter(function(e){return e!==n})},this.trigger=function(e,n){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];"ready"===e&&(t.readyTriggered=!0,t.readyApi=n,t.readyArgs=o),"authReady"===e&&(t.authReadyTriggered=!0,t.authReadyPayload=n),(t.eventListeners[e]||[]).forEach(function(e){return e.apply(void 0,[n].concat(o))})}},tt=n(0),nt=n.n(tt);var rt={info:function(){if(window.__DRIFTT_DEBUG__){var e=Array.prototype.slice.call(arguments);return e.unshift("Drift - "),console.info.apply(console,e)}},log:function(){if(window.__DRIFTT_DEBUG__){var e=Array.prototype.slice.call(arguments);return e.unshift("Drift - "),console.log.apply(console,e)}},warn:function(){if(window.__DRIFTT_DEBUG__){var e=Array.prototype.slice.call(arguments);return e.unshift("Drift - "),console.warn.apply(console,e)}},error:function(e,t){return null==t&&(t={}),function(e,t){null==t&&(t={})}(0,t),console.error("Drift - ",e)}},ot=n(2),it=n.n(ot),at=function(){return it.a&&"IE"===it.a.name},st=function(){return it.a&&/iOS/i.test(it.a.os.family)},ut=function(){return screen.width<768};var ct=function(){this.__data__=[],this.size=0};var ft=function(e,t){for(var n=e.length;n--;)if(Re(e[n][0],t))return n;return-1},lt=Array.prototype.splice;var dt=function(e){var t=this.__data__,n=ft(t,e);return!(n<0||(n==t.length-1?t.pop():lt.call(t,n,1),--this.size,0))};var ht=function(e){var t=this.__data__,n=ft(t,e);return n<0?void 0:t[n][1]};var pt=function(e){return ft(this.__data__,e)>-1};var vt=function(e,t){var n=this.__data__,r=ft(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function gt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gt.prototype.clear=ct,gt.prototype.delete=dt,gt.prototype.get=ht,gt.prototype.has=pt,gt.prototype.set=vt;var mt=gt;var bt=function(){this.__data__=new mt,this.size=0};var yt=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var wt=function(e){return this.__data__.get(e)};var _t=function(e){return this.__data__.has(e)},Et=je(g.a,"Map"),It=je(Object,"create");var Ot=function(){this.__data__=It?It(null):{},this.size=0};var St=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},xt="__lodash_hash_undefined__",Ct=Object.prototype.hasOwnProperty;var At=function(e){var t=this.__data__;if(It){var n=t[e];return n===xt?void 0:n}return Ct.call(t,e)?t[e]:void 0},Tt=Object.prototype.hasOwnProperty;var Mt=function(e){var t=this.__data__;return It?void 0!==t[e]:Tt.call(t,e)},Nt="__lodash_hash_undefined__";var kt=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=It&&void 0===t?Nt:t,this};function jt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}jt.prototype.clear=Ot,jt.prototype.delete=St,jt.prototype.get=At,jt.prototype.has=Mt,jt.prototype.set=kt;var Dt=jt;var Pt=function(){this.size=0,this.__data__={hash:new Dt,map:new(Et||mt),string:new Dt}};var Rt=function(e){var t=void 0===e?"undefined":M()(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ut=function(e,t){var n=e.__data__;return Rt(t)?n["string"==typeof t?"string":"hash"]:n.map};var Ft=function(e){var t=Ut(this,e).delete(e);return this.size-=t?1:0,t};var Lt=function(e){return Ut(this,e).get(e)};var Wt=function(e){return Ut(this,e).has(e)};var Kt=function(e,t){var n=Ut(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Bt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Bt.prototype.clear=Pt,Bt.prototype.delete=Ft,Bt.prototype.get=Lt,Bt.prototype.has=Wt,Bt.prototype.set=Kt;var Gt=Bt,Ht=200;var zt=function(e,t){var n=this.__data__;if(n instanceof mt){var r=n.__data__;if(!Et||r.length<Ht-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gt(r)}return n.set(e,t),this.size=n.size,this};function Vt(e){var t=this.__data__=new mt(e);this.size=t.size}Vt.prototype.clear=bt,Vt.prototype.delete=yt,Vt.prototype.get=wt,Vt.prototype.has=_t,Vt.prototype.set=zt;var qt=Vt;var Jt=function(e,t,n){(void 0===n||Re(e[t],n))&&(void 0!==n||t in e)||Pe(e,t,n)},$t=n(145),Xt=g.a.Uint8Array;var Qt=function(e){var t=new e.constructor(e.byteLength);return new Xt(t).set(new Xt(e)),t};var Yt=function(e,t){var n=t?Qt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Zt=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},en=n(76),tn=n.n(en).a,nn=function(){function e(){}return function(t){if(!ae(t))return{};if(tn)return tn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),rn=n(77),on=ne(n.n(rn).a,Object);var an=function(e){return"function"!=typeof e.constructor||ee(e)?{}:nn(on(e))};var sn=function(e){return N(e)&&de(e)},un="[object Object]",cn=Function.prototype,fn=Object.prototype,ln=cn.toString,dn=fn.hasOwnProperty,hn=ln.call(Object);var pn=function(e){if(!N(e)||A(e)!=un)return!1;var t=on(e);if(null===t)return!0;var n=dn.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ln.call(n)==hn};var vn=function(e,t){if("__proto__"!=t)return e[t]};var gn=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},mn=Object.prototype.hasOwnProperty;var bn=function(e){if(!ae(e))return gn(e);var t=ee(e),n=[];for(var r in e)("constructor"!=r||!t&&mn.call(e,r))&&n.push(r);return n};var yn=function(e){return de(e)?Y(e,!0):bn(e)};var wn=function(e){return Le(e,yn(e))};var _n=function(e,t,n,r,o,i,a){var s=vn(e,n),u=vn(t,n),c=a.get(u);if(c)Jt(e,n,c);else{var f=i?i(s,u,n+"",e,t,a):void 0,l=void 0===f;if(l){var d=F(u),h=!d&&Object(L.a)(u),p=!d&&!h&&X(u);f=u,d||h||p?F(s)?f=s:sn(s)?f=Zt(s):h?(l=!1,f=Object($t.a)(u,!0)):p?(l=!1,f=Yt(u,!0)):f=[]:pn(u)||U(u)?(f=s,U(s)?f=wn(s):ae(s)&&!le(s)||(f=an(u))):l=!1}l&&(a.set(u,f),o(f,u,r,i,a),a.delete(u)),Jt(e,n,f)}};var En,In,On=function e(t,n,r,o,i){t!==n&&p(n,function(a,s){if(ae(a))i||(i=new qt),_n(t,n,s,r,e,o,i);else{var u=o?o(vn(t,s),a,s+"",t,n,i):void 0;void 0===u&&(u=a),Jt(t,s,u)}},yn)},Sn=Qe(function(e,t,n){On(e,t,n)}),xn=n(22),Cn=n.n(xn),An=Cn()({buttonOffset:"24px",buttonDimension:"52px",buttonContainerDimension:"62px",minimizedHeight:"76px",minimizedWithPreviewWidth:"360px",minimizedWithExpandedPreviewWidth:"384px",minimizedWithExpandedPreviewHeight:"100%",buttonRecentMessageWidth:"288px",buttonRecentMessageHeight:"64px",buttonNPSHeight:"176px",buttonNPSWidth:"304px",sidebarWidth:"360px",sidebarHeight:"100%",sidebarHalfHeight:"80%",sidebarHalfHeightWidth:"400px",sliderMaxWidth:"456px",sliderMaxHeight:"33vh"}),Tn={default:{display:"block",position:"fixed",top:"auto",left:"auto",bottom:0,right:0,width:0,height:0,visibility:"visible",border:"none","z-index":2147483647,"max-height":"100vh","max-width":"100vw",transition:"none",background:"none transparent",opacity:1,"pointer-events":"auto","touch-action":"auto"}},Mn={default:{display:"block",width:"100%",height:"100%",visibility:"visible",border:"none","z-index":2147483647,transition:"none",background:"none transparent",opacity:1,position:"unset"}},Nn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tn;return Sn({},t,e)},kn=Nn({default:{top:"auto",left:"auto",bottom:0,right:0,width:0,height:0,visibility:"hidden"}}),jn=Nn({default:{top:"auto",left:"auto",bottom:An.buttonOffset,right:An.buttonOffset,width:An.sliderMaxWidth,height:An.sliderMaxHeight,"max-width":"100%",border:"none"},mobile:{bottom:0,right:0,width:"100%","max-width":"320px"}}),Dn=Nn({default:{top:"auto",left:"auto",bottom:An.buttonOffset,right:An.buttonOffset,width:An.minimizedHeight,height:An.minimizedHeight,border:"none"},mobile:{bottom:0,right:0}}),Pn=Nn({default:{top:"auto",left:"auto",bottom:An.buttonOffset,right:An.buttonOffset,width:An.minimizedWithExpandedPreviewWidth,height:An.minimizedHeight},mobile:{bottom:0,right:0,width:"100%"}}),Rn="sidebar-closed-with-welcome-message",Un=Nn({default:{top:"auto",left:"auto",bottom:An.buttonOffset,right:An.buttonOffset,width:An.minimizedHeight,height:An.minimizedHeight},mobile:{bottom:0,right:0}}),Fn=Nn({default:{top:"auto",left:"auto",bottom:An.buttonOffset,right:An.buttonOffset,width:"420px",height:An.minimizedHeight},mobile:{bottom:0,right:0,width:"100%"}}),Ln="sidebar-closed-with-away-message",Wn=Nn({default:{top:"auto",left:"auto",bottom:An.buttonOffset,right:An.buttonOffset,width:An.minimizedHeight,height:An.minimizedHeight},mobile:{bottom:0,right:0}}),Kn="sidebar-closed-with-away-message-expanded",Bn=Nn({default:{top:"auto",left:"auto",bottom:An.buttonOffset,right:An.buttonOffset,width:"420px",height:An.minimizedHeight},mobile:{bottom:0,right:0,width:"100%"}}),Gn=Nn({default:{top:"auto",left:"auto",bottom:0,right:0,width:"450px",height:0},mobile:{bottom:0,right:0,width:"100%"}}),Hn=Nn({default:{bottom:0,right:0,top:0,left:"auto",width:An.sidebarWidth,height:"100%"},mobile:{width:"100%"}}),zn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mn;return Sn({},t,e)}({default:{},mobile:{width:"100%"}}),Vn=Nn({default:{bottom:0,right:0,width:An.sidebarHalfHeightWidth,height:An.sidebarHalfHeight},mobile:{width:"100%",height:"100%"}}),qn=Nn({default:{top:0,right:0,bottom:0,left:0,width:"100%",height:"100%"}}),Jn=Nn({default:{top:0,right:0,"background-color":"rgba(255, 255, 255, 0.8)",width:"100%",height:"100%"}}),$n=Nn({default:{bottom:0,right:0,top:0,left:"auto",width:An.sidebarWidth,height:"100%"},mobile:{bottom:0,right:0,width:"100%"}}),Xn=Nn({default:{bottom:0,right:0,left:"auto",width:An.sidebarWidth,height:An.sidebarHalfHeight},mobile:{bottom:0,right:0,width:"100%",height:"100%"}}),Qn=Nn({default:{bottom:0,right:0,left:"auto",width:"430px",height:"50%","min-height":"300px"},mobile:{bottom:0,right:0,width:"100%"}}),Yn={position:"fixed",overflow:"hidden",top:0,right:0,bottom:0,left:0},Zn={position:null,overflow:null,top:null,right:null,bottom:null,left:null},er=["hidden","sidebar-opened","sidebar-opened-half-height",Rn,"sidebar-closed-with-welcome-message-expanded",Ln,Kn,"slider","sidebar-closed","sidebar-closed-with-preview","sidebar-closed-with-email-capture-slider","consent-takeover-large","consent-takeover-large-half-height","consent-takeover-small"],tr=(En={},nt()(En,"hidden",kn),nt()(En,"iframe-takeover",qn),nt()(En,"sidebar-opened",Hn),nt()(En,"sidebar-opened-half-height",Vn),nt()(En,"embedded-messenger",zn),nt()(En,Rn,Un),nt()(En,"sidebar-closed-with-welcome-message-expanded",Fn),nt()(En,Ln,Wn),nt()(En,Kn,Bn),nt()(En,"slider",jn),nt()(En,"sidebar-closed",Dn),nt()(En,"sidebar-closed-with-preview",Pn),nt()(En,"activation-takeover",Jn),nt()(En,"consent-takeover-large",$n),nt()(En,"consent-takeover-large-half-height",Xn),nt()(En,"consent-takeover-small",Qn),nt()(En,"sidebar-closed-with-email-capture-slider",Gn),En),nr=(In={},nt()(In,"hidden","drift-widget-hidden"),nt()(In,"iframe-takeover","drift-widget-takeover"),nt()(In,"sidebar-opened","drift-widget-sidebar"),nt()(In,"sidebar-opened-half-height","drift-widget-sidebar-half-height"),nt()(In,"embedded-messenger","drift-widget-embedded-messenger"),nt()(In,Rn,"drift-widget-welcome-online"),nt()(In,"sidebar-closed-with-welcome-message-expanded","drift-widget-welcome-expanded-online"),nt()(In,Ln,"drift-widget-welcome-away"),nt()(In,Kn,"drift-widget-welcome-expanded-away"),nt()(In,"slider","drift-widget-slider"),nt()(In,"sidebar-closed","drift-widget-nps"),nt()(In,"sidebar-closed-with-preview","drift-widget-nps-preview"),nt()(In,"activation-takeover","drift-widget-activation-takeover"),nt()(In,"consent-takeover-large","drift-widget-consent-large-takeover"),nt()(In,"consent-takeover-large-half-height","drift-widget-consent-large-half-height-takeover"),nt()(In,"consent-takeover-small","drift-widget-consent-small-takeover"),nt()(In,"sidebar-closed-with-email-capture-slider","drift-widget-email-capture"),In);var rr=function(e){try{return new RegExp(e)}catch(t){return rt.warn("Invalid in whitelisted url: ",e," ",t),null}},or=function(e){return e},ir=["drift.com","drift.click","drift.me"];var ar=n(25),sr=n.n(ar),ur=n(31),cr=n.n(ur),fr=n(75),lr=n.n(fr),dr=n(74),hr=n.n(dr),pr=null,vr=null,gr="/",mr=new Date;mr.setFullYear(mr.getFullYear()+2);var br={ORG_ID_COOKIE_NAME:"DFTT_ORG_ID",INBOX_ID_COOKIE_NAME:"DFTT_INBOX_ID",END_USER_ID_COOKIE_NAME:"DFTT_END_USER_ID",END_USER_EMAIL_COOKIE_NAME:"DFTT_END_USER_EMAIL",END_USER_AUTH_TOKEN_COOKIE_NAME:"DFTT_END_USER_AUTH_TOKEN",END_USER_PREV_BOOTSTRAPPED_COOKIE_NAME:"DFTT_END_USER_PREV_BOOTSTRAPPED",END_USER_EXTERNAL_ID_COOKIE_NAME:"driftt_eid",ANONYMOUS_ID_COOKIE_NAME:"driftt_aid",SESSION_ID_COOKIE_NAME:"driftt_sid",GENERATION_COOKIE_NAME:"driftt_gen",INFLUENCING_CAMPAIGN_ID_COOKIE_NAME:"driftt_icid",INFLUENCING_SIGNATURE_ID_COOKIE_NAME:"driftt_isid",USER_JWT_COOKIE_NAME:"drift_ujwt",INFLUENCING_AGENT_ID_COOKIE_NAME:"driftt_iaid",LEAD_HAS_PREV_IDENTIFIED_COOKIE_NAME:"DFTT_LEAD_HAS_PREV_IDENTIFIED",LEAD_EMAIL_COOKIE_NAME:"DFTT_LEAD_EMAIL",WELCOME_MESSAGE_DISMISSED_COOKIE_NAME:"driftt_wmd",HUBSPOT_UTK_CHECKED:"__d_hsutk",AUTO_ASSIGNEE_ID:"__d_aaid",MARKETO_MUNCHKIN:"_mkto_trk",MARKETO_MUNCHKIN_CHECKED:"__d_mkto",ELOQUA_COOKIE:"ELOQUA",ELOQUA_COOKIE_CHECKED:"__d_eloqua",PARDOT_COOKIE_BASE:"visitor_id",PARDOT_COOKIE_CHECKED:"__d_pardot"},yr=function(){if(null==pr)throw new Error("You need to make sure that the cookie library is configured");return pr},wr=function(e){vr=e},_r=function(){return vr},Er=function(e){return yr().get(e)},Ir=function(e,t,n){if(null!=t)return null==(n=n||{}).path&&(n.path=gr),null==n.domain&&(n.domain=vr&&!function(e,t){return e.slice(0,t.length)===t}(vr,".")?"."+vr:vr),yr().set(e,t,n);rt.warn("Tried to write an undefined value to cookie: "+e)},Or=function(e,t,n){return n=Ze({},{expires:mr},n),Ir(e,t,n)},Sr=function(e,t){return null==(t=t||{}).path&&(t.path=gr),null==t.domain&&(t.domain=vr),yr().remove(e,t)};var xr=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e};var Cr=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},Ar="[object Symbol]";var Tr=function(e){return"symbol"==(void 0===e?"undefined":M()(e))||N(e)&&A(e)==Ar},Mr=1/0,Nr=m?m.prototype:void 0,kr=Nr?Nr.toString:void 0;var jr=function e(t){if("string"==typeof t)return t;if(F(t))return Cr(t,e)+"";if(Tr(t))return kr?kr.call(t):"";var n=t+"";return"0"==n&&1/t==-Mr?"-0":n},Dr=NaN,Pr=/^\s+|\s+$/g,Rr=/^[-+]0x[0-9a-f]+$/i,Ur=/^0b[01]+$/i,Fr=/^0o[0-7]+$/i,Lr=parseInt;var Wr=function(e){if("number"==typeof e)return e;if(Tr(e))return Dr;if(ae(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ae(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Pr,"");var n=Ur.test(e);return n||Fr.test(e)?Lr(e.slice(2),n?2:8):Rr.test(e)?Dr:+e},Kr=1/0,Br=1.7976931348623157e308;var Gr=function(e){return e?(e=Wr(e))===Kr||e===-Kr?(e<0?-1:1)*Br:e==e?e:0:0===e?e:0};var Hr=function(e){var t=Gr(e),n=t%1;return t==t?n?t-n:t:0};var zr=function(e){return null==e?"":jr(e)};var Vr=function(e,t,n){return e=zr(e),n=null==n?0:xr(Hr(n),0,e.length),t=jr(t),e.slice(n,n+t.length)==t},qr={visits:{first:void 0,last:void 0,count:void 0,sessionCount:void 0,currentPageViewStarted:void 0,currentSessionStartedAt:void 0,previousSessionStartedAt:void 0,previousSessionEndedAt:void 0},geo:{status:void 0,country:void 0,subdivision:void 0,metroCode:void 0,city:void 0,latitude:void 0,logitude:void 0,ip:void 0,gdprApplicable:void 0},referrer:{original:void 0,previous:void 0,current:void 0,currentDomain:void 0,currentSearch:void 0},ad:{source:void 0,name:void 0,medium:void 0,content:void 0,term:void 0},page:{path:void 0,hostname:void 0,url:void 0,search:void 0,title:void 0,referrer:void 0,href:void 0},os:{name:void 0,version:void 0,architecture:void 0,family:void 0},scroll:{windowHeight:void 0,scrollHeight:void 0,scrollTop:void 0,scrollPct:0},mouse:{over:!0},exitIntent:!1,device:void 0,timezone:void 0,locale:void 0,query:void 0,session:{outbound:void 0},cookies:{}},Jr=function(e){var t=e.context,n=e.cookieNames,r=e.influencingCampaignId,o=e.influencingSignatureId,i=e.influencingAgentId,a=(null!=t?t.window:void 0)||window,s=(null!=t?t.document:void 0)||document,u=a.navigator||{};Zr(),ro(s.referrer||"",vo(a.location.hostname));var c=no(),f=Xr(u);return function(e){return Sn({},qr,e)}({visits:Qr(),referrer:c,ad:eo(a),device:oo(),page:ao(s,a,c.previous),scroll:uo(s,a),os:so(),timezone:window.Intl&&window.Intl.DateTimeFormat?window.Intl.DateTimeFormat().resolvedOptions().timeZone:"",locale:$r(u),userAgent:u.userAgent,query:po(a.location.href||""),session:co(),cookies:fo(n),lastTargetingEvalUUID:lo("lastTargetingEvalUUID")||void 0,influencingCampaignId:r,influencingSignatureId:o,influencingAgentId:i,connection:f})},$r=function(e){var t=e.language||e.browserLanguage;return t?t.split("-")[0]:"en"},Xr=function(e){if(!e||!e.connection)return{};var t=window.navigator.connection;return{speed:t.effectiveType,rtt:t.rtt,dataSaverMode:t.saveData,bandwidth:t.downlink}},Qr=function(){return{first:lo("firstVisit")||0,last:lo("lastVisit")||0,count:lo("numberOfVisits")||0,sessionCount:lo("numberOfSessions")||0,currentPageViewStarted:lo("currentPageViewStarted")||0,currentSessionStartedAt:lo("currentSessionStartedAt")||0,previousSessionStartedAt:lo("previousSessionStartedAt")||0,previousSessionEndedAt:lo("previousSessionEndedAt")||0,activeSessionStartedAt:lo("activeSessionStartedAt")||0}},Yr=function(e){return Math.floor(((new Date).getTime()-1e3*e)/6e4)},Zr=function(){var e=Math.floor((new Date).getTime()/1e3);lo("firstVisit")||ho("firstVisit",e);var t=lo("lastVisit"),n=lo("currentSessionStartedAt");if(ho("lastVisit",e),ho("currentPageViewStarted",e),ho("numberOfVisits",(lo("numberOfVisits")||0)+1),lo("activeSessionStartedAt")||ho("activeSessionStartedAt",e),(null==t||Yr(t)>=5)&&ho("activeSessionStartedAt",e),(null==t||Yr(t)>=30)&&(ho("numberOfSessions",(lo("numberOfSessions")||0)+1),ho("currentSessionStartedAt",e),t))return ho("previousSessionEndedAt",t),ho("previousSessionStartedAt",n||t)},eo=function(e){var t=po(e.location.href);return to(t)},to=function(e){return{source:e.utm_source,name:e.utm_campaign,medium:e.utm_medium,content:e.utm_content,term:e.utm_term}},no=function(){return{original:lo("originalReferrer"),previous:lo("previousPage"),current:lo("currentReferrer"),currentDomain:lo("currentReferrerDomain"),currentSearch:lo("referrerSearchTerm")}},ro=function(e,t){if(e){var n=go(e),r=n.replace(/(.*?)\/.*/,"$1"),o=po(e);return-1===r.indexOf(t)&&(lo("originalReferrer")||ho("originalReferrer",n),ho("currentReferrer",n),ho("currentReferrerDomain",r),ho("searchTerm",o.query||o.q||o.search)),ho("previousPage",n)}return ho("currentReferrer",""),ho("referrerDomain",""),ho("previousPage","")},oo=function(){return io(navigator.userAgent)},io=function(e){return e.match(/ipad/i)?"tablet":e.match(/(mobi|phone|ipod|blackberry|docomo)/i)?"mobile":e.match(/(ipad|kindle|android)/i)?"tablet":"desktop"},ao=function(e,t,n){return{path:go(t.location.pathname||""),hostname:t.location.hostname||"",url:go(t.location.href||""),title:e.title||"",search:t.location.search||"",referrer:n,href:t.location.href||""}},so=function(){return it.a?{architecture:it.a.os.architecture,family:it.a.os.family,version:it.a.os.version,name:it.a.os.toString()}:{name:void 0,version:void 0,architecture:void 0,family:void 0}},uo=function(e,t){try{var n=t.innerHeight,r=e.body.scrollHeight,o=e.body.scrollTop||e.documentElement.scrollTop;return{windowHeight:n,scrollHeight:r,scrollTop:o,scrollPct:(o+n)/r}}catch(e){return rt.warn("Unable to read scroll values from window")}},co=function(){return{outbound:!!Er(br.AUTO_ASSIGNEE_ID)}},fo=function(e){return null==e&&(e=[]),e.reduce(function(e,t){return e[t]=Er(t),e},{})},lo=function(e){if("undefined"!=typeof document&&null!==document&&"undefined"!=typeof localStorage&&null!==localStorage)try{return JSON.parse(localStorage.getItem("Drift.Targeting."+e))}catch(t){return rt.log("Error getting/parsing targeting -> "+e)}else rt.log("Unable to get from localStorage "+e)},ho=function(e,t){if("undefined"!=typeof document&&null!==document&&"undefined"!=typeof localStorage&&null!==localStorage){if(null!=t)try{localStorage.setItem("Drift.Targeting."+e,lr()(t))}catch(n){rt.warn("Error storing targeting "+e+" -> "+t)}return t}rt.log("Unable to set from localStorage "+e+" -> "+t)},po=function(e){var t={};if(!e)return t;var n=-1===(e+="").indexOf("?")?e:e.split("?")[1];if(!n)return t;var r=!0,o=!1,i=void 0;try{for(var a,s=cr()(sr()(n.split("&")));!(r=(a=s.next()).done);r=!0){var u=a.value;try{var c=u.split("="),f=decodeURIComponent(c[0]).toLowerCase(),l=decodeURIComponent(c[1]);t[f]=l}catch(e){rt.warn("Unable to decode query parameter "+u)}}}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return t},vo=function(e){for(var t=e.split("."),n=t.length-1;n>=0;n--){var r=t.slice(n).join(".");if(document.cookie="dc=tld;domain=."+r+";",document.cookie.indexOf("dc=tld")>-1)return document.cookie="dc=tld".split("=")[0]+"=;domain=."+r+";expires=Thu, 01 Jan 1970 00:00:01 GMT;",r}return e},go=function(e){if(e){try{e=hr()(e,{normalizeProtocol:!0,stripFragment:!1,stripWWW:!0,removeQueryParameters:[],removeTrailingSlash:!0})}catch(t){rt.warn("Could not parse URL '"+e+"'")}return e.replace(/^https?:\/\//,"")}};var mo=Object.prototype,bo=mo.hasOwnProperty,yo=$e(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&Xe(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=yn(i),s=-1,u=a.length;++s<u;){var c=a[s],f=e[c];(void 0===f||Re(f,mo[c])&&!bo.call(e,c))&&(e[c]=i[c])}return e});var wo=function(e){return null==e},_o="__lodash_hash_undefined__";var Eo=function(e){return this.__data__.set(e,_o),this};var Io=function(e){return this.__data__.has(e)};function Oo(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gt;++t<n;)this.add(e[t])}Oo.prototype.add=Oo.prototype.push=Eo,Oo.prototype.has=Io;var So=Oo;var xo=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var Co=function(e,t){return e.has(t)},Ao=1,To=2;var Mo=function(e,t,n,r,o,i){var a=n&Ao,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var f=-1,l=!0,d=n&To?new So:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var h=e[f],p=t[f];if(r)var v=a?r(p,h,f,t,e,i):r(h,p,f,e,t,i);if(void 0!==v){if(v)continue;l=!1;break}if(d){if(!xo(t,function(e,t){if(!Co(d,t)&&(h===e||o(h,e,n,r,i)))return d.push(t)})){l=!1;break}}else if(h!==p&&!o(h,p,n,r,i)){l=!1;break}}return i.delete(e),i.delete(t),l};var No=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};var ko=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},jo=1,Do=2,Po="[object Boolean]",Ro="[object Date]",Uo="[object Error]",Fo="[object Map]",Lo="[object Number]",Wo="[object RegExp]",Ko="[object Set]",Bo="[object String]",Go="[object Symbol]",Ho="[object ArrayBuffer]",zo="[object DataView]",Vo=m?m.prototype:void 0,qo=Vo?Vo.valueOf:void 0;var Jo=function(e,t,n,r,o,i,a){switch(n){case zo:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ho:return!(e.byteLength!=t.byteLength||!i(new Xt(e),new Xt(t)));case Po:case Ro:case Lo:return Re(+e,+t);case Uo:return e.name==t.name&&e.message==t.message;case Wo:case Bo:return e==t+"";case Fo:var s=No;case Ko:var u=r&jo;if(s||(s=ko),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=Do,a.set(e,t);var f=Mo(s(e),s(t),r,o,i,a);return a.delete(e),f;case Go:if(qo)return qo.call(e)==qo.call(t)}return!1};var $o=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};var Xo=function(e,t,n){var r=t(e);return F(e)?r:$o(r,n(e))},Qo=n(71),Yo=n.n(Qo);var Zo=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var ei=function(){return[]},ti=Object.prototype.propertyIsEnumerable,ni=Yo.a,ri=ni?function(e){return null==e?[]:(e=Object(e),Zo(ni(e),function(t){return ti.call(e,t)}))}:ei;var oi=function(e){return Xo(e,he,ri)},ii=1,ai=Object.prototype.hasOwnProperty;var si=function(e,t,n,r,o,i){var a=n&ii,s=oi(e),u=s.length;if(u!=oi(t).length&&!a)return!1;for(var c=u;c--;){var f=s[c];if(!(a?f in t:ai.call(t,f)))return!1}var l=i.get(e);if(l&&i.get(t))return l==t;var d=!0;i.set(e,t),i.set(t,e);for(var h=a;++c<u;){var p=e[f=s[c]],v=t[f];if(r)var g=a?r(v,p,f,t,e,i):r(p,v,f,e,t,i);if(!(void 0===g?p===v||o(p,v,n,r,i):g)){d=!1;break}h||(h="constructor"==f)}if(d&&!h){var m=e.constructor,b=t.constructor;m!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b)&&(d=!1)}return i.delete(e),i.delete(t),d},ui=je(g.a,"DataView"),ci=je(g.a,"Promise"),fi=je(g.a,"Set"),li=je(g.a,"WeakMap"),di=Oe(ui),hi=Oe(Et),pi=Oe(ci),vi=Oe(fi),gi=Oe(li),mi=A;(ui&&"[object DataView]"!=mi(new ui(new ArrayBuffer(1)))||Et&&"[object Map]"!=mi(new Et)||ci&&"[object Promise]"!=mi(ci.resolve())||fi&&"[object Set]"!=mi(new fi)||li&&"[object WeakMap]"!=mi(new li))&&(mi=function(e){var t=A(e),n="[object Object]"==t?e.constructor:void 0,r=n?Oe(n):"";if(r)switch(r){case di:return"[object DataView]";case hi:return"[object Map]";case pi:return"[object Promise]";case vi:return"[object Set]";case gi:return"[object WeakMap]"}return t});var bi=mi,yi=1,wi="[object Arguments]",_i="[object Array]",Ei="[object Object]",Ii=Object.prototype.hasOwnProperty;var Oi=function(e,t,n,r,o,i){var a=F(e),s=F(t),u=a?_i:bi(e),c=s?_i:bi(t),f=(u=u==wi?Ei:u)==Ei,l=(c=c==wi?Ei:c)==Ei,d=u==c;if(d&&Object(L.a)(e)){if(!Object(L.a)(t))return!1;a=!0,f=!1}if(d&&!f)return i||(i=new qt),a||X(e)?Mo(e,t,n,r,o,i):Jo(e,t,u,n,r,o,i);if(!(n&yi)){var h=f&&Ii.call(e,"__wrapped__"),p=l&&Ii.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,g=p?t.value():t;return i||(i=new qt),o(v,g,n,r,i)}}return!!d&&(i||(i=new qt),si(e,t,n,r,o,i))};var Si=function e(t,n,r,o,i){return t===n||(null==t||null==n||!N(t)&&!N(n)?t!=t&&n!=n:Oi(t,n,r,o,e,i))},xi=1,Ci=2;var Ai=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var u=(s=n[o])[0],c=e[u],f=s[1];if(a&&s[2]){if(void 0===c&&!(u in e))return!1}else{var l=new qt;if(r)var d=r(c,f,u,e,t,l);if(!(void 0===d?Si(f,c,xi|Ci,r,l):d))return!1}}return!0};var Ti=function(e){return e==e&&!ae(e)};var Mi=function(e){for(var t=he(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ti(o)]}return t};var Ni=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}};var ki=function(e){var t=Mi(e);return 1==t.length&&t[0][2]?Ni(t[0][0],t[0][1]):function(n){return n===e||Ai(n,e,t)}},ji=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Di=/^\w*$/;var Pi=function(e,t){if(F(e))return!1;var n=void 0===e?"undefined":M()(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Tr(e))||Di.test(e)||!ji.test(e)||null!=t&&e in Object(t)},Ri="Expected a function";function Ui(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(Ri);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ui.Cache||Gt),n}Ui.Cache=Gt;var Fi=Ui,Li=500;var Wi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ki=/\\(\\)?/g,Bi=function(e){var t=Fi(e,function(e){return n.size===Li&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Wi,function(e,n,r,o){t.push(r?o.replace(Ki,"$1"):n||e)}),t});var Gi=function(e,t){return F(e)?e:Pi(e,t)?[e]:Bi(zr(e))},Hi=1/0;var zi=function(e){if("string"==typeof e||Tr(e))return e;var t=e+"";return"0"==t&&1/e==-Hi?"-0":t};var Vi=function(e,t){for(var n=0,r=(t=Gi(t,e)).length;null!=e&&n<r;)e=e[zi(t[n++])];return n&&n==r?e:void 0};var qi=function(e,t,n){var r=null==e?void 0:Vi(e,t);return void 0===r?n:r};var Ji=function(e,t){return null!=e&&t in Object(e)};var $i=function(e,t,n){for(var r=-1,o=(t=Gi(t,e)).length,i=!1;++r<o;){var a=zi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&H(o)&&B(a,o)&&(F(e)||U(e))};var Xi=function(e,t){return null!=e&&$i(e,t,Ji)},Qi=1,Yi=2;var Zi=function(e,t){return Pi(e)&&Ti(t)?Ni(zi(e),t):function(n){var r=qi(n,e);return void 0===r&&r===t?Xi(n,e):Si(t,r,Qi|Yi)}};var ea=function(e){return function(t){return null==t?void 0:t[e]}};var ta=function(e){return function(t){return Vi(t,e)}};var na=function(e){return Pi(e)?ea(zi(e)):ta(e)};var ra=function(e){return"function"==typeof e?e:null==e?ge:"object"==(void 0===e?"undefined":M()(e))?F(e)?Zi(e[0],e[1]):ki(e):na(e)};var oa=function(e,t){var n={};return t=ra(t,3),pe(e,function(e,r,o){Pe(n,r,t(e,r,o))}),n},ia=n(72),aa=n.n(ia),sa=Qe(function(e,t,n,r){On(e,t,n,r)}),ua="[object Map]",ca="[object Set]",fa=Object.prototype.hasOwnProperty;var la=function(e){if(null==e)return!0;if(de(e)&&(F(e)||"string"==typeof e||"function"==typeof e.splice||Object(L.a)(e)||X(e)||U(e)))return!e.length;var t=bi(e);if(t==ua||t==ca)return!e.size;if(ee(e))return!ie(e).length;for(var n in e)if(fa.call(e,n))return!1;return!0},da=function(e){return"@@widget/consent/"+e},ha=(da("RECORD_DENIED"),da("RECORD_CONSENT"),da("RECORD_CONSENT_PENDING"),da("RECORD_CONSENT_SUCCESS"),da("RECORD_CONSENT_FAILURE"),da("ACTIVATE_PRIVACY_POLICY_FLOW"),da("COMPLETE_PRIVACY_POLICY_FLOW"),da("CANCEL_PRIVACY_POLICY_FLOW"),{welcomeMessage:"welcomeMessage",awayMessage:"awayMessage",emailCaptureMessage:"emailCaptureMessage",thankYouMessage:"confirmationMessage"}),pa=function(e){var t=e.locale,n=e.enableWelcomeMessage,r=e.enableCampaigns,o=e.enableChatTargeting,i=e.enableChatIfConversationHistory,a=e.enableTitleNotifications,s=e.enableSoundNotifications,u=e.backgroundColor,c=e.foregroundColor,f=e.activeColor,l=e.textColor,d=e.widgetBackgroundColor,h=e.autoAssigneeId,p=e.autoAssignee,v=e.inboxId,g=e.widgetStatus,m=e.widgetMode,b=e.welcomeMessageDelay,y=e.disableNewConversations,w=e.disableSidebarClose,_=e.enabled,E=e.profileMode,I=e.driftVideoMode,O=e.driftVideoCampaignId,S=e.conversationVisibility,x=e.videoConvoContext,C=e.embeddedMode,A=e.containerId,T=e.landingPageConfig,M=e.messages,N=void 0===M?{}:M,k=e.isTestingConversation,j=e.verticalOffset,D=e.horizontalOffset,P=aa()(e,["locale","enableWelcomeMessage","enableCampaigns","enableChatTargeting","enableChatIfConversationHistory","enableTitleNotifications","enableSoundNotifications","backgroundColor","foregroundColor","activeColor","textColor","widgetBackgroundColor","autoAssigneeId","autoAssignee","inboxId","widgetStatus","widgetMode","welcomeMessageDelay","disableNewConversations","disableSidebarClose","enabled","profileMode","driftVideoMode","driftVideoCampaignId","conversationVisibility","videoConvoContext","embeddedMode","containerId","landingPageConfig","messages","isTestingConversation","verticalOffset","horizontalOffset"]),R={theme:{}};return t&&(R.locale=t),wo(n)||(R.theme.showWelcomeMessage=!!n),wo(r)||(R.campaignsEnabled=r),!1===o&&(R.theme.audience="EVERYONE",R.theme.conditions=[]),wo(i)||(R.theme.enableChatIfConversationHistory=i),wo(a)||(R.theme.titleNotificationEnabled=a),wo(s)||(R.theme.soundNotificationEnabled=s),u&&(R.theme.backgroundColor=u.replace("#","")),c&&(R.theme.foregroundColor=c.replace("#","")),f&&(R.theme.activeColor=f.replace("#","")),l&&(R.theme.textColor=l.replace("#","")),d&&(R.theme.widgetBackgroundColor=d.replace("#","")),wo(h)||(R.autoAssigneeId=h),wo(p)||(R.autoAssignee=p),v&&(R.inboxId=v),g&&(R.widgetStatus=g),m&&(R.widgetMode=m),wo(b)||(R.theme.welcomeMessageDelay=b),wo(y)||(R.theme.disableNewConversations=!!y),wo(w)||(R.theme.disableSidebarClose=!!w),wo(_)||(R.enabled=!!_),wo(E)||(R.profileMode=!!E),wo(I)||(R.driftVideoMode=!!I),wo(O)||(R.driftVideoCampaignId=O),wo(S)||(R.conversationVisibility=S),wo(x)||(R.videoConvoContext=x),wo(C)||(R.embeddedMode=!!C),wo(A)||(R.containerId=A),wo(k)||(R.isTestingConversation=k),la(T)||(R.landingPageConfig=T),wo(j)||(R.verticalOffset=j),wo(D)||(R.horizontalOffset=D),be(ha,function(e,t){N[t]&&(R.theme[e]=N[t])}),P.test_drift_consent_form&&(R.test_drift_consent_form=!!P.test_drift_consent_form),R};function va(e){return window&&window.document?(window.document.title=e,ga()):null}function ga(){return window&&window.document?window.document.title:null}function ma(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.notificationCount=e,this.originalTitle=ga(),this.modifiedTitle=null,this.intervalId=null,this.update({count:e}),this}ma.prototype.update=function(e){var t=e.count;this.notificationCount=t,t<1?(this._stopUpdateInterval(),this._clearTitle()):this._startUpdateInterval()},ma.prototype.disconnect=function(){this._stopUpdateInterval(),this._clearTitle(),this.notificationCount=0},ma.prototype._updateTitle=function(){this.originalTitle=ga();var e=function(e,t){return e&&t>0?"("+t+") "+e:e}(this.notificationCount>1?"New Messages!":"New Message!",this.notificationCount);this.modifiedTitle=va(e)},ma.prototype._clearTitle=function(){this.modifiedTitle=null,va(this.originalTitle)},ma.prototype._startUpdateInterval=function(){window.clearInterval(this.intervalId),this.intervalId=window.setInterval(this._blink.bind(this),1e3)},ma.prototype._stopUpdateInterval=function(){window.clearInterval(this.intervalId),this.intervalId=null},ma.prototype._blink=function(){ga()===this.modifiedTitle?this._clearTitle():this._updateTitle()};var ba=m?m.isConcatSpreadable:void 0;var ya=function(e){return F(e)||U(e)||!!(ba&&e&&e[ba])};var wa=function e(t,n,r,o,i){var a=-1,s=t.length;for(r||(r=ya),i||(i=[]);++a<s;){var u=t[a];n>0&&r(u)?n>1?e(u,n-1,r,o,i):$o(i,u):o||(i[i.length]=u)}return i};var _a=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return $o(F(n)?Zt(n):[n],wa(t,1))};var Ea=function(e){return null!=e&&e.length?wa(e,1):[]},Ia=1/0;var Oa=function(e){return null!=e&&e.length?wa(e,Ia):[]};var Sa=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1};var xa=function(e){return e!=e};var Ca=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1};var Aa=function(e,t,n){return t==t?Ca(e,t,n):Sa(e,xa,n)};var Ta=function(e,t){return!(null==e||!e.length)&&Aa(e,t,0)>-1};var Ma=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1};var Na=function(){},ka=fi&&1/ko(new fi([,-0]))[1]==1/0?function(e){return new fi(e)}:Na,ja=200;var Da=function(e,t,n){var r=-1,o=Ta,i=e.length,a=!0,s=[],u=s;if(n)a=!1,o=Ma;else if(i>=ja){var c=t?null:ka(e);if(c)return ko(c);a=!1,o=Co,u=new So}else u=t?[]:s;e:for(;++r<i;){var f=e[r],l=t?t(f):f;if(f=n||0!==f?f:0,a&&l==l){for(var d=u.length;d--;)if(u[d]===l)continue e;t&&u.push(l),s.push(f)}else o(u,l,n)||(u!==s&&u.push(l),s.push(f))}return s};var Pa=function(e){return e&&e.length?Da(e):[]},Ra="DISABLED",Ua="REQUIRED",Fa=function(e){return function(e){return qi(e,"campaigns",[])}(e).map(function(e){return qi(e,"conditions")})},La=function(e){return function(e){return qi(e,"rules",[])}(e).map(function(e){return qi(e,"conditions")})},Wa=function(e){return _a(Fa(e),La(e),function(e){return qi(e,"theme.conditions",[])}(e))},Ka=function(e){return"@@drift/api/"+e},Ba=Ka("OVERRIDE_EMBED_CONFIGURATION"),Ga=Ka("START_SCHEDULE_MEETING_FLOW"),Ha=Ka("UPDATE_END_USER_ATTRIBUTES"),za=Ka("REFRESH_TARGETING"),Va=Ka("REPLACE_STATE"),qa=Ka("DISCONNECT");var Ja=function(e){return function(t,n,r){var o=Object(t);if(!de(t)){var i=ra(n,3);t=he(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}},$a=Math.max;var Xa,Qa,Ya=Ja(function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Hr(n);return o<0&&(o=$a(r+o,0)),Sa(e,ra(t,3),o)}),Za=Cn()({"conversation:buttonClicked":"Button Clicked","conversation:firstInteraction":"First Interaction","conversation:playbookClicked":"Playbook Clicked","conversation:playbookFired":"Playbook Fired","conversation:playbookDismissed":"Playbook Dismissed",message:"Message Received","message:sent":"Message Sent",startConversation:"Chat Started",emailCapture:"Email Captured",phoneCapture:"Phone Number Captured","scheduling:meetingBooked":"Meeting Booked"}),es=function(e,t,n){var r=["Drift Widget",Za[e]],o=void 0,i=function(e){if(ae(e)){if(!wo(e.playbookId))return e.playbookId;if(ae(e.playbookInfo)&&!wo(e.playbookInfo.playbookId))return e.playbookInfo.playbookId;if(ae(e.data)&&!wo(e.data.playbookId))return e.data.playbookId}return null}(t);if(i&&(o="Playbook ID: "+i),"conversation:buttonClicked"===e){var a="Text: "+t.buttonBody;o=o?o+", "+a:o}return o&&r.push(o),"message"!==e&&"conversation:playbookFired"!==e||(n?r.push(void 0,!0):r.push({nonInteraction:!0})),r},ts=function(){return window.GoogleAnalyticsObject&&window[window.GoogleAnalyticsObject]||window.ga},ns=function(e){return le(e)&&e.getAll&&e.getAll().length>0},rs=function(e){window._gaq.push(["_trackEvent"].concat(o()(e)))},os=function(e,t){var n=e?e+".send":function(){var e=ts();if(ns(e)){var t=e.getAll()[0].get("name");return t?t+".send":"send"}return"send"}();ts().apply(void 0,[n,"event"].concat(o()(t)))},is=function(e){return!!e&&!!e.match("UA-[0-9]+-[0-9]+")},as=function(e,t,n,r){if(function(e){return!wo(Za[e])}(t)){var o=!wo(ts()),i=!wo(e._gaq),a=es(t,n,!o&&i);if(wo(r))o?os(void 0,a):i&&rs(a);else if(is(r)&&!function(e){var t=ts();return!(wo(t)||!ns(t))&&t.getAll().some(function(t){return t.get("trackingId")===e})}(r)&&i)rs(a);else if(o){var s=is(r)?function(e){var t=ts();if(t){var n=ns(t)&&Ya(t.getAll(),function(t){return t.get("trackingId")===e});return n?n.get("name"):void 0}}(r):r;os(s,a)}}},ss=(n(70),Cn()({PROD:"PRODUCTION",QA:"MASTER",DEV:"dev"})),us=n(69),cs=n.n(us),fs=function(e){try{return cs()(e)}catch(e){return console.error("Unable to decode jwt",e),null}},ls=function(e){return!function(e){var t=e.jwtPayload;if(!t)return console.warn("decodedJwt is not defined"),!1;if(void 0===t.exp)return!1;var n=Date.now().valueOf()/1e3;return t.exp<n}(e)},ds="undefined"!=typeof performance&&performance,hs=ds&&ds.now?function(){return ds.now()}:function(){return Date.now()};function ps(e){if(!e)throw new Error("name must be non-empty")}if(ds&&ds.mark)Xa=function(e){ps(e),ds.mark("start "+e)},Qa=function(e){ps(e),ds.mark("end "+e),ds.measure(e,"start "+e,"end "+e);var t=ds.getEntriesByName(e);return t[t.length-1]},function(){return ds.getEntriesByType("measure")},function(){ds.clearMarks(),ds.clearMeasures()};else{var vs={},gs=[];Xa=function(e){ps(e);var t=hs();vs["$"+e]=t},Qa=function(e){ps(e);var t=hs(),n=vs["$"+e];if(!n)throw new Error("no known mark: "+e);var r={startTime:n,name:e,duration:t-n,entryType:"measure"};return function(e,t){for(var n,r=0,o=e.length;r<o;)e[n=r+o>>>1].startTime<t.startTime?r=n+1:o=n;e.splice(r,0,t)}(gs,r),r},function(){return gs},function(){vs={},gs=[]}}var ms,bs=function(e){e&&Xa(e)},ys=function(e){if(e)return Qa(e)},ws="drift-widget",_s=(ms={},nt()(ms,ss.PROD,"https://js.driftt.com"),nt()(ms,ss.QA,"https://js.driftqa.com"),nt()(ms,ss.DEV,"http://localhost:8083"),ms);function Es(e,t){return[e].map(function(e){return F(e)?e:[e,{}]}).map(function(e){var n=f()(e,2),r=n[0],o=n[1],i=void 0===o?{}:o;return t.match(/^(width|height)$/)?[r,u()({},i,{important:!0})]:[r,i]}).reduce(function(e,t){return t},null)}var Is=/^(auto|0)$|^[+-]?[0-9]+.?([0-9]+)?(px|em|ex|%|in|cm|mm|pt|pc)$/gi,Os=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.height,o=n.width,i=Is.test(r)?r:void 0,a=Is.test(o)?o:void 0;!function(e,t){var n=oa(t,Es);be(n,function(t,n){var r=f()(t,2),o=r[0],i=r[1];!0===(void 0===i?{}:i).important?e.style.setProperty(n,o,"important"):e.style.setProperty(n,o)})}(e,yo({},{height:i,width:a},t))},Ss=function(e,t){e.className=function(e){var t=nr[e];if(void 0!==t)return t;rt.warn("No class name for size '"+e+"'. Must be one of: "+er.join(", "))}(t)},xs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(e){var t=tr[e];if(void 0!==t)return t;rt.warn("No styles for size '"+e+"'. Must be one of: "+er.join(", "))}(e);if(ut())return u()({},n.default,n.mobile);var r={bottom:isNaN(parseInt(t.verticalOffset))?n.default.bottom:t.verticalOffset+"px",right:isNaN(parseInt(t.horizontalOffset))?n.default.right:t.horizontalOffset+"px"};return u()({},n.default,r)},Cs=function e(t){var r=this,o=t.embedId,i=t.drift;d()(this,e),this.init=function(e){var t=e.env;!function(e){"complete"===document.readyState?e():window.addEventListener&&window.addEventListener("load",e,!1)}(function(){bs("widget::load");var e=r.drift.getConfigOptions()||{},o=e.initDelay,i=void 0===o?0:o,a=e.containerId,s=void 0===a?void 0:a;setTimeout(function(){s&&(r.containerId=s);var e=document.getElementById(r.containerId),o=!!e;o||(e=r.createContainer());var i=r.createFrame();r.removeAllChildren(e),e.appendChild(i),o||document.body.appendChild(e),r.widgetInitTimestamp=Date.now(),i.src=""+_s[t]+n.p+"index.html",window.addEventListener?(window.addEventListener("message",r.handleMessage,!1),window.addEventListener("scroll",r.handleScroll,!1),document.documentElement.addEventListener("mouseleave",r.handleMouseLeave,!1),document.documentElement.addEventListener("mouseenter",r.handleMouseEnter,!1)):rt.warn("Could not attach event listeners for Widget"),window.setInterval&&at()?(r.lastHash=r.drift.context.window.location.hash,r.hashChangeIntervalId=window.setInterval(r.detectHashChange,100)):window.addEventListener&&window.addEventListener("popstate",r.handlePopstate,!1),ys("widget::shim.create")},i)})},this.destroy=function(){r.pageTitleNotifier&&(r.pageTitleNotifier.disconnect(),r.pageTitleNotifier=null),r.disconnectIntegrations(),r.postMessageToFrame({type:qa}),window.removeEventListener&&(window.removeEventListener("message",r.handleMessage,!1),window.removeEventListener("scroll",r.handleScroll,!1),document.documentElement.removeEventListener("mouseleave",r.handleMouseLeave,!1),document.documentElement.removeEventListener("mouseenter",r.handleMouseEnter,!1)),window.clearInterval&&at()?window.clearInterval(r.hashChangeIntervalId):window.removeEventListener&&window.removeEventListener("popstate",r.handlePopstate,!1);var e=document.getElementById(ws),t=document.getElementById(r.containerId);t.removeChild(e),document.body.removeChild(t),r.destroyed=!0},this.eventApi=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.postMessageToFrame({type:"widgetEventV1",payload:t})},this.overrideEmbedConfiguration=function(e){r.postMessageToFrame({type:Ba,payload:e});var t=document.getElementById(ws);ut()||(!isNaN(parseInt(e.verticalOffset))&&t.style.setProperty("bottom",e.verticalOffset+"px"),!isNaN(parseInt(e.horizontalOffset))&&t.style.setProperty("right",e.horizontalOffset+"px"))},this.replaceState=function(){r.postMessageToFrame({type:Va,payload:r.makeInitialState({widgetInitTimestamp:r.widgetInitTimestamp})})},this.refreshTargetingState=function(){r.postMessageToFrame({type:za,payload:Jr({context:r.drift.context,cookieNames:r.targetingCookieNames})})},this.acknowledgeIframeResize=function(){r.drift.getIframeMode()&&r.postMessageToFrame({type:"iframeResized"})},this.postMessageToFrame=function(e){if(!r.destroyed&&!le(e)){var t=document.getElementById(ws);t&&t.contentWindow&&t.contentWindow.postMessage(e,"*")}},this.updateEmbedConfigurationAndOverride=function(){var e=r.drift.getConfigOptions(),t=null,n=null;e?(t=pa(e),n=function(e,t){return sa({},e,t,function(e,t){if(F(e))return t})}(r.embed.configuration,t)):n=r.embed.configuration;var o=r.drift.getAutoAssigneeId();o&&(n.autoAssigneeId=o,t||(t=pa({})),t.autoAssigneeId=o),r.embedConfiguration=n,r.embedConfigurationOverride=t},this.makeInitialState=function(e){var t=e.loadTargeting,n=void 0===t||t,o=e.widgetInitTimestamp,i=r.embedConfiguration,a=r.embedConfigurationOverride;r.targetingCookieNames=function(e){var t=Oa(Wa(e)).filter(function(e){return"cookie"===e.field}).filter(function(e){return e.value}).map(function(e){return F(e.value)?e.value.map(function(e){return e.split("=",1)[0]}):[e.value.split("=",1)[0]]});return Pa(Ea(t))}(i);var s=function(e){return qi(e,"theme.cookieGeneration")}(i);s&&(s!==r.drift.getCookieGeneration()&&(r.drift.clearAnonymousId(),r.drift.clearExternalIdCookie()),r.drift.setCookieGeneration(s));var c=function(e){return qi(e,"theme.cookieDomains",[])||[]}(i).filter(function(e){return function(t){return t&&"string"==typeof e&&0!==e.length?e&&"string"==typeof e?e===t||function(e,t){return-1!==e.indexOf(t,e.length-t.length)}(e.split(t)[0],"."):(rt.warn("CurrentURL should be a string"),!1):(rt.warn("cookieDomain does not exist"),!1)}}(window.location.hostname));c.length>0&&wr(c[0]);var f=function(e){return qi(e,"theme.urlWhitelist")}(i),l=function(e){return qi(e,"theme.externalIdWhitelistPattern")}(i);l&&r.drift.getExternalId()&&(function(e,t){if(!e)throw new Error("pattern is required");if("string"!=typeof e)throw new Error("pattern should be a string");if(!t)throw new Error("externalId should be a string");return!!new RegExp(e).exec(t)}(l,r.drift.getExternalId())||(rt.warn('Invalid external user id "'+r.drift.getExternalId()+'". Clearing external id cookie and state, user will be identified as anonymous'),r.drift.clearExternalId())),f&&window.location.href&&(function(e,t){return e?Array.isArray(e)?0==e.length?(rt.warn("Whitelist is empty"),!0):t&&"string"==typeof t?!!ir.reduce(function(e,n){return e||t.includes(n)},!1)||e.map(rr).filter(or).reduce(function(e,n){return e||!!n.exec(t)},!1):(rt.warn("CurrentURL should be a string"),!0):(rt.warn("Whitelist is not an array"),!0):(rt.warn("Whitelist does not exist"),!0)}(f,window.location.href)||(rt.warn('URL is not whitelisted "'+window.location.href+'. Widget will not load."'),r.destroy()));var d=r.drift.getAnonymousId();d&&r.drift.setAnonymousId(d);var h=null,p=null,v=null;if(r.drift.getExternalId()&&!r.drift.getUserJwt()&&(function(e){var t=e.userJwt,n=e.userId;if(!t)return!1;if(!n)return console.warn("userId is not defined"),!1;var r=fs(t);return!!r&&r.sub===n&&ls({jwtPayload:r})}({userJwt:r.drift.getUserJwtFromCookie(),userId:r.drift.getExternalId()})?(h=r.drift.getUserJwtFromCookie(),r.drift.clearExternalId()):(v=r.drift.getExternalId(),r.drift.clearUserJwt())),h=r.drift.getUserJwt()||r.drift.getUserJwtFromCookie()){r.drift.saveUserJwtToCookie(h);var g=fs(h);p=g&&g.sub,r.drift.clearExternalId()}(v=v||r.drift.getExternalIdFromCookie())&&(r.drift.setExternalId(v),r.drift.clearUserJwt()),r.drift.clearIdentifyState();var m=r.drift.getExternalEmail(),b=r.drift.getOneshotToken(),y=r.getMarketoCookie(),w=r.getPardotCookie(i),_=r.getEloquaCookie(),E=r.drift.getSessionId(),I=r.drift.getInfluencingCampaignId(),O=r.drift.getInfluencingSignatureId(),S=r.drift.getInfluencingAgentId();return function(e){var t=e.orgId,n=e.inboxId,r=e.endUser,o=e.embedId,i=e.sessionId,a=e.embedConfiguration,s=e.embedConfigurationOverride,c=e.hasPreviouslyIdentified,f=e.hasPreviouslyBootstrapped,l=e.loadTargeting,d=void 0===l||l,h=e.eloquaCookie,p=e.marketoCookie,v=e.pardotCookie,g=e.oneshotToken,m=e.cookieNames,b=e.influencingCampaignId,y=e.influencingSignatureId,w=e.influencingAgentId,_=e.context,E=e.widgetInitTimestamp,I=e.isSignedIdentityRequired,O=e.instanceId,S=r.anonymousId,x=r.email,C=r.externalId,A=r.userJwt,T=void 0,M=void 0;return C||A?(T={anonymousId:S,externalId:C,oneshotToken:g,endUserEmail:x,userJwt:A},M={isIdentifying:!1,hasIdentified:!0,hasPreviouslyIdentified:!0,trackQueue:[]}):(T={anonymousId:S,oneshotToken:g},M={isIdentifying:!1,hasIdentified:!1,hasPreviouslyIdentified:c,trackQueue:[]}),{Bootstrap:u()({},T,{eloquaCookie:h,marketoCookie:p,pardotCookie:v,embedConfiguration:a,embedConfigurationOverride:s,embedId:o,sessionId:i,hasBootstrapped:!1,hasPreviouslyBootstrapped:f,isBootstrapping:!1,inboxId:n,orgId:t,instanceId:O,isSignedIdentityRequired:I}),Event:M,Targeting:d?Jr({context:_,cookieNames:m,influencingCampaignId:b,influencingSignatureId:y,influencingAgentId:w}):void 0,Metrics:{widgetInitTimestamp:E}}}({orgId:r.embed.orgId,embedId:r.embed.id,inboxId:i.inboxId,sessionId:E,embedConfiguration:i,embedConfigurationOverride:a,endUser:{anonymousId:d,externalId:v||p,email:m,userJwt:h},hasPreviouslyIdentified:r.drift.isPreviouslyIdentified(),hasPreviouslyBootstrapped:r.drift.isPreviouslyBootstrapped(),oneshotToken:b,marketoCookie:y,eloquaCookie:_,pardotCookie:w,loadTargeting:n,influencingCampaignId:I,influencingSignatureId:O,influencingAgentId:S,context:r.drift.context,cookieNames:r.targetingCookieNames,widgetInitTimestamp:o,isSignedIdentityRequired:r.isSignedIdentityRequired(),instanceId:r.drift.getInstanceId()})},this.getPardotCookieName=function(e){var t=function(e){return qi(e,"integrations.pardotId")}(e);return t?br.PARDOT_COOKIE_BASE+t:null},this.getPardotCookie=function(e){var t=r.getPardotCookieName(e);if(t){var n=Er(t);if(n)return n}return null},this.getEloquaCookie=function(){var e=Er(br.ELOQUA_COOKIE);return e||null},this.getMarketoCookie=function(){var e=Er(br.MARKETO_MUNCHKIN);return e||null},this.handleBootstrapSuccess=function(){var e=ys("widget::load");r.postMessageToFrame({type:"timingMetric",payload:function(e){return{name:e.name,duration:e.duration,startTime:e.startTime}}(e)}),Or(br.END_USER_PREV_BOOTSTRAPPED_COOKIE_NAME,!0)},this.handleLeadIdentify=function(e){var t=e.payload,n=t.endUser,r=t.conversationId,o=t.playbookInfo;if(n&&n.email&&"LEAD"===n.type){Or(br.LEAD_HAS_PREV_IDENTIFIED_COOKIE_NAME,!0);var i=u()({email:n.email,conversationId:r},o);window.driftt.__trigger("emailCapture",{data:i})}},this.handleUpdatePrimaryId=function(e){e.payload.userJwt?(r.drift.setUserJwt(e.payload.userJwt),r.drift.clearExternalId()):e.payload.externalId?(r.drift.setExternalId(e.payload.externalId),r.drift.clearUserJwt()):r.drift.setAnonymousId(e.payload.anonymousId)},this.handleUpdateAuthIdentity=function(e){r.drift.__trigger("authReady",e.payload)},this.handleUpdateAutoAssigneeId=function(e){r.drift.setAutoAssigneeId(e.payload)},this.handleWelcomeMessageDismissed=function(){Ir(br.WELCOME_MESSAGE_DISMISSED_COOKIE_NAME,!0)},this.handleSizeEvent=function(e){var t=e.displayType,n=document.getElementById(ws),o=r.drift.getConfigOptions();if(r.drift.getIframeMode()){Os(n,xs("iframe-takeover",o));var i=u()({},xs(t,o),e.overrides);r.drift.__trigger("iframeResize",{size:t,styles:oa(i,Es)})}else{var a=xs(t,o);Os(n,a,e.overrides),Ss(n,t),r.postMessageToFrame({type:"iframeResized"})}},this.handleEnableSidebarModal=function(){st()&&(r.drift.getIframeMode()?r.drift.__trigger("bodyModalEnable",{styles:oa(Yn,Es)}):Os(document.body,Yn))},this.handleDisableSidebarModal=function(){st()&&(r.drift.getIframeMode()?r.drift.__trigger("bodyModalDisable",{styles:oa(Zn,Es)}):Os(document.body,Zn))},this.handleIframeReady=function(){var e=function(){var e=r.drift.getConfigOptions(),t=e&&e.alternateEmbedIds;r.postMessageToFrame({type:"widgetConfigV1",payload:{embedId:r.embedId,alternateEmbedIds:t}})},t=document.getElementById(ws);t&&(t.contentWindow?e():t.onload=e.bind(window))},this.isSignedIdentityRequired=function(){return function(e){return qi(e,"theme.signedIdentityRequiredStatus",Ra)===Ua}(r.embedConfiguration)},this.handleIframeConfig=function(e){r.embed=e.payload.embed,r.updateEmbedConfigurationAndOverride();var t=qi(r.embedConfiguration,"enabled",!0),n=qi(r.embedConfiguration,"gates",{}),o=qi(r.embedConfiguration,"integrations",{});!qi(r.embed,"verified")&&r.drift.isLegacyShimMode()&&r.drift.page();var i=r.makeInitialState({widgetInitTimestamp:r.widgetInitTimestamp}),a=r.drift.initEventApi();t&&!n.disabled_account?(r.postMessageToFrame({type:"widgetInitV1",payload:{initialState:i,showWidgetOnBoot:window.__DRIFTT_SHOW_WIDGET_ON_BOOT__,debugEnabled:window.__DRIFTT_DEBUG__,welcomeMessageDismissed:r.drift.isWelcomeMessageDismissed(),eventQueue:a}}),qi(r.embedConfiguration,"theme.titleNotificationEnabled",!0)&&(r.pageTitleNotifier=new ma,r.drift.on("notification",function(e){r.pageTitleNotifier&&r.pageTitleNotifier.update({count:e.notificationCount})})),r.initIntegrations(n,o)):rt.warn("Drift widget is disabled")},this.handleSetLastTargetingEvalUUID=function(e){var t=e.payload;ho("lastTargetingEvalUUID",void 0===t?void 0:t)},this.initIntegrations=function(e,t){if(e.hubspot_js&&(r.integrations.hubspot={connect:function(){window._hsq=window._hsq||[],window._hsq.push(function(e){var t=!Er(br.HUBSPOT_UTK_CHECKED);t&&Or(br.HUBSPOT_UTK_CHECKED,!0,{expires:new Date(Date.now()+18e5)}),function(e){var t=e.utk,n=e.isNewUtk;r.postMessageToFrame({type:"integrationEvent",payload:{integration:"hubspot",utk:t,isNewUtk:n}})}({utk:e.utk.visitor,isNewUtk:t})})}}),e.eloqua_cookie_id_enabled){var n=3;r.integrations.eloqua={connect:function(){!function e(){var t=Er(br.ELOQUA_COOKIE);t?function(e){var t=!Er(br.ELOQUA_COOKIE_CHECKED);t&&Or(br.ELOQUA_COOKIE_CHECKED,!0,{expires:new Date(Date.now()+18e5)}),r.postMessageToFrame({type:"integrationEvent",payload:{integration:"eloqua",eloquaCookie:e,isNewEloquaCookie:t}})}(t):n-- >0&&setTimeout(e,3e3)}()},disconnect:function(){}}}if(e.pardot_cookie_id_enabled){var o=3;r.integrations.pardot={connect:function(){!function e(){var t=Er(r.getPardotCookieName(r.embedConfiguration));t?function(e){var t=!Er(br.PARDOT_COOKIE_CHECKED);t&&Or(br.PARDOT_COOKIE_CHECKED,!0,{expires:new Date(Date.now()+18e5)}),r.postMessageToFrame({type:"integrationEvent",payload:{integration:"pardot",pardotCookie:e,isNewPardotCookie:t}})}(t):o-- >0&&setTimeout(e,3e3)}()},disconnect:function(){}}}if(e.marketo){var i=3,a=null;r.integrations.marketo={connect:function(){!function e(){var t=Er(br.MARKETO_MUNCHKIN);t?function(e){var t=!Er(br.MARKETO_MUNCHKIN_CHECKED);t&&Or(br.MARKETO_MUNCHKIN_CHECKED,!0,{expires:new Date(Date.now()+18e5)}),r.postMessageToFrame({type:"integrationEvent",payload:{integration:"marketo",munchkinValue:e,isNewMunchkinCookie:t}})}(t):i-- >0&&(a=setTimeout(e,3e3))}()},disconnect:function(){a&&clearTimeout(a)}}}if(qi(r.embedConfiguration,"integrations.googleAnalyticsSettings.enabled",!1)&&function(e,t){var n=t.enabledEventMappings,r=t.individualEventsEnabled,o=t.trackingName;e.drift.on("ready",function(){(function(e){return!!e.GoogleAnalyticsObject||!!e.ga&&!!e.ga.create||!!e._gaq})(e)&&be(he(Za),function(t){(!r||n&&n[t])&&e.drift.on(t,function(n){as(e,t,n,o)})})})}(window,t.googleAnalyticsSettings),window._fs_namespace){var s=window._fs_namespace,u=function(){r.postMessageToFrame({type:"integrationEvent",payload:{integration:"fullstory",sessionTs:+new Date,sessionId:window[s].getCurrentSession(),sessionUrl:window[s].getCurrentSessionURL()}})},c=window._fs_ready,f=function(){u(),c&&c.apply(void 0,arguments)};r.integrations.fullstory={connect:function(){window[s]&&window[s].getCurrentSession&&window[s].getCurrentSession()?u():window._fs_ready=f},disconnect:function(){window._fs_ready===f&&(window._fs_ready=c)}}}},this.connectIntegrations=function(){be(r.integrations,function(e,t){var n=e.connect;try{n&&n()}catch(e){rt.warn("error connecting integration: "+t,e)}})},this.disconnectIntegrations=function(){be(r.integrations,function(e,t){var n=e.disconnect;try{n&&n()}catch(e){rt.warn("error disconnecting integration: "+t,e)}})},this.checkDriftLink=function(){var e=r.drift.context.window.location.hash;e.length>0&&r.postMessageToFrame({type:"slugChange",payload:{slug:e}})},this.checkInitialConversation=function(){var e=r.drift.getOpenInitialConversation();e&&r.postMessageToFrame({type:"goToConversation",payload:{conversationId:e}})},this.handleSdkEvent=function(e){switch(e.type){case"ready":r.triggerReadyEvent(e.payload);break;case"openActivationTakeover":r.triggerActivationEvent(e);break;case"activationSuccess":r.triggerActivationSuccessEvent();break;case"activationClose":r.triggerActivationCloseEvent();break;default:r.drift.__trigger(e.type,e.payload)}},this.triggerReadyEvent=function(e){var t={widget:{hide:function(){r.postMessageToFrame({type:"hideWidget"})},show:function(){r.postMessageToFrame({type:"showWidget"})}},sidebar:{open:function(){r.postMessageToFrame({type:"openSidebar"})},close:function(){r.postMessageToFrame({type:"closeSidebar"})},toggle:function(){r.postMessageToFrame({type:"toggleSidebar"})}},openChat:function(e){r.postMessageToFrame({type:"openChat",payload:e})},hideChat:function(e){r.postMessageToFrame({type:"hideChat",payload:e})},showWelcomeMessage:function(e){r.postMessageToFrame({type:"showWelcomeMessage",payload:e})},hideWelcomeMessage:function(e){r.postMessageToFrame({type:"hideWelcomeMessage",payload:e})},showAwayMessage:function(e){r.postMessageToFrame({type:"showAwayMessage",payload:e})},hideAwayMessage:function(e){r.postMessageToFrame({type:"hideAwayMessage",payload:e})},showWelcomeOrAwayMessage:function(e){r.postMessageToFrame({type:"showWelcomeOrAwayMessage",payload:e})},startInteraction:function(e){r.postMessageToFrame({type:"startInteraction",payload:e})},startVideoGreeting:function(e){r.postMessageToFrame({type:"startVideoGreeting",payload:e})},goToNewConversation:function(){r.postMessageToFrame({type:"goToNewConversation"})},goToConversation:function(e){r.postMessageToFrame({type:"goToConversation",payload:e})},goToConversationList:function(){r.postMessageToFrame({type:"goToConversationList"})},scheduleMeeting:function(e,t){r.postMessageToFrame({type:Ga,payload:u()({agentId:e},t)})},setUserAttributes:function(e){r.postMessageToFrame({type:Ha,payload:e})}};r.drift.initApi(t),r.drift.__trigger("ready",t,e),r.connectIntegrations(),r.checkInitialConversation(),r.checkDriftLink()},this.triggerActivationEvent=function(e){r.postMessageToFrame(e)},this.triggerActivationSuccessEvent=function(){window.opener&&window.opener.postMessage({type:"activationSuccess"},"*")},this.triggerActivationCloseEvent=function(){window.close()},this.handleMessage=function(e){if(e&&e.data){var t=document.getElementById(ws);if(t&&e.source===t.contentWindow){var n=e.data;switch(n.type){case"changeSize":return void r.handleSizeEvent(n);case"enableSidebarModal":return void r.handleEnableSidebarModal(n);case"disableSidebarModal":return void r.handleDisableSidebarModal(n);case"setLastTargetingEvalUUID":return void r.handleSetLastTargetingEvalUUID(n);case"UPDATE_PRIMARY_ID":return void r.handleUpdatePrimaryId(n);case"UPDATE_AUTH_IDENTITY":return void r.handleUpdateAuthIdentity(n);case"@@widget/bootstrap/UPDATE_AUTO_ASSIGNEE_ID":return void r.handleUpdateAutoAssigneeId(n);case"IDENTIFY_LEAD_SUCCESS":return void r.handleLeadIdentify(n);case"BOOSTRAP_END_USER_SUCCESS":return void r.handleBootstrapSuccess(n);case"WELCOME_MESSAGE_HIDE_ON_STARTUP":return void r.handleWelcomeMessageDismissed();case"iframeReady":return void r.handleIframeReady();case"iframeConfigV1":return void r.handleIframeConfig(n);case"@@SDK/EVENT":return void r.handleSdkEvent(n.data);case"requestHeight":return void r.postMessageToFrame({type:"updateHeight",payload:{height:window.innerHeight}})}}}},this.handleScroll=function(){try{var e=window.innerHeight,t=document.body.scrollHeight,n=document.body.scrollTop||document.documentElement.scrollTop,o=(n+e)/t;r.postMessageToFrame({type:"scroll",payload:{windowHeight:e,scrollHeight:t,scrollTop:n,scrollPct:o}})}catch(e){rt.warn("Could not send scroll event to Drift widget",e)}},this.handleMouseLeave=function(e){if(document.hasFocus())try{r.postMessageToFrame({type:"mouseLeave",payload:{clientX:e.clientX,clientY:e.clientY,windowHeight:window.innerHeight,windowWidth:window.innerWidth}})}catch(e){rt.warn("Could not send mouse leave event to Drift widget",e)}},this.handleMouseEnter=function(){if(document.hasFocus())try{r.postMessageToFrame({type:"mouseEnter"})}catch(e){rt.warn("Could not send mouse enter event to Drift widget",e)}},this.handlePopstate=function(){var e=r.drift.context.window.location.hash;try{r.postMessageToFrame({type:"slugChange",payload:{slug:e}})}catch(e){rt.warn("Could not send slugChange event to Drift widget",e)}},this.detectHashChange=function(){var e=r.drift.context.window.location.hash;r.lastHash!==e&&(r.lastHash=e,r.handlePopstate())},this.removeAllChildren=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},this.createContainer=function(){var e=document.createElement("div");return e.onerror=function(e){return rt.error(e)},e.id=r.containerId,e.style.position="absolute",e.style["z-index"]=2147483647,e},this.createFrame=function(){var e=document.createElement("iframe");e.id=ws,e.src="",e.style.border="none",e.style.display="none",e.title="Drift Messenger",e.setAttribute("role","complementary");var t=r.drift.getIframeSandboxOptions();return wo(t)||(e.sandbox=t),e},this.embedId=o,this.drift=i,this.integrations={},this.destroyed=!1,this.containerId="drift-widget-container",this.targetingCookieNames=[],this.widgetInitTimestamp=null},As=n(68),Ts=n.n(As),Ms=function(){function e(t){var n=t.window,r=t.document;d()(this,e),this._window=n,this._document=r}return Ts()(e,[{key:"window",get:function(){return this._window||window}},{key:"document",get:function(){return this._document||document}}]),e}(),Ns=function(e){return function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0";e.length<t;)e=n+e;return e}(e.toString(16),4,"0")},ks=function(){var e=window.crypto||window.msCrypto;if(e&&e.getRandomValues)try{return function(e){var t=new window.Uint16Array(8);return e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768,[Ns(t[0])+Ns(t[1]),Ns(t[2]),Ns(t[3]),Ns(t[4]),Ns(t[5])+Ns(t[6])+Ns(t[7])].join("-")}(e)}catch(e){rt.log("Couldn't generate uuid from Crypto",e)}"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},js=function e(t,n){d()(this,e),Ds.call(this),this.window=t,this.embedId=void 0,this.events=new et,this.eventApiQueue=[],this.eventApiReady=!1,this.configOptions=void 0,this.frame=void 0,this.externalId=void 0,this.externalEmail=void 0,this.oneshotToken=void 0,this.legacyShimMode=!1,this.userJwt=void 0,this.context=new Ms({window:t,document:document}),this.__executeQueue(n),this.autoInit()},Ds=function(){var e=this;this.init=function(t){bs("widget::shim.create");var n=function(e){var t=e.embedId;return e.isLocalDevelopment?ss.DEV:t.indexOf("-dev")<0?ss.PROD:ss.QA}({embedId:t,isLocalDevelopment:!1});if(window.__DRIFTT_WIDGET_INCLUDED__)rt.info("Drift widget already included, skipping.");else if(window.__DRIFTT_WIDGET_INCLUDED__=!0,e.resetInstanceId(),at()&&parseInt(it.a.version)<11)rt.warn("Drift Messenger is disabled for versions of IE older than 11.");else{e.embedId=t,void 0===window.__DRIFTT_SHOW_WIDGET_ON_BOOT__&&(window.__DRIFTT_SHOW_WIDGET_ON_BOOT__=!0);try{if(e.context.window.location.search){var r=e.context.window.location.search.substring(1).split("&");be(r,function(t){var n=t.split("="),r=f()(n,2),o=r[0],i=r[1];"d_utk"===o&&(e.oneshotToken=i),"d_signature"===o&&i&&e.setInfluencingSignatureId(i),"d_agent"===o&&i&&e.setInfluencingAgentId(i),"d_conversation"===o&&i&&e.setOpenToConversation(i),"d_campaign"===o&&i&&e.setInfluencingCampaignId(i),"__drift__debug"===o&&e.debug()})}}catch(e){rt.warn("Error parsing query parameters",e)}e.setAnonymousId(e.getAnonymousId()),"undefined"!==e.getExternalId()&&"undefined-undefined"!==e.getExternalId()&&"d41d8cd98f00b204e9800998ecf8427e"!==e.getExternalId()||Sr(br.END_USER_EXTERNAL_ID_COOKIE_NAME),e.frame=new Cs({embedId:t,drift:e}),e.frame.init({env:n})}},this.load=function(){},this.unload=function(){if(window.__DRIFTT_WIDGET_INCLUDED__)return be(br,function(e){return Sr(e)}),function(){if("undefined"!=typeof document&&null!==document&&"undefined"!=typeof localStorage&&null!==localStorage){var e=[];try{for(var t=0,n=localStorage.length,r=0<=n;r?t<n:t>n;r?t++:t--)e.push(localStorage.key(t))}catch(e){rt.warn("Unable to retrieve keys from local storage")}return function(){var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=cr()(sr()(e));!(n=(i=a.next()).done);n=!0){var s=i.value;if(Vr(s,"Drift.Targeting"))try{t.push(localStorage.removeItem(s))}catch(e){t.push(rt.warn("Unable to remove key "+s+" from local storage"))}else t.push(void 0)}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}return t}()}rt.log("Unable to clear localStorage")}(),e.frame&&e.frame.destroy(),e.window.__DRIFTT_WIDGET_INCLUDED__=!1,e.embedId},this.config=function(t){e.configOptions=Ze({},e.configOptions,t),t.cookieDomain&&wr(t.cookieDomain),e.__overrideEmbedConfiguration__(pa(e.configOptions))},this.setContext=function(t){e.context=new Ms(t)},this.waitForUserJwt=function(){var t,n=["waitForUserJwt"];e.eventApiReady?(t=e.frame).eventApi.apply(t,n):e.eventApiQueue.push(n)},this.setUserJwt=function(t){var n,r=["setUserJwt",t];(e.userJwt=t,e.eventApiReady)?(e.saveUserJwtToCookie(t),(n=e.frame).eventApi.apply(n,r)):e.eventApiQueue.push(r)},this.identify=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t){if("string"!=typeof t&&(t=""+t,rt.warn("`identify` expects a string as a userId")),"d41d8cd98f00b204e9800998ecf8427e"===t)return rt.warn("Cannot identify an empty string"),void Sr(br.END_USER_EXTERNAL_ID_COOKIE_NAME);if("undefined"===t)return rt.warn("Cannot identify to a userId of undefined"),void Sr(br.END_USER_EXTERNAL_ID_COOKIE_NAME);r.userJwt?e.userJwt=r.userJwt:e.externalId=t,n&&n.email?e.externalEmail=n.email:e.externalEmail=null;var o,i=["identify",t,n,u()({userJwt:e.userJwt},r)];if(e.eventApiReady)(o=e.frame).eventApi.apply(o,i),e.frame.replaceState();else e.eventApiQueue.push(i)}else rt.warn("`identify` requires a valid userId")},this.track=function(t,n,r){var o,i=["track",t,n,r];e.eventApiReady?(o=e.frame).eventApi.apply(o,i):e.eventApiQueue.push(i)},this.page=function(t){e.track("Page",{pageName:t,referrer:e.context.document.referrer,title:e.context.document.title,url:e.context.window.location.href},{sessionId:e.refreshSessionId()}),e.eventApiReady&&e.frame.refreshTargetingState()},this.debug=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];window.__DRIFTT_DEBUG__=e,window.__DRIFTT_DEBUG__?rt.log("Enabled Drift Debug Mode"):rt.log("Disabled Drift Debug Mode")},this.on=function(t,n){e.events.addListener(t,n)},this.off=function(t,n){e.events.removeListener(t,n)},this.show=function(){e.window.__DRIFTT_SHOW_WIDGET_ON_BOOT__=!0,e.on("ready",function(e){e.widget.show()})},this.hide=function(){e.window.__DRIFTT_SHOW_WIDGET_ON_BOOT__=!1,e.on("ready",function(e){e.widget.hide()})},this.push=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.map(function(t){if(t.length){var n=a()(t),r=n[0],i=n.slice(1);if("function"==typeof r)e.on("ready",r);else if("string"==typeof r&&"function"==typeof e[r])return e[r].apply(e,o()(i))}else console.warn("invalid argument, should be an array",t)})},this.acknowledgeIframeResize=function(){e.frame&&e.frame.acknowledgeIframeResize()},this.reset=function(){var t;return e.__driftFunc&&e.__driftFunc.reset&&(t=e.__driftFunc).reset.apply(t,arguments)},this.__trigger=function(t,n){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];var a;(a=e.events).trigger.apply(a,[t,n].concat(o))},this.__executeQueue=function(t){try{t.forEach(function(t){e.push(t)})}catch(e){rt.warn("Could not execute queue",e)}},this.__overrideEmbedConfiguration__=function(t){e.on("ready",function(){e.frame.overrideEmbedConfiguration(t)})},this.autoInit=function(){if(!e.embedId)try{var t=ye([].slice.call(document.getElementsByTagName("script")).map(function(e){var t=/include\/[^\/]+\/(.+).js/.exec(e.src||"");if(t&&t[1])return t[1]}).filter(function(e){return!!e}));t?(e.legacyShimMode=!0,e.init(t)):console.warn("Drift initialization failed: Unable to find embedId")}catch(e){rt.warn("Error searching for embed script",e)}},this.getConfigOptions=function(){return e.configOptions},this.getSessionId=function(){return Er(br.SESSION_ID_COOKIE_NAME)||ks()},this.setSessionId=function(e){var t=new Date;Ir(br.SESSION_ID_COOKIE_NAME,e,{expires:new Date(t.valueOf()+18e5)})},this.refreshSessionId=function(){var t=e.getSessionId();return e.setSessionId(t),t},this.getAnonymousId=function(){return Er(br.ANONYMOUS_ID_COOKIE_NAME)||ks()},this.setAnonymousId=function(e){Or(br.ANONYMOUS_ID_COOKIE_NAME,e)},this.clearAnonymousId=function(){Sr(br.ANONYMOUS_ID_COOKIE_NAME)},this.getInstanceId=function(){return window.__DRIFT_INSTANCE_ID__},this.resetInstanceId=function(){window.__DRIFT_INSTANCE_ID__=ks()},this.getInfluencingCampaignId=function(){try{var e=Er(br.INFLUENCING_CAMPAIGN_ID_COOKIE_NAME);if(e&&!window.isNaN(window.parseInt(e)))return window.parseInt(e)}catch(e){rt.warn("Drift found an invalid influencing campaign ID")}},this.setInfluencingCampaignId=function(e){Ir(br.INFLUENCING_CAMPAIGN_ID_COOKIE_NAME,e)},this.setOpenToConversation=function(t){e.openInitialConversation=t},this.getInfluencingSignatureId=function(){try{var e=Er(br.INFLUENCING_SIGNATURE_ID_COOKIE_NAME);if(e&&!window.isNaN(window.parseInt(e)))return window.parseInt(e)}catch(e){rt.warn("Drift found an invalid influencing signature ID")}},this.setInfluencingSignatureId=function(e){Ir(br.INFLUENCING_SIGNATURE_ID_COOKIE_NAME,e)},this.getInfluencingAgentId=function(){try{var e=Er(br.INFLUENCING_AGENT_ID_COOKIE_NAME);if(e&&!window.isNaN(window.parseInt(e)))return window.parseInt(e)}catch(e){rt.warn("Drift found an invalid influencing agent ID")}},this.setInfluencingAgentId=function(e){Ir(br.INFLUENCING_AGENT_ID_COOKIE_NAME,e)},this.getExternalId=function(){return e.externalId},this.getExternalIdFromCookie=function(){return Er(br.END_USER_EXTERNAL_ID_COOKIE_NAME)},this.setExternalId=function(e){Or(br.END_USER_EXTERNAL_ID_COOKIE_NAME,e)},this.saveUserJwtToCookie=function(e){Or(br.USER_JWT_COOKIE_NAME,e)},this.getUserJwt=function(){return e.userJwt},this.getUserJwtFromCookie=function(){return Er(br.USER_JWT_COOKIE_NAME)},this.clearUserJwt=function(){e.userJwt=void 0,e.clearUserJwtCookie()},this.clearUserJwtCookie=function(){Sr(br.USER_JWT_COOKIE_NAME),_r()&&Sr(br.USER_JWT_COOKIE_NAME,{domain:""})},this.clearExternalId=function(){e.externalId=void 0,e.clearExternalIdCookie()},this.clearExternalIdCookie=function(){Sr(br.END_USER_EXTERNAL_ID_COOKIE_NAME),_r()&&Sr(br.END_USER_EXTERNAL_ID_COOKIE_NAME,{domain:""})},this.clearIdentifyState=function(){e.userJwt=void 0,e.externalId=void 0},this.getCookieGeneration=function(){return Er(br.GENERATION_COOKIE_NAME)},this.setCookieGeneration=function(e){Or(br.GENERATION_COOKIE_NAME,e)},this.isPreviouslyBootstrapped=function(){return function(){var e=!1,t=Er(br.END_USER_PREV_BOOTSTRAPPED_COOKIE_NAME);if(t)try{e=JSON.parse(t)}catch(e){Ir(br.END_USER_PREV_BOOTSTRAPPED_COOKIE_NAME,!1)}return e}()},this.isPreviouslyIdentified=function(){return function(){var e=!1,t=Er(br.LEAD_HAS_PREV_IDENTIFIED_COOKIE_NAME);if(t)try{e=JSON.parse(t)}catch(e){Ir(br.LEAD_HAS_PREV_IDENTIFIED_COOKIE_NAME,!1)}return e}()},this.isWelcomeMessageDismissed=function(){return!!Er(br.WELCOME_MESSAGE_DISMISSED_COOKIE_NAME)},this.isLegacyShimMode=function(){return e.legacyShimMode},this.getExternalEmail=function(){return e.externalEmail},this.getOneshotToken=function(){return e.oneshotToken},this.getIframeSandboxOptions=function(){return e.configOptions&&e.configOptions.iframeSandbox},this.getIframeMode=function(){return e.configOptions&&e.configOptions.iframeMode},this.getAutoAssigneeId=function(){try{var e=Er(br.AUTO_ASSIGNEE_ID);if(e)return parseInt(e)}catch(e){rt.warn("invalid autoAssigneeId",e)}},this.setAutoAssigneeId=function(e){Ir(br.AUTO_ASSIGNEE_ID,e)},this.getOpenInitialConversation=function(){try{var t=e.openInitialConversation;if(t&&!window.isNaN(window.parseInt(t)))return window.parseInt(t)}catch(e){return void rt.warn("Drift found an invalid initial conversation ID")}},this.initEventApi=function(){var t=e.eventApiQueue;return e.eventApiQueue=[],e.eventApiReady=!0,t},this.initApi=function(t){e.eventApiQueue.forEach(function(t){var n,r=a()(t).slice(0);(n=e.frame).eventApi.apply(n,o()(r))}),e.__driftFunc&&(e.__driftFunc.api=t)}},Ps=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new js(e,t),r=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return ye(n.push(t))};return r.init=n.init,r.load=n.load,r.unload=n.unload,r.config=n.config,r.identify=n.identify,r.setUserJwt=n.setUserJwt,r.waitForUserJwt=n.waitForUserJwt,r.track=n.track,r.page=n.page,r.debug=n.debug,r.on=n.on,r.off=n.off,r.show=n.show,r.hide=n.hide,r.push=n.push,r.__trigger=n.__trigger,r.__executeQueue=n.__executeQueue,n.__driftFunc=r,r},Rs=n(67);!function(e){pr=e}(n.n(Rs)()());t.default=function(e){!function t(){var n=function(e){return F(e)?e:e&&e.__q?e.__q:void 0}(e.drift||e.driftt),r=e.drift=e.driftt=Ps(e,n);if(r.reset=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=r.unload(),o=t();if(!e)return function(){o.init(n)};o.init(n)},n)try{Object.defineProperty(n,"push",{value:function(){var t;return e.drift&&(t=e.drift).push.apply(t,arguments)},enumerable:!1,configurable:!0,writable:!0})}catch(e){rt.warn("Could not re-define queue.push",e)}return r}()}(window)},function(e,t){
/*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},o=t||{},i=e.split(/; */),a=o.decode||n;return i.forEach(function(e){var t=e.indexOf("=");if(!(t<0)){var n=e.substr(0,t).trim(),o=e.substr(++t,e.length).trim();'"'==o[0]&&(o=o.slice(1,-1)),void 0==r[n]&&(r[n]=function(e,t){try{return t(e)}catch(t){return e}}(o,a))}}),r},t.serialize=function(e,t,n){var i=n||{},a=i.encode||r;if(!o.test(e))throw new TypeError("argument name is invalid");var s=a(t);if(s&&!o.test(s))throw new TypeError("argument val is invalid");var u=[e+"="+s];if(null!=i.maxAge){var c=i.maxAge-0;if(isNaN(c))throw new Error("maxAge should be a Number");u.push("Max-Age="+c)}if(i.domain){if(!o.test(i.domain))throw new TypeError("option domain is invalid");u.push("Domain="+i.domain)}if(i.path){if(!o.test(i.path))throw new TypeError("option path is invalid");u.push("Path="+i.path)}i.expires&&u.push("Expires="+i.expires.toUTCString());i.httpOnly&&u.push("HttpOnly");i.secure&&u.push("Secure");return u.join("; ")};var n=decodeURIComponent,r=encodeURIComponent,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function r(e){this.message=e}r.prototype=new Error,r.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,a=0,s=0,u="";i=t.charAt(s++);~i&&(o=a%4?64*o+i:i,a++%4)?u+=String.fromCharCode(255&o>>(-2*a&6)):0)i=n.indexOf(i);return u}},function(e,t,n){var r=n(82);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(e){return r(t)}}},function(e,t,n){var r=n(7),o=n(16),i=n(13),a=n(23).f;e.exports=function(e){return function(t){for(var n,s=i(t),u=o(s),c=u.length,f=0,l=[];c>f;)n=u[f++],r&&!a.call(s,n)||l.push(e?[n,s[n]]:s[n]);return l}}},function(e,t,n){var r=n(10),o=n(84)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){n(85),e.exports=n(3).Object.values},function(e,t,n){n(52),e.exports=n(3).Object.getOwnPropertySymbols},function(e,t,n){var r=n(15),o=n(16);n(35)("keys",function(){return function(e){return o(r(e))}})},function(e,t,n){n(88),e.exports=n(3).Object.keys},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t;return"[object Object]"===r.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))}},function(e,t,n){"use strict";var r=n(90);e.exports=function(e,t){if(!r(e))throw new TypeError("Expected a plain object");"function"==typeof(t=t||{})&&(t={compare:t});var n=t.deep,o=[],i=[],a=function(e){var s=o.indexOf(e);if(-1!==s)return i[s];var u={},c=Object.keys(e).sort(t.compare);o.push(e),i.push(u);for(var f=0;f<c.length;f++){var l=c[f],d=e[l];u[l]=n&&r(d)?a(d):d}return u};return a(e)}},function(e,t,n){"use strict";e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return e=e.trim(),/^\.*\/|^(?!localhost)\w+:/.test(e)?e:e.replace(/^(?!(?:\w+:)?\/\/)/,"http://")}},function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},function(e,t,n){"use strict";var r=n(93),o=n(49);function i(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=o({arrayFormat:"none"},t)),r=Object.create(null);return"string"!=typeof e?r:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),o=t.shift(),i=t.length>0?t.join("="):void 0;i=void 0===i?null:decodeURIComponent(i),n(decodeURIComponent(o),i,r)}),Object.keys(r).sort().reduce(function(e,t){var n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort(function(e,t){return Number(e)-Number(t)}).map(function(e){return t[e]}):t}(n):e[t]=n,e},Object.create(null))):r},t.stringify=function(e,t){var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[i(t,e),"[",r,"]"].join(""):[i(t,e),"[",i(r,e),"]=",i(n,e)].join("")};case"bracket":return function(t,n){return null===n?i(t,e):[i(t,e),"[]=",i(n,e)].join("")};default:return function(t,n){return null===n?i(t,e):[i(t,e),"=",i(n,e)].join("")}}}(t=o({encode:!0,strict:!0,arrayFormat:"none"},t));return e?Object.keys(e).sort().map(function(r){var o=e[r];if(void 0===o)return"";if(null===o)return i(r,t);if(Array.isArray(o)){var a=[];return o.slice().forEach(function(e){void 0!==e&&a.push(n(r,e,a.length))}),a.join("&")}return i(r,t)+"="+i(o,t)}).filter(function(e){return e.length>0}).join("&"):""}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(a(e),function(a){var s=encodeURIComponent(r(a))+n;return o(e[a])?i(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var f=0;f<c;++f){var l,d,h,p,v=e[f].replace(s,"%20"),g=v.indexOf(n);g>=0?(l=v.substr(0,g),d=v.substr(g+1)):(l=v,d=""),h=decodeURIComponent(l),p=decodeURIComponent(d),r(a,h)?o(a[h])?a[h].push(p):a[h]=[a[h],p]:a[h]=p}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";t.decode=t.parse=n(96),t.encode=t.stringify=n(95)},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";var r=n(50),o=n(98);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=y(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),f=["'"].concat(c),l=["%","/","?",";","#"].concat(f),d=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(97);function y(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",c=e.split(s);c[0]=c[0].replace(/\\/g,"/");var y=e=c.join(s);if(y=y.trim(),!n&&1===e.split("#").length){var w=u.exec(y);if(w)return this.path=y,this.href=y,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=a.exec(y);if(_){var E=(_=_[0]).toLowerCase();this.protocol=E,y=y.substr(_.length)}if(n||_||y.match(/^\/\/[^@\/]+@[^@\/]+/)){var I="//"===y.substr(0,2);!I||_&&g[_]||(y=y.substr(2),this.slashes=!0)}if(!g[_]&&(I||_&&!m[_])){for(var O,S,x=-1,C=0;C<d.length;C++){-1!==(A=y.indexOf(d[C]))&&(-1===x||A<x)&&(x=A)}-1!==(S=-1===x?y.lastIndexOf("@"):y.lastIndexOf("@",x))&&(O=y.slice(0,S),y=y.slice(S+1),this.auth=decodeURIComponent(O)),x=-1;for(C=0;C<l.length;C++){var A;-1!==(A=y.indexOf(l[C]))&&(-1===x||A<x)&&(x=A)}-1===x&&(x=y.length),this.host=y.slice(0,x),y=y.slice(x),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var M=this.hostname.split(/\./),N=(C=0,M.length);C<N;C++){var k=M[C];if(k&&!k.match(h)){for(var j="",D=0,P=k.length;D<P;D++)k.charCodeAt(D)>127?j+="x":j+=k[D];if(!j.match(h)){var R=M.slice(0,C),U=M.slice(C+1),F=k.match(p);F&&(R.push(F[1]),U.unshift(F[2])),U.length&&(y="/"+U.join(".")+y),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var L=this.port?":"+this.port:"",W=this.hostname||"";this.host=W+L,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!v[E])for(C=0,N=f.length;C<N;C++){var K=f[C];if(-1!==y.indexOf(K)){var B=encodeURIComponent(K);B===K&&(B=escape(K)),y=y.split(K).join(B)}}var G=y.indexOf("#");-1!==G&&(this.hash=y.substr(G),y=y.slice(0,G));var H=y.indexOf("?");if(-1!==H?(this.search=y.substr(H),this.query=y.substr(H+1),t&&(this.query=b.parse(this.query)),y=y.slice(0,H)):t&&(this.search="",this.query={}),y&&(this.pathname=y),m[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){L=this.pathname||"";var z=this.search||"";this.path=L+z}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=b.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(s=s.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),c=0;c<u.length;c++){var f=u[c];"protocol"!==f&&(n[f]=e[f])}return m[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!m[e.protocol]){for(var l=Object.keys(e),d=0;d<l.length;d++){var h=l[d];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var v=n.pathname||"",b=n.search||"";n.path=v+b}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=w||y||n.host&&e.pathname,E=_,I=n.pathname&&n.pathname.split("/")||[],O=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!m[n.protocol]);if(O&&(n.hostname="",n.port=null,n.host&&(""===I[0]?I[0]=n.host:I.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),_=_&&(""===p[0]||""===I[0])),w)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,I=p;else if(p.length)I||(I=[]),I.pop(),I=I.concat(p),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(O)n.hostname=n.host=I.shift(),(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!I.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=I.slice(-1)[0],x=(n.host||e.host||I.length>1)&&("."===S||".."===S)||""===S,C=0,A=I.length;A>=0;A--)"."===(S=I[A])?I.splice(A,1):".."===S?(I.splice(A,1),C++):C&&(I.splice(A,1),C--);if(!_&&!E)for(;C--;C)I.unshift("..");!_||""===I[0]||I[0]&&"/"===I[0].charAt(0)||I.unshift(""),x&&"/"!==I.join("/").substr(-1)&&I.push("");var T,M=""===I[0]||I[0]&&"/"===I[0].charAt(0);O&&(n.hostname=n.host=M?"":I.length?I.shift():"",(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.host=n.hostname=T.shift()));return(_=_||n.host&&I.length)&&!M&&I.unshift(""),I.length?n.pathname=I.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){var r=n(3),o=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return o.stringify.apply(o,arguments)}},function(e,t,n){var r=n(10);r(r.S,"Object",{create:n(44)})},function(e,t,n){n(101);var r=n(3).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(15),o=n(58);n(35)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){n(103),e.exports=n(3).Object.getPrototypeOf},function(e,t,n){n(33)("observable")},function(e,t,n){n(33)("asyncIterator")},function(e,t){},function(e,t,n){var r=n(23),o=n(24),i=n(13),a=n(45),s=n(14),u=n(64),c=Object.getOwnPropertyDescriptor;t.f=n(7)?c:function(e,t){if(e=i(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(13),o=n(51).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){var r=n(43);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(16),o=n(38),i=n(23);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),u=i.f,c=0;s.length>c;)u.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){n(52),n(107),n(106),n(105),e.exports=n(3).Symbol},function(e,t,n){e.exports={default:n(112),__esModule:!0}},function(e,t,n){n(30),n(37),e.exports=n(34).f("iterator")},function(e,t,n){e.exports={default:n(114),__esModule:!0}},function(e,t,n){var r=n(19),o=n(53).onFreeze;n(35)("freeze",function(e){return function(t){return e&&r(t)?e(o(t)):t}})},function(e,t,n){n(116),e.exports=n(3).Object.freeze},function(e,t,n){var r=n(10);r(r.S+r.F*!n(7),"Object",{defineProperty:n(8).f})},function(e,t,n){n(118);var r=n(3).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(20),o=n(57);e.exports=n(3).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){n(37),n(30),e.exports=n(120)},function(e,t,n){var r=n(56),o=n(4)("iterator"),i=n(17);e.exports=n(3).isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||i.hasOwnProperty(r(t))}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";var r=n(124),o=n(123),i=n(17),a=n(13);e.exports=n(66)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){n(37),n(30),e.exports=n(122)},function(e,t,n){e.exports={default:n(126),__esModule:!0}},function(e,t,n){"use strict";var r=n(7),o=n(16),i=n(38),a=n(23),s=n(15),u=n(60),c=Object.assign;e.exports=!c||n(18)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=s(e),c=arguments.length,f=1,l=i.f,d=a.f;c>f;)for(var h,p=u(arguments[f++]),v=l?o(p).concat(l(p)):o(p),g=v.length,m=0;g>m;)h=v[m++],r&&!d.call(p,h)||(n[h]=p[h]);return n}:c},function(e,t,n){var r=n(10);r(r.S+r.F,"Object",{assign:n(128)})},function(e,t,n){n(129),e.exports=n(3).Object.assign},function(e,t,n){e.exports={default:n(130),__esModule:!0}},function(e,t,n){var r=n(4)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(8),o=n(24);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var r=n(17),o=n(4)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){var r=n(20);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){"use strict";var r=n(65),o=n(10),i=n(15),a=n(135),s=n(134),u=n(59),c=n(133),f=n(57);o(o.S+o.F*!n(132)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,l,d=i(e),h="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v,m=0,b=f(d);if(g&&(v=r(v,p>2?arguments[2]:void 0,2)),void 0==b||h==Array&&s(b))for(n=new h(t=u(d.length));t>m;m++)c(n,m,g?v(d[m],m):d[m]);else for(l=b.call(d),n=new h;!(o=l.next()).done;m++)c(n,m,g?a(l,v,[o.value,m],!0):o.value);return n.length=m,n}})},function(e,t,n){var r=n(9).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(47),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(13),o=n(59),i=n(138);e.exports=function(e){return function(t,n,a){var s,u=r(t),c=o(u.length),f=i(a,c);if(e&&n!=n){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((e||f in u)&&u[f]===n)return e||f||0;return!e&&-1}}},function(e,t,n){var r=n(8),o=n(20),i=n(16);e.exports=n(7)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){"use strict";var r=n(44),o=n(24),i=n(39),a={};n(21)(a,n(4)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(47),o=n(46);e.exports=function(e){return function(t,n){var i,a,s=String(o(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):i:e?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){n(30),n(136),e.exports=n(3).Array.from},function(e,t,n){"use strict";(function(e){var r=n(1),o=n.n(r),i=n(6),a="object"==("undefined"==typeof exports?"undefined":o()(exports))&&exports&&!exports.nodeType&&exports,s=a&&"object"==o()(e)&&e&&!e.nodeType&&e,u=s&&s.exports===a?i.a.Buffer:void 0,c=u?u.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(32)(e))},function(e,t,n){"use strict";t.a=function(){return!1}}]);
|
"use strict";
const path = require("path");
const AutoLoad = require("fastify-autoload");
const pointOfView = require("point-of-view");
const handlebars = require("handlebars");
module.exports = async function (fastify, opts) {
fastify.register(pointOfView, {
engine: { handlebars },
root: path.join(__dirname, "views"),
layout: "layout.hbs",
});
fastify.register(AutoLoad, {
dir: path.join(__dirname, "plugins"),
options: Object.assign({}, opts),
});
fastify.register(AutoLoad, {
dir: path.join(__dirname, "routes"),
options: Object.assign({}, opts),
});
fastify.setNotFoundHandler((request, reply) => {
if (request.method !== "GET") {
reply.status(405);
return "Method Not Allowed\n";
}
return "Not Found\n";
});
};
|
console.clear();
const p = 8;
const n = 5;
const pixels = Array.from({ length: p * 4 * n }, () =>
Array.from({ length: p })
).flat();
console.log('-'.repeat(60));
const width = pixels.length / 4 / p;
/*
p1 = 0-3, 20-23, 40-43, 60-63
p2 = 4-7
*/
for (let i = 0; i < pixels.length; i += 4) {
const row = ((i / 4 / p) | 0) % p;
const offset = (i / 4) % p;
const spriteIndex = (i / 4 / (p * p)) | 0;
const dataIndex = (spriteIndex * p + row * width + offset) * 4;
if (spriteIndex === 5) console.log({ dataIndex, row, offset, spriteIndex });
}
|
"use strict";
const Locator = {};
const fs = require('fs');
const Path = require('path');
/**
* Returns path to the .git directory.
*
* @returns {string}
*/
Locator.gitPath = () => {
let dirname;
let gitpath;
dirname = __dirname;
do {
if (fs.existsSync(dirname + '/.git')) {
gitpath = dirname + '/.git';
break;
}
dirname = fs.realpathSync(dirname + '/..');
} while (fs.existsSync(dirname) && dirname !== '/');
if (!gitpath) {
throw new Error('.git path cannot be located.');
}
return gitpath;
};
/**
* Returns the parent path of the .git path.
*
* @returns {string} Path to the repository.
*/
Locator.repositoryPath = () => {
return fs.realpathSync(Path.resolve(Locator.gitPath(), '..'));
};
module.exports = Locator;
|
// Here we are seeing multiple requests concepts
// request
function request(order) {
console.log("customer order", order);
response(function () {
console.log("data delivered", order);
})
}
// response
function response(callback) { // This function collects all the requests within first 5 seconds
setTimeout(callback, 5000);
}
// call
request(1);
request(2);
request(3);
request(4);
request(5);
// within 5 seconds all request's data is delivered
|
import React from 'react'
import { Radio } from 'antd'
import { Page } from 'components'
import HighChartsComponent from './HighChartsComponent'
import styles from './index.less'
const RadioGroup = Radio.Group
const chartList = [
{
label: 'Highstock',
value: 'Highstock',
},
{
label: 'Highmaps',
value: 'Highmaps',
},
{
label: 'HighMore',
value: 'HighMore',
},
]
class Chart extends React.Component {
constructor () {
super()
this.state = {
type: '',
}
this.handleRadioGroupChange = this.handleRadioGroupChange.bind(this)
}
handleRadioGroupChange (e) {
this.setState({
type: e.target.value,
})
}
render () {
return (<Page inner>
<RadioGroup options={chartList} defaultValue="Highstock" onChange={this.handleRadioGroupChange} />
<div className={styles.chart}>
<HighChartsComponent type={this.state.type} />
</div>
</Page>)
}
}
export default Chart
|
/*
Copyright 2020 NEC Solution Innovators, Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
const log = require("../server_log").getInstance();
const util = require('util');
const Const = require("../const");
const Validation = require("../validation");
module.exports = class HashtagDbStore {
constructor (db_store, tenant_uuid) {
log.connectionLog(7,"do func hashtag.dbif.constructor(...");
const db_connect = db_store.getDBConnect();
if(db_connect ||
db_connect[tenant_uuid] ||
db_connect[tenant_uuid]["globalsns"]){
this.globalsns_connect = db_connect[tenant_uuid]["globalsns"];
}
}
setHastagArray(hashtags, item_id, jid){
log.connectionLog(7,"do func hashtag.dbif.setHastagArray(...");
return new Promise((resolve, reject)=>{
try{
if(! item_id){
log.connectionLog(2," hashtag.dbif.setHastagArray hashtags invalid.");
reject({
result:false
});
return;
}
if(! jid){
log.connectionLog(2," hashtag.dbif.setHastagArray hashtags invalid.");
reject({
result:false
});
return;
}
if(! hashtags ||
typeof hashtags != "object" ||
hashtags.length === undefined){
log.connectionLog(2," hashtag.dbif.setHastagArray hashtags invalid.");
reject({
result:false
});
return;
}
if(! this.globalsns_connect){
log.connectionLog(1," hashtag.dbif.js.setHastagArray globalsns_connect is invalid");
reject({
result:false
});
return;
}else{
log.connectionLog(7," hashtag.dbif.js.setHastagArray sequelize is ok");
}
this.deleteHastagDataInItemId(item_id)
.then((res1)=>{
let tagAction = [];
let double_check = {};
for(let i=0;i<hashtags.length;i++){
if(double_check[hashtags[i]]){
continue;
}
double_check[hashtags[i]] = true;
tagAction.push(
new Promise((resolve, reject)=>{
this.insertHastagData(hashtags[i],
item_id,
jid)
.then((res2)=>{
resolve({
result:true
});
return;
})
.catch((res2)=>{
reject({
result:false
});
return;
});
})
);
}
Promise.all(tagAction)
.then((res3)=>{
resolve({
result:true
});
return;
})
.catch((err3)=>{
log.connectionLog(2,"hashtag.dbif.js.setHastagArray db insert action err:"+ JSON.stringify(err3));
reject({
result:false
});
return;
});
})
.catch((err1)=>{
log.connectionLog(7,"hashtag.dbif.js.setHastagArray deleteHastagDataInItemId err1:"+ JSON.stringify(err1));
reject({
result:false
});
return;
});
}catch(e){
log.connectionLog(2," hashtag.dbif.js.setHastagArray( catch. " + e);
reject({
result:false
});
return;
}
});
}
getHastagRanking(msgTo, dateFrom, dateTo, rankBottom, offset, limit){
log.connectionLog(7,"do func hashtag.dbif.getHastagRanking(...");
let msgToSQLTableJoin = "";
let msgToSQLInWhere = "";
let _before_day = 365;
let _toDate = 'now()';
let isSetRankBottom = false;
let _offset = 0;
let _limit = 100;
if(Validation.msgToValidationCheck(msgTo, true)){
msgToSQLTableJoin = " LEFT OUTER JOIN publicmessage_store as p ON h.item_id=p.item_id";
msgToSQLInWhere = " AND p.msgto=" + this.globalsns_connect.escape(msgTo);
}
if(Validation.dateValidationCheck(dateTo, true)){
_toDate = this.globalsns_connect.escape(dateTo) + "::date";
}
if(Validation.dateValidationCheck(dateFrom, true)){
if(Validation.dateValidationCheck(dateTo, true)){
_before_day = (new Date(dateTo).getTime() - new Date(dateFrom).getTime()) / 1000 / 60 / 60 / 24;
}else{
_before_day = parseInt((new Date().getTime() - new Date(dateFrom).getTime()) / 1000 / 60 / 60 / 24);
}
}
if(rankBottom != null && typeof rankBottom == 'number'){
isSetRankBottom = true;
}
if(offset != null && typeof offset == 'number'){
_offset = offset;
}
if(limit != null && typeof limit == 'number'){
_limit = limit;
}
return new Promise((resolve, reject)=>{
if(! this.globalsns_connect){
log.connectionLog(1," hashtag.dbif.js.setHastagArray globalsns_connect is invalid");
reject({
result:false,
reason:Const.API_STATUS.INTERNAL_SERVER_ERROR,
data:[]
});
return;
}else{
const sqlbase = "select"
+ " tagname,"
+ " count(*),"
+ " max(h.created_at) as created_at,"
+ " rank() OVER(ORDER BY count(*) DESC) AS rank"
+ " from"
+ " hashtag_store AS h"
+ "" + msgToSQLTableJoin
+ " WHERE"
+ " h.created_at > %s - interval '%s day'"
+ "" + msgToSQLInWhere
+ " GROUP BY tagname"
+ " ORDER BY count DESC, created_at DESC, tagname"
+ " OFFSET %s"
+ " LIMIT %s;";
let sql = util.format(sqlbase,
_toDate,
_before_day,
_offset,
_limit);
log.connectionLog(7,"do func hashtag.dbif.getHastagRanking sql : " + sql);
this.globalsns_connect.query(sql)
.then((res) => {
log.connectionLog(7," hashtag.dbif.js.insertHastagData note_store: s" + JSON.stringify(res));
let data = [];
for(let i=0;i<res[0].length;i++){
if(res[0][i].created_at){
res[0][i].created_at = formatDate(res[0][i].created_at);
}
if(!isSetRankBottom ||
(isSetRankBottom && res[0][i].rank <= rankBottom)){
data.push(res[0][i]);
}
}
resolve({
result:true,
reason:Const.API_STATUS.SUCCESS,
data:data
});
return;
}).catch((err)=>{
log.connectionLog(2," hashtag.dbif.js.insertHastagData note_store: err" + err);
reject({
result:false,
reason:Const.API_STATUS.INTERNAL_SERVER_ERROR,
data:[]
});
return;
});
}
});
}
insertHastagData(tag, itemid, jid){
log.connectionLog(7,"do func hashtag.dbif.insertHastagData(...");
return new Promise((resolve, reject)=>{
try{
if(! itemid){
log.connectionLog(2," hashtag.dbif.insertHastagData itemid invalid.");
reject({
result:false
});
return;
}
if(! this.globalsns_connect){
log.connectionLog(1," hashtag.dbif.js.insertHastagData globalsns_connect is invalid");
reject({
result:false
});
return;
}else{
log.connectionLog(7," hashtag.dbif.js.insertHastagData sequelize is ok");
}
const sqlbase = "INSERT INTO hashtag_store (item_id, jid, tagname, created_at) VALUES (%s, %s, %s, now())";
let sql = util.format(sqlbase,
this.globalsns_connect.escape(itemid),
this.globalsns_connect.escape(jid),
this.globalsns_connect.escape(tag) );
this.globalsns_connect.query(sql)
.then((res) => {
log.connectionLog(7," hashtag.dbif.js.insertHastagData note_store: s" + JSON.stringify(res));
resolve({
result:true
});
return;
}).catch((err)=>{
log.connectionLog(2," hashtag.dbif.js.insertHastagData note_store: err" + err);
reject({
result:false
});
return;
});
}catch(e){
log.connectionLog(2," hashtag.dbif.js.insertHastagData( catch. " + e);
reject({
result:false
});
return;
}
});
}
deleteHastagDataInItemId(itemid){
log.connectionLog(7,"do func hashtag.dbif.deleteHastagDataInItemId(...");
return new Promise((resolve, reject)=>{
try{
if(! itemid){
log.connectionLog(2," hashtag.dbif.deleteHastagDataInItemId itemid invalid.");
reject({
result:false
});
return;
}
if(! this.globalsns_connect){
log.connectionLog(1," hashtag.dbif.js.deleteHastagDataInItemId globalsns_connect is invalid");
reject({
result:false
});
return;
}else{
log.connectionLog(7," hashtag.dbif.js.deleteHastagDataInItemId sequelize is ok");
}
const sqlbase = "DELETE FROM hashtag_store where item_id = %s";
let sql = util.format(sqlbase,
this.globalsns_connect.escape(itemid));
log.connectionLog(7," hashtag.dbif.js.deleteHastagDataInItemId sql:" + sql);
this.globalsns_connect.query(sql)
.then((res) => {
log.connectionLog(7," hashtag.dbif.js.deleteHastagDataInItemId note_store: s" + JSON.stringify(res));
resolve({
result:true
});
return;
}).catch((err)=>{
log.connectionLog(2," hashtag.dbif.js.deleteHastagDataInItemId note_store: err" + err);
reject({
result:false
});
return;
});
}catch(e){
log.connectionLog(2," hashtag.dbif.js.deleteHastagDataInItemId( catch. " + e);
reject({
result:false
});
return;
}
});
}
};
const formatDate = (dateString) => {
if(!dateString){
return "";
}
let date = new Date(dateString);
return date.getFullYear()
+ "/" + ("0" + (date.getMonth() + 1)).slice(-2)
+ "/" + ("0" + date.getDate()).slice(-2)
+ " " + ("0" + date.getHours()).slice(-2)
+ ":" + ("0" + date.getMinutes()).slice(-2)
+ ":" + ("0" + date.getSeconds()).slice(-2)
+ "." + ("000" + date.getMilliseconds()).slice(-3);
};
|
export default routesConfig;
/** @ngInject */
function routesConfig($stateProvider, $urlRouterProvider, $locationProvider) {
$urlRouterProvider.otherwise('/');
$stateProvider
.state('home', {
url: '/',
template: '<home flex layout="column" />'
})
.state('pendu', {
url: '/pendu',
template: '<pendu flex layout="column" />'
});
}
|
!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(require("../moment")):"function"==typeof define&&define.amd?define(["moment"],b):b(a.moment)}(this,function(a){"use strict";var b=a.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});return b});
|
'use strict';
var gulp = require('gulp'),
$ = require('gulp-load-plugins')(),
del = require('del'),
webpack = require('webpack-stream'),
named = require('vinyl-named'),
path = require('path'),
browserSync = require('browser-sync');
require('dotenv').config({silent: true});
var paths = {
webpack: 'src/scripts/*.js',
scripts: ['src/scripts/**/*.js', '!src/scripts/vendor/**/*.js'],
templates: ['src/templates/**/*.html', 'app/views/**/*.html'],
styles: 'src/styles/**/*.scss',
images: 'src/images/**/*.{png,jpeg,jpg,svg,gif}',
extras: ['src/*.*', 'src/fonts/**/*'],
dest: {
scripts : 'dist/js',
styles: 'dist/css',
images: 'dist/img',
extras: 'dist'
}
};
var lint = function (files) {
return gulp.src(files)
.pipe($.jshint())
.pipe($.jshint.reporter('jshint-stylish'));
};
gulp.task('lint:client', function () {
return lint(paths.scripts);
});
gulp.task('lint:server', function () {
return lint( ['server.js', 'app/**/*.js'] );
});
gulp.task('scripts', ['lint:client'], function () {
return gulp.src( paths.webpack )
.pipe($.plumber())
.pipe(named())
.pipe(webpack({
output: {
filename: '[name].min.js'
},
externals: {
'jquery': 'jQuery',
},
resolve: {
root: path.resolve('./src/scripts'),
/*alias: {
templates: path.resolve('./src/templates')
}*/
},
module: {
loaders: []
},
plugins: [
$.util.env.production ? new webpack.webpack.optimize.UglifyJsPlugin({
minimize: true,
compress: {
warnings: false
}
}) : $.util.noop,
],
devtool: $.util.env.production ? '': '#source-map'
}))
.pipe(gulp.dest(paths.dest.scripts));
});
gulp.task('styles', function () {
return gulp.src(paths.styles)
.pipe($.plumber())
.pipe( $.util.env.production ? $.util.noop() : $.sourcemaps.init() )
.pipe($.sass({
outputStyle: $.util.env.production ? 'compressed' : 'nested',
}).on('error', $.sass.logError))
.pipe($.autoprefixer())
.pipe($.sourcemaps.write('.'))
.pipe(gulp.dest(paths.dest.styles));
});
gulp.task('images', function () {
return gulp.src(paths.images)
.pipe($.plumber())
.pipe($.newer(paths.dest.images))
.pipe($.imagemin({
optimizationLevel: $.util.env.production ? 5 : 1,
progressive: true,
interlaced: true
}))
.pipe(gulp.dest(paths.dest.images));
});
gulp.task('extras', function () {
return gulp.src(paths.extras, {base: 'src'})
.pipe($.newer(paths.dest.extras))
.pipe(gulp.dest(paths.dest.extras));
});
gulp.task('clean', function () {
return del([paths.dest.extras]);
});
gulp.task('serve', ['watch'], function () {
browserSync({
files: [ 'dist/**', '!dist/**/*.map', '!dist/**/*.html', '!dist/export/*' ],
proxy: 'localhost:3000',
port: 3001,
ui: false,
open: !$.util.env.no
});
});
gulp.task('express', function () {
return $.nodemon({
script: 'server.js',
ext: 'html js',
ignore: ['public/**', 'src/**', 'dist/**', 'node_modules/**'],
//tasks: ['lint:server']
})
.on('restart', function () {
gulp.start('lint:server');
console.log('restarted!');
});
});
gulp.task('watch', ['scripts', 'styles', 'images', 'extras'], function() { //'html'
gulp.watch(paths.scripts, ['scripts']);
gulp.watch(paths.styles, ['styles']);
gulp.watch(paths.images, ['images']);
gulp.watch(paths.extras, ['extras']);
gulp.watch(paths.templates, ['scripts']);
});
gulp.task('default', ['clean', 'express'], function () {
gulp.start('serve');
});
gulp.task('deploy', ['clean'], function () {
$.util.env.production = true;
gulp.start(['scripts', 'styles', 'images', 'extras']);
});
var spawn = require('child_process').spawn;
gulp.task('reload', function() {
var p;
function spawnChildren() {
if(p) {
p.kill();
}
p = spawn('gulp', ['default'], {stdio: 'inherit'});
}
gulp.watch('gulpfile.js', spawnChildren);
spawnChildren();
});
|
(function () {
'use strict';
angular
.module('<%= prompts.prefix %>.common.directives', []);
})();
|
module.exports = function(app){
app.post('/correios/calculo-prazo', function(req,res){
var dadosEntrega = req.body;
var correiosSOAPClient = new app.servicos.correiosSOAPClient();
correiosSOAPClient.calculaPrazo(dadosEntrega, function(erro, resultado){
if (erro){
res.status(500).send(erro);
return;
}
console.log('prazo calculado');
res.json(resultado);
});
});
}
|
/*! DateTime picker for DataTables.net v1.0.3
*
* ©2020 SpryMedia Ltd, all rights reserved.
* License: MIT datatables.net/license/mit
*/
/**
* @summary DateTime picker for DataTables.net
* @version 1.0.3
* @file dataTables.dateTime.js
* @author SpryMedia Ltd
* @contact www.datatables.net/contact
*/
(function( factory ){
if ( typeof define === 'function' && define.amd ) {
// AMD
define( ['jquery'], function ( $ ) {
return factory( $, window, document );
} );
}
else if ( typeof exports === 'object' ) {
// CommonJS
module.exports = function (root, $) {
if ( ! root ) {
root = window;
}
return factory( $, root, root.document );
};
}
else {
// Browser
factory( jQuery, window, document );
}
}(function( $, window, document, undefined ) {
'use strict';
// Support libraries which support a Moment like API
var dateLib = window.moment
? window.moment
: window.dayjs
? window.dayjs
: window.luxon
? window.luxon
: null;
/*
* This file provides a DateTime GUI picker (calendar and time input). Only the
* format YYYY-MM-DD is supported without additional software, but the end user
* experience can be greatly enhanced by including the momentjs, dayjs or luxon library
* which provide date / time parsing and formatting options.
*
* This functionality is required because the HTML5 date and datetime input
* types are not widely supported in desktop browsers.
*
* Constructed by using:
*
* new DateTime( input, opts )
*
* where `input` is the HTML input element to use and `opts` is an object of
* options based on the `DateTime.defaults` object.
*/
var DateTime = function ( input, opts ) {
this.c = $.extend( true, {}, DateTime.defaults, opts );
var classPrefix = this.c.classPrefix;
var i18n = this.c.i18n;
// Only IS8601 dates are supported without moment, dayjs or luxon
if ( ! dateLib && this.c.format !== 'YYYY-MM-DD' ) {
throw "DateTime: Without momentjs, dayjs or luxon only the format 'YYYY-MM-DD' can be used";
}
// Min and max need to be `Date` objects in the config
if (typeof this.c.minDate === 'string') {
this.c.minDate = new Date(this.c.minDate);
}
if (typeof this.c.maxDate === 'string') {
this.c.maxDate = new Date(this.c.maxDate);
}
var timeBlock = function ( type ) {
return '<div class="'+classPrefix+'-timeblock">'+
'</div>';
};
var gap = function () {
return '<span>:</span>';
};
// DOM structure
var structure = $(
'<div class="'+classPrefix+'">'+
'<div class="'+classPrefix+'-date">'+
'<div class="'+classPrefix+'-title">'+
'<div class="'+classPrefix+'-iconLeft">'+
'<button title="'+i18n.previous+'">'+i18n.previous+'</button>'+
'</div>'+
'<div class="'+classPrefix+'-iconRight">'+
'<button title="'+i18n.next+'">'+i18n.next+'</button>'+
'</div>'+
'<div class="'+classPrefix+'-label">'+
'<span></span>'+
'<select class="'+classPrefix+'-month"></select>'+
'</div>'+
'<div class="'+classPrefix+'-label">'+
'<span></span>'+
'<select class="'+classPrefix+'-year"></select>'+
'</div>'+
'</div>'+
'<div class="'+classPrefix+'-calendar"></div>'+
'</div>'+
'<div class="'+classPrefix+'-time">'+
'<div class="'+classPrefix+'-hours"></div>'+
'<div class="'+classPrefix+'-minutes"></div>'+
'<div class="'+classPrefix+'-seconds"></div>'+
'</div>'+
'<div class="'+classPrefix+'-error"></div>'+
'</div>'
);
this.dom = {
container: structure,
date: structure.find( '.'+classPrefix+'-date' ),
title: structure.find( '.'+classPrefix+'-title' ),
calendar: structure.find( '.'+classPrefix+'-calendar' ),
time: structure.find( '.'+classPrefix+'-time' ),
error: structure.find( '.'+classPrefix+'-error' ),
input: $(input)
};
this.s = {
/** @type {Date} Date value that the picker has currently selected */
d: null,
/** @type {Date} Date of the calendar - might not match the value */
display: null,
/** @type {number} Used to select minutes in a range where the range base is itself unavailable */
minutesRange: null,
/** @type {number} Used to select minutes in a range where the range base is itself unavailable */
secondsRange: null,
/** @type {String} Unique namespace string for this instance */
namespace: 'dateime-'+(DateTime._instance++),
/** @type {Object} Parts of the picker that should be shown */
parts: {
date: this.c.format.match( /[YMD]|L(?!T)|l/ ) !== null,
time: this.c.format.match( /[Hhm]|LT|LTS/ ) !== null,
seconds: this.c.format.indexOf( 's' ) !== -1,
hours12: this.c.format.match( /[haA]/ ) !== null
}
};
this.dom.container
.append( this.dom.date )
.append( this.dom.time )
.append( this.dom.error );
this.dom.date
.append( this.dom.title )
.append( this.dom.calendar );
this._constructor();
};
$.extend( DateTime.prototype, {
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Public
*/
/**
* Destroy the control
*/
destroy: function () {
this._hide(true);
this.dom.container.off().empty();
this.dom.input
.removeAttr('autocomplete')
.off('.datetime');
},
errorMsg: function ( msg ) {
var error = this.dom.error;
if ( msg ) {
error.html( msg );
}
else {
error.empty();
}
return this;
},
hide: function () {
this._hide();
return this;
},
max: function ( date ) {
this.c.maxDate = typeof date === 'string'
? new Date(date)
: date;
this._optionsTitle();
this._setCalander();
return this;
},
min: function ( date ) {
this.c.minDate = typeof date === 'string'
? new Date(date)
: date;
this._optionsTitle();
this._setCalander();
return this;
},
/**
* Check if an element belongs to this control
*
* @param {node} node Element to check
* @return {boolean} true if owned by this control, false otherwise
*/
owns: function ( node ) {
return $(node).parents().filter( this.dom.container ).length > 0;
},
/**
* Get / set the value
*
* @param {string|Date} set Value to set
* @param {boolean} [write=true] Flag to indicate if the formatted value
* should be written into the input element
*/
val: function ( set, write ) {
if ( set === undefined ) {
return this.s.d;
}
if ( set instanceof Date ) {
this.s.d = this._dateToUtc( set );
}
else if ( set === null || set === '' ) {
this.s.d = null;
}
else if ( set === '--now' ) {
this.s.d = new Date();
}
else if ( typeof set === 'string' ) {
// luxon uses different method names so need to be able to call them
if(dateLib && dateLib == window.luxon) {
var luxDT = dateLib.DateTime.fromFormat(set, this.c.format)
this.s.d = luxDT.isValid ? luxDT.toJSDate() : null;
}
else if ( dateLib ) {
// Use moment, dayjs or luxon if possible (even for ISO8601 strings, since it
// will correctly handle 0000-00-00 and the like)
var m = dateLib.utc( set, this.c.format, this.c.locale, this.c.strict );
this.s.d = m.isValid() ? m.toDate() : null;
}
else {
// Else must be using ISO8601 without a date library (constructor would
// have thrown an error otherwise)
var match = set.match(/(\d{4})\-(\d{2})\-(\d{2})/ );
this.s.d = match ?
new Date( Date.UTC(match[1], match[2]-1, match[3]) ) :
null;
}
}
if ( write || write === undefined ) {
if ( this.s.d ) {
this._writeOutput();
}
else {
// The input value was not valid...
this.dom.input.val( set );
}
}
// We need a date to be able to display the calendar at all
if ( ! this.s.d ) {
this.s.d = this._dateToUtc( new Date() );
}
this.s.display = new Date( this.s.d.toString() );
// Set the day of the month to be 1 so changing between months doesn't
// run into issues when going from day 31 to 28 (for example)
this.s.display.setUTCDate( 1 );
// Update the display elements for the new value
this._setTitle();
this._setCalander();
this._setTime();
return this;
},
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Constructor
*/
/**
* Build the control and assign initial event handlers
*
* @private
*/
_constructor: function () {
var that = this;
var classPrefix = this.c.classPrefix;
var last = this.dom.input.val();
var onChange = function () {
var curr = that.dom.input.val();
if (curr !== last) {
that.c.onChange.call( that, curr, that.s.d, that.dom.input );
last = curr;
}
};
if ( ! this.s.parts.date ) {
this.dom.date.css( 'display', 'none' );
}
if ( ! this.s.parts.time ) {
this.dom.time.css( 'display', 'none' );
}
if ( ! this.s.parts.seconds ) {
this.dom.time.children('div.'+classPrefix+'-seconds').remove();
this.dom.time.children('span').eq(1).remove();
}
// Render the options
this._optionsTitle();
$(document).on('i18n.dt', function (e, settings) {
if (settings.oLanguage.datetime) {
$.extend(true, that.c.i18n, settings.oLanguage.datetime);
this._optionsTitle();
}
});
// When attached to a hidden input, we always show the input picker, and
// do so inline
if (this.dom.input.attr('type') === 'hidden') {
this.dom.container.addClass('inline');
this.c.attachTo = 'input';
this.val( this.dom.input.val(), false );
this._show();
}
// Set the initial value
if (last) {
this.val( last, false );
}
// Trigger the display of the widget when clicking or focusing on the
// input element
this.dom.input
.attr('autocomplete', 'off')
.on('focus.datetime click.datetime', function () {
// If already visible - don't do anything
if ( that.dom.container.is(':visible') || that.dom.input.is(':disabled') ) {
return;
}
// In case the value has changed by text
that.val( that.dom.input.val(), false );
that._show();
} )
.on('keyup.datetime', function () {
// Update the calendar's displayed value as the user types
if ( that.dom.container.is(':visible') ) {
that.val( that.dom.input.val(), false );
}
} );
// Main event handlers for input in the widget
this.dom.container
.on( 'change', 'select', function () {
var select = $(this);
var val = select.val();
if ( select.hasClass(classPrefix+'-month') ) {
// Month select
that._correctMonth( that.s.display, val );
that._setTitle();
that._setCalander();
}
else if ( select.hasClass(classPrefix+'-year') ) {
// Year select
that.s.display.setUTCFullYear( val );
that._setTitle();
that._setCalander();
}
else if ( select.hasClass(classPrefix+'-hours') || select.hasClass(classPrefix+'-ampm') ) {
// Hours - need to take account of AM/PM input if present
if ( that.s.parts.hours12 ) {
var hours = $(that.dom.container).find('.'+classPrefix+'-hours').val() * 1;
var pm = $(that.dom.container).find('.'+classPrefix+'-ampm').val() === 'pm';
that.s.d.setUTCHours( hours === 12 && !pm ?
0 :
pm && hours !== 12 ?
hours + 12 :
hours
);
}
else {
that.s.d.setUTCHours( val );
}
that._setTime();
that._writeOutput( true );
onChange();
}
else if ( select.hasClass(classPrefix+'-minutes') ) {
// Minutes select
that.s.d.setUTCMinutes( val );
that._setTime();
that._writeOutput( true );
onChange();
}
else if ( select.hasClass(classPrefix+'-seconds') ) {
// Seconds select
that.s.d.setSeconds( val );
that._setTime();
that._writeOutput( true );
onChange();
}
that.dom.input.focus();
that._position();
} )
.on( 'click', function (e) {
var d = that.s.d;
var nodeName = e.target.nodeName.toLowerCase();
var target = nodeName === 'span' ?
e.target.parentNode :
e.target;
nodeName = target.nodeName.toLowerCase();
if ( nodeName === 'select' ) {
return;
}
e.stopPropagation();
if ( nodeName === 'button' ) {
var button = $(target);
var parent = button.parent();
if ( parent.hasClass('disabled') && ! parent.hasClass('range') ) {
button.blur();
return;
}
if ( parent.hasClass(classPrefix+'-iconLeft') ) {
// Previous month
that.s.display.setUTCMonth( that.s.display.getUTCMonth()-1 );
that._setTitle();
that._setCalander();
that.dom.input.focus();
}
else if ( parent.hasClass(classPrefix+'-iconRight') ) {
// Next month
that._correctMonth( that.s.display, that.s.display.getUTCMonth()+1 );
that._setTitle();
that._setCalander();
that.dom.input.focus();
}
else if ( button.parents('.'+classPrefix+'-time').length ) {
var val = button.data('value');
var unit = button.data('unit');
if ( unit === 'minutes' ) {
if ( parent.hasClass('disabled') && parent.hasClass('range') ) {
that.s.minutesRange = val;
that._setTime();
return;
}
else {
that.s.minutesRange = null;
}
}
if ( unit === 'seconds' ) {
if ( parent.hasClass('disabled') && parent.hasClass('range') ) {
that.s.secondsRange = val;
that._setTime();
return;
}
else {
that.s.secondsRange = null;
}
}
// Specific to hours for 12h clock
if ( val === 'am' ) {
if ( d.getUTCHours() >= 12 ) {
val = d.getUTCHours() - 12;
}
else {
return;
}
}
else if ( val === 'pm' ) {
if ( d.getUTCHours() < 12 ) {
val = d.getUTCHours() + 12;
}
else {
return;
}
}
var set = unit === 'hours' ?
'setUTCHours' :
unit === 'minutes' ?
'setUTCMinutes' :
'setSeconds';
d[set]( val );
that._setTime();
that._writeOutput( true );
onChange();
}
else {
// Calendar click
if ( ! d ) {
d = that._dateToUtc( new Date() );
}
// Can't be certain that the current day will exist in
// the new month, and likewise don't know that the
// new day will exist in the old month, But 1 always
// does, so we can change the month without worry of a
// recalculation being done automatically by `Date`
d.setUTCDate( 1 );
d.setUTCFullYear( button.data('year') );
d.setUTCMonth( button.data('month') );
d.setUTCDate( button.data('day') );
that._writeOutput( true );
// Don't hide if there is a time picker, since we want to
// be able to select a time as well.
if ( ! that.s.parts.time ) {
// This is annoying but IE has some kind of async
// behaviour with focus and the focus from the above
// write would occur after this hide - resulting in the
// calendar opening immediately
setTimeout( function () {
that._hide();
}, 10 );
}
else {
that._setCalander();
}
onChange();
}
}
else {
// Click anywhere else in the widget - return focus to the
// input element
that.dom.input.focus();
}
} );
},
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Private
*/
/**
* Compare the date part only of two dates - this is made super easy by the
* toDateString method!
*
* @param {Date} a Date 1
* @param {Date} b Date 2
* @private
*/
_compareDates: function( a, b ) {
// Can't use toDateString as that converts to local time
// luxon uses different method names so need to be able to call them
return dateLib && dateLib == window.luxon
? dateLib.DateTime.fromJSDate(a).toISODate() === dateLib.DateTime.fromJSDate(b).toISODate()
: this._dateToUtcString(a) === this._dateToUtcString(b);
},
/**
* When changing month, take account of the fact that some months don't have
* the same number of days. For example going from January to February you
* can have the 31st of Jan selected and just add a month since the date
* would still be 31, and thus drop you into March.
*
* @param {Date} date Date - will be modified
* @param {integer} month Month to set
* @private
*/
_correctMonth: function ( date, month ) {
var days = this._daysInMonth( date.getUTCFullYear(), month );
var correctDays = date.getUTCDate() > days;
date.setUTCMonth( month );
if ( correctDays ) {
date.setUTCDate( days );
date.setUTCMonth( month );
}
},
/**
* Get the number of days in a method. Based on
* http://stackoverflow.com/a/4881951 by Matti Virkkunen
*
* @param {integer} year Year
* @param {integer} month Month (starting at 0)
* @private
*/
_daysInMonth: function ( year, month ) {
//
var isLeap = ((year % 4) === 0 && ((year % 100) !== 0 || (year % 400) === 0));
var months = [31, (isLeap ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
return months[month];
},
/**
* Create a new date object which has the UTC values set to the local time.
* This allows the local time to be used directly for the library which
* always bases its calculations and display on UTC.
*
* @param {Date} s Date to "convert"
* @return {Date} Shifted date
*/
_dateToUtc: function ( s ) {
return new Date( Date.UTC(
s.getFullYear(), s.getMonth(), s.getDate(),
s.getHours(), s.getMinutes(), s.getSeconds()
) );
},
/**
* Create a UTC ISO8601 date part from a date object
*
* @param {Date} d Date to "convert"
* @return {string} ISO formatted date
*/
_dateToUtcString: function ( d ) {
// luxon uses different method names so need to be able to call them
return dateLib && dateLib == window.luxon
? dateLib.DateTime.fromJSDate(d).toISODate()
: d.getUTCFullYear()+'-'+
this._pad(d.getUTCMonth()+1)+'-'+
this._pad(d.getUTCDate());
},
/**
* Hide the control and remove events related to its display
*
* @private
*/
_hide: function (destroy) {
if (! destroy && this.dom.input.attr('type') === 'hidden') {
return;
}
var namespace = this.s.namespace;
this.dom.container.detach();
$(window).off( '.'+namespace );
$(document).off( 'keydown.'+namespace );
$('div.dataTables_scrollBody').off( 'scroll.'+namespace );
$('div.DTE_Body_Content').off( 'scroll.'+namespace );
$('body').off( 'click.'+namespace );
},
/**
* Convert a 24 hour value to a 12 hour value
*
* @param {integer} val 24 hour value
* @return {integer} 12 hour value
* @private
*/
_hours24To12: function ( val ) {
return val === 0 ?
12 :
val > 12 ?
val - 12 :
val;
},
/**
* Generate the HTML for a single day in the calendar - this is basically
* and HTML cell with a button that has data attributes so we know what was
* clicked on (if it is clicked on) and a bunch of classes for styling.
*
* @param {object} day Day object from the `_htmlMonth` method
* @return {string} HTML cell
*/
_htmlDay: function( day )
{
if ( day.empty ) {
return '<td class="empty"></td>';
}
var classes = [ 'selectable' ];
var classPrefix = this.c.classPrefix;
if ( day.disabled ) {
classes.push( 'disabled' );
}
if ( day.today ) {
classes.push( 'now' );
}
if ( day.selected ) {
classes.push( 'selected' );
}
return '<td data-day="' + day.day + '" class="' + classes.join(' ') + '">' +
'<button class="'+classPrefix+'-button '+classPrefix+'-day" type="button" ' +'data-year="' + day.year + '" data-month="' + day.month + '" data-day="' + day.day + '">' +
'<span>'+day.day+'</span>'+
'</button>' +
'</td>';
},
/**
* Create the HTML for a month to be displayed in the calendar table.
*
* Based upon the logic used in Pikaday - MIT licensed
* Copyright (c) 2014 David Bushell
* https://github.com/dbushell/Pikaday
*
* @param {integer} year Year
* @param {integer} month Month (starting at 0)
* @return {string} Calendar month HTML
* @private
*/
_htmlMonth: function ( year, month ) {
var now = this._dateToUtc( new Date() ),
days = this._daysInMonth( year, month ),
before = new Date( Date.UTC(year, month, 1) ).getUTCDay(),
data = [],
row = [];
if ( this.c.firstDay > 0 ) {
before -= this.c.firstDay;
if (before < 0) {
before += 7;
}
}
var cells = days + before,
after = cells;
while ( after > 7 ) {
after -= 7;
}
cells += 7 - after;
var minDate = this.c.minDate;
var maxDate = this.c.maxDate;
if ( minDate ) {
minDate.setUTCHours(0);
minDate.setUTCMinutes(0);
minDate.setSeconds(0);
}
if ( maxDate ) {
maxDate.setUTCHours(23);
maxDate.setUTCMinutes(59);
maxDate.setSeconds(59);
}
for ( var i=0, r=0 ; i<cells ; i++ ) {
var day = new Date( Date.UTC(year, month, 1 + (i - before)) ),
selected = this.s.d ? this._compareDates(day, this.s.d) : false,
today = this._compareDates(day, now),
empty = i < before || i >= (days + before),
disabled = (minDate && day < minDate) ||
(maxDate && day > maxDate);
var disableDays = this.c.disableDays;
if ( Array.isArray( disableDays ) && $.inArray( day.getUTCDay(), disableDays ) !== -1 ) {
disabled = true;
}
else if ( typeof disableDays === 'function' && disableDays( day ) === true ) {
disabled = true;
}
var dayConfig = {
day: 1 + (i - before),
month: month,
year: year,
selected: selected,
today: today,
disabled: disabled,
empty: empty
};
row.push( this._htmlDay(dayConfig) );
if ( ++r === 7 ) {
if ( this.c.showWeekNumber ) {
row.unshift( this._htmlWeekOfYear(i - before, month, year) );
}
data.push( '<tr>'+row.join('')+'</tr>' );
row = [];
r = 0;
}
}
var classPrefix = this.c.classPrefix;
var className = classPrefix+'-table';
if ( this.c.showWeekNumber ) {
className += ' weekNumber';
}
// Show / hide month icons based on min/max
if ( minDate ) {
var underMin = minDate >= new Date( Date.UTC(year, month, 1, 0, 0, 0 ) );
this.dom.title.find('div.'+classPrefix+'-iconLeft')
.css( 'display', underMin ? 'none' : 'block' );
}
if ( maxDate ) {
var overMax = maxDate < new Date( Date.UTC(year, month+1, 1, 0, 0, 0 ) );
this.dom.title.find('div.'+classPrefix+'-iconRight')
.css( 'display', overMax ? 'none' : 'block' );
}
return '<table class="'+className+'">' +
'<thead>'+
this._htmlMonthHead() +
'</thead>'+
'<tbody>'+
data.join('') +
'</tbody>'+
'</table>';
},
/**
* Create the calendar table's header (week days)
*
* @return {string} HTML cells for the row
* @private
*/
_htmlMonthHead: function () {
var a = [];
var firstDay = this.c.firstDay;
var i18n = this.c.i18n;
// Take account of the first day shift
var dayName = function ( day ) {
day += firstDay;
while (day >= 7) {
day -= 7;
}
return i18n.weekdays[day];
};
// Empty cell in the header
if ( this.c.showWeekNumber ) {
a.push( '<th></th>' );
}
for ( var i=0 ; i<7 ; i++ ) {
a.push( '<th>'+dayName( i )+'</th>' );
}
return a.join('');
},
/**
* Create a cell that contains week of the year - ISO8601
*
* Based on https://stackoverflow.com/questions/6117814/ and
* http://techblog.procurios.nl/k/n618/news/view/33796/14863/
*
* @param {integer} d Day of month
* @param {integer} m Month of year (zero index)
* @param {integer} y Year
* @return {string}
* @private
*/
_htmlWeekOfYear: function ( d, m, y ) {
var date = new Date( y, m, d, 0, 0, 0, 0 );
// First week of the year always has 4th January in it
date.setDate( date.getDate() + 4 - (date.getDay() || 7) );
var oneJan = new Date( y, 0, 1 );
var weekNum = Math.ceil( ( ( (date - oneJan) / 86400000) + 1)/7 );
return '<td class="'+this.c.classPrefix+'-week">' + weekNum + '</td>';
},
/**
* Create option elements from a range in an array
*
* @param {string} selector Class name unique to the select element to use
* @param {array} values Array of values
* @param {array} [labels] Array of labels. If given must be the same
* length as the values parameter.
* @private
*/
_options: function ( selector, values, labels ) {
if ( ! labels ) {
labels = values;
}
var select = this.dom.container.find('select.'+this.c.classPrefix+'-'+selector);
select.empty();
for ( var i=0, ien=values.length ; i<ien ; i++ ) {
select.append( '<option value="'+values[i]+'">'+labels[i]+'</option>' );
}
},
/**
* Set an option and update the option's span pair (since the select element
* has opacity 0 for styling)
*
* @param {string} selector Class name unique to the select element to use
* @param {*} val Value to set
* @private
*/
_optionSet: function ( selector, val ) {
var select = this.dom.container.find('select.'+this.c.classPrefix+'-'+selector);
var span = select.parent().children('span');
select.val( val );
var selected = select.find('option:selected');
span.html( selected.length !== 0 ?
selected.text() :
this.c.i18n.unknown
);
},
/**
* Create time options list.
*
* @param {string} unit Time unit - hours, minutes or seconds
* @param {integer} count Count range - 12, 24 or 60
* @param {integer} val Existing value for this unit
* @param {integer[]} allowed Values allow for selection
* @param {integer} range Override range
* @private
*/
_optionsTime: function ( unit, count, val, allowed, range ) {
var classPrefix = this.c.classPrefix;
var container = this.dom.container.find('div.'+classPrefix+'-'+unit);
var i, j;
var render = count === 12 ?
function (i) { return i; } :
this._pad;
var classPrefix = this.c.classPrefix;
var className = classPrefix+'-table';
var i18n = this.c.i18n;
if ( ! container.length ) {
return;
}
var a = '';
var span = 10;
var button = function (value, label, className) {
// Shift the value for PM
if ( count === 12 && typeof value === 'number' ) {
if (val >= 12 ) {
value += 12;
}
if (value == 12) {
value = 0;
}
else if (value == 24) {
value = 12;
}
}
var selected = val === value || (value === 'am' && val < 12) || (value === 'pm' && val >= 12) ?
'selected' :
'';
if (allowed && $.inArray(value, allowed) === -1) {
selected += ' disabled';
}
if ( className ) {
selected += ' '+className;
}
return '<td class="selectable '+selected+'">' +
'<button class="'+classPrefix+'-button '+classPrefix+'-day" type="button" data-unit="'+unit+'" data-value="'+value+ '">' +
'<span>'+label+'</span>'+
'</button>' +
'</td>';
}
if ( count === 12 ) {
// Hours with AM/PM
a += '<tr>';
for ( i=1 ; i<=6 ; i++ ) {
a += button(i, render(i));
}
a += button('am', i18n.amPm[0]);
a += '</tr>';
a += '<tr>';
for ( i=7 ; i<=12 ; i++ ) {
a += button(i, render(i));
}
a += button('pm', i18n.amPm[1]);
a += '</tr>';
span = 7;
}
else if ( count === 24 ) {
// Hours - 24
var c = 0;
for (j=0 ; j<4 ; j++ ) {
a += '<tr>';
for ( i=0 ; i<6 ; i++ ) {
a += button(c, render(c));
c++;
}
a += '</tr>';
}
span = 6;
}
else {
// Minutes and seconds
a += '<tr>';
for (j=0 ; j<60 ; j+=10 ) {
a += button(j, render(j), 'range');
}
a += '</tr>';
// Slight hack to allow for the different number of columns
a += '</tbody></thead><table class="'+className+' '+className+'-nospace"><tbody>';
var start = range !== null ?
range :
Math.floor( val / 10 )*10;
a += '<tr>';
for (j=start+1 ; j<start+10 ; j++ ) {
a += button(j, render(j));
}
a += '</tr>';
span = 6;
}
container
.empty()
.append(
'<table class="'+className+'">'+
'<thead><tr><th colspan="'+span+'">'+
i18n[unit] +
'</th></tr></thead>'+
'<tbody>'+
a+
'</tbody>'+
'</table>'
);
},
/**
* Create the options for the month and year
*
* @param {integer} year Year
* @param {integer} month Month (starting at 0)
* @private
*/
_optionsTitle: function () {
var i18n = this.c.i18n;
var min = this.c.minDate;
var max = this.c.maxDate;
var minYear = min ? min.getFullYear() : null;
var maxYear = max ? max.getFullYear() : null;
var i = minYear !== null ? minYear : new Date().getFullYear() - this.c.yearRange;
var j = maxYear !== null ? maxYear : new Date().getFullYear() + this.c.yearRange;
this._options( 'month', this._range( 0, 11 ), i18n.months );
this._options( 'year', this._range( i, j ) );
},
/**
* Simple two digit pad
*
* @param {integer} i Value that might need padding
* @return {string|integer} Padded value
* @private
*/
_pad: function ( i ) {
return i<10 ? '0'+i : i;
},
/**
* Position the calendar to look attached to the input element
* @private
*/
_position: function () {
var offset = this.c.attachTo === 'input' ? this.dom.input.position() : this.dom.input.offset();
var container = this.dom.container;
var inputHeight = this.dom.input.outerHeight();
if (container.hasClass('inline')) {
container.insertAfter( this.dom.input );
return;
}
if ( this.s.parts.date && this.s.parts.time && $(window).width() > 550 ) {
container.addClass('horizontal');
}
else {
container.removeClass('horizontal');
}
if(this.c.attachTo === 'input') {
container
.css( {
top: offset.top + inputHeight,
left: offset.left
} )
.insertAfter( this.dom.input );
}
else {
container
.css( {
top: offset.top + inputHeight,
left: offset.left
} )
.appendTo( 'body' );
}
var calHeight = container.outerHeight();
var calWidth = container.outerWidth();
var scrollTop = $(window).scrollTop();
// Correct to the bottom
if ( offset.top + inputHeight + calHeight - scrollTop > $(window).height() ) {
var newTop = offset.top - calHeight;
container.css( 'top', newTop < 0 ? 0 : newTop );
}
// Correct to the right
if ( calWidth + offset.left > $(window).width() ) {
var newLeft = $(window).width() - calWidth;
// Account for elements which are inside a position absolute element
if (this.c.attachTo === 'input') {
newLeft -= $(container).offsetParent().offset().left;
}
container.css( 'left', newLeft < 0 ? 0 : newLeft );
}
},
/**
* Create a simple array with a range of values
*
* @param {integer} start Start value (inclusive)
* @param {integer} end End value (inclusive)
* @param {integer} [inc=1] Increment value
* @return {array} Created array
* @private
*/
_range: function ( start, end, inc ) {
var a = [];
if ( ! inc ) {
inc = 1;
}
for ( var i=start ; i<=end ; i+=inc ) {
a.push( i );
}
return a;
},
/**
* Redraw the calendar based on the display date - this is a destructive
* operation
*
* @private
*/
_setCalander: function () {
if ( this.s.display ) {
this.dom.calendar
.empty()
.append( this._htmlMonth(
this.s.display.getUTCFullYear(),
this.s.display.getUTCMonth()
) );
}
},
/**
* Set the month and year for the calendar based on the current display date
*
* @private
*/
_setTitle: function () {
this._optionSet( 'month', this.s.display.getUTCMonth() );
this._optionSet( 'year', this.s.display.getUTCFullYear() );
},
/**
* Set the time based on the current value of the widget
*
* @private
*/
_setTime: function () {
var that = this;
var d = this.s.d;
// luxon uses different method names so need to be able to call them. This happens a few time later in this method too
var luxDT = null
if (dateLib && dateLib == window.luxon) {
luxDT = dateLib.DateTime.fromJSDate(d);
}
var hours = luxDT != null
? luxDT.hour
: d
? d.getUTCHours()
: 0;
var allowed = function ( prop ) { // Backwards compt with `Increment` option
return that.c[prop+'Available'] ?
that.c[prop+'Available'] :
that._range( 0, 59, that.c[prop+'Increment'] );
}
this._optionsTime( 'hours', this.s.parts.hours12 ? 12 : 24, hours, this.c.hoursAvailable )
this._optionsTime(
'minutes',
60,
luxDT != null
? luxDT.minute
: d
? d.getUTCMinutes()
: 0, allowed('minutes'),
this.s.minutesRange
);
this._optionsTime(
'seconds',
60,
luxDT != null
? luxDT.second
: d
? d.getSeconds()
: 0,
allowed('seconds'),
this.s.secondsRange
);
},
/**
* Show the widget and add events to the document required only while it
* is displayed
*
* @private
*/
_show: function () {
var that = this;
var namespace = this.s.namespace;
this._position();
// Need to reposition on scroll
$(window).on( 'scroll.'+namespace+' resize.'+namespace, function () {
that._position();
} );
$('div.DTE_Body_Content').on( 'scroll.'+namespace, function () {
that._position();
} );
$('div.dataTables_scrollBody').on( 'scroll.'+namespace, function () {
that._position();
} );
var offsetParent = this.dom.input[0].offsetParent;
if ( offsetParent !== document.body ) {
$(offsetParent).on( 'scroll.'+namespace, function () {
that._position();
} );
}
// On tab focus will move to a different field (no keyboard navigation
// in the date picker - this might need to be changed).
$(document).on( 'keydown.'+namespace, function (e) {
if (
e.keyCode === 9 || // tab
e.keyCode === 27 || // esc
e.keyCode === 13 // return
) {
that._hide();
}
} );
// Hide if clicking outside of the widget - but in a different click
// event from the one that was used to trigger the show (bubble and
// inline)
setTimeout( function () {
$('body').on( 'click.'+namespace, function (e) {
var parents = $(e.target).parents();
if ( ! parents.filter( that.dom.container ).length && e.target !== that.dom.input[0] ) {
that._hide();
}
} );
}, 10 );
},
/**
* Write the formatted string to the input element this control is attached
* to
*
* @private
*/
_writeOutput: function ( focus ) {
var date = this.s.d;
// Use moment, dayjs or luxon if possible - otherwise it must be ISO8601 (or the
// constructor would have thrown an error)
// luxon uses different method names so need to be able to call them.
var out = dateLib && dateLib == window.luxon
? dateLib.DateTime.fromJSDate(this.s.d).toFormat(this.c.format)
: dateLib ?
dateLib.utc( date, undefined, this.c.locale, this.c.strict ).format( this.c.format ) :
date.getUTCFullYear() +'-'+
this._pad(date.getUTCMonth() + 1) +'-'+
this._pad(date.getUTCDate());
this.dom.input
.val( out )
.trigger('change', {write: date});
if ( this.dom.input.attr('type') === 'hidden' ) {
this.val(out, false);
}
if ( focus ) {
this.dom.input.focus();
}
}
} );
/**
* Use a specificmoment compatible date library
*/
DateTime.use = function (lib) {
dateLib = lib;
};
/**
* For generating unique namespaces
*
* @type {Number}
* @private
*/
DateTime._instance = 0;
/**
* Defaults for the date time picker
*
* @type {Object}
*/
DateTime.defaults = {
attachTo: 'body',
// Not documented - could be an internal property
classPrefix: 'dt-datetime',
// function or array of ints
disableDays: null,
// first day of the week (0: Sunday, 1: Monday, etc)
firstDay: 1,
format: 'YYYY-MM-DD',
hoursAvailable: null,
i18n: {
previous: 'Previous',
next: 'Next',
months: [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ],
weekdays: [ 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' ],
amPm: [ 'am', 'pm' ],
hours: 'Hour',
minutes: 'Minute',
seconds: 'Second',
unknown: '-'
},
maxDate: null,
minDate: null,
minutesAvailable: null,
minutesIncrement: 1, // deprecated
strict: true,
locale: 'en',
onChange: function () {},
secondsAvailable: null,
secondsIncrement: 1, // deprecated
// show the ISO week number at the head of the row
showWeekNumber: false,
// overruled by max / min date
yearRange: 25
};
DateTime.version = '1.0.3';
// Global export - if no conflicts
if (! window.DateTime) {
window.DateTime = DateTime;
}
// Make available via jQuery
$.fn.dtDateTime = function (options) {
return this.each(function() {
new DateTime(this, options);
});
}
// Attach to DataTables if present
if ($.fn.dataTable) {
$.fn.dataTable.DateTime = DateTime;
$.fn.DataTable.DateTime = DateTime;
if ($.fn.dataTable.Editor) {
$.fn.dataTable.Editor.DateTime = DateTime;
}
}
return DateTime;
}));
|
function debounce(fn, delay){
var timer, context, args;
return function(){
context = this;
args = arguments;
clearTimeout(timer);
timer = setTimeout( function(){
fn.apply(context, args);
}, delay);
}
}
// declare youtube api
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var player = [];
var mb_player = [];
function onYouTubeIframeAPIReady() {
$('.normal-video').on('load',function(){
var index = $(this).index('.normal-video');
player[index] = new YT.Player($(this).attr('id'));
});
$('.video-mobile-page iframe').on('load', function(){
var index = $(this).index('.video-mobile-page iframe');
mb_player[index] = new YT.Player($(this).attr('id'));
});
}
$(document).ready(function(){
var delay = window.innerWidth > 991 ? 1000 : 800;
var bLazy = new Blazy({
breakpoints: [{
width: 991,
src: 'data-src-medium',
}]
});
var swiper = new Swiper('.swiper-container', {
loop: true,
speed: 1500,
autoplay:{
delay: 5000,
disableOnInteraction: false,
},
pagination:{
el: '.swiper-pagination',
clickable: true,
},
});
//scroll to that 4 sections
$('.selling-pt').on('click', function(event){
(event.preventDefault) ? event.preventDefault() : event.returnValue = false;
var header_height = $('nav').height();
$('html, body').animate({scrollTop: Math.ceil($($(this).attr("href")).offset().top) - header_height }, 1000);
})
//open the first video content at first
if(window.innerWidth > 991){
$('.video-content:eq(0)').show();
$('.know-more:eq(0)').addClass('active');
$('.upper-tri:eq(0)').show();
}
$('.know-more').on('click', function(){
var index = $(this).index(".know-more");
var target = $('.video-content:eq(' + index + ' )');
var y = $(window).scrollTop();
var t = 800;
$('.know-more').each(function(i){
if( $(this).hasClass('active') && index != i){
$('.video-content:eq(' + i + ' )').hide();
$(this).siblings('.upper-tri').hide();
if($('.video-content:eq(' + i + ' )').parent().get(0) == $('.video-content:eq(' + index + ' )').parent().get(0)){
t = 0;
}
}
});
$('.know-more').removeClass("active");
target.closest('.pt-section').removeClass('pb-0');
if( target.css('display') == 'none' ){
$(this).addClass("active");
if( index > 1){
//remove padding bottom to let the background disappear when video content comes out
target.closest('.pt-section').addClass('pb-0');
}
}
if( !target.is(":animated")){
$(this).siblings('.upper-tri').toggle();
target.animate({height: 'toggle'}, t, function(){
// if it is not closing open content
if(target.offset().top != 0){
$("html, body").animate({scrollTop: target.offset().top - window.innerHeight / 2}, 800);
}
});
}
});
// mobile show up video and content
$(".thumbnail, .play-btn").on('click',function(){
var trigger_index = $(this).index(".thumbnail");
var target = $(".video-mobile-page").eq(trigger_index);
target.addClass("active");
if( !target.find(".b-lazy").hasClass("b-loaded") ){
bLazy.load(target.find(".b-lazy"));
}
});
$(".video-mobile-page .cross").on("click",function(){
$('.video-mobile-page iframe').each(function(){
this.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
});
$(this).parent(".video-mobile-page").removeClass("active");
});
//stop or let main layer scrolling
$(".thumbnail, .play-btn, .video-mobile-page .cross, .regis-btn, #regis .cross").on("click", function(){
if( $('body').hasClass('overlay-open') ){
overlayClose();
}else{
overlayOpen();
}
});
function overlayOpen(){
//save window position
$('body').attr( 'data-pos', $(window).scrollTop() );
$("body, html").addClass("overlay-open");
}
function overlayClose(){
$("body, html").removeClass("overlay-open");
//get window position
var pos = $('body').attr( 'data-pos' );
$(window).scrollTop(pos);
}
function checkVideoContent(){
if( window.innerWidth < 991 ){
$('.video-content-wrapper').closest('.pt-section').removeClass('pb-0');
$(".video-content, .upper-tri").css("display", "none");
$(".know-more").removeClass('active');
$('.normal-video').each(function(index){
if( player[index] && typeof player[index].getPlayerState === "function" ){
player[index].pauseVideo();
}
});
}else{
if( $(".video-mobile-page.active").length ){
overlayClose();
var index = $('.video-mobile-page.active').index(".video-mobile-page");
mb_player[index].pauseVideo();
}
$(".video-mobile-page.active").removeClass("active");
}
bLazy.load($('.thumbnail, .normal-video, .play-btn'));
}
$(window).on('resize', debounce(checkVideoContent, 500));
});
|
import { useState, useEffect } from "react";
import { GraphQLClient } from "graphql-request";
export const BASE_URL =
process.env.NODE_ENV === "production"
? "production-url"
: "http://localhost:4000/graphql";
export const useClient = () => {
const [idToken, setIdToken] = useState("");
useEffect(() => {
const token = window.gapi.auth2
.getAuthInstance()
.currentUser.get()
.getAuthResponse().id_token;
setIdToken(token);
}, []);
return new GraphQLClient(BASE_URL, {
headers: { authorization: idToken }
});
};
|
OLCS.ready(function() {
"use strict";
const BILATERAL_ID = 4;
const MOROCCO_ID = 'MA';
var form = "form[name=IrhpPermitPrint]";
var F = OLCS.formHelper;
function getCountryValue() {
return F.findInput("fields", "country").val();
}
function isBilateral() {
return (parseInt(F.findInput("fields", "irhpPermitType").val(), 10) === BILATERAL_ID);
}
function isTypeSelected() {
return parseInt(F.findInput("fields", "irhpPermitType").val(), 10);
}
function isCountrySelected() {
return getCountryValue().length === 2;
}
function isMoroccoSelected() {
return getCountryValue() === MOROCCO_ID;
}
function isStockSelected() {
return parseInt(F.findInput("fields", "irhpPermitStock").val(), 10);
}
function isRangeTypeSelected() {
var rangeType = F.findInput("fields", "irhpPermitRangeType").val();
return rangeType.length && rangeType != 'Loading...';
}
function isSubmitVisible() {
return isStockSelected() && (!isBilateral() || isBilateral() && (isRangeTypeSelected() || isMoroccoSelected()));
}
$(document).on("change", "#irhpPermitType", function() {
var field = isBilateral() ? 'irhpPermitTypeForCountry' : 'irhpPermitTypeForStock';
F.findInput("fields", field).val(F.findInput("fields", "irhpPermitType").val());
F.findInput("fields", field).trigger("change");
});
$(document).on("change", "#irhpPermitStock", function() {
if (!isBilateral()) {
return;
}
var field = 'irhpPermitStockForRangeType';
F.findInput("fields", field).val(F.findInput("fields", "irhpPermitStock").val());
F.findInput("fields", field).trigger("change");
});
OLCS.cascadeInput({
source: "#irhpPermitTypeForCountry",
dest: "#country",
url: "/list/irhp-permit-print-country",
emptyLabel: "Please select",
clearWhenEmpty: true
});
OLCS.cascadeInput({
source: "#country",
dest: "#irhpPermitStock",
url: "/list/irhp-permit-print-stock-by-country",
emptyLabel: "Please select",
clearWhenEmpty: true
});
OLCS.cascadeInput({
source: "#irhpPermitTypeForStock",
dest: "#irhpPermitStock",
url: "/list/irhp-permit-print-stock-by-type",
emptyLabel: "Please select",
clearWhenEmpty: true
});
OLCS.cascadeInput({
source: "#irhpPermitStockForRangeType",
dest: "#irhpPermitRangeType",
url: "/list/irhp-permit-print-range-type-by-stock",
emptyLabel: "Please select",
clearWhenEmpty: true
});
OLCS.cascadeForm({
form: form,
rulesets: {
"fields": {
"*": true,
"country": function() {
return isBilateral();
},
"irhpPermitStock": function() {
return isTypeSelected() && (!isBilateral() || isBilateral() && isCountrySelected());
},
"irhpPermitRangeType": function() {
return isTypeSelected() && isBilateral() && isStockSelected() && !isMoroccoSelected();
},
},
"form-actions": function() {
return isSubmitVisible();
}
}
});
});
|
import firebase from 'firebase';
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyC92oRuTJpiG0LvxqClwuJUzNG5lEx00fQ",
authDomain: "login-d7375.firebaseapp.com",
projectId: "login-d7375",
storageBucket: "login-d7375.appspot.com",
messagingSenderId: "388304060443",
appId: "1:388304060443:web:e21791b6cbbc89a5c038be",
};
// Initialize Firebase
const fire = firebase.initializeApp(firebaseConfig);
export default fire;
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({tabSize: 4, indentUnit: 2}, "cypher");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
MT("unbalancedDoubledQuotedString",
"[string \"a'b\"][variable c]");
MT("unbalancedSingleQuotedString",
"[string 'a\"b'][variable c]");
MT("doubleQuotedString",
"[string \"a\"][variable b]");
MT("singleQuotedString",
"[string 'a'][variable b]");
MT("single attribute (with content)",
"[node {][atom a:][string 'a'][node }]");
MT("multiple attribute, singleQuotedString (with content)",
"[node {][atom a:][string 'a'][node ,][atom b:][string 'b'][node }]");
MT("multiple attribute, doubleQuotedString (with content)",
"[node {][atom a:][string \"a\"][node ,][atom b:][string \"b\"][node }]");
MT("single attribute (without content)",
"[node {][atom a:][string 'a'][node }]");
MT("multiple attribute, singleQuotedString (without content)",
"[node {][atom a:][string ''][node ,][atom b:][string ''][node }]");
MT("multiple attribute, doubleQuotedString (without content)",
"[node {][atom a:][string \"\"][node ,][atom b:][string \"\"][node }]");
})();
|
"use strict";
const backToTopBtn = document.getElementById('btn-back-to-top');
window.onscroll = () => {
if (document.body.scrollTop > 50 || document.documentElement.scrollTop > 50)
backToTopBtn.style.display = 'block';
else
backToTopBtn.style.display = 'none';
};
backToTopBtn.addEventListener('click', () => {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
});
|
"use strict";
const AWS = require('aws-sdk');
const chalk = require('chalk');
const fsx = require('../lib/helpers/fs-additions');
const path = require('path');
const parseEnvironment = require('../lib/helpers/environment-parser');
const program = require('commander');
const prompt = require('readline-sync');
const Promise = require('bluebird');
const os = require('os');
const _ = require('lodash');
const config = require('../lib/helpers/config');
const hype = require('../lib/helpers/lambdahype');
const logger = require('../lib/helpers/logger').shared;
const bundleLambdas = require('../lib/deploy/bundle-lambdas-step');
const updateLambdas = require('../lib/deploy/update-lambdas-step');
//
// Program specification
//
program
.description('Deploy code to a single Lambda function')
.usage('[options] <function-name>')
.option('-f, --file <file>', 'Lambda file location', './index.js')
.option('-r, --region <region>', 'AWS region to work in')
.option('-p, --publish', 'If set publishes a new version of the Lambda function')
.option('-e, --environment <env>', 'Environment variables to make available in the Lambda function', parseEnvironment, {})
.option('--dry-run', 'Simply packs the Lambda function into a minified zip')
.option('--exclude [list]', 'Packages to exclude from bundling', function(value) { return value.split(','); })
.option('--clean', 'Force a clean build where cached bundles are not used')
.option('--no-color', 'Turn off ANSI coloring in output');
program.on('--help', function() {
console.log();
console.log(' Examples:');
console.log();
console.log(' Deploy function \'hello-world\' from default file (index.js)');
console.log(' $ lambda deploy-single hello-world');
console.log();
console.log(' Deploy function \'foo\' with a handler from file \'./diverted.js\'');
console.log(' $ lambda deploy-single foo -f ./diverted.js');
console.log();
console.log(' Deploy function \'foo\', also publishing a version');
console.log(' $ lambda deploy-single foo --publish');
console.log();
console.log(' Deploy function \'foo\', excluding \'example\' package from bundle (included in ZIP separately)');
console.log(' $ lambda deploy-single foo --exclude example');
console.log();
console.log(' Deploy function \'foo\', with NODE_ENV and FOO set');
console.log(' $ lambda deploy-single foo -e NODE_ENV=production,FOO=bar');
console.log();
});
program.parse(process.argv);
//
// Configure program
//
// Enable/Disable colors
chalk.enabled = program.color;
// Determine function name
program.functionName = program.args[0];
program.functionName = program.functionName || prompt.question('Please enter the name of the function you are deploying: ');
// Make region global for AWS
AWS.config.region = program.region || config.aws.region;
program.environment['AWS_REGION'] = program.region;
// Create context
const lambdaPath = path.resolve(process.cwd(), program.file);
const context = {
directories: {
cwd: process.cwd(),
root: path.join(path.resolve(__dirname), '../lib/deploy'),
staging: path.resolve(os.tmpdir(), `lambda-tools-single-${program.functionName}`)
},
lambdas: [{
publish: program.publish,
name: program.functionName,
module: path.basename(lambdaPath, '.js'),
handler: 'handler',
path: lambdaPath
}],
program: _.pick(program, ['environment', 'stage', 'region', 'lambda', 'exclude', 'clean']),
logger: logger
};
// Prepare staging directory
try {
fsx.ensureDirectory(context.directories.staging);
} catch (error) {
logger.error(error);
process.exit(1);
}
// Bundle Lambda
let promise = new Promise(function(resolve) {
logger.log('Deploying Lambda function "' + context.lambdas[0].name + '"' + (program.dryRun ? ' (dry run)' : ''));
logger.log('Staging directory at ' + context.directories.staging);
resolve(context);
}).then(bundleLambdas);
// Optionally update the code of the Lambdas on AWS
if (!program.dryRun) {
promise = promise.then(updateLambdas);
}
promise.then(function() {
logger.log(chalk.bold('Deployment complete'));
logger.log(hype);
}).catch(function(err) {
logger.error('Deployment failed'.bold.red, err.message, err.stack);
process.exit(1);
});
|
const discord = require('discord.js')
const fs = require('fs')
const util = require('util')
const db = require('./modules/database.js')
const config = require('./config.json')
const client = new discord.Client()
client.config = config
client.db = db
client.commands = new Map()
client.on('ready', async () => {
let appInfo = await client.fetchApplication()
client.owner = await client.fetchUser(appInfo.owner.id)
fs.readdirSync('./commands').forEach(file => {
let commands = require(`./commands/${file}`)
if (!(commands instanceof Array)) commands = [commands]
commands.forEach(Command => {
let command = new Command()
let name = command.constructor.name.toLowerCase()
console.log(`Loading command ${name}...`)
client.commands.set(name, command)
command.aliases.forEach(alias => {
client.commands.set(alias, command)
})
})
})
console.log('Ready.')
})
client.on('message', async msg => {
if (msg.author.id === client.user.id) return
let prefix = `<@${client.user.id}> ` // Prefix defaults to our mention.
if (msg.channel.type === 'dm') prefix = '' // Prefixes are not used in DMs.
else if (msg.content.startsWith(prefix)) void 0 // If it starts with our mention, don't use server prefix.
else {
let doc = await db.ensureIDExists(msg.guild.id)
if (doc.prefix) prefix = doc.prefix
}
if (!msg.content.startsWith(prefix)) return
let args = msg.content.slice(prefix.length).split(' ')
let cmd = args.shift().toLowerCase()
let command = client.commands.get(cmd)
if (!command) return
if (command.disableDMs && msg.channel.type === 'dm') {
return msg.reply(typeof command.disableDMs === 'string'
? command.disableDMs : 'This command is disabled in direct messages.')
}
if (command.ownerOnly && msg.author.id !== client.owner.id) {
return msg.reply(`Only the bot owner, ${client.owner.tag}, can run this command.`)
}
try {
command.execute(msg, args).catch(e => errHandle(e, msg))
} catch (e) { errHandle(e, msg) }
})
client.on('debug', console.log)
client.on('error', console.error)
client.on('warn', console.warn)
client.on('disconnect', console.warn)
process.on('unhandledRejection', (r, p) => console.warn('UnhandledRejection: ', r, p))
client.login(client.config.token)
function errHandle (e, msg) {
msg.channel.stopTyping()
msg.reply(`An error occurred while attempting to execute your command.\n\`\`\`${e}\`\`\``)
console.warn(`An error occurred when running '${msg.content}' from ${msg.author.tag}:\n${util.inspect(e)}`)
}
|
define(['fast', 'moment'], function (Fast, Moment) {
var Backend = {
api: {
sidebar: function (params) {
colorArr = ['red', 'green', 'yellow', 'blue', 'teal', 'orange', 'purple'];
$colorNums = colorArr.length;
badgeList = {};
$.each(params, function (k, v) {
$url = Fast.api.fixurl(k);
if ($.isArray(v))
{
$nums = typeof v[0] !== 'undefined' ? v[0] : 0;
$color = typeof v[1] !== 'undefined' ? v[1] : colorArr[(!isNaN($nums) ? $nums : $nums.length) % $colorNums];
$class = typeof v[2] !== 'undefined' ? v[2] : 'label';
} else
{
$nums = v;
$color = colorArr[(!isNaN($nums) ? $nums : $nums.length) % $colorNums];
$class = 'label';
}
//必须nums大于0才显示
badgeList[$url] = $nums > 0 ? '<small class="' + $class + ' pull-right bg-' + $color + '">' + $nums + '</small>' : '';
});
$.each(badgeList, function (k, v) {
var anchor = top.window.$("li a[addtabs][url='" + k + "']");
if (anchor) {
top.window.$(".pull-right-container", anchor).html(v);
top.window.$(".nav-addtabs li a[node-id='" + anchor.attr("addtabs") + "'] .pull-right-container").html(v);
}
});
},
addtabs: function (url, title, icon) {
var dom = "a[url='{url}']"
var leftlink = top.window.$(dom.replace(/\{url\}/, url));
if (leftlink.size() > 0) {
leftlink.trigger("click");
} else {
url = Fast.api.fixurl(url);
leftlink = top.window.$(dom.replace(/\{url\}/, url));
if (leftlink.size() > 0) {
var event = leftlink.parent().hasClass("active") ? "dblclick" : "click";
leftlink.trigger(event);
} else {
var baseurl = url.substr(0, url.indexOf("?") > -1 ? url.indexOf("?") : url.length);
leftlink = top.window.$(dom.replace(/\{url\}/, baseurl));
//能找到相对地址
if (leftlink.size() > 0) {
icon = typeof icon !== 'undefined' ? icon : leftlink.find("i").attr("class");
title = typeof title !== 'undefined' ? title : leftlink.find("span:first").text();
leftlink.trigger("fa.event.toggleitem");
}
var navnode = top.window.$(".nav-tabs ul li a[node-url='" + url + "']");
if (navnode.size() > 0) {
navnode.trigger("click");
} else {
//追加新的tab
var id = Math.floor(new Date().valueOf() * Math.random());
icon = typeof icon !== 'undefined' ? icon : 'fa fa-circle-o';
title = typeof title !== 'undefined' ? title : '';
top.window.$("<a />").append('<i class="' + icon + '"></i> <span>' + title + '</span>').prop("href", url).attr({url: url, addtabs: id}).addClass("hide").appendTo(top.window.document.body).trigger("click");
}
}
}
},
closetabs: function (url) {
if (typeof url === 'undefined') {
top.window.$("ul.nav-addtabs li.active .close-tab").trigger("click");
} else {
var dom = "a[url='{url}']"
var navlink = top.window.$(dom.replace(/\{url\}/, url));
if (navlink.size() === 0) {
url = Fast.api.fixurl(url);
navlink = top.window.$(dom.replace(/\{url\}/, url));
if (navlink.size() === 0) {
} else {
var baseurl = url.substr(0, url.indexOf("?") > -1 ? url.indexOf("?") : url.length);
navlink = top.window.$(dom.replace(/\{url\}/, baseurl));
//能找到相对地址
if (navlink.size() === 0) {
navlink = top.window.$(".nav-tabs ul li a[node-url='" + url + "']");
}
}
}
if (navlink.size() > 0 && navlink.attr('addtabs')) {
top.window.$("ul.nav-addtabs li#tab_" + navlink.attr('addtabs') + " .close-tab").trigger("click");
}
}
},
replaceids: function (elem, url) {
//如果有需要替换ids的
if (url.indexOf("{ids}") > -1) {
var ids = 0;
var tableId = $(elem).data("table-id");
if (tableId && $(tableId).size() > 0 && $(tableId).data("bootstrap.table")) {
var Table = require("table");
ids = Table.api.selectedids($(tableId)).join(",");
}
url = url.replace(/\{ids\}/g, ids);
}
return url;
},
refreshmenu: function () {
top.window.$(".sidebar-menu").trigger("refresh");
}
},
init: function () {
//公共代码
//添加ios-fix兼容iOS下的iframe
if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) {
$("html").addClass("ios-fix");
}
//配置Toastr的参数
Toastr.options.positionClass = Config.controllername === 'index' ? "toast-top-right-index" : "toast-top-right";
//点击包含.btn-dialog的元素时弹出dialog
$(document).on('click', '.btn-dialog,.dialogit', function (e) {
var that = this;
var options = $.extend({}, $(that).data() || {});
if (typeof options.tableId !== 'undefined' && typeof options.fieldIndex !== 'undefined' && typeof options.buttonIndex !== 'undefined') {
var tableOptions = $("#" + options.tableId).bootstrapTable('getOptions');
if (tableOptions) {
var columnObj = null;
$.each(tableOptions.columns, function (i, columns) {
$.each(columns, function (j, column) {
if (typeof column.fieldIndex !== 'undefined' && column.fieldIndex === options.fieldIndex) {
columnObj = column;
return false;
}
});
if (columnObj) {
return false;
}
});
if (columnObj) {
var button = columnObj['buttons'][options.buttonIndex];
if (button && typeof button.callback === 'function') {
options.callback = button.callback;
}
}
}
}
if (typeof options.confirm !== 'undefined') {
Layer.confirm(options.confirm, function (index) {
Backend.api.open(Backend.api.replaceids(that, $(that).attr('href')), $(that).attr('title'), options);
Layer.close(index);
});
} else {
Backend.api.open(Backend.api.replaceids(that, $(that).attr('href')), $(that).attr('title'), options);
}
return false;
});
//点击包含.btn-addtabs的元素时新增选项卡
$(document).on('click', '.btn-addtabs,.addtabsit', function (e) {
var that = this;
var options = $.extend({}, $(that).data() || {});
if (typeof options.confirm !== 'undefined') {
Layer.confirm(options.confirm, function (index) {
Backend.api.addtabs(Backend.api.replaceids(that, $(that).attr('href')), $(that).attr("title"));
Layer.close(index);
});
} else {
Backend.api.addtabs(Backend.api.replaceids(that, $(that).attr('href')), $(that).attr("title"));
}
return false;
});
//点击包含.btn-ajax的元素时发送Ajax请求
$(document).on('click', '.btn-ajax,.ajaxit', function (e) {
var that = this;
var options = $.extend({}, $(that).data() || {});
if (typeof options.url === 'undefined' && $(that).attr("href")) {
options.url = $(that).attr("href");
}
options.url = Backend.api.replaceids(this, options.url);
var success = typeof options.success === 'function' ? options.success : null;
var error = typeof options.error === 'function' ? options.error : null;
delete options.success;
delete options.error;
if (typeof options.tableId !== 'undefined' && typeof options.fieldIndex !== 'undefined' && typeof options.buttonIndex !== 'undefined') {
var tableOptions = $("#" + options.tableId).bootstrapTable('getOptions');
if (tableOptions) {
var columnObj = null;
$.each(tableOptions.columns, function (i, columns) {
$.each(columns, function (j, column) {
if (typeof column.fieldIndex !== 'undefined' && column.fieldIndex === options.fieldIndex) {
columnObj = column;
return false;
}
});
if (columnObj) {
return false;
}
});
if (columnObj) {
var button = columnObj['buttons'][options.buttonIndex];
if (button && typeof button.success === 'function') {
success = button.success;
}
if (button && typeof button.error === 'function') {
error = button.error;
}
}
}
}
//如果未设备成功的回调,设定了自动刷新的情况下自动进行刷新
if (!success && typeof options.tableId !== 'undefined' && typeof options.refresh !== 'undefined' && options.refresh) {
$("#" + options.tableId).bootstrapTable('refresh');
}
if (typeof options.confirm !== 'undefined') {
Layer.confirm(options.confirm, function (index) {
Backend.api.ajax(options, success, error);
Layer.close(index);
});
} else {
Backend.api.ajax(options, success, error);
}
return false;
});
//修复含有fixed-footer类的body边距
if ($(".fixed-footer").size() > 0) {
$(document.body).css("padding-bottom", $(".fixed-footer").outerHeight());
}
//修复不在iframe时layer-footer隐藏的问题
if ($(".layer-footer").size() > 0 && self === top) {
$(".layer-footer").show();
}
}
};
Backend.api = $.extend(Fast.api, Backend.api);
//将Moment渲染至全局,以便于在子框架中调用
window.Moment = Moment;
//将Backend渲染至全局,以便于在子框架中调用
window.Backend = Backend;
Backend.init();
return Backend;
});
|
define(['exports', 'metal/src/metal'], function (exports, _metal) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _possibleConstructorReturn(self, call) {
if (!self) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return call && (typeof call === "object" || typeof call === "function") ? call : self;
}
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
}
var EventHandle = function (_Disposable) {
_inherits(EventHandle, _Disposable);
function EventHandle(emitter, event, listener) {
_classCallCheck(this, EventHandle);
var _this = _possibleConstructorReturn(this, _Disposable.call(this));
/**
* The EventEmitter instance that the event was subscribed to.
* @type {EventEmitter}
* @protected
*/
_this.emitter_ = emitter;
/**
* The name of the event that was subscribed to.
* @type {string}
* @protected
*/
_this.event_ = event;
/**
* The listener subscribed to the event.
* @type {Function}
* @protected
*/
_this.listener_ = listener;
return _this;
}
/**
* Disposes of this instance's object references.
* @override
*/
EventHandle.prototype.disposeInternal = function disposeInternal() {
this.removeListener();
this.emitter_ = null;
this.listener_ = null;
};
EventHandle.prototype.removeListener = function removeListener() {
if (!this.emitter_.isDisposed()) {
this.emitter_.removeListener(this.event_, this.listener_);
}
};
return EventHandle;
}(_metal.Disposable);
EventHandle.prototype.registerMetalComponent && EventHandle.prototype.registerMetalComponent(EventHandle, 'EventHandle')
exports.default = EventHandle;
});
//# sourceMappingURL=EventHandle.js.map
|
function twitterWidget(tweets, target) {
var statusHTML = [];
for (var i = 0; i < tweets.length; i++) {
var template = '<li>\
<p class="tweet-text">%text%</p>\
<p class="tweet-meta">\
<a href="https://twitter.com/%screen_name%/statuses/%tweet_id%">%relative_time%</a>\
</p>\
</li>';
// Replace template tags
var status = '';
status = template.replace('%text%', tweets[i].text);
status = status.replace('%screen_name%', tweets[i].username);
status = status.replace('%tweet_id%', tweets[i].id);
status = status.replace('%relative_time%', tweets[i].relative_time);
statusHTML.push(status);
}
$(target).html(statusHTML.join(''));
}
|
/**
* @author v.lugovsky
* created on 16.12.2015
* modified on 14.10.2017 by @xergio
*/
(function () {
'use strict';
angular.module('BlurAdmin.pages', [
'ui.router',
'BlurAdmin.pages.home',
'BlurAdmin.pages.favorite'
])
.config(InterceptorConfig)
.config(Others)
.run(AppRun)
.config(routeConfig)
.constant('API_DOGFANS', 'api');
/** @ngInject */
function routeConfig($urlRouterProvider) {
$urlRouterProvider.otherwise('/home');
}
/*@ngInject*/
function AppRun($rootScope) {
$rootScope.$settings = {
'showLoader': false
};
}
/*@ngInject*/
function InterceptorConfig($httpProvider) {
$httpProvider.interceptors.push(['$q',
function ($q) {
return {
'request': function (config) {
angular.element('#loader').show();
return config;
},
'response': function(response) {
angular.element('#loader').hide();
return response || $q.when(response);
},
'responseError': function (error) {
angular.element('#loader').hide();
if (error.status === 401 || error.status === 403) {
console.log("Error " + error);
}
return $q.reject(response);
}
};
}]);
}
/*@ngInject*/
function Others($httpProvider) {
$httpProvider.defaults.headers.common = "Accept: application/json, text/plain, */*";
}
})();
|
import React from 'react';
import { storiesOf, action } from '@storybook/react';
import RadioListComponent from './index.js';
let value = 3;
let name = 'test-radio';
storiesOf('Form', module)
.addWithChapters(
'RadioList',
{
info: `
Usage
~~~
import React from 'react';
import { RadioList } from 'insidesales-components';
~~~
`,
chapters: [
{
sections: [
{
title: 'Example: Standard Radio List',
subtitle: 'A Radio List with Numeric Values and an Initial Value of 3',
sectionFn: () => {
const radios = [
{
value: 1,
id: 'radio-1',
label: 'radio 1'
},
{
value: 2,
id: 'radio-2',
label: 'radio 2'
},
{
value: 3,
id: 'radio-3',
label: 'radio 3'
},
];
return (
<RadioListComponent
radios={radios}
value={value}
onChange={action('onChange')}
name={name} />
)
}
},
{
title: 'Wrapped In a Stateful Component',
sectionFn: () => {
const radios2 = [
{
value: 1,
id: 'radio-2-1',
label: 'radio 1'
},
{
value: 2,
id: 'radio-2-2',
label: 'radio 2'
},
{
value: 3,
id: 'radio-2-3',
label: 'radio 3'
},
];
class Wrapper extends React.Component {
constructor() {
super();
this.state = {
value: 1
}
}
render() {
return (
<div>
<RadioListComponent
radios={radios2}
value={this.state.value}
onChange={(val) => { this.setState({ value: val }); }}
name={name} />
<div>Current Value: {this.state.value}</div>
</div>
);
}
}
return (<Wrapper />);
}
}
]
}
]
}
);
|
"use strict";
exports.__esModule = true;
var SLA = /** @class */ (function () {
function SLA(sla) {
this.totalTime = 24 * 60 * 365;
this.sla = sla;
this.init();
}
SLA.prototype.init = function () {
if (!this.sla) {
this.echo();
}
};
SLA.prototype.echo = function () {
return "SLA util, example: sla 99.9\n available minutes: " + this.count(99.9) + ", unavailable minutes: " + (this
.totalTime - this.count(99.9)) + "\n ";
};
SLA.prototype.count = function (sla) {
return (this.totalTime * sla) / 100;
};
SLA.prototype.print = function (sla) {
return "available minutes: " + this.count(99.9) + ", unavailable minutes: " + (this
.totalTime - this.count(99.9)) + "\n ";
};
return SLA;
}());
exports.SLA = SLA;
|
'use strict';
const slugify = require('slugify');
/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks)
* to customize this model
*/
module.exports = {
lifecycles: {
beforeCreate: async (data) => {
if (data.name)
data.slug = slugify(data.name, {
lower: true
});
if(data.finalPrice && data.salesPercentage) {
if (Number(data.salesPercentage)) {
data.finalPrice = parseInt(Number(data.regularPrice) * (1 - Number(data.salesPercentage) / 100));
data.finalPrice -= data.finalPrice % 10000;
data.finalPrice = data.finalPrice.toString();
} else
data.finalPrice = data.regularPrice;
}
},
beforeUpdate: async (params, data) => {
if (data.name)
data.slug = slugify(data.name, {
lower: true
});
if(data.finalPrice && data.salesPercentage) {
if (Number(data.salesPercentage)) {
data.finalPrice = parseInt(Number(data.regularPrice) * (1 - Number(data.salesPercentage) / 100));
data.finalPrice -= data.finalPrice % 10000;
data.finalPrice = data.finalPrice.toString();
} else
data.finalPrice = data.regularPrice;
}
},
},
};
|
import * as React from "react";
import Svg, { Path } from "react-native-svg";
function SvgMessage2Line(props) {
return (
<Svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
<Path fill="none" d="M0 0h24v24H0z" />
<Path d="M6.455 19L2 22.5V4a1 1 0 011-1h18a1 1 0 011 1v14a1 1 0 01-1 1H6.455zm-.692-2H20V5H4v13.385L5.763 17zM11 10h2v2h-2v-2zm-4 0h2v2H7v-2zm8 0h2v2h-2v-2z" />
</Svg>
);
}
export default SvgMessage2Line;
|
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier",
"prettier/@typescript-eslint",
// Ignored for now.
// "plugin:security/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: [
"./tsconfig.json",
"./packages/lib/*/tsconfig.json",
"./packages/ui/*/tsconfig.json",
"./packages/lib/chains/*/tsconfig.json",
"./packages/lib/multiwallet/*/tsconfig.json",
],
sourceType: "module",
},
plugins: [
"eslint-plugin-react",
"eslint-plugin-import",
"eslint-plugin-no-null",
"eslint-plugin-prefer-arrow",
"eslint-plugin-jsdoc",
"@typescript-eslint",
"security",
],
rules: {
"jsdoc/newline-after-description": "warn",
"jsdoc/check-indentation": "warn",
"no-console": [
"warn",
{
allow: [
"error",
"dir",
"time",
"timeEnd",
"timeLog",
"trace",
"assert",
"clear",
"count",
"countReset",
"group",
"groupEnd",
"table",
"dirxml",
"warn",
"groupCollapsed",
"Console",
"profile",
"profileEnd",
"timeStamp",
"context",
],
},
],
"@typescript-eslint/no-shadow": [
"warn",
{
hoist: "all",
},
],
"@typescript-eslint/promise-function-async": "warn",
"spaced-comment": [
"warn",
"always",
{
markers: ["/"],
},
],
"@typescript-eslint/dot-notation": "warn",
"no-constant-condition": ["warn", { checkLoops: false }],
"no-empty": "warn",
"id-blacklist": [
"warn",
"any",
"Number",
"number",
"String",
"string",
"Boolean",
"boolean",
"Undefined",
"undefined",
],
"@typescript-eslint/quotes": [
"warn",
"double",
{
allowTemplateLiterals: true,
},
],
"prefer-arrow/prefer-arrow-functions": "warn",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
"@typescript-eslint/restrict-template-expressions": [
"warn",
{
allowNumber: true,
allowBoolean: true,
allowAny: false,
allowNullish: false,
},
],
"@typescript-eslint/array-type": [
"warn",
{
default: "array-simple",
},
],
"@typescript-eslint/no-empty-interface": "off",
// Ignored for now:
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/no-inferrable-types": "off",
// Implementation seems to be buggy:
"@typescript-eslint/no-unnecessary-condition": [
"off",
{
allowConstantLoopConditions: true,
},
],
"require-await": "off",
"@typescript-eslint/require-await": "warn",
// TSLint rules
// "@typescript-eslint/tslint/config": [
// "warn",
// {
// rules: {
// "chai-prefer-contains-to-index-of": true,
// "chai-vague-errors": true,
// "detect-child-process": true,
// "informative-docs": true,
// "insecure-random": true,
// "jquery-deferred-must-complete": true,
// "mocha-avoid-only": true,
// "mocha-no-side-effect-code": true,
// "mocha-unneeded-done": true,
// "no-cookies": true,
// "no-delete-expression": true,
// "no-disable-auto-sanitization": true,
// "no-document-domain": true,
// "no-document-write": true,
// "no-exec-script": true,
// "no-function-expression": true,
// "no-http-string": [
// true,
// "http://www.example.com/?.*",
// "http://localhost:?.*",
// ],
// "no-inner-html": true,
// "no-jquery-raw-elements": true,
// "no-string-based-set-immediate": true,
// "no-string-based-set-interval": true,
// "no-string-based-set-timeout": true,
// "no-typeof-undefined": true,
// "no-unnecessary-field-initialization": true,
// "no-unnecessary-override": true,
// "no-unsupported-browser-code": true,
// "no-useless-files": true,
// "no-with-statement": true,
// "non-literal-fs-path": true,
// "non-literal-require": true,
// "promise-must-complete": true,
// "react-a11y-accessible-headings": true,
// "react-a11y-anchors": true,
// "react-a11y-aria-unsupported-elements": true,
// "react-a11y-event-has-role": true,
// "react-a11y-iframes": true,
// "react-a11y-image-button-has-alt": true,
// "react-a11y-img-has-alt": true,
// "react-a11y-lang": true,
// "react-a11y-meta": true,
// "react-a11y-mouse-event-has-key-event": true,
// "react-a11y-no-onchange": true,
// "react-a11y-props": true,
// "react-a11y-proptypes": true,
// "react-a11y-required": true,
// "react-a11y-role": true,
// "react-a11y-role-supports-aria-props": true,
// "react-a11y-tabindex-no-positive": true,
// "react-a11y-titles": true,
// "react-anchor-blank-noopener": true,
// "react-iframe-missing-sandbox": true,
// "react-no-dangerous-html": true,
// "react-this-binding-issue": true,
// "react-unused-props-and-state": true,
// "strict-type-predicates": true,
// typedef: true,
// "underscore-consistent-invocation": true,
// "use-named-parameter": true,
// "void-zero": true,
// },
// },
// ],
},
};
|
// @ts-nocheck
'use strict';
const DataManager = require('./DataManager');
const { _cleanupSymbol } = require('../util/Constants');
/**
* Manages the API methods of a data model with a mutable cache of instances.
* @extends {DataManager}
* @abstract
*/
class CachedManager extends DataManager {
constructor(client, holds, iterable) {
super(client, holds);
Object.defineProperty(this, '_cache', { value: this.client.options.makeCache(this.constructor, this.holds) });
let cleanup = this._cache[_cleanupSymbol]?.();
if (cleanup) {
cleanup = cleanup.bind(this._cache);
client._cleanups.add(cleanup);
client._finalizers.register(this, {
cleanup,
message:
`Garbage collection completed on ${this.constructor.name}, ` +
`which had a ${this._cache.constructor.name} of ${this.holds.name}.`,
name: this.constructor.name,
});
}
if (iterable) {
for (const item of iterable) {
this._add(item);
}
}
}
/**
* The cache of items for this manager.
* @type {Collection}
* @abstract
*/
get cache() {
return this._cache;
}
_add(data, cache = true, { id, extras = [] } = {}) {
const existing = this.cache.get(id ?? data.id);
if (cache) existing?._patch(data);
if (existing) return existing;
const entry = this.holds ? new this.holds(this.client, data, ...extras) : data;
if (cache) this.cache.set(id ?? entry.id, entry);
return entry;
}
}
module.exports = CachedManager;
|
// Requires `brew install imagemagick`
const child_process = require('child_process');
const fs = require('fs');
const d3 = Object.assign(
{},
require('d3-array'),
require('d3-collection'),
require('d3-scale'),
);
import { themes } from './src/helpers/themes';
function generateArrows(prefix, scaleTheme) {
const co2color = d3.scaleLinear()
.domain(scaleTheme.steps)
.range(scaleTheme.colors);
const colors = { nan: '#A9A9A9' };
const keys = d3.range(0, 800 + 80, 80);
keys.forEach((k) => { colors[k] = co2color(k) });
for (let co2value in colors) {
// generate specific color
console.log([
'public/images/arrow-template.png',
'+level-colors', 'transparent,'+colors[co2value],
`public/images/${prefix}arrow-${co2value}.png`
])
child_process.spawn('convert', [
'public/images/arrow-template.png',
'+level-colors', 'transparent,'+colors[co2value],
`public/images/${prefix}arrow-${co2value}.png`
]).on('close', (code) => {
if (code !== 0) {
console.log('child exited with code', code);
return;
}
const outlineSize = 2;
// make an outline (NOT being currently used with new arrow shape)
// const outlineSize = 2;
// const whiteArrowAfterCo2Intensity = 640;
// child_process.spawn('convert', [
// `public/images/arrow-${co2value}.png`,
// '-bordercolor', 'none',
// '-border', outlineSize,
// '\(', '-clone', '0', '-alpha', 'off', '-fill', co2value >= whiteArrowAfterCo2Intensity ? 'white' : 'black', '-colorize', '100%', '\)',
// '\(', '-clone', '0', '-alpha', 'extract', '-morphology', 'edgeout', 'octagon:'+outlineSize, '\)',
// '-compose', 'over',
// '-composite', `public/images/arrow-${co2value}-outline.png`
// ]).on('close', code => {
// if(code !== 0) {
// console.log('child exited with code', code);
// return;
// }
// Apply highlight and generate GIF
[10, 6, 2].forEach((speed, index) => {
const args = [
'-dispose', 'none',
'-delay', '0',
`public/images/${prefix}arrow-${co2value}.png`,
'-dispose', 'previous',
'-delay', `${speed}`,
'-loop', '0',
'-page', `45x77+${outlineSize}+${outlineSize}`,
'public/images/arrow-highlights/*.png',
'-layers', 'coalesce',
`public/images/${prefix}arrow-${co2value}-animated-${index}.gif`
];
const child = child_process.spawn('convert', args);
child.on('close', (code) => {
if(code !== 0) {
console.log('child exited with code', code, 'for args', args);
console.log('command: ', 'convert ' + args.join(' '));
return;
}
fs.unlink(`public/images/${prefix}arrow-${co2value}.png`, () => {});
fs.unlink(`public/images/${prefix}arrow-${co2value}-outline.png`, () => {});
});
child.stderr.on('data', (data) => {
console.log('stderr:', data);
});
});
});
// });
}
// echo $color;
// #convert demo-arrow.png +level-colors transparent,"$color" mod-arrow.png
// done;
// #convert -dispose none -delay 0 demo-arrow.png -dispose previous -delay 16x1000 -loop 0 highlight/*.png -layers coalesce animated.gif
}
generateArrows('', themes.dark.co2Scale);
generateArrows('colorblind-', themes.colorblindDark.co2Scale);
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.LargeText = exports.SubtitleText = exports.SecondaryText = exports.PrimaryText = undefined;
var _PrimaryText = require('./PrimaryText');
var _PrimaryText2 = _interopRequireDefault(_PrimaryText);
var _SecondaryText = require('./SecondaryText');
var _SecondaryText2 = _interopRequireDefault(_SecondaryText);
var _SubtitleText = require('./SubtitleText');
var _SubtitleText2 = _interopRequireDefault(_SubtitleText);
var _LargeText = require('./LargeText');
var _LargeText2 = _interopRequireDefault(_LargeText);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.PrimaryText = _PrimaryText2.default;
exports.SecondaryText = _SecondaryText2.default;
exports.SubtitleText = _SubtitleText2.default;
exports.LargeText = _LargeText2.default;
|
/*
* #%L
* GraphWalker Dashboard
* %%
* Copyright (C) 2005 - 2014 GraphWalker
* %%
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
* #L%
*/
!function(r){"use strict";r.module("ng-breadcrumbs",[]).factory("breadcrumbs",["$rootScope","$location","$route",function(t,e,n){var a={breadcrumbs:[],get:function(r){if(this.options=r||this.options,this.options)for(var t in this.options)if(this.options.hasOwnProperty(t))for(var e in this.breadcrumbs)if(this.breadcrumbs.hasOwnProperty(e)){var n=this.breadcrumbs[e];n.label===t&&(n.label=this.options[t])}return this.breadcrumbs},generateBreadcrumbs:function(){var t,e,a,i=n.routes,o=this,s={},u="",c="";n&&n.current&&n.current.originalPath&&(this.breadcrumbs=[],t=n.current.params,e=n.current.originalPath.trim().split("/"),r.forEach(e,function(r,e){a=":"===r[0]&&"undefined"!=typeof t[r.slice(1,r.length)]?t[r.slice(1,r.length)]:!1,s[e]={path:a||r,originalPath:r},u=Object.keys(s).map(function(r){return s[r].path}).join("/")||"/",c=Object.keys(s).map(function(r){return s[r].originalPath}).join("/")||"/",i[c]&&(i[c].label||a)&&!i[c].excludeBreadcrumb&&o.breadcrumbs.push({path:u,originalPath:c,label:i[c].label||a,param:a})}))}};return t.$on("$routeChangeSuccess",function(){a.generateBreadcrumbs()}),t.$watch(function(){return a.options},function(){a.generateBreadcrumbs()}),a.generateBreadcrumbs(),a}])}(angular);
|
"use strict";
/**
* The effect composer is used to organize multiple post-processing passes.
*
* It is used by camera objects to organize the rendering pipeline.
*
* @class EffectComposer
* @module Postprocessing
*/
function EffectComposer()
{
if(THREE.CopyShader === undefined)
{
console.error("EffectComposer relies on THREE.CopyShader");
}
this.uuid = THREE.Math.generateUUID();
this.width = 1;
this.height = 1;
/**
* Passes attached to this effect composer.
*
* The passes are rendered in order.
*
* @property passes
* @type {Array}
*/
this.passes = [];
/**
* Input buffer passed to the render pass.
*
* @property writeBuffer
* @type {THREE.WebGLRenderTarget}
*/
this.writeBuffer = new THREE.WebGLRenderTarget(this.width, this.height, EffectComposer.bufferParameters);
/**
* Input buffer passed to the render pass.
*
* @property readBuffer
* @type {THREE.WebGLRenderTarget}
*/
this.readBuffer = new THREE.WebGLRenderTarget(this.width, this.height, EffectComposer.bufferParameters);
/**
* Copy shader used to copy data between the read and write buffer or to copy the writeBuffer to screen when necessary.
*
* @property copyPass
* @type {ShaderPass}
*/
this.copyPass = new ShaderPass(THREE.CopyShader);
/**
* Renderer state configuration, stored the clear configuration of the renderer.
*
* Used to store and restore states.
*
* @property rendererState
* @type {RendererState}
*/
this.rendererState = new RendererState();
}
EffectComposer.bufferParameters =
{
minFilter: THREE.LinearFilter,
magFilter: THREE.LinearFilter,
format: THREE.RGBAFormat,
stencilBuffer: false
};
/**
* Swap rendering buffers.
*
* Used to make the output buffer of a render pass the input of the next one.
*
* @method swapBuffers
*/
EffectComposer.prototype.swapBuffers = function()
{
var temp = this.readBuffer;
this.readBuffer = this.writeBuffer;
this.writeBuffer = temp;
};
/**
* Add new pass to the composer.
*
* @method addPass
* @param {Pass} pass Rendering pass to be added.
*/
EffectComposer.prototype.addPass = function(pass)
{
this.passes.push(pass);
};
/**
* Move pass back in the list of render passes.
*
* Moving back means that the pass is rendered earlier in the pipeline.
*
* @method moveBack
* @param {Pass} pass Pass to be moved.
* @return {Boolean} Returns true on success, false otherwise.
*/
EffectComposer.prototype.moveBack = function(pass)
{
var index = this.passes.indexOf(pass);
if(index > 0)
{
for(var k = index; k !== index - 1 ; k -= 1)
{
this.passes[k] = this.passes[k - 1];
}
this.passes[index - 1] = pass;
return true;
}
return false;
};
/**
* Move pass forward in the list of render passes.
*
* Moving forward in the list means being renderer later down the pipeline.
*
* @method moveForward
* @param {Pass} pass Pass to be moved.
* @return {Boolean} Returns true on success, false otherwise.
*/
EffectComposer.prototype.moveForward = function(pass)
{
var index = this.passes.indexOf(pass);
if(index !== -1 && index < this.passes.length - 1)
{
for(var k = index; k !== index + 1 ; k += 1)
{
this.passes[k] = this.passes[k + 1];
}
this.passes[index + 1] = pass;
return true;
}
return false;
};
/**
* Remove pass from this composer, if pass is not found nothing happens.
*
* @method removePass
* @param {Pass} pass Pass to be removed from the composer.
*/
EffectComposer.prototype.removePass = function(pass)
{
var index = this.passes.indexOf(pass);
if(index !== -1)
{
this.passes.splice(index, 1);
}
};
/**
* Insert new pass into the composer in a specific position.
*
* @method insertPass
* @param {Pass} pass Rendering pass to be added.
* @param {Number} index Index to be inserted on.
*/
EffectComposer.prototype.insertPass = function(pass, index)
{
this.passes.splice(index, 0, pass);
};
/**
* Render a scene using this effect composer and a renderer.
*
* @method render
* @param {WebGLRenderer} renderer Render to be used to render the scene.
* @param {Scene} scene Scene to render.
* @param {[type]} delta Delta time.
*/
EffectComposer.prototype.render = function(renderer, scene, camera, delta)
{
var maskActive = false;
this.rendererState.backup(renderer);
for(var i = 0; i < this.passes.length; i++)
{
var pass = this.passes[i];
//Render pass if its enabled
if(pass.enabled)
{
pass.render(renderer, this.writeBuffer, this.readBuffer, delta, maskActive, scene, camera);
//If rendered to screen stop here
if(pass.renderToScreen)
{
//Copy writeBuffer to screen
if(pass.copyToScreen)
{
this.copyPass.renderToScreen = true;
this.copyPass.render(renderer, this.readBuffer, this.writeBuffer, delta);
}
break;
}
//Swap read and write buffers
if(pass.needsSwap)
{
if(maskActive)
{
renderer.context.stencilFunc(renderer.context.NOTEQUAL, 1, 0xffffffff);
this.copyPass.renderToScreen = false;
this.copyPass.render(renderer, this.writeBuffer, this.readBuffer, delta);
renderer.context.stencilFunc(renderer.context.EQUAL, 1, 0xffffffff);
}
this.swapBuffers();
}
//Check mask passes
if(THREE.MaskPass !== undefined)
{
if(pass instanceof THREE.MaskPass)
{
maskActive = true;
}
else if(pass instanceof THREE.ClearMaskPass)
{
maskActive = false;
}
}
}
}
this.rendererState.restore(renderer);
};
/**
* Set rendering size for the composer.
*
* Also updates the size for all passes attached to the composer.
*
* @method setSize
* @param {Number} width Width.
* @param {Number} height Height.
*/
EffectComposer.prototype.setSize = function(width, height)
{
width = Math.floor(width);
height = Math.floor(height);
this.width = width;
this.height = height;
this.writeBuffer.setSize(width, height);
this.readBuffer.setSize(width, height);
for(var i = 0; i < this.passes.length; i++)
{
this.passes[i].setSize(width, height);
}
};
/**
* Reset this effect composer.
*
* @method reset
*/
EffectComposer.prototype.reset = function()
{
this.dispose();
this.writeBuffer = new THREE.WebGLRenderTarget(this.width, this.height, EffectComposer.bufferParameters);
this.readBuffer = new THREE.WebGLRenderTarget(this.width, this.height, EffectComposer.bufferParameters);
};
/**
* Dispose this effect composer.
*
* @method dispose
*/
EffectComposer.prototype.dispose = function()
{
this.writeBuffer.dispose();
this.readBuffer.dispose();
this.writeBuffer = null;
this.readBuffer = null;
};
/**
* Serialize this effect composer to JSON.
*
* @method toJSON
*/
EffectComposer.prototype.toJSON = function()
{
var data = {};
data.uuid = this.uuid;
data.passes = [];
for(var i = 0; i < this.passes.length; i++)
{
data.passes.push(this.passes[i].toJSON());
}
return data;
};
/**
* Create a new effect composer loaded from json data.
*
* @static
* @method fromJSON
* @param {Object} json JSON data to load.
* @return {EffectComposer} Composer loaded from data.
*/
EffectComposer.fromJSON = function(json)
{
var composer = new EffectComposer();
composer.uuid = json.uuid;
for(var i = 0; i < json.passes.length; i++)
{
var data = json.passes[i];
var pass = null;
if(data.type === "Render")
{
pass = new RenderPass();
}
else if(data.type === "UnrealBloom")
{
pass = new UnrealBloomPass();
pass.strength = data.strength;
pass.radius = data.radius;
pass.threshold = data.threshold;
pass.bloomFactors = data.bloomFactors;
for(var i = 0; i < pass.bloomTintColors.length; i++)
{
pass.bloomTintColors[i].fromArray(data.bloomTintColors[i]);
}
}
else if(data.type === "Bloom")
{
pass = new BloomPass(data.strength, data.kernelSize, data.sigma, data.resolution);
}
else if(data.type === "SSAONOH")
{
pass = new SSAONOHPass();
pass.kernelRadius = data.kernelRadius;
pass.minDistance = data.minDistance;
pass.maxDistance = data.maxDistance;
pass.kernelSize = data.kernelSize;
}
else if(data.type === "SSAO")
{
pass = new SSAOPass();
pass.onlyAO = data.onlyAO;
pass.radius = data.radius;
pass.aoClamp = data.aoClamp;
pass.lumInfluence = data.lumInfluence;
}
else if(data.type === "Bokeh")
{
pass = new BokehPass(data.focus, data.aperture, data.maxblur);
}
else if(data.type === "FXAA")
{
pass = new FXAAPass();
}
else if(data.type === "Copy")
{
pass = new CopyPass();
}
else if(data.type === "Film")
{
pass = new FilmPass();
pass.grayscale = data.grayscale;
pass.noiseIntensity = data.noiseIntensity;
pass.scanlinesIntensity = data.scanlinesIntensity;
pass.scanlinesCount = data.scanlinesCount;
}
else if(data.type === "DotScreen")
{
pass = new DotScreenPass();
pass.center.fromArray(data.center);
pass.angle = data.angle;
pass.scale = data.scale;
}
else if(data.type === "Colorify")
{
pass = new ColorifyPass();
pass.color.setHex(data.color);
}
else if(data.type === "Sobel")
{
pass = new SobelPass();
}
else if(data.type === "Technicolor")
{
pass = new TechnicolorPass();
}
else if(data.type === "HueSaturation")
{
pass = new HueSaturationPass();
pass.hue = data.hue;
pass.saturation = data.saturation;
}
else if(data.type === "AdaptiveToneMapping")
{
pass = new AdaptiveToneMappingPass(data.adaptive);
pass.tau = data.tau;
pass.minLuminance = data.minLuminance;
}
else if(data.type === "Afterimage")
{
pass = new AfterimagePass();
pass.damp = data.damp;
}
else
{
pass = new RenderPass();
}
pass.uuid = data.uuid;
pass.enabled = data.enabled;
pass.needsSwap = data.needsSwap;
pass.renderToScreen = data.renderToScreen;
pass.clear = data.clear;
pass.copyToScreen = data.copyToScreen === true;
composer.addPass(pass);
}
return composer;
};
|
$(function() {
$.ajaxSetup({
cache : false,
});
updateSequence();
updateLog();
var forceUpdateLog = false;
$('#addOperationButton').click(function() {
var val = $('#addOperationTypeSelection').val();
if (val) {
$.getJSON('./addOperation', {'type' : val}, function(json) {
if (json) {
if (json.error) {
alert('error : ' + json.error);
} else {
$('#addOperationTypeSelection').val('');
$('#sequence').append(json.html);
updateDisabled();
}
}
});
}
});
$('#startProgramButton').click(function() {
$.getJSON('./startProgram', function(json) {
if (json) {
if (json.error) {
alert('error : ' + json.error);
} else {
updateDisabled();
forceUpdateLog = true;
}
}
});
});
$('#stopProgramButton').click(function() {
$.getJSON('./stopProgram', function(json) {
if (json) {
if (json.error) {
alert('error : ' + json.error);
} else {
updateDisabled();
}
}
});
});
$('#dumpProgramButton').click(function() {
$.getJSON('./dumpProgram', function(json) {
if (json) {
if (json.error) {
alert('error : ' + json.error);
} else {
var data = json.result;
var elm = document.createElement('a');
elm.href = window.URL.createObjectURL(new Blob([JSON.stringify(data, null, '\t')], {type : 'application/json'}));
// elm.target = '_blank';
{
var now = new Date();
var y = now.getFullYear();
var m = ('0' + (now.getMonth() + 1)).slice(-2);
var d = ('0' + now.getDate()).slice(-2);
var hh = ('0' + now.getHours()).slice(-2);
var mm = ('0' + now.getMinutes()).slice(-2);
var ss = ('0' + now.getSeconds()).slice(-2);
elm.download = 'tester-program-' + y + m + d + hh + mm + ss + '.json';
}
elm.click();
}
}
});
});
$('#restoreProgramButton').click(function() {
var elm = document.createElement('input');
elm.type = 'file';
elm.name = 'file';
elm.onchange = function() {
var file = elm.files[0];
var data = new FormData();
data.append('file', file);
$.ajax('/restoreProgram', {
method : 'POST',
contentType : false,
data : data,
processData : false,
dataType : 'json',
success : function(json) {
if (json.error) {
alert('error : ' + json.error);
} else {
$('#sequence').html(json.html);
}
},
});
return false;
};
elm.click();
});
$('#eraseLogButton').click(function() {
$.getJSON('./eraseProgramLog', function(json) {
if (json) {
if (json.error) {
alert('error : ' + json.error);
} else {
forceUpdateLog = true;
}
}
});
});
function updateSequence() {
$.getJSON('./getProgramSequence', function(json) {
if (json) {
if (json.error) {
alert('error : ' + json.error);
} else {
$('#sequence').html(json.html);
}
}
});
}
function updateLog() {
$.getJSON('./getProgramLog', function(json) {
if (json) {
if (json.error) {
alert('error : ' + json.error);
} else {
$('#log').text(json.result);
forceUpdateLog = false;
}
}
});
}
function updateDisabled() {
if (0 < $('.saveOperationButton').length) {
$('#startProgramButton').prop('disabled', true);
$('#dumpProgramButton').prop('disabled', true);
$('#restoreProgramButton').prop('disabled', true);
} else {
$.getJSON('./isProgramRunning', function(json) {
if (json) {
if (json.result) {
$('input,select').prop('disabled', true);
$('#stopProgramButton').prop('disabled', false);
} else {
$('input,select').prop('disabled', false);
$('#stopProgramButton').prop('disabled', true);
}
}
});
}
}
setInterval(function() {
if (forceUpdateLog || !$('#stopProgramButton').prop('disabled')) {
updateLog();
}
updateDisabled();
}, 1000);
});
function editOperation(opId) {
$.getJSON('./editOperation', {'id' : opId}, function(json) {
if (json) {
if (json.error) {
alert('error : ' + json.error);
} else {
$('#' + opId).replaceWith(json.html);
}
}
});
}
function saveOperation(opId) {
var query = $('#' + opId).find('form').serialize();
$.getJSON('./saveOperation', query, function(json) {
if (json) {
if (json.error) {
alert('error : ' + json.error);
} else {
$('#' + opId).replaceWith(json.html);
}
}
});
}
function moveOperation(opId, upDown = 'up') {
$.getJSON('./moveOperation', {'id' : opId, 'upDown' : upDown}, function(json) {
if (json) {
if (json.error) {
alert('error : ' + json.error);
} else {
if (json.result) {
if (upDown == 'up') {
$('#' + opId).prev().before($('#' + opId));
} else {
$('#' + opId).next().after($('#' + opId));
}
}
}
}
});
}
function deleteOperation(opId) {
$.getJSON('./deleteOperation', {'id' : opId}, function(json) {
if (json) {
if (json.error) {
alert('error : ' + json.error);
} else {
$('#' + opId).replaceWith(json.html);
}
}
});
}
////
function operation_control_dcdc_command_changed(opId, val) {
$('#' + opId + ' .hide-command-' + val).hide();
$('#' + opId + ' .show-command-' + val).show();
}
function operation_generate_deal_testFeature_changed(opId, val) {
$('#' + opId + ' .hide-testFeature-' + val).hide();
$('#' + opId + ' .show-testFeature-' + val).show();
}
function operation_generate_deal_testFeature_dcdc_changed(opId, val) {
$('#' + opId + ' .hide-testFeature-dcdc-' + val).hide();
$('#' + opId + ' .show-testFeature-dcdc-' + val).show();
}
function operation_set_apis_operation_mode_unitId_changed(opId, val) {
if (val) val = 'ANY';
$('#' + opId + ' .hide-unitId-' + val).hide();
$('#' + opId + ' .show-unitId-' + val).show();
}
|
MWF.xDesktop.requireApp("process.ProcessManager", "Explorer", null, false);
MWF.xApplication.query.QueryManager.ViewExplorer = new Class({
Extends: MWF.xApplication.process.ProcessManager.Explorer,
Implements: [Options, Events],
options: {
"style": "default",
"tooltip": {
"create": MWF.xApplication.query.QueryManager.LP.view.create,
"search": MWF.xApplication.query.QueryManager.LP.view.search,
"searchText": MWF.xApplication.query.QueryManager.LP.view.searchText,
"noElement": MWF.xApplication.query.QueryManager.LP.view.noViewNoticeText
}
},
openFindDesigner: function(){
this.app.options.application.moduleType = "query";
var options = {
"filter": {
"moduleList": ["query"],
"appList": [this.app.options.application]
}
};
layout.openApplication(null, "FindDesigner", options);
},
keyCopy: function(e){
if (this.selectMarkItems.length){
var items = [];
var i = 0;
var checkItems = function(e){
if (i>=this.selectMarkItems.length){
if (items.length){
var str = JSON.encode(items);
if (e){
e.clipboardData.setData('text/plain', str);
}else {
window.clipboardData.setData("Text", str);
}
this.app.notice(this.app.lp.copyed, "success");
}
}
}.bind(this);
this.selectMarkItems.each(function(item){
this.app.restActions.getView(item.data.id, function(json){
json.data.elementType = "view";
items.push(json.data);
i++;
checkItems(e);
}.bind(this), null, false)
}.bind(this));
if (e) e.preventDefault();
}
},
keyPaste: function(e){
var dataStr = "";
if (e){
dataStr = e.clipboardData.getData('text/plain');
}else{
dataStr = window.clipboardData.getData("Text");
}
var data = JSON.decode(dataStr);
this.pasteItem(data, 0);
},
pasteItem: function(data, i){
if (i<data.length){
var item = data[i];
if (item.elementType==="view"){
this.saveItemAs(item, function(){
i++;
this.pasteItem(data, i);
}.bind(this), function(){
i++;
this.pasteItem(data, i);
}.bind(this), function(){
this.reload();
}.bind(this));
}else{
i++;
this.pasteItem(data, i);
}
}else{
this.reload();
}
},
saveItemAs: function(data, success, failure, cancel){
this.app.restActions.listView(this.app.options.application.id, function(dJson){
var i=1;
var someItems = dJson.data.filter(function(d){ return d.id===data.id });
if (someItems.length){
var someItem = someItems[0];
var lp = this.app.lp;
var _self = this;
var d1 = new Date().parse(data.lastUpdateTime || data.updateTime);
var d2 = new Date().parse(someItem.lastUpdateTime || someItem.updateTime);
var html = "<div>"+lp.copyConfirmInfor+"</div>";
html += "<div style='overflow: hidden; margin: 10px 0px; padding: 5px 10px; background-color: #ffffff; border-radius: 6px;'><div style='font-weight: bold; font-size:14px;'>"+lp.copySource+" "+someItem.name+"</div>";
html += "<div style='font-size:12px; color: #666666; float: left'>"+(someItem.lastUpdateTime || someItem.updateTime)+"</div>" +
"<div style='font-size:12px; color: #666666; float: left; margin-left: 20px;'>"+MWF.name.cn(someItem.lastUpdatePerson || "")+"</div>" +
"<div style='color: red; float: right;'>"+((d1>=d2) ? "": lp.copynew)+"</div></div>";
html += "<div style='overflow: hidden; margin: 10px 0px; padding: 5px 10px; background-color: #ffffff; border-radius: 6px;'><div style='clear: both;font-weight: bold; font-size:14px;'>"+lp.copyTarget+" "+data.name+"</div>";
html += "<div style='font-size:12px; color: #666666; float: left;'>"+(data.lastUpdateTime || data.updateTime)+"</div>" +
"<div style='font-size:12px; color: #666666; float: left; margin-left: 20px;'>"+MWF.name.cn(data.lastUpdatePerson || "")+"</div>" +
"<div style='color: red; float: right;'>"+((d1<=d2) ? "": lp.copynew)+"</div></div>";
// html += "<>"
this.app.dlg("inofr", null, this.app.lp.copyConfirmTitle, {"html": html}, 500, 290, [
{
"text": lp.copyConfirm_overwrite,
"action": function(){_self.saveItemAsUpdate(someItem, data, success, failure);this.close();}
},
{
"text": lp.copyConfirm_new,
"action": function(){_self.saveItemAsNew(dJson, data, success, failure);this.close();}
},
{
"text": lp.copyConfirm_skip,
"action": function(){/*nothing*/ this.close(); if (success) success();}
},
{
"text": lp.copyConfirm_cancel,
"action": function(){this.close(); if (cancel) cancel();}
}
]);
}else{
this.saveItemAsNew(dJson, data, success, failure)
}
}.bind(this), function(){if (failure) failure();}.bind(this));
},
saveItemAsUpdate: function(someItem, data, success, failure){
var item = this.app.options.application;
var id = item.id;
var name = item.name;
var dataJson = (data.data) ? JSON.decode(data.data): "";
data.data = dataJson;
data.data.id = someItem.id;
data.id = someItem.id;
data.isNewView = false;
data.application = id;
data.applicationName = name;
this.app.restActions.saveView(data, function(){
if (success) success();
}.bind(this), function(){
if (failure) failure();
}.bind(this));
},
saveItemAsNew: function(dJson, data, success, failure){
var item = this.app.options.application;
var id = item.id;
var name = item.name;
var oldName = data.name;
var i=1;
while (dJson.data.some(function(d){ return d.name==data.name || d.alias==data.name })){
data.name = oldName+"_copy"+i;
data.alias = oldName+"_copy"+i;
i++;
}
var dataJson = (data.data) ? JSON.decode(data.data): "";
data.data = dataJson;
data.data.id = "";
data.id = "";
data.isNewView = true;
data.application = id;
data.applicationName = name;
this.app.restActions.saveView(data, function(){
if (success) success();
}.bind(this), function(){
if (failure) failure();
}.bind(this));
},
_createElement: function(e){
var _self = this;
var options = {
"onQueryLoad": function(){
this.actions = _self.app.restActions;
this.application = _self.app.options.application;
this.explorer = _self;
}
};
this.app.desktop.openApplication(e, "query.ViewDesigner", options);
},
_loadItemDataList: function(callback){
this.app.restActions.listView(this.app.options.application.id,callback);
},
_getItemObject: function(item){
return new MWF.xApplication.query.QueryManager.ViewExplorer.View(this, item)
},
deleteItems: function(){
this.hideDeleteAction();
while (this.deleteMarkItems.length){
var item = this.deleteMarkItems.shift();
if (this.deleteMarkItems.length){
item.deleteView();
}else{
item.deleteView(function(){
// this.reloadItems();
//this.hideDeleteAction();
}.bind(this));
}
}
}
});
MWF.xApplication.query.QueryManager.ViewExplorer.View= new Class({
Extends: MWF.xApplication.process.ProcessManager.Explorer.Item,
_open: function(e){
var _self = this;
var options = {
"appId": "query.ViewDesigner"+_self.data.id,
"onQueryLoad": function(){
this.actions = _self.explorer.actions;
this.category = _self;
this.options.id = _self.data.id;
this.application = _self.explorer.app.options.application;
}
};
this.explorer.app.desktop.openApplication(e, "query.ViewDesigner", options);
},
_getIcon: function(){
var x = (Math.random()*49).toInt();
return "process_icon_"+x+".png";
},
_getLnkPar: function(){
return {
"icon": this.explorer.path+this.explorer.options.style+"/viewIcon/lnk.png",
"title": this.data.name,
"par": "query.ViewDesigner#{\"id\": \""+this.data.id+"\", \"applicationId\": \""+this.data.query+"\"}"
};
},
// deleteItem: function(e){
// var _self = this;
// this.explorer.app.confirm("info", e, this.explorer.app.lp.process.deleteProcessTitle, this.explorer.app.lp.process.deleteProcess, 320, 110, function(){
// _self.deleteProcess();
// this.close();
// },function(){
// this.close();
// });
// },
deleteView: function(callback){
this.explorer.actions.deleteView(this.data.id, function(){
this.node.destroy();
if (callback) callback();
}.bind(this));
},
saveas: function(){
MWF.xDesktop.requireApp("Selector", "package", function(){
var selector = new MWF.O2Selector(this.explorer.app.content, {
"title": this.explorer.app.lp.copyto,
"type": "Query",
"values": [this.explorer.app.options.application],
"onComplete": function(items){
items.each(function(item){
this.saveItemAs(item.data);
}.bind(this));
}.bind(this),
});
}.bind(this));
},
saveItemAs: function(item){
var id = item.id;
var name = item.name;
this.explorer.app.restActions.getView(this.data.id, function(json){
var data = json.data;
var dataJson = (data.data) ? JSON.decode(data.data): "";
data.data = dataJson;
data.data.id = "";
var oldName = data.name;
this.explorer.app.restActions.listView(id, function(dJson){
var i=1;
while (dJson.data.some(function(d){ return d.name==data.name || d.alias==data.name })){
data.name = oldName+"_copy"+i;
data.alias = oldName+"_copy"+i;
i++;
}
data.id = "";
data.isNewView = true;
data.application = id;
data.applicationName = name;
this.explorer.app.restActions.saveView(data, function(){
if (id == this.explorer.app.options.application.id) this.explorer.reload();
}.bind(this));
}.bind(this));
}.bind(this));
}
});
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
let _uid = 0;
const getUid = () => 'glyph-checkbox' + _uid++;
const GlyphCheckbox = ({ glyph, onCheck, onUncheck, checked,
checkBaseClass, checkAddClass, glyphBaseClass, glyphAddClass }) => {
const uid = getUid();
const _glyphBaseClass = glyphBaseClass && glyphBaseClass + '-' + glyph || `fa fa-${glyph}`;
const onChange = onCheck || onUncheck ? e => {
if (e.target.checked) {
onCheck && onCheck(e);
} else {
onUncheck && onUncheck(e);
}
} : undefined;
return _react2.default.createElement(
'span',
{ className: (0, _classnames2.default)(checkBaseClass, checkAddClass) },
_react2.default.createElement('input', {
id: uid,
name: uid,
type: 'checkbox',
onChange: onChange,
checked: checked
}),
_react2.default.createElement('label', {
htmlFor: uid,
className: (0, _classnames2.default)(_glyphBaseClass, glyphAddClass)
})
);
};
GlyphCheckbox.propTypes = {
glyph: _propTypes2.default.string.isRequired,
onCheck: _propTypes2.default.func,
onUncheck: _propTypes2.default.func,
checked: _propTypes2.default.bool,
checkBaseClass: _propTypes2.default.string,
checkAddClass: _propTypes2.default.string,
glyphBaseClass: _propTypes2.default.string,
glyphAddClass: _propTypes2.default.string
};
GlyphCheckbox.defaultProps = {
checkBaseClass: 'glyph-checkbox'
};
exports.default = GlyphCheckbox;
module.exports = exports.default;
|
/*! `subunit` grammar compiled for Highlight.js 11.5.0 */
(()=>{var s=(()=>{"use strict";return s=>({name:"SubUnit",case_insensitive:!0,
contains:[{className:"string",begin:"\\[\n(multipart)?",end:"\\]\n"},{
className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"
},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,
variants:[{
begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"
},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]
})})();hljs.registerLanguage("subunit",s)})();
|
import firebase from '../../firebase';
import TestSuite from '../../../lib/TestSuite';
import linksTests from './linksTests';
const suite = new TestSuite('Links', 'firebase.links()', firebase);
suite.addTests(linksTests);
export default suite;
|
import React from "react"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import { faGithub } from "@fortawesome/free-brands-svg-icons"
import LanguageFilter from "./languageFilter"
const Footer = () => {
return (
<footer className="fixed bg-base-02 bottom-0 w-full mx-auto max-w-2xl">
<div className="flex items-center justify-between py-5">
<LanguageFilter />
<a href="https://github.com/coffee-monk">
<FontAwesomeIcon
className="text-3xl text-magenta-sol hover:text-blue-sol transition ease-out duration-200"
icon={faGithub}
/>
</a>
</div>
</footer>
)
}
export default Footer
|
// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
$(document).on('turbolinks:load', function() {
// Create new Language Family
$('#add-language-family-modal-submit-button').on('click', function (event) {
event.preventDefault();
$.ajax({
url: '/create/family',
type: 'POST',
dataType: 'json',
data: {
name: $('input#add-language-family-modal-name-field').val(),
subgroupcount: $('input#add-language-family-modal-subgroup-count-field').val(),
info: $('textarea#add-language-family-modal-description-field').val()
}
})
.done(function(response) {
$('#add-language-family-modal').modal('hide');
window.location.assign('/families/' + response['key']);
})
.fail(function(res) {
$('#add-language-family-modal-submit-button').attr('disabled', 'disabled');
var response = res['responseJSON'];
if (response['errorCode'] == 1) {
var messages = response['messages'];
if (messages['name'] != "") {
$('input#add-language-family-modal-name-field').addClass('invalid-input');
$('#add-language-family-modal-name-error').find('.error-message').text(messages['name']);
$('#add-language-family-modal-name-error').removeClass('hidden');
}
if (messages['subgroupcount'] != "" ) {
$('input#add-language-family-modal-subgroup-count-field').addClass('invalid-input');
$('#add-language-family-modal-subgroup-count-error').find('.error-message').text(messages['subgroupcount']);
$('#add-language-family-modal-subgroup-count-error').removeClass('hidden');
}
} else if (response['errorCode'] == 2) {
$('input#add-language-family-modal-name-field').addClass('invalid-input');
$('#add-language-family-modal-name-error').find('.error-message').text(response['message']);
$('#add-language-family-modal-name-error').removeClass('hidden');
}
})
.always(function() {
// Stop loader
});
});
// Create new languageBelongsTo entry
$('#add-language-to-family-modal-submit-button').on('click', function (event) {
event.preventDefault();
$.ajax({
url: '/create/belongsto',
type: 'POST',
dataType: 'json',
data: {
langID: $('select#add-language-to-family-modal-select-field').val(),
name: $(this).data('lfam-name')
}
})
.done(function(response) {
$('#add-language-to-family-modal').modal('hide');
window.location.reload();
})
.fail(function(res) {
$('#add-language-to-family-modal-submit-button').attr('disabled', 'disabled');
var response = res['responseJSON'];
if (response['errorCode'] == 1) {
var messages = response['messages'];
if (messages['langID'] != "") {
$('select#add-language-to-family-modal-select-field').addClass('invalid-input');
$('#add-language-to-family-modal-error').find('.error-message').text(messages['langID']);
$('#add-language-to-family-modal-error').removeClass('hidden');
}
if (messages['lfamID'] != "" ) {
alert(messages['lfamID']);
// $('input#add-language-family-modal-subgroup-count-field').addClass('invalid-input');
// $('#add-language-family-modal-subgroup-count-error').find('.error-message').text(messages['offiname']);
// $('#add-language-family-modal-subgroup-count-error').removeClass('hidden');
}
} else if (response['errorCode'] == 2) {
$('select#add-language-to-family-modal-select-field').addClass('invalid-input');
$('#add-language-to-family-modal-error').find('.error-message').text(response['message']);
$('#add-language-to-family-modal-error').removeClass('hidden');
}
})
.always(function() {
// Stop loader
});
});
// Save edits
$('#edit-language-family-modal-submit-button').on('click', function (event) {
event.preventDefault();
$.ajax({
url: '/update/family',
type: 'POST',
dataType: 'json',
data: {
name_old: $(this).data('lfam-name'),
name_new: $('input#edit-language-family-modal-name-field').val(),
subgroupcount: $('input#edit-language-family-modal-subgroup-count-field').val(),
info: $('textarea#edit-language-family-modal-description-field').val()
}
})
.done(function(response) {
$('#edit-language-family-modal').modal('hide');
window.location.assign('/families/' + response['key']);
})
.fail(function(res) {
$('#edit-language-family-modal-submit-button').attr('disabled', 'disabled');
var response = res['responseJSON'];
if (response['errorCode'] == 1) {
var messages = response['messages'];
if (messages['name'] != "") {
$('input#edit-language-family-modal-name-field').addClass('invalid-input');
$('#edit-language-family-modal-name-error').find('.error-message').text(messages['name']);
$('#edit-language-family-modal-name-error').removeClass('hidden');
}
if (messages['subgroupcount'] != "" ) {
$('input#edit-language-family-modal-subgroup-count-field').addClass('invalid-input');
$('#edit-language-family-modal-subgroup-count-error').find('.error-message').text(messages['subgroupcount']);
$('#edit-language-family-modal-subgroup-count-error').removeClass('hidden');
}
} else if (response['errorCode'] == 2) {
$('input#edit-language-family-modal-name-field').addClass('invalid-input');
$('#edit-language-family-modal-name-error').find('.error-message').text(response['message']);
$('#edit-language-family-modal-name-error').removeClass('hidden');
}
});
});
// Confirm deletion
$('#delete-language-family-confirm-modal-submit-button').on('click', function (event) {
event.preventDefault();
$.ajax({
url: '/delete/family',
type: 'POST',
dataType: 'json',
data: {
name: $(this).data('lfam-name')
}
})
.done(function(response) {
$('#delete-language-family-confirm-modal').modal('hide');
window.location.assign('/families');
});
});
// Value setting
$('.delete-language-from-family-button').on('click', function () {
var langID = $(this).data('language-isoid');
var langName = $(this).data('language-name');
var lfamName = $(this).data('lfam-name');
$('#delete-language-from-family-confirm-modal-title').text('Deleting ' + langName + ' from list');
$('#delete-language-from-family-confirm-modal').find('p').text('Are you sure you would like to remove ' + langName + ' from the list of ' + lfamName + ' languages?');
$('#delete-language-from-family-confirm-modal').modal('show');
$('#delete-language-from-family-confirm-modal-submit-button').attr('data-language-isoid', langID);
});
// API Calls
$('#delete-language-from-family-confirm-modal-submit-button').on('click', function (event) {
event.preventDefault();
var langID = $(this).data('language-isoid');
$.ajax({
url: '/delete/belongsto',
type: 'POST',
dataType: 'json',
data: {
langID: langID
}
})
.done(function(response) {
$('#delete-language-from-family-confirm-modal').modal('hide');
window.location.reload();
});
});
// ====================================================================================
// Validation and input safety
// ====================================================================================
// Language family creation modal
$('#add-language-family-modal').ready(function() {
var invalidValues = false;
$('#add-language-family-modal .input-required').each(function() {
if ($(this).val().length < 1) {
invalidValues = true;
}
});
if (invalidValues) {
$('#add-language-family-modal-submit-button').attr('disabled', 'disabled');
} else {
$('#add-language-family-modal-submit-button').removeAttr('disabled');
}
});
$('#add-language-family-modal .input-required').on('keyup keydown change', function(event) {
if ((event.type == 'keydown' || event.type == 'change') && $(this).hasClass('invalid-input')) {
$(this).removeClass('invalid-input');
$(this).next().addClass('hidden');
$(this).next().find('.error-message').text('');
}
var invalidValues = false;
$('#add-language-family-modal .input-required').each(function() {
if ($(this).val().length < 1) {
invalidValues = true;
}
});
if (invalidValues) {
$('#add-language-family-modal-submit-button').attr('disabled', 'disabled');
} else {
$('#add-language-family-modal-submit-button').removeAttr('disabled');
}
});
// Language family edit modal
$('#edit-language-family-modal').ready(function() {
var invalidValues = false;
$('#edit-language-family-modal .input-required').each(function() {
if ($(this).val().length < 1) {
invalidValues = true;
}
});
if (invalidValues) {
$('#edit-language-family-modal-submit-button').attr('disabled', 'disabled');
} else {
$('#edit-language-family-modal-submit-button').removeAttr('disabled');
}
});
$('#edit-language-family-modal .input-required').on('keyup keydown change', function(event) {
if ((event.type == 'keydown' || event.type == 'change') && $(this).hasClass('invalid-input')) {
$(this).removeClass('invalid-input');
$(this).next().addClass('hidden');
$(this).next().find('.error-message').text('');
}
var invalidValues = false;
$('#edit-language-family-modal .input-required').each(function() {
if ($(this).val().length < 1) {
invalidValues = true;
}
});
if (invalidValues) {
$('#edit-language-family-modal-submit-button').attr('disabled', 'disabled');
} else {
$('#edit-language-family-modal-submit-button').removeAttr('disabled');
}
});
// ====================================================================================
// Clearing modal values
// ====================================================================================
$('#add-language-family-modal').on('hidden.bs.modal', function() {
$('input#add-language-family-modal-name-field').val('');
$('input#add-language-family-modal-subgroup-count-field').val('');
$('textarea#add-language-family-modal-description-field').val('');
$(this).find('.input-required').removeClass('invalid-input');
$(this).find('.error-message-div').addClass('hidden');
$(this).find('.error-message').text('');
$(this).find('button[id*="submit-button"]').attr('disabled', 'disabled');
});
$('#add-language-to-family-modal').on('hidden.bs.modal', function() {
$('select#add-language-to-family-modal-select-field').val()
$(this).find('.input-required').removeClass('invalid-input');
$(this).find('.error-message-div').addClass('hidden');
$(this).find('.error-message').text('');
$(this).find('button[id*="submit-button"]').attr('disabled', 'disabled');
});
});
|
import ipc from '../../../node-ipc.js';
/***************************************\
*
* You should start both hello and world
* then you will see them communicating.
*
* *************************************/
ipc.config.id = 'hello';
ipc.config.retry= 1500;
ipc.config.tls={
rejectUnauthorized:false
};
ipc.connectToNet(
'world',
function(){
ipc.of.world.on(
'connect',
function(){
ipc.log('## connected to world ##', ipc.config.delay);
ipc.of.world.emit(
'message',
'hello'
);
}
);
ipc.of.world.on(
'disconnect',
function(){
ipc.log('disconnected from world');
}
);
ipc.of.world.on(
'message',
function(data){
ipc.log('got a message from world : ', data);
}
);
}
);
|
'use strict'
import EL from '../constant/elements'
/**
* タッチサポート判定を行います
*/
export default () => {
const isTouchSupport = (window.ontouchstart === null)
EL.HTML.dataset.touchsupport = isTouchSupport
}
|
var breadcrumbs=[['-1',"",""],['2',"VitNX3 Documentation","topic_00000000000016E1.html"],['789',"VitNX3.Functions.Win32 Namespace","topic_00000000000000C6.html"],['790',"Constants Class","topic_00000000000001C1.html"],['1979',"ResultWin32 Class","topic_00000000000001F4.html"],['1982',"Fields","topic_00000000000001F4_vars--.html"],['3021',"ERROR_IPSEC_IKE_NO_PRIVATE_KEY Field","topic_00000000000008E7.html"]];
|
module.exports = function(hljs) {
var COMMENT_MODE = hljs.COMMENT('--', '$');
var UNQUOTED_IDENT = '[a-zA-Z_][a-zA-Z_0-9$]*';
var DOLLAR_STRING = '\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$';
var LABEL = '<<\\s*' + UNQUOTED_IDENT + '\\s*>>';
var SQL_KW =
// https://www.postgresql.org/docs/11/static/sql-keywords-appendix.html
// https://www.postgresql.org/docs/11/static/sql-commands.html
// SQL commands (starting words)
'ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE ' +
'DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY ' +
'PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW ' +
'START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES ' +
// SQL commands (others)
'AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN ' +
'WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS ' +
'FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM ' +
'TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS ' +
'METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION ' +
'INDEX PROCEDURE ASSERTION ' +
// additional reserved key words
'ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK ' +
'COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS ' +
'DEFERRABLE RANGE ' +
'DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ' +
'ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT ' +
'NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY ' +
'REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN ' +
'TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH ' +
// some of non-reserved (which are used in clauses or as PL/pgSQL keyword)
'BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN ' +
'BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT ' +
'TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN ' +
'EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH ' +
'REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ' +
'ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED ' +
'INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 ' +
'INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ' +
'ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES ' +
'RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS ' +
'UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF ' +
// some parameters of VACUUM/ANALYZE/EXPLAIN
'FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING ' +
//
'RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED ' +
'OF NOTHING NONE EXCLUDE ATTRIBUTE ' +
// from GRANT (not keywords actually)
'USAGE ROUTINES ' +
// actually literals, but look better this way (due to IS TRUE, IS FALSE, ISNULL etc)
'TRUE FALSE NAN INFINITY ';
var ROLE_ATTRS = // only those not in keywrods already
'SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT ' +
'LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ';
var PLPGSQL_KW =
'ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS ' +
'STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT ' +
'OPEN ';
var TYPES =
// https://www.postgresql.org/docs/11/static/datatype.html
'BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR ' +
'CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 ' +
'MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 ' +
'SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 ' +
'TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR ' +
'INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ' +
// pseudotypes
'ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL ' +
'RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR ' +
// spec. type
'NAME ' +
// OID-types
'OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 ' +
'REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ';// +
// some types from standard extensions
'HSTORE|10 LO LTREE|10 ';
var TYPES_RE =
TYPES.trim()
.split(' ')
.map( function(val) { return val.split('|')[0]; } )
.join('|');
var SQL_BI =
'CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP ' +
'CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ';
var PLPGSQL_BI =
'FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 ' +
'TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ' +
// get diagnostics
'ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME ' +
'PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 ' +
'PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ';
var PLPGSQL_EXCEPTIONS =
// exceptions https://www.postgresql.org/docs/current/static/errcodes-appendix.html
'SQLSTATE SQLERRM|10 ' +
'SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING ' +
'NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED ' +
'STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED ' +
'SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE ' +
'SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION ' +
'TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED ' +
'INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR ' +
'INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION ' +
'STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION ' +
'DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW ' +
'DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW ' +
'INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION ' +
'INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION ' +
'INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST ' +
'INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE ' +
'NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE ' +
'INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE ' +
'INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT ' +
'INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH ' +
'NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE ' +
'SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION ' +
'SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING ' +
'FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION ' +
'BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT ' +
'INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION ' +
'INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION ' +
'UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE ' +
'INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE ' +
'HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION ' +
'INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION ' +
'NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION ' +
'SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION ' +
'IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME ' +
'TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD ' +
'DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST ' +
'INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT ' +
'MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED ' +
'READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION ' +
'CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED ' +
'PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED ' +
'EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED ' +
'TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED ' +
'SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME ' +
'INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION ' +
'SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED ' +
'SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE ' +
'GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME ' +
'NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH ' +
'INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN ' +
'UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT ' +
'DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION ' +
'DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS ' +
'DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS ' +
'INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION ' +
'INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION ' +
'INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION ' +
'INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL ' +
'OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED ' +
'STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE ' +
'OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION ' +
'QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED ' +
'SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR ' +
'LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED ' +
'FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION ' +
'FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER ' +
'FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS ' +
'FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX ' +
'FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH ' +
'FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES ' +
'FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE ' +
'FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION ' +
'FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR ' +
'RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED ' +
'INDEX_CORRUPTED ';
var FUNCTIONS =
// https://www.postgresql.org/docs/11/static/functions-aggregate.html
'ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG ' +
'JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG ' +
'CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE ' +
'REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP ' +
'PERCENTILE_CONT PERCENTILE_DISC ' +
// https://www.postgresql.org/docs/11/static/functions-window.html
'ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE ' +
// https://www.postgresql.org/docs/11/static/functions-comparison.html
'NUM_NONNULLS NUM_NULLS ' +
// https://www.postgresql.org/docs/11/static/functions-math.html
'ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT ' +
'TRUNC WIDTH_BUCKET ' +
'RANDOM SETSEED ' +
'ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND ' +
// https://www.postgresql.org/docs/11/static/functions-string.html
'BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ' +
'ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP' +
'LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 ' +
'QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY ' +
'REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR ' +
'TO_ASCII TO_HEX TRANSLATE ' +
// https://www.postgresql.org/docs/11/static/functions-binarystring.html
'OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE ' +
// https://www.postgresql.org/docs/11/static/functions-formatting.html
'TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP ' +
// https://www.postgresql.org/docs/11/static/functions-datetime.html
'AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL ' +
'MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 ' +
'TIMEOFDAY TRANSACTION_TIMESTAMP|10 ' +
// https://www.postgresql.org/docs/11/static/functions-enum.html
'ENUM_FIRST ENUM_LAST ENUM_RANGE ' +
// https://www.postgresql.org/docs/11/static/functions-geometry.html
'AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH ' +
'BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ' +
// https://www.postgresql.org/docs/11/static/functions-net.html
'ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY' +
'INET_MERGE MACADDR8_SET7BIT ' +
// https://www.postgresql.org/docs/11/static/functions-textsearch.html
'ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY ' +
'QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE ' +
'TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY ' +
'TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN ' +
// https://www.postgresql.org/docs/11/static/functions-xml.html
'XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT ' +
'XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT ' +
'XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES ' +
'TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA ' +
'QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA ' +
'CURSOR_TO_XML CURSOR_TO_XMLSCHEMA ' +
'SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA ' +
'DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA ' +
'XMLATTRIBUTES ' +
// https://www.postgresql.org/docs/11/static/functions-json.html
'TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT ' +
'JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH ' +
'JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH ' +
'JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET ' +
'JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT ' +
'JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET ' +
'JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY ' +
// https://www.postgresql.org/docs/11/static/functions-sequence.html
'CURRVAL LASTVAL NEXTVAL SETVAL ' +
// https://www.postgresql.org/docs/11/static/functions-conditional.html
'COALESCE NULLIF GREATEST LEAST ' +
// https://www.postgresql.org/docs/11/static/functions-array.html
'ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ' +
'ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY ' +
'STRING_TO_ARRAY UNNEST ' +
// https://www.postgresql.org/docs/11/static/functions-range.html
'ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE ' +
// https://www.postgresql.org/docs/11/static/functions-srf.html
'GENERATE_SERIES GENERATE_SUBSCRIPTS ' +
// https://www.postgresql.org/docs/11/static/functions-info.html
'CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT ' +
'INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE ' +
'TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE ' +
'COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION ' +
'TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX ' +
'TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS ' +
// https://www.postgresql.org/docs/11/static/functions-admin.html
'CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE ' +
'GIN_CLEAN_PENDING_LIST ' +
// https://www.postgresql.org/docs/11/static/functions-trigger.html
'SUPPRESS_REDUNDANT_UPDATES_TRIGGER ' +
// ihttps://www.postgresql.org/docs/devel/static/lo-funcs.html
'LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE ' +
//
'GROUPING CAST ';
var FUNCTIONS_RE =
FUNCTIONS.trim()
.split(' ')
.map( function(val) { return val.split('|')[0]; } )
.join('|');
return {
aliases: ['postgres','postgresql'],
case_insensitive: true,
keywords: {
keyword:
SQL_KW + PLPGSQL_KW + ROLE_ATTRS,
built_in:
SQL_BI + PLPGSQL_BI + PLPGSQL_EXCEPTIONS,
},
// Forbid some cunstructs from other languages to improve autodetect. In fact
// "[a-z]:" is legal (as part of array slice), but improbabal.
illegal: /:==|\W\s*\(\*|(^|\s)\$[a-z]|{{|[a-z]:\s*$|\.\.\.|TO:|DO:/,
contains: [
// special handling of some words, which are reserved only in some contexts
{
className: 'keyword',
variants: [
{ begin: /\bTEXT\s*SEARCH\b/ },
{ begin: /\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/ },
{ begin: /\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/ },
{ begin: /\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/ },
{ begin: /\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/ },
{ begin: /\bNULLS\s+(FIRST|LAST)\b/ },
{ begin: /\bEVENT\s+TRIGGER\b/ },
{ begin: /\b(MAPPING|OR)\s+REPLACE\b/ },
{ begin: /\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/ },
{ begin: /\b(SHARE|EXCLUSIVE)\s+MODE\b/ },
{ begin: /\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/ },
{ begin: /\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/ },
{ begin: /\bPRESERVE\s+ROWS\b/ },
{ begin: /\bDISCARD\s+PLANS\b/ },
{ begin: /\bREFERENCING\s+(OLD|NEW)\b/ },
{ begin: /\bSKIP\s+LOCKED\b/ },
{ begin: /\bGROUPING\s+SETS\b/ },
{ begin: /\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/ },
{ begin: /\b(WITH|WITHOUT)\s+HOLD\b/ },
{ begin: /\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/ },
{ begin: /\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/ },
{ begin: /\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/ },
{ begin: /\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/ },
{ begin: /\bIS\s+(NOT\s+)?UNKNOWN\b/ },
{ begin: /\bSECURITY\s+LABEL\b/ },
{ begin: /\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/ },
{ begin: /\bWITH\s+(NO\s+)?DATA\b/ },
{ begin: /\b(FOREIGN|SET)\s+DATA\b/ },
{ begin: /\bSET\s+(CATALOG|CONSTRAINTS)\b/ },
{ begin: /\b(WITH|FOR)\s+ORDINALITY\b/ },
{ begin: /\bIS\s+(NOT\s+)?DOCUMENT\b/ },
{ begin: /\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/ },
{ begin: /\b(STRIP|PRESERVE)\s+WHITESPACE\b/ },
{ begin: /\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/ },
{ begin: /\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/ },
{ begin: /\bAT\s+TIME\s+ZONE\b/ },
{ begin: /\bGRANTED\s+BY\b/ },
{ begin: /\bRETURN\s+(QUERY|NEXT)\b/ },
{ begin: /\b(ATTACH|DETACH)\s+PARTITION\b/ },
{ begin: /\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/ },
{ begin: /\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/ },
{ begin: /\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/ }
]
},
// functions named as keywords, followed by '('
{
begin: /\b(FORMAT|FAMILY|VERSION)\s*\(/,
//keywords: { built_in: 'FORMAT FAMILY VERSION' }
},
// INCLUDE ( ... ) in index_parameters in CREATE TABLE
{
begin: /\bINCLUDE\s*\(/,
keywords: 'INCLUDE'
},
// not highlight RANGE if not in frame_clause (not 100% correct, but seems satisfactory)
{
begin: /\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/
},
// disable highlighting in commands CREATE AGGREGATE/COLLATION/DATABASE/OPERTOR/TEXT SEARCH .../TYPE
// and in PL/pgSQL RAISE ... USING
{
begin: /\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/
},
// PG_smth; HAS_some_PRIVILEGE
{
//className: 'built_in',
begin: /\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,
relevance: 10
},
// extract
{
begin: /\bEXTRACT\s*\(/,
end: /\bFROM\b/,
returnEnd: true,
keywords: {
//built_in: 'EXTRACT',
type: 'CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS ' +
'MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR ' +
'TIMEZONE_MINUTE WEEK YEAR'
}
},
// xmlelement, xmlpi - special NAME
{
begin: /\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,
keywords: {
//built_in: 'XMLELEMENT XMLPI',
keyword: 'NAME'
}
},
// xmlparse, xmlserialize
{
begin: /\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,
keywords: {
//built_in: 'XMLPARSE XMLSERIALIZE',
keyword: 'DOCUMENT CONTENT'
}
},
// Sequences. We actually skip everything between CACHE|INCREMENT|MAXVALUE|MINVALUE and
// nearest following numeric constant. Without with trick we find a lot of "keywords"
// in 'avrasm' autodetection config...
{
beginKeywords: 'CACHE INCREMENT MAXVALUE MINVALUE',
end: hljs.C_NUMBER_RE,
returnEnd: true,
keywords: 'BY CACHE INCREMENT MAXVALUE MINVALUE'
},
// WITH|WITHOUT TIME ZONE as part of datatype
{
className: 'type',
begin: /\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/
},
// INTERVAL optional fields
{
className: 'type',
begin: /\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/
},
// Pseudo-types which allowed only as return type
{
begin: /\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,
keywords: {
keyword: 'RETURNS',
type: 'LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER'
}
},
// Known functions - only when followed by '('
{
begin: '\\b(' + FUNCTIONS_RE + ')\\s*\\('
//keywords: { built_in: FUNCTIONS }
},
// Types
{
begin: '\\.(' + TYPES_RE + ')\\b' // prevent highlight as type, say, 'oid' in 'pgclass.oid'
},
{
begin: '\\b(' + TYPES_RE + ')\\s+PATH\\b', // in XMLTABLE
keywords: {
keyword: 'PATH', // hopefully no one would use PATH type in XMLTABLE...
type: TYPES.replace('PATH ','')
}
},
{
className: 'type',
begin: '\\b(' + TYPES_RE + ')\\b'
},
// Strings, see https://www.postgresql.org/docs/11/static/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS
{
className: 'string',
begin: '\'', end: '\'',
contains: [{begin: '\'\''}]
},
{
className: 'string',
begin: '(e|E|u&|U&)\'', end: '\'',
contains: [{begin: '\\\\.'}],
relevance: 10
},
{
begin: DOLLAR_STRING,
endSameAsBegin: true,
contains: [
{
// actually we want them all except SQL; listed are those with known implementations
// and XML + JSON just in case
subLanguage: ['pgsql','perl','python','tcl','r','lua','java','php','ruby','bash','scheme','xml','json'],
endsWithParent: true
}
]
},
// identifiers in quotes
{
begin: '"', end: '"',
contains: [{begin: '""'}]
},
// numbers
hljs.C_NUMBER_MODE,
// comments
hljs.C_BLOCK_COMMENT_MODE,
COMMENT_MODE,
// PL/pgSQL staff
// %ROWTYPE, %TYPE, $n
{
className: 'meta',
variants: [
{begin: '%(ROW)?TYPE', relevance: 10}, // %TYPE, %ROWTYPE
{begin: '\\$\\d+'}, // $n
{begin: '^#\\w', end: '$'} // #compiler option
]
},
// <<labeles>>
{
className: 'symbol',
begin: LABEL,
relevance: 10
}
]
};
};
|
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/builtin/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _default = (0, _createSvgIcon.default)(_react.default.createElement(_react.default.Fragment, null, _react.default.createElement("path", {
fill: "none",
d: "M0 0h24v24H0V0z"
}), _react.default.createElement("path", {
d: "M12.01 18c-1.48 0-2.75-.81-3.45-2H5v3h14v-3h-3.55c-.69 1.19-1.97 2-3.44 2z",
opacity: ".3"
}), _react.default.createElement("path", {
d: "M16 9h-2.55V6h-2.9v3H8l4 4z"
}), _react.default.createElement("path", {
d: "M19 3H4.99C3.88 3 3 3.9 3 5v14c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5v-3h3.56c.69 1.19 1.97 2 3.45 2s2.75-.81 3.45-2H19v3zm0-5h-4.99c0 1.1-.9 2-2 2s-2-.9-2-2H5l-.01-9H19v9z"
})), 'MoveToInboxTwoTone');
exports.default = _default;
|
/**
* @author sunag / http://www.sunag.com.br/
*/
import { Node } from './Node.js';
function AttributeNode( name, type ) {
Node.call( this, type );
this.name = name;
}
AttributeNode.prototype = Object.create( Node.prototype );
AttributeNode.prototype.constructor = AttributeNode;
AttributeNode.prototype.nodeType = "Attribute";
AttributeNode.prototype.getAttributeType = function ( builder ) {
return typeof this.type === 'number' ? builder.getConstructorFromLength( this.type ) : this.type;
};
AttributeNode.prototype.getType = function ( builder ) {
var type = this.getAttributeType( builder );
return builder.getTypeByFormat( type );
};
AttributeNode.prototype.generate = function ( builder, output ) {
var type = this.getAttributeType( builder );
var attribute = builder.getAttribute( this.name, type ),
name = builder.isShader( 'vertex' ) ? this.name : attribute.varying.name;
console.log( attribute );
return builder.format( name, this.getType( builder ), output );
};
AttributeNode.prototype.copy = function ( source ) {
Node.prototype.copy.call( this, source );
this.type = source.type;
};
AttributeNode.prototype.toJSON = function ( meta ) {
var data = this.getJSONNode( meta );
if ( ! data ) {
data = this.createJSONNode( meta );
data.type = this.type;
}
return data;
};
export { AttributeNode };
|
;
(function() {
"use strict";
var
/**
* The parsed output string, in HTML format.
* @type {String}
*/
output = "",
BLOCK = "block",
INLINE = "inline",
/**
* Used to attach MarkdownToHtml object to `window` in browser
* context, or as an AMD module where appropriate.
* @type {Object}
*/
exports,
/**
* An array of parse rule descriptor objects. Each object has two keys;
* pattern (the RegExp to match), and replace (the replacement string or
* function to execute).
* @type {Array}
*/
parseMap = [{
// -
pattern: /(\-)\1/g,
replace: "\n\t - $1\n",
type: BLOCK,
},
{
// <b>
// Either two asterisks or two underscores, followed by any
// characters, followed by the same two starting characters.
pattern: /(\*\*|__)(.*?)\1/g,
replace: "\n\t<b>$2</b>",
type: INLINE,
},
],
$$;
/**
* Self-executing function to handle exporting the parse function for
* external use.
*/
(function go() {
// Export AMD module if possible.
if (typeof module !== "undefined" &&
typeof module.exports !== "undefined") {
exports = module.exports;
}
// Otherwise check for browser context.
else if (typeof window !== "undefined") {
window.MarkdownToHtml = {};
exports = window.MarkdownToHtml;
}
exports.parse = parse;
})();
/**
* Parses a provided Markdown string into valid HTML.
*
* @param {string} string Markdown input for transformation
* @return {string} Transformed HTML output
*/
function parse(string) {
// Pad with newlines for compatibility.
output = "\n" + string + "\n";
parseMap.forEach(function(p) {
// Replace all matches of provided RegExp pattern with either the
// replacement string or callback function.
output = output.replace(p.pattern, function() {
// console.log(this, arguments);
return replace.call(this, arguments, p.replace, p.type);
});
});
// Perform any post-processing required.
output = clean(output);
// Trim for any spaces or newlines.
output = output.trim();
// Tidy up newlines to condense where more than 1 occurs back to back.
output = output.replace(/[\n]{1,}/g, "\n");
return output;
}
function replace(matchList, replacement, type) {
var
i,
$$;
for (i in matchList) {
if (!matchList.hasOwnProperty(i)) {
continue;
}
// Replace $n with the matching regexp group.
replacement = replacement.split("$" + i).join(matchList[i]);
// Replace $Ln with the matching regexp group's string length.
replacement = replacement.split("$L" + i).join(matchList[i].length);
}
if (type === BLOCK) {
replacement = replacement.trim() + "\n";
}
return replacement;
}
function clean(string) {
var cleaningRuleArray = [{
match: /<\/([uo]l)>\s*<\1>/g,
replacement: "",
},
{
match: /(<\/\w+>)<\/(blockquote)>\s*<\2>/g,
replacement: "$1",
},
];
cleaningRuleArray.forEach(function(rule) {
string = string.replace(rule.match, rule.replacement);
});
return string;
}
})();
|
import { mount } from '@vue/test-utils'
import { waitNT, waitRAF } from '../../../tests/utils'
import { BFormSpinbutton } from './form-spinbutton'
describe('form-spinbutton', () => {
it('has expected default structure', async () => {
const wrapper = mount(BFormSpinbutton)
expect(wrapper.isVueInstance()).toBe(true)
await waitNT(wrapper.vm)
await waitRAF()
expect(wrapper.classes()).toContain('b-form-spinbutton')
expect(wrapper.classes()).toContain('form-control')
expect(wrapper.classes()).toContain('d-flex')
expect(wrapper.classes()).not.toContain('d-inline-flex')
expect(wrapper.classes()).not.toContain('flex-column')
expect(wrapper.classes()).toContain('align-items-stretch')
expect(wrapper.attributes('role')).toEqual('group')
expect(wrapper.attributes('tabindex')).toEqual('-1')
// Should have 3 child elements (btn, output, btn)
expect(wrapper.findAll('.b-form-spinbutton > *').length).toBe(3)
const $decrement = wrapper.find('[aria-label="Decrement"]')
expect($decrement.exists()).toBe(true)
expect($decrement.is('button')).toBe(true)
expect($decrement.attributes('tabindex')).toEqual('-1')
expect($decrement.attributes('aria-keyshortcuts')).toEqual('ArrowDown')
const $increment = wrapper.find('[aria-label="Increment"]')
expect($increment.exists()).toBe(true)
expect($increment.is('button')).toBe(true)
expect($increment.attributes('tabindex')).toEqual('-1')
expect($increment.attributes('aria-keyshortcuts')).toEqual('ArrowUp')
const $output = wrapper.find('output')
expect($output.exists()).toBe(true)
expect($output.attributes('role')).toEqual('spinbutton')
expect($output.attributes('tabindex')).toEqual('0')
expect($output.attributes('aria-live')).toEqual('off')
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// These two attribute should not exist on the element
expect($output.element.hasAttribute('aria-valuenow')).toBe(false)
expect($output.element.hasAttribute('aria-valuetext')).toBe(false)
expect($output.text()).toEqual('')
wrapper.setProps({
placeholder: 'foobar'
})
await waitNT(wrapper.vm)
expect($output.text()).toEqual('foobar')
wrapper.destroy()
})
it('has expected structure when value set', async () => {
const wrapper = mount(BFormSpinbutton, {
propsData: {
min: 0,
max: 10,
value: 5
}
})
expect(wrapper.isVueInstance()).toBe(true)
await waitNT(wrapper.vm)
await waitRAF()
expect(wrapper.classes()).toContain('b-form-spinbutton')
expect(wrapper.classes()).toContain('form-control')
expect(wrapper.classes()).toContain('d-flex')
expect(wrapper.classes()).not.toContain('d-inline-flex')
expect(wrapper.classes()).not.toContain('flex-column')
expect(wrapper.classes()).toContain('align-items-stretch')
expect(wrapper.attributes('role')).toEqual('group')
expect(wrapper.attributes('tabindex')).toEqual('-1')
// Should have 3 child elements (btn, output, btn)
expect(wrapper.findAll('.b-form-spinbutton > *').length).toBe(3)
const $decrement = wrapper.find('[aria-label="Decrement"]')
expect($decrement.exists()).toBe(true)
expect($decrement.is('button')).toBe(true)
expect($decrement.attributes('tabindex')).toEqual('-1')
expect($decrement.attributes('aria-keyshortcuts')).toEqual('ArrowDown')
const $increment = wrapper.find('[aria-label="Increment"]')
expect($increment.exists()).toBe(true)
expect($increment.is('button')).toBe(true)
expect($increment.attributes('tabindex')).toEqual('-1')
expect($increment.attributes('aria-keyshortcuts')).toEqual('ArrowUp')
const $output = wrapper.find('output')
expect($output.exists()).toBe(true)
expect($output.attributes('role')).toEqual('spinbutton')
expect($output.attributes('tabindex')).toEqual('0')
expect($output.attributes('aria-live')).toEqual('off')
expect($output.attributes('aria-valuemin')).toEqual('0')
expect($output.attributes('aria-valuemax')).toEqual('10')
expect($output.attributes('aria-valuenow')).toEqual('5')
expect($output.attributes('aria-valuetext')).toEqual('5')
wrapper.setProps({
value: 8
})
await waitNT(wrapper.vm)
expect($output.attributes('aria-valuemin')).toEqual('0')
expect($output.attributes('aria-valuemax')).toEqual('10')
expect($output.attributes('aria-valuenow')).toEqual('8')
expect($output.attributes('aria-valuetext')).toEqual('8')
wrapper.destroy()
})
it('has expected structure when prop inline set', async () => {
const wrapper = mount(BFormSpinbutton, {
propsData: {
inline: true
}
})
expect(wrapper.isVueInstance()).toBe(true)
await waitNT(wrapper.vm)
await waitRAF()
expect(wrapper.classes()).toContain('b-form-spinbutton')
expect(wrapper.classes()).toContain('form-control')
expect(wrapper.classes()).toContain('d-inline-flex')
expect(wrapper.classes()).not.toContain('d-flex')
expect(wrapper.classes()).not.toContain('flex-column')
expect(wrapper.classes()).toContain('align-items-stretch')
expect(wrapper.attributes('role')).toEqual('group')
expect(wrapper.attributes('tabindex')).toEqual('-1')
// Should have 3 child elements (btn, output, btn)
expect(wrapper.findAll('.b-form-spinbutton > *').length).toBe(3)
const $decrement = wrapper.find('[aria-label="Decrement"]')
expect($decrement.exists()).toBe(true)
expect($decrement.is('button')).toBe(true)
expect($decrement.attributes('tabindex')).toEqual('-1')
expect($decrement.attributes('aria-keyshortcuts')).toEqual('ArrowDown')
const $increment = wrapper.find('[aria-label="Increment"]')
expect($increment.exists()).toBe(true)
expect($increment.is('button')).toBe(true)
expect($increment.attributes('tabindex')).toEqual('-1')
expect($increment.attributes('aria-keyshortcuts')).toEqual('ArrowUp')
const $output = wrapper.find('output')
expect($output.exists()).toBe(true)
expect($output.attributes('role')).toEqual('spinbutton')
expect($output.attributes('tabindex')).toEqual('0')
expect($output.attributes('aria-live')).toEqual('off')
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// These two attribute should not exist on the element
expect($output.element.hasAttribute('aria-valuenow')).toBe(false)
expect($output.element.hasAttribute('aria-valuetext')).toBe(false)
wrapper.destroy()
})
it('has expected structure when prop vertical set', async () => {
const wrapper = mount(BFormSpinbutton, {
propsData: {
vertical: true
}
})
expect(wrapper.isVueInstance()).toBe(true)
await waitNT(wrapper.vm)
await waitRAF()
expect(wrapper.classes()).toContain('b-form-spinbutton')
expect(wrapper.classes()).toContain('form-control')
expect(wrapper.classes()).toContain('d-inline-flex')
expect(wrapper.classes()).not.toContain('d-flex')
expect(wrapper.classes()).toContain('flex-column')
expect(wrapper.classes()).not.toContain('align-items-stretch')
expect(wrapper.attributes('role')).toEqual('group')
expect(wrapper.attributes('tabindex')).toEqual('-1')
// Should have 3 child elements (btn, output, btn)
expect(wrapper.findAll('.b-form-spinbutton > *').length).toBe(3)
const $decrement = wrapper.find('[aria-label="Decrement"]')
expect($decrement.exists()).toBe(true)
expect($decrement.is('button')).toBe(true)
expect($decrement.attributes('tabindex')).toEqual('-1')
expect($decrement.attributes('aria-keyshortcuts')).toEqual('ArrowDown')
const $increment = wrapper.find('[aria-label="Increment"]')
expect($increment.exists()).toBe(true)
expect($increment.is('button')).toBe(true)
expect($increment.attributes('tabindex')).toEqual('-1')
expect($increment.attributes('aria-keyshortcuts')).toEqual('ArrowUp')
const $output = wrapper.find('output')
expect($output.exists()).toBe(true)
expect($output.attributes('role')).toEqual('spinbutton')
expect($output.attributes('tabindex')).toEqual('0')
expect($output.attributes('aria-live')).toEqual('off')
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// These two attribute should not exist on the element
expect($output.element.hasAttribute('aria-valuenow')).toBe(false)
expect($output.element.hasAttribute('aria-valuetext')).toBe(false)
wrapper.destroy()
})
it('renders hidden input when name set', async () => {
const wrapper = mount(BFormSpinbutton, {
propsData: {
name: 'foobar',
value: null
}
})
expect(wrapper.isVueInstance()).toBe(true)
await waitNT(wrapper.vm)
await waitRAF()
expect(wrapper.classes()).toContain('form-control')
expect(wrapper.classes()).toContain('b-form-spinbutton')
const $hidden = wrapper.find('input[type="hidden"]')
expect($hidden.exists()).toBe(true)
expect($hidden.attributes('name')).toBe('foobar')
expect($hidden.attributes('value')).toBe('')
wrapper.setProps({
value: 50
})
await waitNT(wrapper.vm)
await waitRAF()
expect($hidden.attributes('name')).toBe('foobar')
expect($hidden.attributes('value')).toBe('50')
wrapper.destroy()
})
it('basic +/- buttons click', async () => {
const wrapper = mount(BFormSpinbutton, {
attachToDocument: true
})
expect(wrapper.isVueInstance()).toBe(true)
await waitNT(wrapper.vm)
await waitRAF()
const $output = wrapper.find('output')
expect($output.exists()).toBe(true)
expect($output.attributes('role')).toEqual('spinbutton')
expect($output.attributes('tabindex')).toEqual('0')
expect($output.attributes('aria-live')).toEqual('off')
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// These two attribute should not exist on the element
expect($output.element.hasAttribute('aria-valuenow')).toBe(false)
expect($output.element.hasAttribute('aria-valuetext')).toBe(false)
const $increment = wrapper.find('[aria-label="Increment"]')
expect($increment.exists()).toBe(true)
const $decrement = wrapper.find('[aria-label="Decrement"]')
expect($decrement.exists()).toBe(true)
$decrement.trigger('mousedown')
$decrement.trigger('mouseup')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
expect($output.attributes('aria-valuenow')).toEqual('1')
expect($output.attributes('aria-valuetext')).toEqual('1')
$increment.trigger('mousedown')
$increment.trigger('mouseup')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
expect($output.attributes('aria-valuenow')).toEqual('2')
expect($output.attributes('aria-valuetext')).toEqual('2')
$increment.trigger('mousedown')
$increment.trigger('mouseup')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
expect($output.attributes('aria-valuenow')).toEqual('3')
expect($output.attributes('aria-valuetext')).toEqual('3')
$decrement.trigger('mousedown')
$decrement.trigger('mouseup')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
expect($output.attributes('aria-valuenow')).toEqual('2')
expect($output.attributes('aria-valuetext')).toEqual('2')
$decrement.trigger('mousedown')
$decrement.trigger('mouseup')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
expect($output.attributes('aria-valuenow')).toEqual('1')
expect($output.attributes('aria-valuetext')).toEqual('1')
$decrement.trigger('mousedown')
$decrement.trigger('mouseup')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// `wrap` is off so it should not change to `1`
expect($output.attributes('aria-valuenow')).toEqual('1')
expect($output.attributes('aria-valuetext')).toEqual('1')
wrapper.setProps({
wrap: true
})
$decrement.trigger('mousedown')
$decrement.trigger('mouseup')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// wrap is on so it should change to 100
expect($output.attributes('aria-valuenow')).toEqual('100')
expect($output.attributes('aria-valuetext')).toEqual('100')
$increment.trigger('mousedown')
$increment.trigger('mouseup')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// wrap is on so it should change to 1
expect($output.attributes('aria-valuenow')).toEqual('1')
expect($output.attributes('aria-valuetext')).toEqual('1')
wrapper.setProps({
disabled: true
})
await waitNT(wrapper.vm)
$increment.trigger('mousedown')
$increment.trigger('mouseup')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// Disabled so should not change
expect($output.attributes('aria-valuenow')).toEqual('1')
expect($output.attributes('aria-valuetext')).toEqual('1')
$decrement.trigger('mousedown')
$decrement.trigger('mouseup')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// Disabled so should not change
expect($output.attributes('aria-valuenow')).toEqual('1')
expect($output.attributes('aria-valuetext')).toEqual('1')
wrapper.setProps({
disabled: false,
readonly: true
})
await waitNT(wrapper.vm)
$increment.trigger('mousedown')
$increment.trigger('mouseup')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// Readonly so should not change
expect($output.attributes('aria-valuenow')).toEqual('1')
expect($output.attributes('aria-valuetext')).toEqual('1')
$decrement.trigger('mousedown')
$decrement.trigger('mouseup')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// Readonly so should not change
expect($output.attributes('aria-valuenow')).toEqual('1')
expect($output.attributes('aria-valuetext')).toEqual('1')
wrapper.setProps({
disabled: false,
readonly: false
})
await waitNT(wrapper.vm)
// Touch events should work as well
$increment.trigger('touchstart')
$increment.trigger('touchend')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
expect($output.attributes('aria-valuenow')).toEqual('2')
expect($output.attributes('aria-valuetext')).toEqual('2')
$decrement.trigger('touchstart')
$decrement.trigger('touchend')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
expect($output.attributes('aria-valuenow')).toEqual('1')
expect($output.attributes('aria-valuetext')).toEqual('1')
wrapper.destroy()
})
it('basic keyboard control works', async () => {
const wrapper = mount(BFormSpinbutton, {
attachToDocument: true
})
expect(wrapper.isVueInstance()).toBe(true)
await waitNT(wrapper.vm)
await waitRAF()
const $output = wrapper.find('output')
expect($output.exists()).toBe(true)
expect($output.attributes('role')).toEqual('spinbutton')
expect($output.attributes('tabindex')).toEqual('0')
expect($output.attributes('aria-live')).toEqual('off')
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// These two attribute should not exist on the element
expect($output.element.hasAttribute('aria-valuenow')).toBe(false)
expect($output.element.hasAttribute('aria-valuetext')).toBe(false)
wrapper.trigger('keydown.up')
wrapper.trigger('keyup.up')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
expect($output.attributes('aria-valuenow')).toEqual('1')
expect($output.attributes('aria-valuetext')).toEqual('1')
wrapper.trigger('keydown.up')
wrapper.trigger('keyup.up')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
expect($output.attributes('aria-valuenow')).toEqual('2')
expect($output.attributes('aria-valuetext')).toEqual('2')
wrapper.trigger('keydown.end')
wrapper.trigger('keyup.end')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
expect($output.attributes('aria-valuenow')).toEqual('100')
expect($output.attributes('aria-valuetext')).toEqual('100')
wrapper.trigger('keydown.up')
wrapper.trigger('keyup.up')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// `wrap` is off so it should not change to `1`
expect($output.attributes('aria-valuenow')).toEqual('100')
expect($output.attributes('aria-valuetext')).toEqual('100')
wrapper.trigger('keydown.down')
wrapper.trigger('keyup.down')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
expect($output.attributes('aria-valuenow')).toEqual('99')
expect($output.attributes('aria-valuetext')).toEqual('99')
wrapper.trigger('keydown.down')
wrapper.trigger('keyup.down')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
expect($output.attributes('aria-valuenow')).toEqual('98')
expect($output.attributes('aria-valuetext')).toEqual('98')
wrapper.trigger('keydown.home')
wrapper.trigger('keyup.home')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
expect($output.attributes('aria-valuenow')).toEqual('1')
expect($output.attributes('aria-valuetext')).toEqual('1')
wrapper.trigger('keydown.down')
wrapper.trigger('keyup.down')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// `wrap` is off so it should not change to `1`
expect($output.attributes('aria-valuenow')).toEqual('1')
expect($output.attributes('aria-valuetext')).toEqual('1')
wrapper.trigger('keydown.pageup')
wrapper.trigger('keyup.pageup')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// Default jump is `4`
expect($output.attributes('aria-valuenow')).toEqual('5')
expect($output.attributes('aria-valuetext')).toEqual('5')
wrapper.trigger('keydown.pageup')
wrapper.trigger('keyup.pageup')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// Default jump is `4`
expect($output.attributes('aria-valuenow')).toEqual('9')
expect($output.attributes('aria-valuetext')).toEqual('9')
wrapper.trigger('keydown.pagedown')
wrapper.trigger('keyup.pagedown')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// Default jump is `4`
expect($output.attributes('aria-valuenow')).toEqual('5')
expect($output.attributes('aria-valuetext')).toEqual('5')
wrapper.destroy()
})
it('auto repeat works', async () => {
jest.useFakeTimers()
const wrapper = mount(BFormSpinbutton, {
attachToDocument: true,
propsData: {
min: 1,
max: 100,
step: 1,
value: 1
}
})
expect(wrapper.isVueInstance()).toBe(true)
await waitNT(wrapper.vm)
await waitRAF()
const $output = wrapper.find('output')
expect($output.exists()).toBe(true)
expect($output.attributes('role')).toEqual('spinbutton')
expect($output.attributes('tabindex')).toEqual('0')
expect($output.attributes('aria-live')).toEqual('off')
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
expect($output.attributes('aria-valuenow')).toEqual('1')
expect($output.attributes('aria-valuetext')).toEqual('1')
expect(wrapper.emitted('input')).not.toBeDefined()
expect(wrapper.emitted('change')).not.toBeDefined()
wrapper.trigger('keydown.up')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuenow')).toEqual('2')
expect($output.attributes('aria-valuetext')).toEqual('2')
expect(wrapper.emitted('input')).toBeDefined()
expect(wrapper.emitted('input').length).toBe(1)
expect(wrapper.emitted('change')).not.toBeDefined()
// Advance past delay time
jest.runOnlyPendingTimers()
await waitNT(wrapper.vm)
await waitRAF()
// Now we have to wait for interval to happen
expect($output.attributes('aria-valuenow')).toEqual('2')
expect($output.attributes('aria-valuetext')).toEqual('2')
expect(wrapper.emitted('input').length).toBe(1)
expect(wrapper.emitted('change')).not.toBeDefined()
// Advance past interval time
// Repeat #1
jest.runOnlyPendingTimers()
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuenow')).toEqual('3')
expect($output.attributes('aria-valuetext')).toEqual('3')
expect(wrapper.emitted('input').length).toBe(2)
expect(wrapper.emitted('change')).not.toBeDefined()
// Repeat #2
jest.runOnlyPendingTimers()
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuenow')).toEqual('4')
expect($output.attributes('aria-valuetext')).toEqual('4')
expect(wrapper.emitted('input').length).toBe(3)
expect(wrapper.emitted('change')).not.toBeDefined()
// Repeat #3
jest.runOnlyPendingTimers()
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuenow')).toEqual('5')
expect($output.attributes('aria-valuetext')).toEqual('5')
expect(wrapper.emitted('input').length).toBe(4)
expect(wrapper.emitted('change')).not.toBeDefined()
// Repeat #4
jest.runOnlyPendingTimers()
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuenow')).toEqual('6')
expect($output.attributes('aria-valuetext')).toEqual('6')
expect(wrapper.emitted('input').length).toBe(5)
expect(wrapper.emitted('change')).not.toBeDefined()
// Repeat #5
jest.runOnlyPendingTimers()
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuenow')).toEqual('7')
expect($output.attributes('aria-valuetext')).toEqual('7')
expect(wrapper.emitted('input').length).toBe(6)
expect(wrapper.emitted('change')).not.toBeDefined()
// Repeat #6
jest.runOnlyPendingTimers()
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuenow')).toEqual('8')
expect($output.attributes('aria-valuetext')).toEqual('8')
expect(wrapper.emitted('input').length).toBe(7)
expect(wrapper.emitted('change')).not.toBeDefined()
// Repeat #7
jest.runOnlyPendingTimers()
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuenow')).toEqual('9')
expect($output.attributes('aria-valuetext')).toEqual('9')
expect(wrapper.emitted('input').length).toBe(8)
expect(wrapper.emitted('change')).not.toBeDefined()
// Repeat #8
jest.runOnlyPendingTimers()
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuenow')).toEqual('10')
expect($output.attributes('aria-valuetext')).toEqual('10')
expect(wrapper.emitted('input').length).toBe(9)
expect(wrapper.emitted('change')).not.toBeDefined()
// Repeat #9
jest.runOnlyPendingTimers()
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuenow')).toEqual('11')
expect($output.attributes('aria-valuetext')).toEqual('11')
expect(wrapper.emitted('input').length).toBe(10)
expect(wrapper.emitted('change')).not.toBeDefined()
// Repeat #10
jest.runOnlyPendingTimers()
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuenow')).toEqual('12')
expect($output.attributes('aria-valuetext')).toEqual('12')
expect(wrapper.emitted('input').length).toBe(11)
expect(wrapper.emitted('change')).not.toBeDefined()
// Repeat #11 - Multiplier kicks in
jest.runOnlyPendingTimers()
await waitNT(wrapper.vm)
await waitRAF()
// Note even though step is `4`, it jumps to `17` (not `16`) as it rounds to the
// nearest multiple of step (relative to the min value, which is `1` in this test)
// If min was set to `0`, then this would have been `16`
expect($output.attributes('aria-valuenow')).toEqual('17')
expect($output.attributes('aria-valuetext')).toEqual('17')
expect(wrapper.emitted('input').length).toBe(12)
expect(wrapper.emitted('change')).not.toBeDefined()
// Repeat #12
jest.runOnlyPendingTimers()
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuenow')).toEqual('21')
expect($output.attributes('aria-valuetext')).toEqual('21')
expect(wrapper.emitted('input').length).toBe(13)
expect(wrapper.emitted('change')).not.toBeDefined()
// Un-press key
wrapper.trigger('keyup.up')
await waitNT(wrapper.vm)
await waitRAF()
expect($output.attributes('aria-valuenow')).toEqual('21')
expect($output.attributes('aria-valuetext')).toEqual('21')
expect(wrapper.emitted('input').length).toBe(13)
expect(wrapper.emitted('change')).toBeDefined()
expect(wrapper.emitted('change').length).toBe(1)
wrapper.destroy()
})
it('focus and blur handling works', async () => {
const wrapper = mount(BFormSpinbutton, {
attachToDocument: true
})
expect(wrapper.isVueInstance()).toBe(true)
await waitNT(wrapper.vm)
await waitRAF()
expect(wrapper.classes()).toContain('b-form-spinbutton')
expect(wrapper.classes()).toContain('form-control')
expect(wrapper.classes()).toContain('d-flex')
expect(wrapper.classes()).toContain('align-items-stretch')
expect(wrapper.classes()).not.toContain('d-inline-flex')
expect(wrapper.classes()).not.toContain('flex-column')
expect(wrapper.classes()).not.toContain('focus')
expect(wrapper.attributes('role')).toEqual('group')
expect(wrapper.attributes('tabindex')).toEqual('-1')
const $output = wrapper.find('output')
expect($output.exists()).toBe(true)
expect($output.attributes('role')).toEqual('spinbutton')
expect($output.attributes('tabindex')).toEqual('0')
expect($output.attributes('aria-live')).toEqual('off')
expect($output.attributes('aria-valuemin')).toEqual('1')
expect($output.attributes('aria-valuemax')).toEqual('100')
// These two attribute should not exist on the element
expect($output.element.hasAttribute('aria-valuenow')).toBe(false)
expect($output.element.hasAttribute('aria-valuetext')).toBe(false)
expect(document.activeElement).not.toBe($output.element)
$output.element.focus()
await waitNT(wrapper.vm)
expect(wrapper.classes()).toContain('focus')
expect(document.activeElement).toBe($output.element)
$output.element.blur()
await waitNT(wrapper.vm)
expect(wrapper.classes()).not.toContain('focus')
expect(document.activeElement).not.toBe($output.element)
wrapper.vm.focus()
await waitNT(wrapper.vm)
expect(wrapper.classes()).toContain('focus')
expect(document.activeElement).toBe($output.element)
wrapper.vm.blur()
await waitNT(wrapper.vm)
expect(wrapper.classes()).not.toContain('focus')
expect(document.activeElement).not.toBe($output.element)
wrapper.setProps({
disabled: true
})
await waitNT(wrapper.vm)
wrapper.vm.focus()
await waitNT(wrapper.vm)
expect(wrapper.classes()).not.toContain('focus')
expect(document.activeElement).not.toBe($output.element)
try {
$output.element.focus()
} catch {}
await waitNT(wrapper.vm)
expect(wrapper.classes()).not.toContain('focus')
expect(document.activeElement).not.toBe($output.element)
$output.trigger('focus')
await waitNT(wrapper.vm)
expect(wrapper.classes()).not.toContain('focus')
expect(document.activeElement).not.toBe($output.element)
wrapper.destroy()
})
})
|
/*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'ko', {
options: '특수문자 옵션',
title: '특수문자 선택',
toolbar: '특수문자 삽입'
} );
|
import React from 'react'
import {screen, render, fireEvent, waitFor} from '@testing-library/react'
import {rest} from 'msw'
import {setupServer} from 'msw/node'
import {Form} from './Form'
import {
CREATED_STATUS,
ERROR_SERVER_STATUS,
INVALID_REQUEST_STATUS,
} from '../const/htttpStatus'
// create mock server and send form fields data to get server responses
const server = setupServer(
rest.post('/products', (req, res, ctx) => {
const {name, size, type} = req.body
if (name && size && type) {
return res(ctx.status(CREATED_STATUS))
}
return res(ctx.status(ERROR_SERVER_STATUS))
}),
)
// start mock server
beforeAll(() => server.listen())
// close mock server
afterAll(() => server.close())
// beforeEach is used in global scope to render the component before each test
beforeEach(() => render(<Form />))
// reset any runtime request handlers added during the tests (custom server response)
afterEach(() => server.resetHandlers())
describe('when the form is mounted', () => {
// test form page
it('there must be a create product form page', () => {
// getByRole with name option is used to get elements by their accessible name
expect(
screen.getByRole('heading', {name: /create product/i}),
).toBeInTheDocument()
})
// test form fields
it('should exists the fields: name, size, type (electronic, furniture, clothing)', () => {
// getByLabelText is used to get elements by label (form inputs)
expect(screen.getByLabelText(/name/i)).toBeInTheDocument()
expect(screen.getByLabelText(/size/i)).toBeInTheDocument()
expect(screen.getByLabelText(/type/i)).toBeInTheDocument()
// queryByText is used to get elements by text (select options)
expect(screen.queryByText(/electronic/i)).toBeInTheDocument()
expect(screen.queryByText(/furniture/i)).toBeInTheDocument()
expect(screen.queryByText(/clothing/i)).toBeInTheDocument()
})
// test form submit button
it('should exists the submit button', () => {
expect(screen.getByRole('button', {name: /submit/i})).toBeInTheDocument()
})
})
describe('when the user submits the form without values', () => {
// test form validation error messages
it('should display validation messages', async () => {
// before the event error message should not be in the document
expect(screen.queryByText(/the name is required/i)).not.toBeInTheDocument()
expect(screen.queryByText(/the size is required/i)).not.toBeInTheDocument()
expect(screen.queryByText(/the type is required/i)).not.toBeInTheDocument()
// event click to send data to the server
fireEvent.click(screen.getByRole('button', {name: /submit/i}))
// after the event error message should be in the document
expect(screen.queryByText(/the name is required/i)).toBeInTheDocument()
expect(screen.queryByText(/the size is required/i)).toBeInTheDocument()
expect(screen.queryByText(/the type is required/i)).toBeInTheDocument()
// wait for the server response to run the test. waitFor returns a Promise when it runs as a function
await waitFor(() =>
expect(screen.getByRole('button', {name: /submit/i})).not.toBeDisabled(),
)
})
})
describe('when the user blurs an empty field', () => {
// test name field error message on blur
it('should display a validation error message for the input name', () => {
// before the event the error message on empty name field should not be in the document
expect(screen.queryByText(/the name is required/i)).not.toBeInTheDocument()
// event receives two values: element + event target
// and event target receives two values: input name + empty input value
fireEvent.blur(screen.getByLabelText(/name/i), {
target: {name: 'name', value: ''},
})
// after the event the error message on empty name fields should be in the document
expect(screen.queryByText(/the name is required/i)).toBeInTheDocument()
})
// test size field error message on blur
it('should display a validation error message for the size name', () => {
// before the event the error message on empty size field should not be in the document
expect(screen.queryByText(/the size is required/i)).not.toBeInTheDocument()
// event
fireEvent.blur(screen.getByLabelText(/name/i), {
target: {name: 'size', value: ''},
})
// after the event the error message on empty size field should be in the document
expect(screen.queryByText(/the size is required/i)).toBeInTheDocument()
})
})
describe('when the user submits the form properly and the server returns created status', () => {
// test form disabled submit button
it('should the submit button be disabled until the request is done', async () => {
// before the event the button should be enabled
const submitBtn = screen.getByRole('button', {name: /submit/i})
expect(submitBtn).not.toBeDisabled()
// event
fireEvent.click(submitBtn)
// after the event the button should be disable
expect(submitBtn).toBeDisabled()
// wait for the server response to run the test
await waitFor(() => expect(submitBtn).not.toBeDisabled())
})
// test success message
it('the form page must display the success message "Product stored" and clean the fields values', async () => {
// variables
const nameInput = screen.getByLabelText(/name/i)
const sizeInput = screen.getByLabelText(/size/i)
const typeSelect = screen.getByLabelText(/type/i)
// change event to keep fields values
fireEvent.change(nameInput, {
target: {name: 'name', value: 'my product'},
})
fireEvent.change(sizeInput, {
target: {name: 'size', value: '10'},
})
fireEvent.change(typeSelect, {
target: {name: 'type', value: 'electronic'},
})
// click event to send fields values to the server
fireEvent.click(screen.getByRole('button', {name: /submit/i}))
// wait for the success server response to run the test
await waitFor(() =>
expect(screen.getByText(/product stored/i)).toBeInTheDocument(),
)
// reset fields values
expect(nameInput).toHaveValue('')
expect(sizeInput).toHaveValue('')
expect(typeSelect).toHaveValue('')
})
})
describe('when submits the form and the server returns an unexpected error', () => {
// test server error message
it('the form page must display the error message "Unexpected error, please try again"', async () => {
// event
fireEvent.click(screen.getByRole('button', {name: /submit/i}))
// wait for the error server response to run the test
await waitFor(() =>
expect(
screen.getByText(/unexpected error, please try again/i),
).toBeInTheDocument(),
)
})
})
describe('when submits the form and the server returns an invalid request error', () => {
// test server invalid request message
it('the form page must display the error message "The form is invalid, the fields name, size, type are required"', async () => {
// custom server response just for this test
server.use(
rest.post('/products', (req, res, ctx) => {
return res(
ctx.status(INVALID_REQUEST_STATUS),
ctx.json({
message:
'The form is invalid, the fields name, size, type are required',
}),
)
}),
)
// event
fireEvent.click(screen.getByRole('button', {name: /submit/i}))
// wait for the invalid request server response to run the test
await waitFor(() =>
expect(
screen.getByText(
/the form is invalid, the fields name, size, type are required/i,
),
).toBeInTheDocument(),
)
})
})
describe('when submits the form and the server returns a not found service error', () => {
// test not found service
it('the form page must display the message "Connection error, please try later"', async () => {
// server response
server.use(
rest.post('/products', (req, res) =>
res.networkError('Failed to connect'),
),
)
// event
fireEvent.click(screen.getByRole('button', {name: /submit/i}))
// wait for the invalid request server response to run the test
await waitFor(() =>
expect(
screen.getByText(/connection error, please try later/i),
).toBeInTheDocument(),
)
})
})
|
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
require('angular');
var app = angular.module('LaravelCRUD', []
, ['$httpProvider', function ($httpProvider) {
$httpProvider.defaults.headers.post['X-CSRF-TOKEN'] = $('meta[name=csrf-token]').attr('content');
}]);
app.controller('TaskController', ['$scope', '$http', function ($scope, $http) {
$scope.tasks = [];
// List tasks
$scope.loadTasks = function () {
$http.get('/task')
.then(function success(e) {
$scope.tasks = e.data.tasks;
});
};
$scope.loadTasks();
$scope.errors = [];
$scope.task = {
name: '',
description: ''
};
$scope.initTask = function () {
$scope.resetForm();
$("#add_new_task").modal('show');
};
// Add new Task
$scope.addTask = function () {
$http.post('/task', {
name: $scope.task.name,
description: $scope.task.description
}).then(function success(e) {
$scope.resetForm();
$scope.tasks.push(e.data.task);
$("#add_new_task").modal('hide');
}, function error(error) {
$scope.recordErrors(error);
});
};
$scope.recordErrors = function (error) {
$scope.errors = [];
if (error.data.errors.name) {
$scope.errors.push(error.data.errors.name[0]);
}
if (error.data.errors.description) {
$scope.errors.push(error.data.errors.description[0]);
}
};
$scope.resetForm = function () {
$scope.task.name = '';
$scope.task.description = '';
$scope.errors = [];
};
$scope.edit_task = {};
// initialize update action
$scope.initEdit = function (index) {
$scope.errors = [];
$scope.edit_task = $scope.tasks[index];
$("#edit_task").modal('show');
};
// update the given task
$scope.updateTask = function () {
$http.patch('/task/' + $scope.edit_task.id, {
name: $scope.edit_task.name,
description: $scope.edit_task.description
}).then(function success(e) {
$scope.errors = [];
$("#edit_task").modal('hide');
}, function error(error) {
$scope.recordErrors(error);
});
};
// delete the given task
$scope.deleteTask = function (index) {
var conf = confirm("Do you really want to delete this task?");
if (conf === true) {
$http.delete('/task/' + $scope.tasks[index].id)
.then(function success(e) {
$scope.tasks.splice(index, 1);
});
}
};
}]);
|
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import moxios from 'moxios';
import Immutable from 'immutable';
import chaiAsPromised from 'chai-as-promised';
import {
CLEAR_SEARCH_RESULTS,
CLEAR_SELECTED,
CREATE_EMPTY_SEARCH_RESULT,
DESELECT_RESULT_ITEM,
SET_MOST_RECENT_SEARCH,
SET_RESULT_ITEM_SELECTED,
SEARCH_STARTED,
SEARCH_FULFILLED,
SEARCH_REJECTED,
SET_ALL_RESULT_ITEMS_SELECTED,
} from '../../../src/constants/actionCodes';
import {
configureCSpace,
} from '../../../src/actions/cspace';
import {
clearSelected,
clearSearchResults,
deselectResultItem,
search,
setResultItemSelected,
setAllResultItemsSelected,
searchCsid,
} from '../../../src/actions/search';
import {
ERR_INVALID_SORT,
ERR_UNKNOWN_RECORD_TYPE,
ERR_UNKNOWN_VOCABULARY,
} from '../../../src/constants/errorCodes';
import {
searchKey,
} from '../../../src/reducers/search';
chai.use(chaiAsPromised);
chai.should();
const mockStore = configureMockStore([thunk]);
describe('search action creator', function suite() {
describe('search', function actionSuite() {
const recordType = 'person';
const servicePath = 'personauthorities';
const vocabulary = 'local';
const vocabularyServicePath = 'urn:cspace:name(person)';
const termsServicePath = 'authorityrefs';
const searchUrl = new RegExp(`^/cspace-services/${servicePath}/${vocabularyServicePath.replace('(', '\\(').replace(')', '\\)')}/items.*`);
const listTypes = {
common: {
listNodeName: 'ns2:abstract-common-list',
itemNodeName: 'list-item',
},
};
const config = {
listTypes,
recordTypes: {
[recordType]: {
serviceConfig: {
servicePath,
},
vocabularies: {
[vocabulary]: {
serviceConfig: {
servicePath: vocabularyServicePath,
},
},
},
columns: {
default: {
updatedAt: {
sortBy: 'collectionspace_core:updatedAt',
},
},
},
},
},
subresources: {
terms: {
serviceConfig: {
servicePath: termsServicePath,
},
},
},
};
const searchQuery = {
kw: 'abcd',
p: 0,
};
const searchName = 'testSearch';
const searchDescriptor = Immutable.fromJS({
recordType,
vocabulary,
searchQuery,
});
before(() => {
const store = mockStore({
user: Immutable.Map(),
});
return store.dispatch(configureCSpace());
});
beforeEach(() => {
moxios.install();
});
afterEach(() => {
moxios.uninstall();
});
it('should dispatch SEARCH_FULFILLED on success', function test() {
moxios.stubRequest(searchUrl, {
status: 200,
response: {},
});
const store = mockStore({
search: Immutable.Map(),
});
return store.dispatch(search(config, searchName, searchDescriptor))
.then(() => {
const actions = store.getActions();
actions.should.have.lengthOf(2);
actions[0].should.deep.equal({
type: SEARCH_STARTED,
meta: {
listTypeConfig: listTypes.common,
searchName,
searchDescriptor,
},
});
actions[1].should.deep.equal({
type: SEARCH_FULFILLED,
payload: {
status: 200,
statusText: undefined,
headers: undefined,
data: {},
},
meta: {
listTypeConfig: listTypes.common,
searchName,
searchDescriptor,
},
});
});
});
it('should dispatch SET_MOST_RECENT_SEARCH when a search with a given descriptor is already pending', function test() {
moxios.stubRequest(searchUrl, {
status: 200,
response: {},
});
const store = mockStore({
search: Immutable.fromJS({
[searchName]: {
byKey: {
[searchKey(searchDescriptor)]: {
isPending: true,
},
},
},
}),
});
store.dispatch(search(config, searchName, searchDescriptor));
const actions = store.getActions();
actions.should.have.lengthOf(1);
actions[0].should.deep.equal({
type: SET_MOST_RECENT_SEARCH,
meta: {
searchName,
searchDescriptor,
},
});
});
it('should dispatch SET_MOST_RECENT_SEARCH when a search with a given descriptor already has a result', function test() {
moxios.stubRequest(searchUrl, {
status: 200,
response: {},
});
const store = mockStore({
search: Immutable.fromJS({
[searchName]: {
byKey: {
[searchKey(searchDescriptor)]: {
result: {},
},
},
},
}),
});
store.dispatch(search(config, searchName, searchDescriptor));
const actions = store.getActions();
actions.should.have.lengthOf(1);
actions[0].should.deep.equal({
type: SET_MOST_RECENT_SEARCH,
meta: {
searchName,
searchDescriptor,
},
});
});
it('should dispatch CREATE_EMPTY_SEARCH_RESULT on a related record query with empty csid', function test() {
const relSearchDescriptor = Immutable.fromJS({
recordType,
vocabulary,
searchQuery: {
rel: '',
},
});
const store = mockStore({
search: Immutable.fromJS({
[searchName]: {
byKey: {},
},
}),
});
store.dispatch(search(config, searchName, relSearchDescriptor));
const actions = store.getActions();
actions.should.have.lengthOf(2);
actions[0].should.deep.equal({
type: SEARCH_STARTED,
meta: {
listTypeConfig: listTypes.common,
searchName,
searchDescriptor: relSearchDescriptor,
},
});
actions[1].should.deep.equal({
type: CREATE_EMPTY_SEARCH_RESULT,
meta: {
listTypeConfig: listTypes.common,
searchName,
searchDescriptor: relSearchDescriptor,
},
});
});
it('should accept null/undefined vocabulary name', function test() {
const noVocabularySearchUrl = new RegExp(`^/cspace-services/${servicePath}.*`);
moxios.stubRequest(noVocabularySearchUrl, {
status: 200,
response: {},
});
const store = mockStore({
search: Immutable.Map(),
});
const noVocabularySearchDescriptor = Immutable.fromJS({
recordType,
searchQuery,
});
return store.dispatch(search(config, searchName, noVocabularySearchDescriptor))
.then(() => {
const actions = store.getActions();
actions.should.have.lengthOf(2);
actions[0].should.deep.equal({
type: SEARCH_STARTED,
meta: {
listTypeConfig: listTypes.common,
searchName,
searchDescriptor: noVocabularySearchDescriptor,
},
});
actions[1].should.deep.equal({
type: SEARCH_FULFILLED,
payload: {
status: 200,
statusText: undefined,
headers: undefined,
data: {},
},
meta: {
listTypeConfig: listTypes.common,
searchName,
searchDescriptor: noVocabularySearchDescriptor,
},
});
});
});
it('should accept searches for subresources', function test() {
const csid = '1234';
const subresource = 'terms';
const subresourceSearchUrl = new RegExp(`^/cspace-services/${servicePath}/${vocabularyServicePath.replace('(', '\\(').replace(')', '\\)')}/items/${csid}/${termsServicePath}.*`);
moxios.stubRequest(subresourceSearchUrl, {
status: 200,
response: {},
});
const store = mockStore({
search: Immutable.Map(),
});
const subresourceSearchQuery = {
p: 0,
size: 10,
};
const subresourceSearchDescriptor = Immutable.fromJS({
recordType,
vocabulary,
csid,
subresource,
searchQuery: subresourceSearchQuery,
});
return store.dispatch(search(config, searchName, subresourceSearchDescriptor))
.then(() => {
const actions = store.getActions();
actions.should.have.lengthOf(2);
actions[0].should.deep.equal({
type: SEARCH_STARTED,
meta: {
listTypeConfig: listTypes.common,
searchName,
searchDescriptor: subresourceSearchDescriptor,
},
});
actions[1].should.deep.equal({
type: SEARCH_FULFILLED,
payload: {
status: 200,
statusText: undefined,
headers: undefined,
data: {},
},
meta: {
listTypeConfig: listTypes.common,
searchName,
searchDescriptor: subresourceSearchDescriptor,
},
});
});
});
it('should generate the sort parameter', function test() {
const sortedSearchUrl = new RegExp('\\?.*sortBy=collectionspace_core%3AupdatedAt');
moxios.stubRequest(sortedSearchUrl, {
status: 200,
response: {},
});
const store = mockStore({
search: Immutable.Map(),
});
const sortedSearchDescriptor = Immutable.fromJS({
recordType,
searchQuery: Object.assign({}, searchQuery, {
sort: 'updatedAt',
}),
});
return store.dispatch(search(config, searchName, sortedSearchDescriptor))
.then(() => {
const actions = store.getActions();
actions.should.have.lengthOf(2);
actions[0].should.deep.equal({
type: SEARCH_STARTED,
meta: {
listTypeConfig: listTypes.common,
searchName,
searchDescriptor: sortedSearchDescriptor,
},
});
actions[1].should.deep.equal({
type: SEARCH_FULFILLED,
payload: {
status: 200,
statusText: undefined,
headers: undefined,
data: {},
},
meta: {
listTypeConfig: listTypes.common,
searchName,
searchDescriptor: sortedSearchDescriptor,
},
});
});
});
it('should generate the sort parameter for descending searches', function test() {
const sortedSearchUrl = new RegExp('\\?.*sortBy=collectionspace_core%3AupdatedAt%20DESC');
moxios.stubRequest(sortedSearchUrl, {
status: 200,
response: {},
});
const store = mockStore({
search: Immutable.Map(),
});
const sortedSearchDescriptor = Immutable.fromJS({
recordType,
searchQuery: Object.assign({}, searchQuery, {
sort: 'updatedAt desc',
}),
});
return store.dispatch(search(config, searchName, sortedSearchDescriptor))
.then(() => {
const actions = store.getActions();
actions.should.have.lengthOf(2);
actions[0].should.deep.equal({
type: SEARCH_STARTED,
meta: {
listTypeConfig: listTypes.common,
searchName,
searchDescriptor: sortedSearchDescriptor,
},
});
actions[1].should.deep.equal({
type: SEARCH_FULFILLED,
payload: {
status: 200,
statusText: undefined,
headers: undefined,
data: {},
},
meta: {
listTypeConfig: listTypes.common,
searchName,
searchDescriptor: sortedSearchDescriptor,
},
});
});
});
it('should dispatch SEARCH_REJECTED when an unknown search column is specified', function test() {
const store = mockStore({
search: Immutable.Map(),
});
const sortedSearchDescriptor = Immutable.fromJS({
recordType,
searchQuery: Object.assign({}, searchQuery, {
sort: 'foobar',
}),
});
store.dispatch(search(config, searchName, sortedSearchDescriptor))
.catch(() => {
const actions = store.getActions();
actions.should.have.lengthOf(1);
actions[0].should.deep.equal({
type: SEARCH_REJECTED,
payload: {
code: ERR_INVALID_SORT,
},
meta: {
searchName,
searchDescriptor: sortedSearchDescriptor,
},
});
});
});
it('should dispatch SEARCH_REJECTED when an invalid search order is specified', function test() {
const store = mockStore({
search: Immutable.Map(),
});
const sortedSearchDescriptor = Immutable.fromJS({
recordType,
searchQuery: Object.assign({}, searchQuery, {
sort: 'updatedAt foo',
}),
});
store.dispatch(search(config, searchName, sortedSearchDescriptor))
.catch(() => {
const actions = store.getActions();
actions.should.have.lengthOf(1);
actions[0].should.deep.equal({
type: SEARCH_REJECTED,
payload: {
code: ERR_INVALID_SORT,
},
meta: {
searchName,
searchDescriptor: sortedSearchDescriptor,
},
});
});
});
it('should dispatch SEARCH_REJECTED on API error', function test() {
moxios.stubRequest(searchUrl, {
status: 400,
response: {},
});
const store = mockStore({
search: Immutable.Map(),
});
return store.dispatch(search(config, searchName, searchDescriptor))
.then(() => {
const actions = store.getActions();
actions.should.have.lengthOf(2);
actions[0].should.deep.equal({
type: SEARCH_STARTED,
meta: {
listTypeConfig: listTypes.common,
searchName,
searchDescriptor,
},
});
actions[1].should.have.property('type', SEARCH_REJECTED);
actions[1].should.have.property('meta').that.deep.equals({
searchName,
searchDescriptor,
});
});
});
it('should dispatch SEARCH_REJECTED if the record type is unknown', function test() {
const badSearchDescriptor = searchDescriptor.set('recordType', 'foobar');
const store = mockStore({
search: Immutable.Map(),
});
store.dispatch(search(config, searchName, badSearchDescriptor))
.catch(() => {
const actions = store.getActions();
actions.should.have.lengthOf(1);
actions[0].should.deep.equal({
type: SEARCH_REJECTED,
payload: {
code: ERR_UNKNOWN_RECORD_TYPE,
},
meta: {
searchName,
searchDescriptor: badSearchDescriptor,
},
});
});
});
it('should dispatch SEARCH_REJECTED if the record type does not have a service path', function test() {
const badConfig = {
listTypes,
recordTypes: {
[recordType]: {
serviceConfig: {},
},
},
};
const store = mockStore({
search: Immutable.Map(),
});
store.dispatch(search(badConfig, searchName, searchDescriptor))
.catch(() => {
const actions = store.getActions();
actions.should.have.lengthOf(1);
actions[0].should.deep.equal({
type: SEARCH_REJECTED,
payload: {
code: ERR_UNKNOWN_RECORD_TYPE,
},
meta: {
searchName,
searchDescriptor,
},
});
});
});
it('should dispatch SEARCH_REJECTED if the vocabulary does not have a service path', function test() {
const badConfig = {
listTypes,
recordTypes: {
[recordType]: {
serviceConfig: {
servicePath,
},
vocabularies: {
[vocabulary]: {
serviceConfig: {},
},
},
},
},
};
const store = mockStore({
search: Immutable.Map(),
});
store.dispatch(search(badConfig, searchName, searchDescriptor))
.catch(() => {
const actions = store.getActions();
actions.should.have.lengthOf(1);
actions[0].should.deep.equal({
type: SEARCH_REJECTED,
payload: {
code: ERR_UNKNOWN_VOCABULARY,
},
meta: {
searchName,
searchDescriptor,
},
});
});
});
});
describe('searchCsid', function actionSuite() {
beforeEach(() => {
moxios.install();
});
afterEach(() => {
moxios.uninstall();
});
it('should make an advanced search request for procedures', function test() {
const config = {
recordTypes: {
collectionobject: {
serviceConfig: {
servicePath: 'collectionobjects',
},
},
},
};
const data = {
foo: 'bar',
};
moxios.stubRequest('/cspace-services/collectionobjects?as=%28ecm%3Aname%20%3D%20%221234%22%29&pgSz=1&wf_deleted=false', {
status: 200,
response: data,
});
const store = mockStore({});
return store.dispatch(searchCsid(config, 'collectionobject', '1234'))
.then((response) => {
response.data.should.equal(data);
});
});
it('should make an advanced search request for authorities', function test() {
const config = {
recordTypes: {
person: {
serviceConfig: {
servicePath: 'personauthorities',
serviceType: 'authority',
},
vocabularies: {
all: {
serviceConfig: {
servicePath: '_ALL_',
},
},
},
},
},
};
const data = {
foo: 'bar',
};
moxios.stubRequest('/cspace-services/personauthorities/_ALL_/items?as=%28ecm%3Aname%20%3D%20%221234%22%29&pgSz=1&wf_deleted=false', {
status: 200,
response: data,
});
const store = mockStore({});
return store.dispatch(searchCsid(config, 'person', '1234'))
.then((response) => {
response.data.should.equal(data);
});
});
it('should reject if no record type config is found', function test() {
const config = {
recordTypes: {},
};
const store = mockStore({});
return store.dispatch(searchCsid(config, 'person', '1234')).should.eventually.be.rejected;
});
it('should reject if no record service path is found', function test() {
const config = {
recordTypes: {
group: {
serviceConfig: {},
},
},
};
const store = mockStore({});
return store.dispatch(searchCsid(config, 'group', '1234')).should.eventually.be.rejected;
});
it('should reject if no vocabulary service path is found for an authority', function test() {
const config = {
recordTypes: {
person: {
serviceConfig: {
servicePath: 'personauthorities',
serviceType: 'authority',
},
vocabularies: {
all: {
serviceConfig: {},
},
},
},
},
};
const store = mockStore({});
return store.dispatch(searchCsid(config, 'person', '1234')).should.eventually.be.rejected;
});
});
describe('setResultItemSelected', function actionSuite() {
const listTypes = {
common: {
listNodeName: 'ns2:abstract-common-list',
itemNodeName: 'list-item',
},
};
const config = {
listTypes,
};
it('should dispatch SET_RESULT_ITEM_SELECTED', function test() {
const searchName = 'searchName';
const searchDescriptor = Immutable.fromJS({
recordType: 'collectionobjects',
searchQuery: {
kw: 'foo',
},
});
const index = 3;
const checked = true;
const listType = 'common';
setResultItemSelected(config, searchName, searchDescriptor, listType, index, checked).should
.deep.equal({
type: SET_RESULT_ITEM_SELECTED,
payload: checked,
meta: {
listTypeConfig: listTypes[listType],
searchName,
searchDescriptor,
index,
},
});
});
});
describe('clearSearchResults', function actionSuite() {
it('should dispatch CLEAR_SEARCH_RESULTS', function test() {
const searchName = 'searchName';
clearSearchResults(searchName).should.deep.equal({
type: CLEAR_SEARCH_RESULTS,
meta: {
searchName,
},
});
});
});
describe('setAllResultItemsSelected', function actionSuite() {
it('should dispatch SET_ALL_RESULT_ITEMS_SELECTED', function test() {
const listType = 'common';
const listTypeConfig = {
listNodeName: 'ns2:abstract-common-list',
itemNodeName: 'list-item',
};
const config = {
listTypes: {
[listType]: listTypeConfig,
},
};
const searchName = 'searchName';
const searchDescriptor = Immutable.fromJS({
recordType: 'group',
});
const isSelected = true;
const filter = () => true;
setAllResultItemsSelected(
config, searchName, searchDescriptor, listType, isSelected, filter
).should.deep.equal({
type: SET_ALL_RESULT_ITEMS_SELECTED,
payload: isSelected,
meta: {
filter,
listTypeConfig,
searchName,
searchDescriptor,
},
});
});
});
describe('clearSelected', function actionSuite() {
it('should dispatch CLEAR_SELECTED', function test() {
const searchName = 'searchName';
clearSelected(searchName).should.deep.equal({
type: CLEAR_SELECTED,
meta: {
searchName,
},
});
});
});
describe('deselectResultItem', function actionSuite() {
it('should dispatch DESELECT_RESULT_ITEM', function test() {
const searchName = 'searchName';
const csid = '1234';
deselectResultItem(searchName, csid).should.deep.equal({
type: DESELECT_RESULT_ITEM,
meta: {
searchName,
csid,
},
});
});
});
});
|
/**
* Request
* @see https://datatracker.ietf.org/doc/html/rfc6749#section-4.3.2
*
* grant_type
* REQUIRED. Value MUST be set to "password".
* username
* REQUIRED. The resource owner username.
* password
* REQUIRED. The resource owner password.
* scope
* OPTIONAL. The scope of the access request as described by Section 3.3.
*/
/**
* Response
* @see https://datatracker.ietf.org/doc/html/rfc6749#section-5.1
*
* access_token
* REQUIRED. The access token issued by the authorization server.
* token_type
* REQUIRED. The type of the token issued as described in
* Section 7.1. Value is case insensitive.
* expires_in
* RECOMMENDED. The lifetime in seconds of the access token. For
* example, the value "3600" denotes that the access token will
* expire in one hour from the time the response was generated.
* If omitted, the authorization server SHOULD provide the
* expiration time via other means or document the default value.
* refresh_token
* OPTIONAL. The refresh token, which can be used to obtain new
* access tokens using the same authorization grant as described
* in Section 6.
* scope
* OPTIONAL, if identical to the scope requested by the client;
* otherwise, REQUIRED. The scope of the access token as
* described by Section 3.3.
*/
/**
* Response (error)
* @see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
*
* error
* REQUIRED. A single ASCII [USASCII] error code from the following:
* invalid_request, invalid_client, invalid_grant
* unauthorized_client, unsupported_grant_type, invalid_scope
* error_description
* OPTIONAL. Human-readable ASCII [USASCII] text providing
* additional information, used to assist the client developer in
* understanding the error that occurred.
* error_uri
* OPTIONAL. A URI identifying a human-readable web page with
* information about the error, used to provide the client
* developer with additional information about the error.
*/
const OAuth2Server = require('../..');
const DB = require('../helpers/db');
const createModel = require('../helpers/model');
const createRequest = require('../helpers/request');
const Response = require('../../lib/response');
const crypto = require('crypto');
require('chai').should();
const db = new DB();
const auth = new OAuth2Server({
model: createModel(db)
});
const user = db.saveUser({ id: 1, username: 'test', password: 'test'});
const client = db.saveClient({ id: 'a', secret: 'b', grants: ['password'] });
const scope = 'read write';
function createDefaultRequest () {
return createRequest({
body: {
grant_type: 'password',
username: user.username,
password: user.password,
scope
},
headers: {
'authorization': 'Basic ' + Buffer.from(client.id + ':' + client.secret).toString('base64'),
'content-type': 'application/x-www-form-urlencoded'
},
method: 'POST',
});
}
describe('PasswordGrantType Compliance', function () {
describe('Authenticate', function () {
it ('Succesfull authorization', async function () {
const request = createDefaultRequest();
const response = new Response({});
const token = await auth.token(request, response, {});
response.body.token_type.should.equal('Bearer');
response.body.access_token.should.equal(token.accessToken);
response.body.refresh_token.should.equal(token.refreshToken);
response.body.expires_in.should.be.a('number');
response.body.scope.should.equal(scope);
token.accessToken.should.be.a('string');
token.refreshToken.should.be.a('string');
token.accessTokenExpiresAt.should.be.a('date');
token.refreshTokenExpiresAt.should.be.a('date');
token.scope.should.equal(scope);
db.accessTokens.has(token.accessToken).should.equal(true);
db.refreshTokens.has(token.refreshToken).should.equal(true);
});
it ('Succesfull authorization and authentication', async function () {
const tokenRequest = createDefaultRequest();
const tokenResponse = new Response({});
const token = await auth.token(tokenRequest, tokenResponse, {});
const authenticationRequest = createRequest({
body: {},
headers: {
'Authorization': `Bearer ${token.accessToken}`
},
method: 'GET',
query: {}
});
const authenticationResponse = new Response({});
const authenticated = await auth.authenticate(
authenticationRequest,
authenticationResponse,
{});
authenticated.scope.should.equal(scope);
authenticated.user.should.be.an('object');
authenticated.client.should.be.an('object');
});
it ('Username missing', async function () {
const request = createDefaultRequest();
const response = new Response({});
delete request.body.username;
await auth.token(request, response, {})
.catch(err => {
err.name.should.equal('invalid_request');
});
});
it ('Password missing', async function () {
const request = createDefaultRequest();
const response = new Response({});
delete request.body.password;
await auth.token(request, response, {})
.catch(err => {
err.name.should.equal('invalid_request');
});
});
it ('Wrong username', async function () {
const request = createDefaultRequest();
const response = new Response({});
request.body.username = 'wrong';
await auth.token(request, response, {})
.catch(err => {
err.name.should.equal('invalid_grant');
});
});
it ('Wrong password', async function () {
const request = createDefaultRequest();
const response = new Response({});
request.body.password = 'wrong';
await auth.token(request, response, {})
.catch(err => {
err.name.should.equal('invalid_grant');
});
});
it ('Client not found', async function () {
const request = createDefaultRequest();
const response = new Response({});
const clientId = crypto.randomBytes(4).toString('hex');
const clientSecret = crypto.randomBytes(4).toString('hex');
request.headers.authorization = 'Basic ' + Buffer.from(`${clientId}:${clientSecret}`).toString('base64');
await auth.token(request, response, {})
.catch(err => {
err.name.should.equal('invalid_client');
});
});
it ('Client secret not required', async function () {
const request = createDefaultRequest();
const response = new Response({});
delete request.body.client_secret;
const token = await auth.token(request, response, {
requireClientAuthentication: {
password: false
}
});
token.accessToken.should.be.a('string');
});
it ('Client secret required', async function () {
const request = createDefaultRequest();
const response = new Response({});
delete request.body.client_secret;
await auth.token(request, response, {
requireClientAuthentication: {
password: false
}
})
.catch(err => {
err.name.should.equal('invalid_client');
});
});
});
});
|
import {createStore, applyMiddleware} from 'redux';
import thunk from 'redux-thunk';
import {persistStore, persistReducer, purgeStoredState} from 'redux-persist';
import AsyncStorage from '@react-native-community/async-storage';
import reducer from './Reducer';
import {addContact} from './Actions';
const persistConfig = {
key: 'root',
storage: AsyncStorage,
};
const persistedReducer = persistReducer(persistConfig, reducer);
/*
const thunk = store => next => action => {
if (typeof action === 'function') {
action(store.dispatch)
} else {
next(action)
}
}
*/
export const store = createStore(persistedReducer, applyMiddleware(thunk));
export const persistor = persistStore(store);
store.dispatch(addContact({name: 'a name', phone: '1234567890'}));
store.dispatch(addContact({name: 'b name', phone: '9876543210'}));
// persistor.purge();
// export default () => {
// let store = createStore(persistedReducer, applyMiddleware(thunk));
// let persistor = persistStore(store);
// return {store, persistor};
// };
/*
//Dispatch action -> reducer -> update -> new state
store.dispatch(updateUser({foo: 'foo'}));
store.dispatch(updateUser({bar: 'bar'}));
store.dispatch(updateUser({foo: 'baz'}));
console.log(store.getState());
export default store;
*/
|
import React, {
Component,
} from 'react';
import PropTypes from 'prop-types';
import {
Dimensions,
} from 'react-native';
import Navigator from 'native-navigation';
import LoremImage from '../components/LoremImage';
import Screen from '../components/Screen';
import Row from '../components/Row';
const propTypes = {};
const defaultProps = {};
const contextTypes = {
nativeNavigationInstanceId: PropTypes.string,
};
const { width } = Dimensions.get('window');
export default class NavigationExampleScreen extends Component {
render() {
return (
<Screen>
<LoremImage
width={width}
height={width / 1.6}
/>
<Row
title="Screen Id"
subtitle={this.context.nativeNavigationInstanceId}
/>
<Row
title="Present new modal"
onPress={() => Navigator.present('ScreenOne')}
/>
<Row
title="Push new screen"
onPress={() => Navigator.push('ScreenOne')}
/>
<Row
title="Pop"
onPress={() => Navigator.pop()}
/>
<Row
title="Dismiss"
onPress={() => Navigator.dismiss()}
/>
<Row
title="Shared elements"
onPress={() => Navigator.push('SharedElementFromScreen')}
/>
<Row
title="Navigation bar customisation"
onPress={() => Navigator.push('NavigationBar')}
/>
</Screen>
);
}
}
NavigationExampleScreen.defaultProps = defaultProps;
NavigationExampleScreen.propTypes = propTypes;
NavigationExampleScreen.contextTypes = contextTypes;
|
var breadcrumbs=[['-1',"",""],['2',"VitNX3 Documentation","topic_00000000000016E1.html"],['789',"VitNX3.Functions.Win32 Namespace","topic_00000000000000C6.html"],['790',"Constants Class","topic_00000000000001C1.html"],['1979',"ResultWin32 Class","topic_00000000000001F4.html"],['1982',"Fields","topic_00000000000001F4_vars--.html"],['2229',"ERROR_CLUSTER_NETWORK_EXISTS Field","topic_00000000000005A6.html"]];
|
import React from "react";
import ReactDOM from "react-dom";
import App from './components/App';
ReactDOM.render(<App/>, document.getElementById('app'));
|
const dotenv = require('dotenv');
dotenv.config();
const NatualLanguageUnderstandingV1 = require('ibm-watson/natural-language-understanding/v1');
const {IamAuthenticator} = require('ibm-watson/auth');
const axios = require('axios'); // used to get content from html
function getNLUInstance(){
let api_key = process.env.API_KEY;
let api_url = process.env.API_URL;
const naturalLanguageUnderstanding = new NatualLanguageUnderstandingV1({
version:'2020-08-01',
authenticator: new IamAuthenticator({
apikey: api_key,
}),
serviceUrl: api_url,
})
return naturalLanguageUnderstanding;
}
// ----------- original test solution --------------
// const input = {
// 'html':'I am happy! Why are you yelling at me!',
// 'features':{'emotion':{}}
// };
// nlu.analyze(input)
// .then( analysisResults => {
// console.log(analysisResults.result.emotion.document.emotion);
// })
// .catch(err => {
// console.log('error:', err);
// });
// ----------- v1 --------------
// async function analyzeText(text, feature) { // feature = 'emotion' or 'sentiment'
// const nlu = getNLUInstance();
// const input = {
// 'text':text,
// 'features':{ [feature]:{} } // use feature as key in JSON
// };
// try{
// const response = await nlu.analyze(input);
// return response.result.emotion.document.emotion;
// } catch(e){
// return null;
// }
// }
// async function analyzeURL(url, feature){
// try{
// const content = await axios.get(url);
// return await analyzeText(content.data, feature);
// } catch(e){
// return null;
// }
// }
async function emotionAnalyzer(target, type) { // type = 'text' or 'url'
const nlu = getNLUInstance();
const input = {
[type]:target, // use feature as key in JSON
'features':{'emotion':{} }
};
try{
const response = await nlu.analyze(input);
return response.result.emotion.document.emotion;
} catch(e){
return null;
}
}
async function sentimentAnalyzer(target, type) {
const nlu = getNLUInstance();
const input = {
[type]:target,
'features':{ ['sentiment']:{
}}
};
try{
const response = await nlu.analyze(input);
return response.result.sentiment.document; // returns format: { score: 0.972974, label: 'positive' }
} catch(e){
return null;
}
}
// const theText = "I am happy today";
// const theUrl = "http://joyfuldays.com/what-makes-people-happy-the-top-10-list/";
// usage
// ------------------ v1 ------------------
// analyzeText(theText,'emotion').then(data => console.log(data));
// analyzeURL(theUrl, 'emotion').then(data => console.log(data));
// analyzeText(theText,'sentiment').then(data => console.log(data)); // failed
// analyzeURLSentiment(theUrl).then(data => console.log(data)); // failed
// ------------------ v2 ------------------
// emotionAnalyzer(theText,'text').then(data => console.log(data)); // success
// emotionAnalyzer(theUrl,'url').then(data => console.log(data)); // success
// sentimentAnalyzer(theText,'text').then(data => console.log(data)); // success
// sentimentAnalyzer(theUrl,'url').then(data => console.log(data)); // success
module.exports = { emotionAnalyzer, sentimentAnalyzer};
|
function justLoaded() {
var appConfig = new cast.receiver.CastReceiverManager.Config();
appConfig.statusText = 'Bitcast';
appConfig.maxInactivity = 2600000; // 30 days
window.castReceiverManager = cast.receiver.CastReceiverManager.getInstance();
window.castReceiverManager.start(appConfig);
start();
}
function justUnloaded() {
}
var SUBTITLE = 'USD / BTC on Bitstamp';
function start() {
var price = document.getElementById('price');
var subtitle = document.getElementById('subtitle');
var realTime = document.getElementById('time1');
var lastTrade = document.getElementById('time2');
var lastPrice = localStorage['lp'];
var lastTradeValue = localStorage['lt'];
var value = $('#value');
var animating = false;
if (lastPrice) {
price.innerHTML = lastPrice;
subtitle.innerHTML = SUBTITLE;
if (!animating) {
animating = true;
value.css('color', 'white');
value.animate({ color: '#2a3236' }, 300, function() {
animating = false;
});
}
}
if (lastTradeValue) {
lastTrade.innerHTML = lastTradeValue;
}
var pusher = new Pusher('de504dc5763aeef9ff52');
var trades_channel = pusher.subscribe('live_trades');
var updateDate = function() {
realTime.innerHTML = new Date().toString("hh:mm:ss tt");
};
updateDate();
setInterval(updateDate, 300);
trades_channel.bind('trade', function(data) {
if (data && data['price']) {
var finalValue = (parseFloat(data['price'])).toFixed(2);
console.log('Price: ' + data['price'] + ' -> ' + finalValue);
price.innerHTML = finalValue;
var color;
var color2;
var newValue = parseFloat(finalValue);
var oldValue = parseFloat(localStorage['lp']);
if (newValue < oldValue) {
color = '#ff0000';
color2 = '#3a3236';
} else if (newValue > oldValue) {
color = '#00ff00';
color2 = '#2a3836';
} else {
color = 'white';
color2 = '#2a3236';
}
localStorage['lp'] = finalValue;
localStorage['lt'] = new Date().toString("hh:mm:ss tt");
subtitle.innerHTML = SUBTITLE;
lastTrade.innerHTML = localStorage['lt'];
if (!animating) {
animating = true;
value.css('color', color);
value.animate({ color: color2 }, 300, function() {
animating = false;
});
}
}
});
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.