2 lines
171 KiB
JavaScript
2 lines
171 KiB
JavaScript
(this.csbJsonP=this.csbJsonP||[]).push([[4],{"../sandbox-hooks/html2canvas-lib/core/bitwise.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t],void 0===(r="function"==typeof(s=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.contains=void 0,e.contains=(e,t)=>0!=(e&t)})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/core/cache-storage.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../../node_modules/@babel/runtime/helpers/asyncToGenerator.js"),o("../sandbox-hooks/html2canvas-lib/core/features.js"),o("../sandbox-hooks/html2canvas-lib/core/logger.js")],void 0===(r="function"==typeof(s=function(e,t,s,n){"use strict";var r=o("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.CacheStorage=e.Cache=void 0,t=r(t);class a{static create(e,t){return a._caches[e]=new i(e,t)}static destroy(e){delete a._caches[e]}static open(e){const t=a._caches[e];if(void 0!==t)return t;throw new Error('Cache with key "'.concat(e,'" not found'))}static getOrigin(e){const t=a._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"}static isSameOrigin(e){return a.getOrigin(e)===a._origin}static setContext(e){a._link=e.document.createElement("a"),a._origin=a.getOrigin(e.location.href)}static getInstance(){const e=a._current;if(null===e)throw new Error("No cache instance attached");return e}static attachInstance(e){a._current=e}static detachInstance(){a._current=null}}e.CacheStorage=a,a._caches={},a._origin="about:blank",a._current=null;class i{constructor(e,t){this.id=e,this._options=t,this._cache={}}addImage(e){const t=Promise.resolve();return this.has(e)?t:f(e)||p(e)?(this._cache[e]=this.loadImage(e),t):t}match(e){return this._cache[e]}loadImage(e){var o=this;return(0,t.default)((function*(){const t=a.isSameOrigin(e),r=!u(e)&&o._options.useCORS(t)&&s.FEATURES.SUPPORT_CORS_IMAGES,i=!u(e)&&!t&&"string"==typeof o._options.proxy&&s.FEATURES.SUPPORT_CORS_XHR&&!r;if(!(t||!1!==o._options.allowTaint||u(e)||i||r))return;let l=e;return i&&(l=yield o.proxy(l)),n.Logger.getInstance(o.id).debug("Added image ".concat(e.substring(0,256))),yield new Promise((e,s)=>{const n=new Image;n.onload=()=>e(n),n.onerror=s,(h(l)||"function"==typeof o._options.useCORS&&o._options.useCORS(t)||r)&&(n.crossOrigin="anonymous"),n.src=l,!0===n.complete&&setTimeout(()=>e(n),500),o._options.imageTimeout>0&&setTimeout(()=>s("Timed out (".concat(o._options.imageTimeout,"ms) loading image")),o._options.imageTimeout)})}))()}has(e){return void 0!==this._cache[e]}keys(){return Promise.resolve(Object.keys(this._cache))}proxy(e){const t=this._options.proxy;if(!t)throw new Error("No proxy defined");const o=e.substring(0,256);return new Promise((n,r)=>{const a=s.FEATURES.SUPPORT_RESPONSE_TYPE?"blob":"text",i=new XMLHttpRequest;if(i.onload=()=>{if(200===i.status)if("text"===a)n(i.response);else{const e=new FileReader;e.addEventListener("load",()=>n(e.result),!1),e.addEventListener("error",e=>r(e),!1),e.readAsDataURL(i.response)}else r("Failed to proxy resource ".concat(o," with status code ").concat(i.status))},i.onerror=r,i.open("GET","".concat(t,"?url=").concat(encodeURIComponent(e),"&responseType=").concat(a)),"text"!==a&&i instanceof XMLHttpRequest&&(i.responseType=a),this._options.imageTimeout){const e=this._options.imageTimeout;i.timeout=e,i.ontimeout=()=>r("Timed out (".concat(e,"ms) proxying ").concat(o))}i.send()})}}e.Cache=i;const l=/^data:image\/svg\+xml/i,c=/^data:image\/.*;base64,/i,d=/^data:image\/.*/i,p=e=>s.FEATURES.SUPPORT_SVG_DRAWING||!b(e),u=e=>d.test(e),h=e=>c.test(e),f=e=>"blob"===e.substr(0,4),b=e=>"svg"===e.substr(-3).toLowerCase()||l.test(e)})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/core/features.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t],void 0===(r="function"==typeof(s=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.loadSerializedSVG=e.createForeignObjectSVG=e.FEATURES=void 0;const t=e=>0===e[0]&&255===e[1]&&0===e[2]&&255===e[3],o=(e,t,o,s,n)=>{const r="http://www.w3.org/2000/svg",a=document.createElementNS(r,"svg"),i=document.createElementNS(r,"foreignObject");return a.setAttributeNS(null,"width",e.toString()),a.setAttributeNS(null,"height",t.toString()),i.setAttributeNS(null,"width","100%"),i.setAttributeNS(null,"height","100%"),i.setAttributeNS(null,"x",o.toString()),i.setAttributeNS(null,"y",s.toString()),i.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(i),i.appendChild(n),a};e.createForeignObjectSVG=o;const s=e=>new Promise((t,o)=>{const s=new Image;s.onload=()=>t(s),s.onerror=o,s.src="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent((new XMLSerializer).serializeToString(e)))});e.loadSerializedSVG=s;const n=e.FEATURES={get SUPPORT_RANGE_BOUNDS(){const e=(e=>{if(e.createRange){const t=e.createRange();if(t.getBoundingClientRect){const o=e.createElement("boundtest");o.style.height="".concat(123,"px"),o.style.display="block",e.body.appendChild(o),t.selectNode(o);const s=t.getBoundingClientRect(),n=Math.round(s.height);if(e.body.removeChild(o),123===n)return!0}}return!1})(document);return Object.defineProperty(n,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_SVG_DRAWING(){const e=(e=>{const t=new Image,o=e.createElement("canvas"),s=o.getContext("2d");if(!s)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{s.drawImage(t,0,0),o.toDataURL()}catch(e){return!1}return!0})(document);return Object.defineProperty(n,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){const e="function"==typeof Array.from&&"function"==typeof window.fetch?(e=>{const n=e.createElement("canvas");n.width=100,n.height=100;const r=n.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,100,100);const a=new Image,i=n.toDataURL();a.src=i;const l=o(100,100,0,0,a);return r.fillStyle="red",r.fillRect(0,0,100,100),s(l).then(n=>{r.drawImage(n,0,0);const a=r.getImageData(0,0,100,100).data;r.fillStyle="red",r.fillRect(0,0,100,100);const l=e.createElement("div");return l.style.backgroundImage="url(".concat(i,")"),l.style.height="".concat(100,"px"),t(a)?s(o(100,100,0,0,l)):Promise.reject(!1)}).then(e=>(r.drawImage(e,0,0),t(r.getImageData(0,0,100,100).data))).catch(()=>!1)})(document):Promise.resolve(!1);return Object.defineProperty(n,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){const e=void 0!==(new Image).crossOrigin;return Object.defineProperty(n,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){const e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(n,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){const e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(n,"SUPPORT_CORS_XHR",{value:e}),e}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/core/logger.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t],void 0===(r="function"==typeof(s=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Logger=void 0;class t{constructor(e){let t=e.id,o=e.enabled;this.id=t,this.enabled=o,this.start=Date.now()}debug(){if(this.enabled){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];"undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug(this.id,"".concat(this.getTime(),"ms"),...t):this.info(...t)}}getTime(){return Date.now()-this.start}static create(e){t.instances[e.id]=new t(e)}static destroy(e){delete t.instances[e]}static getInstance(e){const o=t.instances[e];if(void 0===o)throw new Error("No logger instance found with id ".concat(e));return o}info(){if(this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];console.info(this.id,"".concat(this.getTime(),"ms"),...t)}}error(){if(this.enabled){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];"undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error(this.id,"".concat(this.getTime(),"ms"),...t):this.info(...t)}}}e.Logger=t,t.instances={}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/core/util.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t],void 0===(r="function"==typeof(s=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SMALL_IMAGE=void 0,e.SMALL_IMAGE="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t],void 0===(r="function"==typeof(s=function(e){"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.PropertyDescriptorParsingType=void 0,function(e){e[e.VALUE=0]="VALUE",e[e.LIST=1]="LIST",e[e.IDENT_VALUE=2]="IDENT_VALUE",e[e.TYPE_VALUE=3]="TYPE_VALUE",e[e.TOKEN_VALUE=4]="TOKEN_VALUE"}(t||(e.PropertyDescriptorParsingType=t={}))})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/index.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-clip.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-color.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-image.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-origin.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-position.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-repeat.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-size.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-color.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-radius.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-style.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-width.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/color.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/display.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/float.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/letter-spacing.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/line-break.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/line-height.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/list-style-image.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/list-style-position.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/list-style-type.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/margin.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/overflow.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/overflow-wrap.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/padding.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-align.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/position.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-shadow.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-transform.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/transform.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/transform-origin.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/visibility.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/word-break.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/z-index.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/types/color.js"),o("../sandbox-hooks/html2canvas-lib/css/types/angle.js"),o("../sandbox-hooks/html2canvas-lib/css/types/image.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/opacity.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-decoration-color.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-decoration-line.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-family.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-size.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-weight.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-variant.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-style.js"),o("../sandbox-hooks/html2canvas-lib/core/bitwise.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/content.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/counter-increment.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/counter-reset.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/quotes.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/box-shadow.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n,r,a,i,l,c,d,p,u,h,f,b,m,T,E,y,g,v,x,_,R,I,S,A,C,N,O,L,P,k,j,w,D,M,B,G,U,K,V,H,F,Y,W,z,X,Z,q,J,Q,$,ee,te){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CSSParsedPseudoDeclaration=e.CSSParsedDeclaration=e.CSSParsedCounterDeclaration=void 0,e.CSSParsedDeclaration=class{constructor(e){this.backgroundClip=oe(o.backgroundClip,e.backgroundClip),this.backgroundColor=oe(s.backgroundColor,e.backgroundColor),this.backgroundImage=oe(n.backgroundImage,e.backgroundImage),this.backgroundOrigin=oe(r.backgroundOrigin,e.backgroundOrigin),this.backgroundPosition=oe(a.backgroundPosition,e.backgroundPosition),this.backgroundRepeat=oe(i.backgroundRepeat,e.backgroundRepeat),this.backgroundSize=oe(l.backgroundSize,e.backgroundSize),this.borderTopColor=oe(c.borderTopColor,e.borderTopColor),this.borderRightColor=oe(c.borderRightColor,e.borderRightColor),this.borderBottomColor=oe(c.borderBottomColor,e.borderBottomColor),this.borderLeftColor=oe(c.borderLeftColor,e.borderLeftColor),this.borderTopLeftRadius=oe(d.borderTopLeftRadius,e.borderTopLeftRadius),this.borderTopRightRadius=oe(d.borderTopRightRadius,e.borderTopRightRadius),this.borderBottomRightRadius=oe(d.borderBottomRightRadius,e.borderBottomRightRadius),this.borderBottomLeftRadius=oe(d.borderBottomLeftRadius,e.borderBottomLeftRadius),this.borderTopStyle=oe(p.borderTopStyle,e.borderTopStyle),this.borderRightStyle=oe(p.borderRightStyle,e.borderRightStyle),this.borderBottomStyle=oe(p.borderBottomStyle,e.borderBottomStyle),this.borderLeftStyle=oe(p.borderLeftStyle,e.borderLeftStyle),this.borderTopWidth=oe(u.borderTopWidth,e.borderTopWidth),this.borderRightWidth=oe(u.borderRightWidth,e.borderRightWidth),this.borderBottomWidth=oe(u.borderBottomWidth,e.borderBottomWidth),this.borderLeftWidth=oe(u.borderLeftWidth,e.borderLeftWidth),this.boxShadow=oe(te.boxShadow,e.boxShadow),this.color=oe(h.color,e.color),this.display=oe(f.display,e.display),this.float=oe(b.float,e.cssFloat),this.fontFamily=oe(F.fontFamily,e.fontFamily),this.fontSize=oe(Y.fontSize,e.fontSize),this.fontStyle=oe(Z.fontStyle,e.fontStyle),this.fontVariant=oe(X.fontVariant,e.fontVariant),this.fontWeight=oe(z.fontWeight,e.fontWeight),this.letterSpacing=oe(m.letterSpacing,e.letterSpacing),this.lineBreak=oe(T.lineBreak,e.lineBreak),this.lineHeight=oe(E.lineHeight,e.lineHeight),this.listStyleImage=oe(y.listStyleImage,e.listStyleImage),this.listStylePosition=oe(g.listStylePosition,e.listStylePosition),this.listStyleType=oe(v.listStyleType,e.listStyleType),this.marginTop=oe(x.marginTop,e.marginTop),this.marginRight=oe(x.marginRight,e.marginRight),this.marginBottom=oe(x.marginBottom,e.marginBottom),this.marginLeft=oe(x.marginLeft,e.marginLeft),this.opacity=oe(U.opacity,e.opacity);const t=oe(_.overflow,e.overflow);this.overflowX=t[0],this.overflowY=t[t.length>1?1:0],this.overflowWrap=oe(R.overflowWrap,e.overflowWrap),this.paddingTop=oe(I.paddingTop,e.paddingTop),this.paddingRight=oe(I.paddingRight,e.paddingRight),this.paddingBottom=oe(I.paddingBottom,e.paddingBottom),this.paddingLeft=oe(I.paddingLeft,e.paddingLeft),this.position=oe(A.position,e.position),this.textAlign=oe(S.textAlign,e.textAlign),this.textDecorationColor=oe(K.textDecorationColor,e.textDecorationColor||e.color),this.textDecorationLine=oe(V.textDecorationLine,e.textDecorationLine),this.textShadow=oe(C.textShadow,e.textShadow),this.textTransform=oe(N.textTransform,e.textTransform),this.transform=oe(O.transform,e.transform),this.transformOrigin=oe(L.transformOrigin,e.transformOrigin),this.visibility=oe(P.visibility,e.visibility),this.wordBreak=oe(k.wordBreak,e.wordBreak),this.zIndex=oe(j.zIndex,e.zIndex)}isVisible(){return this.display>0&&this.opacity>0&&this.visibility===P.VISIBILITY.VISIBLE}isTransparent(){return(0,M.isTransparent)(this.backgroundColor)}isTransformed(){return null!==this.transform}isPositioned(){return this.position!==A.POSITION.STATIC}isPositionedWithZIndex(){return this.isPositioned()&&!this.zIndex.auto}isFloating(){return this.float!==b.FLOAT.NONE}isInlineLevel(){return(0,q.contains)(this.display,4)||(0,q.contains)(this.display,33554432)||(0,q.contains)(this.display,268435456)||(0,q.contains)(this.display,536870912)||(0,q.contains)(this.display,67108864)||(0,q.contains)(this.display,134217728)}},e.CSSParsedPseudoDeclaration=class{constructor(e){this.content=oe(J.content,e.content),this.quotes=oe(ee.quotes,e.quotes)}},e.CSSParsedCounterDeclaration=class{constructor(e){this.counterIncrement=oe(Q.counterIncrement,e.counterIncrement),this.counterReset=oe($.counterReset,e.counterReset)}};const oe=(e,o)=>{const s=new D.Tokenizer,n=null!=o?o.toString():e.initialValue;s.write(n);const r=new w.Parser(s.read());switch(e.type){case t.PropertyDescriptorParsingType.IDENT_VALUE:const o=r.parseComponentValue();return e.parse((0,w.isIdentToken)(o)?o.value:e.initialValue);case t.PropertyDescriptorParsingType.VALUE:return e.parse(r.parseComponentValue());case t.PropertyDescriptorParsingType.LIST:return e.parse(r.parseComponentValues());case t.PropertyDescriptorParsingType.TOKEN_VALUE:return r.parseComponentValue();case t.PropertyDescriptorParsingType.TYPE_VALUE:switch(e.format){case"angle":return B.angle.parse(r.parseComponentValue());case"color":return M.color.parse(r.parseComponentValue());case"image":return G.image.parse(r.parseComponentValue());case"length":const e=r.parseComponentValue();return(0,W.isLength)(e)?e:H.ZERO_LENGTH;case"length-percentage":const t=r.parseComponentValue();return(0,H.isLengthPercentage)(t)?t:H.ZERO_LENGTH}}throw new Error("Attempting to parse unsupported css format type ".concat(e.format))}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/layout/bounds.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t],void 0===(r="function"==typeof(s=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseDocumentSize=e.parseBounds=e.Bounds=void 0;class t{constructor(e,t,o,s){this.left=e,this.top=t,this.width=o,this.height=s}add(e,o,s,n){return new t(this.left+e,this.top+o,this.width+s,this.height+n)}static fromClientRect(e){return new t(e.left,e.top,e.width,e.height)}}e.Bounds=t,e.parseBounds=e=>t.fromClientRect(e.getBoundingClientRect()),e.parseDocumentSize=e=>{const o=e.body,s=e.documentElement;if(!o||!s)throw new Error("Unable to get document size");const n=Math.max(Math.max(o.scrollWidth,s.scrollWidth),Math.max(o.offsetWidth,s.offsetWidth),Math.max(o.clientWidth,s.clientWidth)),r=Math.max(Math.max(o.scrollHeight,s.scrollHeight),Math.max(o.offsetHeight,s.offsetHeight),Math.max(o.clientHeight,s.clientHeight));return new t(0,0,n,r)}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/layout/text.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/overflow-wrap.js"),o("../../node_modules/css-line-break/dist/css-line-break.es5.js"),o("../sandbox-hooks/html2canvas-lib/css/layout/bounds.js"),o("../sandbox-hooks/html2canvas-lib/core/features.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseTextBounds=e.TextBounds=void 0;class r{constructor(e,t){this.text=e,this.bounds=t}}e.TextBounds=r,e.parseTextBounds=(e,t,o)=>{const s=l(e,t),c=[];let d=0;return s.forEach(e=>{if(t.textDecorationLine.length||e.trim().length>0)if(n.FEATURES.SUPPORT_RANGE_BOUNDS)c.push(new r(e,i(o,d,e.length)));else{const t=o.splitText(e.length);c.push(new r(e,a(o))),o=t}else n.FEATURES.SUPPORT_RANGE_BOUNDS||(o=o.splitText(e.length));d+=e.length}),c};const a=e=>{const t=e.ownerDocument;if(t){const o=t.createElement("html2canvaswrapper");o.appendChild(e.cloneNode(!0));const n=e.parentNode;if(n){n.replaceChild(o,e);const t=(0,s.parseBounds)(o);return o.firstChild&&n.replaceChild(o.firstChild,o),t}}return new s.Bounds(0,0,0,0)},i=(e,t,o)=>{const n=e.ownerDocument;if(!n)throw new Error("Node has no owner document");const r=n.createRange();return r.setStart(e,t),r.setEnd(e,t+o),s.Bounds.fromClientRect(r.getBoundingClientRect())},l=(e,t)=>0!==t.letterSpacing?(0,o.toCodePoints)(e).map(e=>(0,o.fromCodePoint)(e)):c(e,t),c=(e,s)=>{const n=(0,o.LineBreaker)(e,{lineBreak:s.lineBreak,wordBreak:s.overflowWrap===t.OVERFLOW_WRAP.BREAK_WORD?"break-word":s.wordBreak}),r=[];let a;for(;!(a=n.next()).done;)a.value&&r.push(a.value.slice());return r}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-clip.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundClip=e.BACKGROUND_CLIP=void 0,function(e){e[e.BORDER_BOX=0]="BORDER_BOX",e[e.PADDING_BOX=1]="PADDING_BOX",e[e.CONTENT_BOX=2]="CONTENT_BOX"}(s||(e.BACKGROUND_CLIP=s={})),e.backgroundClip={name:"background-clip",initialValue:"border-box",prefix:!1,type:t.PropertyDescriptorParsingType.LIST,parse:e=>e.map(e=>{if((0,o.isIdentToken)(e))switch(e.value){case"padding-box":return s.PADDING_BOX;case"content-box":return s.CONTENT_BOX}return s.BORDER_BOX})}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-color.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundColor=void 0,e.backgroundColor={name:"background-color",initialValue:"transparent",prefix:!1,type:t.PropertyDescriptorParsingType.TYPE_VALUE,format:"color"}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-image.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/types/image.js"),o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundImage=void 0,e.backgroundImage={name:"background-image",initialValue:"none",type:s.PropertyDescriptorParsingType.LIST,prefix:!1,parse:e=>{if(0===e.length)return[];const s=e[0];return s.type===t.TokenType.IDENT_TOKEN&&"none"===s.value?[]:e.filter(e=>(0,n.nonFunctionArgSeparator)(e)&&(0,o.isSupportedImage)(e)).map(o.image.parse)}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-origin.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundOrigin=void 0,e.backgroundOrigin={name:"background-origin",initialValue:"border-box",prefix:!1,type:t.PropertyDescriptorParsingType.LIST,parse:e=>e.map(e=>{if((0,o.isIdentToken)(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-position.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js")],void 0===(r="function"==typeof(s=function(e,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundPosition=void 0,e.backgroundPosition={name:"background-position",initialValue:"0% 0%",type:t.PropertyDescriptorParsingType.LIST,prefix:!1,parse:e=>(0,o.parseFunctionArgs)(e).map(e=>e.filter(s.isLengthPercentage)).map(s.parseLengthPercentageTuple)}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-repeat.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundRepeat=e.BACKGROUND_REPEAT=void 0,function(e){e[e.REPEAT=0]="REPEAT",e[e.NO_REPEAT=1]="NO_REPEAT",e[e.REPEAT_X=2]="REPEAT_X",e[e.REPEAT_Y=3]="REPEAT_Y"}(s||(e.BACKGROUND_REPEAT=s={})),e.backgroundRepeat={name:"background-repeat",initialValue:"repeat",prefix:!1,type:t.PropertyDescriptorParsingType.LIST,parse:e=>(0,o.parseFunctionArgs)(e).map(e=>e.filter(o.isIdentToken).map(e=>e.value).join(" ")).map(n)};const n=e=>{switch(e){case"no-repeat":return s.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return s.REPEAT_X;case"repeat-y":case"no-repeat repeat":return s.REPEAT_Y;case"repeat":default:return s.REPEAT}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-size.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js")],void 0===(r="function"==typeof(s=function(e,t,o,s){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundSize=e.BACKGROUND_SIZE=void 0,function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(n||(e.BACKGROUND_SIZE=n={})),e.backgroundSize={name:"background-size",initialValue:"0",prefix:!1,type:t.PropertyDescriptorParsingType.LIST,parse:e=>(0,o.parseFunctionArgs)(e).map(e=>e.filter(r))};const r=e=>(0,o.isIdentToken)(e)||(0,s.isLengthPercentage)(e)})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-color.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.borderTopColor=e.borderRightColor=e.borderLeftColor=e.borderBottomColor=void 0;const o=e=>({name:"border-".concat(e,"-color"),initialValue:"transparent",prefix:!1,type:t.PropertyDescriptorParsingType.TYPE_VALUE,format:"color"});e.borderTopColor=o("top"),e.borderRightColor=o("right"),e.borderBottomColor=o("bottom"),e.borderLeftColor=o("left")})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-radius.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.borderTopRightRadius=e.borderTopLeftRadius=e.borderBottomRightRadius=e.borderBottomLeftRadius=void 0;const s=e=>({name:"border-radius-".concat(e),initialValue:"0 0",prefix:!1,type:t.PropertyDescriptorParsingType.LIST,parse:e=>(0,o.parseLengthPercentageTuple)(e.filter(o.isLengthPercentage))});e.borderTopLeftRadius=s("top-left"),e.borderTopRightRadius=s("top-right"),e.borderBottomRightRadius=s("bottom-right"),e.borderBottomLeftRadius=s("bottom-left")})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-style.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.borderTopStyle=e.borderRightStyle=e.borderLeftStyle=e.borderBottomStyle=e.BORDER_STYLE=void 0,function(e){e[e.NONE=0]="NONE",e[e.SOLID=1]="SOLID"}(o||(e.BORDER_STYLE=o={}));const s=e=>({name:"border-".concat(e,"-style"),initialValue:"solid",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"none":return o.NONE}return o.SOLID}});e.borderTopStyle=s("top"),e.borderRightStyle=s("right"),e.borderBottomStyle=s("bottom"),e.borderLeftStyle=s("left")})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-width.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.borderTopWidth=e.borderRightWidth=e.borderLeftWidth=e.borderBottomWidth=void 0;const s=e=>({name:"border-".concat(e,"-width"),initialValue:"0",type:t.PropertyDescriptorParsingType.VALUE,prefix:!1,parse:e=>(0,o.isDimensionToken)(e)?e.number:0});e.borderTopWidth=s("top"),e.borderRightWidth=s("right"),e.borderBottomWidth=s("bottom"),e.borderLeftWidth=s("left")})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/box-shadow.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js"),o("../sandbox-hooks/html2canvas-lib/css/types/color.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.boxShadow=void 0,e.boxShadow={name:"box-shadow",initialValue:"none",type:t.PropertyDescriptorParsingType.LIST,prefix:!1,parse:e=>1===e.length&&(0,o.isIdentWithValue)(e[0],"none")?[]:(0,o.parseFunctionArgs)(e).map(e=>{const t={color:255,offsetX:s.ZERO_LENGTH,offsetY:s.ZERO_LENGTH,blur:s.ZERO_LENGTH,spread:s.ZERO_LENGTH,inset:!1};let a=0;for(let s=0;s<e.length;s++){const i=e[s];(0,o.isIdentWithValue)(i,"inset")?t.inset=!0:(0,r.isLength)(i)?(0===a?t.offsetX=i:1===a?t.offsetY=i:2===a?t.blur=i:t.spread=i,a++):t.color=n.color.parse(i)}return t})}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/color.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.color=void 0,e.color={name:"color",initialValue:"transparent",prefix:!1,type:t.PropertyDescriptorParsingType.TYPE_VALUE,format:"color"}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/content.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.content=void 0,e.content={name:"content",initialValue:"none",type:o.PropertyDescriptorParsingType.LIST,prefix:!1,parse:e=>{if(0===e.length)return[];const o=e[0];return o.type===t.TokenType.IDENT_TOKEN&&"none"===o.value?[]:e}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/counter-increment.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js")],void 0===(r="function"==typeof(s=function(e,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.counterIncrement=void 0,e.counterIncrement={name:"counter-increment",initialValue:"none",prefix:!0,type:t.PropertyDescriptorParsingType.LIST,parse:e=>{if(0===e.length)return null;const t=e[0];if(t.type===s.TokenType.IDENT_TOKEN&&"none"===t.value)return null;const n=[],r=e.filter(o.nonWhiteSpace);for(let e=0;e<r.length;e++){const t=r[e],a=r[e+1];if(t.type===s.TokenType.IDENT_TOKEN){const e=a&&(0,o.isNumberToken)(a)?a.number:1;n.push({counter:t.value,increment:e})}}return n}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/counter-reset.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.counterReset=void 0,e.counterReset={name:"counter-reset",initialValue:"none",prefix:!0,type:t.PropertyDescriptorParsingType.LIST,parse:e=>{if(0===e.length)return[];const t=[],s=e.filter(o.nonWhiteSpace);for(let e=0;e<s.length;e++){const n=s[e],r=s[e+1];if((0,o.isIdentToken)(n)&&"none"!==n.value){const e=r&&(0,o.isNumberToken)(r)?r.number:0;t.push({counter:n.value,reset:e})}}return t}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/display.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.display=void 0,e.display={name:"display",initialValue:"inline-block",prefix:!1,type:t.PropertyDescriptorParsingType.LIST,parse:e=>e.filter(o.isIdentToken).reduce((e,t)=>e|s(t.value),0)};const s=e=>{switch(e){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/float.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.float=e.FLOAT=void 0,function(e){e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.INLINE_START=3]="INLINE_START",e[e.INLINE_END=4]="INLINE_END"}(o||(e.FLOAT=o={})),e.float={name:"float",initialValue:"none",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"left":return o.LEFT;case"right":return o.RIGHT;case"inline-start":return o.INLINE_START;case"inline-end":return o.INLINE_END}return o.NONE}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-family.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fontFamily=void 0,e.fontFamily={name:"font-family",initialValue:"",prefix:!1,type:t.PropertyDescriptorParsingType.LIST,parse:e=>{const t=[],s=[];return e.forEach(e=>{switch(e.type){case o.TokenType.IDENT_TOKEN:case o.TokenType.STRING_TOKEN:t.push(e.value);break;case o.TokenType.NUMBER_TOKEN:t.push(e.number.toString());break;case o.TokenType.COMMA_TOKEN:s.push(t.join(" ")),t.length=0}}),t.length&&s.push(t.join(" ")),s.map(e=>-1===e.indexOf(" ")?e:"'".concat(e,"'"))}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-size.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fontSize=void 0,e.fontSize={name:"font-size",initialValue:"0",prefix:!1,type:t.PropertyDescriptorParsingType.TYPE_VALUE,format:"length"}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-style.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.fontStyle=e.FONT_STYLE=void 0,function(e){e.NORMAL="normal",e.ITALIC="italic",e.OBLIQUE="oblique"}(o||(e.FONT_STYLE=o={})),e.fontStyle={name:"font-style",initialValue:"normal",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"oblique":return o.OBLIQUE;case"italic":return o.ITALIC;case"normal":default:return o.NORMAL}}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-variant.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fontVariant=void 0,e.fontVariant={name:"font-variant",initialValue:"none",type:t.PropertyDescriptorParsingType.LIST,prefix:!1,parse:e=>e.filter(o.isIdentToken).map(e=>e.value)}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/font-weight.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fontWeight=void 0,e.fontWeight={name:"font-weight",initialValue:"normal",type:t.PropertyDescriptorParsingType.VALUE,prefix:!1,parse:e=>{if((0,o.isNumberToken)(e))return e.number;if((0,o.isIdentToken)(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/letter-spacing.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.letterSpacing=void 0,e.letterSpacing={name:"letter-spacing",initialValue:"0",prefix:!1,type:t.PropertyDescriptorParsingType.VALUE,parse:e=>e.type===o.TokenType.IDENT_TOKEN&&"normal"===e.value?0:e.type===o.TokenType.NUMBER_TOKEN||e.type===o.TokenType.DIMENSION_TOKEN?e.number:0}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/line-break.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.lineBreak=e.LINE_BREAK=void 0,function(e){e.NORMAL="normal",e.STRICT="strict"}(o||(e.LINE_BREAK=o={})),e.lineBreak={name:"line-break",initialValue:"normal",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"strict":return o.STRICT;case"normal":default:return o.NORMAL}}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/line-height.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lineHeight=e.computeLineHeight=void 0,e.lineHeight={name:"line-height",initialValue:"normal",prefix:!1,type:t.PropertyDescriptorParsingType.TOKEN_VALUE},e.computeLineHeight=(e,t)=>(0,o.isIdentToken)(e)&&"normal"===e.value?1.2*t:e.type===s.TokenType.NUMBER_TOKEN?t*e.number:(0,n.isLengthPercentage)(e)?(0,n.getAbsoluteValue)(e,t):t})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/list-style-image.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/types/image.js"),o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.listStyleImage=void 0,e.listStyleImage={name:"list-style-image",initialValue:"none",type:s.PropertyDescriptorParsingType.VALUE,prefix:!1,parse:e=>e.type===t.TokenType.IDENT_TOKEN&&"none"===e.value?null:o.image.parse(e)}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/list-style-position.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.listStylePosition=e.LIST_STYLE_POSITION=void 0,function(e){e[e.INSIDE=0]="INSIDE",e[e.OUTSIDE=1]="OUTSIDE"}(o||(e.LIST_STYLE_POSITION=o={})),e.listStylePosition={name:"list-style-position",initialValue:"outside",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"inside":return o.INSIDE;case"outside":default:return o.OUTSIDE}}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/list-style-type.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.listStyleType=e.LIST_STYLE_TYPE=void 0,function(e){e[e.NONE=-1]="NONE",e[e.DISC=0]="DISC",e[e.CIRCLE=1]="CIRCLE",e[e.SQUARE=2]="SQUARE",e[e.DECIMAL=3]="DECIMAL",e[e.CJK_DECIMAL=4]="CJK_DECIMAL",e[e.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",e[e.LOWER_ROMAN=6]="LOWER_ROMAN",e[e.UPPER_ROMAN=7]="UPPER_ROMAN",e[e.LOWER_GREEK=8]="LOWER_GREEK",e[e.LOWER_ALPHA=9]="LOWER_ALPHA",e[e.UPPER_ALPHA=10]="UPPER_ALPHA",e[e.ARABIC_INDIC=11]="ARABIC_INDIC",e[e.ARMENIAN=12]="ARMENIAN",e[e.BENGALI=13]="BENGALI",e[e.CAMBODIAN=14]="CAMBODIAN",e[e.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",e[e.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",e[e.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",e[e.DEVANAGARI=18]="DEVANAGARI",e[e.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",e[e.GEORGIAN=20]="GEORGIAN",e[e.GUJARATI=21]="GUJARATI",e[e.GURMUKHI=22]="GURMUKHI",e[e.HEBREW=22]="HEBREW",e[e.HIRAGANA=23]="HIRAGANA",e[e.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",e[e.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",e[e.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",e[e.KANNADA=27]="KANNADA",e[e.KATAKANA=28]="KATAKANA",e[e.KATAKANA_IROHA=29]="KATAKANA_IROHA",e[e.KHMER=30]="KHMER",e[e.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",e[e.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",e[e.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",e[e.LAO=34]="LAO",e[e.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",e[e.MALAYALAM=36]="MALAYALAM",e[e.MONGOLIAN=37]="MONGOLIAN",e[e.MYANMAR=38]="MYANMAR",e[e.ORIYA=39]="ORIYA",e[e.PERSIAN=40]="PERSIAN",e[e.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",e[e.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",e[e.TAMIL=43]="TAMIL",e[e.TELUGU=44]="TELUGU",e[e.THAI=45]="THAI",e[e.TIBETAN=46]="TIBETAN",e[e.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",e[e.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",e[e.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",e[e.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",e[e.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(o||(e.LIST_STYLE_TYPE=o={})),e.listStyleType={name:"list-style-type",initialValue:"none",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"disc":return o.DISC;case"circle":return o.CIRCLE;case"square":return o.SQUARE;case"decimal":return o.DECIMAL;case"cjk-decimal":return o.CJK_DECIMAL;case"decimal-leading-zero":return o.DECIMAL_LEADING_ZERO;case"lower-roman":return o.LOWER_ROMAN;case"upper-roman":return o.UPPER_ROMAN;case"lower-greek":return o.LOWER_GREEK;case"lower-alpha":return o.LOWER_ALPHA;case"upper-alpha":return o.UPPER_ALPHA;case"arabic-indic":return o.ARABIC_INDIC;case"armenian":return o.ARMENIAN;case"bengali":return o.BENGALI;case"cambodian":return o.CAMBODIAN;case"cjk-earthly-branch":return o.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return o.CJK_HEAVENLY_STEM;case"cjk-ideographic":return o.CJK_IDEOGRAPHIC;case"devanagari":return o.DEVANAGARI;case"ethiopic-numeric":return o.ETHIOPIC_NUMERIC;case"georgian":return o.GEORGIAN;case"gujarati":return o.GUJARATI;case"gurmukhi":return o.GURMUKHI;case"hebrew":return o.HEBREW;case"hiragana":return o.HIRAGANA;case"hiragana-iroha":return o.HIRAGANA_IROHA;case"japanese-formal":return o.JAPANESE_FORMAL;case"japanese-informal":return o.JAPANESE_INFORMAL;case"kannada":return o.KANNADA;case"katakana":return o.KATAKANA;case"katakana-iroha":return o.KATAKANA_IROHA;case"khmer":return o.KHMER;case"korean-hangul-formal":return o.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return o.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return o.KOREAN_HANJA_INFORMAL;case"lao":return o.LAO;case"lower-armenian":return o.LOWER_ARMENIAN;case"malayalam":return o.MALAYALAM;case"mongolian":return o.MONGOLIAN;case"myanmar":return o.MYANMAR;case"oriya":return o.ORIYA;case"persian":return o.PERSIAN;case"simp-chinese-formal":return o.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return o.SIMP_CHINESE_INFORMAL;case"tamil":return o.TAMIL;case"telugu":return o.TELUGU;case"thai":return o.THAI;case"tibetan":return o.TIBETAN;case"trad-chinese-formal":return o.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return o.TRAD_CHINESE_INFORMAL;case"upper-armenian":return o.UPPER_ARMENIAN;case"disclosure-open":return o.DISCLOSURE_OPEN;case"disclosure-closed":return o.DISCLOSURE_CLOSED;case"none":default:return o.NONE}}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/margin.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.marginTop=e.marginRight=e.marginLeft=e.marginBottom=void 0;const o=e=>({name:"margin-".concat(e),initialValue:"0",prefix:!1,type:t.PropertyDescriptorParsingType.TOKEN_VALUE});e.marginTop=o("top"),e.marginRight=o("right"),e.marginBottom=o("bottom"),e.marginLeft=o("left")})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/opacity.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.opacity=void 0,e.opacity={name:"opacity",initialValue:"1",type:t.PropertyDescriptorParsingType.VALUE,prefix:!1,parse:e=>(0,o.isNumberToken)(e)?e.number:1}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/overflow-wrap.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.overflowWrap=e.OVERFLOW_WRAP=void 0,function(e){e.NORMAL="normal",e.BREAK_WORD="break-word"}(o||(e.OVERFLOW_WRAP=o={})),e.overflowWrap={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"break-word":return o.BREAK_WORD;case"normal":default:return o.NORMAL}}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/overflow.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.overflow=e.OVERFLOW=void 0,function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.SCROLL=2]="SCROLL",e[e.AUTO=3]="AUTO"}(s||(e.OVERFLOW=s={})),e.overflow={name:"overflow",initialValue:"visible",prefix:!1,type:t.PropertyDescriptorParsingType.LIST,parse:e=>e.filter(o.isIdentToken).map(e=>{switch(e.value){case"hidden":return s.HIDDEN;case"scroll":return s.SCROLL;case"auto":return s.AUTO;case"visible":default:return s.VISIBLE}})}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/padding.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.paddingTop=e.paddingRight=e.paddingLeft=e.paddingBottom=void 0;const o=e=>({name:"padding-".concat(e),initialValue:"0",prefix:!1,type:t.PropertyDescriptorParsingType.TYPE_VALUE,format:"length-percentage"});e.paddingTop=o("top"),e.paddingRight=o("right"),e.paddingBottom=o("bottom"),e.paddingLeft=o("left")})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/position.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.position=e.POSITION=void 0,function(e){e[e.STATIC=0]="STATIC",e[e.RELATIVE=1]="RELATIVE",e[e.ABSOLUTE=2]="ABSOLUTE",e[e.FIXED=3]="FIXED",e[e.STICKY=4]="STICKY"}(o||(e.POSITION=o={})),e.position={name:"position",initialValue:"static",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"relative":return o.RELATIVE;case"absolute":return o.ABSOLUTE;case"fixed":return o.FIXED;case"sticky":return o.STICKY}return o.STATIC}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/quotes.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js")],void 0===(r="function"==typeof(s=function(e,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.quotes=e.getQuote=void 0,e.quotes={name:"quotes",initialValue:"none",prefix:!0,type:t.PropertyDescriptorParsingType.LIST,parse:e=>{if(0===e.length)return null;const t=e[0];if(t.type===s.TokenType.IDENT_TOKEN&&"none"===t.value)return null;const n=[],r=e.filter(o.isStringToken);if(r.length%2!=0)return null;for(let e=0;e<r.length;e+=2){const t=r[e].value,o=r[e+1].value;n.push({open:t,close:o})}return n}},e.getQuote=(e,t,o)=>{if(!e)return"";const s=e[Math.min(t,e.length-1)];return s?o?s.open:s.close:""}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-align.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.textAlign=e.TEXT_ALIGN=void 0,function(e){e[e.LEFT=0]="LEFT",e[e.CENTER=1]="CENTER",e[e.RIGHT=2]="RIGHT"}(o||(e.TEXT_ALIGN=o={})),e.textAlign={name:"text-align",initialValue:"left",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"right":return o.RIGHT;case"center":case"justify":return o.CENTER;case"left":default:return o.LEFT}}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-decoration-color.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.textDecorationColor=void 0,e.textDecorationColor={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:t.PropertyDescriptorParsingType.TYPE_VALUE,format:"color"}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-decoration-line.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.textDecorationLine=void 0,e.textDecorationLine={name:"text-decoration-line",initialValue:"none",prefix:!1,type:t.PropertyDescriptorParsingType.LIST,parse:e=>e.filter(o.isIdentToken).map(e=>{switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(e=>0!==e)}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-shadow.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js"),o("../sandbox-hooks/html2canvas-lib/css/types/color.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.textShadow=void 0,e.textShadow={name:"text-shadow",initialValue:"none",type:t.PropertyDescriptorParsingType.LIST,prefix:!1,parse:e=>1===e.length&&(0,o.isIdentWithValue)(e[0],"none")?[]:(0,o.parseFunctionArgs)(e).map(e=>{const t={color:n.COLORS.TRANSPARENT,offsetX:s.ZERO_LENGTH,offsetY:s.ZERO_LENGTH,blur:s.ZERO_LENGTH};let o=0;for(let s=0;s<e.length;s++){const a=e[s];(0,r.isLength)(a)?(0===o?t.offsetX=a:1===o?t.offsetY=a:t.blur=a,o++):t.color=n.color.parse(a)}return t})}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-transform.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.textTransform=e.TEXT_TRANSFORM=void 0,function(e){e[e.NONE=0]="NONE",e[e.LOWERCASE=1]="LOWERCASE",e[e.UPPERCASE=2]="UPPERCASE",e[e.CAPITALIZE=3]="CAPITALIZE"}(o||(e.TEXT_TRANSFORM=o={})),e.textTransform={name:"text-transform",initialValue:"none",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"uppercase":return o.UPPERCASE;case"lowercase":return o.LOWERCASE;case"capitalize":return o.CAPITALIZE}return o.NONE}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/transform-origin.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js")],void 0===(r="function"==typeof(s=function(e,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformOrigin=void 0;const n={type:s.TokenType.PERCENTAGE_TOKEN,number:50,flags:s.FLAG_INTEGER},r=[n,n];e.transformOrigin={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:t.PropertyDescriptorParsingType.LIST,parse:e=>{const t=e.filter(o.isLengthPercentage);return 2!==t.length?r:[t[0],t[1]]}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/transform.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../../node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js"),o("../../node_modules/@babel/runtime/helpers/slicedToArray.js"),o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js")],void 0===(r="function"==typeof(s=function(e,t,s,n,r){"use strict";var a=o("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.transform=void 0,t=a(t),s=a(s),e.transform={name:"transform",initialValue:"none",prefix:!0,type:n.PropertyDescriptorParsingType.VALUE,parse:e=>{if(e.type===r.TokenType.IDENT_TOKEN&&"none"===e.value)return null;if(e.type===r.TokenType.FUNCTION){const t=i[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported transform function "'.concat(e.name,'"'));return t(e.values)}return null}};const i={matrix:e=>{const t=e.filter(e=>e.type===r.TokenType.NUMBER_TOKEN).map(e=>e.number);return 6===t.length?t:null},matrix3d:e=>{const o=e.filter(e=>e.type===r.TokenType.NUMBER_TOKEN).map(e=>e.number),n=(0,s.default)(o,16),a=n[0],i=n[1];(0,t.default)(n[2]),(0,t.default)(n[3]);const l=n[4],c=n[5];(0,t.default)(n[6]),(0,t.default)(n[7]),(0,t.default)(n[8]),(0,t.default)(n[9]),(0,t.default)(n[10]),(0,t.default)(n[11]);const d=n[12],p=n[13];return(0,t.default)(n[14]),(0,t.default)(n[15]),16===o.length?[a,i,l,c,d,p]:null}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/visibility.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.visibility=e.VISIBILITY=void 0,function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.COLLAPSE=2]="COLLAPSE"}(o||(e.VISIBILITY=o={})),e.visibility={name:"visible",initialValue:"none",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"hidden":return o.HIDDEN;case"collapse":return o.COLLAPSE;case"visible":default:return o.VISIBLE}}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/word-break.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.wordBreak=e.WORD_BREAK=void 0,function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(o||(e.WORD_BREAK=o={})),e.wordBreak={name:"word-break",initialValue:"normal",prefix:!1,type:t.PropertyDescriptorParsingType.IDENT_VALUE,parse:e=>{switch(e){case"break-all":return o.BREAK_ALL;case"keep-all":return o.KEEP_ALL;case"normal":default:return o.NORMAL}}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/property-descriptors/z-index.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/IPropertyDescriptor.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js")],void 0===(r="function"==typeof(s=function(e,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zIndex=void 0,e.zIndex={name:"z-index",initialValue:"auto",prefix:!1,type:t.PropertyDescriptorParsingType.VALUE,parse:e=>{if(e.type===s.TokenType.IDENT_TOKEN)return{auto:!0,order:0};if((0,o.isNumberToken)(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/syntax/parser.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseFunctionArgs=e.nonWhiteSpace=e.nonFunctionArgSeparator=e.isStringToken=e.isNumberToken=e.isIdentWithValue=e.isIdentToken=e.isDimensionToken=e.Parser=void 0;class o{constructor(e){this._tokens=e}static create(e){const s=new t.Tokenizer;return s.write(e),new o(s.read())}static parseValue(e){return o.create(e).parseComponentValue()}static parseValues(e){return o.create(e).parseComponentValues()}parseComponentValue(){let e=this.consumeToken();for(;e.type===t.TokenType.WHITESPACE_TOKEN;)e=this.consumeToken();if(e.type===t.TokenType.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);const o=this.consumeComponentValue();do{e=this.consumeToken()}while(e.type===t.TokenType.WHITESPACE_TOKEN);if(e.type===t.TokenType.EOF_TOKEN)return o;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")}parseComponentValues(){const e=[];for(;;){let o=this.consumeComponentValue();if(o.type===t.TokenType.EOF_TOKEN)return e;e.push(o),e.push()}}consumeComponentValue(){const e=this.consumeToken();switch(e.type){case t.TokenType.LEFT_CURLY_BRACKET_TOKEN:case t.TokenType.LEFT_SQUARE_BRACKET_TOKEN:case t.TokenType.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(e.type);case t.TokenType.FUNCTION_TOKEN:return this.consumeFunction(e)}return e}consumeSimpleBlock(e){const o={type:e,values:[]};let s=this.consumeToken();for(;;){if(s.type===t.TokenType.EOF_TOKEN||n(s,e))return o;this.reconsumeToken(s),o.values.push(this.consumeComponentValue()),s=this.consumeToken()}}consumeFunction(e){const o={name:e.value,values:[],type:t.TokenType.FUNCTION};for(;;){const e=this.consumeToken();if(e.type===t.TokenType.EOF_TOKEN||e.type===t.TokenType.RIGHT_PARENTHESIS_TOKEN)return o;this.reconsumeToken(e),o.values.push(this.consumeComponentValue())}}consumeToken(){const e=this._tokens.shift();return void 0===e?t.EOF_TOKEN:e}reconsumeToken(e){this._tokens.unshift(e)}}e.Parser=o,e.isDimensionToken=e=>e.type===t.TokenType.DIMENSION_TOKEN,e.isNumberToken=e=>e.type===t.TokenType.NUMBER_TOKEN;const s=e=>e.type===t.TokenType.IDENT_TOKEN;e.isIdentToken=s,e.isStringToken=e=>e.type===t.TokenType.STRING_TOKEN,e.isIdentWithValue=(e,t)=>s(e)&&e.value===t,e.nonWhiteSpace=e=>e.type!==t.TokenType.WHITESPACE_TOKEN,e.nonFunctionArgSeparator=e=>e.type!==t.TokenType.WHITESPACE_TOKEN&&e.type!==t.TokenType.COMMA_TOKEN,e.parseFunctionArgs=e=>{const o=[];let s=[];return e.forEach(e=>{if(e.type===t.TokenType.COMMA_TOKEN){if(0===s.length)throw new Error("Error parsing function args, zero tokens for arg");return o.push(s),void(s=[])}e.type!==t.TokenType.WHITESPACE_TOKEN&&s.push(e)}),s.length&&o.push(s),o};const n=(e,o)=>o===t.TokenType.LEFT_CURLY_BRACKET_TOKEN&&e.type===t.TokenType.RIGHT_CURLY_BRACKET_TOKEN||o===t.TokenType.LEFT_SQUARE_BRACKET_TOKEN&&e.type===t.TokenType.RIGHT_SQUARE_BRACKET_TOKEN||o===t.TokenType.LEFT_PARENTHESIS_TOKEN&&e.type===t.TokenType.RIGHT_PARENTHESIS_TOKEN})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../../node_modules/@babel/runtime/helpers/slicedToArray.js"),o("../../node_modules/css-line-break/dist/css-line-break.es5.js")],void 0===(r="function"==typeof(s=function(e,t,s){"use strict";var n,r=o("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.Tokenizer=e.TokenType=e.FLAG_UNRESTRICTED=e.FLAG_NUMBER=e.FLAG_INTEGER=e.FLAG_ID=e.EOF_TOKEN=void 0,t=r(t),function(e){e[e.STRING_TOKEN=0]="STRING_TOKEN",e[e.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",e[e.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",e[e.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",e[e.COMMA_TOKEN=4]="COMMA_TOKEN",e[e.HASH_TOKEN=5]="HASH_TOKEN",e[e.DELIM_TOKEN=6]="DELIM_TOKEN",e[e.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",e[e.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",e[e.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",e[e.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",e[e.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",e[e.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",e[e.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",e[e.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",e[e.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",e[e.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",e[e.NUMBER_TOKEN=17]="NUMBER_TOKEN",e[e.FUNCTION=18]="FUNCTION",e[e.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",e[e.IDENT_TOKEN=20]="IDENT_TOKEN",e[e.COLUMN_TOKEN=21]="COLUMN_TOKEN",e[e.URL_TOKEN=22]="URL_TOKEN",e[e.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",e[e.CDC_TOKEN=24]="CDC_TOKEN",e[e.CDO_TOKEN=25]="CDO_TOKEN",e[e.COLON_TOKEN=26]="COLON_TOKEN",e[e.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",e[e.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",e[e.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",e[e.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",e[e.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",e[e.EOF_TOKEN=32]="EOF_TOKEN"}(n||(e.TokenType=n={}));const a=e.FLAG_UNRESTRICTED=1,i=e.FLAG_ID=2,l=e.FLAG_INTEGER=4,c=e.FLAG_NUMBER=8,d=e=>e>=48&&e<=57,p=e=>d(e)||e>=65&&e<=70||e>=97&&e<=102,u=e=>10===e||9===e||32===e,h=e=>(e=>(e=>e>=97&&e<=122)(e)||(e=>e>=65&&e<=90)(e))(e)||(e=>e>=128)(e)||95===e,f=e=>h(e)||d(e)||45===e,b=e=>e>=0&&e<=8||11===e||e>=14&&e<=31||127===e,m=(e,t)=>92===e&&10!==t,T=(e,t,o)=>45===e?h(t)||m(t,o):!!h(e)||!(92!==e||!m(e,t)),E=(e,t,o)=>43===e||45===e?!!d(t)||46===t&&d(o):d(46===e?t:e),y=e=>{let t=0,o=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(o=-1),t++);const n=[];for(;d(e[t]);)n.push(e[t++]);const r=n.length?parseInt((0,s.fromCodePoint)(...n),10):0;46===e[t]&&t++;const a=[];for(;d(e[t]);)a.push(e[t++]);const i=a.length,l=i?parseInt((0,s.fromCodePoint)(...a),10):0;69!==e[t]&&101!==e[t]||t++;let c=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(c=-1),t++);const p=[];for(;d(e[t]);)p.push(e[t++]);const u=p.length?parseInt((0,s.fromCodePoint)(...p),10):0;return o*(r+l*Math.pow(10,-i))*Math.pow(10,c*u)},g={type:n.LEFT_PARENTHESIS_TOKEN},v={type:n.RIGHT_PARENTHESIS_TOKEN},x={type:n.COMMA_TOKEN},_={type:n.SUFFIX_MATCH_TOKEN},R={type:n.PREFIX_MATCH_TOKEN},I={type:n.COLUMN_TOKEN},S={type:n.DASH_MATCH_TOKEN},A={type:n.INCLUDE_MATCH_TOKEN},C={type:n.LEFT_CURLY_BRACKET_TOKEN},N={type:n.RIGHT_CURLY_BRACKET_TOKEN},O={type:n.SUBSTRING_MATCH_TOKEN},L={type:n.BAD_URL_TOKEN},P={type:n.BAD_STRING_TOKEN},k={type:n.CDO_TOKEN},j={type:n.CDC_TOKEN},w={type:n.COLON_TOKEN},D={type:n.SEMICOLON_TOKEN},M={type:n.LEFT_SQUARE_BRACKET_TOKEN},B={type:n.RIGHT_SQUARE_BRACKET_TOKEN},G={type:n.WHITESPACE_TOKEN},U=e.EOF_TOKEN={type:n.EOF_TOKEN};e.Tokenizer=class{constructor(){this._value=[]}write(e){this._value=this._value.concat((0,s.toCodePoints)(e))}read(){const e=[];let t=this.consumeToken();for(;t!==U;)e.push(t),t=this.consumeToken();return e}consumeToken(){const e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:const t=this.peekCodePoint(0),o=this.peekCodePoint(1),s=this.peekCodePoint(2);if(f(t)||m(o,s)){const e=T(t,o,s)?i:a,r=this.consumeName();return{type:n.HASH_TOKEN,value:r,flags:e}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),_;break;case 39:return this.consumeStringToken(39);case 40:return g;case 41:return v;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),O;break;case 43:if(E(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return x;case 45:const r=e,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if(E(r,l,c))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(T(r,l,c))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(45===l&&62===c)return this.consumeCodePoint(),this.consumeCodePoint(),j;break;case 46:if(E(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){let e=this.consumeCodePoint();if(42===e&&(e=this.consumeCodePoint(),47===e))return this.consumeToken();if(-1===e)return this.consumeToken()}break;case 58:return w;case 59:return D;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),k;break;case 64:const d=this.peekCodePoint(0),u=this.peekCodePoint(1),h=this.peekCodePoint(2);if(T(d,u,h)){const e=this.consumeName();return{type:n.AT_KEYWORD_TOKEN,value:e}}break;case 91:return M;case 92:if(m(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return B;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),R;break;case 123:return C;case 125:return N;case 117:case 85:const b=this.peekCodePoint(0),y=this.peekCodePoint(1);return 43!==b||!p(y)&&63!==y||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),S;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),I;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),A;break;case-1:return U}return u(e)?(this.consumeWhiteSpace(),G):d(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):h(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:n.DELIM_TOKEN,value:(0,s.fromCodePoint)(e)}}consumeCodePoint(){const e=this._value.shift();return void 0===e?-1:e}reconsumeCodePoint(e){this._value.unshift(e)}peekCodePoint(e){return e>=this._value.length?-1:this._value[e]}consumeUnicodeRangeToken(){const e=[];let t=this.consumeCodePoint();for(;p(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();let o=!1;for(;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),o=!0;if(o){const t=parseInt((0,s.fromCodePoint)(...e.map(e=>63===e?48:e)),16),o=parseInt((0,s.fromCodePoint)(...e.map(e=>63===e?70:e)),16);return{type:n.UNICODE_RANGE_TOKEN,start:t,end:o}}const r=parseInt((0,s.fromCodePoint)(...e),16);if(45===this.peekCodePoint(0)&&p(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();const e=[];for(;p(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();const o=parseInt((0,s.fromCodePoint)(...e),16);return{type:n.UNICODE_RANGE_TOKEN,start:r,end:o}}return{type:n.UNICODE_RANGE_TOKEN,start:r,end:r}}consumeIdentLikeToken(){const e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:n.FUNCTION_TOKEN,value:e}):{type:n.IDENT_TOKEN,value:e}}consumeUrlToken(){const e=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:n.URL_TOKEN,value:""};const t=this.peekCodePoint(0);if(39===t||34===t){const e=this.consumeStringToken(this.consumeCodePoint());return e.type===n.STRING_TOKEN&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:n.URL_TOKEN,value:e.value}):(this.consumeBadUrlRemnants(),L)}for(;;){const t=this.consumeCodePoint();if(-1===t||41===t)return{type:n.URL_TOKEN,value:(0,s.fromCodePoint)(...e)};if(u(t))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:n.URL_TOKEN,value:(0,s.fromCodePoint)(...e)}):(this.consumeBadUrlRemnants(),L);if(34===t||39===t||40===t||b(t))return this.consumeBadUrlRemnants(),L;if(92===t){if(!m(t,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),L;e.push(this.consumeEscapedCodePoint())}else e.push(t)}}consumeWhiteSpace(){for(;u(this.peekCodePoint(0));)this.consumeCodePoint()}consumeBadUrlRemnants(){for(;;){let e=this.consumeCodePoint();if(41===e||-1===e)return;m(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}}consumeStringSlice(e){let t="";for(;e>0;){const o=Math.min(6e4,e);t+=(0,s.fromCodePoint)(...this._value.splice(0,o)),e-=o}return this._value.shift(),t}consumeStringToken(e){let t="",o=0;for(;;){const r=this._value[o];if(-1===r||void 0===r||r===e)return t+=this.consumeStringSlice(o),{type:n.STRING_TOKEN,value:t};if(10===r)return this._value.splice(0,o),P;if(92===r){const e=this._value[o+1];-1!==e&&void 0!==e&&(10===e?(t+=this.consumeStringSlice(o),o=-1,this._value.shift()):m(r,e)&&(t+=this.consumeStringSlice(o),t+=(0,s.fromCodePoint)(this.consumeEscapedCodePoint()),o=-1))}o++}}consumeNumber(){let e=[],t=l,o=this.peekCodePoint(0);for(43!==o&&45!==o||e.push(this.consumeCodePoint());d(this.peekCodePoint(0));)e.push(this.consumeCodePoint());o=this.peekCodePoint(0);let s=this.peekCodePoint(1);if(46===o&&d(s))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=c;d(this.peekCodePoint(0));)e.push(this.consumeCodePoint());o=this.peekCodePoint(0),s=this.peekCodePoint(1);let n=this.peekCodePoint(2);if((69===o||101===o)&&((43===s||45===s)&&d(n)||d(s)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=c;d(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[y(e),t]}consumeNumericToken(){const e=this.consumeNumber(),o=(0,t.default)(e,2),s=o[0],r=o[1],a=this.peekCodePoint(0),i=this.peekCodePoint(1),l=this.peekCodePoint(2);if(T(a,i,l)){let e=this.consumeName();return{type:n.DIMENSION_TOKEN,number:s,flags:r,unit:e}}return 37===a?(this.consumeCodePoint(),{type:n.PERCENTAGE_TOKEN,number:s,flags:r}):{type:n.NUMBER_TOKEN,number:s,flags:r}}consumeEscapedCodePoint(){const e=this.consumeCodePoint();if(p(e)){let t=(0,s.fromCodePoint)(e);for(;p(this.peekCodePoint(0))&&t.length<6;)t+=(0,s.fromCodePoint)(this.consumeCodePoint());u(this.peekCodePoint(0))&&this.consumeCodePoint();const o=parseInt(t,16);return 0===o||(e=>e>=55296&&e<=57343)(o)||o>1114111?65533:o}return-1===e?65533:e}consumeName(){let e="";for(;;){const t=this.consumeCodePoint();if(f(t))e+=(0,s.fromCodePoint)(t);else{if(!m(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=(0,s.fromCodePoint)(this.consumeEscapedCodePoint())}}}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/types/angle.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js")],void 0===(r="function"==typeof(s=function(e,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseNamedSide=e.isAngle=e.deg=e.angle=void 0,e.angle={name:"angle",parse:e=>{if(e.type===o.TokenType.DIMENSION_TOKEN)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},e.isAngle=e=>e.type===o.TokenType.DIMENSION_TOKEN&&("deg"===e.unit||"grad"===e.unit||"rad"===e.unit||"turn"===e.unit),e.parseNamedSide=e=>{switch(e.filter(t.isIdentToken).map(e=>e.value).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[s.ZERO_LENGTH,s.ZERO_LENGTH];case"to top":case"bottom":return n(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[s.ZERO_LENGTH,s.HUNDRED_PERCENT];case"to right":case"left":return n(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[s.HUNDRED_PERCENT,s.HUNDRED_PERCENT];case"to bottom":case"top":return n(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[s.HUNDRED_PERCENT,s.ZERO_LENGTH];case"to left":case"right":return n(270)}return 0};const n=e=>Math.PI*e/180;e.deg=n})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/types/color.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../../node_modules/@babel/runtime/helpers/slicedToArray.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/types/angle.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js")],void 0===(r="function"==typeof(s=function(e,t,s,n,r,a){"use strict";var i=o("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.pack=e.isTransparent=e.color=e.asString=e.COLORS=void 0,t=i(t),e.color={name:"color",parse:e=>{if(e.type===n.TokenType.FUNCTION){const t=h[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'.concat(e.name,'"'));return t(e.values)}if(e.type===n.TokenType.HASH_TOKEN){if(3===e.value.length){const t=e.value.substring(0,1),o=e.value.substring(1,2),s=e.value.substring(2,3);return l(parseInt(t+t,16),parseInt(o+o,16),parseInt(s+s,16),1)}if(4===e.value.length){const t=e.value.substring(0,1),o=e.value.substring(1,2),s=e.value.substring(2,3),n=e.value.substring(3,4);return l(parseInt(t+t,16),parseInt(o+o,16),parseInt(s+s,16),parseInt(n+n,16)/255)}if(6===e.value.length){const t=e.value.substring(0,2),o=e.value.substring(2,4),s=e.value.substring(4,6);return l(parseInt(t,16),parseInt(o,16),parseInt(s,16),1)}if(8===e.value.length){const t=e.value.substring(0,2),o=e.value.substring(2,4),s=e.value.substring(4,6),n=e.value.substring(6,8);return l(parseInt(t,16),parseInt(o,16),parseInt(s,16),parseInt(n,16)/255)}}if(e.type===n.TokenType.IDENT_TOKEN){const t=f[e.value.toUpperCase()];if(void 0!==t)return t}return f.TRANSPARENT}},e.isTransparent=e=>0==(255&e),e.asString=e=>{const t=255&e,o=255&e>>8,s=255&e>>16,n=255&e>>24;return t<255?"rgba(".concat(n,",").concat(s,",").concat(o,",").concat(t/255,")"):"rgb(".concat(n,",").concat(s,",").concat(o,")")};const l=(e,t,o,s)=>(e<<24|t<<16|o<<8|Math.round(255*s)<<0)>>>0;e.pack=l;const c=(e,t)=>{if(e.type===n.TokenType.NUMBER_TOKEN)return e.number;if(e.type===n.TokenType.PERCENTAGE_TOKEN){const o=3===t?1:255;return 3===t?e.number/100*o:Math.round(e.number/100*o)}return 0},d=e=>{const o=e.filter(s.nonFunctionArgSeparator);if(3===o.length){const e=o.map(c),s=(0,t.default)(e,3),n=s[0],r=s[1],a=s[2];return l(n,r,a,1)}if(4===o.length){const e=o.map(c),s=(0,t.default)(e,4),n=s[0],r=s[1],a=s[2],i=s[3];return l(n,r,a,i)}return 0};function p(e,t,o){return o<0&&(o+=1),o>=1&&(o-=1),o<1/6?(t-e)*o*6+e:o<.5?t:o<2/3?6*(t-e)*(2/3-o)+e:e}const u=e=>{const o=e.filter(s.nonFunctionArgSeparator),i=(0,t.default)(o,4),c=i[0],d=i[1],u=i[2],h=i[3],f=(c.type===n.TokenType.NUMBER_TOKEN?(0,r.deg)(c.number):r.angle.parse(c))/(2*Math.PI),b=(0,a.isLengthPercentage)(d)?d.number/100:0,m=(0,a.isLengthPercentage)(u)?u.number/100:0,T=void 0!==h&&(0,a.isLengthPercentage)(h)?(0,a.getAbsoluteValue)(h,1):1;if(0===b)return l(255*m,255*m,255*m,1);const E=m<=.5?m*(b+1):m+b-m*b,y=2*m-E,g=p(y,E,f+1/3),v=p(y,E,f),x=p(y,E,f-1/3);return l(255*g,255*v,255*x,T)},h={hsl:u,hsla:u,rgb:d,rgba:d},f=e.COLORS={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/types/functions/-prefix-linear-gradient.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/types/image.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/types/angle.js"),o("../sandbox-hooks/html2canvas-lib/css/types/functions/gradient.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prefixLinearGradient=void 0,e.prefixLinearGradient=e=>{let a=(0,n.deg)(180);const i=[];return(0,t.parseFunctionArgs)(e).forEach((e,t)=>{if(0===t){const t=e[0];if(t.type===s.TokenType.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(t.value))return void(a=(0,n.parseNamedSide)(e));if((0,n.isAngle)(t))return void(a=(n.angle.parse(t)+(0,n.deg)(270))%(0,n.deg)(360))}const o=(0,r.parseColorStop)(e);i.push(o)}),{angle:a,stops:i,type:o.CSSImageType.LINEAR_GRADIENT}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/types/functions/-prefix-radial-gradient.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/types/image.js"),o("../sandbox-hooks/html2canvas-lib/css/types/functions/gradient.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length.js"),o("../sandbox-hooks/html2canvas-lib/css/types/functions/radial-gradient.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n,r,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prefixRadialGradient=void 0,e.prefixRadialGradient=e=>{let i=o.CSSRadialShape.CIRCLE,l=o.CSSRadialExtent.FARTHEST_CORNER;const c=[],d=[];return(0,t.parseFunctionArgs)(e).forEach((e,p)=>{let u=!0;if(0===p?u=e.reduce((e,o)=>{if((0,t.isIdentToken)(o))switch(o.value){case"center":return d.push(n.FIFTY_PERCENT),!1;case"top":case"left":return d.push(n.ZERO_LENGTH),!1;case"right":case"bottom":return d.push(n.HUNDRED_PERCENT),!1}else if((0,n.isLengthPercentage)(o)||(0,r.isLength)(o))return d.push(o),!1;return e},u):1===p&&(u=e.reduce((e,s)=>{if((0,t.isIdentToken)(s))switch(s.value){case a.CIRCLE:return i=o.CSSRadialShape.CIRCLE,!1;case a.ELLIPSE:return i=o.CSSRadialShape.ELLIPSE,!1;case a.CONTAIN:case a.CLOSEST_SIDE:return l=o.CSSRadialExtent.CLOSEST_SIDE,!1;case a.FARTHEST_SIDE:return l=o.CSSRadialExtent.FARTHEST_SIDE,!1;case a.CLOSEST_CORNER:return l=o.CSSRadialExtent.CLOSEST_CORNER,!1;case a.COVER:case a.FARTHEST_CORNER:return l=o.CSSRadialExtent.FARTHEST_CORNER,!1}else if((0,r.isLength)(s)||(0,n.isLengthPercentage)(s))return Array.isArray(l)||(l=[]),l.push(s),!1;return e},u)),u){const t=(0,s.parseColorStop)(e);c.push(t)}}),{size:l,shape:i,stops:c,position:d,type:o.CSSImageType.RADIAL_GRADIENT}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/types/functions/-webkit-gradient.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/types/image.js"),o("../sandbox-hooks/html2canvas-lib/css/types/angle.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/types/color.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n,r,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.webkitGradient=void 0,e.webkitGradient=e=>{let i=(0,s.deg)(180);const l=[];let c=o.CSSImageType.LINEAR_GRADIENT,d=o.CSSRadialShape.CIRCLE,p=o.CSSRadialExtent.FARTHEST_CORNER;return(0,t.parseFunctionArgs)(e).forEach((e,s)=>{const i=e[0];if(0===s){if((0,t.isIdentToken)(i)&&"linear"===i.value)return void(c=o.CSSImageType.LINEAR_GRADIENT);if((0,t.isIdentToken)(i)&&"radial"===i.value)return void(c=o.CSSImageType.RADIAL_GRADIENT)}if(i.type===n.TokenType.FUNCTION)if("from"===i.name){const e=r.color.parse(i.values[0]);l.push({stop:a.ZERO_LENGTH,color:e})}else if("to"===i.name){const e=r.color.parse(i.values[0]);l.push({stop:a.HUNDRED_PERCENT,color:e})}else if("color-stop"===i.name){const e=i.values.filter(t.nonFunctionArgSeparator);if(2===e.length){const o=r.color.parse(e[1]),s=e[0];(0,t.isNumberToken)(s)&&l.push({stop:{type:n.TokenType.PERCENTAGE_TOKEN,number:100*s.number,flags:s.flags},color:o})}}}),c===o.CSSImageType.LINEAR_GRADIENT?{angle:(i+(0,s.deg)(180))%(0,s.deg)(360),stops:l,type:c}:{size:p,shape:d,stops:l,position:[],type:c}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/types/functions/counter.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/list-style-type.js"),o("../../node_modules/css-line-break/dist/css-line-break.es5.js"),o("../sandbox-hooks/html2canvas-lib/core/bitwise.js")],void 0===(r="function"==typeof(s=function(e,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCounterText=e.CounterState=void 0,e.CounterState=class{constructor(){this.counters={}}getCounterValue(e){const t=this.counters[e];return t&&t.length?t[t.length-1]:1}getCounterValues(e){const t=this.counters[e];return t||[]}pop(e){e.forEach(e=>this.counters[e].pop())}parse(e){const t=e.counterIncrement,o=e.counterReset;let s=!0;null!==t&&t.forEach(e=>{const t=this.counters[e.counter];t&&0!==e.increment&&(s=!1,t[Math.max(0,t.length-1)]+=e.increment)});const n=[];return s&&o.forEach(e=>{let t=this.counters[e.counter];n.push(e.counter),t||(t=this.counters[e.counter]=[]),t.push(e.reset)}),n}};const n={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"]},r={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:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054f","\u054e","\u054d","\u054c","\u054b","\u054a","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053f","\u053e","\u053d","\u053c","\u053b","\u053a","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},a={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:["\u05d9\u05f3","\u05d8\u05f3","\u05d7\u05f3","\u05d6\u05f3","\u05d5\u05f3","\u05d4\u05f3","\u05d3\u05f3","\u05d2\u05f3","\u05d1\u05f3","\u05d0\u05f3","\u05ea","\u05e9","\u05e8","\u05e7","\u05e6","\u05e4","\u05e2","\u05e1","\u05e0","\u05de","\u05dc","\u05db","\u05d9\u05d8","\u05d9\u05d7","\u05d9\u05d6","\u05d8\u05d6","\u05d8\u05d5","\u05d9","\u05d8","\u05d7","\u05d6","\u05d5","\u05d4","\u05d3","\u05d2","\u05d1","\u05d0"]},i={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:["\u10f5","\u10f0","\u10ef","\u10f4","\u10ee","\u10ed","\u10ec","\u10eb","\u10ea","\u10e9","\u10e8","\u10e7","\u10e6","\u10e5","\u10e4","\u10f3","\u10e2","\u10e1","\u10e0","\u10df","\u10de","\u10dd","\u10f2","\u10dc","\u10db","\u10da","\u10d9","\u10d8","\u10d7","\u10f1","\u10d6","\u10d5","\u10d4","\u10d3","\u10d2","\u10d1","\u10d0"]},l=(e,t,o,s,n,r)=>e<t||e>o?h(e,n,r.length>0):s.integers.reduce((t,o,n)=>{for(;e>=o;)e-=o,t+=s.values[n];return t},"")+r,c=(e,t,o,s)=>{let n="";do{o||e--,n=s(e)+n,e/=t}while(e*t>=t);return n},d=(e,t,s,n,r)=>{const a=s-t+1;return(e<0?"-":"")+(c(Math.abs(e),a,n,e=>(0,o.fromCodePoint)(Math.floor(e%a)+t))+r)},p=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:". ";const s=t.length;return c(Math.abs(e),s,!1,e=>t[Math.floor(e%s)])+o},u=(e,o,n,r,a,i)=>{if(e<-9999||e>9999)return h(e,t.LIST_STYLE_TYPE.CJK_DECIMAL,a.length>0);let l=Math.abs(e),c=a;if(0===l)return o[0]+c;for(let t=0;l>0&&t<=4;t++){let r=l%10;0===r&&(0,s.contains)(i,1)&&""!==c?c=o[r]+c:r>1||1===r&&0===t||1===r&&1===t&&(0,s.contains)(i,2)||1===r&&1===t&&(0,s.contains)(i,4)&&e>100||1===r&&t>1&&(0,s.contains)(i,8)?c=o[r]+(t>0?n[t-1]:"")+c:1===r&&t>0&&(c=n[t-1]+c),l=Math.floor(l/10)}return(e<0?r:"")+c},h=(e,o,s)=>{const c=s?". ":"",h=s?"\u3001":"",f=s?", ":"",b=s?" ":"";switch(o){case t.LIST_STYLE_TYPE.DISC:return"\u2022"+b;case t.LIST_STYLE_TYPE.CIRCLE:return"\u25e6"+b;case t.LIST_STYLE_TYPE.SQUARE:return"\u25fe"+b;case t.LIST_STYLE_TYPE.DECIMAL_LEADING_ZERO:const o=d(e,48,57,!0,c);return o.length<4?"0".concat(o):o;case t.LIST_STYLE_TYPE.CJK_DECIMAL:return p(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",h);case t.LIST_STYLE_TYPE.LOWER_ROMAN:return l(e,1,3999,n,t.LIST_STYLE_TYPE.DECIMAL,c).toLowerCase();case t.LIST_STYLE_TYPE.UPPER_ROMAN:return l(e,1,3999,n,t.LIST_STYLE_TYPE.DECIMAL,c);case t.LIST_STYLE_TYPE.LOWER_GREEK:return d(e,945,969,!1,c);case t.LIST_STYLE_TYPE.LOWER_ALPHA:return d(e,97,122,!1,c);case t.LIST_STYLE_TYPE.UPPER_ALPHA:return d(e,65,90,!1,c);case t.LIST_STYLE_TYPE.ARABIC_INDIC:return d(e,1632,1641,!0,c);case t.LIST_STYLE_TYPE.ARMENIAN:case t.LIST_STYLE_TYPE.UPPER_ARMENIAN:return l(e,1,9999,r,t.LIST_STYLE_TYPE.DECIMAL,c);case t.LIST_STYLE_TYPE.LOWER_ARMENIAN:return l(e,1,9999,r,t.LIST_STYLE_TYPE.DECIMAL,c).toLowerCase();case t.LIST_STYLE_TYPE.BENGALI:return d(e,2534,2543,!0,c);case t.LIST_STYLE_TYPE.CAMBODIAN:case t.LIST_STYLE_TYPE.KHMER:return d(e,6112,6121,!0,c);case t.LIST_STYLE_TYPE.CJK_EARTHLY_BRANCH:return p(e,"\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5",h);case t.LIST_STYLE_TYPE.CJK_HEAVENLY_STEM:return p(e,"\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678",h);case t.LIST_STYLE_TYPE.CJK_IDEOGRAPHIC:case t.LIST_STYLE_TYPE.TRAD_CHINESE_INFORMAL:return u(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\u8ca0",h,14);case t.LIST_STYLE_TYPE.TRAD_CHINESE_FORMAL:return u(e,"\u96f6\u58f9\u8cb3\u53c3\u8086\u4f0d\u9678\u67d2\u634c\u7396","\u62fe\u4f70\u4edf\u842c","\u8ca0",h,15);case t.LIST_STYLE_TYPE.SIMP_CHINESE_INFORMAL:return u(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\u8d1f",h,14);case t.LIST_STYLE_TYPE.SIMP_CHINESE_FORMAL:return u(e,"\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396","\u62fe\u4f70\u4edf\u842c","\u8d1f",h,15);case t.LIST_STYLE_TYPE.JAPANESE_INFORMAL:return u(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u4e07","\u30de\u30a4\u30ca\u30b9",h,0);case t.LIST_STYLE_TYPE.JAPANESE_FORMAL:return u(e,"\u96f6\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343\u4e07","\u30de\u30a4\u30ca\u30b9",h,7);case t.LIST_STYLE_TYPE.KOREAN_HANGUL_FORMAL:return u(e,"\uc601\uc77c\uc774\uc0bc\uc0ac\uc624\uc721\uce60\ud314\uad6c","\uc2ed\ubc31\ucc9c\ub9cc","\ub9c8\uc774\ub108\uc2a4",f,7);case t.LIST_STYLE_TYPE.KOREAN_HANJA_INFORMAL:return u(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\ub9c8\uc774\ub108\uc2a4",f,0);case t.LIST_STYLE_TYPE.KOREAN_HANJA_FORMAL:return u(e,"\u96f6\u58f9\u8cb3\u53c3\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343","\ub9c8\uc774\ub108\uc2a4",f,7);case t.LIST_STYLE_TYPE.DEVANAGARI:return d(e,2406,2415,!0,c);case t.LIST_STYLE_TYPE.GEORGIAN:return l(e,1,19999,i,t.LIST_STYLE_TYPE.DECIMAL,c);case t.LIST_STYLE_TYPE.GUJARATI:return d(e,2790,2799,!0,c);case t.LIST_STYLE_TYPE.GURMUKHI:return d(e,2662,2671,!0,c);case t.LIST_STYLE_TYPE.HEBREW:return l(e,1,10999,a,t.LIST_STYLE_TYPE.DECIMAL,c);case t.LIST_STYLE_TYPE.HIRAGANA:return p(e,"\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u305f\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308a\u308b\u308c\u308d\u308f\u3090\u3091\u3092\u3093");case t.LIST_STYLE_TYPE.HIRAGANA_IROHA:return p(e,"\u3044\u308d\u306f\u306b\u307b\u3078\u3068\u3061\u308a\u306c\u308b\u3092\u308f\u304b\u3088\u305f\u308c\u305d\u3064\u306d\u306a\u3089\u3080\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304d\u3086\u3081\u307f\u3057\u3091\u3072\u3082\u305b\u3059");case t.LIST_STYLE_TYPE.KANNADA:return d(e,3302,3311,!0,c);case t.LIST_STYLE_TYPE.KATAKANA:return p(e,"\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f0\u30f1\u30f2\u30f3",h);case t.LIST_STYLE_TYPE.KATAKANA_IROHA:return p(e,"\u30a4\u30ed\u30cf\u30cb\u30db\u30d8\u30c8\u30c1\u30ea\u30cc\u30eb\u30f2\u30ef\u30ab\u30e8\u30bf\u30ec\u30bd\u30c4\u30cd\u30ca\u30e9\u30e0\u30a6\u30f0\u30ce\u30aa\u30af\u30e4\u30de\u30b1\u30d5\u30b3\u30a8\u30c6\u30a2\u30b5\u30ad\u30e6\u30e1\u30df\u30b7\u30f1\u30d2\u30e2\u30bb\u30b9",h);case t.LIST_STYLE_TYPE.LAO:return d(e,3792,3801,!0,c);case t.LIST_STYLE_TYPE.MONGOLIAN:return d(e,6160,6169,!0,c);case t.LIST_STYLE_TYPE.MYANMAR:return d(e,4160,4169,!0,c);case t.LIST_STYLE_TYPE.ORIYA:return d(e,2918,2927,!0,c);case t.LIST_STYLE_TYPE.PERSIAN:return d(e,1776,1785,!0,c);case t.LIST_STYLE_TYPE.TAMIL:return d(e,3046,3055,!0,c);case t.LIST_STYLE_TYPE.TELUGU:return d(e,3174,3183,!0,c);case t.LIST_STYLE_TYPE.THAI:return d(e,3664,3673,!0,c);case t.LIST_STYLE_TYPE.TIBETAN:return d(e,3872,3881,!0,c);case t.LIST_STYLE_TYPE.DECIMAL:default:return d(e,48,57,!0,c)}};e.createCounterText=h})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/types/functions/gradient.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../../node_modules/@babel/runtime/helpers/slicedToArray.js"),o("../sandbox-hooks/html2canvas-lib/css/types/image.js"),o("../sandbox-hooks/html2canvas-lib/css/types/color.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js")],void 0===(r="function"==typeof(s=function(e,t,s,n,r){"use strict";var a=o("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.processColorStops=e.parseColorStop=e.calculateRadius=e.calculateGradientDirection=void 0,t=a(t),e.parseColorStop=e=>{const t=n.color.parse(e[0]),o=e[1];return o&&(0,r.isLengthPercentage)(o)?{color:t,stop:o}:{color:t,stop:null}},e.processColorStops=(e,t)=>{const o=e[0],s=e[e.length-1];null===o.stop&&(o.stop=r.ZERO_LENGTH),null===s.stop&&(s.stop=r.HUNDRED_PERCENT);const n=[];let a=0;for(let o=0;o<e.length;o++){const s=e[o].stop;if(null!==s){const e=(0,r.getAbsoluteValue)(s,t);e>a?n.push(e):n.push(a),a=e}else n.push(null)}let i=null;for(let e=0;e<n.length;e++){const t=n[e];if(null===t)null===i&&(i=e);else if(null!==i){const o=e-i,s=(t-n[i-1])/(o+1);for(let e=1;e<=o;e++)n[i+e-1]=s*e;i=null}}return e.map((e,o)=>({color:e.color,stop:Math.max(Math.min(1,n[o]/t),0)}))},e.calculateGradientDirection=(e,t,o)=>{const s="number"==typeof e?e:((e,t,o)=>{const s=t/2,n=o/2,a=(0,r.getAbsoluteValue)(e[0],t)-s,i=n-(0,r.getAbsoluteValue)(e[1],o);return(Math.atan2(i,a)+2*Math.PI)%(2*Math.PI)})(e,t,o),n=Math.abs(t*Math.sin(s))+Math.abs(o*Math.cos(s)),a=t/2,i=o/2,l=n/2,c=Math.sin(s-Math.PI/2)*l,d=Math.cos(s-Math.PI/2)*l;return[n,a-d,a+d,i-c,i+c]};const i=(e,t)=>Math.sqrt(e*e+t*t),l=(e,o,s,n,r)=>[[0,0],[0,o],[e,0],[e,o]].reduce((e,o)=>{const a=(0,t.default)(o,2),l=a[0],c=a[1],d=i(s-l,n-c);return(r?d<e.optimumDistance:d>e.optimumDistance)?{optimumCorner:o,optimumDistance:d}:e},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner;e.calculateRadius=(e,o,n,a,c)=>{let d=0,p=0;switch(e.size){case s.CSSRadialExtent.CLOSEST_SIDE:e.shape===s.CSSRadialShape.CIRCLE?d=p=Math.min(Math.abs(o),Math.abs(o-a),Math.abs(n),Math.abs(n-c)):e.shape===s.CSSRadialShape.ELLIPSE&&(d=Math.min(Math.abs(o),Math.abs(o-a)),p=Math.min(Math.abs(n),Math.abs(n-c)));break;case s.CSSRadialExtent.CLOSEST_CORNER:if(e.shape===s.CSSRadialShape.CIRCLE)d=p=Math.min(i(o,n),i(o,n-c),i(o-a,n),i(o-a,n-c));else if(e.shape===s.CSSRadialShape.ELLIPSE){const e=Math.min(Math.abs(n),Math.abs(n-c))/Math.min(Math.abs(o),Math.abs(o-a)),s=l(a,c,o,n,!0),r=(0,t.default)(s,2),u=r[0],h=r[1];d=i(u-o,(h-n)/e),p=e*d}break;case s.CSSRadialExtent.FARTHEST_SIDE:e.shape===s.CSSRadialShape.CIRCLE?d=p=Math.max(Math.abs(o),Math.abs(o-a),Math.abs(n),Math.abs(n-c)):e.shape===s.CSSRadialShape.ELLIPSE&&(d=Math.max(Math.abs(o),Math.abs(o-a)),p=Math.max(Math.abs(n),Math.abs(n-c)));break;case s.CSSRadialExtent.FARTHEST_CORNER:if(e.shape===s.CSSRadialShape.CIRCLE)d=p=Math.max(i(o,n),i(o,n-c),i(o-a,n),i(o-a,n-c));else if(e.shape===s.CSSRadialShape.ELLIPSE){const e=Math.max(Math.abs(n),Math.abs(n-c))/Math.max(Math.abs(o),Math.abs(o-a)),s=l(a,c,o,n,!1),r=(0,t.default)(s,2),u=r[0],h=r[1];d=i(u-o,(h-n)/e),p=e*d}}return Array.isArray(e.size)&&(d=(0,r.getAbsoluteValue)(e.size[0],a),p=2===e.size.length?(0,r.getAbsoluteValue)(e.size[1],c):d),[d,p]}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/types/functions/linear-gradient.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/types/angle.js"),o("../sandbox-hooks/html2canvas-lib/css/types/image.js"),o("../sandbox-hooks/html2canvas-lib/css/types/functions/gradient.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linearGradient=void 0,e.linearGradient=e=>{let a=(0,s.deg)(180);const i=[];return(0,t.parseFunctionArgs)(e).forEach((e,t)=>{if(0===t){const t=e[0];if(t.type===o.TokenType.IDENT_TOKEN&&"to"===t.value)return void(a=(0,s.parseNamedSide)(e));if((0,s.isAngle)(t))return void(a=s.angle.parse(t))}const n=(0,r.parseColorStop)(e);i.push(n)}),{angle:a,stops:i,type:n.CSSImageType.LINEAR_GRADIENT}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/types/functions/radial-gradient.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/types/image.js"),o("../sandbox-hooks/html2canvas-lib/css/types/functions/gradient.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.radialGradient=e.FARTHEST_SIDE=e.FARTHEST_CORNER=e.ELLIPSE=e.COVER=e.CONTAIN=e.CLOSEST_SIDE=e.CLOSEST_CORNER=e.CIRCLE=void 0;const a=e.CLOSEST_SIDE="closest-side",i=e.FARTHEST_SIDE="farthest-side",l=e.CLOSEST_CORNER="closest-corner",c=e.FARTHEST_CORNER="farthest-corner",d=e.CIRCLE="circle",p=e.ELLIPSE="ellipse",u=e.COVER="cover",h=e.CONTAIN="contain";e.radialGradient=e=>{let f=o.CSSRadialShape.CIRCLE,b=o.CSSRadialExtent.FARTHEST_CORNER;const m=[],T=[];return(0,t.parseFunctionArgs)(e).forEach((e,E)=>{let y=!0;if(0===E){let s=!1;y=e.reduce((e,m)=>{if(s)if((0,t.isIdentToken)(m))switch(m.value){case"center":return T.push(n.FIFTY_PERCENT),e;case"top":case"left":return T.push(n.ZERO_LENGTH),e;case"right":case"bottom":return T.push(n.HUNDRED_PERCENT),e}else((0,n.isLengthPercentage)(m)||(0,r.isLength)(m))&&T.push(m);else if((0,t.isIdentToken)(m))switch(m.value){case d:return f=o.CSSRadialShape.CIRCLE,!1;case p:return f=o.CSSRadialShape.ELLIPSE,!1;case"at":return s=!0,!1;case a:return b=o.CSSRadialExtent.CLOSEST_SIDE,!1;case u:case i:return b=o.CSSRadialExtent.FARTHEST_SIDE,!1;case h:case l:return b=o.CSSRadialExtent.CLOSEST_CORNER,!1;case c:return b=o.CSSRadialExtent.FARTHEST_CORNER,!1}else if((0,r.isLength)(m)||(0,n.isLengthPercentage)(m))return Array.isArray(b)||(b=[]),b.push(m),!1;return e},y)}if(y){const t=(0,s.parseColorStop)(e);m.push(t)}}),{size:b,shape:f,stops:m,position:T,type:o.CSSImageType.RADIAL_GRADIENT}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/types/image.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/types/functions/linear-gradient.js"),o("../sandbox-hooks/html2canvas-lib/css/types/functions/-prefix-linear-gradient.js"),o("../sandbox-hooks/html2canvas-lib/core/cache-storage.js"),o("../sandbox-hooks/html2canvas-lib/css/types/functions/-webkit-gradient.js"),o("../sandbox-hooks/html2canvas-lib/css/types/functions/radial-gradient.js"),o("../sandbox-hooks/html2canvas-lib/css/types/functions/-prefix-radial-gradient.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n,r,a,i){"use strict";var l,c,d;Object.defineProperty(e,"__esModule",{value:!0}),e.isRadialGradient=e.isLinearGradient=e.image=e.CSSRadialShape=e.CSSRadialExtent=e.CSSImageType=void 0,e.isSupportedImage=function(e){return e.type!==t.TokenType.FUNCTION||p[e.name]},function(e){e[e.URL=0]="URL",e[e.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",e[e.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(l||(e.CSSImageType=l={})),e.isLinearGradient=e=>e.type===l.LINEAR_GRADIENT,e.isRadialGradient=e=>e.type===l.RADIAL_GRADIENT,function(e){e[e.CIRCLE=0]="CIRCLE",e[e.ELLIPSE=1]="ELLIPSE"}(c||(e.CSSRadialShape=c={})),function(e){e[e.CLOSEST_SIDE=0]="CLOSEST_SIDE",e[e.FARTHEST_SIDE=1]="FARTHEST_SIDE",e[e.CLOSEST_CORNER=2]="CLOSEST_CORNER",e[e.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(d||(e.CSSRadialExtent=d={})),e.image={name:"image",parse:e=>{if(e.type===t.TokenType.URL_TOKEN){const t={url:e.value,type:l.URL};return n.CacheStorage.getInstance().addImage(e.value),t}if(e.type===t.TokenType.FUNCTION){const t=p[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported image function "'.concat(e.name,'"'));return t(e.values)}throw new Error("Unsupported image type")}};const p={"linear-gradient":o.linearGradient,"-moz-linear-gradient":s.prefixLinearGradient,"-ms-linear-gradient":s.prefixLinearGradient,"-o-linear-gradient":s.prefixLinearGradient,"-webkit-linear-gradient":s.prefixLinearGradient,"radial-gradient":a.radialGradient,"-moz-radial-gradient":i.prefixRadialGradient,"-ms-radial-gradient":i.prefixRadialGradient,"-o-radial-gradient":i.prefixRadialGradient,"-webkit-radial-gradient":i.prefixRadialGradient,"-webkit-gradient":r.webkitGradient}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../../node_modules/@babel/runtime/helpers/slicedToArray.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length.js")],void 0===(r="function"==typeof(s=function(e,t,s,n,r){"use strict";var a=o("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.parseLengthPercentageTuple=e.isLengthPercentage=e.getAbsoluteValueForTuple=e.getAbsoluteValue=e.ZERO_LENGTH=e.HUNDRED_PERCENT=e.FIFTY_PERCENT=void 0,t=a(t),e.isLengthPercentage=e=>e.type===s.TokenType.PERCENTAGE_TOKEN||(0,r.isLength)(e),e.parseLengthPercentageTuple=e=>e.length>1?[e[0],e[1]]:[e[0]],e.ZERO_LENGTH={type:s.TokenType.NUMBER_TOKEN,number:0,flags:s.FLAG_INTEGER},e.FIFTY_PERCENT={type:s.TokenType.PERCENTAGE_TOKEN,number:50,flags:s.FLAG_INTEGER},e.HUNDRED_PERCENT={type:s.TokenType.PERCENTAGE_TOKEN,number:100,flags:s.FLAG_INTEGER},e.getAbsoluteValueForTuple=(e,o,s)=>{let n=(0,t.default)(e,2),r=n[0],a=n[1];return[i(r,o),i(void 0!==a?a:r,s)]};const i=(e,t)=>{if(e.type===s.TokenType.PERCENTAGE_TOKEN)return e.number/100*t;if((0,n.isDimensionToken)(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number};e.getAbsoluteValue=i})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/css/types/length.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isLength=void 0,e.isLength=e=>e.type===t.TokenType.NUMBER_TOKEN||e.type===t.TokenType.DIMENSION_TOKEN})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/dom/document-cloner.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../../node_modules/@babel/runtime/helpers/slicedToArray.js"),o("../../node_modules/@babel/runtime/helpers/asyncToGenerator.js"),o("../sandbox-hooks/html2canvas-lib/dom/node-parser.js"),o("../sandbox-hooks/html2canvas-lib/core/logger.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/types/functions/counter.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/list-style-type.js"),o("../sandbox-hooks/html2canvas-lib/css/index.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/quotes.js")],void 0===(r="function"==typeof(s=function(e,t,s,n,r,a,i,l,c,d,p){"use strict";var u,h=o("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.copyCSSStyles=e.DocumentCloner=void 0,t=h(t),s=h(s),e.DocumentCloner=class{constructor(e,t){if(this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new l.CounterState,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement)}toIFrame(e,t){var o=this;const n=f(e,t);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");const r=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,i=n.contentWindow,l=i.document,c=b(n).then((0,s.default)((function*(){o.scrolledElements.forEach(y),i&&(i.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||i.scrollY===t.top&&i.scrollX===t.left||(l.documentElement.style.top=-t.top+"px",l.documentElement.style.left=-t.left+"px",l.documentElement.style.position="absolute"));const e=o.options.onclone;return void 0===o.clonedReferenceElement?Promise.reject("Error finding the ".concat(o.referenceElement.nodeName," in the cloned document")):(l.fonts&&l.fonts.ready&&(yield l.fonts.ready),"function"==typeof e?Promise.resolve().then(()=>e(l)).then(()=>n):n)})));return l.open(),l.write("".concat(T(document.doctype),"<html></html>")),E(this.referenceElement.ownerDocument,r,a),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c}createElementClone(e){if((0,n.isCanvasElement)(e))return this.createCanvasClone(e);if((0,n.isStyleElement)(e))return this.createStyleClone(e);const t=e.cloneNode(!1);return(0,n.isImageElement)(t)&&"lazy"===t.loading&&(t.loading="eager"),t}createStyleClone(e){try{const t=e.sheet;if(t&&t.cssRules){const o=[].slice.call(t.cssRules,0).reduce((e,t)=>t&&"string"==typeof t.cssText?e+t.cssText:e,""),s=e.cloneNode(!1);return s.textContent=o,s}}catch(e){if(r.Logger.getInstance(this.options.id).error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)}createCanvasClone(e){if(this.options.inlineImages&&e.ownerDocument){const t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(e){r.Logger.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}const t=e.cloneNode(!1);try{t.width=e.width,t.height=e.height;const o=e.getContext("2d"),s=t.getContext("2d");return s&&(o?s.putImageData(o.getImageData(0,0,e.width,e.height),0,0):s.drawImage(e,0,0)),t}catch(e){}return t}cloneNode(e){if((0,n.isTextNode)(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);const t=e.ownerDocument.defaultView;if(t&&(0,n.isElementNode)(e)&&((0,n.isHTMLElementNode)(e)||(0,n.isSVGElementNode)(e))){const o=this.createElementClone(e),s=t.getComputedStyle(e),r=t.getComputedStyle(e,":before"),a=t.getComputedStyle(e,":after");this.referenceElement===e&&(0,n.isHTMLElementNode)(o)&&(this.clonedReferenceElement=o),(0,n.isBodyElement)(o)&&x(o);const i=this.counters.parse(new d.CSSParsedCounterDeclaration(s)),l=this.resolvePseudoContent(e,o,r,u.BEFORE);for(let t=e.firstChild;t;t=t.nextSibling)(0,n.isElementNode)(t)&&((0,n.isScriptElement)(t)||t.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&(0,n.isElementNode)(t)&&(0,n.isStyleElement)(t)||o.appendChild(this.cloneNode(t));l&&o.insertBefore(l,o.firstChild);const c=this.resolvePseudoContent(e,o,a,u.AFTER);return c&&o.appendChild(c),this.counters.pop(i),s&&(this.options.copyStyles||(0,n.isSVGElementNode)(e))&&!(0,n.isIFrameElement)(e)&&m(s,o),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([o,e.scrollLeft,e.scrollTop]),((0,n.isTextareaElement)(e)||(0,n.isSelectElement)(e))&&((0,n.isTextareaElement)(o)||(0,n.isSelectElement)(o))&&(o.value=e.value),o}return e.cloneNode(!1)}resolvePseudoContent(e,o,s,r){if(!s)return;const h=s.content,f=o.ownerDocument;if(!f||!h||"none"===h||"-moz-alt-content"===h||"none"===s.display)return;this.counters.parse(new d.CSSParsedCounterDeclaration(s));const b=new d.CSSParsedPseudoDeclaration(s),T=f.createElement("html2canvaspseudoelement");m(s,T),b.content.forEach(o=>{if(o.type===i.TokenType.STRING_TOKEN)T.appendChild(f.createTextNode(o.value));else if(o.type===i.TokenType.URL_TOKEN){const e=f.createElement("img");e.src=o.value,e.style.opacity="1",T.appendChild(e)}else if(o.type===i.TokenType.FUNCTION){if("attr"===o.name){const t=o.values.filter(a.isIdentToken);t.length&&T.appendChild(f.createTextNode(e.getAttribute(t[0].value)||""))}else if("counter"===o.name){const e=o.values.filter(a.nonFunctionArgSeparator),s=(0,t.default)(e,2),n=s[0],r=s[1];if(n&&(0,a.isIdentToken)(n)){const e=this.counters.getCounterValue(n.value),t=r&&(0,a.isIdentToken)(r)?c.listStyleType.parse(r.value):c.LIST_STYLE_TYPE.DECIMAL;T.appendChild(f.createTextNode((0,l.createCounterText)(e,t,!1)))}}else if("counters"===o.name){const e=o.values.filter(a.nonFunctionArgSeparator),s=(0,t.default)(e,3),n=s[0],r=s[1],d=s[2];if(n&&(0,a.isIdentToken)(n)){const e=this.counters.getCounterValues(n.value),t=d&&(0,a.isIdentToken)(d)?c.listStyleType.parse(d.value):c.LIST_STYLE_TYPE.DECIMAL,o=r&&r.type===i.TokenType.STRING_TOKEN?r.value:"",s=e.map(e=>(0,l.createCounterText)(e,t,!1)).join(o);T.appendChild(f.createTextNode(s))}}}else if(o.type===i.TokenType.IDENT_TOKEN)switch(o.value){case"open-quote":T.appendChild(f.createTextNode((0,p.getQuote)(b.quotes,this.quoteDepth++,!0)));break;case"close-quote":T.appendChild(f.createTextNode((0,p.getQuote)(b.quotes,--this.quoteDepth,!1)));break;default:T.appendChild(f.createTextNode(o.value))}}),T.className="".concat(g," ").concat(v);const E=r===u.BEFORE?" ".concat(g):" ".concat(v);return(0,n.isSVGElementNode)(o)?o.className.baseValue+=E:o.className+=E,T}static destroy(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)}},function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(u||(u={}));const f=(e,t)=>{const o=e.createElement("iframe");return o.className="html2canvas-container",o.style.visibility="hidden",o.style.position="fixed",o.style.left="-10000px",o.style.top="0px",o.style.border="0",o.width=t.width.toString(),o.height=t.height.toString(),o.scrolling="no",o.setAttribute("data-html2canvas-ignore","true"),e.body.appendChild(o),o},b=e=>new Promise((t,o)=>{const s=e.contentWindow;if(!s)return o("No window assigned for iframe");const n=s.document;s.onload=e.onload=n.onreadystatechange=()=>{s.onload=e.onload=n.onreadystatechange=null;const o=setInterval(()=>{n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(o),t(e))},50)}}),m=(e,t)=>{for(let o=e.length-1;o>=0;o--){const s=e.item(o);"content"!==s&&t.style.setProperty(s,e.getPropertyValue(s))}return t};e.copyCSSStyles=m;const T=e=>{let t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'.concat(e.publicId,'"')),e.systemId&&(t+='"'.concat(e.systemId,'"')),t+=">"),t},E=(e,t,o)=>{e&&e.defaultView&&(t!==e.defaultView.pageXOffset||o!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,o)},y=e=>{let o=(0,t.default)(e,3),s=o[0],n=o[1],r=o[2];s.scrollLeft=n,s.scrollTop=r},g="___html2canvas___pseudoelement_before",v="___html2canvas___pseudoelement_after",x=e=>{_(e,".".concat(g).concat(":before").concat('{\n content: "" !important;\n display: none !important;\n}',"\n .").concat(v).concat(":after").concat('{\n content: "" !important;\n display: none !important;\n}'))},_=(e,t)=>{const o=e.ownerDocument;if(o){const s=o.createElement("style");s.textContent=t,e.appendChild(s)}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/dom/element-container.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/index.js"),o("../sandbox-hooks/html2canvas-lib/css/layout/bounds.js"),o("../sandbox-hooks/html2canvas-lib/dom/node-parser.js")],void 0===(r="function"==typeof(s=function(e,t,o,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ElementContainer=void 0,e.ElementContainer=class{constructor(e){this.styles=new t.CSSParsedDeclaration(window.getComputedStyle(e,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&(0,s.isHTMLElementNode)(e)&&(e.style.transform="none"),this.bounds=(0,o.parseBounds)(e),this.flags=0}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/dom/elements/li-element-container.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/dom/element-container.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LIElementContainer=void 0;class o extends t.ElementContainer{constructor(e){super(e),this.value=e.value}}e.LIElementContainer=o})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/dom/elements/ol-element-container.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/dom/element-container.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OLElementContainer=void 0;class o extends t.ElementContainer{constructor(e){super(e),this.start=e.start,this.reversed="boolean"==typeof e.reversed&&!0===e.reversed}}e.OLElementContainer=o})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/dom/elements/select-element-container.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/dom/element-container.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectElementContainer=void 0;class o extends t.ElementContainer{constructor(e){super(e);const t=e.options[e.selectedIndex||0];this.value=t&&t.text||""}}e.SelectElementContainer=o})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/dom/elements/textarea-element-container.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/dom/element-container.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextareaElementContainer=void 0;class o extends t.ElementContainer{constructor(e){super(e),this.value=e.value}}e.TextareaElementContainer=o})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/dom/node-parser.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/dom/element-container.js"),o("../sandbox-hooks/html2canvas-lib/dom/text-container.js"),o("../sandbox-hooks/html2canvas-lib/dom/replaced-elements/image-element-container.js"),o("../sandbox-hooks/html2canvas-lib/dom/replaced-elements/canvas-element-container.js"),o("../sandbox-hooks/html2canvas-lib/dom/replaced-elements/svg-element-container.js"),o("../sandbox-hooks/html2canvas-lib/dom/elements/li-element-container.js"),o("../sandbox-hooks/html2canvas-lib/dom/elements/ol-element-container.js"),o("../sandbox-hooks/html2canvas-lib/dom/replaced-elements/input-element-container.js"),o("../sandbox-hooks/html2canvas-lib/dom/elements/select-element-container.js"),o("../sandbox-hooks/html2canvas-lib/dom/elements/textarea-element-container.js"),o("../sandbox-hooks/html2canvas-lib/dom/replaced-elements/iframe-element-container.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n,r,a,i,l,c,d,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseTree=e.isTextareaElement=e.isTextNode=e.isStyleElement=e.isSelectElement=e.isScriptElement=e.isSVGElementNode=e.isSVGElement=e.isOLElement=e.isLIElement=e.isInputElement=e.isImageElement=e.isIFrameElement=e.isHTMLElementNode=e.isHTMLElement=e.isElementNode=e.isCanvasElement=e.isBodyElement=void 0;const u=["OL","UL","MENU"],h=(e,t,s)=>{for(let n,r=e.firstChild;r;r=n)if(n=r.nextSibling,T(r)&&r.data.trim().length>0)t.textNodes.push(new o.TextContainer(r,t.styles));else if(E(r)){const e=f(r);e.styles.isVisible()&&(b(r,e,s)?e.flags|=4:m(e.styles)&&(e.flags|=2),-1!==u.indexOf(r.tagName)&&(e.flags|=8),t.elements.push(e),C(r)||_(r)||N(r)||h(r,e,s))}},f=e=>S(e)?new s.ImageElementContainer(e):I(e)?new n.CanvasElementContainer(e):_(e)?new r.SVGElementContainer(e):g(e)?new a.LIElementContainer(e):v(e)?new i.OLElementContainer(e):x(e)?new l.InputElementContainer(e):N(e)?new c.SelectElementContainer(e):C(e)?new d.TextareaElementContainer(e):A(e)?new p.IFrameElementContainer(e):new t.ElementContainer(e);e.parseTree=e=>{const t=f(e);return t.flags|=4,h(e,t,t),t};const b=(e,t,o)=>t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||R(e)&&o.styles.isTransparent(),m=e=>e.isPositioned()||e.isFloating(),T=e=>e.nodeType===Node.TEXT_NODE;e.isTextNode=T;const E=e=>e.nodeType===Node.ELEMENT_NODE;e.isElementNode=E,e.isHTMLElementNode=e=>E(e)&&void 0!==e.style&&!y(e);const y=e=>"object"==typeof e.className;e.isSVGElementNode=y;const g=e=>"LI"===e.tagName;e.isLIElement=g;const v=e=>"OL"===e.tagName;e.isOLElement=v;const x=e=>"INPUT"===e.tagName;e.isInputElement=x,e.isHTMLElement=e=>"HTML"===e.tagName;const _=e=>"svg"===e.tagName;e.isSVGElement=_;const R=e=>"BODY"===e.tagName;e.isBodyElement=R;const I=e=>"CANVAS"===e.tagName;e.isCanvasElement=I;const S=e=>"IMG"===e.tagName;e.isImageElement=S;const A=e=>"IFRAME"===e.tagName;e.isIFrameElement=A,e.isStyleElement=e=>"STYLE"===e.tagName,e.isScriptElement=e=>"SCRIPT"===e.tagName;const C=e=>"TEXTAREA"===e.tagName;e.isTextareaElement=C;const N=e=>"SELECT"===e.tagName;e.isSelectElement=N})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/dom/replaced-elements/canvas-element-container.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/dom/element-container.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasElementContainer=void 0;class o extends t.ElementContainer{constructor(e){super(e),this.canvas=e,this.intrinsicWidth=e.width,this.intrinsicHeight=e.height}}e.CanvasElementContainer=o})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/dom/replaced-elements/iframe-element-container.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/dom/element-container.js"),o("../sandbox-hooks/html2canvas-lib/dom/node-parser.js"),o("../sandbox-hooks/html2canvas-lib/css/types/color.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IFrameElementContainer=void 0;const r=e=>s.color.parse(n.Parser.create(e).parseComponentValue());class a extends t.ElementContainer{constructor(e){super(e),this.src=e.src,this.width=parseInt(e.width,10)||0,this.height=parseInt(e.height,10)||0,this.backgroundColor=this.styles.backgroundColor;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement){this.tree=(0,o.parseTree)(e.contentWindow.document.documentElement);const t=e.contentWindow.document.documentElement?r(getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):s.COLORS.TRANSPARENT,n=e.contentWindow.document.body?r(getComputedStyle(e.contentWindow.document.body).backgroundColor):s.COLORS.TRANSPARENT;this.backgroundColor=(0,s.isTransparent)(t)?(0,s.isTransparent)(n)?this.styles.backgroundColor:n:t}}catch(e){}}}e.IFrameElementContainer=a})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/dom/replaced-elements/image-element-container.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/dom/element-container.js"),o("../sandbox-hooks/html2canvas-lib/core/cache-storage.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ImageElementContainer=void 0;class s extends t.ElementContainer{constructor(e){super(e),this.src=e.currentSrc||e.src,this.intrinsicWidth=e.naturalWidth,this.intrinsicHeight=e.naturalHeight,o.CacheStorage.getInstance().addImage(this.src)}}e.ImageElementContainer=s})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/dom/replaced-elements/input-element-container.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/dom/element-container.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-style.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-clip.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/tokenizer.js"),o("../sandbox-hooks/html2canvas-lib/css/layout/bounds.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RADIO=e.PASSWORD=e.InputElementContainer=e.INPUT_COLOR=e.CHECKBOX=void 0;const a=[{type:n.TokenType.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],i=[{type:n.TokenType.PERCENTAGE_TOKEN,flags:0,number:50}],l=e.CHECKBOX="checkbox",c=e.RADIO="radio",d=e.PASSWORD="password";e.INPUT_COLOR=707406591;class p extends t.ElementContainer{constructor(e){var t;switch(super(e),this.type=e.type.toLowerCase(),this.checked=e.checked,this.value=(e=>{const t=e.type===d?new Array(e.value.length+1).join("\u2022"):e.value;return 0===t.length?e.placeholder||"":t})(e),this.type!==l&&this.type!==c||(this.styles.backgroundColor=3739148031,this.styles.borderTopColor=this.styles.borderRightColor=this.styles.borderBottomColor=this.styles.borderLeftColor=2779096575,this.styles.borderTopWidth=this.styles.borderRightWidth=this.styles.borderBottomWidth=this.styles.borderLeftWidth=1,this.styles.borderTopStyle=this.styles.borderRightStyle=this.styles.borderBottomStyle=this.styles.borderLeftStyle=o.BORDER_STYLE.SOLID,this.styles.backgroundClip=[s.BACKGROUND_CLIP.BORDER_BOX],this.styles.backgroundOrigin=[0],this.bounds=(t=this.bounds).width>t.height?new r.Bounds(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new r.Bounds(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t),this.type){case l:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=a;break;case c:this.styles.borderTopRightRadius=this.styles.borderTopLeftRadius=this.styles.borderBottomRightRadius=this.styles.borderBottomLeftRadius=i}}}e.InputElementContainer=p})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/dom/replaced-elements/svg-element-container.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/dom/element-container.js"),o("../sandbox-hooks/html2canvas-lib/core/cache-storage.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SVGElementContainer=void 0;class s extends t.ElementContainer{constructor(e){super(e);const t=new XMLSerializer;this.svg="data:image/svg+xml,".concat(encodeURIComponent(t.serializeToString(e))),this.intrinsicWidth=e.width.baseVal.value,this.intrinsicHeight=e.height.baseVal.value,o.CacheStorage.getInstance().addImage(this.svg)}}e.SVGElementContainer=s})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/dom/text-container.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-transform.js"),o("../sandbox-hooks/html2canvas-lib/css/layout/text.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextContainer=void 0,e.TextContainer=class{constructor(e,t){this.text=s(e.data,t.textTransform),this.textBounds=(0,o.parseTextBounds)(this.text,t,e)}};const s=(e,o)=>{switch(o){case t.TEXT_TRANSFORM.LOWERCASE:return e.toLowerCase();case t.TEXT_TRANSFORM.CAPITALIZE:return e.replace(n,r);case t.TEXT_TRANSFORM.UPPERCASE:return e.toUpperCase();default:return e}},n=/(^|\s|:|-|\(|\))([a-z])/g,r=(e,t,o)=>e.length>0?t+o.toUpperCase():e})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/index.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../../node_modules/@babel/runtime/helpers/defineProperty.js"),o("../../node_modules/@babel/runtime/helpers/asyncToGenerator.js"),o("../sandbox-hooks/html2canvas-lib/css/layout/bounds.js"),o("../sandbox-hooks/html2canvas-lib/css/types/color.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/dom/document-cloner.js"),o("../sandbox-hooks/html2canvas-lib/dom/node-parser.js"),o("../sandbox-hooks/html2canvas-lib/core/logger.js"),o("../sandbox-hooks/html2canvas-lib/core/cache-storage.js"),o("../sandbox-hooks/html2canvas-lib/render/canvas/canvas-renderer.js"),o("../sandbox-hooks/html2canvas-lib/render/canvas/foreignobject-renderer.js")],void 0===(r="function"==typeof(s=function(e,t,s,n,r,a,i,l,c,d,p,u){"use strict";var h=o("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");function f(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,s)}return o}function b(e){for(var o=1;o<arguments.length;o++){var s=null!=arguments[o]?arguments[o]:{};o%2?f(Object(s),!0).forEach((function(o){(0,t.default)(e,o,s[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):f(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=h(t),s=h(s);const m=e=>r.color.parse(a.Parser.create(e).parseComponentValue());e.default=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return T(e,t)},"undefined"!=typeof window&&d.CacheStorage.setContext(window);const T=function(){var e=(0,s.default)((function*(e,t){const o=e.ownerDocument;if(!o)throw new Error("Element is not attached to a Document");const s=o.defaultView;if(!s)throw new Error("Document is not attached to a Window");const a=(Math.round(1e3*Math.random())+Date.now()).toString(16),h=(0,l.isBodyElement)(e)||(0,l.isHTMLElement)(e)?(0,n.parseDocumentSize)(o):(0,n.parseBounds)(e),f=h.width,T=h.height,E=h.left,y=h.top,g=b(b({},{allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1}),t),v=b(b(b({},{backgroundColor:"#ffffff",cache:t.cache?t.cache:d.CacheStorage.create(a,g),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:s.devicePixelRatio||1,windowWidth:s.innerWidth,windowHeight:s.innerHeight,scrollX:s.pageXOffset,scrollY:s.pageYOffset,x:E,y:y,width:Math.ceil(f),height:Math.ceil(T),id:a}),g),t),x=new n.Bounds(v.scrollX,v.scrollY,v.windowWidth,v.windowHeight);c.Logger.create({id:a,enabled:v.logging}),c.Logger.getInstance(a).debug("Starting document clone");const _=new i.DocumentCloner(e,{id:a,onclone:v.onclone,ignoreElements:v.ignoreElements,inlineImages:v.foreignObjectRendering,copyStyles:v.foreignObjectRendering}),R=_.clonedReferenceElement;if(!R)return Promise.reject("Unable to find element in cloned iframe");const I=yield _.toIFrame(o,x),S=o.documentElement?m(getComputedStyle(o.documentElement).backgroundColor):r.COLORS.TRANSPARENT,A=o.body?m(getComputedStyle(o.body).backgroundColor):r.COLORS.TRANSPARENT,C=t.backgroundColor,N="string"==typeof C?m(C):null===C?r.COLORS.TRANSPARENT:4294967295,O=e===o.documentElement?(0,r.isTransparent)(S)?(0,r.isTransparent)(A)?N:A:S:N,L={id:a,cache:v.cache,canvas:v.canvas,backgroundColor:O,scale:v.scale,x:v.x,y:v.y,scrollX:v.scrollX,scrollY:v.scrollY,width:v.width,height:v.height,windowWidth:v.windowWidth,windowHeight:v.windowHeight};let P;if(v.foreignObjectRendering){c.Logger.getInstance(a).debug("Document cloned, using foreign object rendering");const e=new u.ForeignObjectRenderer(L);P=yield e.render(R)}else{c.Logger.getInstance(a).debug("Document cloned, using computed rendering"),d.CacheStorage.attachInstance(v.cache),c.Logger.getInstance(a).debug("Starting DOM parsing");const e=(0,l.parseTree)(R);d.CacheStorage.detachInstance(),O===e.styles.backgroundColor&&(e.styles.backgroundColor=r.COLORS.TRANSPARENT),c.Logger.getInstance(a).debug("Starting renderer");const t=new p.CanvasRenderer(L);P=yield t.render(e)}return!0===v.removeContainer&&(i.DocumentCloner.destroy(I)||c.Logger.getInstance(a).error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.Logger.getInstance(a).debug("Finished rendering"),c.Logger.destroy(a),d.CacheStorage.destroy(a),P}));return function(t,o){return e.apply(this,arguments)}}()})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/render/background.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../../node_modules/@babel/runtime/helpers/slicedToArray.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-size.js"),o("../sandbox-hooks/html2canvas-lib/render/vector.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-repeat.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/render/box-sizing.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-clip.js")],void 0===(r="function"==typeof(s=function(e,t,s,n,r,a,i,l,c){"use strict";var d=o("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.isAuto=e.getBackgroundValueForIndex=e.calculateBackgroundSize=e.calculateBackgroundRepeatPath=e.calculateBackgroundRendering=e.calculateBackgroundPositioningArea=e.calculateBackgroundPaintingArea=void 0,t=d(t);const p=(e,t)=>0===e?t.bounds:2===e?(0,l.contentBox)(t):(0,l.paddingBox)(t);e.calculateBackgroundPositioningArea=p;const u=(e,t)=>e===c.BACKGROUND_CLIP.BORDER_BOX?t.bounds:e===c.BACKGROUND_CLIP.CONTENT_BOX?(0,l.contentBox)(t):(0,l.paddingBox)(t);e.calculateBackgroundPaintingArea=u,e.calculateBackgroundRendering=(e,o,s)=>{const n=p(m(e.styles.backgroundOrigin,o),e),r=u(m(e.styles.backgroundClip,o),e),i=b(m(e.styles.backgroundSize,o),s,n),l=(0,t.default)(i,2),c=l[0],d=l[1],h=(0,a.getAbsoluteValueForTuple)(m(e.styles.backgroundPosition,o),n.width-c,n.height-d);return[T(m(e.styles.backgroundRepeat,o),h,i,n,r),Math.round(n.left+h[0]),Math.round(n.top+h[1]),c,d]};const h=e=>(0,i.isIdentToken)(e)&&e.value===s.BACKGROUND_SIZE.AUTO;e.isAuto=h;const f=e=>"number"==typeof e,b=(e,o,n)=>{let r=(0,t.default)(o,3),l=r[0],c=r[1],d=r[2];const p=(0,t.default)(e,2),u=p[0],b=p[1];if((0,a.isLengthPercentage)(u)&&b&&(0,a.isLengthPercentage)(b))return[(0,a.getAbsoluteValue)(u,n.width),(0,a.getAbsoluteValue)(b,n.height)];const m=f(d);if((0,i.isIdentToken)(u)&&(u.value===s.BACKGROUND_SIZE.CONTAIN||u.value===s.BACKGROUND_SIZE.COVER))return f(d)?n.width/n.height<d!=(u.value===s.BACKGROUND_SIZE.COVER)?[n.width,n.width/d]:[n.height*d,n.height]:[n.width,n.height];const T=f(l),E=f(c),y=T||E;if(h(u)&&(!b||h(b)))return T&&E?[l,c]:m||y?y&&m?[T?l:c*d,E?c:l/d]:[T?l:n.width,E?c:n.height]:[n.width,n.height];if(m){let e=0,t=0;return(0,a.isLengthPercentage)(u)?e=(0,a.getAbsoluteValue)(u,n.width):(0,a.isLengthPercentage)(b)&&(t=(0,a.getAbsoluteValue)(b,n.height)),h(u)?e=t*d:b&&!h(b)||(t=e/d),[e,t]}let g=null,v=null;if((0,a.isLengthPercentage)(u)?g=(0,a.getAbsoluteValue)(u,n.width):b&&(0,a.isLengthPercentage)(b)&&(v=(0,a.getAbsoluteValue)(b,n.height)),null===g||b&&!h(b)||(v=T&&E?g/l*c:n.height),null!==v&&h(u)&&(g=T&&E?v/c*l:n.width),null!==g&&null!==v)return[g,v];throw new Error("Unable to calculate background-size for element")};e.calculateBackgroundSize=b;const m=(e,t)=>{const o=e[t];return void 0===o?e[0]:o};e.getBackgroundValueForIndex=m;const T=(e,o,s,a,i)=>{let l=(0,t.default)(o,2),c=l[0],d=l[1],p=(0,t.default)(s,2),u=p[0],h=p[1];switch(e){case r.BACKGROUND_REPEAT.REPEAT_X:return[new n.Vector(Math.round(a.left),Math.round(a.top+d)),new n.Vector(Math.round(a.left+a.width),Math.round(a.top+d)),new n.Vector(Math.round(a.left+a.width),Math.round(h+a.top+d)),new n.Vector(Math.round(a.left),Math.round(h+a.top+d))];case r.BACKGROUND_REPEAT.REPEAT_Y:return[new n.Vector(Math.round(a.left+c),Math.round(a.top)),new n.Vector(Math.round(a.left+c+u),Math.round(a.top)),new n.Vector(Math.round(a.left+c+u),Math.round(a.height+a.top)),new n.Vector(Math.round(a.left+c),Math.round(a.height+a.top))];case r.BACKGROUND_REPEAT.NO_REPEAT:return[new n.Vector(Math.round(a.left+c),Math.round(a.top+d)),new n.Vector(Math.round(a.left+c+u),Math.round(a.top+d)),new n.Vector(Math.round(a.left+c+u),Math.round(a.top+d+h)),new n.Vector(Math.round(a.left+c),Math.round(a.top+d+h))];default:return[new n.Vector(Math.round(i.left),Math.round(i.top)),new n.Vector(Math.round(i.left+i.width),Math.round(i.top)),new n.Vector(Math.round(i.left+i.width),Math.round(i.height+i.top)),new n.Vector(Math.round(i.left),Math.round(i.height+i.top))]}};e.calculateBackgroundRepeatPath=T})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/render/bezier-curve.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/render/vector.js"),o("../sandbox-hooks/html2canvas-lib/render/path.js")],void 0===(r="function"==typeof(s=function(e,t,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isBezierCurve=e.BezierCurve=void 0;const s=(e,o,s)=>new t.Vector(e.x+(o.x-e.x)*s,e.y+(o.y-e.y)*s);class n{constructor(e,t,s,n){this.type=o.PathType.BEZIER_CURVE,this.start=e,this.startControl=t,this.endControl=s,this.end=n}subdivide(e,t){const o=s(this.start,this.startControl,e),r=s(this.startControl,this.endControl,e),a=s(this.endControl,this.end,e),i=s(o,r,e),l=s(r,a,e),c=s(i,l,e);return t?new n(this.start,o,i,c):new n(c,l,a,this.end)}add(e,t){return new n(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))}reverse(){return new n(this.end,this.endControl,this.startControl,this.start)}}e.BezierCurve=n,e.isBezierCurve=e=>e.type===o.PathType.BEZIER_CURVE})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/render/border.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/render/bezier-curve.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePathForBorder=void 0,e.parsePathForBorder=(e,t)=>{switch(t){case 0:return o(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return o(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return o(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return o(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}};const o=(e,o,s,n)=>{const r=[];return(0,t.isBezierCurve)(e)?r.push(e.subdivide(.5,!1)):r.push(e),(0,t.isBezierCurve)(s)?r.push(s.subdivide(.5,!0)):r.push(s),(0,t.isBezierCurve)(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),(0,t.isBezierCurve)(o)?r.push(o.subdivide(.5,!1).reverse()):r.push(o),r}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/render/bound-curves.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../../node_modules/@babel/runtime/helpers/slicedToArray.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js"),o("../sandbox-hooks/html2canvas-lib/render/vector.js"),o("../sandbox-hooks/html2canvas-lib/render/bezier-curve.js")],void 0===(r="function"==typeof(s=function(e,t,s,n,r){"use strict";var a,i=o("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePaddingBoxPath=e.calculateContentBoxPath=e.calculateBorderBoxPath=e.BoundCurves=void 0,t=i(t),e.BoundCurves=class{constructor(e){const o=e.styles,r=e.bounds;let i=(0,s.getAbsoluteValueForTuple)(o.borderTopLeftRadius,r.width,r.height),c=(0,t.default)(i,2),d=c[0],p=c[1],u=(0,s.getAbsoluteValueForTuple)(o.borderTopRightRadius,r.width,r.height),h=(0,t.default)(u,2),f=h[0],b=h[1],m=(0,s.getAbsoluteValueForTuple)(o.borderBottomRightRadius,r.width,r.height),T=(0,t.default)(m,2),E=T[0],y=T[1],g=(0,s.getAbsoluteValueForTuple)(o.borderBottomLeftRadius,r.width,r.height),v=(0,t.default)(g,2),x=v[0],_=v[1];const R=[];R.push((d+f)/r.width),R.push((x+E)/r.width),R.push((p+_)/r.height),R.push((b+y)/r.height);const I=Math.max(...R);I>1&&(d/=I,p/=I,f/=I,b/=I,E/=I,y/=I,x/=I,_/=I);const S=r.width-f,A=r.height-y,C=r.width-E,N=r.height-_,O=o.borderTopWidth,L=o.borderRightWidth,P=o.borderBottomWidth,k=o.borderLeftWidth,j=(0,s.getAbsoluteValue)(o.paddingTop,e.bounds.width),w=(0,s.getAbsoluteValue)(o.paddingRight,e.bounds.width),D=(0,s.getAbsoluteValue)(o.paddingBottom,e.bounds.width),M=(0,s.getAbsoluteValue)(o.paddingLeft,e.bounds.width);this.topLeftBorderBox=d>0||p>0?l(r.left,r.top,d,p,a.TOP_LEFT):new n.Vector(r.left,r.top),this.topRightBorderBox=f>0||b>0?l(r.left+S,r.top,f,b,a.TOP_RIGHT):new n.Vector(r.left+r.width,r.top),this.bottomRightBorderBox=E>0||y>0?l(r.left+C,r.top+A,E,y,a.BOTTOM_RIGHT):new n.Vector(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=x>0||_>0?l(r.left,r.top+N,x,_,a.BOTTOM_LEFT):new n.Vector(r.left,r.top+r.height),this.topLeftPaddingBox=d>0||p>0?l(r.left+k,r.top+O,Math.max(0,d-k),Math.max(0,p-O),a.TOP_LEFT):new n.Vector(r.left+k,r.top+O),this.topRightPaddingBox=f>0||b>0?l(r.left+Math.min(S,r.width+k),r.top+O,S>r.width+k?0:f-k,b-O,a.TOP_RIGHT):new n.Vector(r.left+r.width-L,r.top+O),this.bottomRightPaddingBox=E>0||y>0?l(r.left+Math.min(C,r.width-k),r.top+Math.min(A,r.height+O),Math.max(0,E-L),y-P,a.BOTTOM_RIGHT):new n.Vector(r.left+r.width-L,r.top+r.height-P),this.bottomLeftPaddingBox=x>0||_>0?l(r.left+k,r.top+N,Math.max(0,x-k),_-P,a.BOTTOM_LEFT):new n.Vector(r.left+k,r.top+r.height-P),this.topLeftContentBox=d>0||p>0?l(r.left+k+M,r.top+O+j,Math.max(0,d-(k+M)),Math.max(0,p-(O+j)),a.TOP_LEFT):new n.Vector(r.left+k+M,r.top+O+j),this.topRightContentBox=f>0||b>0?l(r.left+Math.min(S,r.width+k+M),r.top+O+j,S>r.width+k+M?0:f-k+M,b-(O+j),a.TOP_RIGHT):new n.Vector(r.left+r.width-(L+w),r.top+O+j),this.bottomRightContentBox=E>0||y>0?l(r.left+Math.min(C,r.width-(k+M)),r.top+Math.min(A,r.height+O+j),Math.max(0,E-(L+w)),y-(P+D),a.BOTTOM_RIGHT):new n.Vector(r.left+r.width-(L+w),r.top+r.height-(P+D)),this.bottomLeftContentBox=x>0||_>0?l(r.left+k+M,r.top+N,Math.max(0,x-(k+M)),_-(P+D),a.BOTTOM_LEFT):new n.Vector(r.left+k+M,r.top+r.height-(P+D))}},function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(a||(a={}));const l=(e,t,o,s,i)=>{const l=(Math.sqrt(2)-1)/3*4,c=o*l,d=s*l,p=e+o,u=t+s;switch(i){case a.TOP_LEFT:return new r.BezierCurve(new n.Vector(e,u),new n.Vector(e,u-d),new n.Vector(p-c,t),new n.Vector(p,t));case a.TOP_RIGHT:return new r.BezierCurve(new n.Vector(e,t),new n.Vector(e+c,t),new n.Vector(p,u-d),new n.Vector(p,u));case a.BOTTOM_RIGHT:return new r.BezierCurve(new n.Vector(p,t),new n.Vector(p,t+d),new n.Vector(e+c,u),new n.Vector(e,u));case a.BOTTOM_LEFT:default:return new r.BezierCurve(new n.Vector(p,u),new n.Vector(p-c,u),new n.Vector(e,t+d),new n.Vector(e,t))}};e.calculateBorderBoxPath=e=>[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox],e.calculateContentBoxPath=e=>[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox],e.calculatePaddingBoxPath=e=>[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/render/box-sizing.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.paddingBox=e.contentBox=void 0,e.paddingBox=e=>{const t=e.bounds,o=e.styles;return t.add(o.borderLeftWidth,o.borderTopWidth,-(o.borderRightWidth+o.borderLeftWidth),-(o.borderTopWidth+o.borderBottomWidth))},e.contentBox=e=>{const o=e.styles,s=e.bounds,n=(0,t.getAbsoluteValue)(o.paddingLeft,s.width),r=(0,t.getAbsoluteValue)(o.paddingRight,s.width),a=(0,t.getAbsoluteValue)(o.paddingTop,s.width),i=(0,t.getAbsoluteValue)(o.paddingBottom,s.width);return s.add(n+o.borderLeftWidth,a+o.borderTopWidth,-(o.borderRightWidth+o.borderLeftWidth+n+r),-(o.borderTopWidth+o.borderBottomWidth+a+i))}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/render/canvas/canvas-renderer.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../../node_modules/@babel/runtime/helpers/slicedToArray.js"),o("../../node_modules/@babel/runtime/helpers/asyncToGenerator.js"),o("../sandbox-hooks/html2canvas-lib/render/stacking-context.js"),o("../sandbox-hooks/html2canvas-lib/css/types/color.js"),o("../sandbox-hooks/html2canvas-lib/core/logger.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/border-style.js"),o("../sandbox-hooks/html2canvas-lib/render/path.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/background-clip.js"),o("../sandbox-hooks/html2canvas-lib/render/bound-curves.js"),o("../sandbox-hooks/html2canvas-lib/render/bezier-curve.js"),o("../sandbox-hooks/html2canvas-lib/render/vector.js"),o("../sandbox-hooks/html2canvas-lib/css/types/image.js"),o("../sandbox-hooks/html2canvas-lib/render/border.js"),o("../sandbox-hooks/html2canvas-lib/render/background.js"),o("../sandbox-hooks/html2canvas-lib/css/syntax/parser.js"),o("../sandbox-hooks/html2canvas-lib/css/layout/text.js"),o("../../node_modules/css-line-break/dist/css-line-break.es5.js"),o("../sandbox-hooks/html2canvas-lib/dom/replaced-elements/image-element-container.js"),o("../sandbox-hooks/html2canvas-lib/render/box-sizing.js"),o("../sandbox-hooks/html2canvas-lib/dom/replaced-elements/canvas-element-container.js"),o("../sandbox-hooks/html2canvas-lib/dom/replaced-elements/svg-element-container.js"),o("../sandbox-hooks/html2canvas-lib/render/effects.js"),o("../sandbox-hooks/html2canvas-lib/core/bitwise.js"),o("../sandbox-hooks/html2canvas-lib/css/types/functions/gradient.js"),o("../sandbox-hooks/html2canvas-lib/css/types/length-percentage.js"),o("../sandbox-hooks/html2canvas-lib/render/font-metrics.js"),o("../sandbox-hooks/html2canvas-lib/css/layout/bounds.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/list-style-type.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/line-height.js"),o("../sandbox-hooks/html2canvas-lib/dom/replaced-elements/input-element-container.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/text-align.js"),o("../sandbox-hooks/html2canvas-lib/dom/elements/textarea-element-container.js"),o("../sandbox-hooks/html2canvas-lib/dom/elements/select-element-container.js"),o("../sandbox-hooks/html2canvas-lib/dom/replaced-elements/iframe-element-container.js")],void 0===(r="function"==typeof(s=function(e,t,s,n,r,a,i,l,c,d,p,u,h,f,b,m,T,E,y,g,v,x,_,R,I,S,A,C,N,O,L,P,k,j,w){"use strict";var D=o("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasRenderer=void 0,t=D(t),s=D(s);class M{constructor(e){this._activeEffects=[],this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,e.canvas||(this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width="".concat(e.width,"px"),this.canvas.style.height="".concat(e.height,"px")),this.fontMetrics=new A.FontMetrics(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x+e.scrollX,-e.y+e.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],a.Logger.getInstance(e.id).debug("Canvas renderer initialized (".concat(e.width,"x").concat(e.height," at ").concat(e.x,",").concat(e.y,") with scale ").concat(e.scale))}applyEffects(e,t){for(;this._activeEffects.length;)this.popEffect();e.filter(e=>(0,R.contains)(e.target,t)).forEach(e=>this.applyEffect(e))}applyEffect(e){this.ctx.save(),(0,_.isTransformEffect)(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),(0,_.isClipEffect)(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)}popEffect(){this._activeEffects.pop(),this.ctx.restore()}renderStack(e){var t=this;return(0,s.default)((function*(){const o=e.element.container.styles;o.isVisible()&&(t.ctx.globalAlpha=o.opacity,yield t.renderStackContent(e))}))()}renderNode(e){var t=this;return(0,s.default)((function*(){e.container.styles.isVisible()&&(yield t.renderNodeBackgroundAndBorders(e),yield t.renderNodeContent(e))}))()}renderTextWithLetterSpacing(e,t){0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+e.bounds.height):(0,E.toCodePoints)(e.text).map(e=>(0,E.fromCodePoint)(e)).reduce((t,o)=>(this.ctx.fillText(o,t,e.bounds.top+e.bounds.height),t+this.ctx.measureText(o).width),e.bounds.left)}createFontStyle(e){const t=e.fontVariant.filter(e=>"normal"===e||"small-caps"===e).join(""),o=e.fontFamily.join(", "),s=(0,m.isDimensionToken)(e.fontSize)?"".concat(e.fontSize.number).concat(e.fontSize.unit):"".concat(e.fontSize.number,"px");return[[e.fontStyle,t,e.fontWeight,s,o].join(" "),o,s]}renderTextNode(e,o){var n=this;return(0,s.default)((function*(){const s=n.createFontStyle(o),a=(0,t.default)(s,3),i=a[0],l=a[1],c=a[2];n.ctx.font=i,e.textBounds.forEach(e=>{n.ctx.fillStyle=(0,r.asString)(o.color),n.renderTextWithLetterSpacing(e,o.letterSpacing);const t=o.textShadow;t.length&&e.text.trim().length&&(t.slice(0).reverse().forEach(t=>{n.ctx.shadowColor=(0,r.asString)(t.color),n.ctx.shadowOffsetX=t.offsetX.number*n.options.scale,n.ctx.shadowOffsetY=t.offsetY.number*n.options.scale,n.ctx.shadowBlur=t.blur.number,n.ctx.fillText(e.text,e.bounds.left,e.bounds.top+e.bounds.height)}),n.ctx.shadowColor="",n.ctx.shadowOffsetX=0,n.ctx.shadowOffsetY=0,n.ctx.shadowBlur=0),o.textDecorationLine.length&&(n.ctx.fillStyle=(0,r.asString)(o.textDecorationColor||o.color),o.textDecorationLine.forEach(t=>{switch(t){case 1:const t=n.fontMetrics.getMetrics(l,c).baseline;n.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+t),e.bounds.width,1);break;case 2:n.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:const o=n.fontMetrics.getMetrics(l,c).middle;n.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+o),e.bounds.width,1)}}))})}))()}renderReplacedElement(e,t,o){if(o&&e.intrinsicWidth>0&&e.intrinsicHeight>0){const s=(0,g.contentBox)(e),n=(0,d.calculatePaddingBoxPath)(t);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(o,0,0,e.intrinsicWidth,e.intrinsicHeight,s.left,s.top,s.width,s.height),this.ctx.restore()}}renderNodeContent(e){var o=this;return(0,s.default)((function*(){o.applyEffects(e.effects,4);const s=e.container,n=e.curves,i=s.styles;for(const e of s.textNodes)yield o.renderTextNode(e,i);if(s instanceof y.ImageElementContainer)try{const e=yield o.options.cache.match(s.src);o.renderReplacedElement(s,n,e)}catch(e){a.Logger.getInstance(o.options.id).error("Error loading image ".concat(s.src))}if(s instanceof v.CanvasElementContainer&&o.renderReplacedElement(s,n,s.canvas),s instanceof x.SVGElementContainer)try{const e=yield o.options.cache.match(s.svg);o.renderReplacedElement(s,n,e)}catch(e){a.Logger.getInstance(o.options.id).error("Error loading svg ".concat(s.svg.substring(0,255)))}if(s instanceof w.IFrameElementContainer&&s.tree){const e=new M({id:o.options.id,scale:o.options.scale,backgroundColor:s.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:s.width,height:s.height,cache:o.options.cache,windowWidth:s.width,windowHeight:s.height}),t=yield e.render(s.tree);s.width&&s.height&&o.ctx.drawImage(t,0,0,s.width,s.height,s.bounds.left,s.bounds.top,s.bounds.width,s.bounds.height)}if(s instanceof L.InputElementContainer){const e=Math.min(s.bounds.width,s.bounds.height);s.type===L.CHECKBOX?s.checked&&(o.ctx.save(),o.path([new u.Vector(s.bounds.left+.39363*e,s.bounds.top+.79*e),new u.Vector(s.bounds.left+.16*e,s.bounds.top+.5549*e),new u.Vector(s.bounds.left+.27347*e,s.bounds.top+.44071*e),new u.Vector(s.bounds.left+.39694*e,s.bounds.top+.5649*e),new u.Vector(s.bounds.left+.72983*e,s.bounds.top+.23*e),new u.Vector(s.bounds.left+.84*e,s.bounds.top+.34085*e),new u.Vector(s.bounds.left+.39363*e,s.bounds.top+.79*e)]),o.ctx.fillStyle=(0,r.asString)(L.INPUT_COLOR),o.ctx.fill(),o.ctx.restore()):s.type===L.RADIO&&s.checked&&(o.ctx.save(),o.ctx.beginPath(),o.ctx.arc(s.bounds.left+e/2,s.bounds.top+e/2,e/4,0,2*Math.PI,!0),o.ctx.fillStyle=(0,r.asString)(L.INPUT_COLOR),o.ctx.fill(),o.ctx.restore())}if(B(s)&&s.value.length){var l=o.createFontStyle(i),c=(0,t.default)(l,1);o.ctx.font=c[0],o.ctx.fillStyle=(0,r.asString)(i.color),o.ctx.textBaseline="middle",o.ctx.textAlign=U(s.styles.textAlign);const e=(0,g.contentBox)(s);let n=0;switch(s.styles.textAlign){case P.TEXT_ALIGN.CENTER:n+=e.width/2;break;case P.TEXT_ALIGN.RIGHT:n+=e.width}const a=e.add(n,0,0,-e.height/2+1);o.ctx.save(),o.path([new u.Vector(e.left,e.top),new u.Vector(e.left+e.width,e.top),new u.Vector(e.left+e.width,e.top+e.height),new u.Vector(e.left,e.top+e.height)]),o.ctx.clip(),o.renderTextWithLetterSpacing(new T.TextBounds(s.value,a),i.letterSpacing),o.ctx.restore(),o.ctx.textBaseline="bottom",o.ctx.textAlign="left"}if((0,R.contains)(s.styles.display,2048))if(null!==s.styles.listStyleImage){const e=s.styles.listStyleImage;if(e.type===h.CSSImageType.URL){let t;const n=e.url;try{t=yield o.options.cache.match(n),o.ctx.drawImage(t,s.bounds.left-(t.width+10),s.bounds.top)}catch(e){a.Logger.getInstance(o.options.id).error("Error loading list-style-image ".concat(n))}}}else if(e.listValue&&s.styles.listStyleType!==N.LIST_STYLE_TYPE.NONE){var d=o.createFontStyle(i),p=(0,t.default)(d,1);o.ctx.font=p[0],o.ctx.fillStyle=(0,r.asString)(i.color),o.ctx.textBaseline="middle",o.ctx.textAlign="right";const n=new C.Bounds(s.bounds.left,s.bounds.top+(0,S.getAbsoluteValue)(s.styles.paddingTop,s.bounds.width),s.bounds.width,(0,O.computeLineHeight)(i.lineHeight,i.fontSize.number)/2+1);o.renderTextWithLetterSpacing(new T.TextBounds(e.listValue,n),i.letterSpacing),o.ctx.textBaseline="bottom",o.ctx.textAlign="left"}}))()}renderStackContent(e){var t=this;return(0,s.default)((function*(){yield t.renderNodeBackgroundAndBorders(e.element);for(const o of e.negativeZIndex)yield t.renderStack(o);yield t.renderNodeContent(e.element);for(const o of e.nonInlineLevel)yield t.renderNode(o);for(const o of e.nonPositionedFloats)yield t.renderStack(o);for(const o of e.nonPositionedInlineLevel)yield t.renderStack(o);for(const o of e.inlineLevel)yield t.renderNode(o);for(const o of e.zeroOrAutoZIndexOrTransformedOrOpacity)yield t.renderStack(o);for(const o of e.positiveZIndex)yield t.renderStack(o)}))()}mask(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()}path(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()}formatPath(e){e.forEach((e,t)=>{const o=(0,p.isBezierCurve)(e)?e.start:e;0===t?this.ctx.moveTo(o.x,o.y):this.ctx.lineTo(o.x,o.y),(0,p.isBezierCurve)(e)&&this.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})}renderRepeat(e,t,o,s){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(o,s),this.ctx.fill(),this.ctx.translate(-o,-s)}resizeImage(e,t,o){if(e.width===t&&e.height===o)return e;const s=this.canvas.ownerDocument.createElement("canvas");return s.width=t,s.height=o,s.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,o),s}renderBackgroundImage(e){var o=this;return(0,s.default)((function*(){let s=e.styles.backgroundImage.length-1;for(const n of e.styles.backgroundImage.slice(0).reverse()){if(n.type===h.CSSImageType.URL){let r;const i=n.url;try{r=yield o.options.cache.match(i)}catch(e){a.Logger.getInstance(o.options.id).error("Error loading background-image ".concat(i))}if(r){const n=(0,b.calculateBackgroundRendering)(e,s,[r.width,r.height,r.width/r.height]),a=(0,t.default)(n,5),i=a[0],l=a[1],c=a[2],d=a[3],p=a[4],u=o.ctx.createPattern(o.resizeImage(r,d,p),"repeat");o.renderRepeat(i,u,l,c)}}else if((0,h.isLinearGradient)(n)){const a=(0,b.calculateBackgroundRendering)(e,s,[null,null,null]),i=(0,t.default)(a,5),l=i[0],c=i[1],d=i[2],p=i[3],u=i[4],h=(0,I.calculateGradientDirection)(n.angle,p,u),f=(0,t.default)(h,5),m=f[0],T=f[1],E=f[2],y=f[3],g=f[4],v=document.createElement("canvas");v.width=p,v.height=u;const x=v.getContext("2d"),_=x.createLinearGradient(T,y,E,g);if((0,I.processColorStops)(n.stops,m).forEach(e=>_.addColorStop(e.stop,(0,r.asString)(e.color))),x.fillStyle=_,x.fillRect(0,0,p,u),p>0&&u>0){const e=o.ctx.createPattern(v,"repeat");o.renderRepeat(l,e,c,d)}}else if((0,h.isRadialGradient)(n)){const a=(0,b.calculateBackgroundRendering)(e,s,[null,null,null]),i=(0,t.default)(a,5),l=i[0],c=i[1],d=i[2],p=i[3],u=i[4],h=0===n.position.length?[S.FIFTY_PERCENT]:n.position,f=(0,S.getAbsoluteValue)(h[0],p),m=(0,S.getAbsoluteValue)(h[h.length-1],u),T=(0,I.calculateRadius)(n,f,m,p,u),E=(0,t.default)(T,2),y=E[0],g=E[1];if(y>0&&y>0){const t=o.ctx.createRadialGradient(c+f,d+m,0,c+f,d+m,y);if((0,I.processColorStops)(n.stops,2*y).forEach(e=>t.addColorStop(e.stop,(0,r.asString)(e.color))),o.path(l),o.ctx.fillStyle=t,y!==g){const t=e.bounds.left+.5*e.bounds.width,s=e.bounds.top+.5*e.bounds.height,n=g/y,r=1/n;o.ctx.save(),o.ctx.translate(t,s),o.ctx.transform(1,0,0,n,0,0),o.ctx.translate(-t,-s),o.ctx.fillRect(c,r*(d-s)+s,p,u*r),o.ctx.restore()}else o.ctx.fill()}}s--}}))()}renderBorder(e,t,o){var n=this;return(0,s.default)((function*(){n.path((0,f.parsePathForBorder)(o,t)),n.ctx.fillStyle=(0,r.asString)(e),n.ctx.fill()}))()}renderNodeBackgroundAndBorders(e){var t=this;return(0,s.default)((function*(){t.applyEffects(e.effects,2);const o=e.container.styles,s=!(0,r.isTransparent)(o.backgroundColor)||o.backgroundImage.length,n=[{style:o.borderTopStyle,color:o.borderTopColor},{style:o.borderRightStyle,color:o.borderRightColor},{style:o.borderBottomStyle,color:o.borderBottomColor},{style:o.borderLeftStyle,color:o.borderLeftColor}],a=G((0,b.getBackgroundValueForIndex)(o.backgroundClip,0),e.curves);(s||o.boxShadow.length)&&(t.ctx.save(),t.path(a),t.ctx.clip(),(0,r.isTransparent)(o.backgroundColor)||(t.ctx.fillStyle=(0,r.asString)(o.backgroundColor),t.ctx.fill()),yield t.renderBackgroundImage(e.container),t.ctx.restore(),o.boxShadow.slice(0).reverse().forEach(o=>{t.ctx.save();const s=(0,d.calculateBorderBoxPath)(e.curves),n=o.inset?0:1e4,a=(0,l.transformPath)(s,-n+(o.inset?1:-1)*o.spread.number,(o.inset?1:-1)*o.spread.number,o.spread.number*(o.inset?-2:2),o.spread.number*(o.inset?-2:2));o.inset?(t.path(s),t.ctx.clip(),t.mask(a)):(t.mask(s),t.ctx.clip(),t.path(a)),t.ctx.shadowOffsetX=o.offsetX.number+n,t.ctx.shadowOffsetY=o.offsetY.number,t.ctx.shadowColor=(0,r.asString)(o.color),t.ctx.shadowBlur=o.blur.number,t.ctx.fillStyle=o.inset?(0,r.asString)(o.color):"rgba(0,0,0,1)",t.ctx.fill(),t.ctx.restore()}));let c=0;for(const o of n)o.style===i.BORDER_STYLE.NONE||(0,r.isTransparent)(o.color)||(yield t.renderBorder(o.color,c,e.curves)),c++}))()}render(e){var t=this;return(0,s.default)((function*(){t.options.backgroundColor&&(t.ctx.fillStyle=(0,r.asString)(t.options.backgroundColor),t.ctx.fillRect(t.options.x-t.options.scrollX,t.options.y-t.options.scrollY,t.options.width,t.options.height));const o=(0,n.parseStackingContexts)(e);return yield t.renderStack(o),t.applyEffects([],2),t.canvas}))()}}e.CanvasRenderer=M;const B=e=>e instanceof k.TextareaElementContainer||e instanceof j.SelectElementContainer||e instanceof L.InputElementContainer&&e.type!==L.RADIO&&e.type!==L.CHECKBOX,G=(e,t)=>{switch(e){case c.BACKGROUND_CLIP.BORDER_BOX:return(0,d.calculateBorderBoxPath)(t);case c.BACKGROUND_CLIP.CONTENT_BOX:return(0,d.calculateContentBoxPath)(t);case c.BACKGROUND_CLIP.PADDING_BOX:default:return(0,d.calculatePaddingBoxPath)(t)}},U=e=>{switch(e){case P.TEXT_ALIGN.CENTER:return"center";case P.TEXT_ALIGN.RIGHT:return"right";case P.TEXT_ALIGN.LEFT:default:return"left"}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/render/canvas/foreignobject-renderer.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../../node_modules/@babel/runtime/helpers/asyncToGenerator.js"),o("../sandbox-hooks/html2canvas-lib/core/logger.js"),o("../sandbox-hooks/html2canvas-lib/core/features.js"),o("../sandbox-hooks/html2canvas-lib/css/types/color.js")],void 0===(r="function"==typeof(s=function(e,t,s,n,r){"use strict";var a=o("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.loadSerializedSVG=e.ForeignObjectRenderer=void 0,t=a(t),e.ForeignObjectRenderer=class{constructor(e){this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width="".concat(e.width,"px"),this.canvas.style.height="".concat(e.height,"px"),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x+e.scrollX,-e.y+e.scrollY),s.Logger.getInstance(e.id).debug("EXPERIMENTAL ForeignObject renderer initialized (".concat(e.width,"x").concat(e.height," at ").concat(e.x,",").concat(e.y,") with scale ").concat(e.scale))}render(e){var o=this;return(0,t.default)((function*(){const t=(0,n.createForeignObjectSVG)(Math.max(o.options.windowWidth,o.options.width)*o.options.scale,Math.max(o.options.windowHeight,o.options.height)*o.options.scale,o.options.scrollX*o.options.scale,o.options.scrollY*o.options.scale,e),s=yield i(t);return o.options.backgroundColor&&(o.ctx.fillStyle=(0,r.asString)(o.options.backgroundColor),o.ctx.fillRect(0,0,o.options.width*o.options.scale,o.options.height*o.options.scale)),o.ctx.drawImage(s,-o.options.x*o.options.scale,-o.options.y*o.options.scale),o.canvas}))()}};const i=e=>new Promise((t,o)=>{const s=new Image;s.onload=()=>{t(s)},s.onerror=o,s.src="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent((new XMLSerializer).serializeToString(e)))});e.loadSerializedSVG=i})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/render/effects.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t],void 0===(r="function"==typeof(s=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTransformEffect=e.isClipEffect=e.TransformEffect=e.ClipEffect=void 0,e.TransformEffect=class{constructor(e,t,o){this.type=0,this.offsetX=e,this.offsetY=t,this.matrix=o,this.target=6}},e.ClipEffect=class{constructor(e,t){this.type=1,this.target=t,this.path=e}},e.isTransformEffect=e=>0===e.type,e.isClipEffect=e=>1===e.type})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/render/font-metrics.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/core/util.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontMetrics=void 0,e.FontMetrics=class{constructor(e){this._data={},this._document=e}parseMetrics(e,o){const s=this._document.createElement("div"),n=this._document.createElement("img"),r=this._document.createElement("span"),a=this._document.body;s.style.visibility="hidden",s.style.fontFamily=e,s.style.fontSize=o,s.style.margin="0",s.style.padding="0",a.appendChild(s),n.src=t.SMALL_IMAGE,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",r.style.fontFamily=e,r.style.fontSize=o,r.style.margin="0",r.style.padding="0",r.appendChild(this._document.createTextNode("Hidden Text")),s.appendChild(r),s.appendChild(n);const i=n.offsetTop-r.offsetTop+2;s.removeChild(r),s.appendChild(this._document.createTextNode("Hidden Text")),s.style.lineHeight="normal",n.style.verticalAlign="super";const l=n.offsetTop-s.offsetTop+2;return a.removeChild(s),{baseline:i,middle:l}}getMetrics(e,t){const o="".concat(e," ").concat(t);return void 0===this._data[o]&&(this._data[o]=this.parseMetrics(e,t)),this._data[o]}}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/render/path.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t],void 0===(r="function"==typeof(s=function(e){"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.transformPath=e.equalPath=e.PathType=void 0,function(e){e[e.VECTOR=0]="VECTOR",e[e.BEZIER_CURVE=1]="BEZIER_CURVE"}(t||(e.PathType=t={})),e.equalPath=(e,t)=>e.length===t.length&&e.some((e,o)=>e===t[o]),e.transformPath=(e,t,o,s,n)=>e.map((e,r)=>{switch(r){case 0:return e.add(t,o);case 1:return e.add(t+s,o);case 2:return e.add(t+s,o+n);case 3:return e.add(t,o+n)}return e})})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/render/stacking-context.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/core/bitwise.js"),o("../sandbox-hooks/html2canvas-lib/render/bound-curves.js"),o("../sandbox-hooks/html2canvas-lib/render/effects.js"),o("../sandbox-hooks/html2canvas-lib/css/property-descriptors/overflow.js"),o("../sandbox-hooks/html2canvas-lib/render/path.js"),o("../sandbox-hooks/html2canvas-lib/dom/elements/ol-element-container.js"),o("../sandbox-hooks/html2canvas-lib/dom/elements/li-element-container.js"),o("../sandbox-hooks/html2canvas-lib/css/types/functions/counter.js")],void 0===(r="function"==typeof(s=function(e,t,o,s,n,r,a,i,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseStackingContexts=e.StackingContext=e.ElementPaint=void 0;class c{constructor(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}}e.StackingContext=c;class d{constructor(e,t){if(this.container=e,this.effects=t.slice(0),this.curves=new o.BoundCurves(e),null!==e.styles.transform){const t=e.bounds.left+e.styles.transformOrigin[0].number,o=e.bounds.top+e.styles.transformOrigin[1].number,n=e.styles.transform;this.effects.push(new s.TransformEffect(t,o,n))}if(e.styles.overflowX!==n.OVERFLOW.VISIBLE){const e=(0,o.calculateBorderBoxPath)(this.curves),t=(0,o.calculatePaddingBoxPath)(this.curves);(0,r.equalPath)(e,t)?this.effects.push(new s.ClipEffect(e,6)):(this.effects.push(new s.ClipEffect(e,2)),this.effects.push(new s.ClipEffect(t,4)))}}getParentEffects(){const e=this.effects.slice(0);if(this.container.styles.overflowX!==n.OVERFLOW.VISIBLE){const t=(0,o.calculateBorderBoxPath)(this.curves),n=(0,o.calculatePaddingBoxPath)(this.curves);(0,r.equalPath)(t,n)||e.push(new s.ClipEffect(n,6))}return e}}e.ElementPaint=d;const p=(e,o,s,n)=>{e.container.elements.forEach(r=>{const a=(0,t.contains)(r.flags,4),i=(0,t.contains)(r.flags,2),l=new d(r,e.getParentEffects());(0,t.contains)(r.styles.display,2048)&&n.push(l);const h=(0,t.contains)(r.flags,8)?[]:n;if(a||i){const e=a||r.styles.isPositioned()?s:o,t=new c(l);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){const o=r.styles.zIndex.order;if(o<0){let s=0;e.negativeZIndex.some((e,t)=>o>e.element.container.styles.zIndex.order?(s=t,!1):s>0),e.negativeZIndex.splice(s,0,t)}else if(o>0){let s=0;e.positiveZIndex.some((e,t)=>o>=e.element.container.styles.zIndex.order?(s=t+1,!1):s>0),e.positiveZIndex.splice(s,0,t)}else e.zeroOrAutoZIndexOrTransformedOrOpacity.push(t)}else r.styles.isFloating()?e.nonPositionedFloats.push(t):e.nonPositionedInlineLevel.push(t);p(l,t,a?t:s,h)}else r.styles.isInlineLevel()?o.inlineLevel.push(l):o.nonInlineLevel.push(l),p(l,o,s,h);(0,t.contains)(r.flags,8)&&u(r,h)})},u=(e,t)=>{let o=e instanceof a.OLElementContainer?e.start:1;const s=e instanceof a.OLElementContainer&&e.reversed;for(let e=0;e<t.length;e++){const n=t[e];n.container instanceof i.LIElementContainer&&"number"==typeof n.container.value&&0!==n.container.value&&(o=n.container.value),n.listValue=(0,l.createCounterText)(o,n.container.styles.listStyleType,!0),o+=s?-1:1}};e.parseStackingContexts=e=>{const t=new d(e,[]),o=new c(t),s=[];return p(t,o,o,s),u(t.container,s),o}})?s.apply(t,n):s)||(e.exports=r)},"../sandbox-hooks/html2canvas-lib/render/vector.js":function(e,t,o){var s,n,r;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,n=[t,o("../sandbox-hooks/html2canvas-lib/render/path.js")],void 0===(r="function"==typeof(s=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isVector=e.Vector=void 0;class o{constructor(e,o){this.type=t.PathType.VECTOR,this.x=e,this.y=o}add(e,t){return new o(this.x+e,this.y+t)}}e.Vector=o,e.isVector=e=>e.type===t.PathType.VECTOR})?s.apply(t,n):s)||(e.exports=r)}}]);
|
|
//# sourceMappingURL=4.a87895b63.chunk.js.map
|