1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index1"],{"0d31":function(t,e,n){t.exports=n.p+"static/img/erwei.3848c8d8.jpg"},"13d5":function(t,e,n){"use strict";var o=n("23e7"),r=n("d58f").left,i=n("a640"),a=n("ae40"),s=i("reduce"),c=a("reduce",{1:0});o({target:"Array",proto:!0,forced:!s||!c},{reduce:function(t){return r(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"56bb":function(t,e,n){t.exports=n.p+"static/img/btimg.7ff7f06b.png"},6506:function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,"body[data-v-72cf5525]{height:100% ;margin:0;padding:0}#size[data-v-72cf5525]{margin:30px;background-color:#00bfff}.border[data-v-72cf5525]{\n/* \twidth: 100%; */position:relative;\n\t/* height:100%; */padding:0 15px;padding-top:50px;padding-bottom:40px;\n/* \theight: 600px; */background:-webkit-linear-gradient(top,#1e37eb,#0fc6a1);background:linear-gradient(180deg,#1e37eb,#0fc6a1)}.content[data-v-72cf5525]{padding:45px 17px;background-color:#fff;border-radius:12px;margin-bottom:170px}.btimg[data-v-72cf5525]{position:absolute;left:0;bottom:0}.icon[data-v-72cf5525]{position:absolute;top:23px;right:15px;height:80px;width:80px}.title_1[data-v-72cf5525]{text-align:center;font-size:26px;font-weight:700;line-height:88px;color:#23459d;opacity:1}.title_2[data-v-72cf5525]{text-align:center;font-size:20px;font-weight:700;line-height:34px;color:#333;opacity:1;margin-top:10px;margin-bottom:20px}.text_1[data-v-72cf5525]{font-size:14px;font-weight:400;line-height:21px;color:#333;opacity:1}.tip_share[data-v-72cf5525]{display:-webkit-box;display:-webkit-flex;display:flex;margin-top:32px}.left_share[data-v-72cf5525]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.left_share uni-image[data-v-72cf5525]{height:60px;width:60px;margin-left:30px\n\t/* right: 17px; */}.right_share[data-v-72cf5525]{text-align:right;margin-top:8px;font-size:14px;font-weight:400;line-height:21px;color:#333;opacity:1}",""]),t.exports=e},"6d3f":function(t,e,n){"use strict";n.r(e);var o=n("b105"),r=n("f080");for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("bd86");var a,s=n("f0c5"),c=Object(s["a"])(r["default"],o["b"],o["c"],!1,null,"72cf5525",null,!1,o["a"],a);e["default"]=c.exports},"8fba":function(t,e,n){(function(e){var o;n("99af"),n("cb29"),n("4de4"),n("4160"),n("c975"),n("a15b"),n("baa5"),n("d81d"),n("13d5"),n("26e9"),n("fb6a"),n("45fc"),n("4e82"),n("a434"),n("a9e3"),n("d3b7"),n("acd8"),n("e25e"),n("ac1f"),n("25f0"),n("3ca3"),n("466d"),n("5319"),n("1276"),n("498a"),n("159b"),n("ddb0"),function(e){t.exports=e()}((function(){var t;return function t(e,n,r){function i(s,c){if(!n[s]){if(!e[s]){var h="function"==typeof o&&o;if(!c&&h)return o(s,!0);if(a)return a(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var l=n[s]={exports:{}};e[s][0].call(l.exports,(function(t){var n=e[s][1][t];return i(n||t)}),l,l.exports,t,e,n,r)}return n[s].exports}for(var a="function"==typeof o&&o,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(n,o,r){(function(e){(function(n){var i="object"==typeof r&&r,a="object"==typeof o&&o&&o.exports==i&&o,s="object"==typeof e&&e;s.global!==s&&s.window!==s||(n=s);var c,h,d=2147483647,l=36,u=1,p=26,f=38,g=700,m=72,y=128,v="-",w=/^xn--/,b=/[^ -~]/,x=/\x2E|\u3002|\uFF0E|\uFF61/g,E={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=l-u,T=Math.floor,C=String.fromCharCode;function I(t){throw RangeError(E[t])}function S(t,e){var n=t.length;while(n--)t[n]=e(t[n]);return t}function O(t,e){return S(t.split(x),e).join(".")}function R(t){var e,n,o=[],r=0,i=t.length;while(r<i)e=t.charCodeAt(r++),e>=55296&&e<=56319&&r<i?(n=t.charCodeAt(r++),56320==(64512&n)?o.push(((1023&e)<<10)+(1023&n)+65536):(o.push(e),r--)):o.push(e);return o}function A(t){return S(t,(function(t){var e="";return t>65535&&(t-=65536,e+=C(t>>>10&1023|55296),t=56320|1023&t),e+=C(t),e})).join("")}function P(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:l}function M(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function L(t,e,n){var o=0;for(t=n?T(t/g):t>>1,t+=T(t/e);t>k*p>>1;o+=l)t=T(t/k);return T(o+(k+1)*t/(t+f))}function _(t){var e,n,o,r,i,a,s,c,h,f,g=[],w=t.length,b=0,x=y,E=m;for(n=t.lastIndexOf(v),n<0&&(n=0),o=0;o<n;++o)t.charCodeAt(o)>=128&&I("not-basic"),g.push(t.charCodeAt(o));for(r=n>0?n+1:0;r<w;){for(i=b,a=1,s=l;;s+=l){if(r>=w&&I("invalid-input"),c=P(t.charCodeAt(r++)),(c>=l||c>T((d-b)/a))&&I("overflow"),b+=c*a,h=s<=E?u:s>=E+p?p:s-E,c<h)break;f=l-h,a>T(d/f)&&I("overflow"),a*=f}e=g.length+1,E=L(b-i,e,0==i),T(b/e)>d-x&&I("overflow"),x+=T(b/e),b%=e,g.splice(b++,0,x)}return A(g)}function N(t){var e,n,o,r,i,a,s,c,h,f,g,w,b,x,E,k=[];for(t=R(t),w=t.length,e=y,n=0,i=m,a=0;a<w;++a)g=t[a],g<128&&k.push(C(g));o=r=k.length,r&&k.push(v);while(o<w){for(s=d,a=0;a<w;++a)g=t[a],g>=e&&g<s&&(s=g);for(b=o+1,s-e>T((d-n)/b)&&I("overflow"),n+=(s-e)*b,e=s,a=0;a<w;++a)if(g=t[a],g<e&&++n>d&&I("overflow"),g==e){for(c=n,h=l;;h+=l){if(f=h<=i?u:h>=i+p?p:h-i,c<f)break;E=c-f,x=l-f,k.push(C(M(f+E%x,0))),c=T(E/x)}k.push(C(M(c,0))),i=L(n,b,o==r),n=0,++o}++n,++e}return k.join("")}function B(t){return O(t,(function(t){return w.test(t)?_(t.slice(4).toLowerCase()):t}))}function D(t){return O(t,(function(t){return b.test(t)?"xn--"+N(t):t}))}if(c={version:"1.2.4",ucs2:{decode:R,encode:A},decode:_,encode:N,toASCII:D,toUnicode:B},"function"==typeof t&&"object"==typeof t.amd&&t.amd)t("punycode",(function(){return c}));else if(i&&!i.nodeType)if(a)a.exports=c;else for(h in c)c.hasOwnProperty(h)&&(i[h]=c[h]);else n.punycode=c})(this)}).call(this,"undefined"!==typeof e?e:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],2:[function(t,e,n){var o=t("./log");function r(t,e,n){!t.defaultView||e===t.defaultView.pageXOffset&&n===t.defaultView.pageYOffset||t.defaultView.scrollTo(e,n)}function i(t,e){try{e&&(e.width=t.width,e.height=t.height,e.getContext("2d").putImageData(t.getContext("2d").getImageData(0,0,t.width,t.height),0,0))}catch(n){o("Unable to copy canvas content from",t,n)}}function a(t,e){var n=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),o=t.firstChild;while(o)!0!==e&&1===o.nodeType&&"SCRIPT"===o.nodeName||n.appendChild(a(o,e)),o=o.nextSibling;return 1===t.nodeType&&(n._scrollTop=t.scrollTop,n._scrollLeft=t.scrollLeft,"CANVAS"===t.nodeName?i(t,n):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(n.value=t.value)),n}function s(t){if(1===t.nodeType){t.scrollTop=t._scrollTop,t.scrollLeft=t._scrollLeft;var e=t.firstChild;while(e)s(e),e=e.nextSibling}}e.exports=function(t,e,n,o,i,c,h){var d=a(t.documentElement,i.javascriptEnabled),l=e.createElement("iframe");return l.className="html2canvas-container",l.style.visibility="hidden",l.style.position="fixed",l.style.left="-10000px",l.style.top="0px",l.style.border="0",l.width=n,l.height=o,l.scrolling="no",e.body.appendChild(l),new Promise((function(e){var n=l.contentWindow.document;l.contentWindow.onload=l.onload=function(){var t=setInterval((function(){n.body.childNodes.length>0&&(s(n.documentElement),clearInterval(t),"view"===i.type&&(l.contentWindow.scrollTo(c,h),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||l.contentWindow.scrollY===h&&l.contentWindow.scrollX===c||(n.documentElement.style.top=-h+"px",n.documentElement.style.left=-c+"px",n.documentElement.style.position="absolute")),e(l))}),50)},n.open(),n.write("<!DOCTYPE html><html></html>"),r(t,c,h),n.replaceChild(n.adoptNode(d),n.documentElement),n.close()}))}},{"./log":13}],3:[function(t,e,n){function o(t){this.r=0,this.g=0,this.b=0,this.a=null;this.fromArray(t)||this.namedColor(t)||this.rgb(t)||this.rgba(t)||this.hex6(t)||this.hex3(t)}o.prototype.darken=function(t){var e=1-t;return new o([Math.round(this.r*e),Math.round(this.g*e),Math.round(this.b*e),this.a])},o.prototype.isTransparent=function(){return 0===this.a},o.prototype.isBlack=function(){return 0===this.r&&0===this.g&&0===this.b},o.prototype.fromArray=function(t){return Array.isArray(t)&&(this.r=Math.min(t[0],255),this.g=Math.min(t[1],255),this.b=Math.min(t[2],255),t.length>3&&(this.a=t[3])),Array.isArray(t)};var r=/^#([a-f0-9]{3})$/i;o.prototype.hex3=function(t){var e=null;return null!==(e=t.match(r))&&(this.r=parseInt(e[1][0]+e[1][0],16),this.g=parseInt(e[1][1]+e[1][1],16),this.b=parseInt(e[1][2]+e[1][2],16)),null!==e};var i=/^#([a-f0-9]{6})$/i;o.prototype.hex6=function(t){var e=null;return null!==(e=t.match(i))&&(this.r=parseInt(e[1].substring(0,2),16),this.g=parseInt(e[1].substring(2,4),16),this.b=parseInt(e[1].substring(4,6),16)),null!==e};var a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/;o.prototype.rgb=function(t){var e=null;return null!==(e=t.match(a))&&(this.r=Number(e[1]),this.g=Number(e[2]),this.b=Number(e[3])),null!==e};var s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?\.?\d+)\s*\)$/;o.prototype.rgba=function(t){var e=null;return null!==(e=t.match(s))&&(this.r=Number(e[1]),this.g=Number(e[2]),this.b=Number(e[3]),this.a=Number(e[4])),null!==e},o.prototype.toString=function(){return null!==this.a&&1!==this.a?"rgba("+[this.r,this.g,this.b,this.a].join(",")+")":"rgb("+[this.r,this.g,this.b].join(",")+")"},o.prototype.namedColor=function(t){t=t.toLowerCase();var e=c[t];if(e)this.r=e[0],this.g=e[1],this.b=e[2];else if("transparent"===t)return this.r=this.g=this.b=this.a=0,!0;return!!e},o.prototype.isColor=!0;var c={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};e.exports=o},{}],4:[function(e,n,o){var r=e("./support"),i=e("./renderers/canvas"),a=e("./imageloader"),s=e("./nodeparser"),c=e("./nodecontainer"),h=e("./log"),d=e("./utils"),l=e("./clone"),u=e("./proxy").loadUrlDocument,p=d.getBounds,f="data-html2canvas-node",g=0;function m(t,e){var n=g++;if(e=e||{},e.logging&&(h.options.logging=!0,h.options.start=Date.now()),e.async="undefined"===typeof e.async||e.async,e.allowTaint="undefined"!==typeof e.allowTaint&&e.allowTaint,e.removeContainer="undefined"===typeof e.removeContainer||e.removeContainer,e.javascriptEnabled="undefined"!==typeof e.javascriptEnabled&&e.javascriptEnabled,e.imageTimeout="undefined"===typeof e.imageTimeout?1e4:e.imageTimeout,e.renderer="function"===typeof e.renderer?e.renderer:i,e.strict=!!e.strict,"string"===typeof t){if("string"!==typeof e.proxy)return Promise.reject("Proxy must be used when rendering url");var o=null!=e.width?e.width:window.innerWidth,r=null!=e.height?e.height:window.innerHeight;return u(T(t),e.proxy,document,o,r,e).then((function(t){return w(t.contentWindow.document.documentElement,t,e,o,r)}))}var a=(void 0===t?[document.documentElement]:t.length?t:[t])[0];return a.setAttribute(f+n,n),v(a.ownerDocument,e,a.ownerDocument.defaultView.innerWidth,a.ownerDocument.defaultView.innerHeight,n).then((function(t){return"function"===typeof e.onrendered&&(h("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas"),e.onrendered(t)),t}))}m.CanvasRenderer=i,m.NodeContainer=c,m.log=h,m.utils=d;var y="undefined"===typeof document||"function"!==typeof Object.create||"function"!==typeof document.createElement("canvas").getContext?function(){return Promise.reject("No canvas support")}:m;function v(t,e,n,o,r){return l(t,t,n,o,e,t.defaultView.pageXOffset,t.defaultView.pageYOffset).then((function(i){h("Document cloned");var a=f+r,s="["+a+"='"+r+"']";t.querySelector(s).removeAttribute(a);var c=i.contentWindow,d=c.document.querySelector(s),l="function"===typeof e.onclone?Promise.resolve(e.onclone(c.document)):Promise.resolve(!0);return l.then((function(){return w(d,i,e,n,o)}))}))}function w(t,e,n,o,i){var c=e.contentWindow,d=new r(c.document),l=new a(n,d),u=p(t),f="view"===n.type?o:E(c.document),g="view"===n.type?i:k(c.document),m=new n.renderer(f,g,l,n,document),y=new s(t,m,d,l,n);return y.ready.then((function(){var o;return h("Finished rendering"),o="view"===n.type?x(m.canvas,{width:m.canvas.width,height:m.canvas.height,top:0,left:0,x:0,y:0}):t===c.document.body||t===c.document.documentElement||null!=n.canvas?m.canvas:x(m.canvas,{width:null!=n.width?n.width:u.width,height:null!=n.height?n.height:u.height,top:u.top,left:u.left,x:0,y:0}),b(e,n),o}))}function b(t,e){e.removeContainer&&(t.parentNode.removeChild(t),h("Cleaned up container"))}function x(t,e){var n=document.createElement("canvas"),o=Math.min(t.width-1,Math.max(0,e.left)),r=Math.min(t.width,Math.max(1,e.left+e.width)),i=Math.min(t.height-1,Math.max(0,e.top)),a=Math.min(t.height,Math.max(1,e.top+e.height));n.width=e.width,n.height=e.height;var s=r-o,c=a-i;return h("Cropping canvas at:","left:",e.left,"top:",e.top,"width:",s,"height:",c),h("Resulting crop with width",e.width,"and height",e.height,"with x",o,"and y",i),n.getContext("2d").drawImage(t,o,i,s,c,e.x,e.y,s,c),n}function E(t){return Math.max(Math.max(t.body.scrollWidth,t.documentElement.scrollWidth),Math.max(t.body.offsetWidth,t.documentElement.offsetWidth),Math.max(t.body.clientWidth,t.documentElement.clientWidth))}function k(t){return Math.max(Math.max(t.body.scrollHeight,t.documentElement.scrollHeight),Math.max(t.body.offsetHeight,t.documentElement.offsetHeight),Math.max(t.body.clientHeight,t.documentElement.clientHeight))}function T(t){var e=document.createElement("a");return e.href=t,e.href=e.href,e}n.exports=y,"function"===typeof t&&t.amd&&t("html2canvas",[],(function(){return y}))},{"./clone":2,"./imageloader":11,"./log":13,"./nodecontainer":14,"./nodeparser":15,"./proxy":16,"./renderers/canvas":20,"./support":22,"./utils":26}],5:[function(t,e,n){var o=t("./log"),r=t("./utils").smallImage;function i(t){if(this.src=t,o("DummyImageContainer for",t),!this.promise||!this.image){o("Initiating DummyImageContainer"),i.prototype.image=new Image;var e=this.image;i.prototype.promise=new Promise((function(t,n){e.onload=t,e.onerror=n,e.src=r(),!0===e.complete&&t(e)}))}}e.exports=i},{"./log":13,"./utils":26}],6:[function(t,e,n){var o=t("./utils").smallImage;function r(t,e){var n,r,i=document.createElement("div"),a=document.createElement("img"),s=document.createElement("span"),c="Hidden Text";i.style.visibility="hidden",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin=0,i.style.padding=0,document.body.appendChild(i),a.src=o(),a.width=1,a.height=1,a.style.margin=0,a.style.padding=0,a.style.verticalAlign="baseline",s.style.fontFamily=t,s.style.fontSize=e,s.style.margin=0,s.style.padding=0,s.appendChild(document.createTextNode(c)),i.appendChild(s),i.appendChild(a),n=a.offsetTop-s.offsetTop+1,i.removeChild(s),i.appendChild(document.createTextNode(c)),i.style.lineHeight="normal",a.style.verticalAlign="super",r=a.offsetTop-i.offsetTop+1,document.body.removeChild(i),this.baseline=n,this.lineWidth=1,this.middle=r}e.exports=r},{"./utils":26}],7:[function(t,e,n){var o=t("./font");function r(){this.data={}}r.prototype.getMetrics=function(t,e){return void 0===this.data[t+"-"+e]&&(this.data[t+"-"+e]=new o(t,e)),this.data[t+"-"+e]},e.exports=r},{"./font":6}],8:[function(t,e,n){var o=t("./utils"),r=o.getBounds,i=t("./proxy").loadUrlDocument;function a(e,n,o){this.image=null,this.src=e;var i=this,a=r(e);this.promise=(n?new Promise((function(t){"about:blank"===e.contentWindow.document.URL||null==e.contentWindow.document.documentElement?e.contentWindow.onload=e.onload=function(){t(e)}:t(e)})):this.proxyLoad(o.proxy,a,o)).then((function(e){var n=t("./core");return n(e.contentWindow.document.documentElement,{type:"view",width:e.width,height:e.height,proxy:o.proxy,javascriptEnabled:o.javascriptEnabled,removeContainer:o.removeContainer,allowTaint:o.allowTaint,imageTimeout:o.imageTimeout/2})})).then((function(t){return i.image=t}))}a.prototype.proxyLoad=function(t,e,n){var o=this.src;return i(o.src,t,o.ownerDocument,e.width,e.height,n)},e.exports=a},{"./core":4,"./proxy":16,"./utils":26}],9:[function(t,e,n){function o(t){this.src=t.value,this.colorStops=[],this.type=null,this.x0=.5,this.y0=.5,this.x1=.5,this.y1=.5,this.promise=Promise.resolve(!0)}o.TYPES={LINEAR:1,RADIAL:2},o.REGEXP_COLORSTOP=/^\s*(rgba?\(\s*\d{1,3},\s*\d{1,3},\s*\d{1,3}(?:,\s*[0-9\.]+)?\s*\)|[a-z]{3,20}|#[a-f0-9]{3,6})(?:\s+(\d{1,3}(?:\.\d+)?)(%|px)?)?(?:\s|$)/i,e.exports=o},{}],10:[function(t,e,n){function o(t,e){this.src=t,this.image=new Image;var n=this;this.tainted=null,this.promise=new Promise((function(o,r){n.image.onload=o,n.image.onerror=r,e&&(n.image.crossOrigin="anonymous"),n.image.src=t,!0===n.image.complete&&o(n.image)}))}e.exports=o},{}],11:[function(t,e,n){var o=t("./log"),r=t("./imagecontainer"),i=t("./dummyimagecontainer"),a=t("./proxyimagecontainer"),s=t("./framecontainer"),c=t("./svgcontainer"),h=t("./svgnodecontainer"),d=t("./lineargradientcontainer"),l=t("./webkitgradientcontainer"),u=t("./utils").bind;function p(t,e){this.link=null,this.options=t,this.support=e,this.origin=this.getOrigin(window.location.href)}p.prototype.findImages=function(t){var e=[];return t.reduce((function(t,e){switch(e.node.nodeName){case"IMG":return t.concat([{args:[e.node.src],method:"url"}]);case"svg":case"IFRAME":return t.concat([{args:[e.node],method:e.node.nodeName}])}return t}),[]).forEach(this.addImage(e,this.loadImage),this),e},p.prototype.findBackgroundImage=function(t,e){return e.parseBackgroundImages().filter(this.hasImageBackground).forEach(this.addImage(t,this.loadImage),this),t},p.prototype.addImage=function(t,e){return function(n){n.args.forEach((function(r){this.imageExists(t,r)||(t.splice(0,0,e.call(this,n)),o("Added image #"+t.length,"string"===typeof r?r.substring(0,100):r))}),this)}},p.prototype.hasImageBackground=function(t){return"none"!==t.method},p.prototype.loadImage=function(t){if("url"===t.method){var e=t.args[0];return!this.isSVG(e)||this.support.svg||this.options.allowTaint?e.match(/data:image\/.*;base64,/i)?new r(e.replace(/url\(['"]{0,}|['"]{0,}\)$/gi,""),!1):this.isSameOrigin(e)||!0===this.options.allowTaint||this.isSVG(e)?new r(e,!1):this.support.cors&&!this.options.allowTaint&&this.options.useCORS?new r(e,!0):this.options.proxy?new a(e,this.options.proxy):new i(e):new c(e)}return"linear-gradient"===t.method?new d(t):"gradient"===t.method?new l(t):"svg"===t.method?new h(t.args[0],this.support.svg):"IFRAME"===t.method?new s(t.args[0],this.isSameOrigin(t.args[0].src),this.options):new i(t)},p.prototype.isSVG=function(t){return"svg"===t.substring(t.length-3).toLowerCase()||c.prototype.isInline(t)},p.prototype.imageExists=function(t,e){return t.some((function(t){return t.src===e}))},p.prototype.isSameOrigin=function(t){return this.getOrigin(t)===this.origin},p.prototype.getOrigin=function(t){var e=this.link||(this.link=document.createElement("a"));return e.href=t,e.href=e.href,e.protocol+e.hostname+e.port},p.prototype.getPromise=function(t){return this.timeout(t,this.options.imageTimeout)["catch"]((function(){var e=new i(t.src);return e.promise.then((function(e){t.image=e}))}))},p.prototype.get=function(t){var e=null;return this.images.some((function(n){return(e=n).src===t}))?e:null},p.prototype.fetch=function(t){return this.images=t.reduce(u(this.findBackgroundImage,this),this.findImages(t)),this.images.forEach((function(t,e){t.promise.then((function(){o("Succesfully loaded image #"+(e+1),t)}),(function(n){o("Failed loading image #"+(e+1),t,n)}))})),this.ready=Promise.all(this.images.map(this.getPromise,this)),o("Finished searching images"),this},p.prototype.timeout=function(t,e){var n,r=Promise.race([t.promise,new Promise((function(r,i){n=setTimeout((function(){o("Timed out loading image",t),i(t)}),e)}))]).then((function(t){return clearTimeout(n),t}));return r["catch"]((function(){clearTimeout(n)})),r},e.exports=p},{"./dummyimagecontainer":5,"./framecontainer":8,"./imagecontainer":10,"./lineargradientcontainer":12,"./log":13,"./proxyimagecontainer":17,"./svgcontainer":23,"./svgnodecontainer":24,"./utils":26,"./webkitgradientcontainer":27}],12:[function(t,e,n){var o=t("./gradientcontainer"),r=t("./color");function i(t){o.apply(this,arguments),this.type=o.TYPES.LINEAR;var e=i.REGEXP_DIRECTION.test(t.args[0])||!o.REGEXP_COLORSTOP.test(t.args[0]);e?t.args[0].split(/\s+/).reverse().forEach((function(t,e){switch(t){case"left":this.x0=0,this.x1=1;break;case"top":this.y0=0,this.y1=1;break;case"right":this.x0=1,this.x1=0;break;case"bottom":this.y0=1,this.y1=0;break;case"to":var n=this.y0,o=this.x0;this.y0=this.y1,this.x0=this.x1,this.x1=o,this.y1=n;break;case"center":break;default:var r=.01*parseFloat(t,10);if(isNaN(r))break;0===e?(this.y0=r,this.y1=1-this.y0):(this.x0=r,this.x1=1-this.x0);break}}),this):(this.y0=0,this.y1=1),this.colorStops=t.args.slice(e?1:0).map((function(t){var e=t.match(o.REGEXP_COLORSTOP),n=+e[2],i=0===n?"%":e[3];return{color:new r(e[1]),stop:"%"===i?n/100:null}})),null===this.colorStops[0].stop&&(this.colorStops[0].stop=0),null===this.colorStops[this.colorStops.length-1].stop&&(this.colorStops[this.colorStops.length-1].stop=1),this.colorStops.forEach((function(t,e){null===t.stop&&this.colorStops.slice(e).some((function(n,o){return null!==n.stop&&(t.stop=(n.stop-this.colorStops[e-1].stop)/(o+1)+this.colorStops[e-1].stop,!0)}),this)}),this)}i.prototype=Object.create(o.prototype),i.REGEXP_DIRECTION=/^\s*(?:to|left|right|top|bottom|center|\d{1,3}(?:\.\d+)?%?)(?:\s|$)/i,e.exports=i},{"./color":3,"./gradientcontainer":9}],13:[function(t,e,n){var o=function t(){t.options.logging&&window.console&&window.console.log&&Function.prototype.bind.call(window.console.log,window.console).apply(window.console,[Date.now()-t.options.start+"ms","html2canvas:"].concat([].slice.call(arguments,0)))};o.options={logging:!1},e.exports=o},{}],14:[function(t,e,n){var o=t("./color"),r=t("./utils"),i=r.getBounds,a=r.parseBackgrounds,s=r.offsetBounds;function c(t,e){this.node=t,this.parent=e,this.stack=null,this.bounds=null,this.borders=null,this.clip=[],this.backgroundClip=[],this.offsetBounds=null,this.visible=null,this.computedStyles=null,this.colors={},this.styles={},this.backgroundImages=null,this.transformData=null,this.transformMatrix=null,this.isPseudoElement=!1,this.opacity=null}function h(t){var e=t.options[t.selectedIndex||0];return e&&e.text||""}function d(t){if(t&&"matrix"===t[1])return t[2].split(",").map((function(t){return parseFloat(t.trim())}));if(t&&"matrix3d"===t[1]){var e=t[2].split(",").map((function(t){return parseFloat(t.trim())}));return[e[0],e[1],e[4],e[5],e[12],e[13]]}}function l(t){return-1!==t.toString().indexOf("%")}function u(t){return t.replace("px","")}function p(t){return parseFloat(t)}c.prototype.cloneTo=function(t){t.visible=this.visible,t.borders=this.borders,t.bounds=this.bounds,t.clip=this.clip,t.backgroundClip=this.backgroundClip,t.computedStyles=this.computedStyles,t.styles=this.styles,t.backgroundImages=this.backgroundImages,t.opacity=this.opacity},c.prototype.getOpacity=function(){return null===this.opacity?this.opacity=this.cssFloat("opacity"):this.opacity},c.prototype.assignStack=function(t){this.stack=t,t.children.push(this)},c.prototype.isElementVisible=function(){return this.node.nodeType===Node.TEXT_NODE?this.parent.visible:"none"!==this.css("display")&&"hidden"!==this.css("visibility")&&!this.node.hasAttribute("data-html2canvas-ignore")&&("INPUT"!==this.node.nodeName||"hidden"!==this.node.getAttribute("type"))},c.prototype.css=function(t){return this.computedStyles||(this.computedStyles=this.isPseudoElement?this.parent.computedStyle(this.before?":before":":after"):this.computedStyle(null)),this.styles[t]||(this.styles[t]=this.computedStyles[t])},c.prototype.prefixedCss=function(t){var e=["webkit","moz","ms","o"],n=this.css(t);return void 0===n&&e.some((function(e){return n=this.css(e+t.substr(0,1).toUpperCase()+t.substr(1)),void 0!==n}),this),void 0===n?null:n},c.prototype.computedStyle=function(t){return this.node.ownerDocument.defaultView.getComputedStyle(this.node,t)},c.prototype.cssInt=function(t){var e=parseInt(this.css(t),10);return isNaN(e)?0:e},c.prototype.color=function(t){return this.colors[t]||(this.colors[t]=new o(this.css(t)))},c.prototype.cssFloat=function(t){var e=parseFloat(this.css(t));return isNaN(e)?0:e},c.prototype.fontWeight=function(){var t=this.css("fontWeight");switch(parseInt(t,10)){case 401:t="bold";break;case 400:t="normal";break}return t},c.prototype.parseClip=function(){var t=this.css("clip").match(this.CLIP);return t?{top:parseInt(t[1],10),right:parseInt(t[2],10),bottom:parseInt(t[3],10),left:parseInt(t[4],10)}:null},c.prototype.parseBackgroundImages=function(){return this.backgroundImages||(this.backgroundImages=a(this.css("backgroundImage")))},c.prototype.cssList=function(t,e){var n=(this.css(t)||"").split(",");return n=n[e||0]||n[0]||"auto",n=n.trim().split(" "),1===n.length&&(n=[n[0],l(n[0])?"auto":n[0]]),n},c.prototype.parseBackgroundSize=function(t,e,n){var o,r,i=this.cssList("backgroundSize",n);if(l(i[0]))o=t.width*parseFloat(i[0])/100;else{if(/contain|cover/.test(i[0])){var a=t.width/t.height,s=e.width/e.height;return a<s^"contain"===i[0]?{width:t.height*s,height:t.height}:{width:t.width,height:t.width/s}}o=parseInt(i[0],10)}return r="auto"===i[0]&&"auto"===i[1]?e.height:"auto"===i[1]?o/e.width*e.height:l(i[1])?t.height*parseFloat(i[1])/100:parseInt(i[1],10),"auto"===i[0]&&(o=r/e.height*e.width),{width:o,height:r}},c.prototype.parseBackgroundPosition=function(t,e,n,o){var r,i,a=this.cssList("backgroundPosition",n);return r=l(a[0])?(t.width-(o||e).width)*(parseFloat(a[0])/100):parseInt(a[0],10),i="auto"===a[1]?r/e.width*e.height:l(a[1])?(t.height-(o||e).height)*parseFloat(a[1])/100:parseInt(a[1],10),"auto"===a[0]&&(r=i/e.height*e.width),{left:r,top:i}},c.prototype.parseBackgroundRepeat=function(t){return this.cssList("backgroundRepeat",t)[0]},c.prototype.parseTextShadows=function(){var t=this.css("textShadow"),e=[];if(t&&"none"!==t)for(var n=t.match(this.TEXT_SHADOW_PROPERTY),r=0;n&&r<n.length;r++){var i=n[r].match(this.TEXT_SHADOW_VALUES);e.push({color:new o(i[0]),offsetX:i[1]?parseFloat(i[1].replace("px","")):0,offsetY:i[2]?parseFloat(i[2].replace("px","")):0,blur:i[3]?i[3].replace("px",""):0})}return e},c.prototype.parseTransform=function(){if(!this.transformData)if(this.hasTransform()){var t=this.parseBounds(),e=this.prefixedCss("transformOrigin").split(" ").map(u).map(p);e[0]+=t.left,e[1]+=t.top,this.transformData={origin:e,matrix:this.parseTransformMatrix()}}else this.transformData={origin:[0,0],matrix:[1,0,0,1,0,0]};return this.transformData},c.prototype.parseTransformMatrix=function(){if(!this.transformMatrix){var t=this.prefixedCss("transform"),e=t?d(t.match(this.MATRIX_PROPERTY)):null;this.transformMatrix=e||[1,0,0,1,0,0]}return this.transformMatrix},c.prototype.parseBounds=function(){return this.bounds||(this.bounds=this.hasTransform()?s(this.node):i(this.node))},c.prototype.hasTransform=function(){return"1,0,0,1,0,0"!==this.parseTransformMatrix().join(",")||this.parent&&this.parent.hasTransform()},c.prototype.getValue=function(){var t=this.node.value||"";return"SELECT"===this.node.tagName?t=h(this.node):"password"===this.node.type&&(t=Array(t.length+1).join("•")),0===t.length?this.node.placeholder||"":t},c.prototype.MATRIX_PROPERTY=/(matrix|matrix3d)\((.+)\)/,c.prototype.TEXT_SHADOW_PROPERTY=/((rgba|rgb)\([^\)]+\)(\s-?\d+px){0,})/g,c.prototype.TEXT_SHADOW_VALUES=/(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g,c.prototype.CLIP=/^rect\((\d+)px,? (\d+)px,? (\d+)px,? (\d+)px\)$/,e.exports=c},{"./color":3,"./utils":26}],15:[function(t,e,n){var o=t("./log"),r=t("punycode"),i=t("./nodecontainer"),a=t("./textcontainer"),s=t("./pseudoelementcontainer"),c=t("./fontmetrics"),h=t("./color"),d=t("./stackingcontext"),l=t("./utils"),u=l.bind,p=l.getBounds,f=l.parseBackgrounds,g=l.offsetBounds;function m(t,e,n,r,a){o("Starting NodeParser"),this.renderer=e,this.options=a,this.range=null,this.support=n,this.renderQueue=[],this.stack=new d(!0,1,t.ownerDocument,null);var s=new i(t,null);if(a.background&&e.rectangle(0,0,e.width,e.height,new h(a.background)),t===t.ownerDocument.documentElement){var l=new i(s.color("backgroundColor").isTransparent()?t.ownerDocument.body:t.ownerDocument.documentElement,null);e.rectangle(0,0,e.width,e.height,l.color("backgroundColor"))}s.visibile=s.isElementVisible(),this.createPseudoHideStyles(t.ownerDocument),this.disableAnimations(t.ownerDocument),this.nodes=$([s].concat(this.getChildren(s)).filter((function(t){return t.visible=t.isElementVisible()})).map(this.getPseudoElements,this)),this.fontMetrics=new c,o("Fetched nodes, total:",this.nodes.length),o("Calculate overflow clips"),this.calculateOverflowClips(),o("Start fetching images"),this.images=r.fetch(this.nodes.filter(V)),this.ready=this.images.ready.then(u((function(){return o("Images loaded, starting parsing"),o("Creating stacking contexts"),this.createStackingContexts(),o("Sorting stacking contexts"),this.sortStackingContexts(this.stack),this.parse(this.stack),o("Render queue created with "+this.renderQueue.length+" items"),new Promise(u((function(t){a.async?"function"===typeof a.async?a.async.call(this,this.renderQueue,t):this.renderQueue.length>0?(this.renderIndex=0,this.asyncRenderer(this.renderQueue,t)):t():(this.renderQueue.forEach(this.paint,this),t())}),this))}),this))}function y(t){return t.parent&&t.parent.clip.length}function v(t){return t.replace(/(\-[a-z])/g,(function(t){return t.toUpperCase().replace("-","")}))}function w(){}m.prototype.calculateOverflowClips=function(){this.nodes.forEach((function(t){if(V(t)){j(t)&&t.appendToDOM(),t.borders=this.parseBorders(t);var e="hidden"===t.css("overflow")?[t.borders.clip]:[],n=t.parseClip();n&&-1!==["absolute","fixed"].indexOf(t.css("position"))&&e.push([["rect",t.bounds.left+n.left,t.bounds.top+n.top,n.right-n.left,n.bottom-n.top]]),t.clip=y(t)?t.parent.clip.concat(e):e,t.backgroundClip="hidden"!==t.css("overflow")?t.clip.concat([t.borders.clip]):t.clip,j(t)&&t.cleanDOM()}else z(t)&&(t.clip=y(t)?t.parent.clip:[]);j(t)||(t.bounds=null)}),this)},m.prototype.asyncRenderer=function(t,e,n){n=n||Date.now(),this.paint(t[this.renderIndex++]),t.length===this.renderIndex?e():n+20>Date.now()?this.asyncRenderer(t,e,n):setTimeout(u((function(){this.asyncRenderer(t,e)}),this),0)},m.prototype.createPseudoHideStyles=function(t){this.createStyles(t,"."+s.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }.'+s.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')},m.prototype.disableAnimations=function(t){this.createStyles(t,"* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; -webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important;}")},m.prototype.createStyles=function(t,e){var n=t.createElement("style");n.innerHTML=e,t.body.appendChild(n)},m.prototype.getPseudoElements=function(t){var e=[[t]];if(t.node.nodeType===Node.ELEMENT_NODE){var n=this.getPseudoElement(t,":before"),o=this.getPseudoElement(t,":after");n&&e.push(n),o&&e.push(o)}return $(e)},m.prototype.getPseudoElement=function(t,e){var n=t.computedStyle(e);if(!n||!n.content||"none"===n.content||"-moz-alt-content"===n.content||"none"===n.display)return null;for(var o=Q(n.content),r="url"===o.substr(0,3),i=document.createElement(r?"img":"html2canvaspseudoelement"),c=new s(i,t,e),h=n.length-1;h>=0;h--){var d=v(n.item(h));i.style[d]=n[d]}if(i.className=s.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+s.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER,r)return i.src=f(o)[0].args[0],[c];var l=document.createTextNode(o);return i.appendChild(l),[c,new a(l,c)]},m.prototype.getChildren=function(t){return $([].filter.call(t.node.childNodes,N).map((function(e){var n=[e.nodeType===Node.TEXT_NODE?new a(e,t):new i(e,t)].filter(Y);return e.nodeType===Node.ELEMENT_NODE&&n.length&&"TEXTAREA"!==e.tagName?n[0].isElementVisible()?n.concat(this.getChildren(n[0])):[]:n}),this))},m.prototype.newStackingContext=function(t,e){var n=new d(e,t.getOpacity(),t.node,t.parent);t.cloneTo(n);var o=e?n.getParentStack(this):n.parent.stack;o.contexts.push(n),t.stack=n},m.prototype.createStackingContexts=function(){this.nodes.forEach((function(t){V(t)&&(this.isRootElement(t)||X(t)||B(t)||this.isBodyWithTransparentRoot(t)||t.hasTransform())?this.newStackingContext(t,!0):V(t)&&(D(t)&&R(t)||W(t)||F(t))?this.newStackingContext(t,!1):t.assignStack(t.parent.stack)}),this)},m.prototype.isBodyWithTransparentRoot=function(t){return"BODY"===t.node.nodeName&&t.parent.color("backgroundColor").isTransparent()},m.prototype.isRootElement=function(t){return null===t.parent},m.prototype.sortStackingContexts=function(t){t.contexts.sort(U(t.contexts.slice(0))),t.contexts.forEach(this.sortStackingContexts,this)},m.prototype.parseTextBounds=function(t){return function(e,n,o){if("none"!==t.parent.css("textDecoration").substr(0,4)||0!==e.trim().length){if(this.support.rangeBounds&&!t.parent.hasTransform()){var r=o.slice(0,n).join("").length;return this.getRangeBounds(t.node,r,e.length)}if(t.node&&"string"===typeof t.node.data){var i=t.node.splitText(e.length),a=this.getWrapperBounds(t.node,t.parent.hasTransform());return t.node=i,a}}else this.support.rangeBounds&&!t.parent.hasTransform()||(t.node=t.node.splitText(e.length));return{}}},m.prototype.getWrapperBounds=function(t,e){var n=t.ownerDocument.createElement("html2canvaswrapper"),o=t.parentNode,r=t.cloneNode(!0);n.appendChild(t.cloneNode(!0)),o.replaceChild(n,t);var i=e?g(n):p(n);return o.replaceChild(r,n),i},m.prototype.getRangeBounds=function(t,e,n){var o=this.range||(this.range=t.ownerDocument.createRange());return o.setStart(t,e),o.setEnd(t,e+n),o.getBoundingClientRect()},m.prototype.parse=function(t){var e=t.contexts.filter(S),n=t.children.filter(V),o=n.filter(H(F)),r=o.filter(H(D)).filter(H(A)),i=n.filter(H(D)).filter(F),a=o.filter(H(D)).filter(A),s=t.contexts.concat(o.filter(D)).filter(R),c=t.children.filter(z).filter(M),h=t.contexts.filter(O);e.concat(r).concat(i).concat(a).concat(s).concat(c).concat(h).forEach((function(t){this.renderQueue.push(t),P(t)&&(this.parse(t),this.renderQueue.push(new w))}),this)},m.prototype.paint=function(t){try{t instanceof w?this.renderer.ctx.restore():z(t)?(j(t.parent)&&t.parent.appendToDOM(),this.paintText(t),j(t.parent)&&t.parent.cleanDOM()):this.paintNode(t)}catch(e){if(o(e),this.options.strict)throw e}},m.prototype.paintNode=function(t){P(t)&&(this.renderer.setOpacity(t.opacity),this.renderer.ctx.save(),t.hasTransform()&&this.renderer.setTransform(t.parseTransform())),"INPUT"===t.node.nodeName&&"checkbox"===t.node.type?this.paintCheckbox(t):"INPUT"===t.node.nodeName&&"radio"===t.node.type?this.paintRadio(t):this.paintElement(t)},m.prototype.paintElement=function(t){var e=t.parseBounds();this.renderer.clip(t.backgroundClip,(function(){this.renderer.renderBackground(t,e,t.borders.borders.map(q))}),this),this.renderer.clip(t.clip,(function(){this.renderer.renderBorders(t.borders.borders)}),this),this.renderer.clip(t.backgroundClip,(function(){switch(t.node.nodeName){case"svg":case"IFRAME":var n=this.images.get(t.node);n?this.renderer.renderImage(t,e,t.borders,n):o("Error loading <"+t.node.nodeName+">",t.node);break;case"IMG":var r=this.images.get(t.node.src);r?this.renderer.renderImage(t,e,t.borders,r):o("Error loading <img>",t.node.src);break;case"CANVAS":this.renderer.renderImage(t,e,t.borders,{image:t.node});break;case"SELECT":case"INPUT":case"TEXTAREA":this.paintFormValue(t);break}}),this)},m.prototype.paintCheckbox=function(t){var e=t.parseBounds(),n=Math.min(e.width,e.height),o={width:n-1,height:n-1,top:e.top,left:e.left},r=[3,3],i=[r,r,r,r],a=[1,1,1,1].map((function(t){return{color:new h("#A5A5A5"),width:t}})),s=k(o,i,a);this.renderer.clip(t.backgroundClip,(function(){this.renderer.rectangle(o.left+1,o.top+1,o.width-2,o.height-2,new h("#DEDEDE")),this.renderer.renderBorders(x(a,o,s,i)),t.node.checked&&(this.renderer.font(new h("#424242"),"normal","normal","bold",n-3+"px","arial"),this.renderer.text("✔",o.left+n/6,o.top+n-1))}),this)},m.prototype.paintRadio=function(t){var e=t.parseBounds(),n=Math.min(e.width,e.height)-2;this.renderer.clip(t.backgroundClip,(function(){this.renderer.circleStroke(e.left+1,e.top+1,n,new h("#DEDEDE"),1,new h("#A5A5A5")),t.node.checked&&this.renderer.circle(Math.ceil(e.left+n/4)+1,Math.ceil(e.top+n/4)+1,Math.floor(n/2),new h("#424242"))}),this)},m.prototype.paintFormValue=function(t){var e=t.getValue();if(e.length>0){var n=t.node.ownerDocument,r=n.createElement("html2canvaswrapper"),i=["lineHeight","textAlign","fontFamily","fontWeight","fontSize","color","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height","borderLeftStyle","borderTopStyle","borderLeftWidth","borderTopWidth","boxSizing","whiteSpace","wordWrap"];i.forEach((function(e){try{r.style[e]=t.css(e)}catch(n){o("html2canvas: Parse: Exception caught in renderFormValue: "+n.message)}}));var s=t.parseBounds();r.style.position="fixed",r.style.left=s.left+"px",r.style.top=s.top+"px",r.textContent=e,n.body.appendChild(r),this.paintText(new a(r.firstChild,t)),n.body.removeChild(r)}},m.prototype.paintText=function(t){t.applyTextTransform();var e=r.ucs2.decode(t.node.data),n=this.options.letterRendering&&!L(t)||Z(t.node.data)?e.map((function(t){return r.ucs2.encode([t])})):J(e),o=t.parent.fontWeight(),i=t.parent.css("fontSize"),a=t.parent.css("fontFamily"),s=t.parent.parseTextShadows();this.renderer.font(t.parent.color("color"),t.parent.css("fontStyle"),t.parent.css("fontVariant"),o,i,a),s.length?this.renderer.fontShadow(s[0].color,s[0].offsetX,s[0].offsetY,s[0].blur):this.renderer.clearShadow(),this.renderer.clip(t.parent.clip,(function(){n.map(this.parseTextBounds(t),this).forEach((function(e,o){e&&(this.renderer.text(n[o],e.left,e.bottom),this.renderTextDecoration(t.parent,e,this.fontMetrics.getMetrics(a,i)))}),this)}),this)},m.prototype.renderTextDecoration=function(t,e,n){switch(t.css("textDecoration").split(" ")[0]){case"underline":this.renderer.rectangle(e.left,Math.round(e.top+n.baseline+n.lineWidth),e.width,1,t.color("color"));break;case"overline":this.renderer.rectangle(e.left,Math.round(e.top),e.width,1,t.color("color"));break;case"line-through":this.renderer.rectangle(e.left,Math.ceil(e.top+n.middle+n.lineWidth),e.width,1,t.color("color"));break}};var b={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};function x(t,e,n,o){return t.map((function(r,i){if(r.width>0){var a=e.left,s=e.top,c=e.width,h=e.height-t[2].width;switch(i){case 0:h=t[0].width,r.args=C({c1:[a,s],c2:[a+c,s],c3:[a+c-t[1].width,s+h],c4:[a+t[3].width,s+h]},o[0],o[1],n.topLeftOuter,n.topLeftInner,n.topRightOuter,n.topRightInner);break;case 1:a=e.left+e.width-t[1].width,c=t[1].width,r.args=C({c1:[a+c,s],c2:[a+c,s+h+t[2].width],c3:[a,s+h],c4:[a,s+t[0].width]},o[1],o[2],n.topRightOuter,n.topRightInner,n.bottomRightOuter,n.bottomRightInner);break;case 2:s=s+e.height-t[2].width,h=t[2].width,r.args=C({c1:[a+c,s+h],c2:[a,s+h],c3:[a+t[3].width,s],c4:[a+c-t[3].width,s]},o[2],o[3],n.bottomRightOuter,n.bottomRightInner,n.bottomLeftOuter,n.bottomLeftInner);break;case 3:c=t[3].width,r.args=C({c1:[a,s+h+t[2].width],c2:[a,s],c3:[a+c,s+t[0].width],c4:[a+c,s+h]},o[3],o[0],n.bottomLeftOuter,n.bottomLeftInner,n.topLeftOuter,n.topLeftInner);break}}return r}))}function E(t,e,n,o){var r=(Math.sqrt(2)-1)/3*4,i=n*r,a=o*r,s=t+n,c=e+o;return{topLeft:T({x:t,y:c},{x:t,y:c-a},{x:s-i,y:e},{x:s,y:e}),topRight:T({x:t,y:e},{x:t+i,y:e},{x:s,y:c-a},{x:s,y:c}),bottomRight:T({x:s,y:e},{x:s,y:e+a},{x:t+i,y:c},{x:t,y:c}),bottomLeft:T({x:s,y:c},{x:s-i,y:c},{x:t,y:e+a},{x:t,y:e})}}function k(t,e,n){var o=t.left,r=t.top,i=t.width,a=t.height,s=e[0][0]<i/2?e[0][0]:i/2,c=e[0][1]<a/2?e[0][1]:a/2,h=e[1][0]<i/2?e[1][0]:i/2,d=e[1][1]<a/2?e[1][1]:a/2,l=e[2][0]<i/2?e[2][0]:i/2,u=e[2][1]<a/2?e[2][1]:a/2,p=e[3][0]<i/2?e[3][0]:i/2,f=e[3][1]<a/2?e[3][1]:a/2,g=i-h,m=a-u,y=i-l,v=a-f;return{topLeftOuter:E(o,r,s,c).topLeft.subdivide(.5),topLeftInner:E(o+n[3].width,r+n[0].width,Math.max(0,s-n[3].width),Math.max(0,c-n[0].width)).topLeft.subdivide(.5),topRightOuter:E(o+g,r,h,d).topRight.subdivide(.5),topRightInner:E(o+Math.min(g,i+n[3].width),r+n[0].width,g>i+n[3].width?0:h-n[3].width,d-n[0].width).topRight.subdivide(.5),bottomRightOuter:E(o+y,r+m,l,u).bottomRight.subdivide(.5),bottomRightInner:E(o+Math.min(y,i-n[3].width),r+Math.min(m,a+n[0].width),Math.max(0,l-n[1].width),u-n[2].width).bottomRight.subdivide(.5),bottomLeftOuter:E(o,r+v,p,f).bottomLeft.subdivide(.5),bottomLeftInner:E(o+n[3].width,r+v,Math.max(0,p-n[3].width),f-n[2].width).bottomLeft.subdivide(.5)}}function T(t,e,n,o){var r=function(t,e,n){return{x:t.x+(e.x-t.x)*n,y:t.y+(e.y-t.y)*n}};return{start:t,startControl:e,endControl:n,end:o,subdivide:function(i){var a=r(t,e,i),s=r(e,n,i),c=r(n,o,i),h=r(a,s,i),d=r(s,c,i),l=r(h,d,i);return[T(t,a,h,l),T(l,d,c,o)]},curveTo:function(t){t.push(["bezierCurve",e.x,e.y,n.x,n.y,o.x,o.y])},curveToReversed:function(o){o.push(["bezierCurve",n.x,n.y,e.x,e.y,t.x,t.y])}}}function C(t,e,n,o,r,i,a){var s=[];return e[0]>0||e[1]>0?(s.push(["line",o[1].start.x,o[1].start.y]),o[1].curveTo(s)):s.push(["line",t.c1[0],t.c1[1]]),n[0]>0||n[1]>0?(s.push(["line",i[0].start.x,i[0].start.y]),i[0].curveTo(s),s.push(["line",a[0].end.x,a[0].end.y]),a[0].curveToReversed(s)):(s.push(["line",t.c2[0],t.c2[1]]),s.push(["line",t.c3[0],t.c3[1]])),e[0]>0||e[1]>0?(s.push(["line",r[1].end.x,r[1].end.y]),r[1].curveToReversed(s)):s.push(["line",t.c4[0],t.c4[1]]),s}function I(t,e,n,o,r,i,a){e[0]>0||e[1]>0?(t.push(["line",o[0].start.x,o[0].start.y]),o[0].curveTo(t),o[1].curveTo(t)):t.push(["line",i,a]),(n[0]>0||n[1]>0)&&t.push(["line",r[0].start.x,r[0].start.y])}function S(t){return t.cssInt("zIndex")<0}function O(t){return t.cssInt("zIndex")>0}function R(t){return 0===t.cssInt("zIndex")}function A(t){return-1!==["inline","inline-block","inline-table"].indexOf(t.css("display"))}function P(t){return t instanceof d}function M(t){return t.node.data.trim().length>0}function L(t){return/^(normal|none|0px)$/.test(t.parent.css("letterSpacing"))}function _(t){return["TopLeft","TopRight","BottomRight","BottomLeft"].map((function(e){var n=t.css("border"+e+"Radius"),o=n.split(" ");return o.length<=1&&(o[1]=o[0]),o.map(G)}))}function N(t){return t.nodeType===Node.TEXT_NODE||t.nodeType===Node.ELEMENT_NODE}function B(t){var e=t.css("position"),n=-1!==["absolute","relative","fixed"].indexOf(e)?t.css("zIndex"):"auto";return"auto"!==n}function D(t){return"static"!==t.css("position")}function F(t){return"none"!==t.css("float")}function W(t){return-1!==["inline-block","inline-table"].indexOf(t.css("display"))}function H(t){var e=this;return function(){return!t.apply(e,arguments)}}function V(t){return t.node.nodeType===Node.ELEMENT_NODE}function j(t){return!0===t.isPseudoElement}function z(t){return t.node.nodeType===Node.TEXT_NODE}function U(t){return function(e,n){return e.cssInt("zIndex")+t.indexOf(e)/t.length-(n.cssInt("zIndex")+t.indexOf(n)/t.length)}}function X(t){return t.getOpacity()<1}function G(t){return parseInt(t,10)}function q(t){return t.width}function Y(t){return t.node.nodeType!==Node.ELEMENT_NODE||-1===["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(t.node.nodeName)}function $(t){return[].concat.apply([],t)}function Q(t){var e=t.substr(0,1);return e===t.substr(t.length-1)&&e.match(/'|"/)?t.substr(1,t.length-2):t}function J(t){var e,n=[],o=0,i=!1;while(t.length)K(t[o])===i?(e=t.splice(0,o),e.length&&n.push(r.ucs2.encode(e)),i=!i,o=0):o++,o>=t.length&&(e=t.splice(0,o),e.length&&n.push(r.ucs2.encode(e)));return n}function K(t){return-1!==[32,13,10,9,45].indexOf(t)}function Z(t){return/[^\u0000-\u00ff]/.test(t)}m.prototype.parseBorders=function(t){var e=t.parseBounds(),n=_(t),o=["Top","Right","Bottom","Left"].map((function(e,n){var o=t.css("border"+e+"Style"),r=t.color("border"+e+"Color");"inset"===o&&r.isBlack()&&(r=new h([255,255,255,r.a]));var i=b[o]?b[o][n]:null;return{width:t.cssInt("border"+e+"Width"),color:i?r[i[0]](i[1]):r,args:null}})),r=k(e,n,o);return{clip:this.parseBackgroundClip(t,r,o,n,e),borders:x(o,e,r,n)}},m.prototype.parseBackgroundClip=function(t,e,n,o,r){var i=t.css("backgroundClip"),a=[];switch(i){case"content-box":case"padding-box":I(a,o[0],o[1],e.topLeftInner,e.topRightInner,r.left+n[3].width,r.top+n[0].width),I(a,o[1],o[2],e.topRightInner,e.bottomRightInner,r.left+r.width-n[1].width,r.top+n[0].width),I(a,o[2],o[3],e.bottomRightInner,e.bottomLeftInner,r.left+r.width-n[1].width,r.top+r.height-n[2].width),I(a,o[3],o[0],e.bottomLeftInner,e.topLeftInner,r.left+n[3].width,r.top+r.height-n[2].width);break;default:I(a,o[0],o[1],e.topLeftOuter,e.topRightOuter,r.left,r.top),I(a,o[1],o[2],e.topRightOuter,e.bottomRightOuter,r.left+r.width,r.top),I(a,o[2],o[3],e.bottomRightOuter,e.bottomLeftOuter,r.left+r.width,r.top+r.height),I(a,o[3],o[0],e.bottomLeftOuter,e.topLeftOuter,r.left,r.top+r.height);break}return a},e.exports=m},{"./color":3,"./fontmetrics":7,"./log":13,"./nodecontainer":14,"./pseudoelementcontainer":18,"./stackingcontext":21,"./textcontainer":25,"./utils":26,punycode:1}],16:[function(t,e,n){var o=t("./xhr"),r=t("./utils"),i=t("./log"),a=t("./clone"),s=r.decode64;function c(t,e,n){var r="withCredentials"in new XMLHttpRequest;if(!e)return Promise.reject("No proxy configured");var i=u(r),a=p(e,t,i);return r?o(a):l(n,a,i).then((function(t){return s(t.content)}))}var h=0;function d(t,e,n){var o="crossOrigin"in new Image,r=u(o),i=p(e,t,r);return o?Promise.resolve(i):l(n,i,r).then((function(t){return"data:"+t.type+";base64,"+t.content}))}function l(t,e,n){return new Promise((function(o,r){var i=t.createElement("script"),a=function(){delete window.html2canvas.proxy[n],t.body.removeChild(i)};window.html2canvas.proxy[n]=function(t){a(),o(t)},i.src=e,i.onerror=function(t){a(),r(t)},t.body.appendChild(i)}))}function u(t){return t?"":"html2canvas_"+Date.now()+"_"+ ++h+"_"+Math.round(1e5*Math.random())}function p(t,e,n){return t+"?url="+encodeURIComponent(e)+(n.length?"&callback=html2canvas.proxy."+n:"")}function f(t){return function(e){var n,o=new DOMParser;try{n=o.parseFromString(e,"text/html")}catch(s){i("DOMParser not supported, falling back to createHTMLDocument"),n=document.implementation.createHTMLDocument("");try{n.open(),n.write(e),n.close()}catch(c){i("createHTMLDocument write not supported, falling back to document.body.innerHTML"),n.body.innerHTML=e}}var r=n.querySelector("base");if(!r||!r.href.host){var a=n.createElement("base");a.href=t,n.head.insertBefore(a,n.head.firstChild)}return n}}function g(t,e,n,o,r,i){return new c(t,e,window.document).then(f(t)).then((function(t){return a(t,n,o,r,i,0,0)}))}n.Proxy=c,n.ProxyURL=d,n.loadUrlDocument=g},{"./clone":2,"./log":13,"./utils":26,"./xhr":28}],17:[function(t,e,n){var o=t("./proxy").ProxyURL;function r(t,e){var n=document.createElement("a");n.href=t,t=n.href,this.src=t,this.image=new Image;var r=this;this.promise=new Promise((function(n,i){r.image.crossOrigin="Anonymous",r.image.onload=n,r.image.onerror=i,new o(t,e,document).then((function(t){r.image.src=t}))["catch"](i)}))}e.exports=r},{"./proxy":16}],18:[function(t,e,n){var o=t("./nodecontainer");function r(t,e,n){o.call(this,t,e),this.isPseudoElement=!0,this.before=":before"===n}r.prototype.cloneTo=function(t){r.prototype.cloneTo.call(this,t),t.isPseudoElement=!0,t.before=this.before},r.prototype=Object.create(o.prototype),r.prototype.appendToDOM=function(){this.before?this.parent.node.insertBefore(this.node,this.parent.node.firstChild):this.parent.node.appendChild(this.node),this.parent.node.className+=" "+this.getHideClass()},r.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node),this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")},r.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]},r.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before",r.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after",e.exports=r},{"./nodecontainer":14}],19:[function(t,e,n){var o=t("./log");function r(t,e,n,o,r){this.width=t,this.height=e,this.images=n,this.options=o,this.document=r}r.prototype.renderImage=function(t,e,n,o){var r=t.cssInt("paddingLeft"),i=t.cssInt("paddingTop"),a=t.cssInt("paddingRight"),s=t.cssInt("paddingBottom"),c=n.borders,h=e.width-(c[1].width+c[3].width+r+a),d=e.height-(c[0].width+c[2].width+i+s);this.drawImage(o,0,0,o.image.width||h,o.image.height||d,e.left+r+c[3].width,e.top+i+c[0].width,h,d)},r.prototype.renderBackground=function(t,e,n){e.height>0&&e.width>0&&(this.renderBackgroundColor(t,e),this.renderBackgroundImage(t,e,n))},r.prototype.renderBackgroundColor=function(t,e){var n=t.color("backgroundColor");n.isTransparent()||this.rectangle(e.left,e.top,e.width,e.height,n)},r.prototype.renderBorders=function(t){t.forEach(this.renderBorder,this)},r.prototype.renderBorder=function(t){t.color.isTransparent()||null===t.args||this.drawShape(t.args,t.color)},r.prototype.renderBackgroundImage=function(t,e,n){var r=t.parseBackgroundImages();r.reverse().forEach((function(r,i,a){switch(r.method){case"url":var s=this.images.get(r.args[0]);s?this.renderBackgroundRepeating(t,e,s,a.length-(i+1),n):o("Error loading background-image",r.args[0]);break;case"linear-gradient":case"gradient":var c=this.images.get(r.value);c?this.renderBackgroundGradient(c,e,n):o("Error loading background-image",r.args[0]);break;case"none":break;default:o("Unknown background-image type",r.args[0])}}),this)},r.prototype.renderBackgroundRepeating=function(t,e,n,o,r){var i=t.parseBackgroundSize(e,n.image,o),a=t.parseBackgroundPosition(e,n.image,o,i),s=t.parseBackgroundRepeat(o);switch(s){case"repeat-x":case"repeat no-repeat":this.backgroundRepeatShape(n,a,i,e,e.left+r[3],e.top+a.top+r[0],99999,i.height,r);break;case"repeat-y":case"no-repeat repeat":this.backgroundRepeatShape(n,a,i,e,e.left+a.left+r[3],e.top+r[0],i.width,99999,r);break;case"no-repeat":this.backgroundRepeatShape(n,a,i,e,e.left+a.left+r[3],e.top+a.top+r[0],i.width,i.height,r);break;default:this.renderBackgroundRepeat(n,a,i,{top:e.top,left:e.left},r[3],r[0]);break}},e.exports=r},{"./log":13}],20:[function(t,e,n){var o=t("../renderer"),r=t("../lineargradientcontainer"),i=t("../log");function a(t,e){o.apply(this,arguments),this.canvas=this.options.canvas||this.document.createElement("canvas"),this.options.canvas||(this.canvas.width=t,this.canvas.height=e),this.ctx=this.canvas.getContext("2d"),this.taintCtx=this.document.createElement("canvas").getContext("2d"),this.ctx.textBaseline="bottom",this.variables={},i("Initialized CanvasRenderer with size",t,"x",e)}function s(t){return t.length>0}a.prototype=Object.create(o.prototype),a.prototype.setFillStyle=function(t){return this.ctx.fillStyle="object"===typeof t&&t.isColor?t.toString():t,this.ctx},a.prototype.rectangle=function(t,e,n,o,r){this.setFillStyle(r).fillRect(t,e,n,o)},a.prototype.circle=function(t,e,n,o){this.setFillStyle(o),this.ctx.beginPath(),this.ctx.arc(t+n/2,e+n/2,n/2,0,2*Math.PI,!0),this.ctx.closePath(),this.ctx.fill()},a.prototype.circleStroke=function(t,e,n,o,r,i){this.circle(t,e,n,o),this.ctx.strokeStyle=i.toString(),this.ctx.stroke()},a.prototype.drawShape=function(t,e){this.shape(t),this.setFillStyle(e).fill()},a.prototype.taints=function(t){if(null===t.tainted){this.taintCtx.drawImage(t.image,0,0);try{this.taintCtx.getImageData(0,0,1,1),t.tainted=!1}catch(e){this.taintCtx=document.createElement("canvas").getContext("2d"),t.tainted=!0}}return t.tainted},a.prototype.drawImage=function(t,e,n,o,r,i,a,s,c){this.taints(t)&&!this.options.allowTaint||this.ctx.drawImage(t.image,e,n,o,r,i,a,s,c)},a.prototype.clip=function(t,e,n){this.ctx.save(),t.filter(s).forEach((function(t){this.shape(t).clip()}),this),e.call(n),this.ctx.restore()},a.prototype.shape=function(t){return this.ctx.beginPath(),t.forEach((function(t,e){"rect"===t[0]?this.ctx.rect.apply(this.ctx,t.slice(1)):this.ctx[0===e?"moveTo":t[0]+"To"].apply(this.ctx,t.slice(1))}),this),this.ctx.closePath(),this.ctx},a.prototype.font=function(t,e,n,o,r,i){this.setFillStyle(t).font=[e,n,o,r,i].join(" ").split(",")[0]},a.prototype.fontShadow=function(t,e,n,o){this.setVariable("shadowColor",t.toString()).setVariable("shadowOffsetY",e).setVariable("shadowOffsetX",n).setVariable("shadowBlur",o)},a.prototype.clearShadow=function(){this.setVariable("shadowColor","rgba(0,0,0,0)")},a.prototype.setOpacity=function(t){this.ctx.globalAlpha=t},a.prototype.setTransform=function(t){this.ctx.translate(t.origin[0],t.origin[1]),this.ctx.transform.apply(this.ctx,t.matrix),this.ctx.translate(-t.origin[0],-t.origin[1])},a.prototype.setVariable=function(t,e){return this.variables[t]!==e&&(this.variables[t]=this.ctx[t]=e),this},a.prototype.text=function(t,e,n){this.ctx.fillText(t,e,n)},a.prototype.backgroundRepeatShape=function(t,e,n,o,r,i,a,s,c){var h=[["line",Math.round(r),Math.round(i)],["line",Math.round(r+a),Math.round(i)],["line",Math.round(r+a),Math.round(s+i)],["line",Math.round(r),Math.round(s+i)]];this.clip([h],(function(){this.renderBackgroundRepeat(t,e,n,o,c[3],c[0])}),this)},a.prototype.renderBackgroundRepeat=function(t,e,n,o,r,i){var a=Math.round(o.left+e.left+r),s=Math.round(o.top+e.top+i);this.setFillStyle(this.ctx.createPattern(this.resizeImage(t,n),"repeat")),this.ctx.translate(a,s),this.ctx.fill(),this.ctx.translate(-a,-s)},a.prototype.renderBackgroundGradient=function(t,e){if(t instanceof r){var n=this.ctx.createLinearGradient(e.left+e.width*t.x0,e.top+e.height*t.y0,e.left+e.width*t.x1,e.top+e.height*t.y1);t.colorStops.forEach((function(t){n.addColorStop(t.stop,t.color.toString())})),this.rectangle(e.left,e.top,e.width,e.height,n)}},a.prototype.resizeImage=function(t,e){var n=t.image;if(n.width===e.width&&n.height===e.height)return n;var o,r=document.createElement("canvas");return r.width=e.width,r.height=e.height,o=r.getContext("2d"),o.drawImage(n,0,0,n.width,n.height,0,0,e.width,e.height),r},e.exports=a},{"../lineargradientcontainer":12,"../log":13,"../renderer":19}],21:[function(t,e,n){var o=t("./nodecontainer");function r(t,e,n,r){o.call(this,n,r),this.ownStacking=t,this.contexts=[],this.children=[],this.opacity=(this.parent?this.parent.stack.opacity:1)*e}r.prototype=Object.create(o.prototype),r.prototype.getParentStack=function(t){var e=this.parent?this.parent.stack:null;return e?e.ownStacking?e:e.getParentStack(t):t.stack},e.exports=r},{"./nodecontainer":14}],22:[function(t,e,n){function o(t){this.rangeBounds=this.testRangeBounds(t),this.cors=this.testCORS(),this.svg=this.testSVG()}o.prototype.testRangeBounds=function(t){var e,n,o,r,i=!1;return t.createRange&&(e=t.createRange(),e.getBoundingClientRect&&(n=t.createElement("boundtest"),n.style.height="123px",n.style.display="block",t.body.appendChild(n),e.selectNode(n),o=e.getBoundingClientRect(),r=o.height,123===r&&(i=!0),t.body.removeChild(n))),i},o.prototype.testCORS=function(){return"undefined"!==typeof(new Image).crossOrigin},o.prototype.testSVG=function(){var t=new Image,e=document.createElement("canvas"),n=e.getContext("2d");t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(t,0,0),e.toDataURL()}catch(o){return!1}return!0},e.exports=o},{}],23:[function(t,e,n){var o=t("./xhr"),r=t("./utils").decode64;function i(t){this.src=t,this.image=null;var e=this;this.promise=this.hasFabric().then((function(){return e.isInline(t)?Promise.resolve(e.inlineFormatting(t)):o(t)})).then((function(t){return new Promise((function(n){window.html2canvas.svg.fabric.loadSVGFromString(t,e.createCanvas.call(e,n))}))}))}i.prototype.hasFabric=function(){return window.html2canvas.svg&&window.html2canvas.svg.fabric?Promise.resolve():Promise.reject(new Error("html2canvas.svg.js is not loaded, cannot render svg"))},i.prototype.inlineFormatting=function(t){return/^data:image\/svg\+xml;base64,/.test(t)?this.decode64(this.removeContentType(t)):this.removeContentType(t)},i.prototype.removeContentType=function(t){return t.replace(/^data:image\/svg\+xml(;base64)?,/,"")},i.prototype.isInline=function(t){return/^data:image\/svg\+xml/i.test(t)},i.prototype.createCanvas=function(t){var e=this;return function(n,o){var r=new window.html2canvas.svg.fabric.StaticCanvas("c");e.image=r.lowerCanvasEl,r.setWidth(o.width).setHeight(o.height).add(window.html2canvas.svg.fabric.util.groupSVGElements(n,o)).renderAll(),t(r.lowerCanvasEl)}},i.prototype.decode64=function(t){return"function"===typeof window.atob?window.atob(t):r(t)},e.exports=i},{"./utils":26,"./xhr":28}],24:[function(t,e,n){var o=t("./svgcontainer");function r(t,e){this.src=t,this.image=null;var n=this;this.promise=e?new Promise((function(e,o){n.image=new Image,n.image.onload=e,n.image.onerror=o,n.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(t),!0===n.image.complete&&e(n.image)})):this.hasFabric().then((function(){return new Promise((function(e){window.html2canvas.svg.fabric.parseSVGDocument(t,n.createCanvas.call(n,e))}))}))}r.prototype=Object.create(o.prototype),e.exports=r},{"./svgcontainer":23}],25:[function(t,e,n){var o=t("./nodecontainer");function r(t,e){o.call(this,t,e)}function i(t,e,n){if(t.length>0)return e+n.toUpperCase()}r.prototype=Object.create(o.prototype),r.prototype.applyTextTransform=function(){this.node.data=this.transform(this.parent.css("textTransform"))},r.prototype.transform=function(t){var e=this.node.data;switch(t){case"lowercase":return e.toLowerCase();case"capitalize":return e.replace(/(^|\s|:|-|\(|\))([a-z])/g,i);case"uppercase":return e.toUpperCase();default:return e}},e.exports=r},{"./nodecontainer":14}],26:[function(t,e,n){n.smallImage=function(){return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},n.bind=function(t,e){return function(){return t.apply(e,arguments)}},n.decode64=function(t){var e,n,o,r,i,a,s,c,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=t.length,l="";for(e=0;e<d;e+=4)n=h.indexOf(t[e]),o=h.indexOf(t[e+1]),r=h.indexOf(t[e+2]),i=h.indexOf(t[e+3]),a=n<<2|o>>4,s=(15&o)<<4|r>>2,c=(3&r)<<6|i,l+=64===r?String.fromCharCode(a):64===i||-1===i?String.fromCharCode(a,s):String.fromCharCode(a,s,c);return l},n.getBounds=function(t){if(t.getBoundingClientRect){var e=t.getBoundingClientRect(),n=null==t.offsetWidth?e.width:t.offsetWidth;return{top:e.top,bottom:e.bottom||e.top+e.height,right:e.left+n,left:e.left,width:n,height:null==t.offsetHeight?e.height:t.offsetHeight}}return{}},n.offsetBounds=function(t){var e=t.offsetParent?n.offsetBounds(t.offsetParent):{top:0,left:0};return{top:t.offsetTop+e.top,bottom:t.offsetTop+t.offsetHeight+e.top,right:t.offsetLeft+e.left+t.offsetWidth,left:t.offsetLeft+e.left,width:t.offsetWidth,height:t.offsetHeight}},n.parseBackgrounds=function(t){var e,n,o,r,i,a,s,c=" \r\n\t",h=[],d=0,l=0,u=function(){e&&('"'===n.substr(0,1)&&(n=n.substr(1,n.length-2)),n&&s.push(n),"-"===e.substr(0,1)&&(r=e.indexOf("-",1)+1)>0&&(o=e.substr(0,r),e=e.substr(r)),h.push({prefix:o,method:e.toLowerCase(),value:i,args:s,image:null})),s=[],e=o=n=i=""};return s=[],e=o=n=i="",t.split("").forEach((function(t){if(!(0===d&&c.indexOf(t)>-1)){switch(t){case'"':a?a===t&&(a=null):a=t;break;case"(":if(a)break;if(0===d)return d=1,void(i+=t);l++;break;case")":if(a)break;if(1===d){if(0===l)return d=0,i+=t,void u();l--}break;case",":if(a)break;if(0===d)return void u();if(1===d&&0===l&&!e.match(/^url$/i))return s.push(n),n="",void(i+=t);break}i+=t,0===d?e+=t:n+=t}})),u(),h}},{}],27:[function(t,e,n){var o=t("./gradientcontainer");function r(t){o.apply(this,arguments),this.type="linear"===t.args[0]?o.TYPES.LINEAR:o.TYPES.RADIAL}r.prototype=Object.create(o.prototype),e.exports=r},{"./gradientcontainer":9}],28:[function(t,e,n){function o(t){return new Promise((function(e,n){var o=new XMLHttpRequest;o.open("GET",t),o.onload=function(){200===o.status?e(o.responseText):n(new Error(o.statusText))},o.onerror=function(){n(new Error("Network Error"))},o.send()}))}e.exports=o},{}]},{},[4])(4)}))}).call(this,n("c8ba"))},9951:function(t,e,n){var o=n("6506");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var r=n("4f06").default;r("7714bd4a",o,!0,{sourceMap:!1,shadowMode:!1})},b105:function(t,e,n){"use strict";var o,r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{attrs:{id:"shareImage"}},[o("v-uni-view",{staticClass:"border"},[o("v-uni-view",{staticClass:"content"},[o("v-uni-view",{staticClass:"title_1",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.drewImage.apply(void 0,arguments)}}},[o("v-uni-text",[t._v("郑州")]),t._v(">>>"),o("v-uni-text",[t._v("安阳")])],1),o("v-uni-view",{staticClass:"title_2"},[t._v("郑州回安阳过年需要隔离吗?12123655")]),o("v-uni-view",{staticClass:"text_1"},[t._v("对于在湖北入境的人员,实施“14+14”的健康管理措施。即14天集中隔离医学观察,期间进行2次核酸检测和1次抗体检测;集中隔离医学观察期满后再实施14天居家医学观察,期间进行两次核酸检测。入境人员隔离点应在隔离对象隔离期满前3天,将隔离人员相关信息通知其地新冠肺炎疫情防控指挥部,以便当地落实居家医学观察。\n\n\t\t\t天居家医学观察,期间进行两次核酸检测。入境人员隔离点应在隔离对象隔离期满前3天,将隔离人员相关信息通知其地新冠肺炎疫情防控指挥部,以便当地落实居家医学观察。")]),o("v-uni-view",{staticClass:"tip_share"},[o("v-uni-view",{staticClass:"left_share"},[o("v-uni-image",{attrs:{src:n("0d31"),mode:""}})],1),o("v-uni-view",{staticClass:"right_share"},[o("v-uni-view",{},[t._v("数据来源(可点击,数据来源列表)")]),o("v-uni-view",{},[o("v-uni-text",[t._v("xxxx")]),t._v("城市疫情防控指挥中心")],1)],1)],1)],1),o("v-uni-image",{staticClass:"btimg",attrs:{src:n("56bb"),mode:""}}),o("v-uni-image",{staticClass:"icon",attrs:{src:n("b519"),mode:""}})],1)],1)},i=[];n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}))},b519:function(t,e,n){t.exports=n.p+"static/img/icon6.92df4968.png"},baa5:function(t,e,n){var o=n("23e7"),r=n("e58c");o({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},bd86:function(t,e,n){"use strict";var o=n("9951"),r=n.n(o);r.a},cb29:function(t,e,n){var o=n("23e7"),r=n("81d5"),i=n("44d2");o({target:"Array",proto:!0},{fill:r}),i("fill")},f080:function(t,e,n){"use strict";n.r(e);var o=n("f345"),r=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},f345:function(t,e,n){"use strict";var o=n("ee27");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("8fba")),i={data:function(){return{}},methods:{drewImage:function(){var t=this;(0,r.default)(document.querySelector("#shareImage"),{useCORS:!0}).then((function(e){var n=e.toDataURL("image/png");t.download(n)}))},download:function(t){var e=document.createElement("a");e.download="",e.href=t,document.body.appendChild(e),e.click(),e.remove()}}};e.default=i}}]);
|