| Server IP : 37.27.51.148 / Your IP : 37.27.51.148 Web Server : nginx/1.14.1 System : Linux libra 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 20:24:04 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.31 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/thrive-quiz-builder/assets/js/dist/ |
Upload File : |
/*! For license information please see tqb-html2canvas.min.js.LICENSE.txt */
(()=>{var t={7794:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}t=n.nmd(t),function(e,n,o,i,a,s){if(void 0!==n&&"function"==typeof Object.create&&"function"==typeof n.createElement("canvas").getContext){!function(e){var n="object"==r(o)&&o&&!o.nodeType&&o,s="object"==r(t)&&t&&!t.nodeType&&t,h="object"==r(i)&&i;h.global!==h&&h.window!==h&&h.self!==h||(e=h);var c,l,d=2147483647,u=36,p=/^xn--/,f=/[^\x20-\x7E]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=Math.floor,b=String.fromCharCode;function v(t){throw RangeError(m[t])}function w(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function x(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+w(t.split(g),e).join(".")}function E(t){for(var e,n,r=[],o=0,i=t.length;o<i;)(e=t.charCodeAt(o++))>=55296&&e<=56319&&o<i?56320==(64512&(n=t.charCodeAt(o++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--):r.push(e);return r}function T(t){return w(t,(function(t){var e="";return t>65535&&(e+=b((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+b(t)})).join("")}function k(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function C(t,e,n){var r=0;for(t=n?y(t/700):t>>1,t+=y(t/e);t>455;r+=u)t=y(t/35);return y(r+36*t/(t+38))}function S(t){var e,n,r,o,i,a,s,h,c,l,p,f=[],g=t.length,m=0,b=128,w=72;for((n=t.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&v("not-basic"),f.push(t.charCodeAt(r));for(o=n>0?n+1:0;o<g;){for(i=m,a=1,s=u;o>=g&&v("invalid-input"),((h=(p=t.charCodeAt(o++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:u)>=u||h>y((d-m)/a))&&v("overflow"),m+=h*a,!(h<(c=s<=w?1:s>=w+26?26:s-w));s+=u)a>y(d/(l=u-c))&&v("overflow"),a*=l;w=C(m-i,e=f.length+1,0==i),y(m/e)>d-b&&v("overflow"),b+=y(m/e),m%=e,f.splice(m++,0,b)}return T(f)}function I(t){var e,n,r,o,i,a,s,h,c,l,p,f,g,m,w,x=[];for(f=(t=E(t)).length,e=128,n=0,i=72,a=0;a<f;++a)(p=t[a])<128&&x.push(b(p));for(r=o=x.length,o&&x.push("-");r<f;){for(s=d,a=0;a<f;++a)(p=t[a])>=e&&p<s&&(s=p);for(s-e>y((d-n)/(g=r+1))&&v("overflow"),n+=(s-e)*g,e=s,a=0;a<f;++a)if((p=t[a])<e&&++n>d&&v("overflow"),p==e){for(h=n,c=u;!(h<(l=c<=i?1:c>=i+26?26:c-i));c+=u)w=h-l,m=u-l,x.push(b(k(l+w%m,0))),h=y(w/m);x.push(b(k(h,0))),i=C(n,g,r==o),n=0,++r}++n,++e}return x.join("")}if(c={version:"1.3.1",ucs2:{decode:E,encode:T},decode:S,encode:I,toASCII:function(t){return x(t,(function(t){return f.test(t)?"xn--"+I(t):t}))},toUnicode:function(t){return x(t,(function(t){return p.test(t)?S(t.slice(4).toLowerCase()):t}))}},"function"==typeof a&&"object"==r(a.amd)&&a.amd)a("punycode",(function(){return c}));else if(n&&s)if(t.exports==n)s.exports=c;else for(l in c)c.hasOwnProperty(l)&&(n[l]=c[l]);else e.punycode=c}(this);var h="data-html2canvas-node",c="data-html2canvas-canvas-clone",l=0,d=0;e.html2canvas=function(t,r){var o,i,a=d++;if((r=r||{}).logging&&(e.html2canvas.logging=!0,e.html2canvas.start=Date.now()),r.async=void 0===r.async||r.async,r.allowTaint=void 0!==r.allowTaint&&r.allowTaint,r.removeContainer=void 0===r.removeContainer||r.removeContainer,r.javascriptEnabled=void 0!==r.javascriptEnabled&&r.javascriptEnabled,r.imageTimeout=void 0===r.imageTimeout?1e4:r.imageTimeout,r.renderer="function"==typeof r.renderer?r.renderer:_t,r.strict=!!r.strict,"string"==typeof t){if("string"!=typeof r.proxy)return Promise.reject("Proxy must be used when rendering url");var c=null!=r.width?r.width:e.innerWidth,l=null!=r.height?r.height:e.innerHeight;return S((o=t,i=n.createElement("a"),i.href=o,i.href=i.href,i),r.proxy,n,c,l,r).then((function(t){return x(t.contentWindow.document.documentElement,t,r,c,l)}))}var u=(t===s?[n.documentElement]:t.length?t:[t])[0];return u.setAttribute(h+a,a),function(t,e,n,r,o){return k(t,t,n,r,e,t.defaultView.pageXOffset,t.defaultView.pageYOffset).then((function(i){H("Document cloned");var a=h+o,s="["+a+"='"+o+"']";t.querySelector(s).removeAttribute(a);var c=i.contentWindow,l=c.document.querySelector(s);return("function"==typeof e.onclone?Promise.resolve(e.onclone(c.document)):Promise.resolve(!0)).then((function(){return x(l,i,e,n,r)}))}))}(u.ownerDocument,r,u.ownerDocument.defaultView.innerWidth,u.ownerDocument.defaultView.innerHeight,a).then((function(t){return"function"==typeof r.onrendered&&(H("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas"),r.onrendered(t)),t}))},e.html2canvas.punycode=this.punycode,e.html2canvas.proxy={},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 u=/^#([a-f0-9]{3})$/i;O.prototype.hex3=function(t){var e;return null!==(e=t.match(u))&&(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 p=/^#([a-f0-9]{6})$/i;O.prototype.hex6=function(t){var e=null;return null!==(e=t.match(p))&&(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 f=/^rgb\((\d{1,3}) *, *(\d{1,3}) *, *(\d{1,3})\)$/;O.prototype.rgb=function(t){var e;return null!==(e=t.match(f))&&(this.r=Number(e[1]),this.g=Number(e[2]),this.b=Number(e[3])),null!==e};var g=/^rgba\((\d{1,3}) *, *(\d{1,3}) *, *(\d{1,3}) *, *(\d+\.?\d*)\)$/;O.prototype.rgba=function(t){var e;return null!==(e=t.match(g))&&(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){var e=m[t.toLowerCase()];if(e)this.r=e[0],this.g=e[1],this.b=e[2];else if("transparent"===t.toLowerCase())return this.r=this.g=this.b=this.a=0,!0;return!!e},O.prototype.isColor=!0;var m={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]};B.prototype.getMetrics=function(t,e){return this.data[t+"-"+e]===s&&(this.data[t+"-"+e]=new N(t,e)),this.data[t+"-"+e]},L.prototype.proxyLoad=function(t,e,n){var r=this.src;return S(r.src,t,r.ownerDocument,e.width,e.height,n)},P.prototype.TYPES={LINEAR:1,RADIAL:2},_.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},_.prototype.findBackgroundImage=function(t,e){return e.parseBackgroundImages().filter(this.hasImageBackground).forEach(this.addImage(t,this.loadImage),this),t},_.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)),H("Added image #"+t.length,"string"==typeof r?r.substring(0,100):r))}),this)}},_.prototype.hasImageBackground=function(t){return"none"!==t.method},_.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 D(e.replace(/url\(['"]{0,}|['"]{0,}\)$/gi,""),!1):this.isSameOrigin(e)||!0===this.options.allowTaint||this.isSVG(e)?new D(e,!1):this.support.cors&&!this.options.allowTaint&&this.options.useCORS?new D(e,!0):this.options.proxy?new Ct(e,this.options.proxy):new M(e):new Ot(e)}return"linear-gradient"===t.method?new F(t):"gradient"===t.method?new Pt(t):"svg"===t.method?new Nt(t.args[0],this.support.svg):"IFRAME"===t.method?new L(t.args[0],this.isSameOrigin(t.args[0].src),this.options):new M(t)},_.prototype.isSVG=function(t){return"svg"===t.substring(t.length-3).toLowerCase()||Ot.prototype.isInline(t)},_.prototype.imageExists=function(t,e){return t.some((function(t){return t.src===e}))},_.prototype.isSameOrigin=function(t){return this.getOrigin(t)===this.origin},_.prototype.getOrigin=function(t){var e=this.link||(this.link=n.createElement("a"));return e.href=t,e.href=e.href,e.protocol+e.hostname+e.port},_.prototype.getPromise=function(t){return this.timeout(t,this.options.imageTimeout).catch((function(){return new M(t.src).promise.then((function(e){t.image=e}))}))},_.prototype.get=function(t){var e=null;return this.images.some((function(n){return(e=n).src===t}))?e:null},_.prototype.fetch=function(t){return this.images=t.reduce(gt(this.findBackgroundImage,this),this.findImages(t)),this.images.forEach((function(t,e){t.promise.then((function(){H("Succesfully loaded image #"+(e+1),t)}),(function(n){H("Failed loading image #"+(e+1),t,n)}))})),this.ready=Promise.all(this.images.map(this.getPromise,this)),H("Finished searching images"),this},_.prototype.timeout=function(t,e){var n,r=Promise.race([t.promise,new Promise((function(r,o){n=setTimeout((function(){H("Timed out loading image",t),o(t)}),e)}))]).then((function(t){return clearTimeout(n),t}));return r.catch((function(){clearTimeout(n)})),r},F.prototype=Object.create(P.prototype),F.prototype.stepRegExp=/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\s*(\d{1,3})?(%|px)?/,W.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},W.prototype.getOpacity=function(){return null===this.opacity?this.opacity=this.cssFloat("opacity"):this.opacity},W.prototype.assignStack=function(t){this.stack=t,t.children.push(this)},W.prototype.isElementVisible=function(){return this.node.nodeType===Node.TEXT_NODE?this.parent.visible:"none"!==this.css("display")&&!this.node.hasAttribute("data-html2canvas-ignore")&&("INPUT"!==this.node.nodeName||"hidden"!==this.node.getAttribute("type"))},W.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])},W.prototype.prefixedCss=function(t){var e=this.css(t);return e===s&&["webkit","moz","ms","o"].some((function(n){return(e=this.css(n+t.substr(0,1).toUpperCase()+t.substr(1)))!==s}),this),e===s?null:e},W.prototype.computedStyle=function(t){return this.node.ownerDocument.defaultView.getComputedStyle(this.node,t)},W.prototype.cssInt=function(t){var e=parseInt(this.css(t),10);return isNaN(e)?0:e},W.prototype.color=function(t){return this.colors[t]||(this.colors[t]=new O(this.css(t)))},W.prototype.cssFloat=function(t){var e=parseFloat(this.css(t));return isNaN(e)?0:e},W.prototype.fontWeight=function(){var t=this.css("fontWeight");switch(parseInt(t,10)){case 401:t="bold";break;case 400:t="normal"}return t},W.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},W.prototype.parseBackgroundImages=function(){return this.backgroundImages||(this.backgroundImages=j(this.css("backgroundImage")))},W.prototype.cssList=function(t,e){var n=(this.css(t)||"").split(",");return 1===(n=(n=n[e||0]||n[0]||"auto").trim().split(" ")).length&&(n=[n[0],n[0]]),n},W.prototype.parseBackgroundSize=function(t,e,n){var r,o,i=this.cssList("backgroundSize",n);if(V(i[0]))r=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}}r=parseInt(i[0],10)}return o="auto"===i[0]&&"auto"===i[1]?e.height:"auto"===i[1]?r/e.width*e.height:V(i[1])?t.height*parseFloat(i[1])/100:parseInt(i[1],10),"auto"===i[0]&&(r=o/e.height*e.width),{width:r,height:o}},W.prototype.parseBackgroundPosition=function(t,e,n,r){var o,i,a=this.cssList("backgroundPosition",n);return o=V(a[0])?(t.width-(r||e).width)*(parseFloat(a[0])/100):parseInt(a[0],10),i="auto"===a[1]?o/e.width*e.height:V(a[1])?(t.height-(r||e).height)*parseFloat(a[1])/100:parseInt(a[1],10),"auto"===a[0]&&(o=i/e.height*e.width),{left:o,top:i}},W.prototype.parseBackgroundRepeat=function(t){return this.cssList("backgroundRepeat",t)[0]},W.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 o=n[r].match(this.TEXT_SHADOW_VALUES);e.push({color:new O(o[0]),offsetX:o[1]?parseFloat(o[1].replace("px","")):0,offsetY:o[2]?parseFloat(o[2].replace("px","")):0,blur:o[3]?o[3].replace("px",""):0})}return e},W.prototype.parseTransform=function(){if(!this.transformData)if(this.hasTransform()){var t=this.parseBounds(),e=this.prefixedCss("transformOrigin").split(" ").map(z).map(U);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},W.prototype.parseTransformMatrix=function(){if(!this.transformMatrix){var t=this.prefixedCss("transform"),e=t?function(t){if(t&&"matrix"===t[1])return t[2].split(",").map((function(t){return parseFloat(t.trim())}))}(t.match(this.MATRIX_PROPERTY)):null;this.transformMatrix=e||[1,0,0,1,0,0]}return this.transformMatrix},W.prototype.parseBounds=function(){return this.bounds||(this.bounds=this.hasTransform()?X(this.node):q(this.node))},W.prototype.hasTransform=function(){return"1,0,0,1,0,0"!==this.parseTransformMatrix().join(",")||this.parent&&this.parent.hasTransform()},W.prototype.getValue=function(){var t,e,n=this.node.value||"";return"SELECT"===this.node.tagName?n=(e=(t=this.node).options[t.selectedIndex||0])&&e.text||"":"password"===this.node.type&&(n=Array(n.length+1).join("•")),0===n.length?this.node.placeholder||"":n},W.prototype.MATRIX_PROPERTY=/(matrix)\((.+)\)/,W.prototype.TEXT_SHADOW_PROPERTY=/((rgba|rgb)\([^\)]+\)(\s-?\d+px){0,})/g,W.prototype.TEXT_SHADOW_VALUES=/(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g,W.prototype.CLIP=/^rect\((\d+)px,? (\d+)px,? (\d+)px,? (\d+)px\)$/,G.prototype.calculateOverflowClips=function(){this.nodes.forEach((function(t){if(ut(t)){pt(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,pt(t)&&t.cleanDOM()}else ft(t)&&(t.clip=Y(t)?t.parent.clip:[]);pt(t)||(t.bounds=null)}),this)},G.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(gt((function(){this.asyncRenderer(t,e)}),this),0)},G.prototype.createPseudoHideStyles=function(t){this.createStyles(t,"."+St.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }.'+St.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')},G.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;}")},G.prototype.createStyles=function(t,e){var n=t.createElement("style");n.innerHTML=e,t.body.appendChild(n)},G.prototype.getPseudoElements=function(t){var e=[[t]];if(t.node.nodeType===Node.ELEMENT_NODE){var n=this.getPseudoElement(t,":before"),r=this.getPseudoElement(t,":after");n&&e.push(n),r&&e.push(r)}return vt(e)},G.prototype.getPseudoElement=function(t,e){var r=t.computedStyle(e);if(!r||!r.content||"none"===r.content||"-moz-alt-content"===r.content||"none"===r.display)return null;for(var o=function(t){var e=t.substr(0,1);return e===t.substr(t.length-1)&&e.match(/'|"/)?t.substr(1,t.length-2):t}(r.content),i="url"===o.substr(0,3),a=n.createElement(i?"img":"html2canvaspseudoelement"),s=new St(a,t,e),h=r.length-1;h>=0;h--){var c=r.item(h).replace(/(\-[a-z])/g,(function(t){return t.toUpperCase().replace("-","")}));a.style[c]=r[c]}if(a.className=St.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+St.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER,i)return a.src=j(o)[0].args[0],[s];var l=n.createTextNode(o);return a.appendChild(l),[s,new Bt(l,s)]},G.prototype.getChildren=function(t){return vt([].filter.call(t.node.childNodes,ht).map((function(e){var n=[e.nodeType===Node.TEXT_NODE?new Bt(e,t):new W(e,t)].filter(bt);return e.nodeType===Node.ELEMENT_NODE&&n.length&&"TEXTAREA"!==e.tagName?n[0].isElementVisible()?n.concat(this.getChildren(n[0])):[]:n}),this))},G.prototype.newStackingContext=function(t,e){var n=new At(e,t.getOpacity(),t.node,t.parent);t.cloneTo(n),(e?n.getParentStack(this):n.parent.stack).contexts.push(n),t.stack=n},G.prototype.createStackingContexts=function(){this.nodes.forEach((function(t){ut(t)&&(this.isRootElement(t)||function(t){return t.getOpacity()<1}(t)||function(t){var e=t.css("position");return"auto"!==(-1!==["absolute","relative","fixed"].indexOf(e)?t.css("zIndex"):"auto")}(t)||this.isBodyWithTransparentRoot(t)||t.hasTransform())?this.newStackingContext(t,!0):ut(t)&&(ct(t)&&ot(t)||function(t){return-1!==["inline-block","inline-table"].indexOf(t.css("display"))}(t)||lt(t))?this.newStackingContext(t,!1):t.assignStack(t.parent.stack)}),this)},G.prototype.isBodyWithTransparentRoot=function(t){return"BODY"===t.node.nodeName&&t.parent.color("backgroundColor").isTransparent()},G.prototype.isRootElement=function(t){return null===t.parent},G.prototype.sortStackingContexts=function(t){var e;t.contexts.sort((e=t.contexts.slice(0),function(t,n){return t.cssInt("zIndex")+e.indexOf(t)/e.length-(n.cssInt("zIndex")+e.indexOf(n)/e.length)})),t.contexts.forEach(this.sortStackingContexts,this)},G.prototype.parseTextBounds=function(t){return function(e,n,r){if("none"!==t.parent.css("textDecoration").substr(0,4)||0!==e.trim().length){if(this.support.rangeBounds&&!t.parent.hasTransform()){var o=r.slice(0,n).join("").length;return this.getRangeBounds(t.node,o,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{}}},G.prototype.getWrapperBounds=function(t,e){var n=t.ownerDocument.createElement("html2canvaswrapper"),r=t.parentNode,o=t.cloneNode(!0);n.appendChild(t.cloneNode(!0)),r.replaceChild(n,t);var i=e?X(n):q(n);return r.replaceChild(o,n),i},G.prototype.getRangeBounds=function(t,e,n){var r=this.range||(this.range=t.ownerDocument.createRange());return r.setStart(t,e),r.setEnd(t,e+n),r.getBoundingClientRect()},G.prototype.parse=function(t){var e=t.contexts.filter(nt),n=t.children.filter(ut),r=n.filter(dt(lt)),o=r.filter(dt(ct)).filter(dt(it)),i=n.filter(dt(ct)).filter(lt),a=r.filter(dt(ct)).filter(it),s=t.contexts.concat(r.filter(ct)).filter(ot),h=t.children.filter(ft).filter(st),c=t.contexts.filter(rt);e.concat(o).concat(i).concat(a).concat(s).concat(h).concat(c).forEach((function(t){this.renderQueue.push(t),at(t)&&(this.parse(t),this.renderQueue.push(new Q))}),this)},G.prototype.paint=function(t){try{t instanceof Q?this.renderer.ctx.restore():ft(t)?(pt(t.parent)&&t.parent.appendToDOM(),this.paintText(t),pt(t.parent)&&t.parent.cleanDOM()):this.paintNode(t)}catch(t){if(H(t),this.options.strict)throw t}},G.prototype.paintNode=function(t){at(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)},G.prototype.paintElement=function(t){var e=t.parseBounds();this.renderer.clip(t.backgroundClip,(function(){this.renderer.renderBackground(t,e,t.borders.borders.map(yt))}),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):H("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):H("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)}}),this)},G.prototype.paintCheckbox=function(t){var e=t.parseBounds(),n=Math.min(e.width,e.height),r={width:n-1,height:n-1,top:e.top,left:e.left},o=[3,3],i=[o,o,o,o],a=[1,1,1,1].map((function(t){return{color:new O("#A5A5A5"),width:t}})),s=K(r,i,a);this.renderer.clip(t.backgroundClip,(function(){this.renderer.rectangle(r.left+1,r.top+1,r.width-2,r.height-2,new O("#DEDEDE")),this.renderer.renderBorders($(a,r,s,i)),t.node.checked&&(this.renderer.font(new O("#424242"),"normal","normal","bold",n-3+"px","arial"),this.renderer.text("✔",r.left+n/6,r.top+n-1))}),this)},G.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 O("#DEDEDE"),1,new O("#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 O("#424242"))}),this)},G.prototype.paintFormValue=function(t){var e=t.getValue();if(e.length>0){var n=t.node.ownerDocument,r=n.createElement("html2canvaswrapper");["lineHeight","textAlign","fontFamily","fontWeight","fontSize","color","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height","borderLeftStyle","borderTopStyle","borderLeftWidth","borderTopWidth","boxSizing","whiteSpace","wordWrap"].forEach((function(e){try{r.style[e]=t.css(e)}catch(t){H("html2canvas: Parse: Exception caught in renderFormValue: "+t.message)}}));var o=t.parseBounds();r.style.position="fixed",r.style.left=o.left+"px",r.style.top=o.top+"px",r.textContent=e,n.body.appendChild(r),this.paintText(new Bt(r.firstChild,t)),n.body.removeChild(r)}},G.prototype.paintText=function(t){t.applyTextTransform();var n,r=e.html2canvas.punycode.ucs2.decode(t.node.data),o=this.options.letterRendering&&!function(t){return/^(normal|none|0px)$/.test(t.parent.css("letterSpacing"))}(t)||(n=t.node.data,/[^\u0000-\u00ff]/.test(n))?r.map((function(t){return e.html2canvas.punycode.ucs2.encode([t])})):function(t){for(var n,r,o=[],i=0,a=!1;t.length;)r=t[i],-1!==[32,13,10,9,45].indexOf(r)===a?((n=t.splice(0,i)).length&&o.push(e.html2canvas.punycode.ucs2.encode(n)),a=!a,i=0):i++,i>=t.length&&(n=t.splice(0,i)).length&&o.push(e.html2canvas.punycode.ucs2.encode(n));return o}(r),i=t.parent.fontWeight(),a=t.parent.css("fontSize"),s=t.parent.css("fontFamily"),h=t.parent.parseTextShadows();this.renderer.font(t.parent.color("color"),t.parent.css("fontStyle"),t.parent.css("fontVariant"),i,a,s),h.length?this.renderer.fontShadow(h[0].color,h[0].offsetX,h[0].offsetY,h[0].blur):this.renderer.clearShadow(),this.renderer.clip(t.parent.clip,(function(){o.map(this.parseTextBounds(t),this).forEach((function(e,n){e&&(this.renderer.text(o[n],e.left,e.bottom),this.renderTextDecoration(t.parent,e,this.fontMetrics.getMetrics(s,a)))}),this)}),this)},G.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"))}};var y={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};G.prototype.parseBorders=function(t){var e=t.parseBounds(),n=function(t){return["TopLeft","TopRight","BottomRight","BottomLeft"].map((function(e){var n=t.css("border"+e+"Radius").split(" ");return n.length<=1&&(n[1]=n[0]),n.map(mt)}))}(t),r=["Top","Right","Bottom","Left"].map((function(e,n){var r=t.css("border"+e+"Style"),o=t.color("border"+e+"Color");"inset"===r&&o.isBlack()&&(o=new O([255,255,255,o.a]));var i=y[r]?y[r][n]:null;return{width:t.cssInt("border"+e+"Width"),color:i?o[i[0]](i[1]):o,args:null}})),o=K(e,n,r);return{clip:this.parseBackgroundClip(t,o,r,n,e),borders:$(r,e,o,n)}},G.prototype.parseBackgroundClip=function(t,e,n,r,o){var i=[];switch(t.css("backgroundClip")){case"content-box":case"padding-box":et(i,r[0],r[1],e.topLeftInner,e.topRightInner,o.left+n[3].width,o.top+n[0].width),et(i,r[1],r[2],e.topRightInner,e.bottomRightInner,o.left+o.width-n[1].width,o.top+n[0].width),et(i,r[2],r[3],e.bottomRightInner,e.bottomLeftInner,o.left+o.width-n[1].width,o.top+o.height-n[2].width),et(i,r[3],r[0],e.bottomLeftInner,e.topLeftInner,o.left+n[3].width,o.top+o.height-n[2].width);break;default:et(i,r[0],r[1],e.topLeftOuter,e.topRightOuter,o.left,o.top),et(i,r[1],r[2],e.topRightOuter,e.bottomRightOuter,o.left+o.width,o.top),et(i,r[2],r[3],e.bottomRightOuter,e.bottomLeftOuter,o.left+o.width,o.top+o.height),et(i,r[3],r[0],e.bottomLeftOuter,e.topLeftOuter,o.left,o.top+o.height)}return i};var b=0,v="withCredentials"in new XMLHttpRequest,w="crossOrigin"in new Image;St.prototype.cloneTo=function(t){St.prototype.cloneTo.call(this,t),t.isPseudoElement=!0,t.before=this.before},St.prototype=Object.create(W.prototype),St.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()},St.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node),this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")},St.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]},St.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before",St.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after",It.prototype.renderImage=function(t,e,n,r){var o=t.cssInt("paddingLeft"),i=t.cssInt("paddingTop"),a=t.cssInt("paddingRight"),s=t.cssInt("paddingBottom"),h=n.borders,c=e.width-(h[1].width+h[3].width+o+a),l=e.height-(h[0].width+h[2].width+i+s);this.drawImage(r,0,0,r.image.width||c,r.image.height||l,e.left+o+h[3].width,e.top+i+h[0].width,c,l)},It.prototype.renderBackground=function(t,e,n){e.height>0&&e.width>0&&(this.renderBackgroundColor(t,e),this.renderBackgroundImage(t,e,n))},It.prototype.renderBackgroundColor=function(t,e){var n=t.color("backgroundColor");n.isTransparent()||this.rectangle(e.left,e.top,e.width,e.height,n)},It.prototype.renderBorders=function(t){t.forEach(this.renderBorder,this)},It.prototype.renderBorder=function(t){t.color.isTransparent()||null===t.args||this.drawShape(t.args,t.color)},It.prototype.renderBackgroundImage=function(t,e,n){t.parseBackgroundImages().reverse().forEach((function(r,o,i){switch(r.method){case"url":var a=this.images.get(r.args[0]);a?this.renderBackgroundRepeating(t,e,a,i.length-(o+1),n):H("Error loading background-image",r.args[0]);break;case"linear-gradient":case"gradient":var s=this.images.get(r.value);s?this.renderBackgroundGradient(s,e,n):H("Error loading background-image",r.args[0]);break;case"none":break;default:H("Unknown background-image type",r.args[0])}}),this)},It.prototype.renderBackgroundRepeating=function(t,e,n,r,o){var i=t.parseBackgroundSize(e,n.image,r),a=t.parseBackgroundPosition(e,n.image,r,i);switch(t.parseBackgroundRepeat(r)){case"repeat-x":case"repeat no-repeat":this.backgroundRepeatShape(n,a,i,e,e.left+o[3],e.top+a.top+o[0],99999,i.height,o);break;case"repeat-y":case"no-repeat repeat":this.backgroundRepeatShape(n,a,i,e,e.left+a.left+o[3],e.top+o[0],i.width,99999,o);break;case"no-repeat":this.backgroundRepeatShape(n,a,i,e,e.left+a.left+o[3],e.top+a.top+o[0],i.width,i.height,o);break;default:this.renderBackgroundRepeat(n,a,i,{top:e.top,left:e.left},o[3],o[0])}},At.prototype=Object.create(W.prototype),At.prototype.getParentStack=function(t){var e=this.parent?this.parent.stack:null;return e?e.ownStacking?e:e.getParentStack(t):t.stack},Rt.prototype.testRangeBounds=function(t){var e,n,r=!1;return t.createRange&&(e=t.createRange()).getBoundingClientRect&&((n=t.createElement("boundtest")).style.height="123px",n.style.display="block",t.body.appendChild(n),e.selectNode(n),123===e.getBoundingClientRect().height&&(r=!0),t.body.removeChild(n)),r},Rt.prototype.testCORS=function(){return void 0!==(new Image).crossOrigin},Rt.prototype.testSVG=function(){var t=new Image,e=n.createElement("canvas"),r=e.getContext("2d");t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),e.toDataURL()}catch(t){return!1}return!0},Ot.prototype.hasFabric=function(){return html2canvas.fabric?Promise.resolve():Promise.reject(new Error("html2canvas.svg.js is not loaded, cannot render svg"))},Ot.prototype.inlineFormatting=function(t){return/^data:image\/svg\+xml;base64,/.test(t)?this.decode64(this.removeContentType(t)):this.removeContentType(t)},Ot.prototype.removeContentType=function(t){return t.replace(/^data:image\/svg\+xml(;base64)?,/,"")},Ot.prototype.isInline=function(t){return/^data:image\/svg\+xml/i.test(t)},Ot.prototype.createCanvas=function(t){var e=this;return function(n,r){var o=new html2canvas.fabric.StaticCanvas("c");e.image=o.lowerCanvasEl,o.setWidth(r.width).setHeight(r.height).add(html2canvas.fabric.util.groupSVGElements(n,r)).renderAll(),t(o.lowerCanvasEl)}},Ot.prototype.decode64=function(t){return"function"==typeof e.atob?e.atob(t):Mt(t)},Nt.prototype=Object.create(Ot.prototype),Bt.prototype=Object.create(W.prototype),Bt.prototype.applyTextTransform=function(){this.node.data=this.transform(this.parent.css("textTransform"))},Bt.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,Lt);case"uppercase":return e.toUpperCase();default:return e}},Pt.prototype=Object.create(P.prototype),_t.prototype=Object.create(It.prototype),_t.prototype.setFillStyle=function(t){return this.ctx.fillStyle="object"===r(t)&&t.isColor?t.toString():t,this.ctx},_t.prototype.rectangle=function(t,e,n,r,o){this.setFillStyle(o).fillRect(t,e,n,r)},_t.prototype.circle=function(t,e,n,r){this.setFillStyle(r),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()},_t.prototype.circleStroke=function(t,e,n,r,o,i){this.circle(t,e,n,r),this.ctx.strokeStyle=i.toString(),this.ctx.stroke()},_t.prototype.drawShape=function(t,e){this.shape(t),this.setFillStyle(e).fill()},_t.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=n.createElement("canvas").getContext("2d"),t.tainted=!0}}return t.tainted},_t.prototype.drawImage=function(t,e,n,r,o,i,a,s,h){this.taints(t)&&!this.options.allowTaint||this.ctx.drawImage(t.image,e,n,r,o,i,a,s,h)},_t.prototype.clip=function(t,e,n){this.ctx.save(),t.filter(Ft).forEach((function(t){this.shape(t).clip()}),this),e.call(n),this.ctx.restore()},_t.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},_t.prototype.font=function(t,e,n,r,o,i){this.setFillStyle(t).font=[e,n,r,o,i].join(" ").split(",")[0]},_t.prototype.fontShadow=function(t,e,n,r){this.setVariable("shadowColor",t.toString()).setVariable("shadowOffsetY",e).setVariable("shadowOffsetX",n).setVariable("shadowBlur",r)},_t.prototype.clearShadow=function(){this.setVariable("shadowColor","rgba(0,0,0,0)")},_t.prototype.setOpacity=function(t){this.ctx.globalAlpha=t},_t.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])},_t.prototype.setVariable=function(t,e){return this.variables[t]!==e&&(this.variables[t]=this.ctx[t]=e),this},_t.prototype.text=function(t,e,n){this.ctx.fillText(t,e,n)},_t.prototype.backgroundRepeatShape=function(t,e,n,r,o,i,a,s,h){var c=[["line",Math.round(o),Math.round(i)],["line",Math.round(o+a),Math.round(i)],["line",Math.round(o+a),Math.round(s+i)],["line",Math.round(o),Math.round(s+i)]];this.clip([c],(function(){this.renderBackgroundRepeat(t,e,n,r,h[3],h[0])}),this)},_t.prototype.renderBackgroundRepeat=function(t,e,n,r,o,i){var a=Math.round(r.left+e.left+o),s=Math.round(r.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)},_t.prototype.renderBackgroundGradient=function(t,e){if(t instanceof F){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)}},_t.prototype.resizeImage=function(t,e){var r=t.image;if(r.width===e.width&&r.height===e.height)return r;var o=n.createElement("canvas");return o.width=e.width,o.height=e.height,o.getContext("2d").drawImage(r,0,0,r.width,r.height,0,0,e.width,e.height),o}}else(e||t.exports).html2canvas=function(){return Promise.reject("No canvas support")};function x(t,r,o,i,a){var s,h=r.contentWindow,c=new Rt(h.document),l=new _(o,c),d=q(t),u="view"===o.type?i:(s=h.document,Math.max(Math.max(s.body.scrollWidth,s.documentElement.scrollWidth),Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),Math.max(s.body.clientWidth,s.documentElement.clientWidth))),p="view"===o.type?a:function(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))}(h.document);if(void 0!==e.TCB_Front&&TCB_Front.browser&&TCB_Front.browser.ios&&TCB_Front.browser.safari){var f=16777216;if(u*p>=f){var g=Math.sqrt(f)/Math.sqrt(u*p);u=Math.floor(u*g),p=Math.floor(p*g),H("IOS-Safari: renderWindow: modified width x height to ".concat(u," x ").concat(p))}}var m=new o.renderer(u,p,l,o,n);return new G(t,m,c,l,o).ready.then((function(){var e;return H("Finished rendering"),e="view"===o.type?E(m.canvas,{width:m.canvas.width,height:m.canvas.height,top:0,left:0,x:0,y:0}):t===h.document.body||t===h.document.documentElement||null!=o.canvas?m.canvas:E(m.canvas,{width:null!=o.width?o.width:d.width,height:null!=o.height?o.height:d.height,top:d.top,left:d.left,x:h.pageXOffset,y:h.pageYOffset}),function(t,e){e.removeContainer&&(t.parentNode.removeChild(t),H("Cleaned up container"))}(r,o),e}))}function E(t,e){var r=n.createElement("canvas"),o=Math.min(t.width-1,Math.max(0,e.left)),i=Math.min(t.width,Math.max(1,e.left+e.width)),a=Math.min(t.height-1,Math.max(0,e.top)),s=Math.min(t.height,Math.max(1,e.top+e.height));return r.width=e.width,r.height=e.height,H("Cropping canvas at:","left:",e.left,"top:",e.top,"width:",i-o,"height:",s-a),H("Resulting crop with width",e.width,"and height",e.height," with x",o,"and y",a),r.getContext("2d").drawImage(t,o,a,i-o,s-a,e.x,e.y,i-o,s-a),r}function T(t,e){for(var r=3===t.nodeType?n.createTextNode(t.nodeValue):t.cloneNode(!1),o=t.firstChild;o;)!0!==e&&1===o.nodeType&&"SCRIPT"===o.nodeName||r.appendChild(T(o,e)),o=o.nextSibling;return r}function k(t,e,r,o,i,a,s){!function(t){[].slice.call(t.querySelectorAll("canvas"),0).forEach((function(t){t.setAttribute(c,"canvas-"+l++)}))}(t);var h=n.documentMode&&n.documentMode<=9?T(t.documentElement,i.javascriptEnabled):t.documentElement.cloneNode(!0),d=e.createElement("iframe");return d.className="html2canvas-container",d.style.visibility="hidden",d.style.position="fixed",d.style.left="-10000px",d.style.top="0px",d.style.border="0",d.width=r,d.height=o,d.scrolling="no",e.body.appendChild(d),new Promise((function(e){var n=d.contentWindow.document;C(t.documentElement,h,"textarea"),C(t.documentElement,h,"select"),d.contentWindow.onload=d.onload=function(){var r=setInterval((function(){n.body.childNodes.length>0&&(function(t,e){[].slice.call(t.querySelectorAll("[data-html2canvas-canvas-clone]"),0).forEach((function(t){try{var n=e.querySelector('[data-html2canvas-canvas-clone="'+t.getAttribute(c)+'"]');n&&(n.width=t.width,n.height=t.height,n.getContext("2d").putImageData(t.getContext("2d").getImageData(0,0,t.width,t.height),0,0))}catch(e){H("Unable to copy canvas content from",t,e)}t.removeAttribute(c)}))}(t,n),clearInterval(r),"view"===i.type&&d.contentWindow.scrollTo(a,s),e(d))}),50)},n.open(),n.write("<!DOCTYPE html><html></html>"),function(t,e,n){!t.defaultView||e===t.defaultView.pageXOffset&&n===t.defaultView.pageYOffset||t.defaultView.scrollTo(e,n)}(t,a,s),n.replaceChild(!0===i.javascriptEnabled?n.adoptNode(h):A(n.adoptNode(h)),n.documentElement),n.close()}))}function C(t,e,n){for(var r=t.getElementsByTagName(n),o=e.getElementsByTagName(n),i=r.length,a=0;a<i;a++)o[a].value=r[a].value}function S(t,n,r,o,i,a){return new wt(t,n,e.document).then(I(t)).then((function(t){return k(t,r,o,i,a,0,0)}))}function I(t){return function(e){var r,o=new DOMParser;try{r=o.parseFromString(e,"text/html")}catch(t){H("DOMParser not supported, falling back to createHTMLDocument"),r=n.implementation.createHTMLDocument("");try{r.open(),r.write(e),r.close()}catch(t){H("createHTMLDocument write not supported, falling back to document.body.innerHTML"),r.body.innerHTML=e}}var i=r.querySelector("base");if(!i||!i.href.host){var a=r.createElement("base");a.href=t,r.head.insertBefore(a,r.head.firstChild)}return r}}function A(t){return[].slice.call(t.childNodes,0).filter(R).forEach((function(e){"SCRIPT"===e.tagName?t.removeChild(e):A(e)})),t}function R(t){return t.nodeType===Node.ELEMENT_NODE}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)}function M(t){if(this.src=t,H("DummyImageContainer for",t),!this.promise||!this.image){H("Initiating DummyImageContainer"),M.prototype.image=new Image;var e=this.image;M.prototype.promise=new Promise((function(t,n){e.onload=t,e.onerror=n,e.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",!0===e.complete&&t(e)}))}}function N(t,e){var r,o,i=n.createElement("div"),a=n.createElement("img"),s=n.createElement("span"),h="Hidden Text";i.style.visibility="hidden",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin=0,i.style.padding=0,n.body.appendChild(i),a.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",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(n.createTextNode(h)),i.appendChild(s),i.appendChild(a),r=a.offsetTop-s.offsetTop+1,i.removeChild(s),i.appendChild(n.createTextNode(h)),i.style.lineHeight="normal",a.style.verticalAlign="super",o=a.offsetTop-i.offsetTop+1,n.body.removeChild(i),this.baseline=r,this.lineWidth=1,this.middle=o}function B(){this.data={}}function L(t,e,n){this.image=null,this.src=t;var r=this,o=q(t);this.promise=(e?new Promise((function(e){"about:blank"===t.contentWindow.document.URL||null==t.contentWindow.document.documentElement?t.contentWindow.onload=t.onload=function(){e(t)}:e(t)})):this.proxyLoad(n.proxy,o,n)).then((function(t){return html2canvas(t.contentWindow.document.documentElement,{type:"view",width:t.width,height:t.height,proxy:n.proxy,javascriptEnabled:n.javascriptEnabled,removeContainer:n.removeContainer,allowTaint:n.allowTaint,imageTimeout:n.imageTimeout/2})})).then((function(t){return r.image=t}))}function P(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)}function D(t,e){this.src=t,this.image=new Image;var n=this;this.tainted=null,this.promise=new Promise((function(r,o){n.image.onload=r,n.image.onerror=o,e&&(n.image.crossOrigin="anonymous"),n.image.src=t,!0===n.image.complete&&r(n.image)}))}function _(t,n){this.link=null,this.options=t,this.support=n,this.origin=this.getOrigin(e.location.href)}function F(t){P.apply(this,arguments),this.type=this.TYPES.LINEAR;var e=null===t.args[0].match(this.stepRegExp);e?t.args[0].split(" ").reverse().forEach((function(t){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 e=this.y0,n=this.x0;this.y0=this.y1,this.x0=this.x1,this.x1=n,this.y1=e}}),this):(this.y0=0,this.y1=1),this.colorStops=t.args.slice(e?1:0).map((function(t){var e=t.match(this.stepRegExp);return{color:new O(e[1]),stop:"%"===e[3]?e[2]/100:null}}),this),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,r){return null!==n.stop&&(t.stop=(n.stop-this.colorStops[e-1].stop)/(r+1)+this.colorStops[e-1].stop,!0)}),this)}),this)}function H(){e.html2canvas.logging&&e.console&&e.console.log&&Function.prototype.bind.call(e.console.log,e.console).apply(e.console,[Date.now()-e.html2canvas.start+"ms","html2canvas:"].concat([].slice.call(arguments,0)))}function W(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 V(t){return-1!==t.toString().indexOf("%")}function j(t){var e,n,r,o,i,a,s,h=[],c=0,l=0,d=function(){e&&('"'===n.substr(0,1)&&(n=n.substr(1,n.length-2)),n&&s.push(n),"-"===e.substr(0,1)&&(o=e.indexOf("-",1)+1)>0&&(r=e.substr(0,o),e=e.substr(o)),h.push({prefix:r,method:e.toLowerCase(),value:i,args:s,image:null})),s=[],e=r=n=i=""};return s=[],e=r=n=i="",t.split("").forEach((function(t){if(!(0===c&&" \r\n\t".indexOf(t)>-1)){switch(t){case'"':a?a===t&&(a=null):a=t;break;case"(":if(a)break;if(0===c)return c=1,void(i+=t);l++;break;case")":if(a)break;if(1===c){if(0===l)return c=0,i+=t,void d();l--}break;case",":if(a)break;if(0===c)return void d();if(1===c&&0===l&&!e.match(/^url$/i))return s.push(n),n="",void(i+=t)}i+=t,0===c?e+=t:n+=t}})),d(),h}function z(t){return t.replace("px","")}function U(t){return parseFloat(t)}function q(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{}}function X(t){var e=t.offsetParent?X(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}}function G(t,e,n,r,o){H("Starting NodeParser"),this.renderer=e,this.options=o,this.range=null,this.support=n,this.renderQueue=[],this.stack=new At(!0,1,t.ownerDocument,null);var i=new W(t,null);if(o.background&&e.rectangle(0,0,e.width,e.height,new O(o.background)),t===t.ownerDocument.documentElement){var a=new W(i.color("backgroundColor").isTransparent()?t.ownerDocument.body:t.ownerDocument.documentElement,null);e.rectangle(0,0,e.width,e.height,a.color("backgroundColor"))}i.visibile=i.isElementVisible(),this.createPseudoHideStyles(t.ownerDocument),this.disableAnimations(t.ownerDocument),this.nodes=vt([i].concat(this.getChildren(i)).filter((function(t){return t.visible=t.isElementVisible()})).map(this.getPseudoElements,this)),this.fontMetrics=new B,H("Fetched nodes, total:",this.nodes.length),H("Calculate overflow clips"),this.calculateOverflowClips(),H("Start fetching images"),this.images=r.fetch(this.nodes.filter(ut)),this.ready=this.images.ready.then(gt((function(){return H("Images loaded, starting parsing"),H("Creating stacking contexts"),this.createStackingContexts(),H("Sorting stacking contexts"),this.sortStackingContexts(this.stack),this.parse(this.stack),H("Render queue created with "+this.renderQueue.length+" items"),new Promise(gt((function(t){o.async?"function"==typeof o.async?o.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 Q(){}function $(t,e,n,r){return t.map((function(o,i){if(o.width>0){var a=e.left,s=e.top,h=e.width,c=e.height-t[2].width;switch(i){case 0:c=t[0].width,o.args=tt({c1:[a,s],c2:[a+h,s],c3:[a+h-t[1].width,s+c],c4:[a+t[3].width,s+c]},r[0],r[1],n.topLeftOuter,n.topLeftInner,n.topRightOuter,n.topRightInner);break;case 1:a=e.left+e.width-t[1].width,h=t[1].width,o.args=tt({c1:[a+h,s],c2:[a+h,s+c+t[2].width],c3:[a,s+c],c4:[a,s+t[0].width]},r[1],r[2],n.topRightOuter,n.topRightInner,n.bottomRightOuter,n.bottomRightInner);break;case 2:s=s+e.height-t[2].width,c=t[2].width,o.args=tt({c1:[a+h,s+c],c2:[a,s+c],c3:[a+t[3].width,s],c4:[a+h-t[3].width,s]},r[2],r[3],n.bottomRightOuter,n.bottomRightInner,n.bottomLeftOuter,n.bottomLeftInner);break;case 3:h=t[3].width,o.args=tt({c1:[a,s+c+t[2].width],c2:[a,s],c3:[a+h,s+t[0].width],c4:[a+h,s+c]},r[3],r[0],n.bottomLeftOuter,n.bottomLeftInner,n.topLeftOuter,n.topLeftInner)}}return o}))}function J(t,e,n,r){var o=(Math.sqrt(2)-1)/3*4,i=n*o,a=r*o,s=t+n,h=e+r;return{topLeft:Z({x:t,y:h},{x:t,y:h-a},{x:s-i,y:e},{x:s,y:e}),topRight:Z({x:t,y:e},{x:t+i,y:e},{x:s,y:h-a},{x:s,y:h}),bottomRight:Z({x:s,y:e},{x:s,y:e+a},{x:t+i,y:h},{x:t,y:h}),bottomLeft:Z({x:s,y:h},{x:s-i,y:h},{x:t,y:e+a},{x:t,y:e})}}function K(t,e,n){var r=t.left,o=t.top,i=t.width,a=t.height,s=e[0][0],h=e[0][1],c=e[1][0],l=e[1][1],d=e[2][0],u=e[2][1],p=e[3][0],f=e[3][1],g=i-c,m=a-u,y=i-d,b=a-f;return{topLeftOuter:J(r,o,s,h).topLeft.subdivide(.5),topLeftInner:J(r+n[3].width,o+n[0].width,Math.max(0,s-n[3].width),Math.max(0,h-n[0].width)).topLeft.subdivide(.5),topRightOuter:J(r+g,o,c,l).topRight.subdivide(.5),topRightInner:J(r+Math.min(g,i+n[3].width),o+n[0].width,g>i+n[3].width?0:c-n[3].width,l-n[0].width).topRight.subdivide(.5),bottomRightOuter:J(r+y,o+m,d,u).bottomRight.subdivide(.5),bottomRightInner:J(r+Math.min(y,i-n[3].width),o+Math.min(m,a+n[0].width),Math.max(0,d-n[1].width),u-n[2].width).bottomRight.subdivide(.5),bottomLeftOuter:J(r,o+b,p,f).bottomLeft.subdivide(.5),bottomLeftInner:J(r+n[3].width,o+b,Math.max(0,p-n[3].width),f-n[2].width).bottomLeft.subdivide(.5)}}function Z(t,e,n,r){var o=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:r,subdivide:function(i){var a=o(t,e,i),s=o(e,n,i),h=o(n,r,i),c=o(a,s,i),l=o(s,h,i),d=o(c,l,i);return[Z(t,a,c,d),Z(d,l,h,r)]},curveTo:function(t){t.push(["bezierCurve",e.x,e.y,n.x,n.y,r.x,r.y])},curveToReversed:function(r){r.push(["bezierCurve",n.x,n.y,e.x,e.y,t.x,t.y])}}}function tt(t,e,n,r,o,i,a){var s=[];return e[0]>0||e[1]>0?(s.push(["line",r[1].start.x,r[1].start.y]),r[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",o[1].end.x,o[1].end.y]),o[1].curveToReversed(s)):s.push(["line",t.c4[0],t.c4[1]]),s}function et(t,e,n,r,o,i,a){e[0]>0||e[1]>0?(t.push(["line",r[0].start.x,r[0].start.y]),r[0].curveTo(t),r[1].curveTo(t)):t.push(["line",i,a]),(n[0]>0||n[1]>0)&&t.push(["line",o[0].start.x,o[0].start.y])}function nt(t){return t.cssInt("zIndex")<0}function rt(t){return t.cssInt("zIndex")>0}function ot(t){return 0===t.cssInt("zIndex")}function it(t){return-1!==["inline","inline-block","inline-table"].indexOf(t.css("display"))}function at(t){return t instanceof At}function st(t){return t.node.data.trim().length>0}function ht(t){return t.nodeType===Node.TEXT_NODE||t.nodeType===Node.ELEMENT_NODE}function ct(t){return"static"!==t.css("position")}function lt(t){return"none"!==t.css("float")}function dt(t){var e=this;return function(){return!t.apply(e,arguments)}}function ut(t){return t.node.nodeType===Node.ELEMENT_NODE}function pt(t){return!0===t.isPseudoElement}function ft(t){return t.node.nodeType===Node.TEXT_NODE}function gt(t,e){return function(){return t.apply(e,arguments)}}function mt(t){return parseInt(t,10)}function yt(t){return t.width}function bt(t){return t.node.nodeType!==Node.ELEMENT_NODE||-1===["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(t.node.nodeName)}function vt(t){return[].concat.apply([],t)}function wt(t,e,n){if(!e)return Promise.reject("No proxy configured");var r=Tt(v),o=kt(e,t,r);return v?Dt(o):Et(n,o,r).then((function(t){return Mt(t.content)}))}function xt(t,e,n){var r=Tt(w),o=kt(e,t,r);return w?Promise.resolve(o):Et(n,o,r).then((function(t){return"data:"+t.type+";base64,"+t.content}))}function Et(t,n,r){return new Promise((function(o,i){var a=t.createElement("script"),s=function(){delete e.html2canvas.proxy[r],t.body.removeChild(a)};e.html2canvas.proxy[r]=function(t){s(),o(t)},a.src=n,a.onerror=function(t){s(),i(t)},t.body.appendChild(a)}))}function Tt(t){return t?"":"html2canvas_"+Date.now()+"_"+ ++b+"_"+Math.round(1e5*Math.random())}function kt(t,e,n){return t+"?url="+encodeURIComponent(e)+(n.length?"&callback=html2canvas.proxy."+n:"")}function Ct(t,e){n.createElement("script");var r=n.createElement("a");r.href=t,t=r.href,this.src=t,this.image=new Image;var o=this;this.promise=new Promise((function(r,i){o.image.crossOrigin="Anonymous",o.image.onload=r,o.image.onerror=i,new xt(t,e,n).then((function(t){o.image.src=t})).catch(i)}))}function St(t,e,n){W.call(this,t,e),this.isPseudoElement=!0,this.before=":before"===n}function It(t,e,n,r,o){this.width=t,this.height=e,this.images=n,this.options=r,this.document=o}function At(t,e,n,r){W.call(this,n,r),this.ownStacking=t,this.contexts=[],this.children=[],this.opacity=(this.parent?this.parent.stack.opacity:1)*e}function Rt(t){this.rangeBounds=this.testRangeBounds(t),this.cors=this.testCORS(),this.svg=this.testSVG()}function Ot(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)):Dt(t)})).then((function(t){return new Promise((function(n){html2canvas.fabric.loadSVGFromString(t,e.createCanvas.call(e,n))}))}))}function Mt(t){var e,n,r,o,i,a,s,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=t.length,l="";for(e=0;e<c;e+=4)i=h.indexOf(t[e])<<2|(n=h.indexOf(t[e+1]))>>4,a=(15&n)<<4|(r=h.indexOf(t[e+2]))>>2,s=(3&r)<<6|(o=h.indexOf(t[e+3])),l+=64===r?String.fromCharCode(i):64===o||-1===o?String.fromCharCode(i,a):String.fromCharCode(i,a,s);return l}function Nt(t,e){this.src=t,this.image=null;var n=this;this.promise=e?new Promise((function(e,r){n.image=new Image,n.image.onload=e,n.image.onerror=r,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){html2canvas.fabric.parseSVGDocument(t,n.createCanvas.call(n,e))}))}))}function Bt(t,e){W.call(this,t,e)}function Lt(t,e,n){if(t.length>0)return e+n.toUpperCase()}function Pt(t){P.apply(this,arguments),this.type="linear"===t.args[0]?this.TYPES.LINEAR:this.TYPES.RADIAL}function Dt(t){return new Promise((function(e,n){var r=new XMLHttpRequest;r.open("GET",t),r.onload=function(){200===r.status?e(r.responseText):n(new Error(r.statusText))},r.onerror=function(){n(new Error("Network Error"))},r.send()}))}function _t(t,e){It.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={},H("Initialized CanvasRenderer with size",t,"x",e)}function Ft(t){return t.length>0}}.call({},"undefined"!=typeof window?window:void 0,"undefined"!=typeof document?document:void 0)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r](i,i.exports,n),i.loaded=!0,i.exports}n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n(7794)})();