UNPKG

active-page-vue

Version:

A Vue-based visual page editor component

1 lines 175 kB
(("undefined"!==typeof self?self:this)["webpackJsonpAsEditor"]=("undefined"!==typeof self?self:this)["webpackJsonpAsEditor"]||[]).push([[1],{"060d":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCounterText=e.inlineListItemElement=e.getListOwner=void 0;var r=t("0ce7"),n=t("5644"),B=c(n),a=t("b654"),o=c(a),s=t("7f66"),i=t("33c1");function c(A){return A&&A.__esModule?A:{default:A}}var l=7,u=["OL","UL","MENU"],Q=(e.getListOwner=function(A){var e=A.parent;if(!e)return null;do{var t=-1!==u.indexOf(e.tagName);if(t)return e;e=e.parent}while(e);return A.parent},e.inlineListItemElement=function(A,e,t){var n=e.style.listStyle;if(n){var a=A.ownerDocument.defaultView.getComputedStyle(A,null),i=A.ownerDocument.createElement("html2canvaswrapper");switch((0,r.copyCSSStyles)(a,i),i.style.position="absolute",i.style.bottom="auto",i.style.display="block",i.style.letterSpacing="normal",n.listStylePosition){case s.LIST_STYLE_POSITION.OUTSIDE:i.style.left="auto",i.style.right=A.ownerDocument.defaultView.innerWidth-e.bounds.left-e.style.margin[1].getAbsoluteValue(e.bounds.width)+l+"px",i.style.textAlign="right";break;case s.LIST_STYLE_POSITION.INSIDE:i.style.left=e.bounds.left-e.style.margin[3].getAbsoluteValue(e.bounds.width)+"px",i.style.right="auto",i.style.textAlign="left";break}var c=void 0,u=e.style.margin[0].getAbsoluteValue(e.bounds.width),Q=n.listStyleImage;if(Q)if("url"===Q.method){var w=A.ownerDocument.createElement("img");w.src=Q.args[0],i.style.top=e.bounds.top-u+"px",i.style.width="auto",i.style.height="auto",i.appendChild(w)}else{var U=.5*parseFloat(e.style.font.fontSize);i.style.top=e.bounds.top-u+e.bounds.height-1.5*U+"px",i.style.width=U+"px",i.style.height=U+"px",i.style.backgroundImage=a.listStyleImage}else"number"===typeof e.listIndex&&(c=A.ownerDocument.createTextNode(b(e.listIndex,n.listStyleType,!0)),i.appendChild(c),i.style.top=e.bounds.top-u+"px");var g=A.ownerDocument.body;g.appendChild(i),c?(e.childNodes.push(o.default.fromTextNode(c,e)),g.removeChild(i)):e.childNodes.push(new B.default(i,e,t,0))}},{integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]}),w={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},U={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},g={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},d=function(A,e,t,r,n,B){return A<e||A>t?b(A,n,B.length>0):r.integers.reduce((function(e,t,n){while(A>=t)A-=t,e+=r.values[n];return e}),"")+B},C=function(A,e,t,r){var n="";do{t||A--,n=r(A)+n,A/=e}while(A*e>=e);return n},F=function(A,e,t,r,n){var B=t-e+1;return(A<0?"-":"")+(C(Math.abs(A),B,r,(function(A){return(0,i.fromCodePoint)(Math.floor(A%B)+e)}))+n)},f=function(A,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:". ",r=e.length;return C(Math.abs(A),r,!1,(function(A){return e[Math.floor(A%r)]}))+t},E=1,h=2,H=4,p=8,N=function(A,e,t,n,B,a){if(A<-9999||A>9999)return b(A,s.LIST_STYLE_TYPE.CJK_DECIMAL,B.length>0);var o=Math.abs(A),i=B;if(0===o)return e[0]+i;for(var c=0;o>0&&c<=4;c++){var l=o%10;0===l&&(0,r.contains)(a,E)&&""!==i?i=e[l]+i:l>1||1===l&&0===c||1===l&&1===c&&(0,r.contains)(a,h)||1===l&&1===c&&(0,r.contains)(a,H)&&A>100||1===l&&c>1&&(0,r.contains)(a,p)?i=e[l]+(c>0?t[c-1]:"")+i:1===l&&c>0&&(i=t[c-1]+i),o=Math.floor(o/10)}return(A<0?n:"")+i},I="十百千萬",K="拾佰仟萬",v="マイナス",T="마이너스 ",b=e.createCounterText=function(A,e,t){var r=t?". ":"",n=t?"、":"",B=t?", ":"";switch(e){case s.LIST_STYLE_TYPE.DISC:return"•";case s.LIST_STYLE_TYPE.CIRCLE:return"◦";case s.LIST_STYLE_TYPE.SQUARE:return"◾";case s.LIST_STYLE_TYPE.DECIMAL_LEADING_ZERO:var a=F(A,48,57,!0,r);return a.length<4?"0"+a:a;case s.LIST_STYLE_TYPE.CJK_DECIMAL:return f(A,"〇一二三四五六七八九",n);case s.LIST_STYLE_TYPE.LOWER_ROMAN:return d(A,1,3999,Q,s.LIST_STYLE_TYPE.DECIMAL,r).toLowerCase();case s.LIST_STYLE_TYPE.UPPER_ROMAN:return d(A,1,3999,Q,s.LIST_STYLE_TYPE.DECIMAL,r);case s.LIST_STYLE_TYPE.LOWER_GREEK:return F(A,945,969,!1,r);case s.LIST_STYLE_TYPE.LOWER_ALPHA:return F(A,97,122,!1,r);case s.LIST_STYLE_TYPE.UPPER_ALPHA:return F(A,65,90,!1,r);case s.LIST_STYLE_TYPE.ARABIC_INDIC:return F(A,1632,1641,!0,r);case s.LIST_STYLE_TYPE.ARMENIAN:case s.LIST_STYLE_TYPE.UPPER_ARMENIAN:return d(A,1,9999,w,s.LIST_STYLE_TYPE.DECIMAL,r);case s.LIST_STYLE_TYPE.LOWER_ARMENIAN:return d(A,1,9999,w,s.LIST_STYLE_TYPE.DECIMAL,r).toLowerCase();case s.LIST_STYLE_TYPE.BENGALI:return F(A,2534,2543,!0,r);case s.LIST_STYLE_TYPE.CAMBODIAN:case s.LIST_STYLE_TYPE.KHMER:return F(A,6112,6121,!0,r);case s.LIST_STYLE_TYPE.CJK_EARTHLY_BRANCH:return f(A,"子丑寅卯辰巳午未申酉戌亥",n);case s.LIST_STYLE_TYPE.CJK_HEAVENLY_STEM:return f(A,"甲乙丙丁戊己庚辛壬癸",n);case s.LIST_STYLE_TYPE.CJK_IDEOGRAPHIC:case s.LIST_STYLE_TYPE.TRAD_CHINESE_INFORMAL:return N(A,"零一二三四五六七八九",I,"負",n,h|H|p);case s.LIST_STYLE_TYPE.TRAD_CHINESE_FORMAL:return N(A,"零壹貳參肆伍陸柒捌玖",K,"負",n,E|h|H|p);case s.LIST_STYLE_TYPE.SIMP_CHINESE_INFORMAL:return N(A,"零一二三四五六七八九",I,"负",n,h|H|p);case s.LIST_STYLE_TYPE.SIMP_CHINESE_FORMAL:return N(A,"零壹贰叁肆伍陆柒捌玖",K,"负",n,E|h|H|p);case s.LIST_STYLE_TYPE.JAPANESE_INFORMAL:return N(A,"〇一二三四五六七八九","十百千万",v,n,0);case s.LIST_STYLE_TYPE.JAPANESE_FORMAL:return N(A,"零壱弐参四伍六七八九","拾百千万",v,n,E|h|H);case s.LIST_STYLE_TYPE.KOREAN_HANGUL_FORMAL:return N(A,"영일이삼사오육칠팔구","십백천만",T,B,E|h|H);case s.LIST_STYLE_TYPE.KOREAN_HANJA_INFORMAL:return N(A,"零一二三四五六七八九","十百千萬",T,B,0);case s.LIST_STYLE_TYPE.KOREAN_HANJA_FORMAL:return N(A,"零壹貳參四五六七八九","拾百千",T,B,E|h|H);case s.LIST_STYLE_TYPE.DEVANAGARI:return F(A,2406,2415,!0,r);case s.LIST_STYLE_TYPE.GEORGIAN:return d(A,1,19999,g,s.LIST_STYLE_TYPE.DECIMAL,r);case s.LIST_STYLE_TYPE.GUJARATI:return F(A,2790,2799,!0,r);case s.LIST_STYLE_TYPE.GURMUKHI:return F(A,2662,2671,!0,r);case s.LIST_STYLE_TYPE.HEBREW:return d(A,1,10999,U,s.LIST_STYLE_TYPE.DECIMAL,r);case s.LIST_STYLE_TYPE.HIRAGANA:return f(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case s.LIST_STYLE_TYPE.HIRAGANA_IROHA:return f(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case s.LIST_STYLE_TYPE.KANNADA:return F(A,3302,3311,!0,r);case s.LIST_STYLE_TYPE.KATAKANA:return f(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case s.LIST_STYLE_TYPE.KATAKANA_IROHA:return f(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case s.LIST_STYLE_TYPE.LAO:return F(A,3792,3801,!0,r);case s.LIST_STYLE_TYPE.MONGOLIAN:return F(A,6160,6169,!0,r);case s.LIST_STYLE_TYPE.MYANMAR:return F(A,4160,4169,!0,r);case s.LIST_STYLE_TYPE.ORIYA:return F(A,2918,2927,!0,r);case s.LIST_STYLE_TYPE.PERSIAN:return F(A,1776,1785,!0,r);case s.LIST_STYLE_TYPE.TAMIL:return F(A,3046,3055,!0,r);case s.LIST_STYLE_TYPE.TELUGU:return F(A,3174,3183,!0,r);case s.LIST_STYLE_TYPE.THAI:return F(A,3664,3673,!0,r);case s.LIST_STYLE_TYPE.TIBETAN:return F(A,3872,3881,!0,r);case s.LIST_STYLE_TYPE.DECIMAL:default:return F(A,48,57,!0,r)}}},"078d":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=/([+-]?\d*\.?\d+)(deg|grad|rad|turn)/i;e.parseAngle=function(A){var e=A.match(r);if(e){var t=parseFloat(e[1]);switch(e[2].toLowerCase()){case"deg":return Math.PI*t/180;case"grad":return Math.PI/200*t;case"rad":return t;case"turn":return 2*Math.PI*t}}return null}},"0ce7":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.contains=function(A,e){return 0!==(A&e)},e.distance=function(A,e){return Math.sqrt(A*A+e*e)},e.copyCSSStyles=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);"content"!==r&&e.style.setProperty(r,A.getPropertyValue(r))}return e},e.SMALL_IMAGE="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},"0d1b":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function A(A,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(A,r.key,r)}}return function(e,t,r){return t&&A(e.prototype,t),r&&A(e,r),e}}(),n=t("f804"),B=t("120f"),a=o(B);function o(A){return A&&A.__esModule?A:{default:A}}function s(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(A,e,t){return new a.default(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},c=function(){function A(e,t,r,B){s(this,A),this.type=n.PATH.BEZIER_CURVE,this.start=e,this.startControl=t,this.endControl=r,this.end=B}return r(A,[{key:"subdivide",value:function(e,t){var r=i(this.start,this.startControl,e),n=i(this.startControl,this.endControl,e),B=i(this.endControl,this.end,e),a=i(r,n,e),o=i(n,B,e),s=i(a,o,e);return t?new A(this.start,r,a,s):new A(s,o,B,this.end)}},{key:"reverse",value:function(){return new A(this.end,this.endControl,this.startControl,this.start)}}]),A}();e.default=c},"0da8":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=e.OVERFLOW={VISIBLE:0,HIDDEN:1,SCROLL:2,AUTO:3};e.parseOverflow=function(A){switch(A){case"hidden":return r.HIDDEN;case"scroll":return r.SCROLL;case"auto":return r.AUTO;case"visible":default:return r.VISIBLE}}},"120f":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t("f804");function n(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}var B=function A(e,t){n(this,A),this.type=r.PATH.VECTOR,this.x=e,this.y=t};e.default=B},"14ee":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResourceStore=void 0;var r=function(){function A(A,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(A,r.key,r)}}return function(e,t,r){return t&&A(e.prototype,t),r&&A(e,r),e}}(),n=t("510e"),B=o(n),a=t("66a3");function o(A){return A&&A.__esModule?A:{default:A}}function s(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function A(e,t,r){s(this,A),this.options=e,this._window=r,this.origin=this.getOrigin(r.location.href),this.cache={},this.logger=t,this._index=0}return r(A,[{key:"loadImage",value:function(A){var e=this;if(this.hasResourceInCache(A))return A;if(!g(A)||B.default.SUPPORT_SVG_DRAWING){if(!0===this.options.allowTaint||w(A)||this.isSameOrigin(A))return this.addImage(A,A,!1);if(!this.isSameOrigin(A)){if("string"===typeof this.options.proxy)return this.cache[A]=(0,a.Proxy)(A,this.options).then((function(A){return d(A,e.options.imageTimeout||0)})),A;if(!0===this.options.useCORS&&B.default.SUPPORT_CORS_IMAGES)return this.addImage(A,A,!0)}}}},{key:"inlineImage",value:function(A){var e=this;return w(A)?d(A,this.options.imageTimeout||0):this.hasResourceInCache(A)?this.cache[A]:this.isSameOrigin(A)||"string"!==typeof this.options.proxy?this.xhrImage(A):this.cache[A]=(0,a.Proxy)(A,this.options).then((function(A){return d(A,e.options.imageTimeout||0)}))}},{key:"xhrImage",value:function(A){var e=this;return this.cache[A]=new Promise((function(t,r){var n=new XMLHttpRequest;if(n.onreadystatechange=function(){if(4===n.readyState)if(200!==n.status)r("Failed to fetch image "+A.substring(0,256)+" with status code "+n.status);else{var e=new FileReader;e.addEventListener("load",(function(){var A=e.result;t(A)}),!1),e.addEventListener("error",(function(A){return r(A)}),!1),e.readAsDataURL(n.response)}},n.responseType="blob",e.options.imageTimeout){var B=e.options.imageTimeout;n.timeout=B,n.ontimeout=function(){return r("")}}n.open("GET",A,!0),n.send()})).then((function(A){return d(A,e.options.imageTimeout||0)})),this.cache[A]}},{key:"loadCanvas",value:function(A){var e=String(this._index++);return this.cache[e]=Promise.resolve(A),e}},{key:"hasResourceInCache",value:function(A){return"undefined"!==typeof this.cache[A]}},{key:"addImage",value:function(A,e,t){var r=this;var n=function(A){return new Promise((function(n,B){var a=new Image;if(a.onload=function(){return n(a)},A&&!t||(a.crossOrigin="anonymous"),a.onerror=B,a.src=e,!0===a.complete&&setTimeout((function(){n(a)}),500),r.options.imageTimeout){var o=r.options.imageTimeout;setTimeout((function(){return B("")}),o)}}))};return this.cache[A]=U(e)&&!g(e)?B.default.SUPPORT_BASE64_DRAWING(e).then(n):n(!0),A}},{key:"isSameOrigin",value:function(A){return this.getOrigin(A)===this.origin}},{key:"getOrigin",value:function(A){var e=this._link||(this._link=this._window.document.createElement("a"));return e.href=A,e.href=e.href,e.protocol+e.hostname+e.port}},{key:"ready",value:function(){var A=this,e=Object.keys(this.cache),t=e.map((function(e){return A.cache[e].catch((function(A){return null}))}));return Promise.all(t).then((function(A){return new c(e,A)}))}}]),A}();e.default=i;var c=e.ResourceStore=function(){function A(e,t){s(this,A),this._keys=e,this._resources=t}return r(A,[{key:"get",value:function(A){var e=this._keys.indexOf(A);return-1===e?null:this._resources[e]}}]),A}(),l=/^data:image\/svg\+xml/i,u=/^data:image\/.*;base64,/i,Q=/^data:image\/.*/i,w=function(A){return Q.test(A)},U=function(A){return u.test(A)},g=function(A){return"svg"===A.substr(-3).toLowerCase()||l.test(A)},d=function(A,e){return new Promise((function(t,r){var n=new Image;n.onload=function(){return t(n)},n.onerror=r,n.src=A,!0===n.complete&&setTimeout((function(){t(n)}),500),e&&setTimeout((function(){return r("")}),e)}))}},"1a3d":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function A(A,e){var t=[],r=!0,n=!1,B=void 0;try{for(var a,o=A[Symbol.iterator]();!(r=(a=o.next()).done);r=!0)if(t.push(a.value),e&&t.length===e)break}catch(s){n=!0,B=s}finally{try{!r&&o["return"]&&o["return"]()}finally{if(n)throw B}}return t}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return A(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=function(){function A(A,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(A,r.key,r)}}return function(e,t,r){return t&&A(e.prototype,t),r&&A(e,r),e}}(),B=t("f137"),a=(t("9cb7"),t("9d66")),o=t("b654"),s=l(o),i=t("e21a"),c=t("9462");function l(A){return A&&A.__esModule?A:{default:A}}function u(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}var Q=function(){function A(e,t){u(this,A),this.target=e,this.options=t,e.render(t)}return n(A,[{key:"renderNode",value:function(A){A.isVisible()&&(this.renderNodeBackgroundAndBorders(A),this.renderNodeContent(A))}},{key:"renderNodeContent",value:function(A){var e=this,t=function(){if(A.childNodes.length&&A.childNodes.forEach((function(t){if(t instanceof s.default){var r=t.parent.style;e.target.renderTextNode(t.bounds,r.color,r.font,r.textDecoration,r.textShadow)}else e.target.drawShape(t,A.style.color)})),A.image){var t=e.options.imageStore.get(A.image);if(t){var r=(0,B.calculateContentBox)(A.bounds,A.style.padding,A.style.border),n="number"===typeof t.width&&t.width>0?t.width:r.width,a="number"===typeof t.height&&t.height>0?t.height:r.height;n>0&&a>0&&e.target.clip([(0,B.calculatePaddingBoxPath)(A.curvedBounds)],(function(){e.target.drawImage(t,new B.Bounds(0,0,n,a),r)}))}}},r=A.getClipPaths();r.length?this.target.clip(r,t):t()}},{key:"renderNodeBackgroundAndBorders",value:function(A){var e=this,t=!A.style.background.backgroundColor.isTransparent()||A.style.background.backgroundImage.length,r=A.style.border.some((function(A){return A.borderStyle!==c.BORDER_STYLE.NONE&&!A.borderColor.isTransparent()})),n=function(){var r=(0,i.calculateBackgroungPaintingArea)(A.curvedBounds,A.style.background.backgroundClip);t&&e.target.clip([r],(function(){A.style.background.backgroundColor.isTransparent()||e.target.fill(A.style.background.backgroundColor),e.renderBackgroundImage(A)})),A.style.border.forEach((function(t,r){t.borderStyle===c.BORDER_STYLE.NONE||t.borderColor.isTransparent()||e.renderBorder(t,r,A.curvedBounds)}))};if(t||r){var B=A.parent?A.parent.getClipPaths():[];B.length?this.target.clip(B,n):n()}}},{key:"renderBackgroundImage",value:function(A){var e=this;A.style.background.backgroundImage.slice(0).reverse().forEach((function(t){"url"===t.source.method&&t.source.args.length?e.renderBackgroundRepeat(A,t):/gradient/i.test(t.source.method)&&e.renderBackgroundGradient(A,t)}))}},{key:"renderBackgroundRepeat",value:function(A,e){var t=this.options.imageStore.get(e.source.args[0]);if(t){var r=(0,i.calculateBackgroungPositioningArea)(A.style.background.backgroundOrigin,A.bounds,A.style.padding,A.style.border),n=(0,i.calculateBackgroundSize)(e,t,r),B=(0,i.calculateBackgroundPosition)(e.position,n,r),a=(0,i.calculateBackgroundRepeatPath)(e,B,n,r,A.bounds),o=Math.round(r.left+B.x),s=Math.round(r.top+B.y);this.target.renderRepeat(a,t,n,o,s)}}},{key:"renderBackgroundGradient",value:function(A,e){var t=(0,i.calculateBackgroungPositioningArea)(A.style.background.backgroundOrigin,A.bounds,A.style.padding,A.style.border),r=(0,i.calculateGradientBackgroundSize)(e,t),n=(0,i.calculateBackgroundPosition)(e.position,r,t),o=new B.Bounds(Math.round(t.left+n.x),Math.round(t.top+n.y),r.width,r.height),s=(0,a.parseGradient)(A,e.source,o);if(s)switch(s.type){case a.GRADIENT_TYPE.LINEAR_GRADIENT:this.target.renderLinearGradient(o,s);break;case a.GRADIENT_TYPE.RADIAL_GRADIENT:this.target.renderRadialGradient(o,s);break}}},{key:"renderBorder",value:function(A,e,t){this.target.drawShape((0,B.parsePathForBorder)(t,e),A.borderColor)}},{key:"renderStack",value:function(A){var e=this;if(A.container.isVisible()){var t=A.getOpacity();t!==this._opacity&&(this.target.setOpacity(A.getOpacity()),this._opacity=t);var r=A.container.style.transform;null!==r?this.target.transform(A.container.bounds.left+r.transformOrigin[0].value,A.container.bounds.top+r.transformOrigin[1].value,r.transform,(function(){return e.renderStackContent(A)})):this.renderStackContent(A)}}},{key:"renderStackContent",value:function(A){var e=U(A),t=r(e,5),n=t[0],B=t[1],a=t[2],o=t[3],s=t[4],i=w(A),c=r(i,2),l=c[0],u=c[1];this.renderNodeBackgroundAndBorders(A.container),n.sort(g).forEach(this.renderStack,this),this.renderNodeContent(A.container),u.forEach(this.renderNode,this),o.forEach(this.renderStack,this),s.forEach(this.renderStack,this),l.forEach(this.renderNode,this),B.forEach(this.renderStack,this),a.sort(g).forEach(this.renderStack,this)}},{key:"render",value:function(A){this.options.backgroundColor&&this.target.rectangle(this.options.x,this.options.y,this.options.width,this.options.height,this.options.backgroundColor),this.renderStack(A);var e=this.target.getTarget();return e}}]),A}();e.default=Q;var w=function(A){for(var e=[],t=[],r=A.children.length,n=0;n<r;n++){var B=A.children[n];B.isInlineLevel()?e.push(B):t.push(B)}return[e,t]},U=function(A){for(var e=[],t=[],r=[],n=[],B=[],a=A.contexts.length,o=0;o<a;o++){var s=A.contexts[o];s.container.isPositioned()||s.container.style.opacity<1||s.container.isTransformed()?s.container.style.zIndex.order<0?e.push(s):s.container.style.zIndex.order>0?r.push(s):t.push(s):s.container.isFloating()?n.push(s):B.push(s)}return[e,t,r,n,B]},g=function(A,e){return A.container.style.zIndex.order>e.container.style.zIndex.order?1:A.container.style.zIndex.order<e.container.style.zIndex.order?-1:A.container.index>e.container.index?1:-1}},"1b11":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseTextBounds=e.TextBounds=void 0;var r=t("f137"),n=t("a2a2"),B=t("510e"),a=s(B),o=t("33c1");function s(A){return A&&A.__esModule?A:{default:A}}function i(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}var c=e.TextBounds=function A(e,t){i(this,A),this.text=e,this.bounds=t},l=(e.parseTextBounds=function(A,e,t){for(var r=0!==e.style.letterSpacing,B=r?(0,o.toCodePoints)(A).map((function(A){return(0,o.fromCodePoint)(A)})):(0,o.breakWords)(A,e),s=B.length,i=t.parentNode?t.parentNode.ownerDocument.defaultView:null,Q=i?i.pageXOffset:0,w=i?i.pageYOffset:0,U=[],g=0,d=0;d<s;d++){var C=B[d];if(e.style.textDecoration!==n.TEXT_DECORATION.NONE||C.trim().length>0)if(a.default.SUPPORT_RANGE_BOUNDS)U.push(new c(C,u(t,g,C.length,Q,w)));else{var F=t.splitText(C.length);U.push(new c(C,l(t,Q,w))),t=F}else a.default.SUPPORT_RANGE_BOUNDS||(t=t.splitText(C.length));g+=C.length}return U},function(A,e,t){var n=A.ownerDocument.createElement("html2canvaswrapper");n.appendChild(A.cloneNode(!0));var B=A.parentNode;if(B){B.replaceChild(n,A);var a=(0,r.parseBounds)(n,e,t);return n.firstChild&&B.replaceChild(n.firstChild,n),a}return new r.Bounds(0,0,0,0)}),u=function(A,e,t,n,B){var a=A.ownerDocument.createRange();return a.setStart(A,e),a.setEnd(A,e+t),r.Bounds.fromClientRect(a.getBoundingClientRect(),n,B)}},"21a6":function(A,e,t){(function(t){var r,n,B;(function(t,a){n=[],r=a,B="function"===typeof r?r.apply(e,n):r,void 0===B||(A.exports=B)})(0,(function(){"use strict";function e(A,e){return"undefined"==typeof e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(A.type)?new Blob(["\ufeff",A],{type:A.type}):A}function r(A,e,t){var r=new XMLHttpRequest;r.open("GET",A),r.responseType="blob",r.onload=function(){s(r.response,e,t)},r.onerror=function(){console.error("could not download file")},r.send()}function n(A){var e=new XMLHttpRequest;e.open("HEAD",A,!1);try{e.send()}catch(A){}return 200<=e.status&&299>=e.status}function B(A){try{A.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),A.dispatchEvent(e)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof t&&t.global===t?t:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(A,e,t){var o=a.URL||a.webkitURL,s=document.createElement("a");e=e||A.name||"download",s.download=e,s.rel="noopener","string"==typeof A?(s.href=A,s.origin===location.origin?B(s):n(s.href)?r(A,e,t):B(s,s.target="_blank")):(s.href=o.createObjectURL(A),setTimeout((function(){o.revokeObjectURL(s.href)}),4e4),setTimeout((function(){B(s)}),0))}:"msSaveOrOpenBlob"in navigator?function(A,t,a){if(t=t||A.name||"download","string"!=typeof A)navigator.msSaveOrOpenBlob(e(A,a),t);else if(n(A))r(A,t,a);else{var o=document.createElement("a");o.href=A,o.target="_blank",setTimeout((function(){B(o)}))}}:function(A,e,t,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof A)return r(A,e,t);var B="application/octet-stream"===A.type,s=/constructor/i.test(a.HTMLElement)||a.safari,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||B&&s||o)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var A=c.result;A=i?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=A:location=A,n=null},c.readAsDataURL(A)}else{var l=a.URL||a.webkitURL,u=l.createObjectURL(A);n?n.location=u:location.href=u,n=null,setTimeout((function(){l.revokeObjectURL(u)}),4e4)}});a.saveAs=s.saveAs=s,A.exports=s}))}).call(this,t("c8ba"))},2793:function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.parseZIndex=function(A){var e="auto"===A;return{auto:e,order:e?0:parseInt(A,10)}}},"2a76":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=e.WORD_BREAK={NORMAL:"normal",BREAK_ALL:"break-all",KEEP_ALL:"keep-all"};e.parseWordBreak=function(A){switch(A){case"break-all":return r.BREAK_ALL;case"keep-all":return r.KEEP_ALL;case"normal":default:return r.NORMAL}}},"2b67":function(A,e,t){"use strict";function r(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n=function A(e,t){r(this,A),this.width=e,this.height=t};e.default=n},"2d6b":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineBreaker=e.inlineBreakOpportunities=e.lineBreakAtIndex=e.codePointsToCharacterClasses=e.UnicodeTrie=e.BREAK_ALLOWED=e.BREAK_NOT_ALLOWED=e.BREAK_MANDATORY=e.classes=e.LETTER_NUMBER_MODIFIER=void 0;var r=function(){function A(A,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(A,r.key,r)}}return function(e,t,r){return t&&A(e.prototype,t),r&&A(e,r),e}}(),n=function(){function A(A,e){var t=[],r=!0,n=!1,B=void 0;try{for(var a,o=A[Symbol.iterator]();!(r=(a=o.next()).done);r=!0)if(t.push(a.value),e&&t.length===e)break}catch(s){n=!0,B=s}finally{try{!r&&o["return"]&&o["return"]()}finally{if(n)throw B}}return t}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return A(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),B=t("a50c"),a=t("beb7"),o=i(a),s=t("63ac");function i(A){return A&&A.__esModule?A:{default:A}}function c(A){if(Array.isArray(A)){for(var e=0,t=Array(A.length);e<A.length;e++)t[e]=A[e];return t}return Array.from(A)}function l(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}var u=e.LETTER_NUMBER_MODIFIER=50,Q=1,w=2,U=3,g=4,d=5,C=6,F=7,f=8,E=9,h=10,H=11,p=12,N=13,I=14,K=15,v=16,T=17,b=18,m=19,y=20,S=21,L=22,_=23,D=24,M=25,O=26,R=27,P=28,X=29,z=30,k=31,x=32,V=33,J=34,G=35,Y=36,W=37,j=38,q=39,Z=40,$=41,AA=42,eA=43,tA=(e.classes={BK:Q,CR:w,LF:U,CM:g,NL:d,SG:C,WJ:F,ZW:f,GL:E,SP:h,ZWJ:H,B2:p,BA:N,BB:I,HY:K,CB:v,CL:T,CP:b,EX:m,IN:y,NS:S,OP:L,QU:_,IS:D,NU:M,PO:O,PR:R,SY:P,AI:X,AL:z,CJ:k,EB:x,EM:V,H2:J,H3:G,HL:Y,ID:W,JL:j,JV:q,JT:Z,RI:$,SA:AA,XX:eA},e.BREAK_MANDATORY="!"),rA=e.BREAK_NOT_ALLOWED="×",nA=e.BREAK_ALLOWED="÷",BA=e.UnicodeTrie=(0,B.createTrieFromBase64)(o.default),aA=[z,Y],oA=[Q,w,U,d],sA=[h,f],iA=[R,O],cA=oA.concat(sA),lA=[j,q,Z,J,G],uA=[K,N],QA=e.codePointsToCharacterClasses=function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"strict",t=[],r=[],n=[];return A.forEach((function(A,B){var a=BA.get(A);if(a>u?(n.push(!0),a-=u):n.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(B),t.push(v);if(a===g||a===H){if(0===B)return r.push(B),t.push(z);var o=t[B-1];return-1===cA.indexOf(o)?(r.push(r[B-1]),t.push(o)):(r.push(B),t.push(z))}return r.push(B),a===k?t.push("strict"===e?S:W):a===AA||a===X?t.push(z):a===eA?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(W):t.push(z):void t.push(a)})),[r,t,n]},wA=function(A,e,t,r){var n=r[t];if(Array.isArray(A)?-1!==A.indexOf(n):A===n){var B=t;while(B<=r.length){B++;var a=r[B];if(a===e)return!0;if(a!==h)break}}if(n===h){var o=t;while(o>0){o--;var s=r[o];if(Array.isArray(A)?-1!==A.indexOf(s):A===s){var i=t;while(i<=r.length){i++;var c=r[i];if(c===e)return!0;if(c!==h)break}}if(s!==h)break}}return!1},UA=function(A,e){var t=A;while(t>=0){var r=e[t];if(r!==h)return r;t--}return 0},gA=function(A,e,t,r,n){if(0===t[r])return rA;var B=r-1;if(Array.isArray(n)&&!0===n[B])return rA;var a=B-1,o=B+1,s=e[B],i=a>=0?e[a]:0,c=e[o];if(s===w&&c===U)return rA;if(-1!==oA.indexOf(s))return tA;if(-1!==oA.indexOf(c))return rA;if(-1!==sA.indexOf(c))return rA;if(UA(B,e)===f)return nA;if(BA.get(A[B])===H&&(c===W||c===x||c===V))return rA;if(s===F||c===F)return rA;if(s===E)return rA;if(-1===[h,N,K].indexOf(s)&&c===E)return rA;if(-1!==[T,b,m,D,P].indexOf(c))return rA;if(UA(B,e)===L)return rA;if(wA(_,L,B,e))return rA;if(wA([T,b],S,B,e))return rA;if(wA(p,p,B,e))return rA;if(s===h)return nA;if(s===_||c===_)return rA;if(c===v||s===v)return nA;if(-1!==[N,K,S].indexOf(c)||s===I)return rA;if(i===Y&&-1!==uA.indexOf(s))return rA;if(s===P&&c===Y)return rA;if(c===y&&-1!==aA.concat(y,m,M,W,x,V).indexOf(s))return rA;if(-1!==aA.indexOf(c)&&s===M||-1!==aA.indexOf(s)&&c===M)return rA;if(s===R&&-1!==[W,x,V].indexOf(c)||-1!==[W,x,V].indexOf(s)&&c===O)return rA;if(-1!==aA.indexOf(s)&&-1!==iA.indexOf(c)||-1!==iA.indexOf(s)&&-1!==aA.indexOf(c))return rA;if(-1!==[R,O].indexOf(s)&&(c===M||-1!==[L,K].indexOf(c)&&e[o+1]===M)||-1!==[L,K].indexOf(s)&&c===M||s===M&&-1!==[M,P,D].indexOf(c))return rA;if(-1!==[M,P,D,T,b].indexOf(c)){var l=B;while(l>=0){var u=e[l];if(u===M)return rA;if(-1===[P,D].indexOf(u))break;l--}}if(-1!==[R,O].indexOf(c)){var Q=-1!==[T,b].indexOf(s)?a:B;while(Q>=0){var g=e[Q];if(g===M)return rA;if(-1===[P,D].indexOf(g))break;Q--}}if(j===s&&-1!==[j,q,J,G].indexOf(c)||-1!==[q,J].indexOf(s)&&-1!==[q,Z].indexOf(c)||-1!==[Z,G].indexOf(s)&&c===Z)return rA;if(-1!==lA.indexOf(s)&&-1!==[y,O].indexOf(c)||-1!==lA.indexOf(c)&&s===R)return rA;if(-1!==aA.indexOf(s)&&-1!==aA.indexOf(c))return rA;if(s===D&&-1!==aA.indexOf(c))return rA;if(-1!==aA.concat(M).indexOf(s)&&c===L||-1!==aA.concat(M).indexOf(c)&&s===b)return rA;if(s===$&&c===$){var d=t[B],C=1;while(d>0){if(d--,e[d]!==$)break;C++}if(C%2!==0)return rA}return s===x&&c===V?rA:nA},dA=(e.lineBreakAtIndex=function(A,e){if(0===e)return rA;if(e>=A.length)return tA;var t=QA(A),r=n(t,2),B=r[0],a=r[1];return gA(A,a,B,e)},function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=QA(A,e.lineBreak),r=n(t,3),B=r[0],a=r[1],o=r[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(a=a.map((function(A){return-1!==[M,z,AA].indexOf(A)?W:A})));var s="keep-all"===e.wordBreak?o.map((function(e,t){return e&&A[t]>=19968&&A[t]<=40959})):null;return[B,a,s]}),CA=(e.inlineBreakOpportunities=function(A,e){var t=(0,s.toCodePoints)(A),r=rA,B=dA(t,e),a=n(B,3),o=a[0],i=a[1],c=a[2];return t.forEach((function(A,e){r+=(0,s.fromCodePoint)(A)+(e>=t.length-1?tA:gA(t,i,o,e+1,c))})),r},function(){function A(e,t,r,n){l(this,A),this._codePoints=e,this.required=t===tA,this.start=r,this.end=n}return r(A,[{key:"slice",value:function(){return s.fromCodePoint.apply(void 0,c(this._codePoints.slice(this.start,this.end)))}}]),A}());e.LineBreaker=function(A,e){var t=(0,s.toCodePoints)(A),r=dA(t,e),B=n(r,3),a=B[0],o=B[1],i=B[2],c=t.length,l=0,u=0;return{next:function(){if(u>=c)return{done:!0};var A=rA;while(u<c&&(A=gA(t,o,a,++u,i))===rA);if(A!==rA||u===c){var e=new CA(t,A,l,u);return l=u,{value:e,done:!1}}return{done:!0}}}}},"30df":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function A(A,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(A,r.key,r)}}return function(e,t,r){return t&&A(e.prototype,t),r&&A(e,r),e}}(),n=t("5644");B(n),t("e36d");function B(A){return A&&A.__esModule?A:{default:A}}function a(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function A(e,t,r){a(this,A),this.container=e,this.parent=t,this.contexts=[],this.children=[],this.treatAsRealStackingContext=r}return r(A,[{key:"getOpacity",value:function(){return this.parent?this.container.style.opacity*this.parent.getOpacity():this.container.style.opacity}},{key:"getRealParentStackingContext",value:function(){return!this.parent||this.treatAsRealStackingContext?this:this.parent.getRealParentStackingContext()}}]),A}();e.default=o},"33c1":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.breakWords=e.fromCodePoint=e.toCodePoints=void 0;var r=t("fe1e");Object.defineProperty(e,"toCodePoints",{enumerable:!0,get:function(){return r.toCodePoints}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return r.fromCodePoint}});var n=t("5644"),B=(a(n),t("a6ee"));function a(A){return A&&A.__esModule?A:{default:A}}e.breakWords=function(A,e){var t=(0,r.LineBreaker)(A,{lineBreak:e.style.lineBreak,wordBreak:e.style.overflowWrap===B.OVERFLOW_WRAP.BREAK_WORD?"break-word":e.style.wordBreak}),n=[],a=void 0;while(!(a=t.next()).done)n.push(a.value.slice());return n}},3744:function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=e.FLOAT={NONE:0,LEFT:1,RIGHT:2,INLINE_START:3,INLINE_END:4};e.parseCSSFloat=function(A){switch(A){case"left":return r.LEFT;case"right":return r.RIGHT;case"inline-start":return r.INLINE_START;case"inline-end":return r.INLINE_END}return r.NONE}},"3dda":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePadding=e.PADDING_SIDES=void 0;var r=t("6405"),n=B(r);function B(A){return A&&A.__esModule?A:{default:A}}e.PADDING_SIDES={TOP:0,RIGHT:1,BOTTOM:2,LEFT:3};var a=["top","right","bottom","left"];e.parsePadding=function(A){return a.map((function(e){return new n.default(A.getPropertyValue("padding-"+e))}))}},"457a":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function A(A,e){var t=[],r=!0,n=!1,B=void 0;try{for(var a,o=A[Symbol.iterator]();!(r=(a=o.next()).done);r=!0)if(t.push(a.value),e&&t.length===e)break}catch(s){n=!0,B=s}finally{try{!r&&o["return"]&&o["return"]()}finally{if(n)throw B}}return t}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return A(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=function(){function A(A,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(A,r.key,r)}}return function(e,t,r){return t&&A(e.prototype,t),r&&A(e,r),e}}();function B(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}var a=/^#([a-f0-9]{3})$/i,o=function(A){var e=A.match(a);return!!e&&[parseInt(e[1][0]+e[1][0],16),parseInt(e[1][1]+e[1][1],16),parseInt(e[1][2]+e[1][2],16),null]},s=/^#([a-f0-9]{6})$/i,i=function(A){var e=A.match(s);return!!e&&[parseInt(e[1].substring(0,2),16),parseInt(e[1].substring(2,4),16),parseInt(e[1].substring(4,6),16),null]},c=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,l=function(A){var e=A.match(c);return!!e&&[Number(e[1]),Number(e[2]),Number(e[3]),null]},u=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?\.?\d+)\s*\)$/,Q=function(A){var e=A.match(u);return!!(e&&e.length>4)&&[Number(e[1]),Number(e[2]),Number(e[3]),Number(e[4])]},w=function(A){return[Math.min(A[0],255),Math.min(A[1],255),Math.min(A[2],255),A.length>3?A[3]:null]},U=function(A){var e=d[A.toLowerCase()];return e||!1},g=function(){function A(e){B(this,A);var t=Array.isArray(e)?w(e):o(e)||l(e)||Q(e)||U(e)||i(e)||[0,0,0,null],n=r(t,4),a=n[0],s=n[1],c=n[2],u=n[3];this.r=a,this.g=s,this.b=c,this.a=u}return n(A,[{key:"isTransparent",value:function(){return 0===this.a}},{key:"toString",value:function(){return null!==this.a&&1!==this.a?"rgba("+this.r+","+this.g+","+this.b+","+this.a+")":"rgb("+this.r+","+this.g+","+this.b+")"}}]),A}();e.default=g;var d={transparent:[0,0,0,0],aliceblue:[240,248,255,null],antiquewhite:[250,235,215,null],aqua:[0,255,255,null],aquamarine:[127,255,212,null],azure:[240,255,255,null],beige:[245,245,220,null],bisque:[255,228,196,null],black:[0,0,0,null],blanchedalmond:[255,235,205,null],blue:[0,0,255,null],blueviolet:[138,43,226,null],brown:[165,42,42,null],burlywood:[222,184,135,null],cadetblue:[95,158,160,null],chartreuse:[127,255,0,null],chocolate:[210,105,30,null],coral:[255,127,80,null],cornflowerblue:[100,149,237,null],cornsilk:[255,248,220,null],crimson:[220,20,60,null],cyan:[0,255,255,null],darkblue:[0,0,139,null],darkcyan:[0,139,139,null],darkgoldenrod:[184,134,11,null],darkgray:[169,169,169,null],darkgreen:[0,100,0,null],darkgrey:[169,169,169,null],darkkhaki:[189,183,107,null],darkmagenta:[139,0,139,null],darkolivegreen:[85,107,47,null],darkorange:[255,140,0,null],darkorchid:[153,50,204,null],darkred:[139,0,0,null],darksalmon:[233,150,122,null],darkseagreen:[143,188,143,null],darkslateblue:[72,61,139,null],darkslategray:[47,79,79,null],darkslategrey:[47,79,79,null],darkturquoise:[0,206,209,null],darkviolet:[148,0,211,null],deeppink:[255,20,147,null],deepskyblue:[0,191,255,null],dimgray:[105,105,105,null],dimgrey:[105,105,105,null],dodgerblue:[30,144,255,null],firebrick:[178,34,34,null],floralwhite:[255,250,240,null],forestgreen:[34,139,34,null],fuchsia:[255,0,255,null],gainsboro:[220,220,220,null],ghostwhite:[248,248,255,null],gold:[255,215,0,null],goldenrod:[218,165,32,null],gray:[128,128,128,null],green:[0,128,0,null],greenyellow:[173,255,47,null],grey:[128,128,128,null],honeydew:[240,255,240,null],hotpink:[255,105,180,null],indianred:[205,92,92,null],indigo:[75,0,130,null],ivory:[255,255,240,null],khaki:[240,230,140,null],lavender:[230,230,250,null],lavenderblush:[255,240,245,null],lawngreen:[124,252,0,null],lemonchiffon:[255,250,205,null],lightblue:[173,216,230,null],lightcoral:[240,128,128,null],lightcyan:[224,255,255,null],lightgoldenrodyellow:[250,250,210,null],lightgray:[211,211,211,null],lightgreen:[144,238,144,null],lightgrey:[211,211,211,null],lightpink:[255,182,193,null],lightsalmon:[255,160,122,null],lightseagreen:[32,178,170,null],lightskyblue:[135,206,250,null],lightslategray:[119,136,153,null],lightslategrey:[119,136,153,null],lightsteelblue:[176,196,222,null],lightyellow:[255,255,224,null],lime:[0,255,0,null],limegreen:[50,205,50,null],linen:[250,240,230,null],magenta:[255,0,255,null],maroon:[128,0,0,null],mediumaquamarine:[102,205,170,null],mediumblue:[0,0,205,null],mediumorchid:[186,85,211,null],mediumpurple:[147,112,219,null],mediumseagreen:[60,179,113,null],mediumslateblue:[123,104,238,null],mediumspringgreen:[0,250,154,null],mediumturquoise:[72,209,204,null],mediumvioletred:[199,21,133,null],midnightblue:[25,25,112,null],mintcream:[245,255,250,null],mistyrose:[255,228,225,null],moccasin:[255,228,181,null],navajowhite:[255,222,173,null],navy:[0,0,128,null],oldlace:[253,245,230,null],olive:[128,128,0,null],olivedrab:[107,142,35,null],orange:[255,165,0,null],orangered:[255,69,0,null],orchid:[218,112,214,null],palegoldenrod:[238,232,170,null],palegreen:[152,251,152,null],paleturquoise:[175,238,238,null],palevioletred:[219,112,147,null],papayawhip:[255,239,213,null],peachpuff:[255,218,185,null],peru:[205,133,63,null],pink:[255,192,203,null],plum:[221,160,221,null],powderblue:[176,224,230,null],purple:[128,0,128,null],rebeccapurple:[102,51,153,null],red:[255,0,0,null],rosybrown:[188,143,143,null],royalblue:[65,105,225,null],saddlebrown:[139,69,19,null],salmon:[250,128,114,null],sandybrown:[244,164,96,null],seagreen:[46,139,87,null],seashell:[255,245,238,null],sienna:[160,82,45,null],silver:[192,192,192,null],skyblue:[135,206,235,null],slateblue:[106,90,205,null],slategray:[112,128,144,null],slategrey:[112,128,144,null],snow:[255,250,250,null],springgreen:[0,255,127,null],steelblue:[70,130,180,null],tan:[210,180,140,null],teal:[0,128,128,null],thistle:[216,191,216,null],tomato:[255,99,71,null],turquoise:[64,224,208,null],violet:[238,130,238,null],wheat:[245,222,179,null],white:[255,255,255,null],whitesmoke:[245,245,245,null],yellow:[255,255,0,null],yellowgreen:[154,205,50,null]};e.TRANSPARENT=new g([0,0,0,0])},"4ec9":function(A,e,t){"use strict";var r=t("6d61"),n=t("6566");r("Map",(function(A){return function(){return A(this,arguments.length?arguments[0]:void 0)}}),n)},"510e":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t("e386"),n=function(A){var e=123;if(A.createRange){var t=A.createRange();if(t.getBoundingClientRect){var r=A.createElement("boundtest");r.style.height=e+"px",r.style.display="block",A.body.appendChild(r),t.selectNode(r);var n=t.getBoundingClientRect(),B=Math.round(n.height);if(A.body.removeChild(r),B===e)return!0}}return!1},B=function(A,e){var t=new Image,r=A.createElement("canvas"),n=r.getContext("2d");return new Promise((function(A){t.src=e;var B=function(){try{n.drawImage(t,0,0),r.toDataURL()}catch(e){return A(!1)}return A(!0)};t.onload=B,t.onerror=function(){return A(!1)},!0===t.complete&&setTimeout((function(){B()}),500)}))},a=function(){return"undefined"!==typeof(new Image).crossOrigin},o=function(){return"string"===typeof(new XMLHttpRequest).responseType},s=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),t.toDataURL()}catch(n){return!1}return!0},i=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},c=function(A){var e=A.createElement("canvas"),t=100;e.width=t,e.height=t;var n=e.getContext("2d");n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,t,t);var B=new Image,a=e.toDataURL();B.src=a;var o=(0,r.createForeignObjectSVG)(t,t,0,0,B);return n.fillStyle="red",n.fillRect(0,0,t,t),(0,r.loadSerializedSVG)(o).then((function(e){n.drawImage(e,0,0);var B=n.getImageData(0,0,t,t).data;n.fillStyle="red",n.fillRect(0,0,t,t);var o=A.createElement("div");return o.style.backgroundImage="url("+a+")",o.style.height=t+"px",i(B)?(0,r.loadSerializedSVG)((0,r.createForeignObjectSVG)(t,t,0,0,o)):Promise.reject(!1)})).then((function(A){return n.drawImage(A,0,0),i(n.getImageData(0,0,t,t).data)})).catch((function(A){return!1}))},l={get SUPPORT_RANGE_BOUNDS(){var A=n(document);return Object.defineProperty(l,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=s(document);return Object.defineProperty(l,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_BASE64_DRAWING(){return function(A){var e=B(document,A);return Object.defineProperty(l,"SUPPORT_BASE64_DRAWING",{value:function(){return e}}),e}},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"===typeof Array.from&&"function"===typeof window.fetch?c(document):Promise.resolve(!1);return Object.defineProperty(l,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=a();return Object.defineProperty(l,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=o();return Object.defineProperty(l,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(l,"SUPPORT_CORS_XHR",{value:A}),A}};e.default=l},"55fc":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=t("f804");function n(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}var B=function A(e,t,B){n(this,A),this.type=r.PATH.CIRCLE,this.x=e,this.y=t,this.radius=B};e.default=B},5644:function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function A(A,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(A,r.key,r)}}return function(e,t,r){return t&&A(e.prototype,t),r&&A(e,r),e}}(),n=t("457a"),B=m(n),a=t("0ce7"),o=t("e21a"),s=t("9462"),i=t("85ef"),c=t("f97f"),l=t("3744"),u=t("d2a7"),Q=t("c525"),w=t("93f9"),U=t("7f66"),g=t("9999"),d=t("0da8"),C=t("a6ee"),F=t("3dda"),f=t("e36d"),E=t("a2a2"),h=t("d3a0"),H=t("762f"),p=t("bad2"),N=t("7b72"),I=t("2a76"),K=t("2793"),v=t("f137"),T=t("8986"),b=t("060d");function m(A){return A&&A.__esModule?A:{default:A}}function y(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}var S=["INPUT","TEXTAREA","SELECT"],L=function(){function A(e,t,r,n){var a=this;y(this,A),this.parent=t,this.tagName=e.tagName,this.index=n,this.childNodes=[],this.listItems=[],"number"===typeof e.start&&(this.listStart=e.start);var m=e.ownerDocument.defaultView,L=m.pageXOffset,D=m.pageYOffset,M=m.getComputedStyle(e,null),O=(0,c.parseDisplay)(M.display),R="radio"===e.type||"checkbox"===e.type,P=(0,f.parsePosition)(M.position);if(this.style={background:R?T.INPUT_BACKGROUND:(0,o.parseBackground)(M,r),border:R?T.INPUT_BORDERS:(0,s.parseBorder)(M),borderRadius:(e instanceof m.HTMLInputElement||e instanceof HTMLInputElement)&&R?(0,T.getInputBorderRadius)(e):(0,i.parseBorderRadius)(M),color:R?T.INPUT_COLOR:new B.default(M.color),display:O,float:(0,l.parseCSSFloat)(M.float),font:(0,u.parseFont)(M),letterSpacing:(0,Q.parseLetterSpacing)(M.letterSpacing),listStyle:O===c.DISPLAY.LIST_ITEM?(0,U.parseListStyle)(M):null,lineBreak:(0,w.parseLineBreak)(M.lineBreak),margin:(0,g.parseMargin)(M),opacity:parseFloat(M.opacity),overflow:-1===S.indexOf(e.tagName)?(0,d.parseOverflow)(M.overflow):d.OVERFLOW.HIDDEN,overflowWrap:(0,C.parseOverflowWrap)(M.overflowWrap?M.overflowWrap:M.wordWrap),padding:(0,F.parsePadding)(M),position:P,textDecoration:(0,E.parseTextDecoration)(M),textShadow:(0,h.parseTextShadow)(M.textShadow),textTransform:(0,H.parseTextTransform)(M.textTransform),transform:(0,p.parseTransform)(M),visibility:(0,N.parseVisibility)(M.visibility),wordBreak:(0,I.parseWordBreak)(M.wordBreak),zIndex:(0,K.parseZIndex)(P!==f.POSITION.STATIC?M.zIndex:"auto")},this.isTransformed()&&(e.style.transform="matrix(1,0,0,1,0,0)"),O===c.DISPLAY.LIST_ITEM){var X=(0,b.getListOwner)(this);if(X){var z=X.listItems.length;X.listItems.push(this),this.listIndex=e.hasAttribute("value")&&"number"===typeof e.value?e.value:0===z?"number"===typeof X.listStart?X.listStart:1:X.listItems[z-1].listIndex+1}}"IMG"===e.tagName&&e.addEventListener("load",(function(){a.bounds=(0,v.parseBounds)(e,L,D),a.curvedBounds=(0,v.parseBoundCurves)(a.bounds,a.style.border,a.style.borderRadius)})),this.image=_(e,r),this.bounds=R?(0,T.reformatInputBounds)((0,v.parseBounds)(e,L,D)):(0,v.parseBounds)(e,L,D),this.curvedBounds=(0,v.parseBoundCurves)(this.bounds,this.style.border,this.style.borderRadius)}return r(A,[{key:"getClipPaths",value:function(){var A=this.parent?this.parent.getClipPaths():[],e=this.style.overflow!==d.OVERFLOW.VISIBLE;return e?A.concat([(0,v.calculatePaddingBoxPath)(this.curvedBounds)]):A}},{key:"isInFlow",value:function(){return this.isRootElement()&&!this.isFloating()&&!this.isAbsolutelyPositioned()}},{key:"isVisible",value:function(){return!(0,a.contains)(this.style.display,c.DISPLAY.NONE)&&this.style.opacity>0&&this.style.visibility===N.VISIBILITY.VISIBLE}},{key:"isAbsolutelyPositioned",value:function(){return this.style.position!==f.POSITION.STATIC&&this.style.position!==f.POSITION.RELATIVE}},{key:"isPositioned",value:function(){return this.style.position!==f.POSITION.STATIC}},{key:"isFloating",value:function(){return this.style.float!==l.FLOAT.NONE}},{key:"isRootElement",value:function(){return null===this.parent}},{key:"isTransformed",value:function(){return null!==this.style.transform}},{key:"isPositionedWithZIndex",value:function(){return this.isPositioned()&&!this.style.zIndex.auto}},{key:"isInlineLevel",value:function(){return(0,a.contains)(this.style.display,c.DISPLAY.INLINE)||(0,a.contains)(this.style.display,c.DISPLAY.INLINE_BLOCK)||(0,a.contains)(this.style.display,c.DISPLAY.INLINE_FLEX)||(0,a.contains)(this.style.display,c.DISPLAY.INLINE_GRID)||(0,a.contains)(this.style.display,c.DISPLAY.INLINE_LIST_ITEM)||(0,a.contains)(this.style.display,c.DISPLAY.INLINE_TABLE)}},{key:"isInlineBlockOrInlineTable",value:function(){return(0,a.contains)(this.style.display,c.DISPLAY.INLINE_BLOCK)||(0,a.contains)(this.style.display,c.DISPLAY.INLINE_TABLE)}}]),A}();e.default=L;var _=function(A,e){if(A instanceof A.ownerDocument.defaultView.SVGSVGElement||A instanceof SVGSVGElement){var t=new XMLSerializer;return e.loadImage("data:image/svg+xml,"+encodeURIComponent(t.serializeToString(A)))}switch(A.tagName){case"IMG":var r=A;return e.loadImage(r.currentSrc||r.src);case"CANVAS":var n=A;return e.loadCanvas(n);case"IFRAME":var B=A.getAttribute("data-html2canvas-internal-iframe-key");if(B)return B;break}return null}},"63ac":function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.toCodePoints=function(A){var e=[],t=0,r=A.length;while(t<r){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var B=A.charCodeAt(t++);56320===(64512&B)?e.push(((1023&n)<<10)+(1023&B)+65536):(e.push(n),t--)}else e.push(n)}return e},e.fromCodePoint=function(){if(String.fromCodePoint)return String.fromCodePoint.apply(String,arguments);var A=arguments.length;if(!A)return"";var e=[],t=-1,r="";while(++t<A){var n=arguments.length<=t?void 0:arguments[t];n<=65535?e.push(n):(n-=65536,e.push(55296+(n>>10),n%1024+56320)),(t+1===A||e.length>16384)&&(r+=String.fromCharCode.apply(String,e),e.length=0)}return r};for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"===typeof Uint8Array?[]:new Uint8Array(256),B=0;B<r.length;B++)n[r.charCodeAt(B)]=B;e.decode=function(A){var e=.75*A.length,t=A.length,r=void 0,B=0,a=void 0,o=void 0,s=void 0,i=void 0;"="===A[A.length-1]&&(e--,"="===A[A.length-2]&&e--);var c="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(e):new Array(e),l=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<t;r+=4)a=n[A.charCodeAt(r)],o=n[A.charCodeAt(r+1)],s=n[A.charCodeAt(r+2)],i=n[A.charCodeAt(r+3)],l[B++]=a<<2|o>>4,l[B++]=(15&o)<<4|s>>2,l[B++]=(3&s)<<6|63&i;return c},e.polyUint16Array=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},e.polyUint32Array=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t}},6405:function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculateLengthFromValueWithUnit=e.LENGTH_TYPE=void 0;var r=function(){function A(A,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(A,r.key,r)}}return function(e,t,r){return t&&A(e.proto