"use strict";(self.webpackChunkstudio_client=self.webpackChunkstudio_client||[]).push([[6387],{6185(t,e,o){o.d(e,{w:()=>m});var r=o(5890),n=o(9889),i=/[^!$'()*+,;|:]/g,s=function(t){return t.replace(i,function(t){return encodeURIComponent(t)})},a={default:s,uri:encodeURI,uriComponent:encodeURIComponent,none:function(t){return t},legacy:encodeURI},d={default:decodeURIComponent,uri:decodeURI,uriComponent:decodeURIComponent,none:function(t){return t},legacy:decodeURIComponent},u=function(t,e,o){var r=a[e]||s;return o?String(t).split("/").map(r).join("/"):r(String(t))},c=function(t){return"("+(t?t.replace(/(^<|>$)/g,""):"[a-zA-Z0-9-_.~%':|=+\\*@$]+")+")"},h=[{name:"url-parameter",pattern:/^:([a-zA-Z0-9-_]*[a-zA-Z0-9]{1})(<(.+?)>)?/,regex:function(t){return new RegExp(c(t[2]))}},{name:"url-parameter-splat",pattern:/^\*([a-zA-Z0-9-_]*[a-zA-Z0-9]{1})/,regex:/([^?]*)/},{name:"url-parameter-matrix",pattern:/^;([a-zA-Z0-9-_]*[a-zA-Z0-9]{1})(<(.+?)>)?/,regex:function(t){return new RegExp(";"+t[1]+"="+c(t[2]))}},{name:"query-parameter",pattern:/^(?:\?|&)(?::)?([a-zA-Z0-9-_]*[a-zA-Z0-9]{1})/},{name:"delimiter",pattern:/^(\/|\?)/,regex:function(t){return new RegExp("\\"+t[0])}},{name:"sub-delimiter",pattern:/^(!|&|-|_|\.|;)/,regex:function(t){return new RegExp(t[0])}},{name:"fragment",pattern:/^([0-9a-zA-Z]+)/,regex:function(t){return new RegExp(t[0])}}],l=function t(e,o){if(void 0===o&&(o=[]),!h.some(function(r){var n=e.match(r.pattern);return!!n&&(o.push({type:r.name,match:n[0],val:n.slice(1,2),otherVal:n.slice(2),regex:r.regex instanceof Function?r.regex(n):r.regex}),n[0].length0,this.hasSpatParam=this.tokens.filter(function(t){return/splat$/.test(t.type)}).length>0,this.hasMatrixParams=this.tokens.filter(function(t){return/matrix$/.test(t.type)}).length>0,this.hasQueryParams=this.tokens.filter(function(t){return/^query-parameter/.test(t.type)}).length>0,this.spatParams=this.getParams("url-parameter-splat"),this.urlParams=this.getParams(/^url-parameter/),this.queryParams=this.getParams("query-parameter"),this.params=this.urlParams.concat(this.queryParams),this.source=this.tokens.filter(function(t){return void 0!==t.regex}).map(function(t){return t.regex.source}).join("")}return t.createPath=function(e,o){return new t(e,o)},t.prototype.isQueryParam=function(t){return-1!==this.queryParams.indexOf(t)},t.prototype.isSpatParam=function(t){return-1!==this.spatParams.indexOf(t)},t.prototype.test=function(t,e){var o=this,i=(0,r.Cl)((0,r.Cl)({caseSensitive:!1,strictTrailingSlash:!1},this.options),e),s=function(t,e){return e||"\\/"===t?t:t.replace(/\\\/$/,"")+"(?:\\/)?"}(this.source,i.strictTrailingSlash),a=this.urlTest(t,s+(this.hasQueryParams?"(\\?.*$|$)":"$"),i.caseSensitive,i.urlParamsEncoding);if(!a||!this.hasQueryParams)return a;var d=(0,n.qg)(t,i.queryParams);return 0===Object.keys(d).filter(function(t){return!o.isQueryParam(t)}).length?(Object.keys(d).forEach(function(t){return a[t]=d[t]}),a):null},t.prototype.partialTest=function(t,e){var o=this,i=(0,r.Cl)((0,r.Cl)({caseSensitive:!1,delimited:!0},this.options),e),s=function(t,e){return e?/(\/)$/.test(t)?t:t+"(\\/|\\?|\\.|;|$)":t}(this.source,i.delimited),a=this.urlTest(t,s,i.caseSensitive,i.urlParamsEncoding);if(!a)return a;if(!this.hasQueryParams)return a;var d=(0,n.qg)(t,i.queryParams);return Object.keys(d).filter(function(t){return o.isQueryParam(t)}).forEach(function(t){return function(t,e,o){void 0===o&&(o="");var r=t[e];return t[e]=void 0===r?o:Array.isArray(r)?r.concat(o):[r,o],t}(a,t,d[t])}),a},t.prototype.build=function(t,e){var o=this;void 0===t&&(t={});var i=(0,r.Cl)((0,r.Cl)({ignoreConstraints:!1,ignoreSearch:!1,queryParams:{}},this.options),e),s=Object.keys(t).filter(function(t){return!o.isQueryParam(t)}).reduce(function(e,r){if(!p(t[r]))return e;var n=t[r],s=o.isSpatParam(r);return"boolean"==typeof n?e[r]=n:Array.isArray(n)?e[r]=n.map(function(t){return u(t,i.urlParamsEncoding,s)}):e[r]=u(n,i.urlParamsEncoding,s),e},{});if(this.urlParams.some(function(e){return!p(t[e])})){var a=this.urlParams.filter(function(e){return!p(t[e])});throw new Error("Cannot build path: '"+this.path+"' requires missing parameters { "+a.join(", ")+" }")}if(!i.ignoreConstraints&&!this.tokens.filter(function(t){return/^url-parameter/.test(t.type)&&!/-splat$/.test(t.type)}).every(function(t){return new RegExp("^"+c(t.otherVal[0])+"$").test(s[t.val])}))throw new Error("Some parameters of '"+this.path+"' are of invalid format");var d=this.tokens.filter(function(t){return!1===/^query-parameter/.test(t.type)}).map(function(t){return"url-parameter-matrix"===t.type?";"+t.val+"="+s[t.val[0]]:/^url-parameter/.test(t.type)?s[t.val[0]]:t.match}).join("");if(i.ignoreSearch)return d;var h=this.queryParams.filter(function(e){return-1!==Object.keys(t).indexOf(e)}).reduce(function(e,o){return e[o]=t[o],e},{}),l=(0,n.jq)(h,i.queryParams);return l?d+"?"+l:d},t.prototype.getParams=function(t){var e=t instanceof RegExp?function(e){return t.test(e.type)}:function(e){return e.type===t};return this.tokens.filter(e).map(function(t){return t.val[0]})},t.prototype.urlTest=function(t,e,o,r){var n=this,i=new RegExp("^"+e,o?"":"i"),s=t.match(i);return s?this.urlParams.length?s.slice(1,this.urlParams.length+1).reduce(function(t,e,o){return t[n.urlParams[o]]=(d[r]||decodeURIComponent)(e),t},{}):{}:null},t}()},394(t,e,o){o.d(e,{A:()=>g});var r=o(5890),n=o(5182),i=o(9938),s=o(7134),a=o(5166),d=o(9488),u=o(9896),c=o(7615),h=o(6501),l=o(250),p=o(2714),f=o(6066);const m=function(){function t(t,e,o){this.alreadyEmbedded=!1,this.ref=t,this.doc=e,this.embedder=o}return t.prototype.embed=function(){return(0,r.sH)(this,void 0,void 0,function(){var t,e,o,n;return(0,r.YH)(this,function(r){switch(r.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:t=r.sent(),this.doc.catalog.has(h.S5.of("Names"))||this.doc.catalog.set(h.S5.of("Names"),this.doc.context.obj({})),(e=this.doc.catalog.lookup(h.S5.of("Names"),h.Ri)).has(h.S5.of("EmbeddedFiles"))||e.set(h.S5.of("EmbeddedFiles"),this.doc.context.obj({})),(o=e.lookup(h.S5.of("EmbeddedFiles"),h.Ri)).has(h.S5.of("Names"))||o.set(h.S5.of("Names"),this.doc.context.obj([])),(n=o.lookup(h.S5.of("Names"),h.y3)).push(h.lv.fromText(this.embedder.fileName)),n.push(t),this.doc.catalog.has(h.S5.of("AF"))||this.doc.catalog.set(h.S5.of("AF"),this.doc.context.obj([])),this.doc.catalog.lookup(h.S5.of("AF"),h.y3).push(t),this.alreadyEmbedded=!0,r.label=2;case 2:return[2]}})})},t.of=function(e,o,r){return new t(e,o,r)},t}();var b=o(8248),y=o(8731);const g=function(){function t(t,e,o){var r=this;if(this.defaultWordBreaks=[" "],this.computePages=function(){var t=[];return r.catalog.Pages().traverse(function(e,o){if(e instanceof h.y1){var n=r.pageMap.get(e);n||(n=d.A.of(e,o,r),r.pageMap.set(e,n)),t.push(n)}}),t},this.getOrCreateForm=function(){var t=r.catalog.getOrCreateAcroForm();return u.A.of(t,r)},(0,p.jo)(t,"context",[[h.yQ,"PDFContext"]]),(0,p.jo)(e,"ignoreEncryption",["boolean"]),this.context=t,this.catalog=t.lookup(t.trailerInfo.Root),this.isEncrypted=!!t.lookup(t.trailerInfo.Encrypt),this.pageCache=p.l2.populatedBy(this.computePages),this.pageMap=new Map,this.formCache=p.l2.populatedBy(this.getOrCreateForm),this.fonts=[],this.images=[],this.embeddedPages=[],this.embeddedFiles=[],this.javaScripts=[],!e&&this.isEncrypted)throw new n.ZT;o&&this.updateInfoDict()}return t.load=function(e,o){return void 0===o&&(o={}),(0,r.sH)(this,void 0,void 0,function(){var n,i,s,a,d,u,c,f,m,b,y;return(0,r.YH)(this,function(r){switch(r.label){case 0:return n=o.ignoreEncryption,i=void 0!==n&&n,s=o.parseSpeed,a=void 0===s?l.A.Slow:s,d=o.throwOnInvalidObject,u=void 0!==d&&d,c=o.updateMetadata,f=void 0===c||c,m=o.capNumbers,b=void 0!==m&&m,(0,p.jo)(e,"pdf",["string",Uint8Array,ArrayBuffer]),(0,p.jo)(i,"ignoreEncryption",["boolean"]),(0,p.jo)(a,"parseSpeed",["number"]),(0,p.jo)(u,"throwOnInvalidObject",["boolean"]),y=(0,p.Fo)(e),[4,h.gS.forBytesWithOptions(y,a,u,b).parseDocument()];case 1:return[2,new t(r.sent(),i,f)]}})})},t.create=function(e){return void 0===e&&(e={}),(0,r.sH)(this,void 0,void 0,function(){var o,n,i,s,a,d;return(0,r.YH)(this,function(r){return o=e.updateMetadata,n=void 0===o||o,i=h.yQ.create(),s=h.KF.withContext(i),a=i.register(s),d=h.am.withContextAndPages(i,a),i.trailerInfo.Root=i.register(d),[2,new t(i,!1,n)]})})},t.prototype.registerFontkit=function(t){this.fontkit=t},t.prototype.getForm=function(){var t=this.formCache.access();return t.hasXFA()&&(console.warn("Removing XFA form data as pdf-lib does not support reading or writing XFA"),t.deleteXFA()),t},t.prototype.getTitle=function(){var t=this.getInfoDict().lookup(h.S5.Title);if(t)return v(t),t.decodeText()},t.prototype.getAuthor=function(){var t=this.getInfoDict().lookup(h.S5.Author);if(t)return v(t),t.decodeText()},t.prototype.getSubject=function(){var t=this.getInfoDict().lookup(h.S5.Subject);if(t)return v(t),t.decodeText()},t.prototype.getKeywords=function(){var t=this.getInfoDict().lookup(h.S5.Keywords);if(t)return v(t),t.decodeText()},t.prototype.getCreator=function(){var t=this.getInfoDict().lookup(h.S5.Creator);if(t)return v(t),t.decodeText()},t.prototype.getProducer=function(){var t=this.getInfoDict().lookup(h.S5.Producer);if(t)return v(t),t.decodeText()},t.prototype.getCreationDate=function(){var t=this.getInfoDict().lookup(h.S5.CreationDate);if(t)return v(t),t.decodeDate()},t.prototype.getModificationDate=function(){var t=this.getInfoDict().lookup(h.S5.ModDate);if(t)return v(t),t.decodeDate()},t.prototype.setTitle=function(t,e){(0,p.jo)(t,"title",["string"]);var o=h.S5.of("Title");(this.getInfoDict().set(o,h.lv.fromText(t)),null==e?void 0:e.showInWindowTitleBar)&&this.catalog.getOrCreateViewerPreferences().setDisplayDocTitle(!0)},t.prototype.setAuthor=function(t){(0,p.jo)(t,"author",["string"]);var e=h.S5.of("Author");this.getInfoDict().set(e,h.lv.fromText(t))},t.prototype.setSubject=function(t){(0,p.jo)(t,"author",["string"]);var e=h.S5.of("Subject");this.getInfoDict().set(e,h.lv.fromText(t))},t.prototype.setKeywords=function(t){(0,p.jo)(t,"keywords",[Array]);var e=h.S5.of("Keywords");this.getInfoDict().set(e,h.lv.fromText(t.join(" ")))},t.prototype.setCreator=function(t){(0,p.jo)(t,"creator",["string"]);var e=h.S5.of("Creator");this.getInfoDict().set(e,h.lv.fromText(t))},t.prototype.setProducer=function(t){(0,p.jo)(t,"creator",["string"]);var e=h.S5.of("Producer");this.getInfoDict().set(e,h.lv.fromText(t))},t.prototype.setLanguage=function(t){(0,p.jo)(t,"language",["string"]);var e=h.S5.of("Lang");this.catalog.set(e,h.mA.of(t))},t.prototype.setCreationDate=function(t){(0,p.jo)(t,"creationDate",[[Date,"Date"]]);var e=h.S5.of("CreationDate");this.getInfoDict().set(e,h.mA.fromDate(t))},t.prototype.setModificationDate=function(t){(0,p.jo)(t,"modificationDate",[[Date,"Date"]]);var e=h.S5.of("ModDate");this.getInfoDict().set(e,h.mA.fromDate(t))},t.prototype.getPageCount=function(){return void 0===this.pageCount&&(this.pageCount=this.getPages().length),this.pageCount},t.prototype.getPages=function(){return this.pageCache.access()},t.prototype.getPage=function(t){var e=this.getPages();return(0,p.Qb)(t,"index",0,e.length-1),e[t]},t.prototype.getPageIndices=function(){return(0,p.y1)(0,this.getPageCount())},t.prototype.removePage=function(t){var e=this.getPageCount();if(0===this.pageCount)throw new n.OY;(0,p.Qb)(t,"index",0,e-1),this.catalog.removeLeafNode(t),this.pageCount=e-1},t.prototype.addPage=function(t){return(0,p.jo)(t,"page",["undefined",[d.A,"PDFPage"],Array]),this.insertPage(this.getPageCount(),t)},t.prototype.insertPage=function(t,e){var o=this.getPageCount();if((0,p.Qb)(t,"index",0,o),(0,p.jo)(e,"page",["undefined",[d.A,"PDFPage"],Array]),!e||Array.isArray(e)){var r=Array.isArray(e)?e:c.q.A4;(e=d.A.create(this)).setSize.apply(e,r)}else if(e.doc!==this)throw new n.iB;var i=this.catalog.insertLeafNode(e.ref,t);return e.node.setParent(i),this.pageMap.set(e.node,e),this.pageCache.invalidate(),this.pageCount=o+1,e},t.prototype.copyPages=function(e,o){return(0,r.sH)(this,void 0,void 0,function(){var n,i,s,a,u,c,l,f;return(0,r.YH)(this,function(r){switch(r.label){case 0:return(0,p.jo)(e,"srcDoc",[[t,"PDFDocument"]]),(0,p.jo)(o,"indices",[Array]),[4,e.flush()];case 1:for(r.sent(),n=h.Gw.for(e.context,this.context),i=e.getPages(),s=new Array(o.length),a=0,u=o.length;ar}),function(t){t[t.Fastest=1/0]="Fastest",t[t.Fast=1500]="Fast",t[t.Medium=500]="Medium",t[t.Slow=100]="Slow"}(r||(r={}))},9938(t,e,o){o.d(e,{A:()=>a});var r=o(5890),n=o(394),i=o(6501),s=o(2714);const a=function(){function t(t,e,o){this.alreadyEmbedded=!1,(0,s.jo)(t,"ref",[[i.so,"PDFRef"]]),(0,s.jo)(e,"doc",[[n.A,"PDFDocument"]]),(0,s.jo)(o,"embedder",[[i.kO,"PDFPageEmbedder"]]),this.ref=t,this.doc=e,this.width=o.width,this.height=o.height,this.embedder=o}return t.prototype.scale=function(t){return(0,s.jo)(t,"factor",["number"]),{width:this.width*t,height:this.height*t}},t.prototype.size=function(){return this.scale(1)},t.prototype.embed=function(){return(0,r.sH)(this,void 0,void 0,function(){return(0,r.YH)(this,function(t){switch(t.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:t.sent(),this.alreadyEmbedded=!0,t.label=2;case 2:return[2]}})})},t.of=function(e,o,r){return new t(e,o,r)},t}()},7134(t,e,o){o.d(e,{A:()=>a});var r=o(5890),n=o(394),i=o(6501),s=o(2714);const a=function(){function t(t,e,o){this.modified=!0,(0,s.jo)(t,"ref",[[i.so,"PDFRef"]]),(0,s.jo)(e,"doc",[[n.A,"PDFDocument"]]),(0,s.jo)(o,"embedder",[[i.pp,"CustomFontEmbedder"],[i.hM,"StandardFontEmbedder"]]),this.ref=t,this.doc=e,this.name=o.fontName,this.embedder=o}return t.prototype.encodeText=function(t){return(0,s.jo)(t,"text",["string"]),this.modified=!0,this.embedder.encodeText(t)},t.prototype.widthOfTextAtSize=function(t,e){return(0,s.jo)(t,"text",["string"]),(0,s.jo)(e,"size",["number"]),this.embedder.widthOfTextAtSize(t,e)},t.prototype.heightAtSize=function(t,e){var o;return(0,s.jo)(t,"size",["number"]),(0,s.wU)(null==e?void 0:e.descender,"options.descender",["boolean"]),this.embedder.heightOfFontAtSize(t,{descender:null===(o=null==e?void 0:e.descender)||void 0===o||o})},t.prototype.sizeAtHeight=function(t){return(0,s.jo)(t,"height",["number"]),this.embedder.sizeOfFontAtHeight(t)},t.prototype.getCharacterSet=function(){return this.embedder instanceof i.hM?this.embedder.encoding.supportedCodePoints:this.embedder.font.characterSet},t.prototype.embed=function(){return(0,r.sH)(this,void 0,void 0,function(){return(0,r.YH)(this,function(t){switch(t.label){case 0:return this.modified?[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]:[3,2];case 1:t.sent(),this.modified=!1,t.label=2;case 2:return[2]}})})},t.of=function(e,o,r){return new t(e,o,r)},t}()},5166(t,e,o){o.d(e,{A:()=>a});var r=o(5890),n=o(394),i=o(6501),s=o(2714);const a=function(){function t(t,e,o){(0,s.jo)(t,"ref",[[i.so,"PDFRef"]]),(0,s.jo)(e,"doc",[[n.A,"PDFDocument"]]),(0,s.jo)(o,"embedder",[[i.Dm,"JpegEmbedder"],[i.cV,"PngEmbedder"]]),this.ref=t,this.doc=e,this.width=o.width,this.height=o.height,this.embedder=o}return t.prototype.scale=function(t){return(0,s.jo)(t,"factor",["number"]),{width:this.width*t,height:this.height*t}},t.prototype.scaleToFit=function(t,e){(0,s.jo)(t,"width",["number"]),(0,s.jo)(e,"height",["number"]);var o=t/this.width,r=e/this.height,n=Math.min(o,r);return this.scale(n)},t.prototype.size=function(){return this.scale(1)},t.prototype.embed=function(){return(0,r.sH)(this,void 0,void 0,function(){var t,e,o;return(0,r.YH)(this,function(r){switch(r.label){case 0:return this.embedder?(this.embedTask||(e=(t=this).doc,o=t.ref,this.embedTask=this.embedder.embedIntoContext(e.context,o)),[4,this.embedTask]):[2];case 1:return r.sent(),this.embedder=void 0,[2]}})})},t.of=function(e,o,r){return new t(e,o,r)},t}()},8248(t,e,o){o.d(e,{A:()=>i});var r=o(5890),n=o(6501);const i=function(){function t(t,e,o){this.alreadyEmbedded=!1,this.ref=t,this.doc=e,this.embedder=o}return t.prototype.embed=function(){return(0,r.sH)(this,void 0,void 0,function(){var t,e,o,i,s,a,d;return(0,r.YH)(this,function(r){switch(r.label){case 0:return this.alreadyEmbedded?[3,2]:(t=this.doc,e=t.catalog,o=t.context,[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]);case 1:i=r.sent(),e.has(n.S5.of("Names"))||e.set(n.S5.of("Names"),o.obj({})),(s=e.lookup(n.S5.of("Names"),n.Ri)).has(n.S5.of("JavaScript"))||s.set(n.S5.of("JavaScript"),o.obj({})),(a=s.lookup(n.S5.of("JavaScript"),n.Ri)).has(n.S5.of("Names"))||a.set(n.S5.of("Names"),o.obj([])),(d=a.lookup(n.S5.of("Names"),n.y3)).push(n.lv.fromText(this.embedder.scriptName)),d.push(i),this.alreadyEmbedded=!0,r.label=2;case 2:return[2]}})})},t.of=function(e,o,r){return new t(e,o,r)},t}()},9488(t,e,o){o.d(e,{A:()=>y});var r=o(5890),n=o(1749),i=o(5091),s=o(7448),a=o(394),d=o(9938),u=o(7134),c=o(5166),h=o(6932),l=o(7562),p=o(8256),f=o(6501),m=o(2714),b=function(){function t(t,e,o){this.fontSize=24,this.fontColor=(0,n.Qh)(0,0,0),this.lineHeight=24,this.x=0,this.y=0,(0,m.jo)(t,"leafNode",[[f.y1,"PDFPageLeaf"]]),(0,m.jo)(e,"ref",[[f.so,"PDFRef"]]),(0,m.jo)(o,"doc",[[a.A,"PDFDocument"]]),this.node=t,this.ref=e,this.doc=o}return t.prototype.setRotation=function(t){var e=(0,l.xW)(t);(0,m.vW)(e,"degreesAngle",90),this.node.set(f.S5.of("Rotate"),this.doc.context.obj(e))},t.prototype.getRotation=function(){var t=this.node.Rotate();return(0,l.uj)(t?t.asNumber():0)},t.prototype.setSize=function(t,e){(0,m.jo)(t,"width",["number"]),(0,m.jo)(e,"height",["number"]);var o=this.getMediaBox();this.setMediaBox(o.x,o.y,t,e);var r=this.getCropBox(),n=this.getBleedBox(),i=this.getTrimBox(),s=this.getArtBox(),a=this.node.CropBox(),d=this.node.BleedBox(),u=this.node.TrimBox(),c=this.node.ArtBox();a&&(0,m.N8)(r,o)&&this.setCropBox(o.x,o.y,t,e),d&&(0,m.N8)(n,o)&&this.setBleedBox(o.x,o.y,t,e),u&&(0,m.N8)(i,o)&&this.setTrimBox(o.x,o.y,t,e),c&&(0,m.N8)(s,o)&&this.setArtBox(o.x,o.y,t,e)},t.prototype.setWidth=function(t){(0,m.jo)(t,"width",["number"]),this.setSize(t,this.getSize().height)},t.prototype.setHeight=function(t){(0,m.jo)(t,"height",["number"]),this.setSize(this.getSize().width,t)},t.prototype.setMediaBox=function(t,e,o,r){(0,m.jo)(t,"x",["number"]),(0,m.jo)(e,"y",["number"]),(0,m.jo)(o,"width",["number"]),(0,m.jo)(r,"height",["number"]);var n=this.doc.context.obj([t,e,t+o,e+r]);this.node.set(f.S5.MediaBox,n)},t.prototype.setCropBox=function(t,e,o,r){(0,m.jo)(t,"x",["number"]),(0,m.jo)(e,"y",["number"]),(0,m.jo)(o,"width",["number"]),(0,m.jo)(r,"height",["number"]);var n=this.doc.context.obj([t,e,t+o,e+r]);this.node.set(f.S5.CropBox,n)},t.prototype.setBleedBox=function(t,e,o,r){(0,m.jo)(t,"x",["number"]),(0,m.jo)(e,"y",["number"]),(0,m.jo)(o,"width",["number"]),(0,m.jo)(r,"height",["number"]);var n=this.doc.context.obj([t,e,t+o,e+r]);this.node.set(f.S5.BleedBox,n)},t.prototype.setTrimBox=function(t,e,o,r){(0,m.jo)(t,"x",["number"]),(0,m.jo)(e,"y",["number"]),(0,m.jo)(o,"width",["number"]),(0,m.jo)(r,"height",["number"]);var n=this.doc.context.obj([t,e,t+o,e+r]);this.node.set(f.S5.TrimBox,n)},t.prototype.setArtBox=function(t,e,o,r){(0,m.jo)(t,"x",["number"]),(0,m.jo)(e,"y",["number"]),(0,m.jo)(o,"width",["number"]),(0,m.jo)(r,"height",["number"]);var n=this.doc.context.obj([t,e,t+o,e+r]);this.node.set(f.S5.ArtBox,n)},t.prototype.getSize=function(){var t=this.getMediaBox();return{width:t.width,height:t.height}},t.prototype.getWidth=function(){return this.getSize().width},t.prototype.getHeight=function(){return this.getSize().height},t.prototype.getMediaBox=function(){return this.node.MediaBox().asRectangle()},t.prototype.getCropBox=function(){var t,e=this.node.CropBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getMediaBox()},t.prototype.getBleedBox=function(){var t,e=this.node.BleedBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()},t.prototype.getTrimBox=function(){var t,e=this.node.TrimBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()},t.prototype.getArtBox=function(){var t,e=this.node.ArtBox();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:this.getCropBox()},t.prototype.translateContent=function(t,e){(0,m.jo)(t,"x",["number"]),(0,m.jo)(e,"y",["number"]),this.node.normalize(),this.getContentStream();var o=this.createContentStream((0,s.Tl)(),(0,s.kJ)(t,e)),r=this.doc.context.register(o),n=this.createContentStream((0,s.eH)()),i=this.doc.context.register(n);this.node.wrapContentStreams(r,i)},t.prototype.scale=function(t,e){(0,m.jo)(t,"x",["number"]),(0,m.jo)(e,"y",["number"]),this.setSize(this.getWidth()*t,this.getHeight()*e),this.scaleContent(t,e),this.scaleAnnotations(t,e)},t.prototype.scaleContent=function(t,e){(0,m.jo)(t,"x",["number"]),(0,m.jo)(e,"y",["number"]),this.node.normalize(),this.getContentStream();var o=this.createContentStream((0,s.Tl)(),(0,s.hs)(t,e)),r=this.doc.context.register(o),n=this.createContentStream((0,s.eH)()),i=this.doc.context.register(n);this.node.wrapContentStreams(r,i)},t.prototype.scaleAnnotations=function(t,e){(0,m.jo)(t,"x",["number"]),(0,m.jo)(e,"y",["number"]);var o=this.node.Annots();if(o)for(var r=0;rr}),function(t){t.Normal="Normal",t.Multiply="Multiply",t.Screen="Screen",t.Overlay="Overlay",t.Darken="Darken",t.Lighten="Lighten",t.ColorDodge="ColorDodge",t.ColorBurn="ColorBurn",t.HardLight="HardLight",t.SoftLight="SoftLight",t.Difference="Difference",t.Exclusion="Exclusion"}(r||(r={}))},8256(t,e,o){var r;o.d(e,{q:()=>r}),function(t){t.Courier="Courier",t.CourierBold="Courier-Bold",t.CourierOblique="Courier-Oblique",t.CourierBoldOblique="Courier-BoldOblique",t.Helvetica="Helvetica",t.HelveticaBold="Helvetica-Bold",t.HelveticaOblique="Helvetica-Oblique",t.HelveticaBoldOblique="Helvetica-BoldOblique",t.TimesRoman="Times-Roman",t.TimesRomanBold="Times-Bold",t.TimesRomanItalic="Times-Italic",t.TimesRomanBoldItalic="Times-BoldItalic",t.Symbol="Symbol",t.ZapfDingbats="ZapfDingbats"}(r||(r={}))}}]);