covid19-2010-generator/main.859e2903.js

459 lines
1.3 MiB
JavaScript
Raw Normal View History

2020-10-29 21:30:05 +00:00
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"y3A0":[function(require,module,exports) {
},{}],"I7Ak":[function(require,module,exports) {
},{"./../fonts/marianne-bold-webfont.woff2":[["marianne-bold-webfont.1505950c.woff2","J7DM"],"J7DM"],"./../fonts/marianne-bold-webfont.woff":[["marianne-bold-webfont.7424dbde.woff","ISoQ"],"ISoQ"],"./../fonts/marianne-regular-webfont.woff2":[["marianne-regular-webfont.daa94941.woff2","hJO5"],"hJO5"],"./../fonts/marianne-regular-webfont.woff":[["marianne-regular-webfont.0a959359.woff","q08Q"],"q08Q"]}],"T2ws":[function(require,module,exports) {
var global = arguments[3];
var t=arguments[3];function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function e(t){return(e="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(t){return n(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)})(t)}function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function a(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,n,e){return n&&a(t.prototype,n),e&&a(t,e),t}function o(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function c(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.forEach(function(n){o(t,n,e[n])})}return t}function s(t,n){return u(t)||m(t,n)||g()}function f(t){return l(t)||d(t)||p()}function l(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}function u(t){if(Array.isArray(t))return t}function d(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function m(t,n){var e=[],r=!0,a=!1,i=void 0;try{for(var o,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(e.push(o.value),!n||e.length!==n);r=!0);}catch(s){a=!0,i=s}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return e}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.toHtml=En,exports.findIconDefinition=Ne,exports.parse=exports.dom=exports.library=exports.counter=exports.text=exports.layer=exports.config=exports.noAuto=exports.icon=void 0;var h=function(){},v={},b={},y=null,w={mark:h,measure:h};try{"undefined"!=typeof window&&(v=window),"undefined"!=typeof document&&(b=document),"undefined"!=typeof MutationObserver&&(y=MutationObserver),"undefined"!=typeof performance&&(w=performance)}catch(Ue){}var x=v.navigator||{},k=x.userAgent,A=void 0===k?"":k,C=v,M=b,O=y,S=w,P=!!C.document,N=!!M.documentElement&&!!M.head&&"function"==typeof M.addEventListener&&"function"==typeof M.createElement,z=~A.indexOf("MSIE")||~A.indexOf("Trident/"),I="___FONT_AWESOME___",j=16,E="fa",L="svg-inline--fa",R="data-fa-i2svg",T="data-fa-pseudo-element",_="data-fa-pseudo-element-pending",D="data-prefix",H="data-icon",Y="fontawesome-i2svg",F="async",U=["HTML","HEAD","STYLE","SCRIPT"],X=function(){try{return!0}catch(Ue){return!1}}(),B={fas:"solid",far:"regular",fal:"light",fad:"duotone",fab:"brands",fak:"kit",fa:"solid"},W={solid:"fas",regular:"far",light:"fal",duotone:"fad",brands:"fab",kit:"fak"},q="fa-layers-text",K=/Font Awesome ([5 ]*)(Solid|Regular|Light|Duotone|Brands|Free|Pro|Kit).*/,V={900:"fas",400:"far",normal:"far",300:"fal"},G=[1,2,3,4,5,6,7,8,9,10],J=G.concat([11,12,13,14,15,16,17,18,19,20]),Q=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Z={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},$=["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",Z.GROUP,Z.SWAP_OPACITY,Z.PRIMARY,Z.SECONDARY].concat(G.map(function(t){return"".concat(t,"x")})).concat(J.map(function(t){return"w-".concat(t)})),tt=C.FontAwesomeConfig||{};function nt(t){var n=M.querySelector("script["+t+"]");if(n)return n.getAttribute(t)}function et(t){return""===t||"false"!==t&&("true
},{}],"lmHt":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.faBorderAll=exports.faBookmark=exports.faBookReader=exports.faBookOpen=exports.faBookMedical=exports.faBookDead=exports.faBook=exports.faBong=exports.faBone=exports.faBomb=exports.faBolt=exports.faBold=exports.faBlog=exports.faBlind=exports.faBlenderPhone=exports.faBlender=exports.faBirthdayCake=exports.faBiohazard=exports.faBinoculars=exports.faBiking=exports.faBicycle=exports.faBible=exports.faBezierCurve=exports.faBellSlash=exports.faBell=exports.faBeer=exports.faBed=exports.faBatteryThreeQuarters=exports.faBatteryQuarter=exports.faBatteryHalf=exports.faBatteryFull=exports.faBatteryEmpty=exports.faBath=exports.faBasketballBall=exports.faBaseballBall=exports.faBars=exports.faBarcode=exports.faBandAid=exports.faBan=exports.faBalanceScaleRight=exports.faBalanceScaleLeft=exports.faBalanceScale=exports.faBahai=exports.faBacterium=exports.faBacteria=exports.faBacon=exports.faBackward=exports.faBackspace=exports.faBabyCarriage=exports.faBaby=exports.faAward=exports.faAudioDescription=exports.faAtom=exports.faAtlas=exports.faAt=exports.faAsterisk=exports.faAssistiveListeningSystems=exports.faArrowsAltV=exports.faArrowsAltH=exports.faArrowsAlt=exports.faArrowUp=exports.faArrowRight=exports.faArrowLeft=exports.faArrowDown=exports.faArrowCircleUp=exports.faArrowCircleRight=exports.faArrowCircleLeft=exports.faArrowCircleDown=exports.faArrowAltCircleUp=exports.faArrowAltCircleRight=exports.faArrowAltCircleLeft=exports.faArrowAltCircleDown=exports.faArchway=exports.faArchive=exports.faAppleAlt=exports.faAnkh=exports.faAngry=exports.faAngleUp=exports.faAngleRight=exports.faAngleLeft=exports.faAngleDown=exports.faAngleDoubleUp=exports.faAngleDoubleRight=exports.faAngleDoubleLeft=exports.faAngleDoubleDown=exports.faAnchor=exports.faAmericanSignLanguageInterpreting=exports.faAmbulance=exports.faAllergies=exports.faAlignRight=exports.faAlignLeft=exports.faAlignJustify=exports.faAlignCenter=exports.faAirFreshener=exports.faAdjust=exports.faAddressCard=exports.faAddressBook=exports.faAd=exports.prefix=exports.fas=void 0,exports.faCloud=exports.faClosedCaptioning=exports.faClone=exports.faClock=exports.faClipboardList=exports.faClipboardCheck=exports.faClipboard=exports.faClinicMedical=exports.faCity=exports.faCircleNotch=exports.faCircle=exports.faChurch=exports.faChild=exports.faChevronUp=exports.faChevronRight=exports.faChevronLeft=exports.faChevronDown=exports.faChevronCircleUp=exports.faChevronCircleRight=exports.faChevronCircleLeft=exports.faChevronCircleDown=exports.faChessRook=exports.faChessQueen=exports.faChessPawn=exports.faChessKnight=exports.faChessKing=exports.faChessBoard=exports.faChessBishop=exports.faChess=exports.faCheese=exports.faCheckSquare=exports.faCheckDouble=exports.faCheckCircle=exports.faCheck=exports.faChartPie=exports.faChartLine=exports.faChartBar=exports.faChartArea=exports.faChargingStation=exports.faChalkboardTeacher=exports.faChalkboard=exports.faChair=exports.faCertificate=exports.faCat=exports.faCashRegister=exports.faCartPlus=exports.faCartArrowDown=exports.faCarrot=exports.faCaretUp=exports.faCaretSquareUp=exports.faCaretSquareRight=exports.faCaretSquareLeft=exports.faCaretSquareDown=exports.faCaretRight=exports.faCaretLeft=exports.faCaretDown=exports.faCaravan=exports.faCarSide=exports.faCarCrash=exports.faCarBattery=exports.faCarAlt=exports.faCar=exports.faCapsules=exports.faCannabis=exports.faCandyCane=exports.faCampground=exports.faCameraRetro=exports.faCamera=exports.faCalendarWeek=exports.faCalendarTimes=exports.faCalendarPlus=exports.faCalendarMinus=exports.faCalendarDay=exports.faCalendarCheck=exports.faCalendarAlt=exports.faCalendar=exports.faCalculator=exports.faBusinessTime=exports.faBusAlt=exports.faBus=exports.faBurn=exports.faBullseye=exports.faBullhorn=exports.faBuilding=exports.faBug=exports.faBrush=exports.faBroom=exports.faBroadcastTower=exports.faBriefcaseMedical=exports.faBriefcase=exports.faBreadSlice=exports.faBrain=exports.faBraille=exports.faBoxes=exports.faBoxTissue=exports.faBoxOpen=exports.faBox=exp
},{}],"jeVz":[function(require,module,exports) {
"use strict";var e=require("@fortawesome/fontawesome-svg-core"),r=require("@fortawesome/free-solid-svg-icons");e.library.add(r.faFilePdf),e.dom.watch();
},{"@fortawesome/fontawesome-svg-core":"T2ws","@fortawesome/free-solid-svg-icons":"lmHt"}],"NVR6":[function(require,module,exports) {
function n(n,r){(null==r||r>n.length)&&(r=n.length);for(var e=0,l=new Array(r);e<r;e++)l[e]=n[e];return l}module.exports=n;
},{}],"XfJI":[function(require,module,exports) {
var r=require("./arrayLikeToArray");function a(a){if(Array.isArray(a))return r(a)}module.exports=a;
},{"./arrayLikeToArray":"NVR6"}],"OMTj":[function(require,module,exports) {
function e(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}module.exports=e;
},{}],"UyFj":[function(require,module,exports) {
var r=require("./arrayLikeToArray");function t(t,e){if(t){if("string"==typeof t)return r(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(t,e):void 0}}module.exports=t;
},{"./arrayLikeToArray":"NVR6"}],"wFNi":[function(require,module,exports) {
function e(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}module.exports=e;
},{}],"Fhqp":[function(require,module,exports) {
var r=require("./arrayWithoutHoles"),e=require("./iterableToArray"),u=require("./unsupportedIterableToArray"),a=require("./nonIterableSpread");function o(o){return r(o)||e(o)||u(o)||a()}module.exports=o;
},{"./arrayWithoutHoles":"XfJI","./iterableToArray":"OMTj","./unsupportedIterableToArray":"UyFj","./nonIterableSpread":"wFNi"}],"XNdd":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.downloadBlob=p,exports.appendTo=exports.createElement=exports.$$=exports.$=void 0;var e=t(require("@babel/runtime/helpers/toConsumableArray"));function t(e){return e&&e.__esModule?e:{default:e}}var r=function(){var e;return(e=document).querySelector.apply(e,arguments)};exports.$=r;var n=function(){var t;return(0,e.default)((t=document).querySelectorAll.apply(t,arguments))};exports.$$=n;var o=["for","inputmode","minlength","maxlength","min","max","pattern"],a=function(e,t){var r=document.createElement(e);return o.forEach(function(e){t&&e in t&&t[e]&&r.setAttribute(e,t[e]),t&&delete t[e]}),Object.assign(r,t),r};exports.createElement=a;var u=function(t){return function(r){r[Symbol.iterator]?t.append.apply(t,(0,e.default)(r)):t.append(r)}};function p(e,t){var r=a("a"),n=URL.createObjectURL(e);r.href=n,r.download=t,document.body.appendChild(r),r.click()}exports.appendTo=u;
},{"@babel/runtime/helpers/toConsumableArray":"Fhqp"}],"qEem":[function(require,module,exports) {
"use strict";var e=require("./dom-utils"),n="../sw.js";window.isUpdateAvailable=new Promise(function(e,t){"serviceWorker"in navigator&&navigator.serviceWorker.register(n).then(function(n){n.onupdatefound=function(){var t=n.installing;t.onstatechange=function(){switch(t.state){case"installed":navigator.serviceWorker.controller?e(!0):e(!1)}}}}).catch(function(e){return console.error("[SW ERROR]",e)})}),window.isUpdateAvailable.then(function(n){(0,e.$)("#reload-btn").addEventListener("click",function(){return window.location.reload()}),(0,e.$)("#update-alert").classList.remove("d-none")});
},{"./dom-utils":"XNdd"}],"QVnC":[function(require,module,exports) {
var define;
var t,r=function(t){"use strict";var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(P){u=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new G(n||[]);return i._invoke=function(t,r,e){var n=l;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return F()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=j(a,e);if(c){if(c===v)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===l)throw n=y,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=p;var u=f(t,r,e);if("normal"===u.type){if(n=e.done?y:s,u.arg===v)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=y,e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(P){return{type:"throw",arg:P}}}t.wrap=h;var l="suspendedStart",s="suspendedYield",p="executing",y="completed",v={};function d(){}function g(){}function m(){}var w={};w[i]=function(){return this};var L=Object.getPrototypeOf,x=L&&L(L(N([])));x&&x!==e&&n.call(x,i)&&(w=x);var b=m.prototype=d.prototype=Object.create(w);function E(t){["next","throw","return"].forEach(function(r){u(t,r,function(t){return this._invoke(r,t)})})}function _(t,r){var e;this._invoke=function(o,i){function a(){return new r(function(e,a){!function e(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var h=u.arg,l=h.value;return l&&"object"==typeof l&&n.call(l,"__await")?r.resolve(l.__await).then(function(t){e("next",t,a,c)},function(t){e("throw",t,a,c)}):r.resolve(l).then(function(t){h.value=t,a(h)},function(t){return e("throw",t,a,c)})}c(u.arg)}(o,i,e,a)})}return e=e?e.then(a,a):a()}}function j(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,j(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function O(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:F}}function F(){return{value:r,done:!0}}return g.prototype=b.constructor=m,m.constructor=g,g.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===g||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},E(_.prototype),_.prototype[a]=function(){return this},t.AsyncIterator=_,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new _(h(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},E(b),u(b,c,"Generator"),b[i]=function(){return this},b.toString=function(){return"[object Generator]"},t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();i
},{}],"PMvg":[function(require,module,exports) {
module.exports=require("regenerator-runtime");
},{"regenerator-runtime":"QVnC"}],"agGE":[function(require,module,exports) {
function n(n,t,o,r,e,i,u){try{var c=n[i](u),v=c.value}catch(a){return void o(a)}c.done?t(v):Promise.resolve(v).then(r,e)}function t(t){return function(){var o=this,r=arguments;return new Promise(function(e,i){var u=t.apply(o,r);function c(t){n(u,e,i,c,v,"next",t)}function v(t){n(u,e,i,c,v,"throw",t)}c(void 0)})}}module.exports=t;
},{}],"Hnt6":[function(require,module,exports) {
module.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then};
},{}],"REa7":[function(require,module,exports) {
var r={}.toString;module.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)};
},{}],"yh9p":[function(require,module,exports) {
"use strict";exports.byteLength=u,exports.toByteArray=i,exports.fromByteArray=d;for(var r=[],t=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)r[o]=n[o],t[n.charCodeAt(o)]=o;function h(r){var t=r.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");return-1===e&&(e=t),[e,e===t?0:4-e%4]}function u(r){var t=h(r),e=t[0],n=t[1];return 3*(e+n)/4-n}function c(r,t,e){return 3*(t+e)/4-e}function i(r){var n,o,a=h(r),u=a[0],i=a[1],f=new e(c(r,u,i)),A=0,d=i>0?u-4:u;for(o=0;o<d;o+=4)n=t[r.charCodeAt(o)]<<18|t[r.charCodeAt(o+1)]<<12|t[r.charCodeAt(o+2)]<<6|t[r.charCodeAt(o+3)],f[A++]=n>>16&255,f[A++]=n>>8&255,f[A++]=255&n;return 2===i&&(n=t[r.charCodeAt(o)]<<2|t[r.charCodeAt(o+1)]>>4,f[A++]=255&n),1===i&&(n=t[r.charCodeAt(o)]<<10|t[r.charCodeAt(o+1)]<<4|t[r.charCodeAt(o+2)]>>2,f[A++]=n>>8&255,f[A++]=255&n),f}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function A(r,t,e){for(var n,o=[],a=t;a<e;a+=3)n=(r[a]<<16&16711680)+(r[a+1]<<8&65280)+(255&r[a+2]),o.push(f(n));return o.join("")}function d(t){for(var e,n=t.length,o=n%3,a=[],h=0,u=n-o;h<u;h+=16383)a.push(A(t,h,h+16383>u?u:h+16383));return 1===o?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),a.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;
},{}],"JgNJ":[function(require,module,exports) {
exports.read=function(a,o,t,r,h){var M,p,w=8*h-r-1,f=(1<<w)-1,e=f>>1,i=-7,N=t?h-1:0,n=t?-1:1,s=a[o+N];for(N+=n,M=s&(1<<-i)-1,s>>=-i,i+=w;i>0;M=256*M+a[o+N],N+=n,i-=8);for(p=M&(1<<-i)-1,M>>=-i,i+=r;i>0;p=256*p+a[o+N],N+=n,i-=8);if(0===M)M=1-e;else{if(M===f)return p?NaN:1/0*(s?-1:1);p+=Math.pow(2,r),M-=e}return(s?-1:1)*p*Math.pow(2,M-r)},exports.write=function(a,o,t,r,h,M){var p,w,f,e=8*M-h-1,i=(1<<e)-1,N=i>>1,n=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,s=r?0:M-1,u=r?1:-1,l=o<0||0===o&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(w=isNaN(o)?1:0,p=i):(p=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-p))<1&&(p--,f*=2),(o+=p+N>=1?n/f:n*Math.pow(2,1-N))*f>=2&&(p++,f/=2),p+N>=i?(w=0,p=i):p+N>=1?(w=(o*f-1)*Math.pow(2,h),p+=N):(w=o*Math.pow(2,N-1)*Math.pow(2,h),p=0));h>=8;a[t+s]=255&w,s+=u,w/=256,h-=8);for(p=p<<h|w,e+=h;e>0;a[t+s]=255&p,s+=u,p/=256,e-=8);a[t+s-u]|=128*l};
},{}],"peL6":[function(require,module,exports) {
var global = arguments[3];
var t=arguments[3],r=require("base64-js"),e=require("ieee754"),n=require("isarray");function i(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(r){return!1}}function o(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,r){if(o()<r)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=f.prototype:(null===t&&(t=new f(r)),t.length=r),t}function f(t,r,e){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(t,r,e);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return s(this,t,r,e)}function s(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?g(t,r,e,n):"string"==typeof r?l(t,r,e):y(t,r)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function a(t,r,e,n){return h(r),r<=0?u(t,r):void 0!==e?"string"==typeof n?u(t,r).fill(e,n):u(t,r).fill(e):u(t,r)}function c(t,r){if(h(r),t=u(t,r<0?0:0|w(r)),!f.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}function l(t,r,e){if("string"==typeof e&&""!==e||(e="utf8"),!f.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|v(r,e),i=(t=u(t,n)).write(r,e);return i!==n&&(t=t.slice(0,i)),t}function p(t,r){var e=r.length<0?0:0|w(r.length);t=u(t,e);for(var n=0;n<e;n+=1)t[n]=255&r[n];return t}function g(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return r=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n),f.TYPED_ARRAY_SUPPORT?(t=r).__proto__=f.prototype:t=p(t,r),t}function y(t,r){if(f.isBuffer(r)){var e=0|w(r.length);return 0===(t=u(t,e)).length?t:(r.copy(t,0,0,e),t)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||W(r.length)?u(t,0):p(t,r);if("Buffer"===r.type&&n(r.data))return p(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function w(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function d(t){return+t!=t&&(t=0),f.alloc(+t)}function v(t,r){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return K(t).length;default:if(n)return $(t).length;r=(""+r).toLowerCase(),n=!0}}function E(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,r,e);case"utf8":case"utf-8":return Y(this,r,e);case"ascii":return L(this,r,e);case"latin1":case"binary":return D(this,r,e);case"base64":return S(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function R(t,r,e,n,i){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=f.from(r,n)),f.
},{"base64-js":"yh9p","ieee754":"JgNJ","isarray":"REa7","buffer":"peL6"}],"bakr":[function(require,module,exports) {
"use strict";var r=require("isarray");function t(){try{var r=new Uint8Array(1);return r.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===r.foo()}catch(t){return!1}}n.TYPED_ARRAY_SUPPORT=t();var e=n.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function n(r,t,e){return n.TYPED_ARRAY_SUPPORT||this instanceof n?"number"==typeof r?u(this,r):_(this,r,t,e):new n(r,t,e)}function o(r){if(r>=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e.toString(16)+" bytes");return 0|r}function i(r){return r!=r}function f(r,t){var e;return n.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=n.prototype:(null===(e=r)&&(e=new n(t)),e.length=t),e}function u(r,t){var e=f(r,t<0?0:0|o(t));if(!n.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function s(r,t){var e=0|g(t),n=f(r,e),o=n.write(t);return o!==e&&(n=n.slice(0,o)),n}function a(r,t){for(var e=t.length<0?0:0|o(t.length),n=f(r,e),i=0;i<e;i+=1)n[i]=255&t[i];return n}function h(r,t,e,o){if(e<0||t.byteLength<e)throw new RangeError("'offset' is out of bounds");if(t.byteLength<e+(o||0))throw new RangeError("'length' is out of bounds");var i;return i=void 0===e&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,e):new Uint8Array(t,e,o),n.TYPED_ARRAY_SUPPORT?i.__proto__=n.prototype:i=a(r,i),i}function l(r,t){if(n.isBuffer(t)){var e=0|o(t.length),u=f(r,e);return 0===u.length?u:(t.copy(u,0,0,e),u)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||i(t.length)?f(r,0):a(r,t);if("Buffer"===t.type&&Array.isArray(t.data))return a(r,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(r,t){var e;t=t||1/0;for(var n=r.length,o=null,i=[],f=0;f<n;++f){if((e=r.charCodeAt(f))>55295&&e<57344){if(!o){if(e>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(f+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(t-=3)>-1&&i.push(239,191,189),o=e;continue}e=65536+(o-55296<<10|e-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((t-=1)<0)break;i.push(e)}else if(e<2048){if((t-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((t-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return i}function g(r){return n.isBuffer(r)?r.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(r)||r instanceof ArrayBuffer)?r.byteLength:("string"!=typeof r&&(r=""+r),0===r.length?0:y(r).length)}function p(r,t,e,n){for(var o=0;o<n&&!(o+e>=t.length||o>=r.length);++o)t[o+e]=r[o];return o}function c(r,t,e,n){return p(y(t,r.length-e),r,e,n)}function _(r,t,e,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?h(r,t,e,n):"string"==typeof t?s(r,t,e):l(r,t)}n.TYPED_ARRAY_SUPPORT&&(n.prototype.__proto__=Uint8Array.prototype,n.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),n.prototype.write=function(r,t,e){void 0===t?(e=this.length,t=0):void 0===e&&"string"==typeof t?(e=this.length,t=0):isFinite(t)&&(t|=0,isFinite(e)?e|=0:e=void 0);var n=this.length-t;if((void 0===e||e>n)&&(e=n),r.length>0&&(e<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return c(this,r,t,e)},n.prototype.slice=function(r,t){var e,o=this.length;if((r=~~r)<0?(r+=o)<0&&(r=0):r>o&&(r=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<r&&(t=r),n.TYPED_ARRAY_SUPPORT)(e=this.subarray(r,t)).__proto__=n.prototype;else{var i=t-r;e=new n(i,void 0);for(var f=0;f<i;++f)e[f]=this[f+r]}return e},n.prototype.copy=function(r,t,e,o){if(e||(e=0),o||0===o||(o=this.length),t>=r.length&&(t=r.length),t||(t=0),o>0&&o<e&&(o=e),o===e)return 0;if(0===r.length||0===this.length)return 0;if(t<0)throw new RangeError("
},{"isarray":"REa7","buffer":"peL6"}],"O0NP":[function(require,module,exports) {
var o,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];exports.getSymbolSize=function(o){if(!o)throw new Error('"version" cannot be null or undefined');if(o<1||o>40)throw new Error('"version" should be in range from 1 to 40');return 4*o+17},exports.getSymbolTotalCodewords=function(o){return n[o]},exports.getBCHDigit=function(o){for(var n=0;0!==o;)n++,o>>>=1;return n},exports.setToSJISFunction=function(n){if("function"!=typeof n)throw new Error('"toSJISFunc" is not a valid function.');o=n},exports.isKanjiModeEnabled=function(){return void 0!==o},exports.toSJIS=function(n){return o(n)};
},{}],"R7wW":[function(require,module,exports) {
function r(r){if("string"!=typeof r)throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return exports.L;case"m":case"medium":return exports.M;case"q":case"quartile":return exports.Q;case"h":case"high":return exports.H;default:throw new Error("Unknown EC Level: "+r)}}exports.L={bit:1},exports.M={bit:0},exports.Q={bit:3},exports.H={bit:2},exports.isValid=function(r){return r&&void 0!==r.bit&&r.bit>=0&&r.bit<4},exports.from=function(t,e){if(exports.isValid(t))return t;try{return r(t)}catch(o){return e}};
},{}],"PLTI":[function(require,module,exports) {
function t(){this.buffer=[],this.length=0}t.prototype={get:function(t){var h=Math.floor(t/8);return 1==(this.buffer[h]>>>7-t%8&1)},put:function(t,h){for(var n=0;n<h;n++)this.putBit(1==(t>>>h-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var h=Math.floor(this.length/8);this.buffer.length<=h&&this.buffer.push(0),t&&(this.buffer[h]|=128>>>this.length%8),this.length++}},module.exports=t;
},{}],"Z2lI":[function(require,module,exports) {
var t=require("../utils/buffer");function e(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=t.alloc(e*e),this.reservedBit=t.alloc(e*e)}e.prototype.set=function(t,e,i,r){var s=t*this.size+e;this.data[s]=i,r&&(this.reservedBit[s]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},module.exports=e;
},{"../utils/buffer":"bakr"}],"ece7":[function(require,module,exports) {
var r=require("./utils").getSymbolSize;exports.getRowColCoords=function(o){if(1===o)return[];for(var e=Math.floor(o/7)+2,t=r(o),s=145===t?26:2*Math.ceil((t-13)/(2*e-2)),i=[t-7],n=1;n<e-1;n++)i[n]=i[n-1]-s;return i.push(6),i.reverse()},exports.getPositions=function(r){for(var o=[],e=exports.getRowColCoords(r),t=e.length,s=0;s<t;s++)for(var i=0;i<t;i++)0===s&&0===i||0===s&&i===t-1||s===t-1&&0===i||o.push([e[s],e[i]]);return o};
},{"./utils":"O0NP"}],"NfUo":[function(require,module,exports) {
var e=require("./utils").getSymbolSize,r=7;exports.getPositions=function(t){var i=e(t);return[[0,0],[i-r,0],[0,i-r]]};
},{"./utils":"O0NP"}],"NYIn":[function(require,module,exports) {
exports.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};function e(t,e,r){switch(t){case exports.Patterns.PATTERN000:return(e+r)%2==0;case exports.Patterns.PATTERN001:return e%2==0;case exports.Patterns.PATTERN010:return r%3==0;case exports.Patterns.PATTERN011:return(e+r)%3==0;case exports.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case exports.Patterns.PATTERN101:return e*r%2+e*r%3==0;case exports.Patterns.PATTERN110:return(e*r%2+e*r%3)%2==0;case exports.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}exports.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},exports.from=function(t){return exports.isValid(t)?parseInt(t,10):void 0},exports.getPenaltyN1=function(e){for(var r=e.size,a=0,s=0,n=0,o=null,N=null,P=0;P<r;P++){s=n=0,o=N=null;for(var p=0;p<r;p++){var T=e.get(P,p);T===o?s++:(s>=5&&(a+=t.N1+(s-5)),o=T,s=1),(T=e.get(p,P))===N?n++:(n>=5&&(a+=t.N1+(n-5)),N=T,n=1)}s>=5&&(a+=t.N1+(s-5)),n>=5&&(a+=t.N1+(n-5))}return a},exports.getPenaltyN2=function(e){for(var r=e.size,a=0,s=0;s<r-1;s++)for(var n=0;n<r-1;n++){var o=e.get(s,n)+e.get(s,n+1)+e.get(s+1,n)+e.get(s+1,n+1);4!==o&&0!==o||a++}return a*t.N2},exports.getPenaltyN3=function(e){for(var r=e.size,a=0,s=0,n=0,o=0;o<r;o++){s=n=0;for(var N=0;N<r;N++)s=s<<1&2047|e.get(o,N),N>=10&&(1488===s||93===s)&&a++,n=n<<1&2047|e.get(N,o),N>=10&&(1488===n||93===n)&&a++}return a*t.N3},exports.getPenaltyN4=function(e){for(var r=0,a=e.data.length,s=0;s<a;s++)r+=e.data[s];return Math.abs(Math.ceil(100*r/a/5)-10)*t.N4},exports.applyMask=function(t,r){for(var a=r.size,s=0;s<a;s++)for(var n=0;n<a;n++)r.isReserved(n,s)||r.xor(n,s,e(t,n,s))},exports.getBestMask=function(t,e){for(var r=Object.keys(exports.Patterns).length,a=0,s=1/0,n=0;n<r;n++){e(n),exports.applyMask(n,t);var o=exports.getPenaltyN1(t)+exports.getPenaltyN2(t)+exports.getPenaltyN3(t)+exports.getPenaltyN4(t);exports.applyMask(n,t),o<s&&(s=o,a=n)}return a};
},{}],"lpve":[function(require,module,exports) {
var e=require("./error-correction-level"),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],t=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];exports.getBlocksCount=function(t,n){switch(n){case e.L:return r[4*(t-1)+0];case e.M:return r[4*(t-1)+1];case e.Q:return r[4*(t-1)+2];case e.H:return r[4*(t-1)+3];default:return}},exports.getTotalCodewordsCount=function(r,n){switch(n){case e.L:return t[4*(r-1)+0];case e.M:return t[4*(r-1)+1];case e.Q:return t[4*(r-1)+2];case e.H:return t[4*(r-1)+3];default:return}};
},{"./error-correction-level":"R7wW"}],"lcOJ":[function(require,module,exports) {
var r=require("../utils/buffer"),o=r.alloc(512),n=r.alloc(256);!function(){for(var r=1,t=0;t<255;t++)o[t]=r,n[r]=t,256&(r<<=1)&&(r^=285);for(t=255;t<512;t++)o[t]=o[t-255]}(),exports.log=function(r){if(r<1)throw new Error("log("+r+")");return n[r]},exports.exp=function(r){return o[r]},exports.mul=function(r,t){return 0===r||0===t?0:o[n[r]+n[t]]};
},{"../utils/buffer":"bakr"}],"JUJT":[function(require,module,exports) {
var r=require("../utils/buffer"),e=require("./galois-field");exports.mul=function(l,o){for(var t=r.alloc(l.length+o.length-1),n=0;n<l.length;n++)for(var f=0;f<o.length;f++)t[n+f]^=e.mul(l[n],o[f]);return t},exports.mod=function(l,o){for(var t=r.from(l);t.length-o.length>=0;){for(var n=t[0],f=0;f<o.length;f++)t[f]^=e.mul(o[f],n);for(var u=0;u<t.length&&0===t[u];)u++;t=t.slice(u)}return t},exports.generateECPolynomial=function(l){for(var o=r.from([1]),t=0;t<l;t++)o=exports.mul(o,[1,e.exp(t)]);return o};
},{"../utils/buffer":"bakr","./galois-field":"lcOJ"}],"x3Bz":[function(require,module,exports) {
var e=require("../utils/buffer"),i=require("./polynomial"),r=require("buffer").Buffer;function t(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}t.prototype.initialize=function(e){this.degree=e,this.genPoly=i.generateECPolynomial(this.degree)},t.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var o=e.alloc(this.degree),n=r.concat([t,o],t.length+this.degree),l=i.mod(n,this.genPoly),h=this.degree-l.length;if(h>0){var g=e.alloc(this.degree);return l.copy(g,h),g}return l},module.exports=t;
},{"../utils/buffer":"bakr","./polynomial":"JUJT","buffer":"peL6"}],"X3Vf":[function(require,module,exports) {
exports.isValid=function(i){return!isNaN(i)&&i>=1&&i<=40};
},{}],"HY6w":[function(require,module,exports) {
var u="[0-9]+",e="[A-Z $%*+\\-./:]+",t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",n="(?:(?![A-Z0-9 $%*+\\-./:]|"+(t=t.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";exports.KANJI=new RegExp(t,"g"),exports.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),exports.BYTE=new RegExp(n,"g"),exports.NUMERIC=new RegExp(u,"g"),exports.ALPHANUMERIC=new RegExp(e,"g");var r=new RegExp("^"+t+"$"),p=new RegExp("^"+u+"$"),x=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");exports.testKanji=function(u){return r.test(u)},exports.testNumeric=function(u){return p.test(u)},exports.testAlphanumeric=function(u){return x.test(u)};
},{}],"vyps":[function(require,module,exports) {
var r=require("./version-check"),t=require("./regex");function e(r){if("string"!=typeof r)throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return exports.NUMERIC;case"alphanumeric":return exports.ALPHANUMERIC;case"kanji":return exports.KANJI;case"byte":return exports.BYTE;default:throw new Error("Unknown mode: "+r)}}exports.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},exports.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},exports.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},exports.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},exports.MIXED={bit:-1},exports.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!r.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},exports.getBestModeForData=function(r){return t.testNumeric(r)?exports.NUMERIC:t.testAlphanumeric(r)?exports.ALPHANUMERIC:t.testKanji(r)?exports.KANJI:exports.BYTE},exports.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},exports.isValid=function(r){return r&&r.bit&&r.ccBits},exports.from=function(r,t){if(exports.isValid(r))return r;try{return e(r)}catch(i){return t}};
},{"./version-check":"X3Vf","./regex":"HY6w"}],"Sw2o":[function(require,module,exports) {
var r=require("./utils"),e=require("./error-correction-code"),t=require("./error-correction-level"),o=require("./mode"),i=require("./version-check"),n=require("isarray"),a=7973,u=r.getBCHDigit(a);function f(r,e,t){for(var o=1;o<=40;o++)if(e<=exports.getCapacity(o,t,r))return o}function c(r,e){return o.getCharCountIndicator(r,e)+4}function s(r,e){var t=0;return r.forEach(function(r){var o=c(r.mode,e);t+=o+r.getBitsLength()}),t}function d(r,e){for(var t=1;t<=40;t++){if(s(r,t)<=exports.getCapacity(t,e,o.MIXED))return t}}exports.from=function(r,e){return i.isValid(r)?parseInt(r,10):e},exports.getCapacity=function(t,n,a){if(!i.isValid(t))throw new Error("Invalid QR Code version");void 0===a&&(a=o.BYTE);var u=8*(r.getSymbolTotalCodewords(t)-e.getTotalCodewordsCount(t,n));if(a===o.MIXED)return u;var f=u-c(a,t);switch(a){case o.NUMERIC:return Math.floor(f/10*3);case o.ALPHANUMERIC:return Math.floor(f/11*2);case o.KANJI:return Math.floor(f/13);case o.BYTE:default:return Math.floor(f/8)}},exports.getBestVersionForData=function(r,e){var o,i=t.from(e,t.M);if(n(r)){if(r.length>1)return d(r,i);if(0===r.length)return 1;o=r[0]}else o=r;return f(o.mode,o.getLength(),i)},exports.getEncodedBits=function(e){if(!i.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;r.getBCHDigit(t)-u>=0;)t^=a<<r.getBCHDigit(t)-u;return e<<12|t};
},{"./utils":"O0NP","./error-correction-code":"lpve","./error-correction-level":"R7wW","./mode":"vyps","./version-check":"X3Vf","isarray":"REa7"}],"aL6p":[function(require,module,exports) {
var t=require("./utils"),i=1335,e=21522,r=t.getBCHDigit(i);exports.getEncodedBits=function(g,n){for(var o=g.bit<<3|n,u=o<<10;t.getBCHDigit(u)-r>=0;)u^=i<<t.getBCHDigit(u)-r;return(o<<10|u)^e};
},{"./utils":"O0NP"}],"WAM1":[function(require,module,exports) {
var t=require("./mode");function e(e){this.mode=t.NUMERIC,this.data=e.toString()}e.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){var e,n,r;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),r=parseInt(n,10),t.put(r,10);var a=this.data.length-e;a>0&&(n=this.data.substr(e),r=parseInt(n,10),t.put(r,3*a+1))},module.exports=e;
},{"./mode":"vyps"}],"Ayka":[function(require,module,exports) {
var t=require("./mode"),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(e){this.mode=t.ALPHANUMERIC,this.data=e}n.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){var n;for(n=0;n+2<=this.data.length;n+=2){var i=45*e.indexOf(this.data[n]);i+=e.indexOf(this.data[n+1]),t.put(i,11)}this.data.length%2&&t.put(e.indexOf(this.data[n]),6)},module.exports=n;
},{"./mode":"vyps"}],"FYBG":[function(require,module,exports) {
var t=require("../utils/buffer"),e=require("./mode");function n(n){this.mode=e.BYTE,this.data=t.from(n)}n.getBitsLength=function(t){return 8*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){for(var e=0,n=this.data.length;e<n;e++)t.put(this.data[e],8)},module.exports=n;
},{"../utils/buffer":"bakr","./mode":"vyps"}],"EMzp":[function(require,module,exports) {
var t=require("./mode"),e=require("./utils");function r(e){this.mode=t.KANJI,this.data=e}r.getBitsLength=function(t){return 13*t},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){var r;for(r=0;r<this.data.length;r++){var i=e.toSJIS(this.data[r]);if(i>=33088&&i<=40956)i-=33088;else{if(!(i>=57408&&i<=60351))throw new Error("Invalid SJIS character: "+this.data[r]+"\nMake sure your charset is UTF-8");i-=49472}i=192*(i>>>8&255)+(255&i),t.put(i,13)}},module.exports=r;
},{"./mode":"vyps","./utils":"O0NP"}],"QTsx":[function(require,module,exports) {
"use strict";var r={single_source_shortest_paths:function(t,e,o){var s={},u={};u[e]=0;var n,i,a,h,f,p,c,_=r.PriorityQueue.make();for(_.push(e,0);!_.empty();)for(a in i=(n=_.pop()).value,h=n.cost,f=t[i]||{})f.hasOwnProperty(a)&&(p=h+f[a],c=u[a],(void 0===u[a]||c>p)&&(u[a]=p,_.push(a,p),s[a]=i));if(void 0!==o&&void 0===u[o]){var d=["Could not find a path from ",e," to ",o,"."].join("");throw new Error(d)}return s},extract_shortest_path_from_predecessor_list:function(r,t){for(var e=[],o=t;o;)e.push(o),r[o],o=r[o];return e.reverse(),e},find_path:function(t,e,o){var s=r.single_source_shortest_paths(t,e,o);return r.extract_shortest_path_from_predecessor_list(s,o)},PriorityQueue:{make:function(t){var e,o=r.PriorityQueue,s={};for(e in t=t||{},o)o.hasOwnProperty(e)&&(s[e]=o[e]);return s.queue=[],s.sorter=t.sorter||o.default_sorter,s},default_sorter:function(r,t){return r.cost-t.cost},push:function(r,t){var e={value:r,cost:t};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};"undefined"!=typeof module&&(module.exports=r);
},{}],"VQc8":[function(require,module,exports) {
var e=require("./mode"),t=require("./numeric-data"),n=require("./alphanumeric-data"),r=require("./byte-data"),a=require("./kanji-data"),o=require("./regex"),d=require("./utils"),u=require("dijkstrajs");function i(e){return unescape(encodeURIComponent(e)).length}function s(e,t,n){for(var r,a=[];null!==(r=e.exec(n));)a.push({data:r[0],index:r.index,mode:t,length:r[0].length});return a}function h(t){var n,r,a=s(o.NUMERIC,e.NUMERIC,t),u=s(o.ALPHANUMERIC,e.ALPHANUMERIC,t);return d.isKanjiModeEnabled()?(n=s(o.BYTE,e.BYTE,t),r=s(o.KANJI,e.KANJI,t)):(n=s(o.BYTE_KANJI,e.BYTE,t),r=[]),a.concat(u,n,r).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function l(o,d){switch(d){case e.NUMERIC:return t.getBitsLength(o);case e.ALPHANUMERIC:return n.getBitsLength(o);case e.KANJI:return a.getBitsLength(o);case e.BYTE:return r.getBitsLength(o)}}function g(e){return e.reduce(function(e,t){var n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function c(t){for(var n=[],r=0;r<t.length;r++){var a=t[r];switch(a.mode){case e.NUMERIC:n.push([a,{data:a.data,mode:e.ALPHANUMERIC,length:a.length},{data:a.data,mode:e.BYTE,length:a.length}]);break;case e.ALPHANUMERIC:n.push([a,{data:a.data,mode:e.BYTE,length:a.length}]);break;case e.KANJI:n.push([a,{data:a.data,mode:e.BYTE,length:i(a.data)}]);break;case e.BYTE:n.push([{data:a.data,mode:e.BYTE,length:i(a.data)}])}}return n}function m(t,n){for(var r={},a={start:{}},o=["start"],d=0;d<t.length;d++){for(var u=t[d],i=[],s=0;s<u.length;s++){var h=u[s],g=""+d+s;i.push(g),r[g]={node:h,lastCount:0},a[g]={};for(var c=0;c<o.length;c++){var m=o[c];r[m]&&r[m].node.mode===h.mode?(a[m][g]=l(r[m].lastCount+h.length,h.mode)-l(r[m].lastCount,h.mode),r[m].lastCount+=h.length):(r[m]&&(r[m].lastCount=h.length),a[m][g]=l(h.length,h.mode)+4+e.getCharCountIndicator(h.mode,n))}}o=i}for(c=0;c<o.length;c++)a[o[c]].end=0;return{map:a,table:r}}function f(o,u){var i,s=e.getBestModeForData(o);if((i=e.from(u,s))!==e.BYTE&&i.bit<s.bit)throw new Error('"'+o+'" cannot be encoded with mode '+e.toString(i)+".\n Suggested mode is: "+e.toString(s));switch(i!==e.KANJI||d.isKanjiModeEnabled()||(i=e.BYTE),i){case e.NUMERIC:return new t(o);case e.ALPHANUMERIC:return new n(o);case e.KANJI:return new a(o);case e.BYTE:return new r(o)}}exports.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(f(t,null)):t.data&&e.push(f(t.data,t.mode)),e},[])},exports.fromString=function(e,t){for(var n=m(c(h(e,d.isKanjiModeEnabled())),t),r=u.find_path(n.map,"start","end"),a=[],o=1;o<r.length-1;o++)a.push(n.table[r[o]].node);return exports.fromArray(g(a))},exports.rawSplit=function(e){return exports.fromArray(h(e,d.isKanjiModeEnabled()))};
},{"./mode":"vyps","./numeric-data":"WAM1","./alphanumeric-data":"Ayka","./byte-data":"FYBG","./kanji-data":"EMzp","./regex":"HY6w","./utils":"O0NP","dijkstrajs":"QTsx"}],"byiX":[function(require,module,exports) {
var r=require("../utils/buffer"),e=require("./utils"),t=require("./error-correction-level"),o=require("./bit-buffer"),n=require("./bit-matrix"),i=require("./alignment-pattern"),a=require("./finder-pattern"),s=require("./mask-pattern"),f=require("./error-correction-code"),u=require("./reed-solomon-encoder"),v=require("./version"),c=require("./format-info"),d=require("./mode"),l=require("./segments"),g=require("isarray");function m(r,e){for(var t=r.size,o=a.getPositions(e),n=0;n<o.length;n++)for(var i=o[n][0],s=o[n][1],f=-1;f<=7;f++)if(!(i+f<=-1||t<=i+f))for(var u=-1;u<=7;u++)s+u<=-1||t<=s+u||(f>=0&&f<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===f||6===f)||f>=2&&f<=4&&u>=2&&u<=4?r.set(i+f,s+u,!0,!0):r.set(i+f,s+u,!1,!0))}function h(r){for(var e=r.size,t=8;t<e-8;t++){var o=t%2==0;r.set(t,6,o,!0),r.set(6,t,o,!0)}}function w(r,e){for(var t=i.getPositions(e),o=0;o<t.length;o++)for(var n=t[o][0],a=t[o][1],s=-2;s<=2;s++)for(var f=-2;f<=2;f++)-2===s||2===s||-2===f||2===f||0===s&&0===f?r.set(n+s,a+f,!0,!0):r.set(n+s,a+f,!1,!0)}function q(r,e){for(var t,o,n,i=r.size,a=v.getEncodedBits(e),s=0;s<18;s++)t=Math.floor(s/3),o=s%3+i-8-3,n=1==(a>>s&1),r.set(t,o,n,!0),r.set(o,t,n,!0)}function p(r,e,t){var o,n,i=r.size,a=c.getEncodedBits(e,t);for(o=0;o<15;o++)n=1==(a>>o&1),o<6?r.set(o,8,n,!0):o<8?r.set(o+1,8,n,!0):r.set(i-15+o,8,n,!0),o<8?r.set(8,i-o-1,n,!0):o<9?r.set(8,15-o-1+1,n,!0):r.set(8,15-o-1,n,!0);r.set(i-8,8,1,!0)}function b(r,e){for(var t=r.size,o=-1,n=t-1,i=7,a=0,s=t-1;s>0;s-=2)for(6===s&&s--;;){for(var f=0;f<2;f++)if(!r.isReserved(n,s-f)){var u=!1;a<e.length&&(u=1==(e[a]>>>i&1)),r.set(n,s-f,u),-1===--i&&(a++,i=7)}if((n+=o)<0||t<=n){n-=o,o=-o;break}}}function C(r,t,n){var i=new o;n.forEach(function(e){i.put(e.mode.bit,4),i.put(e.getLength(),d.getCharCountIndicator(e.mode,r)),e.write(i)});var a=8*(e.getSymbolTotalCodewords(r)-f.getTotalCodewordsCount(r,t));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);for(var s=(a-i.getLengthInBits())/8,u=0;u<s;u++)i.put(u%2?17:236,8);return S(i,r,t)}function S(t,o,n){for(var i=e.getSymbolTotalCodewords(o),a=i-f.getTotalCodewordsCount(o,n),s=f.getBlocksCount(o,n),v=s-i%s,c=Math.floor(i/s),d=Math.floor(a/s),l=d+1,g=c-d,m=new u(g),h=0,w=new Array(s),q=new Array(s),p=0,b=r.from(t.buffer),C=0;C<s;C++){var S=C<v?d:l;w[C]=b.slice(h,h+S),q[C]=m.encode(w[C]),h+=S,p=Math.max(p,S)}var B,y,M=r.alloc(i),I=0;for(B=0;B<p;B++)for(y=0;y<s;y++)B<w[y].length&&(M[I++]=w[y][B]);for(B=0;B<g;B++)for(y=0;y<s;y++)M[I++]=q[y][B];return M}function B(r,t,o,i){var a;if(g(r))a=l.fromArray(r);else{if("string"!=typeof r)throw new Error("Invalid data");var f=t;if(!f){var u=l.rawSplit(r);f=v.getBestVersionForData(u,o)}a=l.fromString(r,f||40)}var c=v.getBestVersionForData(a,o);if(!c)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<c)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+c+".\n")}else t=c;var d=C(t,o,a),S=e.getSymbolSize(t),B=new n(S);return m(B,t),h(B),w(B,t),p(B,o,0),t>=7&&q(B,t),b(B,d),isNaN(i)&&(i=s.getBestMask(B,p.bind(null,B,o))),s.applyMask(i,B),p(B,o,i),{modules:B,version:t,errorCorrectionLevel:o,maskPattern:i,segments:a}}exports.create=function(r,o){if(void 0===r||""===r)throw new Error("No input text");var n,i,a=t.M;return void 0!==o&&(a=t.from(o.errorCorrectionLevel,t.M),n=v.from(o.version),i=s.from(o.maskPattern),o.toSJISFunc&&e.setToSJISFunction(o.toSJISFunc)),B(r,n,a,i)};
},{"../utils/buffer":"bakr","./utils":"O0NP","./error-correction-level":"R7wW","./bit-buffer":"PLTI","./bit-matrix":"Z2lI","./alignment-pattern":"ece7","./finder-pattern":"NfUo","./mask-pattern":"NYIn","./error-correction-code":"lpve","./reed-solomon-encoder":"x3Bz","./version":"Sw2o","./format-info":"aL6p","./mode":"vyps","./segments":"VQc8","isarray":"REa7"}],"ZHSL":[function(require,module,exports) {
function r(r){if("number"==typeof r&&(r=r.toString()),"string"!=typeof r)throw new Error("Color should be defined as hex string");var t=r.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+r);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(r){return[r,r]}))),6===t.length&&t.push("F","F");var o=parseInt(t.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:255&o,hex:"#"+t.slice(0,6).join("")}}exports.getOptions=function(t){t||(t={}),t.color||(t.color={});var o=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,e=t.width&&t.width>=21?t.width:void 0,n=t.scale||4;return{width:e,scale:e?4:n,margin:o,color:{dark:r(t.color.dark||"#000000ff"),light:r(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},exports.getScale=function(r,t){return t.width&&t.width>=r+2*t.margin?t.width/(r+2*t.margin):t.scale},exports.getImageWidth=function(r,t){var o=exports.getScale(r,t);return Math.floor((r+2*t.margin)*o)},exports.qrToImageData=function(r,t,o){for(var e=t.modules.size,n=t.modules.data,a=exports.getScale(e,o),i=Math.floor((e+2*o.margin)*a),l=o.margin*a,g=[o.color.light,o.color.dark],h=0;h<i;h++)for(var f=0;f<i;f++){var c=4*(h*i+f),s=o.color.light;if(h>=l&&f>=l&&h<i-l&&f<i-l)s=g[n[Math.floor((h-l)/a)*e+Math.floor((f-l)/a)]?1:0];r[c++]=s.r,r[c++]=s.g,r[c++]=s.b,r[c]=s.a}};
},{}],"So6O":[function(require,module,exports) {
var e=require("./utils");function t(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}function r(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}exports.render=function(a,n,o){var i=o,d=n;void 0!==i||n&&n.getContext||(i=n,n=void 0),n||(d=r()),i=e.getOptions(i);var s=e.getImageWidth(a.modules.size,i),c=d.getContext("2d"),g=c.createImageData(s,s);return e.qrToImageData(g.data,a,i),t(c,d,s),c.putImageData(g,0,0),d},exports.renderToDataURL=function(e,t,r){var a=r;void 0!==a||t&&t.getContext||(a=t,t=void 0),a||(a={});var n=exports.render(e,t,a),o=a.type||"image/png",i=a.rendererOpts||{};return n.toDataURL(o,i.quality)};
},{"./utils":"ZHSL"}],"ZNrT":[function(require,module,exports) {
var r=require("./utils");function t(r,t){var o=r.a/255,i=t+'="'+r.hex+'"';return o<1?i+" "+t+'-opacity="'+o.toFixed(2).slice(1)+'"':i}function o(r,t,o){var i=r+t;return void 0!==o&&(i+=" "+o),i}function i(r,t,i){for(var e="",n=0,a=!1,h=0,l=0;l<r.length;l++){var d=Math.floor(l%t),s=Math.floor(l/t);d||a||(a=!0),r[l]?(h++,l>0&&d>0&&r[l-1]||(e+=a?o("M",d+i,.5+s+i):o("m",n,0),n=0,a=!1),d+1<t&&r[l+1]||(e+=o("h",h),h=0)):n++}return e}exports.render=function(o,e,n){var a=r.getOptions(e),h=o.modules.size,l=o.modules.data,d=h+2*a.margin,s=a.color.light.a?"<path "+t(a.color.light,"fill")+' d="M0 0h'+d+"v"+d+'H0z"/>':"",u="<path "+t(a.color.dark,"stroke")+' d="'+i(l,h,a.margin)+'"/>',g='viewBox="0 0 '+d+" "+d+'"',v='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+g+' shape-rendering="crispEdges">'+s+u+"</svg>\n";return"function"==typeof n&&n(null,v),v};
},{"./utils":"ZHSL"}],"xCWZ":[function(require,module,exports) {
var r=require("./can-promise"),e=require("./core/qrcode"),t=require("./renderer/canvas"),o=require("./renderer/svg-tag.js");function n(t,o,n,a,i){var d=[].slice.call(arguments,1),c=d.length,u="function"==typeof d[c-1];if(!u&&!r())throw new Error("Callback required as last argument");if(!u){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=o,o=a=void 0):2!==c||o.getContext||(a=n,n=o,o=void 0),new Promise(function(r,i){try{var d=e.create(n,a);r(t(d,o,a))}catch(c){i(c)}})}if(c<2)throw new Error("Too few arguments provided");2===c?(i=n,n=o,o=a=void 0):3===c&&(o.getContext&&void 0===i?(i=a,a=void 0):(i=a,a=n,n=o,o=void 0));try{var l=e.create(n,a);i(null,t(l,o,a))}catch(s){i(s)}}exports.create=e.create,exports.toCanvas=n.bind(null,t.render),exports.toDataURL=n.bind(null,t.renderToDataURL),exports.toString=n.bind(null,function(r,e,t){return o.render(r,t)});
},{"./can-promise":"Hnt6","./core/qrcode":"byiX","./renderer/canvas":"So6O","./renderer/svg-tag.js":"ZNrT"}],"wT1R":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.generateQR=r,exports.pad2Zero=n,exports.getFormattedDate=a,exports.addSlash=o,exports.addVersion=c;var e=t(require("qrcode"));function t(e){return e&&e.__esModule?e:{default:e}}function r(t){return e.default.toDataURL(t,{errorCorrectionLevel:"M",type:"image/png",quality:.92,margin:1})}function n(e){return String(e).padStart(2,"0")}function a(e){var t=e.getFullYear(),r=n(e.getMonth()+1),a=n(e.getDate());return"".concat(t,"-").concat(r,"-").concat(a)}function o(e){return e.replace(/^(\d{2})$/g,"$1/").replace(/^(\d{2})\/(\d{2})$/g,"$1/$2/").replace(/\/\//g,"/")}function c(e){document.getElementById("version").innerHTML="".concat((new Date).getFullYear()," - ").concat(e)}
},{"qrcode":"xCWZ"}],"W9IH":[function(require,module,exports) {
2020-11-01 18:51:20 +00:00
module.exports="./deplacement-covid-19/certificate.d1673940.pdf";
2020-10-29 21:30:05 +00:00
},{}],"vCxL":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.__extends=e,exports.__rest=n,exports.__decorate=o,exports.__param=a,exports.__metadata=i,exports.__awaiter=u,exports.__generator=c,exports.__createBinding=f,exports.__exportStar=l,exports.__values=s,exports.__read=p,exports.__spread=y,exports.__spreadArrays=_,exports.__await=h,exports.__asyncGenerator=v,exports.__asyncDelegator=d,exports.__asyncValues=b,exports.__makeTemplateObject=w,exports.__importStar=x,exports.__importDefault=m,exports.__classPrivateFieldGet=O,exports.__classPrivateFieldSet=g,exports.__assign=void 0;var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};function e(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var r=function(){return exports.__assign=r=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};function n(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}function o(t,e,r,n){var o,a=arguments.length,i=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(i=(a<3?o(i):a>3?o(e,r,i):o(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i}function a(t,e){return function(r,n){e(r,n,t)}}function i(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,r,n){return new(r||(r=Promise))(function(o,a){function i(t){try{c(n.next(t))}catch(e){a(e)}}function u(t){try{c(n.throw(t))}catch(e){a(e)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(i,u)}c((n=n.apply(t,e||[])).next())})}function c(t,e){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(u){a=[6,u],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function f(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}function l(t,e){for(var r in t)"default"===r||e.hasOwnProperty(r)||(e[r]=t[r])}function s(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,a=r.call(t),i=[];try{for(;(void 0===e||e-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));ret
},{}],"KDEW":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.decodeFromBase64DataUri=exports.decodeFromBase64=exports.encodeToBase64=void 0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(256),t=0;t<e.length;t++)r[e.charCodeAt(t)]=t;var o=function(r){for(var t="",o=r.length,a=0;a<o;a+=3)t+=e[r[a]>>2],t+=e[(3&r[a])<<4|r[a+1]>>4],t+=e[(15&r[a+1])<<2|r[a+2]>>6],t+=e[63&r[a+2]];return o%3==2?t=t.substring(0,t.length-1)+"=":o%3==1&&(t=t.substring(0,t.length-2)+"=="),t};exports.encodeToBase64=o;var a=function(e){var t,o,a,n,s,d=.75*e.length,c=e.length,i=0;"="===e[e.length-1]&&(d--,"="===e[e.length-2]&&d--);var h=new Uint8Array(d);for(t=0;t<c;t+=4)o=r[e.charCodeAt(t)],a=r[e.charCodeAt(t+1)],n=r[e.charCodeAt(t+2)],s=r[e.charCodeAt(t+3)],h[i++]=o<<2|a>>4,h[i++]=(15&a)<<4|n>>2,h[i++]=(3&n)<<6|63&s;return h};exports.decodeFromBase64=a;var n=/^(data)?:?([\w\/\+]+)?;?(charset=[\w-]+|base64)?.*,/i,s=function(e){var r=e.trim(),t=r.substring(0,100).match(n);if(!t)return a(r);var o=t[0],s=r.substring(o.length);return a(s)};exports.decodeFromBase64DataUri=s;
},{}],"aovk":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.parseDate=exports.breakTextIntoLines=exports.charSplit=exports.charAtIndex=exports.mergeLines=exports.lineSplit=exports.isNewlineChar=exports.newlineChars=exports.escapedNewlineChars=exports.cleanText=exports.escapeRegExp=exports.addRandomSuffix=exports.copyStringIntoBuffer=exports.padStart=exports.charFromHexCode=exports.charFromCode=exports.toHexString=exports.toHexStringOfMinLength=exports.toCodePoint=exports.toCharCode=void 0;var r=function(r){return r.charCodeAt(0)};exports.toCharCode=r;var e=function(r){return r.codePointAt(0)};exports.toCodePoint=e;var t=function(r,e){return i(r.toString(16),e,"0").toUpperCase()};exports.toHexStringOfMinLength=t;var o=function(r){return t(r,2)};exports.toHexString=o;var n=function(r){return String.fromCharCode(r)};exports.charFromCode=n;var a=function(r){return n(parseInt(r,16))};exports.charFromHexCode=a;var i=function(r,e,t){for(var o="",n=0,a=e-r.length;n<a;n++)o+=t;return o+r};exports.padStart=i;var p=function(r,e,t){for(var o=r.length,n=0;n<o;n++)e[t++]=r.charCodeAt(n);return o};exports.copyStringIntoBuffer=p;var s=function(r,e){return void 0===e&&(e=4),r+"-"+Math.floor(Math.random()*Math.pow(10,e))};exports.addRandomSuffix=s;var d=function(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")};exports.escapeRegExp=d;var u=function(r){return r.replace(/\t|\u0085|\u2028|\u2029/g," ").replace(/[\b\v]/g,"")};exports.cleanText=u;var x=["\\n","\\f","\\r","\\u000B"];exports.escapedNewlineChars=x;var c=["\n","\f","\r","\v"];exports.newlineChars=c;var f=function(r){return/^[\n\f\r\u000B]$/.test(r)};exports.isNewlineChar=f;var v=function(r){return r.split(/[\n\f\r\u000B]/)};exports.lineSplit=v;var h=function(r){return r.replace(/[\n\f\r\u000B]/g," ")};exports.mergeLines=h;var l=function(r,e){var t,o=r.charCodeAt(e),n=e+1,a=1;return o>=55296&&o<=56319&&r.length>n&&(t=r.charCodeAt(n))>=56320&&t<=57343&&(a=2),[r.slice(e,e+a),a]};exports.charAtIndex=l;var g=function(r){for(var e=[],t=0,o=r.length;t<o;){var n=l(r,t),a=n[0],i=n[1];e.push(a),t+=i}return e};exports.charSplit=g;var C=function(r){for(var e=x.join("|"),t=["$"],o=0,n=r.length;o<n;o++){var a=r[o];if(f(a))throw new TypeError("`wordBreak` must not include "+e);t.push(""===a?".":d(a))}var i=t.join("|");return new RegExp("("+e+")|((.*?)("+i+"))","gm")},S=function(r,e,t,o){for(var n=C(e),a=u(r).match(n),i="",p=0,s=[],d=function(){""!==i&&s.push(i),i="",p=0},x=0,c=a.length;x<c;x++){var v=a[x];if(f(v))d();else{var h=o(v);p+h>t&&d(),i+=v,p+=h}}return d(),s};exports.breakTextIntoLines=S;var m=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,w=function(r){var e=r.match(m);if(e){var t=e[1],o=e[2],n=void 0===o?"01":o,a=e[3],i=void 0===a?"01":a,p=e[4],s=void 0===p?"00":p,d=e[5],u=void 0===d?"00":d,x=e[6],c=void 0===x?"00":x,f=e[7],v=void 0===f?"Z":f,h=e[8],l=void 0===h?"00":h,g=e[9];return new Date(t+"-"+n+"-"+i+"T"+s+":"+u+":"+c+("Z"===v?"Z":""+v+l+":"+(void 0===g?"00":g)))}};exports.parseDate=w;
},{}],"bjyy":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.toUint8Array=exports.canBeConvertedToUint8Array=exports.pluckIndices=exports.range=exports.sum=exports.reverseArray=exports.sortedUniq=exports.byAscendingId=exports.arrayAsString=exports.mergeUint8Arrays=exports.mergeIntoTypedArray=exports.typedArrayFor=exports.last=void 0;var r=require("./base64"),e=require("./strings"),t=function(r){return r[r.length-1]};exports.last=t;var n=function(r){if(r instanceof Uint8Array)return r;for(var e=r.length,t=new Uint8Array(e),n=0;n<e;n++)t[n]=r.charCodeAt(n);return t};exports.typedArrayFor=n;var o=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=r.length,o=[],a=0;a<t;a++){var s=r[a];o[a]=s instanceof Uint8Array?s:n(s)}var i=0;for(a=0;a<t;a++)i+=r[a].length;for(var f=new Uint8Array(i),u=0,p=0;p<t;p++)for(var y=o[p],v=0,c=y.length;v<c;v++)f[u++]=y[v];return f};exports.mergeIntoTypedArray=o;var a=function(r){for(var e=0,t=0,n=r.length;t<n;t++)e+=r[t].length;var o=new Uint8Array(e),a=0;for(t=0,n=r.length;t<n;t++){var s=r[t];o.set(s,a),a+=s.length}return o};exports.mergeUint8Arrays=a;var s=function(r){for(var t="",n=0,o=r.length;n<o;n++)t+=(0,e.charFromCode)(r[n]);return t};exports.arrayAsString=s;var i=function(r,e){return r.id-e.id};exports.byAscendingId=i;var f=function(r,e){for(var t=[],n=0,o=r.length;n<o;n++){var a=r[n],s=r[n-1];0!==n&&e(a)===e(s)||t.push(a)}return t};exports.sortedUniq=f;var u=function(r){for(var e=r.length,t=0,n=Math.floor(e/2);t<n;t++){var o=t,a=e-t-1,s=r[t];r[o]=r[a],r[a]=s}return r};exports.reverseArray=u;var p=function(r){for(var e=0,t=0,n=r.length;t<n;t++)e+=r[t];return e};exports.sum=p;var y=function(r,e){for(var t=new Array(e-r),n=0,o=t.length;n<o;n++)t[n]=r+n;return t};exports.range=y;var v=function(r,e){for(var t=new Array(e.length),n=0,o=e.length;n<o;n++)t[n]=r[e[n]];return t};exports.pluckIndices=v;var c=function(r){return r instanceof Uint8Array||r instanceof ArrayBuffer||"string"==typeof r};exports.canBeConvertedToUint8Array=c;var g=function(e){if("string"==typeof e)return(0,r.decodeFromBase64DataUri)(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(e instanceof Uint8Array)return e;throw new TypeError("`input` must be one of `string | ArrayBuffer | Uint8Array`")};exports.toUint8Array=g;
},{"./base64":"KDEW","./strings":"aovk"}],"aLG7":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.waitForTick=void 0;var e=function(){return new Promise(function(e){setTimeout(function(){return e()},0)})};exports.waitForTick=e;
},{}],"NVV9":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hasUtf16BOM=exports.utf16Decode=exports.lowSurrogate=exports.highSurrogate=exports.hasSurrogates=exports.isWithinBMP=exports.utf16Encode=exports.utf8Encode=void 0;var r=require("./strings"),t=function(t,n){void 0===n&&(n=!0);var e=[];n&&e.push(239,187,191);for(var o=0,i=t.length;o<i;){var u=t.codePointAt(o);if(u<128){var s=127&u;e.push(s),o+=1}else if(u<2048){s=u>>6&31|192;var a=63&u|128;e.push(s,a),o+=1}else if(u<65536){s=u>>12&15|224,a=u>>6&63|128;var f=63&u|128;e.push(s,a,f),o+=1}else{if(!(u<1114112))throw new Error("Invalid code point: 0x"+(0,r.toHexString)(u));s=u>>18&7|240,a=u>>12&63|128,f=u>>6&63|128;var p=u>>0&63|128;e.push(s,a,f,p),o+=2}}return new Uint8Array(e)};exports.utf8Encode=t;var n=function(t,n){void 0===n&&(n=!0);var e=[];n&&e.push(65279);for(var o=0,u=t.length;o<u;){var a=t.codePointAt(o);if(a<65536)e.push(a),o+=1;else{if(!(a<1114112))throw new Error("Invalid code point: 0x"+(0,r.toHexString)(a));e.push(i(a),s(a)),o+=2}}return new Uint16Array(e)};exports.utf16Encode=n;var e=function(r){return r>=0&&r<=65535};exports.isWithinBMP=e;var o=function(r){return r>=65536&&r<=1114111};exports.hasSurrogates=o;var i=function(r){return Math.floor((r-65536)/1024)+55296};exports.highSurrogate=i;var u,s=function(r){return(r-65536)%1024+56320};exports.lowSurrogate=s,function(r){r.BigEndian="BigEndian",r.LittleEndian="LittleEndian"}(u||(u={}));var a="<22>".codePointAt(0),f=function(r,t){if(void 0===t&&(t=!0),r.length<=1)return String.fromCodePoint(a);for(var n=t?v(r):u.BigEndian,e=t?2:0,o=[];r.length-e>=2;){var i=d(r[e++],r[e++],n);if(p(i))if(r.length-e<2)o.push(a);else{var s=d(r[e++],r[e++],n);h(s)?o.push(i,s):o.push(a)}else h(i)?(e+=2,o.push(a)):o.push(i)}return e<r.length&&o.push(a),String.fromCodePoint.apply(String,o)};exports.utf16Decode=f;var p=function(r){return r>=55296&&r<=56319},h=function(r){return r>=56320&&r<=57343},d=function(r,t,n){if(n===u.LittleEndian)return t<<8|r;if(n===u.BigEndian)return r<<8|t;throw new Error("Invalid byteOrder: "+n)},v=function(r){return c(r)?u.BigEndian:g(r)?u.LittleEndian:u.BigEndian},c=function(r){return 254===r[0]&&255===r[1]},g=function(r){return 255===r[0]&&254===r[1]},l=function(r){return c(r)||g(r)};exports.hasUtf16BOM=l;
},{"./strings":"aovk"}],"qrZR":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.bytesFor=exports.sizeInBytes=exports.numberToString=void 0;var t=function(t){var r,e=String(t);if(Math.abs(t)<1){if(r=parseInt(t.toString().split("e-")[1])){var n=t<0;n&&(t*=-1),t*=Math.pow(10,r-1),e="0."+new Array(r).join("0")+t.toString().substring(2),n&&(e="-"+e)}}else(r=parseInt(t.toString().split("+")[1]))>20&&(r-=20,e=(t/=Math.pow(10,r)).toString()+new Array(r+1).join("0"));return e};exports.numberToString=t;var r=function(t){return Math.ceil(t.toString(2).length/8)};exports.sizeInBytes=r;var e=function(t){for(var e=new Uint8Array(r(t)),n=1;n<=e.length;n++)e[n-1]=t>>8*(e.length-n);return e};exports.bytesFor=e;
},{}],"vca4":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.error=void 0;var r=function(r){throw new Error(r)};exports.error=r;
},{}],"tbG5":[function(require,module,exports) {
"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function t(r,t){return Object.prototype.hasOwnProperty.call(r,t)}exports.assign=function(r){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var a in n)t(n,a)&&(r[a]=n[a])}}return r},exports.shrinkBuf=function(r,t){return r.length===t?r:r.subarray?r.subarray(0,t):(r.length=t,r)};var e={arraySet:function(r,t,e,n,a){if(t.subarray&&r.subarray)r.set(t.subarray(e,e+n),a);else for(var o=0;o<n;o++)r[a+o]=t[e+o]},flattenChunks:function(r){var t,e,n,a,o,s;for(n=0,t=0,e=r.length;t<e;t++)n+=r[t].length;for(s=new Uint8Array(n),a=0,t=0,e=r.length;t<e;t++)o=r[t],s.set(o,a),a+=o.length;return s}},n={arraySet:function(r,t,e,n,a){for(var o=0;o<n;o++)r[a+o]=t[e+o]},flattenChunks:function(r){return[].concat.apply([],r)}};exports.setTyped=function(r){r?(exports.Buf8=Uint8Array,exports.Buf16=Uint16Array,exports.Buf32=Int32Array,exports.assign(exports,e)):(exports.Buf8=Array,exports.Buf16=Array,exports.Buf32=Array,exports.assign(exports,n))},exports.setTyped(r);
},{}],"sRJQ":[function(require,module,exports) {
"use strict";var e=require("../utils/common"),t=4,n=0,_=1,r=2;function a(e){for(var t=e.length;--t>=0;)e[t]=0}var i=0,l=1,d=2,f=3,o=258,b=29,s=256,u=s+1+b,c=30,p=19,h=2*u+1,v=15,y=16,x=7,g=256,m=16,w=17,A=18,k=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],q=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=512,B=new Array(2*(u+2));a(B);var C=new Array(2*c);a(C);var D=new Array(j);a(D);var E=new Array(o-f+1);a(E);var F=new Array(b);a(F);var G,H,I,J=new Array(c);function K(e,t,n,_,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=_,this.max_length=r,this.has_stree=e&&e.length}function L(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function M(e){return e<256?D[e]:D[256+(e>>>7)]}function N(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function O(e,t,n){e.bi_valid>y-n?(e.bi_buf|=t<<e.bi_valid&65535,N(e,e.bi_buf),e.bi_buf=t>>y-e.bi_valid,e.bi_valid+=n-y):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function P(e,t,n){O(e,n[2*t],n[2*t+1])}function Q(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function R(e){16===e.bi_valid?(N(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function T(e,t){var n,_,r,a,i,l,d=t.dyn_tree,f=t.max_code,o=t.stat_desc.static_tree,b=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,u=t.stat_desc.extra_base,c=t.stat_desc.max_length,p=0;for(a=0;a<=v;a++)e.bl_count[a]=0;for(d[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<h;n++)(a=d[2*d[2*(_=e.heap[n])+1]+1]+1)>c&&(a=c,p++),d[2*_+1]=a,_>f||(e.bl_count[a]++,i=0,_>=u&&(i=s[_-u]),l=d[2*_],e.opt_len+=l*(a+i),b&&(e.static_len+=l*(o[2*_+1]+i)));if(0!==p){do{for(a=c-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[c]--,p-=2}while(p>0);for(a=c;0!==a;a--)for(_=e.bl_count[a];0!==_;)(r=e.heap[--n])>f||(d[2*r+1]!==a&&(e.opt_len+=(a-d[2*r+1])*d[2*r],d[2*r+1]=a),_--)}}function U(e,t,n){var _,r,a=new Array(v+1),i=0;for(_=1;_<=v;_++)a[_]=i=i+n[_-1]<<1;for(r=0;r<=t;r++){var l=e[2*r+1];0!==l&&(e[2*r]=Q(a[l]++,l))}}function V(){var e,t,n,_,r,a=new Array(v+1);for(n=0,_=0;_<b-1;_++)for(F[_]=n,e=0;e<1<<k[_];e++)E[n++]=_;for(E[n-1]=_,r=0,_=0;_<16;_++)for(J[_]=r,e=0;e<1<<q[_];e++)D[r++]=_;for(r>>=7;_<c;_++)for(J[_]=r<<7,e=0;e<1<<q[_]-7;e++)D[256+r++]=_;for(t=0;t<=v;t++)a[t]=0;for(e=0;e<=143;)B[2*e+1]=8,e++,a[8]++;for(;e<=255;)B[2*e+1]=9,e++,a[9]++;for(;e<=279;)B[2*e+1]=7,e++,a[7]++;for(;e<=287;)B[2*e+1]=8,e++,a[8]++;for(U(B,u+1,a),e=0;e<c;e++)C[2*e+1]=5,C[2*e]=Q(e,5);G=new K(B,k,s+1,u,v),H=new K(C,q,0,c,v),I=new K(new Array(0),z,0,p,x)}function W(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<c;t++)e.dyn_dtree[2*t]=0;for(t=0;t<p;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*g]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function X(e){e.bi_valid>8?N(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Y(t,n,_,r){X(t),r&&(N(t,_),N(t,~_)),e.arraySet(t.pending_buf,t.window,n,_,t.pending),t.pending+=_}function Z(e,t,n,_){var r=2*t,a=2*n;return e[r]<e[a]||e[r]===e[a]&&_[t]<=_[n]}function $(e,t,n){for(var _=e.heap[n],r=n<<1;r<=e.heap_len&&(r<e.heap_len&&Z(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!Z(t,_,e.heap[r],e.depth));)e.heap[n]=e.heap[r],n=r,r<<=1;e.heap[n]=_}function ee(e,t,n){var _,r,a,i,l=0;if(0!==e.last_lit)do{_=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],r=e.pending_buf[e.l_buf+l],l++,0===_?P(e,r,t):(P(e,(a=E[r])+s+1,t),0!==(i=k[a])&&O(e,r-=F[a],i),P(e,a=M(--_),n),0!==(i=q[a])&&O(e,_-=J[a],i))}while(l<e.last_lit);P(e,g,t)}function te(e,t){var n,_,r,a=t.dyn_tree,i=t.stat_desc.static_tree,l=t.stat_desc.has_stree,d=t.stat_desc.elems,f=-1;for(e.heap_len=0,e.heap_max=h,n=0;n<d;n++)0!==a[2*n]?(e.heap[++e.heap_len]=f=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(r=e.heap[++e.heap_len]=f<2?++f:0)]=1,e.depth[r]=0,e.opt_len--,l&&(e.static_len-=i[2*r+1]);for(t.max_code=f,n=e.heap_len>>1;n>=1;n--)$(e,a,n);r=d;do{n=e.heap[1],e.heap[1]=e.heap
},{"../utils/common":"tbG5"}],"uxo6":[function(require,module,exports) {
"use strict";function e(e,r,o,t){for(var u=65535&e|0,i=e>>>16&65535|0,n=0;0!==o;){o-=n=o>2e3?2e3:o;do{i=i+(u=u+r[t++]|0)|0}while(--n);u%=65521,i%=65521}return u|i<<16|0}module.exports=e;
},{}],"X4kj":[function(require,module,exports) {
"use strict";function r(){for(var r,o=[],t=0;t<256;t++){r=t;for(var n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;o[t]=r}return o}var o=r();function t(r,t,n,u){var a=o,e=u+n;r^=-1;for(var f=u;f<e;f++)r=r>>>8^a[255&(r^t[f])];return-1^r}module.exports=t;
},{}],"gMAY":[function(require,module,exports) {
"use strict";module.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};
},{}],"BLBk":[function(require,module,exports) {
"use strict";var t,a=require("../utils/common"),e=require("./trees"),s=require("./adler32"),i=require("./crc32"),r=require("./messages"),n=0,h=1,l=3,_=4,d=5,o=0,u=1,g=-2,f=-3,c=-5,p=-1,m=1,w=2,v=3,k=4,z=0,b=2,x=8,y=9,B=15,S=8,q=29,I=256,A=I+1+q,C=30,R=19,j=2*A+1,D=15,E=3,H=258,K=H+E+1,N=32,F=42,G=69,J=73,L=91,M=103,O=113,P=666,Q=1,T=2,U=3,V=4,W=3;function X(t,a){return t.msg=r[a],a}function Y(t){return(t<<1)-(t>4?9:0)}function Z(t){for(var a=t.length;--a>=0;)t[a]=0}function $(t){var e=t.state,s=e.pending;s>t.avail_out&&(s=t.avail_out),0!==s&&(a.arraySet(t.output,e.pending_buf,e.pending_out,s,t.next_out),t.next_out+=s,e.pending_out+=s,t.total_out+=s,t.avail_out-=s,e.pending-=s,0===e.pending&&(e.pending_out=0))}function tt(t,a){e._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,a),t.block_start=t.strstart,$(t.strm)}function at(t,a){t.pending_buf[t.pending++]=a}function et(t,a){t.pending_buf[t.pending++]=a>>>8&255,t.pending_buf[t.pending++]=255&a}function st(t,e,r,n){var h=t.avail_in;return h>n&&(h=n),0===h?0:(t.avail_in-=h,a.arraySet(e,t.input,t.next_in,h,r),1===t.state.wrap?t.adler=s(t.adler,e,h,r):2===t.state.wrap&&(t.adler=i(t.adler,e,h,r)),t.next_in+=h,t.total_in+=h,h)}function it(t,a){var e,s,i=t.max_chain_length,r=t.strstart,n=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-K?t.strstart-(t.w_size-K):0,_=t.window,d=t.w_mask,o=t.prev,u=t.strstart+H,g=_[r+n-1],f=_[r+n];t.prev_length>=t.good_match&&(i>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(e=a)+n]===f&&_[e+n-1]===g&&_[e]===_[r]&&_[++e]===_[r+1]){r+=2,e++;do{}while(_[++r]===_[++e]&&_[++r]===_[++e]&&_[++r]===_[++e]&&_[++r]===_[++e]&&_[++r]===_[++e]&&_[++r]===_[++e]&&_[++r]===_[++e]&&_[++r]===_[++e]&&r<u);if(s=H-(u-r),r=u-H,s>n){if(t.match_start=a,n=s,s>=h)break;g=_[r+n-1],f=_[r+n]}}}while((a=o[a&d])>l&&0!=--i);return n<=t.lookahead?n:t.lookahead}function rt(t){var e,s,i,r,n,h=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=h+(h-K)){a.arraySet(t.window,t.window,h,h,0),t.match_start-=h,t.strstart-=h,t.block_start-=h,e=s=t.hash_size;do{i=t.head[--e],t.head[e]=i>=h?i-h:0}while(--s);e=s=h;do{i=t.prev[--e],t.prev[e]=i>=h?i-h:0}while(--s);r+=h}if(0===t.strm.avail_in)break;if(s=st(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=s,t.lookahead+t.insert>=E)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=(t.ins_h<<t.hash_shift^t.window[n+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[n+E-1])&t.hash_mask,t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<E)););}while(t.lookahead<K&&0!==t.strm.avail_in)}function nt(t,a){var e=65535;for(e>t.pending_buf_size-5&&(e=t.pending_buf_size-5);;){if(t.lookahead<=1){if(rt(t),0===t.lookahead&&a===n)return Q;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var s=t.block_start+e;if((0===t.strstart||t.strstart>=s)&&(t.lookahead=t.strstart-s,t.strstart=s,tt(t,!1),0===t.strm.avail_out))return Q;if(t.strstart-t.block_start>=t.w_size-K&&(tt(t,!1),0===t.strm.avail_out))return Q}return t.insert=0,a===_?(tt(t,!0),0===t.strm.avail_out?U:V):(t.strstart>t.block_start&&(tt(t,!1),t.strm.avail_out),Q)}function ht(t,a){for(var s,i;;){if(t.lookahead<K){if(rt(t),t.lookahead<K&&a===n)return Q;if(0===t.lookahead)break}if(s=0,t.lookahead>=E&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,s=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==s&&t.strstart-s<=t.w_size-K&&(t.match_length=it(t,s)),t.match_length>=E)if(i=e._tr_tally(t,t.strstart-t.match_start,t.match_length-E),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=E){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+E-1])&t.hash_mask,s=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=e._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(tt(t
},{"../utils/common":"tbG5","./trees":"sRJQ","./adler32":"uxo6","./crc32":"X4kj","./messages":"gMAY"}],"Q3ZD":[function(require,module,exports) {
"use strict";var r=require("./common"),n=!0,t=!0;try{String.fromCharCode.apply(null,[0])}catch(u){n=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(u){t=!1}for(var e=new r.Buf8(256),o=0;o<256;o++)e[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;function f(e,o){if(o<65534&&(e.subarray&&t||!e.subarray&&n))return String.fromCharCode.apply(null,r.shrinkBuf(e,o));for(var f="",u=0;u<o;u++)f+=String.fromCharCode(e[u]);return f}e[254]=e[254]=1,exports.string2buf=function(n){var t,e,o,f,u,a=n.length,i=0;for(f=0;f<a;f++)55296==(64512&(e=n.charCodeAt(f)))&&f+1<a&&56320==(64512&(o=n.charCodeAt(f+1)))&&(e=65536+(e-55296<<10)+(o-56320),f++),i+=e<128?1:e<2048?2:e<65536?3:4;for(t=new r.Buf8(i),u=0,f=0;u<i;f++)55296==(64512&(e=n.charCodeAt(f)))&&f+1<a&&56320==(64512&(o=n.charCodeAt(f+1)))&&(e=65536+(e-55296<<10)+(o-56320),f++),e<128?t[u++]=e:e<2048?(t[u++]=192|e>>>6,t[u++]=128|63&e):e<65536?(t[u++]=224|e>>>12,t[u++]=128|e>>>6&63,t[u++]=128|63&e):(t[u++]=240|e>>>18,t[u++]=128|e>>>12&63,t[u++]=128|e>>>6&63,t[u++]=128|63&e);return t},exports.buf2binstring=function(r){return f(r,r.length)},exports.binstring2buf=function(n){for(var t=new r.Buf8(n.length),e=0,o=t.length;e<o;e++)t[e]=n.charCodeAt(e);return t},exports.buf2string=function(r,n){var t,o,u,a,i=n||r.length,h=new Array(2*i);for(o=0,t=0;t<i;)if((u=r[t++])<128)h[o++]=u;else if((a=e[u])>4)h[o++]=65533,t+=a-1;else{for(u&=2===a?31:3===a?15:7;a>1&&t<i;)u=u<<6|63&r[t++],a--;a>1?h[o++]=65533:u<65536?h[o++]=u:(u-=65536,h[o++]=55296|u>>10&1023,h[o++]=56320|1023&u)}return f(h,o)},exports.utf8border=function(r,n){var t;for((n=n||r.length)>r.length&&(n=r.length),t=n-1;t>=0&&128==(192&r[t]);)t--;return t<0?n:0===t?n:t+e[r[t]]>n?t:n};
},{"./common":"tbG5"}],"bdtv":[function(require,module,exports) {
"use strict";function t(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}module.exports=t;
},{}],"nFS2":[function(require,module,exports) {
"use strict";var t=require("./zlib/deflate"),i=require("./utils/common"),e=require("./utils/strings"),n=require("./zlib/messages"),r=require("./zlib/zstream"),s=Object.prototype.toString,o=0,a=4,u=0,h=1,d=2,l=-1,f=0,p=8;function w(o){if(!(this instanceof w))return new w(o);this.options=i.assign({level:l,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},o||{});var a=this.options;a.raw&&a.windowBits>0?a.windowBits=-a.windowBits:a.gzip&&a.windowBits>0&&a.windowBits<16&&(a.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new r,this.strm.avail_out=0;var h=t.deflateInit2(this.strm,a.level,a.method,a.windowBits,a.memLevel,a.strategy);if(h!==u)throw new Error(n[h]);if(a.header&&t.deflateSetHeader(this.strm,a.header),a.dictionary){var d;if(d="string"==typeof a.dictionary?e.string2buf(a.dictionary):"[object ArrayBuffer]"===s.call(a.dictionary)?new Uint8Array(a.dictionary):a.dictionary,(h=t.deflateSetDictionary(this.strm,d))!==u)throw new Error(n[h]);this._dict_set=!0}}function c(t,i){var e=new w(i);if(e.push(t,!0),e.err)throw e.msg||n[e.err];return e.result}function m(t,i){return(i=i||{}).raw=!0,c(t,i)}function g(t,i){return(i=i||{}).gzip=!0,c(t,i)}w.prototype.push=function(n,r){var l,f,p=this.strm,w=this.options.chunkSize;if(this.ended)return!1;f=r===~~r?r:!0===r?a:o,"string"==typeof n?p.input=e.string2buf(n):"[object ArrayBuffer]"===s.call(n)?p.input=new Uint8Array(n):p.input=n,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new i.Buf8(w),p.next_out=0,p.avail_out=w),(l=t.deflate(p,f))!==h&&l!==u)return this.onEnd(l),this.ended=!0,!1;0!==p.avail_out&&(0!==p.avail_in||f!==a&&f!==d)||("string"===this.options.to?this.onData(e.buf2binstring(i.shrinkBuf(p.output,p.next_out))):this.onData(i.shrinkBuf(p.output,p.next_out)))}while((p.avail_in>0||0===p.avail_out)&&l!==h);return f===a?(l=t.deflateEnd(this.strm),this.onEnd(l),this.ended=!0,l===u):f!==d||(this.onEnd(u),p.avail_out=0,!0)},w.prototype.onData=function(t){this.chunks.push(t)},w.prototype.onEnd=function(t){t===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},exports.Deflate=w,exports.deflate=c,exports.deflateRaw=m,exports.gzip=g;
},{"./zlib/deflate":"BLBk","./utils/common":"tbG5","./utils/strings":"Q3ZD","./zlib/messages":"gMAY","./zlib/zstream":"bdtv"}],"LP5M":[function(require,module,exports) {
"use strict";var i=30,e=12;module.exports=function(o,a){var t,d,n,l,s,f,r,b,c,u,v,m,w,h,k,_,x,g,p,z,j,q,y,A,B;t=o.state,d=o.next_in,A=o.input,n=d+(o.avail_in-5),l=o.next_out,B=o.output,s=l-(a-o.avail_out),f=l+(o.avail_out-257),r=t.dmax,b=t.wsize,c=t.whave,u=t.wnext,v=t.window,m=t.hold,w=t.bits,h=t.lencode,k=t.distcode,_=(1<<t.lenbits)-1,x=(1<<t.distbits)-1;i:do{w<15&&(m+=A[d++]<<w,w+=8,m+=A[d++]<<w,w+=8),g=h[m&_];e:for(;;){if(m>>>=p=g>>>24,w-=p,0===(p=g>>>16&255))B[l++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=h[(65535&g)+(m&(1<<p)-1)];continue e}if(32&p){t.mode=e;break i}o.msg="invalid literal/length code",t.mode=i;break i}z=65535&g,(p&=15)&&(w<p&&(m+=A[d++]<<w,w+=8),z+=m&(1<<p)-1,m>>>=p,w-=p),w<15&&(m+=A[d++]<<w,w+=8,m+=A[d++]<<w,w+=8),g=k[m&x];o:for(;;){if(m>>>=p=g>>>24,w-=p,!(16&(p=g>>>16&255))){if(0==(64&p)){g=k[(65535&g)+(m&(1<<p)-1)];continue o}o.msg="invalid distance code",t.mode=i;break i}if(j=65535&g,w<(p&=15)&&(m+=A[d++]<<w,(w+=8)<p&&(m+=A[d++]<<w,w+=8)),(j+=m&(1<<p)-1)>r){o.msg="invalid distance too far back",t.mode=i;break i}if(m>>>=p,w-=p,j>(p=l-s)){if((p=j-p)>c&&t.sane){o.msg="invalid distance too far back",t.mode=i;break i}if(q=0,y=v,0===u){if(q+=b-p,p<z){z-=p;do{B[l++]=v[q++]}while(--p);q=l-j,y=B}}else if(u<p){if(q+=b+u-p,(p-=u)<z){z-=p;do{B[l++]=v[q++]}while(--p);if(q=0,u<z){z-=p=u;do{B[l++]=v[q++]}while(--p);q=l-j,y=B}}}else if(q+=u-p,p<z){z-=p;do{B[l++]=v[q++]}while(--p);q=l-j,y=B}for(;z>2;)B[l++]=y[q++],B[l++]=y[q++],B[l++]=y[q++],z-=3;z&&(B[l++]=y[q++],z>1&&(B[l++]=y[q++]))}else{q=l-j;do{B[l++]=B[q++],B[l++]=B[q++],B[l++]=B[q++],z-=3}while(z>2);z&&(B[l++]=B[q++],z>1&&(B[l++]=B[q++]))}break}}break}}while(d<n&&l<f);d-=z=w>>3,m&=(1<<(w-=z<<3))-1,o.next_in=d,o.next_out=l,o.avail_in=d<n?n-d+5:5-(d-n),o.avail_out=l<f?f-l+257:257-(l-f),t.hold=m,t.bits=w};
},{}],"uNlq":[function(require,module,exports) {
"use strict";var r=require("../utils/common"),f=15,i=852,o=592,e=0,u=1,t=2,n=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],b=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];module.exports=function(a,c,m,w,d,v,B,h){var k,p,q,x,g,j,y,z,A,C=h.bits,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=null,O=0,P=new r.Buf16(f+1),Q=new r.Buf16(f+1),R=null,S=0;for(D=0;D<=f;D++)P[D]=0;for(E=0;E<w;E++)P[c[m+E]]++;for(H=C,G=f;G>=1&&0===P[G];G--);if(H>G&&(H=G),0===G)return d[v++]=20971520,d[v++]=20971520,h.bits=1,0;for(F=1;F<G&&0===P[F];F++);for(H<F&&(H=F),K=1,D=1;D<=f;D++)if(K<<=1,(K-=P[D])<0)return-1;if(K>0&&(a===e||1!==G))return-1;for(Q[1]=0,D=1;D<f;D++)Q[D+1]=Q[D]+P[D];for(E=0;E<w;E++)0!==c[m+E]&&(B[Q[c[m+E]]++]=E);if(a===e?(N=R=B,j=19):a===u?(N=n,O-=257,R=l,S-=257,j=256):(N=s,R=b,j=-1),M=0,E=0,D=F,g=v,I=H,J=0,q=-1,x=(L=1<<H)-1,a===u&&L>i||a===t&&L>o)return 1;for(;;){y=D-J,B[E]<j?(z=0,A=B[E]):B[E]>j?(z=R[S+B[E]],A=N[O+B[E]]):(z=96,A=0),k=1<<D-J,F=p=1<<I;do{d[g+(M>>J)+(p-=k)]=y<<24|z<<16|A|0}while(0!==p);for(k=1<<D-1;M&k;)k>>=1;if(0!==k?(M&=k-1,M+=k):M=0,E++,0==--P[D]){if(D===G)break;D=c[m+B[E]]}if(D>H&&(M&x)!==q){for(0===J&&(J=H),g+=F,K=1<<(I=D-J);I+J<G&&!((K-=P[I+J])<=0);)I++,K<<=1;if(L+=1<<I,a===u&&L>i||a===t&&L>o)return 1;d[q=M&x]=H<<24|I<<16|g-v|0}}return 0!==M&&(d[g+M]=D-J<<24|64<<16|0),h.bits=H,0};
},{"../utils/common":"tbG5"}],"GIDK":[function(require,module,exports) {
"use strict";var e=require("../utils/common"),a=require("./adler32"),t=require("./crc32"),i=require("./inffast"),s=require("./inftrees"),n=0,r=1,o=2,d=4,l=5,f=6,c=0,h=1,k=2,b=-2,m=-3,w=-4,u=-5,g=8,v=1,x=2,p=3,_=4,y=5,z=6,B=7,S=8,q=9,C=10,I=11,R=12,j=13,A=14,D=15,E=16,G=17,H=18,K=19,N=20,F=21,J=22,L=23,M=24,O=25,P=26,Q=27,T=28,U=29,V=30,W=31,X=32,Y=852,Z=592,$=15,ee=$;function ae(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function te(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ie(a){var t;return a&&a.state?(t=a.state,a.total_in=a.total_out=t.total=0,a.msg="",t.wrap&&(a.adler=1&t.wrap),t.mode=v,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new e.Buf32(Y),t.distcode=t.distdyn=new e.Buf32(Z),t.sane=1,t.back=-1,c):b}function se(e){var a;return e&&e.state?((a=e.state).wsize=0,a.whave=0,a.wnext=0,ie(e)):b}function ne(e,a){var t,i;return e&&e.state?(i=e.state,a<0?(t=0,a=-a):(t=1+(a>>4),a<48&&(a&=15)),a&&(a<8||a>15)?b:(null!==i.window&&i.wbits!==a&&(i.window=null),i.wrap=t,i.wbits=a,se(e))):b}function re(e,a){var t,i;return e?(i=new te,e.state=i,i.window=null,(t=ne(e,a))!==c&&(e.state=null),t):b}function oe(e){return re(e,ee)}var de,le,fe=!0;function ce(a){if(fe){var t;for(de=new e.Buf32(512),le=new e.Buf32(32),t=0;t<144;)a.lens[t++]=8;for(;t<256;)a.lens[t++]=9;for(;t<280;)a.lens[t++]=7;for(;t<288;)a.lens[t++]=8;for(s(r,a.lens,0,288,de,0,a.work,{bits:9}),t=0;t<32;)a.lens[t++]=5;s(o,a.lens,0,32,le,0,a.work,{bits:5}),fe=!1}a.lencode=de,a.lenbits=9,a.distcode=le,a.distbits=5}function he(a,t,i,s){var n,r=a.state;return null===r.window&&(r.wsize=1<<r.wbits,r.wnext=0,r.whave=0,r.window=new e.Buf8(r.wsize)),s>=r.wsize?(e.arraySet(r.window,t,i-r.wsize,r.wsize,0),r.wnext=0,r.whave=r.wsize):((n=r.wsize-r.wnext)>s&&(n=s),e.arraySet(r.window,t,i-s,n,r.wnext),(s-=n)?(e.arraySet(r.window,t,i-s,s,0),r.wnext=s,r.whave=r.wsize):(r.wnext+=n,r.wnext===r.wsize&&(r.wnext=0),r.whave<r.wsize&&(r.whave+=n))),0}function ke(Y,Z){var $,ee,te,ie,se,ne,re,oe,de,le,fe,ke,be,me,we,ue,ge,ve,xe,pe,_e,ye,ze,Be,Se=0,qe=new e.Buf8(4),Ce=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Y||!Y.state||!Y.output||!Y.input&&0!==Y.avail_in)return b;($=Y.state).mode===R&&($.mode=j),se=Y.next_out,te=Y.output,re=Y.avail_out,ie=Y.next_in,ee=Y.input,ne=Y.avail_in,oe=$.hold,de=$.bits,le=ne,fe=re,ye=c;e:for(;;)switch($.mode){case v:if(0===$.wrap){$.mode=j;break}for(;de<16;){if(0===ne)break e;ne--,oe+=ee[ie++]<<de,de+=8}if(2&$.wrap&&35615===oe){$.check=0,qe[0]=255&oe,qe[1]=oe>>>8&255,$.check=t($.check,qe,2,0),oe=0,de=0,$.mode=x;break}if($.flags=0,$.head&&($.head.done=!1),!(1&$.wrap)||(((255&oe)<<8)+(oe>>8))%31){Y.msg="incorrect header check",$.mode=V;break}if((15&oe)!==g){Y.msg="unknown compression method",$.mode=V;break}if(de-=4,_e=8+(15&(oe>>>=4)),0===$.wbits)$.wbits=_e;else if(_e>$.wbits){Y.msg="invalid window size",$.mode=V;break}$.dmax=1<<_e,Y.adler=$.check=1,$.mode=512&oe?C:R,oe=0,de=0;break;case x:for(;de<16;){if(0===ne)break e;ne--,oe+=ee[ie++]<<de,de+=8}if($.flags=oe,(255&$.flags)!==g){Y.msg="unknown compression method",$.mode=V;break}if(57344&$.flags){Y.msg="unknown header flags set",$.mode=V;break}$.head&&($.head.text=oe>>8&1),512&$.flags&&(qe[0]=255&oe,qe[1]=oe>>>8&255,$.check=t($.check,qe,2,0)),oe=0,de=0,$.mode=p;case p:for(;de<32;){if(0===ne)break e;ne--,oe+=ee[ie++]<<de,de+=8}$.head&&($.head.time=oe),512&$.flags&&(qe[0]=255&oe,qe[1]=oe>>>8&255,qe[2]=oe>>>16&255,qe[3]=oe>>>24&255,$.check=t($.check,qe,4,0)),oe=0,de=0,$.mode=_;case _:for(;de<16;){if(0===ne)break e;ne--,oe+=ee[ie++]<<de,de+=8}$.head&&($.head.xflags=255&oe,$.head.os=oe>>
},{"../utils/common":"tbG5","./adler32":"uxo6","./crc32":"X4kj","./inffast":"LP5M","./inftrees":"uNlq"}],"xUUw":[function(require,module,exports) {
"use strict";module.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};
},{}],"WIli":[function(require,module,exports) {
"use strict";function t(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}module.exports=t;
},{}],"faQk":[function(require,module,exports) {
"use strict";var t=require("./zlib/inflate"),i=require("./utils/common"),n=require("./utils/strings"),r=require("./zlib/constants"),s=require("./zlib/messages"),o=require("./zlib/zstream"),e=require("./zlib/gzheader"),a=Object.prototype.toString;function u(h){if(!(this instanceof u))return new u(h);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},h||{});var _=this.options;_.raw&&_.windowBits>=0&&_.windowBits<16&&(_.windowBits=-_.windowBits,0===_.windowBits&&(_.windowBits=-15)),!(_.windowBits>=0&&_.windowBits<16)||h&&h.windowBits||(_.windowBits+=32),_.windowBits>15&&_.windowBits<48&&0==(15&_.windowBits)&&(_.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var w=t.inflateInit2(this.strm,_.windowBits);if(w!==r.Z_OK)throw new Error(s[w]);if(this.header=new e,t.inflateGetHeader(this.strm,this.header),_.dictionary&&("string"==typeof _.dictionary?_.dictionary=n.string2buf(_.dictionary):"[object ArrayBuffer]"===a.call(_.dictionary)&&(_.dictionary=new Uint8Array(_.dictionary)),_.raw&&(w=t.inflateSetDictionary(this.strm,_.dictionary))!==r.Z_OK))throw new Error(s[w])}function h(t,i){var n=new u(i);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}function _(t,i){return(i=i||{}).raw=!0,h(t,i)}u.prototype.push=function(s,o){var e,u,h,_,w,d=this.strm,l=this.options.chunkSize,f=this.options.dictionary,p=!1;if(this.ended)return!1;u=o===~~o?o:!0===o?r.Z_FINISH:r.Z_NO_FLUSH,"string"==typeof s?d.input=n.binstring2buf(s):"[object ArrayBuffer]"===a.call(s)?d.input=new Uint8Array(s):d.input=s,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(l),d.next_out=0,d.avail_out=l),(e=t.inflate(d,r.Z_NO_FLUSH))===r.Z_NEED_DICT&&f&&(e=t.inflateSetDictionary(this.strm,f)),e===r.Z_BUF_ERROR&&!0===p&&(e=r.Z_OK,p=!1),e!==r.Z_STREAM_END&&e!==r.Z_OK)return this.onEnd(e),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&e!==r.Z_STREAM_END&&(0!==d.avail_in||u!==r.Z_FINISH&&u!==r.Z_SYNC_FLUSH)||("string"===this.options.to?(h=n.utf8border(d.output,d.next_out),_=d.next_out-h,w=n.buf2string(d.output,h),d.next_out=_,d.avail_out=l-_,_&&i.arraySet(d.output,d.output,h,_,0),this.onData(w)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(p=!0)}while((d.avail_in>0||0===d.avail_out)&&e!==r.Z_STREAM_END);return e===r.Z_STREAM_END&&(u=r.Z_FINISH),u===r.Z_FINISH?(e=t.inflateEnd(this.strm),this.onEnd(e),this.ended=!0,e===r.Z_OK):u!==r.Z_SYNC_FLUSH||(this.onEnd(r.Z_OK),d.avail_out=0,!0)},u.prototype.onData=function(t){this.chunks.push(t)},u.prototype.onEnd=function(t){t===r.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},exports.Inflate=u,exports.inflate=h,exports.inflateRaw=_,exports.ungzip=h;
},{"./zlib/inflate":"GIDK","./utils/common":"tbG5","./utils/strings":"Q3ZD","./zlib/constants":"xUUw","./zlib/messages":"gMAY","./zlib/zstream":"bdtv","./zlib/gzheader":"WIli"}],"f4vO":[function(require,module,exports) {
"use strict";var e=require("./lib/utils/common").assign,i=require("./lib/deflate"),r=require("./lib/inflate"),l=require("./lib/zlib/constants"),s={};e(s,i,r,l),module.exports=s;
},{"./lib/utils/common":"tbG5","./lib/deflate":"nFS2","./lib/inflate":"faQk","./lib/zlib/constants":"xUUw"}],"qfz1":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.padStart=exports.decompressJson=exports.decodeFromBase64=void 0;var r=e(require("pako"));function e(r){return r&&r.__esModule?r:{default:r}}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=new Uint8Array(256),n=0;n<t.length;n++)o[t.charCodeAt(n)]=n;var a=function(r){var e,t,n,a,d,s=.75*r.length,u=r.length,c=0;"="===r[r.length-1]&&(s--,"="===r[r.length-2]&&s--);var f=new Uint8Array(s);for(e=0;e<u;e+=4)t=o[r.charCodeAt(e)],n=o[r.charCodeAt(e+1)],a=o[r.charCodeAt(e+2)],d=o[r.charCodeAt(e+3)],f[c++]=t<<2|n>>4,f[c++]=(15&n)<<4|a>>2,f[c++]=(3&a)<<6|63&d;return f};exports.decodeFromBase64=a;var d=function(r){for(var e="",t=0;t<r.length;t++)e+=String.fromCharCode(r[t]);return e},s=function(e){return d(r.default.inflate(a(e)))};exports.decompressJson=s;var u=function(r,e,t){for(var o="",n=0,a=e-r.length;n<a;n++)o+=t;return o+r};exports.padStart=u;
},{"pako":"f4vO"}],"Ew6q":[function(require,module,exports) {
module.exports="eJyFWdty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WyCxnXLmQyu5AJ7EImRBeq+CEn5Da36gVqBEK4EIYGrShyqvQokimRyM4UZLCnyMmjoiiNKjQ5a+yPLSuKyrdii2xeUScHi6K2sdiGvSyqZGhRJFcL4usGB3+LnEyOROV0ocl5Y17Y86KojC+2yO4XdbLAKGofjG3YDKPKjhjVaItBA28MHAwycHTJKLBVRlX4ZWgAphk5GUYUlX3GFl/xFTbSKGo3jW3YUqPKvhrVaK5Be2jUxbbRvm/xQ/ETrusEPRcpGRVK5LdBYrcFEbwWKTktStJnocGZ3A97LErKYVHP/ooquStK2luxBTsrauSrKJGrgvRaUnBUpOSnQVJuCg3OZezZSVFSPop6dlFUyUNR0g6KLdg/UWP3RC16JyjgnEDBN4GiayJmz0RNOCbI4JdIqdpRUl6J+kEvYJ9ESbsktmCPRI0dErXoj6A8yAzfyra9pu1ICVccR4+WaIhMxTiZoXN2wqqADRoiDzQuDbCqZ/m72fqMK98zMZueSeR4xrXdmcxeZwIZnXFyucpfZwT+ZojMzblytqqe54iypxlXhmZidjOTyMqMax8zmU3MBHYwE6J9VQzeVREYV0XoWsbYskwQflU1MCtDVH/GlU2Z2K5MNijj2p1MZmsygX3JhGhKFT/khNzmVr1
},{}],"P77V":[function(require,module,exports) {
module.exports="eJyNnVtzG0eyrf8KA0/7RMhzRIq6+U2+zMX2mJYsEuJMzANEtihsgYQMEITaO/Z/P41CV+bKlaug86JQf6uArsrKXNVX8H8m3y9vb7u7+8m3k4t/btazm+7o+PT0xcnRsxdPXzybPJr8dXl3/+vsthsa/L1bPHT386vZN98tF9dn7xfzPzbdrslmseAmR7smR9Bmdjtf9NxqEKbd/Objbve7Dwzb/7ifLeZXr+5uFkPLb45PBrL+6/xLd/3b/P7q4+Tb+9WmezT5/uNsNbu671a/d7vP/vjlvru77q7fLG9nd2Onv/tu+WXy7b+/OX5++uibk5MXj46Pj08fvXx28p9Hk/Oh8Woxv+t+W67n9/Pl3W5Xjx+D8Pbj/OrTXbdeT759OvCLbrUuzSaPH5/85f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SNK2RiH1qMrGqKQGyc/dM5mWJQXApENGpceWNRLgSq1lNZnYk4JkygfjOtkMJkzwQTyOuNkdIW/yggtzhj7mwvS3IoMzmaIbM248jQTs6GZRG5mXFuZyexjJrCJmRAdrGCwr4KmuRQalzF2LROEZRWtyx3GZmV8LCeFTZlUycmKQZlcy8lkTSZEXyoYTKmgTUZbgciLjGcjKnV
},{}],"j8O5":[function(require,module,exports) {
module.exports="eJyNnVtzG8mxrf+KAk/nRGh8eBWleZPnItsaj0ZXWNvhB5BsUdgE0TLAFgjt2P/9AI2uzJUrV7X8olB/q4CuyspaVX0p8H8mP7V3d83yfvLj5MPfu/Xspnl0enH05Nmjs6dHz84mjye/tsv732d3za7AX5rF1+Z+fjXb426xUHh2N19shTBt5jef92f5e3M97+525K/3s8X86vnyZrEre7Q7Xv86f2iu/5jfX32e/Hi/6prHk58+z1azq/tm9bbZf/aXh/tmed1cv2nvZsuhbn/+c/sw+fGfPxw/efL4h5OT88fHR0dHj5+dHv/r8eT9rvBqMV82f7Tr+f28XU5+/GEng/Du8/zqdtms15Mfz3f8Q7Na98UmR0cnf9p90e4kv7e7Juyb81P7Zbvat+LR/7n6v4+Onz09f7z/96L/99n+32dH/b8Xj55ft5fNo7fb9X1zt3701+VVu/rSrmb3zfWfHj16vlg8erP/nvWjN826WX3dUQvVo/n60ezR/Wp23dzNVreP2k+Pfpsv2/vtl+aHXaHFo+cvHs2W1/+vXT2a775g3V2u59fz2WrerP+0q+wvu1Ndz5c3b68+N30f9DV5e7/7yGx1XdRdwZ9mX/4ydMnF8dPHk3+Uo/OT08eT5+urfaBXg/hzY8c/nBxdPJ68vb/+y3QnPun/+2H336dPD7319+Z+Nb/ahfOf/zOZ/mPy48nFTvh9V5H1l9kuiv/7mHDzcLWY3Rk/PT8/8H937S5alwtTzs+fHJRld3e576abZdau28VitjL+dNctPf/SrK72SV6EJ08uDsLsbietd9Hxmp2cQA36/vbanZ4O3zdbNctF86km0cdKNWbr/Teub73iT8+GTy26dQ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OgNvKy2UTTSKX2neyk5DAvDUyMlYo6jcNabIFht18tkoarONadhxo8q2G9XovUG7rwTyocK3NX6o1IQpO0FLRkqGjBLZcZDYjEEEK0ZKRoyStGFIACaMlCwYJWXAqGf7RZXMFyVtvZiCjRc1sl2UyHRBeispGC5SstsgKbOFBGC1SMloUVI2i3o2WVTJYlHSBosp2F5RY3NFLVorKGisgMFWgbayhbGlonSwaSo7BRnMFClZKUrKSFHPNooqmShK2kIxBRsoamyfqEXzBOVehuxB0q2m9XIRljnlHv3SEJmlcXJK52yTRQGPNEQGaVy6Y1HBGg2RLxpXpmhidkSTyA6Nay80mY3QBHJB42SBhb/NCMzPEDmfc2V7RQXPM0SGZ1y5nYnZ6kwinzOuTc5kdjgT2N5MiN5WMBpbYeBqBbW
},{}],"PsRb":[function(require,module,exports) {
module.exports="eJyFnVtzG0mOhf+Kgk+7Ee5ZSdbN/aa+ebzuMdvupmjORD9QUlnmmmJpSMoSZ2L++9YNwMEBkn5xuL6TdUkkgLxUFvXv0Y/1/X212o6+H1397XEzv6sOTl6+Onx1cHry6uXJ6MXol3q1fTe/r5oCfyzuq813H+r7+aoVHpdLFA5UmN8vljuUGjitFnef27tIqTfb+XJxc7m6WzbFDpvjzS+L5+r2t8X25vPo++36sXox+vHzfD2/2Vbr36v21J+ft9XqtrrVGzWP9sMP9fPo+398d3R28eK746OLF0eHh4cvLl5d/PliNGkKr5eLVfVbvVlsF/Vq9P13jQzCH58XN19W1WYz+v604VfVetMVGx0eHv+luVBzk3f1dnHT1uTH+mG3bitx8F83/31w9Ori9EX773n376v231eH3b8vu3/PDy5v6+vq4PfdZlvdbw7erG7q9UO9nm+r278cHFwulwcf2qs1dqs21fprQ3szLjYH84Pten5b3c/XXw7qTwe/Llb1dvdQfffXqjnr8vXBfHX7P/X6YNGcvHm83ixuF/P1otr8pXncn5vb3C5Wd7/ffK66Buie4vdtc8p8fStqU/DH+cNfhzY5Ozt+MfooRyetJS43N62p14148fLF6KdKjxsjn78Y/b69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4aXOZkG6WY8OC4hzrwHRcjVhWepjd4KdYKK7jrx5H89WjRxPWoycydlS3jZ/I2VS/G9yp9gB6PG1T1aY4YAp3LfPHPPqABbtFRHS/jf34/T82FAfb";
},{}],"Fyy7":[function(require,module,exports) {
module.exports="eJxtmNtu20YQhl+F4FULyMGeD7pz3AY1ChtG7NpFA18w1NomIlECSRcxgrx7SVk7+wOdG8H5OJydf2Z2d5gf9cV+t0v9VK/r+6vXsXlOlbHe28paq229qj/t++m62aXZ4J/m8PRb1z9/baZxefK63Z6eXN5dVMvTCh83u277xr/6kLrnl2XNq7TpXnczuZyabdee98/b2VzM/x4/dd/T5qab2pd6PQ2vaVVfvDRD005puE3Lu7eH1HbN9hTjx4/77/X6y5lcnUmjVzHIVVDicVX/1W/SsO36dLMfu6nb9/X6TAoBD+5euvZbn8axXtuZ36dhPJrVQqgPQoh5hev91LWLkIv94W1Ygq9+aX+tZAx2tfz64284/sblN/rqfLP/mqrbt3FKu7G67Nv9cNgPzZQ2H6rz7bb6vLgZq89pTMO/M/xfEqturJpqSM/d7GJIm2oamk3aNcO3av80O5xh3yyKmm1193ZIT02bqovTKjP+MAf++7zsZvZ3276kYyWWXB0z99S18/PbafPHQ71W4fjn/fxnFO+ZvkrT0LVzTr78qB/+nk38bHM9exgP8zr1z9U7jt6840YW5uSJKcZOCaBBnKgm5mU8MVNYyMwWFvO7Ukagkmgg6sDWQ5yFFqjzUrLEaQ3BEmiwNsMSaZS0vgWfOkPHWQowNeTUc0kumnxZvsgPxlGai6VTGUqAVCTQ6QkWnc77DKEiLktSUBJKqHIQZ86d8gCpHYoiEzMsb1ubYy8vW50DChB5ZhGqrijD0EqUIeiaEHIfCg5Kpuu0ApiToaGPSY0uaQsyr65L2oKi1yFt1PLaQ3lzfXTgXodGoJYzglndSLDMPg1sTPJpQJHJigw0QrGERqD9YhyTOgONQDUyuF1zaxuokc/BW2ztXCMrGZ9WMW1oQZHIXWNBkSCfRZEL5BMUiZw6CzVSFCfUSGZFNjIldoKDkonTKQiJIGzWmFd3BizJJ9SINoLDriOfUCOZS+zg+KGD1qGiLNMLxtJD1/ns00ON6EzyUCM6vbxhoBKaqbG3DFQCNiL1iHccBPV0DHhQH/JW8EW90dkyFKGywCJU0WkVSvSGeiSUODWFFD0HYdPQVoiRgfPMA+/nnRgiAyNYSjpWNQcNSMrtFCUH4ZIRpSCWocFCSuhCEY6hoUClc0WC52BJlCYYLQdhN+hygRRRlo5BKRRLS6oihSqh+ZzzRGG1Mo4Iz1LoP0qsxDGFzk0JE42ji0jCPejomJKCuwil4m5CiRMEUMVSzVLDUstSx1Juc0oVWMpqY295qVltmtWmWW2a1aZZbZrVplltmtWmWW2G1WZYbYbVZlhthtVmWG2G1WZYbYbVZlhtltVmWW2W1WZZbZbVZlltltVmWW2W1QYjQCh7E2aAQHeGhCFgPoNoy8KNb2wxBhmGKBxoUZXlLGsLI6AsftEDHV0wIURVbANLcTKlGGBIKPOAxCmhePCKUwFzAmpDFRQvjA9R06Hq8TONvshgKDCuRAZTXigUxjxNFfKRo3CLhnIJBMFRvMZpqpNBMlQJzGT5WFQMVQI/AikPMIhEU1aDjqJvQwmjSHB05cC9jbYwc5UtAHNLhDw41ha+lEqF4JaH3gmB61SYcqInxTDmQK8v08vjqv4zDf1N0w3Lf4A8/vwPpfK11w==";
},{}],"Vkkw":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Font=exports.FontNames=void 0;var e=require("./utils"),r=p(require("./Courier-Bold.compressed.json")),i=p(require("./Courier-BoldOblique.compressed.json")),o=p(require("./Courier-Oblique.compressed.json")),s=p(require("./Courier.compressed.json")),l=p(require("./Helvetica-Bold.compressed.json")),t=p(require("./Helvetica-BoldOblique.compressed.json")),u=p(require("./Helvetica-Oblique.compressed.json")),a=p(require("./Helvetica.compressed.json")),n=p(require("./Times-Bold.compressed.json")),d=p(require("./Times-BoldItalic.compressed.json")),c=p(require("./Times-Italic.compressed.json")),m=p(require("./Times-Roman.compressed.json")),f=p(require("./Symbol.compressed.json")),q=p(require("./ZapfDingbats.compressed.json"));function p(e){return e&&e.__esModule?e:{default:e}}var b,v={Courier:s.default,"Courier-Bold":r.default,"Courier-Oblique":o.default,"Courier-BoldOblique":i.default,Helvetica:a.default,"Helvetica-Bold":l.default,"Helvetica-Oblique":u.default,"Helvetica-BoldOblique":t.default,"Times-Roman":m.default,"Times-Bold":n.default,"Times-Italic":c.default,"Times-BoldItalic":d.default,Symbol:f.default,ZapfDingbats:q.default};exports.FontNames=b,function(e){e.Courier="Courier",e.CourierBold="Courier-Bold",e.CourierOblique="Courier-Oblique",e.CourierBoldOblique="Courier-BoldOblique",e.Helvetica="Helvetica",e.HelveticaBold="Helvetica-Bold",e.HelveticaOblique="Helvetica-Oblique",e.HelveticaBoldOblique="Helvetica-BoldOblique",e.TimesRoman="Times-Roman",e.TimesRomanBold="Times-Bold",e.TimesRomanItalic="Times-Italic",e.TimesRomanBoldItalic="Times-BoldItalic",e.Symbol="Symbol",e.ZapfDingbats="ZapfDingbats"}(b||(exports.FontNames=b={}));var B={},O=function(){function r(){var e=this;this.getWidthOfGlyph=function(r){return e.CharWidths[r]},this.getXAxisKerningForPair=function(r,i){return(e.KernPairXAmounts[r]||{})[i]}}return r.load=function(i){var o=B[i];if(o)return o;var s=(0,e.decompressJson)(v[i]),l=Object.assign(new r,JSON.parse(s));return l.CharWidths=l.CharMetrics.reduce(function(e,r){return e[r.N]=r.WX,e},{}),l.KernPairXAmounts=l.KernPairs.reduce(function(e,r){var i=r[0],o=r[1],s=r[2];return e[i]||(e[i]={}),e[i][o]=s,e},{}),B[i]=l,l},r}();exports.Font=O;
},{"./utils":"qfz1","./Courier-Bold.compressed.json":"Ew6q","./Courier-BoldOblique.compressed.json":"ePNJ","./Courier-Oblique.compressed.json":"XHoe","./Courier.compressed.json":"Riuk","./Helvetica-Bold.compressed.json":"zJda","./Helvetica-BoldOblique.compressed.json":"P77V","./Helvetica-Oblique.compressed.json":"Q7Vp","./Helvetica.compressed.json":"j8O5","./Times-Bold.compressed.json":"tSy8","./Times-BoldItalic.compressed.json":"ARHg","./Times-Italic.compressed.json":"e3gJ","./Times-Roman.compressed.json":"PsRb","./Symbol.compressed.json":"gteo","./ZapfDingbats.compressed.json":"Fyy7"}],"ebU4":[function(require,module,exports) {
module.exports="eJztWsuy48iN/Ret74KZfHtX47meqfGjPHaXx4/wgpJ4JbooUU1JVXXb0f9u4JwESF13R7TD29koIpFi8gCJBHDA/Pvm+nraTuPmZ3/f5HHzs7/k8WlzvXS7fvPXp02eqyR/2vRfd2N3gqhUUfm0Od9P236+DoczxLWK66fNpZ93/fkGWaOy5mnTnUR67c57lRaZSItM/tnN/XnsX/DfIqg0JOk8HI4UK4BCAFzG+xWCQgXF02Y3nU4dJJVKKrx5mPgKBVMImOvYXY+QKJRCoHzXzxMErQrap810hqaloioF1e0L5kvFUwqe23Hu+Q+1TinWeZnuMwSKrRRsL8Nn/kOxlYLtOnzFWE1Viqmu/eceVioVaylYe1OwVKilQD0PCYgiLRtVcJz4kEItW13mNLi0UsCVAB77KyxTKeJKEPff3rsREkVcCeLD3He3HqArBV0J6G/v/fU2cK1WH23l0e3c7T71N9uUVv/c5i73bWlVs1Y0u5/3srO7aQb2EPUB+eUTva0TYgG5mGbbzZSUkJTpn75ygF4PThhq1SMGMds4HYZdN54n/rdWc8rv02bfH9I2hbqGsKbPnIYzHSc0qmTIxI6nuwpiAIQmU8F4Gy7jK8RwntAI1v3wedj39FmFECp508s4zUOyGmwpKrwbL8eOIlVU//Yf/S1J9C212Pa/uuSwbVDYlWzxf/aj/UtfWgm258t1GG1X1BVawfdnX0xdoRbjPCdBVGs1svo3R/tPVD1r2YL3k0kUfC04f9ldLkmk0NVwv+pO232SKXa126/vHAO5wPxNGivsRsZ/HDhWzLVg/iBuOSfMUTGrTX+b/qSIG0H8u+NEl1J4jcD7/XBI9kDcUYN/0/FNCDuNAP64skYOeLrykUsjElWC9+cmAEAB9NtrEijCplaE/YHvKuC5Iup8zx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AQVAqDimSFmFIYVPaKFGphUNktUqiFQUVaUvLVFbaHSEZK47vC0LNfpOgLQ8+OkaIvDD2SjZbOXWHokWBQgJeGHkmlwaEz9EglKHFKQ48og8qmNPQgJEp0u9LQg4mAjJeGnm0rRV8aeratFH1p6EE8tBnQlYYebSutwLrS0KNrhRZYZegRbpV3dpWhR8tKSU9XGXr2rJTsdJXBTz0ruLjhT00rVaAyBVLTSjWoTIPUs1IVKlOBbSulAV1lOrBzpZS2q0wJNq8yhH7TovIOb1cb5tSXUny14Ut9KUYQUyS1phRgbaDZmEIiFrKThCnpIMMYGrZh0JBo7M01e+H65sZeUpPp6ZsbX4+dcH1xa1YgxYsIAWYF9rXBI1p/L9tiiL6ZmYGtrYpZybaz8caUCA1iA4iIPcEN0ZAQIuq70g2ZPCOQ7R+yE5riIjTojfMRESbsge1zHMhgsSlk5PR4u0WnQDraMOdEE7JTj7dbhAqpw4K3W4wKGZv3eHtempBkA+nHQldgrwXHM1jwCgj0pB7BwlcIbI7BnhbAAmsvHNJgISyw+MIxDRbEAqsvHNRgYSyw/GqZSE0j1l84rMFCWWABhuMaLJgFVmA4sMHCWUi8CRpZQAvkSzizwUJaIE/CoQ0W1ALpEU5tsLDGDzqg6yI0jaKzfxGaRuRBOLjBglsgAcpYHZhG5D04usECXCDdQd0WLMQFshwc6GBBLqQOETSyMBdIa3DMgwW6QD6Dcx4s1AXyDpSRYmoTsrpmzWKQyDJw0GWjTci2GCBZIAtkFDj+wSJZIJPA+Q8WygIJRCQkw8meFCJAsGAWCu8BiNAsjzTAXkKwEBfYg2IQqM3y7EFFauT/ZAcUGlk0DAU7nyzETPeSHBIa1aZmSe4IjWpTsyRphEa1qVmSTFMjU7Mki4ZGreEsSZ+hUWO6s7+bc4/8cdJlaNSYQdjTRbEbM3+c5BgaWTgOSA7stkSLiqFiCwbgLUiHinQX4C1Kh4p
},{}],"fcKG":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Encodings=void 0;var n=require("./utils"),e=o(require("./all-encodings.compressed.json"));function o(n){return n&&n.__esModule?n:{default:n}}var i=(0,n.decompressJson)(e.default),t=JSON.parse(i),r=function(){return function(e,o){var i=this;this.canEncodeUnicodeCodePoint=function(n){return n in i.unicodeMappings},this.encodeUnicodeCodePoint=function(e){var o=i.unicodeMappings[e];if(!o){var t=String.fromCharCode(e),r="0x"+(0,n.padStart)(e.toString(16),4,"0"),s=i.name+' cannot encode "'+t+'" ('+r+")";throw new Error(s)}return{code:o[0],name:o[1]}},this.name=e,this.supportedCodePoints=Object.keys(o).map(Number).sort(function(n,e){return n-e}),this.unicodeMappings=o}}(),s={Symbol:new r("Symbol",t.symbol),ZapfDingbats:new r("ZapfDingbats",t.zapfdingbats),WinAnsi:new r("WinAnsi",t.win1252)};exports.Encodings=s;
},{"./utils":"qfz1","./all-encodings.compressed.json":"ebU4"}],"ALwg":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Font");Object.keys(e).forEach(function(r){"default"!==r&&"__esModule"!==r&&(r in exports&&exports[r]===e[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return e[r]}}))});var r=require("./Encoding");Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in exports&&exports[e]===r[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return r[e]}}))});
},{"./Font":"Vkkw","./Encoding":"fcKG"}],"qDca":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.rectanglesAreEqual=exports.isStandardFont=exports.StandardFontValues=exports.values=void 0;var e=require("@pdf-lib/standard-fonts"),t=function(e){return Object.keys(e).map(function(t){return e[t]})};exports.values=t;var r=t(e.FontNames);exports.StandardFontValues=r;var n=function(e){return r.includes(e)};exports.isStandardFont=n;var a=function(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height};exports.rectanglesAreEqual=a;
},{"@pdf-lib/standard-fonts":"ALwg"}],"Ank5":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.assertMultiple=exports.assertRangeOrUndefined=exports.assertRange=exports.assertEachIs=exports.assertOrUndefined=exports.assertIs=exports.createTypeErrorMsg=exports.isType=exports.getType=exports.assertIsSubset=exports.assertIsOneOfOrUndefined=exports.assertIsOneOf=exports.createValueErrorMsg=exports.singleQuote=exports.backtick=void 0;var r=require("./objects"),e=function(r){return"`"+r+"`"};exports.backtick=e;var t=function(r){return"'"+r+"'"};exports.singleQuote=t;var n=function(r){var n=typeof r;return"string"===n?t(r):"undefined"===n?e(r):r},o=function(r,t,o){for(var s=new Array(o.length),a=0,i=o.length;a<i;a++){var u=o[a];s[a]=n(u)}var f=s.join(" or ");return e(t)+" must be one of "+f+", but was actually "+n(r)};exports.createValueErrorMsg=o;var s=function(e,t,n){Array.isArray(n)||(n=(0,r.values)(n));for(var s=0,a=n.length;s<a;s++)if(e===n[s])return;throw new TypeError(o(e,t,n))};exports.assertIsOneOf=s;var a=function(e,t,n){Array.isArray(n)||(n=(0,r.values)(n)),s(e,t,n.concat(void 0))};exports.assertIsOneOfOrUndefined=a;var i=function(e,t,n){Array.isArray(n)||(n=(0,r.values)(n));for(var o=0,a=e.length;o<a;o++)s(e[o],t,n)};exports.assertIsSubset=i;var u=function(r){return null===r?"null":void 0===r?"undefined":"string"==typeof r?"string":isNaN(r)?"NaN":"number"==typeof r?"number":"boolean"==typeof r?"boolean":"symbol"==typeof r?"symbol":"bigint"==typeof r?"bigint":r.constructor&&r.constructor.name?r.constructor.name:r.name?r.name:r.constructor?String(r.constructor):String(r)};exports.getType=u;var f=function(r,e){return"null"===e?null===r:"undefined"===e?void 0===r:"string"===e?"string"==typeof r:"number"===e?"number"==typeof r&&!isNaN(r):"boolean"===e?"boolean"==typeof r:"symbol"===e?"symbol"==typeof r:"bigint"===e?"bigint"==typeof r:e===Date?r instanceof Date:e===Array?r instanceof Array:e===Uint8Array?r instanceof Uint8Array:e===ArrayBuffer?r instanceof ArrayBuffer:e===Function?r instanceof Function:r instanceof e[0]};exports.isType=f;var p=function(r,t,n){for(var o=new Array(n.length),s=0,a=n.length;s<a;s++){var i=n[s];"null"===i&&(o[s]=e("null")),"undefined"===i&&(o[s]=e("undefined")),"string"===i?o[s]=e("string"):"number"===i?o[s]=e("number"):"boolean"===i?o[s]=e("boolean"):"symbol"===i?o[s]=e("symbol"):"bigint"===i?o[s]=e("bigint"):i===Array?o[s]=e("Array"):i===Uint8Array?o[s]=e("Uint8Array"):i===ArrayBuffer?o[s]=e("ArrayBuffer"):o[s]=e(i[1])}var f=o.join(" or ");return e(t)+" must be of type "+f+", but was actually of type "+e(u(r))};exports.createTypeErrorMsg=p;var l=function(r,e,t){for(var n=0,o=t.length;n<o;n++)if(f(r,t[n]))return;throw new TypeError(p(r,e,t))};exports.assertIs=l;var c=function(r,e,t){l(r,e,t.concat("undefined"))};exports.assertOrUndefined=c;var y=function(r,e,t){for(var n=0,o=r.length;n<o;n++)l(r[n],e,t)};exports.assertEachIs=y;var b=function(r,t,n,o){if(l(r,t,["number"]),l(n,"min",["number"]),l(o,"max",["number"]),o=Math.max(n,o),r<n||r>o)throw new Error(e(t)+" must be at least "+n+" and at most "+o+", but was actually "+r)};exports.assertRange=b;var g=function(r,e,t,n){l(r,e,["number","undefined"]),"number"==typeof r&&b(r,e,t,n)};exports.assertRangeOrUndefined=g;var v=function(r,t,n){if(l(r,t,["number"]),r%n!=0)throw new Error(e(t)+" must be a multiple of "+n+", but was actually "+r)};exports.assertMultiple=v;
},{"./objects":"qDca"}],"qjx6":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.pdfDocEncodingDecode=void 0;for(var o=require("./strings"),C=new Uint16Array(256),e=0;e<256;e++)C[e]=e;C[22]=(0,o.toCharCode)(""),C[24]=(0,o.toCharCode)("˘"),C[25]=(0,o.toCharCode)("ˇ"),C[26]=(0,o.toCharCode)("ˆ"),C[27]=(0,o.toCharCode)("˙"),C[28]=(0,o.toCharCode)("˝"),C[29]=(0,o.toCharCode)("˛"),C[30]=(0,o.toCharCode)("˚"),C[31]=(0,o.toCharCode)("˜"),C[127]=(0,o.toCharCode)("<22>"),C[128]=(0,o.toCharCode)("•"),C[129]=(0,o.toCharCode)("†"),C[130]=(0,o.toCharCode)("‡"),C[131]=(0,o.toCharCode)("…"),C[132]=(0,o.toCharCode)("—"),C[133]=(0,o.toCharCode)(""),C[134]=(0,o.toCharCode)("ƒ"),C[135]=(0,o.toCharCode)(""),C[136]=(0,o.toCharCode)(""),C[137]=(0,o.toCharCode)(""),C[138]=(0,o.toCharCode)(""),C[139]=(0,o.toCharCode)("‰"),C[140]=(0,o.toCharCode)("„"),C[141]=(0,o.toCharCode)("“"),C[142]=(0,o.toCharCode)("”"),C[143]=(0,o.toCharCode)(""),C[144]=(0,o.toCharCode)(""),C[145]=(0,o.toCharCode)(""),C[146]=(0,o.toCharCode)("™"),C[147]=(0,o.toCharCode)("fi"),C[148]=(0,o.toCharCode)("fl"),C[149]=(0,o.toCharCode)("Ł"),C[150]=(0,o.toCharCode)("Œ"),C[151]=(0,o.toCharCode)("Š"),C[152]=(0,o.toCharCode)("Ÿ"),C[153]=(0,o.toCharCode)("Ž"),C[154]=(0,o.toCharCode)("ı"),C[155]=(0,o.toCharCode)("ł"),C[156]=(0,o.toCharCode)("œ"),C[157]=(0,o.toCharCode)("š"),C[158]=(0,o.toCharCode)("ž"),C[159]=(0,o.toCharCode)("<22>"),C[160]=(0,o.toCharCode)("€"),C[173]=(0,o.toCharCode)("<22>");var r=function(o){for(var e=new Array(o.length),r=0,t=o.length;r<t;r++)e[r]=C[o[r]];return String.fromCodePoint.apply(String,e)};exports.pdfDocEncodingDecode=r;
},{"./strings":"aovk"}],"TeRo":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=function(){function t(t){this.populate=t,this.value=void 0}return t.prototype.getValue=function(){return this.value},t.prototype.access=function(){return this.value||(this.value=this.populate()),this.value},t.prototype.invalidate=function(){this.value=void 0},t.populatedBy=function(e){return new t(e)},t}(),e=t;exports.default=e;
},{}],"eZqv":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={Cache:!0};Object.defineProperty(exports,"Cache",{enumerable:!0,get:function(){return f.default}});var r=require("./arrays");Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in exports&&exports[t]===r[t]||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return r[t]}}))});var t=require("./async");Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===t[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return t[r]}}))});var o=require("./strings");Object.keys(o).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===o[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return o[r]}}))});var n=require("./unicode");Object.keys(n).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===n[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return n[r]}}))});var u=require("./numbers");Object.keys(u).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===u[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return u[r]}}))});var c=require("./errors");Object.keys(c).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===c[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return c[r]}}))});var a=require("./base64");Object.keys(a).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===a[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return a[r]}}))});var p=require("./objects");Object.keys(p).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===p[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return p[r]}}))});var s=require("./validators");Object.keys(s).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===s[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return s[r]}}))});var i=require("./pdfDocEncoding");Object.keys(i).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===i[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return i[r]}}))});var f=l(require("./Cache"));function l(e){return e&&e.__esModule?e:{default:e}}
},{"./arrays":"bjyy","./async":"aLG7","./strings":"aovk","./unicode":"NVV9","./numbers":"qrZR","./errors":"vca4","./base64":"KDEW","./objects":"qDca","./validators":"Ank5","./pdfDocEncoding":"qjx6","./Cache":"TeRo"}],"sGQ3":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingKeywordError=exports.MissingPDFHeaderError=exports.StalledParserError=exports.UnbalancedParenthesisError=exports.PDFStreamParsingError=exports.PDFInvalidObjectParsingError=exports.PDFObjectParsingError=exports.NextByteAssertionError=exports.PDFParsingError=exports.NumberParsingError=exports.MultiSelectValueError=exports.InvalidAcroFieldValueError=exports.IndexOutOfBoundsError=exports.CorruptPageTreeError=exports.InvalidTargetIndexError=exports.InvalidPDFDateStringError=exports.PDFArrayIsNotRectangleError=exports.PageEmbeddingMismatchedContextError=exports.UnrecognizedStreamTypeError=exports.MissingPageContentsEmbeddingError=exports.MissingCatalogError=exports.ReparseError=exports.UnsupportedEncodingError=exports.UnexpectedObjectTypeError=exports.PrivateConstructorError=exports.MethodNotImplementedError=void 0;var r=require("tslib"),t=require("../utils"),e=function(t){function e(r,e){var n="Method "+r+"."+e+"() not implemented";return t.call(this,n)||this}return(0,r.__extends)(e,t),e}(Error);exports.MethodNotImplementedError=e;var n=function(t){function e(r){var e="Cannot construct "+r+" - it has a private constructor";return t.call(this,e)||this}return(0,r.__extends)(e,t),e}(Error);exports.PrivateConstructorError=n;var o=function(t){function e(r,e){var n=function(r){var t,e;return null!==(t=null==r?void 0:r.name)&&void 0!==t?t:null===(e=null==r?void 0:r.constructor)||void 0===e?void 0:e.name},o="Expected instance of "+(Array.isArray(r)?r.map(n):[n(r)]).join(" or ")+", but got instance of "+(e?n(e):e);return t.call(this,o)||this}return(0,r.__extends)(e,t),e}(Error);exports.UnexpectedObjectTypeError=o;var s=function(t){function e(r){var e=r+" stream encoding not supported";return t.call(this,e)||this}return(0,r.__extends)(e,t),e}(Error);exports.UnsupportedEncodingError=s;var i=function(t){function e(r,e){var n="Cannot call "+r+"."+e+"() more than once";return t.call(this,n)||this}return(0,r.__extends)(e,t),e}(Error);exports.ReparseError=i;var a=function(t){function e(r){var e="Missing catalog (ref="+r+")";return t.call(this,e)||this}return(0,r.__extends)(e,t),e}(Error);exports.MissingCatalogError=a;var u=function(t){function e(){return t.call(this,"Can't embed page with missing Contents")||this}return(0,r.__extends)(e,t),e}(Error);exports.MissingPageContentsEmbeddingError=u;var l=function(t){function e(r){var e,n,o,s="Unrecognized stream type: "+(null!==(o=null!==(n=null===(e=null==r?void 0:r.contructor)||void 0===e?void 0:e.name)&&void 0!==n?n:null==r?void 0:r.name)&&void 0!==o?o:r);return t.call(this,s)||this}return(0,r.__extends)(e,t),e}(Error);exports.UnrecognizedStreamTypeError=l;var c=function(t){function e(){return t.call(this,"Found mismatched contexts while embedding pages. All pages in the array passed to `PDFDocument.embedPages()` must be from the same document.")||this}return(0,r.__extends)(e,t),e}(Error);exports.PageEmbeddingMismatchedContextError=c;var d=function(t){function e(r){var e="Attempted to convert PDFArray with "+r+" elements to rectangle, but must have exactly 4 elements.";return t.call(this,e)||this}return(0,r.__extends)(e,t),e}(Error);exports.PDFArrayIsNotRectangleError=d;var x=function(t){function e(r){var e='Attempted to convert "'+r+'" to a date, but it does not match the PDF date string format.';return t.call(this,e)||this}return(0,r.__extends)(e,t),e}(Error);exports.InvalidPDFDateStringError=x;var p=function(t){function e(r,e){var n="Invalid targetIndex specified: targetIndex="+r+" must be less than Count="+e;return t.call(this,n)||this}return(0,r.__extends)(e,t),e}(Error);exports.InvalidTargetIndexError=p;var E=function(t){function e(r,e){var n="Failed to "+e+" at targetIndex="+r+" due to corrupt page tree: It is likely that one or more 'Count' entries are invalid";return t.call(this,n)||this}return(0,r.__extends)(e,t),e}(Error);exports.CorruptPageTreeError=E;var h=function(t){function e(r,e,n){var o="index should be at least "+e+" and at most "+n+", but was actually "+r;return t.call(this,o)||this}return(0,
},{"tslib":"vCxL","../utils":"eZqv"}],"mfDG":[function(require,module,exports) {
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,function(e){e[e.Null=0]="Null",e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Newline=10]="Newline",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationPoint=33]="ExclamationPoint",e[e.Hash=35]="Hash",e[e.Percent=37]="Percent",e[e.LeftParen=40]="LeftParen",e[e.RightParen=41]="RightParen",e[e.Plus=43]="Plus",e[e.Minus=45]="Minus",e[e.Dash=45]="Dash",e[e.Period=46]="Period",e[e.ForwardSlash=47]="ForwardSlash",e[e.Zero=48]="Zero",e[e.One=49]="One",e[e.Two=50]="Two",e[e.Three=51]="Three",e[e.Four=52]="Four",e[e.Five=53]="Five",e[e.Six=54]="Six",e[e.Seven=55]="Seven",e[e.Eight=56]="Eight",e[e.Nine=57]="Nine",e[e.LessThan=60]="LessThan",e[e.GreaterThan=62]="GreaterThan",e[e.A=65]="A",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.O=79]="O",e[e.P=80]="P",e[e.R=82]="R",e[e.LeftSquareBracket=91]="LeftSquareBracket",e[e.BackSlash=92]="BackSlash",e[e.RightSquareBracket=93]="RightSquareBracket",e[e.a=97]="a",e[e.b=98]="b",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.i=105]="i",e[e.j=106]="j",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.x=120]="x",e[e.LeftCurly=123]="LeftCurly",e[e.RightCurly=125]="RightCurly",e[e.Tilde=126]="Tilde"}(e||(e={}));var a=e;exports.default=a;
},{}],"FVEo":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=r(require("../syntax/CharCodes")),e=require("../../utils");function r(t){return t&&t.__esModule?t:{default:t}}var n=function(){function r(t,e){this.major=String(t),this.minor=String(e)}return r.prototype.toString=function(){var t=(0,e.charFromCode)(129);return"%PDF-"+this.major+"."+this.minor+"\n%"+t+t+t+t},r.prototype.sizeInBytes=function(){return 12+this.major.length+this.minor.length},r.prototype.copyBytesInto=function(r,n){var o=n;return r[n++]=t.default.Percent,r[n++]=t.default.P,r[n++]=t.default.D,r[n++]=t.default.F,r[n++]=t.default.Dash,n+=(0,e.copyStringIntoBuffer)(this.major,r,n),r[n++]=t.default.Period,n+=(0,e.copyStringIntoBuffer)(this.minor,r,n),r[n++]=t.default.Newline,r[n++]=t.default.Percent,r[n++]=129,r[n++]=129,r[n++]=129,r[n++]=129,n-o},r.forVersion=function(t,e){return new r(t,e)},r}(),o=n;exports.default=o;
},{"../syntax/CharCodes":"mfDG","../../utils":"eZqv"}],"gBDq":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("../errors"),e=function(){function e(){}return e.prototype.clone=function(e){throw new t.MethodNotImplementedError(this.constructor.name,"clone")},e.prototype.toString=function(){throw new t.MethodNotImplementedError(this.constructor.name,"toString")},e.prototype.sizeInBytes=function(){throw new t.MethodNotImplementedError(this.constructor.name,"sizeInBytes")},e.prototype.copyBytesInto=function(e,o){throw new t.MethodNotImplementedError(this.constructor.name,"copyBytesInto")},e}(),o=e;exports.default=o;
},{"../errors":"sGQ3"}],"m342":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=require("../../utils/index"),r=n(require("./PDFObject"));function n(t){return t&&t.__esModule?t:{default:t}}var u=function(r){function n(t){var n=r.call(this)||this;return n.numberValue=t,n.stringValue=(0,e.numberToString)(t),n}return(0,t.__extends)(n,r),n.prototype.asNumber=function(){return this.numberValue},n.prototype.value=function(){return this.numberValue},n.prototype.clone=function(){return n.of(this.numberValue)},n.prototype.toString=function(){return this.stringValue},n.prototype.sizeInBytes=function(){return this.stringValue.length},n.prototype.copyBytesInto=function(t,r){return r+=(0,e.copyStringIntoBuffer)(this.stringValue,t,r),this.stringValue.length},n.of=function(t){return new n(t)},n}(r.default),o=u;exports.default=o;
},{"tslib":"vCxL","../../utils/index":"eZqv","./PDFObject":"gBDq"}],"eics":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=n(require("./PDFNumber")),r=n(require("./PDFObject")),o=n(require("../syntax/CharCodes")),i=require("../errors");function n(t){return t&&t.__esModule?t:{default:t}}var s=function(r){function n(t){var e=r.call(this)||this;return e.array=[],e.context=t,e}return(0,t.__extends)(n,r),n.prototype.size=function(){return this.array.length},n.prototype.push=function(t){this.array.push(t)},n.prototype.insert=function(t,e){this.array.splice(t,0,e)},n.prototype.remove=function(t){this.array.splice(t,1)},n.prototype.set=function(t,e){this.array[t]=e},n.prototype.get=function(t){return this.array[t]},n.prototype.lookupMaybe=function(e){for(var r,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return(r=this.context).lookupMaybe.apply(r,(0,t.__spreadArrays)([this.get(e)],o))},n.prototype.lookup=function(e){for(var r,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return(r=this.context).lookup.apply(r,(0,t.__spreadArrays)([this.get(e)],o))},n.prototype.asRectangle=function(){if(4!==this.size())throw new i.PDFArrayIsNotRectangleError(this.size());var t=this.lookup(0,e.default).asNumber(),r=this.lookup(1,e.default).asNumber();return{x:t,y:r,width:this.lookup(2,e.default).asNumber()-t,height:this.lookup(3,e.default).asNumber()-r}},n.prototype.asArray=function(){return this.array.slice()},n.prototype.clone=function(t){for(var e=n.withContext(t||this.context),r=0,o=this.size();r<o;r++)e.push(this.array[r]);return e},n.prototype.toString=function(){for(var t="[ ",e=0,r=this.size();e<r;e++)t+=this.get(e).toString(),t+=" ";return t+="]"},n.prototype.sizeInBytes=function(){for(var t=3,e=0,r=this.size();e<r;e++)t+=this.get(e).sizeInBytes()+1;return t},n.prototype.copyBytesInto=function(t,e){var r=e;t[e++]=o.default.LeftSquareBracket,t[e++]=o.default.Space;for(var i=0,n=this.size();i<n;i++)e+=this.get(i).copyBytesInto(t,e),t[e++]=o.default.Space;return t[e++]=o.default.RightSquareBracket,e-r},n.withContext=function(t){return new n(t)},n}(r.default),u=s;exports.default=u;
},{"tslib":"vCxL","./PDFNumber":"m342","./PDFObject":"gBDq","../syntax/CharCodes":"mfDG","../errors":"sGQ3"}],"CkjB":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=require("../errors"),r=o(require("./PDFObject")),u=o(require("../syntax/CharCodes"));function o(e){return e&&e.__esModule?e:{default:e}}var n={},a=function(r){function o(e,u){var o=this;if(e!==n)throw new t.PrivateConstructorError("PDFBool");return(o=r.call(this)||this).value=u,o}return(0,e.__extends)(o,r),o.prototype.asBoolean=function(){return this.value},o.prototype.clone=function(){return this},o.prototype.toString=function(){return String(this.value)},o.prototype.sizeInBytes=function(){return this.value?4:5},o.prototype.copyBytesInto=function(e,t){return this.value?(e[t++]=u.default.t,e[t++]=u.default.r,e[t++]=u.default.u,e[t++]=u.default.e,4):(e[t++]=u.default.f,e[t++]=u.default.a,e[t++]=u.default.l,e[t++]=u.default.s,e[t++]=u.default.e,5)},o.True=new o(n,!0),o.False=new o(n,!1),o}(r.default),i=a;exports.default=i;
},{"tslib":"vCxL","../errors":"sGQ3","./PDFObject":"gBDq","../syntax/CharCodes":"mfDG"}],"mRdK":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=n(require("./PDFObject")),r=n(require("../syntax/CharCodes"));function n(t){return t&&t.__esModule?t:{default:t}}var u=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.__extends)(n,e),n.prototype.asNull=function(){return null},n.prototype.clone=function(){return this},n.prototype.toString=function(){return"null"},n.prototype.sizeInBytes=function(){return 4},n.prototype.copyBytesInto=function(t,e){return t[e++]=r.default.n,t[e++]=r.default.u,t[e++]=r.default.l,t[e++]=r.default.l,4},n}(e.default),o=new u;exports.default=o;
},{"tslib":"vCxL","./PDFObject":"gBDq","../syntax/CharCodes":"mfDG"}],"SzSo":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=o(require("./PDFNull")),r=o(require("./PDFObject")),n=o(require("../syntax/CharCodes"));function o(t){return t&&t.__esModule?t:{default:t}}var i=function(r){function o(t,e){var n=r.call(this)||this;return n.dict=t,n.context=e,n}return(0,t.__extends)(o,r),o.prototype.keys=function(){return Array.from(this.dict.keys())},o.prototype.values=function(){return Array.from(this.dict.values())},o.prototype.entries=function(){return Array.from(this.dict.entries())},o.prototype.set=function(t,e){this.dict.set(t,e)},o.prototype.get=function(t,r){void 0===r&&(r=!1);var n=this.dict.get(t);if(n!==e.default||r)return n},o.prototype.has=function(t){var r=this.dict.get(t);return void 0!==r&&r!==e.default},o.prototype.lookupMaybe=function(r){for(var n,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];var u=o.includes(e.default),a=(n=this.context).lookupMaybe.apply(n,(0,t.__spreadArrays)([this.get(r,u)],o));if(a!==e.default||u)return a},o.prototype.lookup=function(r){for(var n,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];var u=o.includes(e.default),a=(n=this.context).lookup.apply(n,(0,t.__spreadArrays)([this.get(r,u)],o));if(a!==e.default||u)return a},o.prototype.delete=function(t){return this.dict.delete(t)},o.prototype.asMap=function(){return new Map(this.dict)},o.prototype.clone=function(t){for(var e=o.withContext(t||this.context),r=this.entries(),n=0,i=r.length;n<i;n++){var u=r[n],a=u[0],s=u[1];e.set(a,s)}return e},o.prototype.toString=function(){for(var t="<<\n",e=this.entries(),r=0,n=e.length;r<n;r++){var o=e[r],i=o[0],u=o[1];t+=i.toString()+" "+u.toString()+"\n"}return t+=">>"},o.prototype.sizeInBytes=function(){for(var t=5,e=this.entries(),r=0,n=e.length;r<n;r++){var o=e[r],i=o[0],u=o[1];t+=i.sizeInBytes()+u.sizeInBytes()+2}return t},o.prototype.copyBytesInto=function(t,e){var r=e;t[e++]=n.default.LessThan,t[e++]=n.default.LessThan,t[e++]=n.default.Newline;for(var o=this.entries(),i=0,u=o.length;i<u;i++){var a=o[i],s=a[0],f=a[1];e+=s.copyBytesInto(t,e),t[e++]=n.default.Space,e+=f.copyBytesInto(t,e),t[e++]=n.default.Newline}return t[e++]=n.default.GreaterThan,t[e++]=n.default.GreaterThan,e-r},o.withContext=function(t){return new o(new Map,t)},o.fromMapWithContext=function(t,e){return new o(t,e)},o}(r.default),u=i;exports.default=u;
},{"tslib":"vCxL","./PDFNull":"mRdK","./PDFObject":"gBDq","../syntax/CharCodes":"mfDG"}],"XMgE":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IsDelimiter=void 0;var e=t(require("./CharCodes"));function t(e){return e&&e.__esModule?e:{default:e}}var r=new Uint8Array(256);exports.IsDelimiter=r,r[e.default.LeftParen]=1,r[e.default.RightParen]=1,r[e.default.LessThan]=1,r[e.default.GreaterThan]=1,r[e.default.LeftSquareBracket]=1,r[e.default.RightSquareBracket]=1,r[e.default.LeftCurly]=1,r[e.default.RightCurly]=1,r[e.default.ForwardSlash]=1,r[e.default.Percent]=1;
},{"./CharCodes":"mfDG"}],"IJED":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IsWhitespace=void 0;var e=t(require("./CharCodes"));function t(e){return e&&e.__esModule?e:{default:e}}var r=new Uint8Array(256);exports.IsWhitespace=r,r[e.default.Null]=1,r[e.default.Tab]=1,r[e.default.Newline]=1,r[e.default.FormFeed]=1,r[e.default.CarriageReturn]=1,r[e.default.Space]=1;
},{"./CharCodes":"mfDG"}],"zvuD":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IsIrregular=void 0;var e=t(require("./CharCodes")),r=require("./Delimiters"),s=require("./Whitespace");function t(e){return e&&e.__esModule?e:{default:e}}var i=new Uint8Array(256);exports.IsIrregular=i;for(var a=0,u=256;a<u;a++)i[a]=s.IsWhitespace[a]||r.IsDelimiter[a]?1:0;i[e.default.Hash]=1;
},{"./CharCodes":"mfDG","./Delimiters":"XMgE","./Whitespace":"IJED"}],"EEtc":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=require("../errors"),o=u(require("./PDFObject")),r=u(require("../syntax/CharCodes")),n=require("../syntax/Irregular"),a=require("../../utils");function u(e){return e&&e.__esModule?e:{default:e}}var f=function(e){return e.replace(/#([\dABCDEF]{2})/g,function(e,t){return(0,a.charFromHexCode)(t)})},i=function(e){return e>=r.default.ExclamationPoint&&e<=r.default.Tilde&&!n.IsIrregular[e]},d={},s=new Map,c=function(o){function n(e,r){var n=this;if(e!==d)throw new t.PrivateConstructorError("PDFName");n=o.call(this)||this;for(var u="/",f=0,s=r.length;f<s;f++){var c=r[f],l=(0,a.toCharCode)(c);u+=i(l)?c:"#"+(0,a.toHexString)(l)}return n.encodedName=u,n}return(0,e.__extends)(n,o),n.prototype.asBytes=function(){for(var e=[],t="",o=!1,n=function(t){void 0!==t&&e.push(t),o=!1},u=1,f=this.encodedName.length;u<f;u++){var i=this.encodedName[u],d=(0,a.toCharCode)(i),s=this.encodedName[u+1];o?d>=r.default.Zero&&d<=r.default.Nine||d>=r.default.a&&d<=r.default.f||d>=r.default.A&&d<=r.default.F?2!==(t+=i).length&&(s>="0"&&s<="9"||s>="a"&&s<="f"||s>="A"&&s<="F")||(n(parseInt(t,16)),t=""):n(d):d===r.default.Hash?o=!0:n(d)}return new Uint8Array(e)},n.prototype.decodeText=function(){var e=this.asBytes();return String.fromCharCode.apply(String,Array.from(e))},n.prototype.asString=function(){return this.encodedName},n.prototype.value=function(){return this.encodedName},n.prototype.clone=function(){return this},n.prototype.toString=function(){return this.encodedName},n.prototype.sizeInBytes=function(){return this.encodedName.length},n.prototype.copyBytesInto=function(e,t){return t+=(0,a.copyStringIntoBuffer)(this.encodedName,e,t),this.encodedName.length},n.of=function(e){var t=f(e),o=s.get(t);return o||(o=new n(d,t),s.set(t,o)),o},n.Length=n.of("Length"),n.FlateDecode=n.of("FlateDecode"),n.Resources=n.of("Resources"),n.Font=n.of("Font"),n.XObject=n.of("XObject"),n.ExtGState=n.of("ExtGState"),n.Contents=n.of("Contents"),n.Type=n.of("Type"),n.Parent=n.of("Parent"),n.MediaBox=n.of("MediaBox"),n.Page=n.of("Page"),n.Annots=n.of("Annots"),n.TrimBox=n.of("TrimBox"),n.ArtBox=n.of("ArtBox"),n.BleedBox=n.of("BleedBox"),n.CropBox=n.of("CropBox"),n.Rotate=n.of("Rotate"),n.Title=n.of("Title"),n.Author=n.of("Author"),n.Subject=n.of("Subject"),n.Creator=n.of("Creator"),n.Keywords=n.of("Keywords"),n.Producer=n.of("Producer"),n.CreationDate=n.of("CreationDate"),n.ModDate=n.of("ModDate"),n}(o.default),l=c;exports.default=l;
},{"tslib":"vCxL","../errors":"sGQ3","./PDFObject":"gBDq","../syntax/CharCodes":"mfDG","../syntax/Irregular":"zvuD","../../utils":"eZqv"}],"a9WL":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=require("../errors"),n=u(require("./PDFName")),r=u(require("./PDFNumber")),o=u(require("./PDFObject")),i=u(require("../syntax/CharCodes"));function u(t){return t&&t.__esModule?t:{default:t}}var s=function(o){function u(t){var e=o.call(this)||this;return e.dict=t,e}return(0,t.__extends)(u,o),u.prototype.clone=function(t){throw new e.MethodNotImplementedError(this.constructor.name,"clone")},u.prototype.getContentsString=function(){throw new e.MethodNotImplementedError(this.constructor.name,"getContentsString")},u.prototype.getContents=function(){throw new e.MethodNotImplementedError(this.constructor.name,"getContents")},u.prototype.getContentsSize=function(){throw new e.MethodNotImplementedError(this.constructor.name,"getContentsSize")},u.prototype.updateDict=function(){var t=this.getContentsSize();this.dict.set(n.default.Length,r.default.of(t))},u.prototype.sizeInBytes=function(){return this.updateDict(),this.dict.sizeInBytes()+this.getContentsSize()+18},u.prototype.toString=function(){this.updateDict();var t=this.dict.toString();return t+="\nstream\n",t+=this.getContentsString(),t+="\nendstream"},u.prototype.copyBytesInto=function(t,e){this.updateDict();var n=e;e+=this.dict.copyBytesInto(t,e),t[e++]=i.default.Newline,t[e++]=i.default.s,t[e++]=i.default.t,t[e++]=i.default.r,t[e++]=i.default.e,t[e++]=i.default.a,t[e++]=i.default.m,t[e++]=i.default.Newline;for(var r=this.getContents(),o=0,u=r.length;o<u;o++)t[e++]=r[o];return t[e++]=i.default.Newline,t[e++]=i.default.e,t[e++]=i.default.n,t[e++]=i.default.d,t[e++]=i.default.s,t[e++]=i.default.t,t[e++]=i.default.r,t[e++]=i.default.e,t[e++]=i.default.a,t[e++]=i.default.m,e-n},u}(o.default),d=s;exports.default=d;
},{"tslib":"vCxL","../errors":"sGQ3","./PDFName":"EEtc","./PDFNumber":"m342","./PDFObject":"gBDq","../syntax/CharCodes":"mfDG"}],"ws4b":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=r(require("./PDFStream")),n=require("../../utils");function r(t){return t&&t.__esModule?t:{default:t}}var o=function(e){function r(t,n){var r=e.call(this,t)||this;return r.contents=n,r}return(0,t.__extends)(r,e),r.prototype.asUint8Array=function(){return this.contents.slice()},r.prototype.clone=function(t){return r.of(this.dict.clone(t),this.contents.slice())},r.prototype.getContentsString=function(){return(0,n.arrayAsString)(this.contents)},r.prototype.getContents=function(){return this.contents},r.prototype.getContentsSize=function(){return this.contents.length},r.of=function(t,e){return new r(t,e)},r}(e.default),i=o;exports.default=i;
},{"tslib":"vCxL","./PDFStream":"a9WL","../../utils":"eZqv"}],"Q0Z6":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=require("../errors"),r=o(require("./PDFObject")),n=require("../../utils");function o(t){return t&&t.__esModule?t:{default:t}}var u={},i=new Map,s=function(r){function o(t,n,o){var i=this;if(t!==u)throw new e.PrivateConstructorError("PDFRef");return(i=r.call(this)||this).objectNumber=n,i.generationNumber=o,i.tag=n+" "+o+" R",i}return(0,t.__extends)(o,r),o.prototype.clone=function(){return this},o.prototype.toString=function(){return this.tag},o.prototype.sizeInBytes=function(){return this.tag.length},o.prototype.copyBytesInto=function(t,e){return e+=(0,n.copyStringIntoBuffer)(this.tag,t,e),this.tag.length},o.of=function(t,e){void 0===e&&(e=0);var r=t+" "+e+" R",n=i.get(r);return n||(n=new o(u,t,e),i.set(r,n)),n},o}(r.default),a=s;exports.default=a;
},{"tslib":"vCxL","../errors":"sGQ3","./PDFObject":"gBDq","../../utils":"eZqv"}],"p1EQ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=n(require("../objects/PDFObject")),e=n(require("../syntax/CharCodes")),r=require("../../utils");function n(t){return t&&t.__esModule?t:{default:t}}var o=function(){function n(t,e){this.name=t,this.args=e||[]}return n.prototype.clone=function(e){for(var r=new Array(this.args.length),o=0,s=r.length;o<s;o++){var a=this.args[o];r[o]=a instanceof t.default?a.clone(e):a}return n.of(this.name,r)},n.prototype.toString=function(){for(var t="",e=0,r=this.args.length;e<r;e++)t+=String(this.args[e])+" ";return t+=this.name},n.prototype.sizeInBytes=function(){for(var e=0,r=0,n=this.args.length;r<n;r++){var o=this.args[r];e+=(o instanceof t.default?o.sizeInBytes():o.length)+1}return e+=this.name.length},n.prototype.copyBytesInto=function(n,o){for(var s=o,a=0,i=this.args.length;a<i;a++){var u=this.args[a];u instanceof t.default?o+=u.copyBytesInto(n,o):o+=(0,r.copyStringIntoBuffer)(u,n,o),n[o++]=e.default.Space}return(o+=(0,r.copyStringIntoBuffer)(this.name,n,o))-s},n.of=function(t,e){return new n(t,e)},n}(),s=o;exports.default=s;
},{"../objects/PDFObject":"gBDq","../syntax/CharCodes":"mfDG","../../utils":"eZqv"}],"WFj3":[function(require,module,exports) {
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,function(e){e.NonStrokingColor="sc",e.NonStrokingColorN="scn",e.NonStrokingColorRgb="rg",e.NonStrokingColorGray="g",e.NonStrokingColorCmyk="k",e.NonStrokingColorspace="cs",e.StrokingColor="SC",e.StrokingColorN="SCN",e.StrokingColorRgb="RG",e.StrokingColorGray="G",e.StrokingColorCmyk="K",e.StrokingColorspace="CS",e.BeginMarkedContentSequence="BDC",e.BeginMarkedContent="BMC",e.EndMarkedContent="EMC",e.MarkedContentPointWithProps="DP",e.MarkedContentPoint="MP",e.DrawObject="Do",e.ConcatTransformationMatrix="cm",e.PopGraphicsState="Q",e.PushGraphicsState="q",e.SetFlatness="i",e.SetGraphicsStateParams="gs",e.SetLineCapStyle="J",e.SetLineDashPattern="d",e.SetLineJoinStyle="j",e.SetLineMiterLimit="M",e.SetLineWidth="w",e.SetTextMatrix="Tm",e.SetRenderingIntent="ri",e.AppendRectangle="re",e.BeginInlineImage="BI",e.BeginInlineImageData="ID",e.EndInlineImage="EI",e.ClipEvenOdd="W*",e.ClipNonZero="W",e.CloseAndStroke="s",e.CloseFillEvenOddAndStroke="b*",e.CloseFillNonZeroAndStroke="b",e.ClosePath="h",e.AppendBezierCurve="c",e.CurveToReplicateFinalPoint="y",e.CurveToReplicateInitialPoint="v",e.EndPath="n",e.FillEvenOddAndStroke="B*",e.FillEvenOdd="f*",e.FillNonZeroAndStroke="B",e.FillNonZero="f",e.LegacyFillNonZero="F",e.LineTo="l",e.MoveTo="m",e.ShadingFill="sh",e.StrokePath="S",e.BeginText="BT",e.EndText="ET",e.MoveText="Td",e.MoveTextSetLeading="TD",e.NextLine="T*",e.SetCharacterSpacing="Tc",e.SetFontAndSize="Tf",e.SetTextHorizontalScaling="Tz",e.SetTextLineHeight="TL",e.SetTextRenderingMode="Tr",e.SetTextRise="Ts",e.SetWordSpacing="Tw",e.ShowText="Tj",e.ShowTextAdjusted="TJ",e.ShowTextLine="'",e.ShowTextLineAndSpace='"',e.Type3D0="d0",e.Type3D1="d1",e.BeginCompatibilitySection="BX",e.EndCompatibilitySection="EX"}(e||(e={}));var t=e;exports.default=t;
},{}],"xPxG":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=s(require("pako")),n=require("../errors"),o=s(require("../objects/PDFName")),r=s(require("../objects/PDFStream")),u=require("../../utils");function s(e){return e&&e.__esModule?e:{default:e}}var c=function(r){function s(e,n){var s=r.call(this,e)||this;return s.computeContents=function(){var e=s.getUnencodedContents();return s.encode?t.default.deflate(e):e},s.encode=n,n&&e.set(o.default.of("Filter"),o.default.of("FlateDecode")),s.contentsCache=u.Cache.populatedBy(s.computeContents),s}return(0,e.__extends)(s,r),s.prototype.getContents=function(){return this.contentsCache.access()},s.prototype.getContentsSize=function(){return this.contentsCache.access().length},s.prototype.getUnencodedContents=function(){throw new n.MethodNotImplementedError(this.constructor.name,"getUnencodedContents")},s}(r.default),a=c;exports.default=a;
},{"tslib":"vCxL","pako":"f4vO","../errors":"sGQ3","../objects/PDFName":"EEtc","../objects/PDFStream":"a9WL","../../utils":"eZqv"}],"NCZn":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=o(require("./PDFFlateStream")),r=o(require("../syntax/CharCodes"));function o(t){return t&&t.__esModule?t:{default:t}}var n=function(e){function o(t,r,o){void 0===o&&(o=!0);var n=e.call(this,t,o)||this;return n.operators=r,n}return(0,t.__extends)(o,e),o.prototype.push=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];(t=this.operators).push.apply(t,e)},o.prototype.clone=function(t){for(var e=new Array(this.operators.length),r=0,n=this.operators.length;r<n;r++)e[r]=this.operators[r].clone(t);var s=this.dict,i=this.encode;return o.of(s.clone(t),e,i)},o.prototype.getContentsString=function(){for(var t="",e=0,r=this.operators.length;e<r;e++)t+=this.operators[e]+"\n";return t},o.prototype.getUnencodedContents=function(){for(var t=new Uint8Array(this.getUnencodedContentsSize()),e=0,o=0,n=this.operators.length;o<n;o++)e+=this.operators[o].copyBytesInto(t,e),t[e++]=r.default.Newline;return t},o.prototype.getUnencodedContentsSize=function(){for(var t=0,e=0,r=this.operators.length;e<r;e++)t+=this.operators[e].sizeInBytes()+1;return t},o.of=function(t,e,r){return void 0===r&&(r=!0),new o(t,e,r)},o}(e.default),s=n;exports.default=s;
},{"tslib":"vCxL","./PDFFlateStream":"xPxG","../syntax/CharCodes":"mfDG"}],"i4ew":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=m(require("pako")),r=m(require("./document/PDFHeader")),o=require("./errors"),i=m(require("./objects/PDFArray")),n=m(require("./objects/PDFBool")),a=m(require("./objects/PDFDict")),u=m(require("./objects/PDFName")),s=m(require("./objects/PDFNull")),f=m(require("./objects/PDFNumber")),c=m(require("./objects/PDFObject")),p=m(require("./objects/PDFRawStream")),h=m(require("./objects/PDFRef")),l=m(require("./operators/PDFOperator")),d=m(require("./operators/PDFOperatorNames")),b=m(require("./structures/PDFContentStream")),j=require("../utils");function m(t){return t&&t.__esModule?t:{default:t}}var y=function(t,e){var r=t[0],o=e[0];return r.objectNumber-o.objectNumber},S=function(){function m(){this.largestObjectNumber=0,this.header=r.default.forVersion(1,7),this.trailerInfo={},this.indirectObjects=new Map}return m.prototype.assign=function(t,e){this.indirectObjects.set(t,e),t.objectNumber>this.largestObjectNumber&&(this.largestObjectNumber=t.objectNumber)},m.prototype.nextRef=function(){return this.largestObjectNumber+=1,h.default.of(this.largestObjectNumber)},m.prototype.register=function(t){var e=this.nextRef();return this.assign(e,t),e},m.prototype.delete=function(t){return this.indirectObjects.delete(t)},m.prototype.lookupMaybe=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=e.includes(s.default),n=t instanceof h.default?this.indirectObjects.get(t):t;if(n&&(n!==s.default||i)){for(var a=0,u=e.length;a<u;a++){var f=e[a];if(f===s.default){if(n===s.default)return n}else if(n instanceof f)return n}throw new o.UnexpectedObjectTypeError(e,n)}},m.prototype.lookup=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=t instanceof h.default?this.indirectObjects.get(t):t;if(0===e.length)return i;for(var n=0,a=e.length;n<a;n++){var u=e[n];if(u===s.default){if(i===s.default)return i}else if(i instanceof u)return i}throw new o.UnexpectedObjectTypeError(e,i)},m.prototype.enumerateIndirectObjects=function(){return Array.from(this.indirectObjects.entries()).sort(y)},m.prototype.obj=function(t){if(t instanceof c.default)return t;if(null==t)return s.default;if("string"==typeof t)return u.default.of(t);if("number"==typeof t)return f.default.of(t);if("boolean"==typeof t)return t?n.default.True:n.default.False;if(Array.isArray(t)){for(var e=i.default.withContext(this),r=0,o=t.length;r<o;r++)e.push(this.obj(t[r]));return e}var p=a.default.withContext(this),h=Object.keys(t);for(r=0,o=h.length;r<o;r++){var l=h[r],d=t[l];void 0!==d&&p.set(u.default.of(l),this.obj(d))}return p},m.prototype.stream=function(t,e){return void 0===e&&(e={}),p.default.of(this.obj(e),(0,j.typedArrayFor)(t))},m.prototype.flateStream=function(r,o){return void 0===o&&(o={}),this.stream(e.default.deflate((0,j.typedArrayFor)(r)),(0,t.__assign)((0,t.__assign)({},o),{Filter:"FlateDecode"}))},m.prototype.contentStream=function(t,e){return void 0===e&&(e={}),b.default.of(this.obj(e),t)},m.prototype.formXObject=function(e,r){return void 0===r&&(r={}),this.contentStream(e,(0,t.__assign)((0,t.__assign)({BBox:this.obj([0,0,0,0]),Matrix:this.obj([1,0,0,1,0,0])},r),{Type:"XObject",Subtype:"Form"}))},m.prototype.getPushGraphicsStateContentStream=function(){if(this.pushGraphicsStateContentStreamRef)return this.pushGraphicsStateContentStreamRef;var t=this.obj({}),e=l.default.of(d.default.PushGraphicsState),r=b.default.of(t,[e]);return this.pushGraphicsStateContentStreamRef=this.register(r),this.pushGraphicsStateContentStreamRef},m.prototype.getPopGraphicsStateContentStream=function(){if(this.popGraphicsStateContentStreamRef)return this.popGraphicsStateContentStreamRef;var t=this.obj({}),e=l.default.of(d.default.PopGraphicsState),r=b.default.of(t,[e]);return this.popGraphicsStateContentStreamRef=this.register(r),this.popGraphicsStateContentStreamRef},m.create=function(){return new m},m}(),g=S;exports.default=g;
},{"tslib":"vCxL","pako":"f4vO","./document/PDFHeader":"FVEo","./errors":"sGQ3","./objects/PDFArray":"eics","./objects/PDFBool":"CkjB","./objects/PDFDict":"SzSo","./objects/PDFName":"EEtc","./objects/PDFNull":"mRdK","./objects/PDFNumber":"m342","./objects/PDFObject":"gBDq","./objects/PDFRawStream":"ws4b","./objects/PDFRef":"Q0Z6","./operators/PDFOperator":"p1EQ","./operators/PDFOperatorNames":"WFj3","./structures/PDFContentStream":"NCZn","../utils":"eZqv"}],"Lj0m":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=u(require("../objects/PDFArray")),o=u(require("../objects/PDFDict")),n=u(require("../objects/PDFName")),r=u(require("../objects/PDFNumber")),a=u(require("../objects/PDFStream"));function u(t){return t&&t.__esModule?t:{default:t}}var i=function(u){function i(t,e,o){void 0===o&&(o=!0);var n=u.call(this,t,e)||this;return n.normalized=!1,n.autoNormalizeCTM=o,n}return(0,t.__extends)(i,u),i.prototype.clone=function(t){for(var e=i.fromMapWithContext(new Map,t||this.context,this.autoNormalizeCTM),o=this.entries(),n=0,r=o.length;n<r;n++){var a=o[n],u=a[0],s=a[1];e.set(u,s)}return e},i.prototype.Parent=function(){return this.lookupMaybe(n.default.Parent,o.default)},i.prototype.Contents=function(){return this.lookup(n.default.of("Contents"))},i.prototype.Annots=function(){return this.lookupMaybe(n.default.Annots,e.default)},i.prototype.BleedBox=function(){return this.lookupMaybe(n.default.BleedBox,e.default)},i.prototype.TrimBox=function(){return this.lookupMaybe(n.default.TrimBox,e.default)},i.prototype.ArtBox=function(){return this.lookupMaybe(n.default.ArtBox,e.default)},i.prototype.Resources=function(){var t=this.getInheritableAttribute(n.default.Resources);return this.context.lookupMaybe(t,o.default)},i.prototype.MediaBox=function(){var t=this.getInheritableAttribute(n.default.MediaBox);return this.context.lookup(t,e.default)},i.prototype.CropBox=function(){var t=this.getInheritableAttribute(n.default.CropBox);return this.context.lookupMaybe(t,e.default)},i.prototype.Rotate=function(){var t=this.getInheritableAttribute(n.default.Rotate);return this.context.lookupMaybe(t,r.default)},i.prototype.getInheritableAttribute=function(t){var e;return this.ascend(function(o){e||(e=o.get(t))}),e},i.prototype.setParent=function(t){this.set(n.default.Parent,t)},i.prototype.addContentStream=function(t){var e=this.normalizedEntries().Contents||this.context.obj([]);this.set(n.default.Contents,e),e.push(t)},i.prototype.wrapContentStreams=function(t,o){var n=this.Contents();return n instanceof e.default&&(n.insert(0,t),n.push(o),!0)},i.prototype.addAnnot=function(t){this.normalizedEntries().Annots.push(t)},i.prototype.setFontDictionary=function(t,e){this.normalizedEntries().Font.set(t,e)},i.prototype.setXObject=function(t,e){this.normalizedEntries().XObject.set(t,e)},i.prototype.setExtGState=function(t,e){this.normalizedEntries().ExtGState.set(t,e)},i.prototype.ascend=function(t){t(this);var e=this.Parent();e&&e.ascend(t)},i.prototype.normalize=function(){if(!this.normalized){var t=this.context,e=this.get(n.default.Contents);this.context.lookup(e)instanceof a.default&&this.set(n.default.Contents,t.obj([e])),this.autoNormalizeCTM&&this.wrapContentStreams(this.context.getPushGraphicsStateContentStream(),this.context.getPopGraphicsStateContentStream());var r=this.getInheritableAttribute(n.default.Resources),u=t.lookupMaybe(r,o.default)||t.obj({});this.set(n.default.Resources,u);var i=u.lookupMaybe(n.default.Font,o.default)||t.obj({});u.set(n.default.Font,i);var s=u.lookupMaybe(n.default.XObject,o.default)||t.obj({});u.set(n.default.XObject,s);var l=u.lookupMaybe(n.default.ExtGState,o.default)||t.obj({});u.set(n.default.ExtGState,l);var f=this.Annots()||t.obj([]);this.set(n.default.Annots,f),this.normalized=!0}},i.prototype.normalizedEntries=function(){this.normalize();var t=this.Annots(),e=this.Resources();return{Annots:t,Resources:e,Contents:this.Contents(),Font:e.lookup(n.default.Font,o.default),XObject:e.lookup(n.default.XObject,o.default),ExtGState:e.lookup(n.default.ExtGState,o.default)}},i.InheritableEntries=["Resources","MediaBox","CropBox","Rotate"],i.withContextAndParent=function(t,e){var o=new Map;return o.set(n.default.Type,n.default.Page),o.set(n.default.Parent,e),o.set(n.default.Resources,t.obj({})),o.set(n.default.MediaBox,t.obj([0,0,612,792])),new i(o,t,!1)},i.fromMapWithContext=function(t,e,o){return void 0===o&&(o=!0),new i(t,e,o)},i}(o.default),s=i;exports.default=s;
},{"tslib":"vCxL","../objects/PDFArray":"eics","../objects/PDFDict":"SzSo","../objects/PDFName":"EEtc","../objects/PDFNumber":"m342","../objects/PDFStream":"a9WL"}],"nF0h":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("./objects/PDFArray")),t=n(require("./objects/PDFDict")),r=n(require("./objects/PDFName")),s=n(require("./objects/PDFRef")),c=n(require("./objects/PDFStream")),a=n(require("./structures/PDFPageLeaf"));function n(e){return e&&e.__esModule?e:{default:e}}var o=function(){function n(n,o){var i=this;this.traversedObjects=new Map,this.copy=function(r){return r instanceof a.default?i.copyPDFPage(r):r instanceof t.default?i.copyPDFDict(r):r instanceof e.default?i.copyPDFArray(r):r instanceof c.default?i.copyPDFStream(r):r instanceof s.default?i.copyPDFIndirectObject(r):r.clone()},this.copyPDFPage=function(e){for(var t=e.clone(),s=a.default.InheritableEntries,c=0,n=s.length;c<n;c++){var o=r.default.of(s[c]),u=t.getInheritableAttribute(o);!t.get(o)&&u&&t.set(o,u)}return t.delete(r.default.of("Parent")),i.copyPDFDict(t)},this.copyPDFDict=function(e){if(i.traversedObjects.has(e))return i.traversedObjects.get(e);var t=e.clone(i.dest);i.traversedObjects.set(e,t);for(var r=e.entries(),s=0,c=r.length;s<c;s++){var a=r[s],n=a[0],o=a[1];t.set(n,i.copy(o))}return t},this.copyPDFArray=function(e){if(i.traversedObjects.has(e))return i.traversedObjects.get(e);var t=e.clone(i.dest);i.traversedObjects.set(e,t);for(var r=0,s=e.size();r<s;r++){var c=e.get(r);t.set(r,i.copy(c))}return t},this.copyPDFStream=function(e){if(i.traversedObjects.has(e))return i.traversedObjects.get(e);var t=e.clone(i.dest);i.traversedObjects.set(e,t);for(var r=e.dict.entries(),s=0,c=r.length;s<c;s++){var a=r[s],n=a[0],o=a[1];t.dict.set(n,i.copy(o))}return t},this.copyPDFIndirectObject=function(e){if(!i.traversedObjects.has(e)){var t=i.dest.nextRef();i.traversedObjects.set(e,t);var r=i.src.lookup(e);if(r){var s=i.copy(r);i.dest.assign(t,s)}}return i.traversedObjects.get(e)},this.src=n,this.dest=o}return n.for=function(e,t){return new n(e,t)},n}(),i=o;exports.default=i;
},{"./objects/PDFArray":"eics","./objects/PDFDict":"SzSo","./objects/PDFName":"EEtc","./objects/PDFRef":"Q0Z6","./objects/PDFStream":"a9WL","./structures/PDFPageLeaf":"Lj0m"}],"E8zq":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=r(require("../objects/PDFRef")),e=r(require("../syntax/CharCodes")),n=require("../../utils");function r(t){return t&&t.__esModule?t:{default:t}}var o=function(){function r(t){this.subsections=t?[[t]]:[],this.chunkIdx=0,this.chunkLength=t?1:0}return r.prototype.addEntry=function(t,e){this.append({ref:t,offset:e,deleted:!1})},r.prototype.addDeletedEntry=function(t,e){this.append({ref:t,offset:e,deleted:!0})},r.prototype.toString=function(){for(var t="xref\n",e=0,r=this.subsections.length;e<r;e++){var o=this.subsections[e];t+=o[0].ref.objectNumber+" "+o.length+"\n";for(var u=0,s=o.length;u<s;u++){var f=o[u];t+=(0,n.padStart)(String(f.offset),10,"0"),t+=" ",t+=(0,n.padStart)(String(f.ref.generationNumber),5,"0"),t+=" ",t+=f.deleted?"f":"n",t+=" \n"}}return t},r.prototype.sizeInBytes=function(){for(var t=5,e=0,n=this.subsections.length;e<n;e++){var r=this.subsections[e],o=r.length,u=r[0];t+=2,t+=String(u.ref.objectNumber).length,t+=String(o).length,t+=20*o}return t},r.prototype.copyBytesInto=function(t,n){var r=n;return t[n++]=e.default.x,t[n++]=e.default.r,t[n++]=e.default.e,t[n++]=e.default.f,t[n++]=e.default.Newline,(n+=this.copySubsectionsIntoBuffer(this.subsections,t,n))-r},r.prototype.copySubsectionsIntoBuffer=function(t,r,o){for(var u=o,s=t.length,f=0;f<s;f++){var i=this.subsections[f],c=String(i[0].ref.objectNumber);o+=(0,n.copyStringIntoBuffer)(c,r,o),r[o++]=e.default.Space;var a=String(i.length);o+=(0,n.copyStringIntoBuffer)(a,r,o),r[o++]=e.default.Newline,o+=this.copyEntriesIntoBuffer(i,r,o)}return o-u},r.prototype.copyEntriesIntoBuffer=function(t,r,o){for(var u=t.length,s=0;s<u;s++){var f=t[s],i=(0,n.padStart)(String(f.offset),10,"0");o+=(0,n.copyStringIntoBuffer)(i,r,o),r[o++]=e.default.Space;var c=(0,n.padStart)(String(f.ref.generationNumber),5,"0");o+=(0,n.copyStringIntoBuffer)(c,r,o),r[o++]=e.default.Space,r[o++]=f.deleted?e.default.f:e.default.n,r[o++]=e.default.Space,r[o++]=e.default.Newline}return 20*u},r.prototype.append=function(t){if(0===this.chunkLength)return this.subsections.push([t]),this.chunkIdx=0,void(this.chunkLength=1);var e=this.subsections[this.chunkIdx],n=e[this.chunkLength-1];t.ref.objectNumber-n.ref.objectNumber>1?(this.subsections.push([t]),this.chunkIdx+=1,this.chunkLength=1):(e.push(t),this.chunkLength+=1)},r.create=function(){return new r({ref:t.default.of(0,65535),offset:0,deleted:!0})},r.createEmpty=function(){return new r},r}(),u=o;exports.default=u;
},{"../objects/PDFRef":"Q0Z6","../syntax/CharCodes":"mfDG","../../utils":"eZqv"}],"qm7F":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=f(require("../syntax/CharCodes")),e=require("../../utils");function f(t){return t&&t.__esModule?t:{default:t}}var r=function(){function f(t){this.lastXRefOffset=String(t)}return f.prototype.toString=function(){return"startxref\n"+this.lastXRefOffset+"\n%%EOF"},f.prototype.sizeInBytes=function(){return 16+this.lastXRefOffset.length},f.prototype.copyBytesInto=function(f,r){var u=r;return f[r++]=t.default.s,f[r++]=t.default.t,f[r++]=t.default.a,f[r++]=t.default.r,f[r++]=t.default.t,f[r++]=t.default.x,f[r++]=t.default.r,f[r++]=t.default.e,f[r++]=t.default.f,f[r++]=t.default.Newline,r+=(0,e.copyStringIntoBuffer)(this.lastXRefOffset,f,r),f[r++]=t.default.Newline,f[r++]=t.default.Percent,f[r++]=t.default.Percent,f[r++]=t.default.E,f[r++]=t.default.O,f[r++]=t.default.F,r-u},f.forLastCrossRefSectionOffset=function(t){return new f(t)},f}(),u=r;exports.default=u;
},{"../syntax/CharCodes":"mfDG","../../utils":"eZqv"}],"akoB":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("../syntax/CharCodes"));function e(t){return t&&t.__esModule?t:{default:t}}var r=function(){function e(t){this.dict=t}return e.prototype.toString=function(){return"trailer\n"+this.dict.toString()},e.prototype.sizeInBytes=function(){return 8+this.dict.sizeInBytes()},e.prototype.copyBytesInto=function(e,r){var n=r;return e[r++]=t.default.t,e[r++]=t.default.r,e[r++]=t.default.a,e[r++]=t.default.i,e[r++]=t.default.l,e[r++]=t.default.e,e[r++]=t.default.r,e[r++]=t.default.Newline,(r+=this.dict.copyBytesInto(e,r))-n},e.of=function(t){return new e(t)},e}(),n=r;exports.default=n;
},{"../syntax/CharCodes":"mfDG"}],"O7Fb":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=i(require("../objects/PDFName")),s=i(require("../objects/PDFNumber")),o=i(require("./PDFFlateStream")),n=i(require("../syntax/CharCodes")),r=require("../../utils");function i(t){return t&&t.__esModule?t:{default:t}}var f=function(o){function i(t,n,r){void 0===r&&(r=!0);var i=o.call(this,t.obj({}),r)||this;return i.objects=n,i.offsets=i.computeObjectOffsets(),i.offsetsString=i.computeOffsetsString(),i.dict.set(e.default.of("Type"),e.default.of("ObjStm")),i.dict.set(e.default.of("N"),s.default.of(i.objects.length)),i.dict.set(e.default.of("First"),s.default.of(i.offsetsString.length)),i}return(0,t.__extends)(i,o),i.prototype.getObjectsCount=function(){return this.objects.length},i.prototype.clone=function(t){return i.withContextAndObjects(t||this.dict.context,this.objects.slice(),this.encode)},i.prototype.getContentsString=function(){for(var t=this.offsetsString,e=0,s=this.objects.length;e<s;e++){t+=this.objects[e][1]+"\n"}return t},i.prototype.getUnencodedContents=function(){for(var t=new Uint8Array(this.getUnencodedContentsSize()),e=(0,r.copyStringIntoBuffer)(this.offsetsString,t,0),s=0,o=this.objects.length;s<o;s++){e+=this.objects[s][1].copyBytesInto(t,e),t[e++]=n.default.Newline}return t},i.prototype.getUnencodedContentsSize=function(){return this.offsetsString.length+(0,r.last)(this.offsets)[1]+(0,r.last)(this.objects)[1].sizeInBytes()+1},i.prototype.computeOffsetsString=function(){for(var t="",e=0,s=this.offsets.length;e<s;e++){var o=this.offsets[e];t+=o[0]+" "+o[1]+" "}return t},i.prototype.computeObjectOffsets=function(){for(var t=0,e=new Array(this.objects.length),s=0,o=this.objects.length;s<o;s++){var n=this.objects[s],r=n[0],i=n[1];e[s]=[r.objectNumber,t],t+=i.sizeInBytes()+1}return e},i.withContextAndObjects=function(t,e,s){return void 0===s&&(s=!0),new i(t,e,s)},i}(o.default),u=f;exports.default=u;
},{"tslib":"vCxL","../objects/PDFName":"EEtc","../objects/PDFNumber":"m342","./PDFFlateStream":"xPxG","../syntax/CharCodes":"mfDG","../../utils":"eZqv"}],"WfQZ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=u(require("../document/PDFCrossRefSection")),r=u(require("../document/PDFHeader")),i=u(require("../document/PDFTrailer")),n=u(require("../document/PDFTrailerDict")),o=u(require("../structures/PDFObjectStream")),a=u(require("../syntax/CharCodes")),s=require("../../utils");function u(e){return e&&e.__esModule?e:{default:e}}var c=function(){function u(e,t){var r=this;this.parsedObjects=0,this.shouldWaitForTick=function(e){return r.parsedObjects+=e,r.parsedObjects%r.objectsPerTick==0},this.context=e,this.objectsPerTick=t}return u.prototype.serializeToBuffer=function(){return(0,e.__awaiter)(this,void 0,void 0,function(){var t,r,i,n,u,c,l,f,d,h,p,b,y,I,j,w,B;return(0,e.__generator)(this,function(e){switch(e.label){case 0:return[4,this.computeBufferSize()];case 1:t=e.sent(),r=t.size,i=t.header,n=t.indirectObjects,u=t.xref,c=t.trailerDict,l=t.trailer,f=0,d=new Uint8Array(r),f+=i.copyBytesInto(d,f),d[f++]=a.default.Newline,d[f++]=a.default.Newline,h=0,p=n.length,e.label=2;case 2:return h<p?(b=n[h],y=b[0],I=b[1],j=String(y.objectNumber),f+=(0,s.copyStringIntoBuffer)(j,d,f),d[f++]=a.default.Space,w=String(y.generationNumber),f+=(0,s.copyStringIntoBuffer)(w,d,f),d[f++]=a.default.Space,d[f++]=a.default.o,d[f++]=a.default.b,d[f++]=a.default.j,d[f++]=a.default.Newline,f+=I.copyBytesInto(d,f),d[f++]=a.default.Newline,d[f++]=a.default.e,d[f++]=a.default.n,d[f++]=a.default.d,d[f++]=a.default.o,d[f++]=a.default.b,d[f++]=a.default.j,d[f++]=a.default.Newline,d[f++]=a.default.Newline,B=I instanceof o.default?I.getObjectsCount():1,this.shouldWaitForTick(B)?[4,(0,s.waitForTick)()]:[3,4]):[3,5];case 3:e.sent(),e.label=4;case 4:return h++,[3,2];case 5:return u&&(f+=u.copyBytesInto(d,f),d[f++]=a.default.Newline),c&&(f+=c.copyBytesInto(d,f),d[f++]=a.default.Newline,d[f++]=a.default.Newline),f+=l.copyBytesInto(d,f),[2,d]}})})},u.prototype.computeIndirectObjectSize=function(e){var t=e[0],r=e[1];return t.sizeInBytes()+3+(r.sizeInBytes()+9)},u.prototype.createTrailerDict=function(){return this.context.obj({Size:this.context.largestObjectNumber+1,Root:this.context.trailerInfo.Root,Encrypt:this.context.trailerInfo.Encrypt,Info:this.context.trailerInfo.Info,ID:this.context.trailerInfo.ID})},u.prototype.computeBufferSize=function(){return(0,e.__awaiter)(this,void 0,void 0,function(){var o,a,u,c,l,f,d,h,p,b,y;return(0,e.__generator)(this,function(e){switch(e.label){case 0:o=r.default.forVersion(1,7),a=o.sizeInBytes()+2,u=t.default.create(),c=this.context.enumerateIndirectObjects(),l=0,f=c.length,e.label=1;case 1:return l<f?(d=c[l],h=d[0],u.addEntry(h,a),a+=this.computeIndirectObjectSize(d),this.shouldWaitForTick(1)?[4,(0,s.waitForTick)()]:[3,3]):[3,4];case 2:e.sent(),e.label=3;case 3:return l++,[3,1];case 4:return p=a,a+=u.sizeInBytes()+1,b=n.default.of(this.createTrailerDict()),a+=b.sizeInBytes()+2,y=i.default.forLastCrossRefSectionOffset(p),[2,{size:a+=y.sizeInBytes(),header:o,indirectObjects:c,xref:u,trailerDict:b,trailer:y}]}})})},u.forContext=function(e,t){return new u(e,t)},u}(),l=c;exports.default=l;
},{"tslib":"vCxL","../document/PDFCrossRefSection":"E8zq","../document/PDFHeader":"FVEo","../document/PDFTrailer":"qm7F","../document/PDFTrailerDict":"akoB","../structures/PDFObjectStream":"O7Fb","../syntax/CharCodes":"mfDG","../../utils":"eZqv"}],"XOUr":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=r(require("./PDFObject"));function r(t){return t&&t.__esModule?t:{default:t}}var n=function(e){function r(t){var r=e.call(this)||this;return r.data=t,r}return(0,t.__extends)(r,e),r.prototype.clone=function(){return r.of(this.data.slice())},r.prototype.toString=function(){return"PDFInvalidObject("+this.data.length+" bytes)"},r.prototype.sizeInBytes=function(){return this.data.length},r.prototype.copyBytesInto=function(t,e){for(var r=this.data.length,n=0;n<r;n++)t[e++]=this.data[n];return r},r.of=function(t){return new r(t)},r}(e.default),o=n;exports.default=o;
},{"tslib":"vCxL","./PDFObject":"gBDq"}],"uzd6":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.EntryType=void 0;var e,t=require("tslib"),r=a(require("../objects/PDFName")),n=a(require("../objects/PDFRef")),s=a(require("./PDFFlateStream")),i=require("../../utils");function a(e){return e&&e.__esModule?e:{default:e}}exports.EntryType=e,function(e){e[e.Deleted=0]="Deleted",e[e.Uncompressed=1]="Uncompressed",e[e.Compressed=2]="Compressed"}(e||(exports.EntryType=e={}));var o=function(s){function a(t,n,a){void 0===a&&(a=!0);var o=s.call(this,t,a)||this;return o.computeIndex=function(){for(var e=[],t=0,r=0,n=o.entries.length;r<n;r++){var s=o.entries[r],i=o.entries[r-1];0===r?e.push(s.ref.objectNumber):s.ref.objectNumber-i.ref.objectNumber>1&&(e.push(t),e.push(s.ref.objectNumber),t=0),t+=1}return e.push(t),e},o.computeEntryTuples=function(){for(var t=new Array(o.entries.length),r=0,n=o.entries.length;r<n;r++){var s=o.entries[r];if(s.type===e.Deleted){var i=s.type,a=s.nextFreeObjectNumber,c=s.ref;t[r]=[i,a,c.generationNumber]}if(s.type===e.Uncompressed){i=s.type;var d=s.offset;c=s.ref;t[r]=[i,d,c.generationNumber]}if(s.type===e.Compressed){i=s.type;var u=s.objectStreamRef,h=s.index;t[r]=[i,u.objectNumber,h]}}return t},o.computeMaxEntryByteWidths=function(){for(var e=o.entryTuplesCache.access(),t=[0,0,0],r=0,n=e.length;r<n;r++){var s=e[r],a=s[0],c=s[1],d=s[2],u=(0,i.sizeInBytes)(a),h=(0,i.sizeInBytes)(c),p=(0,i.sizeInBytes)(d);u>t[0]&&(t[0]=u),h>t[1]&&(t[1]=h),p>t[2]&&(t[2]=p)}return t},o.entries=n||[],o.entryTuplesCache=i.Cache.populatedBy(o.computeEntryTuples),o.maxByteWidthsCache=i.Cache.populatedBy(o.computeMaxEntryByteWidths),o.indexCache=i.Cache.populatedBy(o.computeIndex),t.set(r.default.of("Type"),r.default.of("XRef")),o}return(0,t.__extends)(a,s),a.prototype.addDeletedEntry=function(t,r){var n=e.Deleted;this.entries.push({type:n,ref:t,nextFreeObjectNumber:r}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},a.prototype.addUncompressedEntry=function(t,r){var n=e.Uncompressed;this.entries.push({type:n,ref:t,offset:r}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},a.prototype.addCompressedEntry=function(t,r,n){var s=e.Compressed;this.entries.push({type:s,ref:t,objectStreamRef:r,index:n}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},a.prototype.clone=function(e){var t=this.dict,r=this.entries,n=this.encode;return a.of(t.clone(e),r.slice(),n)},a.prototype.getContentsString=function(){for(var e=this.entryTuplesCache.access(),t=this.maxByteWidthsCache.access(),r="",n=0,s=e.length;n<s;n++){for(var a=e[n],o=a[0],c=a[1],d=a[2],u=(0,i.reverseArray)((0,i.bytesFor)(o)),h=(0,i.reverseArray)((0,i.bytesFor)(c)),p=(0,i.reverseArray)((0,i.bytesFor)(d)),y=t[0]-1;y>=0;y--)r+=(u[y]||0).toString(2);for(y=t[1]-1;y>=0;y--)r+=(h[y]||0).toString(2);for(y=t[2]-1;y>=0;y--)r+=(p[y]||0).toString(2)}return r},a.prototype.getUnencodedContents=function(){for(var e=this.entryTuplesCache.access(),t=this.maxByteWidthsCache.access(),r=new Uint8Array(this.getUnencodedContentsSize()),n=0,s=0,a=e.length;s<a;s++){for(var o=e[s],c=o[0],d=o[1],u=o[2],h=(0,i.reverseArray)((0,i.bytesFor)(c)),p=(0,i.reverseArray)((0,i.bytesFor)(d)),y=(0,i.reverseArray)((0,i.bytesFor)(u)),f=t[0]-1;f>=0;f--)r[n++]=h[f]||0;for(f=t[1]-1;f>=0;f--)r[n++]=p[f]||0;for(f=t[2]-1;f>=0;f--)r[n++]=y[f]||0}return r},a.prototype.getUnencodedContentsSize=function(){var e=this.maxByteWidthsCache.access();return(0,i.sum)(e)*this.entries.length},a.prototype.updateDict=function(){s.prototype.updateDict.call(this);var e=this.maxByteWidthsCache.access(),t=this.indexCache.access(),n=this.dict.context;this.dict.set(r.default.of("W"),n.obj(e)),this.dict.set(r.default.of("Index"),n.obj(t))},a.create=function(e,t){void 0===t&&(t=!0);var r=new a(e,[],t);return r.addDeletedEntry(n.default.of(0,65535),0),r},a.of=function(e,t,r){return void 0===r&&(r=!0),new a
},{"tslib":"vCxL","../objects/PDFName":"EEtc","../objects/PDFRef":"Q0Z6","./PDFFlateStream":"xPxG","../../utils":"eZqv"}],"zn3n":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=f(require("../document/PDFHeader")),r=f(require("../document/PDFTrailer")),s=f(require("../objects/PDFInvalidObject")),i=f(require("../objects/PDFName")),n=f(require("../objects/PDFNumber")),a=f(require("../objects/PDFRef")),c=f(require("../objects/PDFStream")),u=f(require("../structures/PDFCrossRefStream")),o=f(require("../structures/PDFObjectStream")),d=f(require("./PDFWriter")),l=require("../../utils");function f(e){return e&&e.__esModule?e:{default:e}}var h=function(d){function f(e,t,r,s){var i=d.call(this,e,t)||this;return i.encodeStreams=r,i.objectsPerStream=s,i}return(0,e.__extends)(f,d),f.prototype.computeBufferSize=function(){return(0,e.__awaiter)(this,void 0,void 0,function(){var d,f,h,b,m,p,j,F,S,P,q,v,D,O,x,_,y,g,z;return(0,e.__generator)(this,function(e){switch(e.label){case 0:d=this.context.largestObjectNumber+1,f=t.default.forVersion(1,7),h=f.sizeInBytes()+2,b=u.default.create(this.createTrailerDict(),this.encodeStreams),m=[],p=[],j=[],F=this.context.enumerateIndirectObjects(),v=0,D=F.length,e.label=1;case 1:return v<D?(S=F[v],x=S[0],P=S[1],x===this.context.trailerInfo.Encrypt||P instanceof c.default||P instanceof s.default||0!==x.generationNumber?(m.push(S),b.addUncompressedEntry(x,h),h+=this.computeIndirectObjectSize(S),this.shouldWaitForTick(1)?[4,(0,l.waitForTick)()]:[3,3]):[3,4]):[3,6];case 2:e.sent(),e.label=3;case 3:return[3,5];case 4:O=(0,l.last)(p),q=(0,l.last)(j),O&&O.length%this.objectsPerStream!=0||(O=[],p.push(O),q=a.default.of(d++),j.push(q)),b.addCompressedEntry(x,q,O.length),O.push(S),e.label=5;case 5:return v++,[3,1];case 6:v=0,D=p.length,e.label=7;case 7:return v<D?(O=p[v],x=j[v],_=o.default.withContextAndObjects(this.context,O,this.encodeStreams),b.addUncompressedEntry(x,h),h+=this.computeIndirectObjectSize([x,_]),m.push([x,_]),this.shouldWaitForTick(O.length)?[4,(0,l.waitForTick)()]:[3,9]):[3,10];case 8:e.sent(),e.label=9;case 9:return v++,[3,7];case 10:return y=a.default.of(d++),b.dict.set(i.default.of("Size"),n.default.of(d)),b.addUncompressedEntry(y,h),g=h,h+=this.computeIndirectObjectSize([y,b]),m.push([y,b]),z=r.default.forLastCrossRefSectionOffset(g),[2,{size:h+=z.sizeInBytes(),header:f,indirectObjects:m,trailer:z}]}})})},f.forContext=function(e,t,r,s){return void 0===r&&(r=!0),void 0===s&&(s=50),new f(e,t,r,s)},f}(d.default),b=h;exports.default=b;
},{"tslib":"vCxL","../document/PDFHeader":"FVEo","../document/PDFTrailer":"qm7F","../objects/PDFInvalidObject":"XOUr","../objects/PDFName":"EEtc","../objects/PDFNumber":"m342","../objects/PDFRef":"Q0Z6","../objects/PDFStream":"a9WL","../structures/PDFCrossRefStream":"uzd6","../structures/PDFObjectStream":"O7Fb","./PDFWriter":"WfQZ","../../utils":"eZqv"}],"HRof":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=u(require("./PDFObject")),r=u(require("../syntax/CharCodes")),n=require("../../utils"),o=require("../errors");function u(t){return t&&t.__esModule?t:{default:t}}var i=function(e){function u(t){var r=e.call(this)||this;return r.value=t,r}return(0,t.__extends)(u,e),u.prototype.asBytes=function(){for(var t=this.value+(this.value.length%2==1?"0":""),e=t.length,r=new Uint8Array(t.length/2),n=0,o=0;n<e;){var u=parseInt(t.substring(n,n+2),16);r[o]=u,n+=2,o+=1}return r},u.prototype.decodeText=function(){var t=this.asBytes();return(0,n.hasUtf16BOM)(t)?(0,n.utf16Decode)(t):(0,n.pdfDocEncodingDecode)(t)},u.prototype.decodeDate=function(){var t=this.decodeText(),e=(0,n.parseDate)(t);if(!e)throw new o.InvalidPDFDateStringError(t);return e},u.prototype.asString=function(){return this.value},u.prototype.clone=function(){return u.of(this.value)},u.prototype.toString=function(){return"<"+this.value+">"},u.prototype.sizeInBytes=function(){return this.value.length+2},u.prototype.copyBytesInto=function(t,e){return t[e++]=r.default.LessThan,e+=(0,n.copyStringIntoBuffer)(this.value,t,e),t[e++]=r.default.GreaterThan,this.value.length+2},u.of=function(t){return new u(t)},u.fromText=function(t){for(var e=(0,n.utf16Encode)(t),r="",o=0,i=e.length;o<i;o++)r+=(0,n.toHexStringOfMinLength)(e[o],4);return new u(r)},u}(e.default),a=i;exports.default=a;
},{"tslib":"vCxL","./PDFObject":"gBDq","../syntax/CharCodes":"mfDG","../../utils":"eZqv","../errors":"sGQ3"}],"SJM0":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("@pdf-lib/standard-fonts"),e=o(require("../objects/PDFHexString")),n=require("../../utils");function o(t){return t&&t.__esModule?t:{default:t}}var i=function(){function o(e,n){this.encoding=e===t.FontNames.ZapfDingbats?t.Encodings.ZapfDingbats:e===t.FontNames.Symbol?t.Encodings.Symbol:t.Encodings.WinAnsi,this.font=t.Font.load(e),this.fontName=this.font.FontName,this.customName=n}return o.prototype.encodeText=function(t){for(var o=this.encodeTextAsGlyphs(t),i=new Array(o.length),r=0,s=o.length;r<s;r++)i[r]=(0,n.toHexString)(o[r].code);return e.default.of(i.join(""))},o.prototype.widthOfTextAtSize=function(t,e){for(var n=this.encodeTextAsGlyphs(t),o=0,i=0,r=n.length;i<r;i++){var s=n[i].name,d=(n[i+1]||{}).name,f=this.font.getXAxisKerningForPair(s,d)||0;o+=this.widthOfGlyph(s)+f}return o*(e/1e3)},o.prototype.heightOfFontAtSize=function(t,e){void 0===e&&(e={});var n=e.descender,o=void 0===n||n,i=this.font,r=i.Ascender,s=i.Descender,d=i.FontBBox,f=(r||d[3])-(s||d[1]);return o||(f+=s||0),f/1e3*t},o.prototype.sizeOfFontAtHeight=function(t){var e=this.font,n=e.Ascender,o=e.Descender,i=e.FontBBox;return 1e3*t/((n||i[3])-(o||i[1]))},o.prototype.embedIntoContext=function(e,n){var o=e.obj({Type:"Font",Subtype:"Type1",BaseFont:this.customName||this.fontName,Encoding:this.encoding===t.Encodings.WinAnsi?"WinAnsiEncoding":void 0});return n?(e.assign(n,o),n):e.register(o)},o.prototype.widthOfGlyph=function(t){return this.font.getWidthOfGlyph(t)||250},o.prototype.encodeTextAsGlyphs=function(t){for(var e=Array.from(t),o=new Array(e.length),i=0,r=e.length;i<r;i++){var s=(0,n.toCodePoint)(e[i]);o[i]=this.encoding.encodeUnicodeCodePoint(s)}return o},o.for=function(t,e){return new o(t,e)},o}(),r=i;exports.default=r;
},{"@pdf-lib/standard-fonts":"ALwg","../objects/PDFHexString":"HRof","../../utils":"eZqv"}],"cLep":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createCmap=void 0;var e=require("../../utils"),n=require("../../utils/unicode"),r=function(e,n){for(var r=new Array(e.length),u=0,c=e.length;u<c;u++){var d=e[u],f=i(o(n(d))),p=i.apply(void 0,d.codePoints.map(a));r[u]=[f,p]}return t(r)};exports.createCmap=r;var t=function(e){return"/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange\n"+e.length+" beginbfchar\n"+e.map(function(e){return e[0]+" "+e[1]}).join("\n")+"\nendbfchar\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"},i=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return"<"+e.join("")+">"},o=function(n){return(0,e.toHexStringOfMinLength)(n,4)},a=function(r){if((0,n.isWithinBMP)(r))return o(r);if((0,n.hasSurrogates)(r)){var t=(0,n.highSurrogate)(r),i=(0,n.lowSurrogate)(r);return""+o(t)+o(i)}var a=(0,e.toHexString)(r);throw new Error("0x"+a+" is not a valid UTF-8 or UTF-16 codepoint.")};
},{"../../utils":"eZqv","../../utils/unicode":"NVV9"}],"PaA6":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.deriveFontFlags=void 0;var i=function(i){var e=0,t=function(i){e|=1<<i-1};return i.fixedPitch&&t(1),i.serif&&t(2),i.symbolic&&t(3),i.script&&t(4),i.nonsymbolic&&t(6),i.italic&&t(7),i.allCap&&t(17),i.smallCap&&t(18),i.forceBold&&t(19),e},e=function(e){var t=e["OS/2"]?e["OS/2"].sFamilyClass:0;return i({fixedPitch:e.post.isFixedPitch,serif:1<=t&&t<=7,symbolic:!0,script:10===t,italic:e.head.macStyle.italic})};exports.deriveFontFlags=e;
},{}],"aKIP":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=u(require("./PDFObject")),r=u(require("../syntax/CharCodes")),a=require("../../utils"),n=require("../errors");function u(t){return t&&t.__esModule?t:{default:t}}var o=function(e){function u(t){var r=e.call(this)||this;return r.value=t,r}return(0,t.__extends)(u,e),u.prototype.asBytes=function(){for(var t=[],e="",n=!1,u=function(e){void 0!==e&&t.push(e),n=!1},o=0,i=this.value.length;o<i;o++){var f=this.value[o],l=(0,a.toCharCode)(f),d=this.value[o+1];n?l===r.default.Newline?u():l===r.default.CarriageReturn?u():l===r.default.n?u(r.default.Newline):l===r.default.r?u(r.default.CarriageReturn):l===r.default.t?u(r.default.Tab):l===r.default.b?u(r.default.Backspace):l===r.default.f?u(r.default.FormFeed):l===r.default.LeftParen?u(r.default.LeftParen):l===r.default.RightParen?u(r.default.RightParen):l===r.default.Backspace?u(r.default.BackSlash):l>=r.default.Zero&&l<=r.default.Seven?3!==(e+=f).length&&d>="0"&&d<="7"||(u(parseInt(e,8)),e=""):u(l):l===r.default.BackSlash?n=!0:u(l)}return new Uint8Array(t)},u.prototype.decodeText=function(){var t=this.asBytes();return(0,a.hasUtf16BOM)(t)?(0,a.utf16Decode)(t):(0,a.pdfDocEncodingDecode)(t)},u.prototype.decodeDate=function(){var t=this.decodeText(),e=(0,a.parseDate)(t);if(!e)throw new n.InvalidPDFDateStringError(t);return e},u.prototype.asString=function(){return this.value},u.prototype.clone=function(){return u.of(this.value)},u.prototype.toString=function(){return"("+this.value+")"},u.prototype.sizeInBytes=function(){return this.value.length+2},u.prototype.copyBytesInto=function(t,e){return t[e++]=r.default.LeftParen,e+=(0,a.copyStringIntoBuffer)(this.value,t,e),t[e++]=r.default.RightParen,this.value.length+2},u.of=function(t){return new u(t)},u.fromDate=function(t){return new u("D:"+(0,a.padStart)(String(t.getUTCFullYear()),4,"0")+(0,a.padStart)(String(t.getUTCMonth()+1),2,"0")+(0,a.padStart)(String(t.getUTCDate()),2,"0")+(0,a.padStart)(String(t.getUTCHours()),2,"0")+(0,a.padStart)(String(t.getUTCMinutes()),2,"0")+(0,a.padStart)(String(t.getUTCSeconds()),2,"0")+"Z")},u}(e.default),i=o;exports.default=i;
},{"tslib":"vCxL","./PDFObject":"gBDq","../syntax/CharCodes":"mfDG","../../utils":"eZqv","../errors":"sGQ3"}],"Ys0l":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=require("./CMap"),n=require("./FontFlags"),i=s(require("../objects/PDFHexString")),r=s(require("../objects/PDFString")),o=require("../../utils");function s(t){return t&&t.__esModule?t:{default:t}}var a=function(){function s(t,e,n){var i=this;this.allGlyphsInFontSortedById=function(){for(var t=new Array(i.font.characterSet.length),e=0,n=t.length;e<n;e++){var r=i.font.characterSet[e];t[e]=i.font.glyphForCodePoint(r)}return(0,o.sortedUniq)(t.sort(o.byAscendingId),function(t){return t.id})},this.font=t,this.scale=1e3/this.font.unitsPerEm,this.fontData=e,this.fontName=this.font.postscriptName||"Font",this.customName=n,this.baseFontName="",this.glyphCache=o.Cache.populatedBy(this.allGlyphsInFontSortedById)}return s.for=function(e,n,i){return(0,t.__awaiter)(this,void 0,void 0,function(){return(0,t.__generator)(this,function(t){switch(t.label){case 0:return[4,e.create(n)];case 1:return[2,new s(t.sent(),n,i)]}})})},s.prototype.encodeText=function(t){for(var e=this.font.layout(t).glyphs,n=new Array(e.length),r=0,s=e.length;r<s;r++)n[r]=(0,o.toHexStringOfMinLength)(e[r].id,4);return i.default.of(n.join(""))},s.prototype.widthOfTextAtSize=function(t,e){for(var n=this.font.layout(t).glyphs,i=0,r=0,o=n.length;r<o;r++)i+=n[r].advanceWidth*this.scale;return i*(e/1e3)},s.prototype.heightOfFontAtSize=function(t,e){void 0===e&&(e={});var n=e.descender,i=void 0===n||n,r=this.font,o=r.ascent,s=r.descent,a=r.bbox,h=(o||a.maxY)*this.scale-(s||a.minY)*this.scale;return i||(h-=Math.abs(s)||0),h/1e3*t},s.prototype.sizeOfFontAtHeight=function(t){var e=this.font,n=e.ascent,i=e.descent,r=e.bbox;return 1e3*t/((n||r.maxY)*this.scale-(i||r.minY)*this.scale)},s.prototype.embedIntoContext=function(t,e){return this.baseFontName=this.customName||(0,o.addRandomSuffix)(this.fontName),this.embedFontDict(t,e)},s.prototype.embedFontDict=function(e,n){return(0,t.__awaiter)(this,void 0,void 0,function(){var i,r,o;return(0,t.__generator)(this,function(t){switch(t.label){case 0:return[4,this.embedCIDFontDict(e)];case 1:return i=t.sent(),r=this.embedUnicodeCmap(e),o=e.obj({Type:"Font",Subtype:"Type0",BaseFont:this.baseFontName,Encoding:"Identity-H",DescendantFonts:[i],ToUnicode:r}),n?(e.assign(n,o),[2,n]):[2,e.register(o)]}})})},s.prototype.isCFF=function(){return this.font.cff},s.prototype.embedCIDFontDict=function(e){return(0,t.__awaiter)(this,void 0,void 0,function(){var n,i;return(0,t.__generator)(this,function(t){switch(t.label){case 0:return[4,this.embedFontDescriptor(e)];case 1:return n=t.sent(),i=e.obj({Type:"Font",Subtype:this.isCFF()?"CIDFontType0":"CIDFontType2",BaseFont:this.baseFontName,CIDSystemInfo:{Registry:r.default.of("Adobe"),Ordering:r.default.of("Identity"),Supplement:0},FontDescriptor:n,W:this.computeWidths()}),[2,e.register(i)]}})})},s.prototype.embedFontDescriptor=function(e){return(0,t.__awaiter)(this,void 0,void 0,function(){var i,r,o,s,a,h,c,u,d,p,f,l,F,y,g;return(0,t.__generator)(this,function(t){switch(t.label){case 0:return[4,this.embedFontStream(e)];case 1:return i=t.sent(),r=this.scale,o=this.font,s=o.italicAngle,a=o.ascent,h=o.descent,c=o.capHeight,u=o.xHeight,d=this.font.bbox,p=d.minX,f=d.minY,l=d.maxX,F=d.maxY,y=e.obj(((g={Type:"FontDescriptor",FontName:this.baseFontName,Flags:(0,n.deriveFontFlags)(this.font),FontBBox:[p*r,f*r,l*r,F*r],ItalicAngle:s,Ascent:a*r,Descent:h*r,CapHeight:(c||a)*r,XHeight:(u||0)*r,StemV:0})[this.isCFF()?"FontFile3":"FontFile2"]=i,g)),[2,e.register(y)]}})})},s.prototype.serializeFont=function(){return(0,t.__awaiter)(this,void 0,void 0,function(){return(0,t.__generator)(this,function(t){return[2,this.fontData]})})},s.prototype.embedFontStream=function(e){return(0,t.__awaiter)(this,void 0,void 0,function(){var n,i,r;return(0,t.__generator)(this,function(t){switch(t.label){case 0:return r=(i=e).flateStream,[4,this.serializeFont()];case 1:return n=r.apply(i,[t.sent(),{Subtype:this.isCFF()?"CIDFontType0C":void 0}]),[2,e.register(n)]}})})},s.prototype.embedUnicodeCmap=function(t){var n=(0,e.create
},{"tslib":"vCxL","./CMap":"cLep","./FontFlags":"PaA6","../objects/PDFHexString":"HRof","../objects/PDFString":"aKIP","../../utils":"eZqv"}],"cKgr":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=i(require("./CustomFontEmbedder")),r=i(require("../objects/PDFHexString")),n=require("../../utils");function i(t){return t&&t.__esModule?t:{default:t}}var u=function(e){function i(t,r,i){var u=e.call(this,t,r,i)||this;return u.subset=u.font.createSubset(),u.glyphs=[],u.glyphCache=n.Cache.populatedBy(function(){return u.glyphs}),u.glyphIdMap=new Map,u}return(0,t.__extends)(i,e),i.for=function(e,r,n){return(0,t.__awaiter)(this,void 0,void 0,function(){return(0,t.__generator)(this,function(t){switch(t.label){case 0:return[4,e.create(r)];case 1:return[2,new i(t.sent(),r,n)]}})})},i.prototype.encodeText=function(t){for(var e=this.font.layout(t).glyphs,i=new Array(e.length),u=0,o=e.length;u<o;u++){var s=e[u],a=this.subset.includeGlyph(s);this.glyphs[a-1]=s,this.glyphIdMap.set(s.id,a),i[u]=(0,n.toHexStringOfMinLength)(a,4)}return this.glyphCache.invalidate(),r.default.of(i.join(""))},i.prototype.isCFF=function(){return this.subset.cff},i.prototype.glyphId=function(t){return t?this.glyphIdMap.get(t.id):-1},i.prototype.serializeFont=function(){var t=this;return new Promise(function(e,r){var i=[];t.subset.encodeStream().on("data",function(t){return i.push(t)}).on("end",function(){return e((0,n.mergeUint8Arrays)(i))}).on("error",function(t){return r(t)})})},i}(e.default),o=u;exports.default=o;
},{"tslib":"vCxL","./CustomFontEmbedder":"Ys0l","../objects/PDFHexString":"HRof","../../utils":"eZqv"}],"eFfO":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=r(require("../objects/PDFString")),i=r(require("../objects/PDFHexString"));function r(e){return e&&e.__esModule?e:{default:e}}var o=function(){function r(e,t,i){void 0===i&&(i={}),this.fileData=e,this.fileName=t,this.options=i}return r.for=function(e,t,i){return void 0===i&&(i={}),new r(e,t,i)},r.prototype.embedIntoContext=function(r,o){return(0,e.__awaiter)(this,void 0,void 0,function(){var a,n,f,s,u,d,l,c;return(0,e.__generator)(this,function(e){return a=this.options,n=a.mimeType,f=a.description,s=a.creationDate,u=a.modificationDate,d=r.flateStream(this.fileData,{Type:"EmbeddedFile",Subtype:null!=n?n:void 0,Params:{Size:this.fileData.length,CreationDate:s?t.default.fromDate(s):void 0,ModDate:u?t.default.fromDate(u):void 0}}),l=r.register(d),c=r.obj({Type:"Filespec",F:t.default.of(this.fileName),UF:i.default.fromText(this.fileName),EF:{F:l},Desc:f?i.default.fromText(f):void 0}),o?(r.assign(o,c),[2,o]):[2,r.register(c)]})})},r}(),a=o;exports.default=a;
},{"tslib":"vCxL","../objects/PDFString":"aKIP","../objects/PDFHexString":"HRof"}],"JW1F":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e,t=require("tslib"),i=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487];!function(e){e.DeviceGray="DeviceGray",e.DeviceRGB="DeviceRGB",e.DeviceCMYK="DeviceCMYK"}(e||(e={}));var r={1:e.DeviceGray,3:e.DeviceRGB,4:e.DeviceCMYK},n=function(){function n(e,t,i,r,n){this.imageData=e,this.bitsPerComponent=t,this.width=i,this.height=r,this.colorSpace=n}return n.for=function(e){return(0,t.__awaiter)(this,void 0,void 0,function(){var o,c,a,s,h,u,v,d;return(0,t.__generator)(this,function(t){if(o=new DataView(e.buffer),65496!==o.getUint16(0))throw new Error("SOI not found in JPEG");for(c=2;c<o.byteLength&&(a=o.getUint16(c),c+=2,!i.includes(a));)c+=o.getUint16(c);if(!i.includes(a))throw new Error("Invalid JPEG");if(c+=2,s=o.getUint8(c++),h=o.getUint16(c),c+=2,u=o.getUint16(c),c+=2,v=o.getUint8(c++),!(d=r[v]))throw new Error("Unknown JPEG channel.");return[2,new n(e,s,u,h,d)]})})},n.prototype.embedIntoContext=function(i,r){return(0,t.__awaiter)(this,void 0,void 0,function(){var n;return(0,t.__generator)(this,function(t){return n=i.stream(this.imageData,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.bitsPerComponent,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode",Decode:this.colorSpace===e.DeviceCMYK?[1,0,1,0,1,0,1,0]:void 0}),r?(i.assign(r,n),[2,r]):[2,i.register(n)]})})},n}(),o=n;exports.default=o;
},{"tslib":"vCxL"}],"SrWn":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("pako"));function r(e){return e&&e.__esModule?e:{default:e}}var t={toRGBA8:function(e){var r=e.width,n=e.height;if(null==e.tabs.acTL)return[t.toRGBA8.decodeImage(e.data,r,n,e).buffer];var i=[];null==e.frames[0].data&&(e.frames[0].data=e.data);for(var a=r*n*4,f=new Uint8Array(a),o=new Uint8Array(a),l=new Uint8Array(a),s=0;s<e.frames.length;s++){var u=e.frames[s],c=u.rect.x,d=u.rect.y,h=u.rect.width,v=u.rect.height,p=t.toRGBA8.decodeImage(u.data,h,v,e);if(0!=s)for(var g=0;g<a;g++)l[g]=f[g];if(0==u.blend?t._copyTile(p,h,v,f,r,n,c,d,0):1==u.blend&&t._copyTile(p,h,v,f,r,n,c,d,1),i.push(f.buffer.slice(0)),0==u.dispose);else if(1==u.dispose)t._copyTile(o,h,v,f,r,n,c,d,0);else if(2==u.dispose)for(g=0;g<a;g++)f[g]=l[g]}return i}};t.toRGBA8.decodeImage=function(e,r,n,i){var a=r*n,f=t.decode._getBPP(i),o=Math.ceil(r*f/8),l=new Uint8Array(4*a),s=new Uint32Array(l.buffer),u=i.ctype,c=i.depth,d=t._bin.readUshort;Date.now();if(6==u){var h=a<<2;if(8==c)for(var v=0;v<h;v+=4)l[v]=e[v],l[v+1]=e[v+1],l[v+2]=e[v+2],l[v+3]=e[v+3];if(16==c)for(v=0;v<h;v++)l[v]=e[v<<1]}else if(2==u){var p=i.tabs.tRNS;if(null==p){if(8==c)for(v=0;v<a;v++){var g=3*v;s[v]=255<<24|e[g+2]<<16|e[g+1]<<8|e[g]}if(16==c)for(v=0;v<a;v++){g=6*v;s[v]=255<<24|e[g+4]<<16|e[g+2]<<8|e[g]}}else{var b=p[0],w=p[1],y=p[2];if(8==c)for(v=0;v<a;v++){var m=v<<2;g=3*v;s[v]=255<<24|e[g+2]<<16|e[g+1]<<8|e[g],e[g]==b&&e[g+1]==w&&e[g+2]==y&&(l[m+3]=0)}if(16==c)for(v=0;v<a;v++){m=v<<2,g=6*v;s[v]=255<<24|e[g+4]<<16|e[g+2]<<8|e[g],d(e,g)==b&&d(e,g+2)==w&&d(e,g+4)==y&&(l[m+3]=0)}}}else if(3==u){var A=i.tabs.PLTE,_=i.tabs.tRNS,U=_?_.length:0;if(1==c)for(var H=0;H<n;H++){var I=H*o,q=H*r;for(v=0;v<r;v++){m=q+v<<2;var M=3*(R=e[I+(v>>3)]>>7-((7&v)<<0)&1);l[m]=A[M],l[m+1]=A[M+1],l[m+2]=A[M+2],l[m+3]=R<U?_[R]:255}}if(2==c)for(H=0;H<n;H++)for(I=H*o,q=H*r,v=0;v<r;v++){m=q+v<<2,M=3*(R=e[I+(v>>2)]>>6-((3&v)<<1)&3);l[m]=A[M],l[m+1]=A[M+1],l[m+2]=A[M+2],l[m+3]=R<U?_[R]:255}if(4==c)for(H=0;H<n;H++)for(I=H*o,q=H*r,v=0;v<r;v++){m=q+v<<2,M=3*(R=e[I+(v>>1)]>>4-((1&v)<<2)&15);l[m]=A[M],l[m+1]=A[M+1],l[m+2]=A[M+2],l[m+3]=R<U?_[R]:255}if(8==c)for(v=0;v<a;v++){var R;m=v<<2,M=3*(R=e[v]);l[m]=A[M],l[m+1]=A[M+1],l[m+2]=A[M+2],l[m+3]=R<U?_[R]:255}}else if(4==u){if(8==c)for(v=0;v<a;v++){m=v<<2;var T=e[x=v<<1];l[m]=T,l[m+1]=T,l[m+2]=T,l[m+3]=e[x+1]}if(16==c)for(v=0;v<a;v++){var x;m=v<<2,T=e[x=v<<2];l[m]=T,l[m+1]=T,l[m+2]=T,l[m+3]=e[x+2]}}else if(0==u)for(b=i.tabs.tRNS?i.tabs.tRNS:-1,H=0;H<n;H++){var z=H*o,D=H*r;if(1==c)for(var N=0;N<r;N++){var P=(T=255*(e[z+(N>>>3)]>>>7-(7&N)&1))==255*b?0:255;s[D+N]=P<<24|T<<16|T<<8|T}else if(2==c)for(N=0;N<r;N++){P=(T=85*(e[z+(N>>>2)]>>>6-((3&N)<<1)&3))==85*b?0:255;s[D+N]=P<<24|T<<16|T<<8|T}else if(4==c)for(N=0;N<r;N++){P=(T=17*(e[z+(N>>>1)]>>>4-((1&N)<<2)&15))==17*b?0:255;s[D+N]=P<<24|T<<16|T<<8|T}else if(8==c)for(N=0;N<r;N++){P=(T=e[z+N])==b?0:255;s[D+N]=P<<24|T<<16|T<<8|T}else if(16==c)for(N=0;N<r;N++){T=e[z+(N<<1)],P=d(e,z+(N<<v))==b?0:255;s[D+N]=P<<24|T<<16|T<<8|T}}return l},t.decode=function(e){for(var r,n=new Uint8Array(e),i=8,a=t._bin,f=a.readUshort,o=a.readUint,l={tabs:{},frames:[]},s=new Uint8Array(n.length),u=0,c=0,d=[137,80,78,71,13,10,26,10],h=0;h<8;h++)if(n[h]!=d[h])throw"The input is not a PNG file!";for(;i<n.length;){var v=a.readUint(n,i);i+=4;var p=a.readASCII(n,i,4);if(i+=4,"IHDR"==p)t.decode._IHDR(n,i,l);else if("IDAT"==p){for(h=0;h<v;h++)s[u+h]=n[i+h];u+=v}else if("acTL"==p)l.tabs[p]={num_frames:o(n,i),num_plays:o(n,i+4)},r=new Uint8Array(n.length);else if("fcTL"==p){var g;if(0!=c)(g=l.frames[l.frames.length-1]).data=t.decode._decompress(l,r.slice(0,c),g.rect.width,g.rect.height),c=0;var b={x:o(n,i+12),y:o(n,i+16),width:o(n,i+4),height:o(n,i+8)},w=f(n,i+22);w=f(n,i+20)/(0==w?100:w);var y={rect:b,delay:Math.round(1e3*w),dispose:n[i+24],blend:n[i+25]};l.frames.push(y)}else if("fdAT"==p){for(h=0;h<v-4;h++)r[c+h]=n[i+h+4];c+=v-4}else if("pHYs"==p)l.tabs[p]=[a.readUint(n,i),a.readUint(n,i+4),n[i+8]];else if("cHRM"==p){l.tabs[p]=[];for(h=0;h<8;h++)l.tabs[p].push(a.rea
},{"pako":"f4vO"}],"bfdS":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PNG=exports.PngType=void 0;var e=r(require("@pdf-lib/upng"));function r(e){return e&&e.__esModule?e:{default:e}}var n,t=function(e){if(0===e)return n.Greyscale;if(2===e)return n.Truecolour;if(3===e)return n.IndexedColour;if(4===e)return n.GreyscaleWithAlpha;if(6===e)return n.TruecolourWithAlpha;throw new Error("Unknown color type: "+e)},o=function(e){for(var r=Math.floor(e.length/4),n=new Uint8Array(3*r),t=new Uint8Array(1*r),o=0,l=0,u=0;o<e.length;)n[l++]=e[o++],n[l++]=e[o++],n[l++]=e[o++],t[u++]=e[o++];return{rgbChannel:n,alphaChannel:t}};exports.PngType=n,function(e){e.Greyscale="Greyscale",e.Truecolour="Truecolour",e.IndexedColour="IndexedColour",e.GreyscaleWithAlpha="GreyscaleWithAlpha",e.TruecolourWithAlpha="TruecolourWithAlpha"}(n||(exports.PngType=n={}));var l=function(){function r(r){var n=e.default.decode(r),l=e.default.toRGBA8(n);if(l.length>1)throw new Error("Animated PNGs are not supported");var u=new Uint8Array(l[0]),a=o(u),i=a.rgbChannel,h=a.alphaChannel;this.rgbChannel=i,h.some(function(e){return e<255})&&(this.alphaChannel=h),this.type=t(n.ctype),this.width=n.width,this.height=n.height,this.bitsPerComponent=8}return r.load=function(e){return new r(e)},r}();exports.PNG=l;
},{"@pdf-lib/upng":"SrWn"}],"vJYd":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=require("../../utils/png"),i=function(){function i(e){this.image=e,this.bitsPerComponent=e.bitsPerComponent,this.width=e.width,this.height=e.height,this.colorSpace="DeviceRGB"}return i.for=function(n){return(0,e.__awaiter)(this,void 0,void 0,function(){return(0,e.__generator)(this,function(e){return[2,new i(t.PNG.load(n))]})})},i.prototype.embedIntoContext=function(t,i){return(0,e.__awaiter)(this,void 0,void 0,function(){var n,r;return(0,e.__generator)(this,function(e){return n=this.embedAlphaChannel(t),r=t.flateStream(this.image.rgbChannel,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.image.bitsPerComponent,Width:this.image.width,Height:this.image.height,ColorSpace:this.colorSpace,SMask:n}),i?(t.assign(i,r),[2,i]):[2,t.register(r)]})})},i.prototype.embedAlphaChannel=function(e){if(this.image.alphaChannel){var t=e.flateStream(this.image.alphaChannel,{Type:"XObject",Subtype:"Image",Height:this.image.height,Width:this.image.width,BitsPerComponent:this.image.bitsPerComponent,ColorSpace:"DeviceGray",Decode:[0,1]});return e.register(t)}},i}(),n=i;exports.default=n;
},{"tslib":"vCxL","../../utils/png":"bfdS"}],"H9YU":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=function(){function t(t,e,r){this.bytes=t,this.start=e||0,this.pos=this.start,this.end=e&&r?e+r:this.bytes.length}return Object.defineProperty(t.prototype,"length",{get:function(){return this.end-this.start},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),t.prototype.getByte=function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},t.prototype.getUint16=function(){var t=this.getByte(),e=this.getByte();return-1===t||-1===e?-1:(t<<8)+e},t.prototype.getInt32=function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},t.prototype.getBytes=function(t,e){void 0===e&&(e=!1);var r=this.bytes,s=this.pos,o=this.end;if(t){var i=s+t;i>o&&(i=o),this.pos=i;n=r.subarray(s,i);return e?new Uint8ClampedArray(n):n}var n=r.subarray(s,o);return e?new Uint8ClampedArray(n):n},t.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},t.prototype.peekBytes=function(t,e){void 0===e&&(e=!1);var r=this.getBytes(t,e);return this.pos-=r.length,r},t.prototype.skip=function(t){t||(t=1),this.pos+=t},t.prototype.reset=function(){this.pos=this.start},t.prototype.moveStart=function(){this.start=this.pos},t.prototype.makeSubStream=function(e,r){return new t(this.bytes,e,r)},t.prototype.decode=function(){return this.bytes},t}(),e=t;exports.default=e;
},{}],"hSN7":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("../errors"),e=r(require("./Stream"));function r(t){return t&&t.__esModule?t:{default:t}}var o=new Uint8Array(0),i=function(){function r(t){if(this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=o,this.minBufferLength=512,t)for(;this.minBufferLength<t;)this.minBufferLength*=2}return Object.defineProperty(r.prototype,"isEmpty",{get:function(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength},enumerable:!1,configurable:!0}),r.prototype.getByte=function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},r.prototype.getUint16=function(){var t=this.getByte(),e=this.getByte();return-1===t||-1===e?-1:(t<<8)+e},r.prototype.getInt32=function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},r.prototype.getBytes=function(t,e){var r;void 0===e&&(e=!1);var o=this.pos;if(t){for(this.ensureBuffer(o+t),r=o+t;!this.eof&&this.bufferLength<r;)this.readBlock();var i=this.bufferLength;r>i&&(r=i)}else{for(;!this.eof;)this.readBlock();r=this.bufferLength}this.pos=r;var f=this.buffer.subarray(o,r);return!e||f instanceof Uint8ClampedArray?f:new Uint8ClampedArray(f)},r.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},r.prototype.peekBytes=function(t,e){void 0===e&&(e=!1);var r=this.getBytes(t,e);return this.pos-=r.length,r},r.prototype.skip=function(t){t||(t=1),this.pos+=t},r.prototype.reset=function(){this.pos=0},r.prototype.makeSubStream=function(t,r){for(var o=t+r;this.bufferLength<=o&&!this.eof;)this.readBlock();return new e.default(this.buffer,t,r)},r.prototype.decode=function(){for(;!this.eof;)this.readBlock();return this.buffer.subarray(0,this.bufferLength)},r.prototype.readBlock=function(){throw new t.MethodNotImplementedError(this.constructor.name,"readBlock")},r.prototype.ensureBuffer=function(t){var e=this.buffer;if(t<=e.byteLength)return e;for(var r=this.minBufferLength;r<t;)r*=2;var o=new Uint8Array(r);return o.set(e),this.buffer=o},r}(),f=i;exports.default=f;
},{"../errors":"sGQ3","./Stream":"H9YU"}],"CFui":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=r(require("./DecodeStream"));function r(e){return e&&e.__esModule?e:{default:e}}var f=function(e){return 32===e||9===e||13===e||10===e},i=function(t){function r(e,r){var f=t.call(this,r)||this;return f.stream=e,f.input=new Uint8Array(5),r&&(r*=.8),f}return(0,e.__extends)(r,t),r.prototype.readBlock=function(){for(var e=this.stream,t=e.getByte();f(t);)t=e.getByte();if(-1!==t&&126!==t){var r,i,u=this.bufferLength;if(122===t){for(r=this.ensureBuffer(u+4),i=0;i<4;++i)r[u+i]=0;this.bufferLength+=4}else{var s=this.input;for(s[0]=t,i=1;i<5;++i){for(t=e.getByte();f(t);)t=e.getByte();if(s[i]=t,-1===t||126===t)break}if(r=this.ensureBuffer(u+i-1),this.bufferLength+=i-1,i<5){for(;i<5;++i)s[i]=117;this.eof=!0}var n=0;for(i=0;i<5;++i)n=85*n+(s[i]-33);for(i=3;i>=0;--i)r[u+i]=255&n,n>>=8}}else this.eof=!0},r}(t.default),u=i;exports.default=u;
},{"tslib":"vCxL","./DecodeStream":"hSN7"}],"wWO2":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=i(require("./DecodeStream"));function i(e){return e&&e.__esModule?e:{default:e}}var r=function(t){function i(e,i){var r=t.call(this,i)||this;return r.stream=e,r.firstDigit=-1,i&&(i*=.5),r}return(0,e.__extends)(i,t),i.prototype.readBlock=function(){var e=this.stream.getBytes(8e3);if(e.length){for(var t=e.length+1>>1,i=this.ensureBuffer(this.bufferLength+t),r=this.bufferLength,s=this.firstDigit,f=0,u=e.length;f<u;f++){var n=e[f],o=void 0;if(n>=48&&n<=57)o=15&n;else{if(!(n>=65&&n<=70||n>=97&&n<=102)){if(62===n){this.eof=!0;break}continue}o=9+(15&n)}s<0?s=o:(i[r++]=s<<4|o,s=-1)}s>=0&&this.eof&&(i[r++]=s<<4,s=-1),this.firstDigit=s,this.bufferLength=r}else this.eof=!0},i}(t.default),s=r;exports.default=s;
},{"tslib":"vCxL","./DecodeStream":"hSN7"}],"dovI":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=r(require("./DecodeStream"));function r(e){return e&&e.__esModule?e:{default:e}}var i=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),o=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),n=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,45
},{"tslib":"vCxL","./DecodeStream":"hSN7"}],"VXQm":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=r(require("./DecodeStream"));function r(e){return e&&e.__esModule?e:{default:e}}var n=function(t){function r(e,r,n){var i=t.call(this,r)||this;i.stream=e,i.cachedData=0,i.bitsCached=0;for(var a={earlyChange:n,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(4096),dictionaryLengths:new Uint16Array(4096),dictionaryPrevCodes:new Uint16Array(4096),currentSequence:new Uint8Array(4096),currentSequenceLength:0},o=0;o<256;++o)a.dictionaryValues[o]=o,a.dictionaryLengths[o]=1;return i.lzwState=a,i}return(0,e.__extends)(r,t),r.prototype.readBlock=function(){var e,t,r,n=1024,i=this.lzwState;if(i){var a=i.earlyChange,o=i.nextCode,s=i.dictionaryValues,u=i.dictionaryLengths,h=i.dictionaryPrevCodes,c=i.codeLength,d=i.prevCode,f=i.currentSequence,l=i.currentSequenceLength,y=0,g=this.bufferLength,v=this.ensureBuffer(this.bufferLength+n);for(e=0;e<512;e++){var L=this.readBits(c),C=l>0;if(!L||L<256)f[0]=L,l=1;else{if(!(L>=258)){if(256===L){c=9,o=258,l=0;continue}this.eof=!0,delete this.lzwState;break}if(L<o)for(t=(l=u[L])-1,r=L;t>=0;t--)f[t]=s[r],r=h[r];else f[l++]=f[0]}if(C&&(h[o]=d,u[o]=u[d]+1,s[o]=f[0],c=++o+a&o+a-1?c:0|Math.min(Math.log(o+a)/.6931471805599453+1,12)),d=L,n<(y+=l)){do{n+=512}while(n<y);v=this.ensureBuffer(this.bufferLength+n)}for(t=0;t<l;t++)v[g++]=f[t]}i.nextCode=o,i.codeLength=c,i.prevCode=d,i.currentSequenceLength=l,this.bufferLength=g}},r.prototype.readBits=function(e){for(var t=this.bitsCached,r=this.cachedData;t<e;){var n=this.stream.getByte();if(-1===n)return this.eof=!0,null;r=r<<8|n,t+=8}return this.bitsCached=t-=e,this.cachedData=r,r>>>t&(1<<e)-1},r}(t.default),i=n;exports.default=i;
},{"tslib":"vCxL","./DecodeStream":"hSN7"}],"xjFZ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=r(require("./DecodeStream"));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(t){function r(e,r){var s=t.call(this,r)||this;return s.stream=e,s}return(0,e.__extends)(r,t),r.prototype.readBlock=function(){var e=this.stream.getBytes(2);if(!e||e.length<2||128===e[0])this.eof=!0;else{var t,r=this.bufferLength,s=e[0];if(s<128){if((t=this.ensureBuffer(r+s+1))[r++]=e[1],s>0){var u=this.stream.getBytes(s);t.set(u,r),r+=s}}else{s=257-s;var f=e[1];t=this.ensureBuffer(r+s+1);for(var i=0;i<s;i++)t[r++]=f}this.bufferLength=r}},r}(t.default),u=s;exports.default=u;
},{"tslib":"vCxL","./DecodeStream":"hSN7"}],"gYNG":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.decodePDFRawStream=void 0;var e=require("../errors"),r=c(require("../objects/PDFArray")),t=c(require("../objects/PDFDict")),u=c(require("../objects/PDFName")),a=c(require("../objects/PDFNumber")),o=c(require("./Ascii85Stream")),f=c(require("./AsciiHexStream")),d=c(require("./FlateStream")),n=c(require("./LZWStream")),i=c(require("./RunLengthStream")),l=c(require("./Stream"));function c(e){return e&&e.__esModule?e:{default:e}}var s=function(r,l,c){if(l===u.default.of("FlateDecode"))return new d.default(r);if(l===u.default.of("LZWDecode")){var s=1;if(c instanceof t.default){var p=c.lookup(u.default.of("EarlyChange"));p instanceof a.default&&(s=p.asNumber())}return new n.default(r,void 0,s)}if(l===u.default.of("ASCII85Decode"))return new o.default(r);if(l===u.default.of("ASCIIHexDecode"))return new f.default(r);if(l===u.default.of("RunLengthDecode"))return new i.default(r);throw new e.UnsupportedEncodingError(l.asString())},p=function(a){var o=a.dict,f=a.contents,d=new l.default(f),n=o.lookup(u.default.of("Filter")),i=o.lookup(u.default.of("DecodeParms"));if(n instanceof u.default)d=s(d,n,i);else if(n instanceof r.default)for(var c=0,p=n.size();c<p;c++)d=s(d,n.lookup(c,u.default),i&&i.lookupMaybe(c,t.default));else if(n)throw new e.UnexpectedObjectTypeError([u.default,r.default],n);return d};exports.decodePDFRawStream=p;
},{"../errors":"sGQ3","../objects/PDFArray":"eics","../objects/PDFDict":"SzSo","../objects/PDFName":"EEtc","../objects/PDFNumber":"m342","./Ascii85Stream":"CFui","./AsciiHexStream":"wWO2","./FlateStream":"dovI","./LZWStream":"VXQm","./RunLengthStream":"xjFZ","./Stream":"H9YU"}],"B9zE":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=require("../errors"),r=d(require("../objects/PDFNumber")),o=d(require("../objects/PDFRawStream")),n=d(require("../objects/PDFStream")),i=require("../streams/decode"),u=d(require("../structures/PDFContentStream")),s=d(require("../syntax/CharCodes")),a=require("../../utils");function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){var t=e.MediaBox();return{left:0,bottom:0,right:t.lookup(2,r.default).asNumber()-t.lookup(0,r.default).asNumber(),top:t.lookup(3,r.default).asNumber()-t.lookup(1,r.default).asNumber()}},l=function(e){return[1,0,0,1,-e.left,-e.bottom]},c=function(){function r(e,t,r){this.page=e;var o=null!=t?t:f(e);this.width=o.right-o.left,this.height=o.top-o.bottom,this.boundingBox=o,this.transformationMatrix=null!=r?r:l(o)}return r.for=function(t,o,n){return(0,e.__awaiter)(this,void 0,void 0,function(){return(0,e.__generator)(this,function(e){return[2,new r(t,o,n)]})})},r.prototype.embedIntoContext=function(r,o){return(0,e.__awaiter)(this,void 0,void 0,function(){var n,i,u,s,a,d,f,l,c,p;return(0,e.__generator)(this,function(e){if(n=this.page.normalizedEntries(),i=n.Contents,u=n.Resources,!i)throw new t.MissingPageContentsEmbeddingError;return s=this.decodeContents(i),a=this.boundingBox,d=a.left,f=a.bottom,l=a.right,c=a.top,p=r.stream(s,{Type:"XObject",Subtype:"Form",FormType:1,BBox:[d,f,l,c],Matrix:this.transformationMatrix,Resources:u}),o?(r.assign(o,p),[2,o]):[2,r.register(p)]})})},r.prototype.decodeContents=function(e){for(var r=Uint8Array.of(s.default.Newline),d=[],f=0,l=e.size();f<l;f++){var c=e.lookup(f,n.default),p=void 0;if(c instanceof o.default)p=(0,i.decodePDFRawStream)(c).decode();else{if(!(c instanceof u.default))throw new t.UnrecognizedStreamTypeError(c);p=c.getUnencodedContents()}d.push(p,r)}return a.mergeIntoTypedArray.apply(void 0,d)},r}(),p=c;exports.default=p;
},{"tslib":"vCxL","../errors":"sGQ3","../objects/PDFNumber":"m342","../objects/PDFRawStream":"ws4b","../objects/PDFStream":"a9WL","../streams/decode":"gYNG","../structures/PDFContentStream":"NCZn","../syntax/CharCodes":"mfDG","../../utils":"eZqv"}],"crxD":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=n(require("../objects/PDFDict")),e=n(require("../objects/PDFString")),o=n(require("../objects/PDFHexString")),i=n(require("../objects/PDFName")),r=n(require("../objects/PDFNumber")),a=n(require("../objects/PDFArray")),u=n(require("../objects/PDFRef"));function n(t){return t&&t.__esModule?t:{default:t}}var f=function(){function n(t,e){this.dict=t,this.ref=e}return n.prototype.T=function(){return this.dict.lookupMaybe(i.default.of("T"),e.default,o.default)},n.prototype.Ff=function(){var t=this.getInheritableAttribute(i.default.of("Ff"));return this.dict.context.lookupMaybe(t,r.default)},n.prototype.V=function(){var t=this.getInheritableAttribute(i.default.of("V"));return this.dict.context.lookup(t)},n.prototype.Kids=function(){return this.dict.lookupMaybe(i.default.of("Kids"),a.default)},n.prototype.DA=function(){var t=this.dict.lookup(i.default.of("DA"));if(t instanceof e.default||t instanceof o.default)return t},n.prototype.setKids=function(t){this.dict.set(i.default.of("Kids"),this.dict.context.obj(t))},n.prototype.getParent=function(){var e=this.dict.get(i.default.of("Parent"));if(e instanceof u.default)return new n(this.dict.lookup(i.default.of("Parent"),t.default),e)},n.prototype.setParent=function(t){t?this.dict.set(i.default.of("Parent"),t):this.dict.delete(i.default.of("Parent"))},n.prototype.getFullyQualifiedName=function(){var t=this.getParent();return t?t.getFullyQualifiedName()+"."+this.getPartialName():this.getPartialName()},n.prototype.getPartialName=function(){var t;return null===(t=this.T())||void 0===t?void 0:t.decodeText()},n.prototype.setPartialName=function(t){t?this.dict.set(i.default.of("T"),o.default.fromText(t)):this.dict.delete(i.default.of("T"))},n.prototype.setDefaultAppearance=function(t){this.dict.set(i.default.of("DA"),e.default.of(t))},n.prototype.getDefaultAppearance=function(){var t,e;return null!==(e=null===(t=this.DA())||void 0===t?void 0:t.asString())&&void 0!==e?e:""},n.prototype.getFlags=function(){var t,e;return null!==(e=null===(t=this.Ff())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:0},n.prototype.setFlags=function(t){this.dict.set(i.default.of("Ff"),r.default.of(t))},n.prototype.hasFlag=function(t){return 0!=(this.getFlags()&t)},n.prototype.setFlag=function(t){var e=this.getFlags();this.setFlags(e|t)},n.prototype.clearFlag=function(t){var e=this.getFlags();this.setFlags(e&~t)},n.prototype.setFlagTo=function(t,e){e?this.setFlag(t):this.clearFlag(t)},n.prototype.getInheritableAttribute=function(t){var e;return this.ascend(function(o){e||(e=o.dict.get(t))}),e},n.prototype.ascend=function(t){t(this);var e=this.getParent();e&&e.ascend(t)},n}(),s=f;exports.default=s;
},{"../objects/PDFDict":"SzSo","../objects/PDFString":"aKIP","../objects/PDFHexString":"HRof","../objects/PDFName":"EEtc","../objects/PDFNumber":"m342","../objects/PDFArray":"eics","../objects/PDFRef":"Q0Z6"}],"UAho":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=o(require("../objects/PDFName")),e=o(require("../objects/PDFNumber"));function o(t){return t&&t.__esModule?t:{default:t}}var r=function(){function o(t){this.dict=t}return o.prototype.W=function(){var o=this.dict.lookup(t.default.of("W"));if(o instanceof e.default)return o},o.prototype.getWidth=function(){var t,e;return null!==(e=null===(t=this.W())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:1},o.prototype.setWidth=function(e){var o=this.dict.context.obj(e);this.dict.set(t.default.of("W"),o)},o.fromDict=function(t){return new o(t)},o}(),i=r;exports.default=i;
},{"../objects/PDFName":"EEtc","../objects/PDFNumber":"m342"}],"ROtS":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=a(require("../objects/PDFDict")),e=a(require("../objects/PDFName")),o=a(require("../objects/PDFStream")),r=a(require("../objects/PDFArray")),u=a(require("../objects/PDFNumber"));function a(t){return t&&t.__esModule?t:{default:t}}var n=function(){function a(t){this.dict=t}return a.prototype.Rect=function(){return this.dict.lookup(e.default.of("Rect"),r.default)},a.prototype.AP=function(){return this.dict.lookupMaybe(e.default.of("AP"),t.default)},a.prototype.F=function(){var t=this.dict.lookup(e.default.of("F"));return this.dict.context.lookupMaybe(t,u.default)},a.prototype.getRectangle=function(){var t,e=this.Rect();return null!==(t=null==e?void 0:e.asRectangle())&&void 0!==t?t:{x:0,y:0,width:0,height:0}},a.prototype.setRectangle=function(t){var o=t.x,r=t.y,u=t.width,a=t.height,n=this.dict.context.obj([o,r,o+u,r+a]);this.dict.set(e.default.of("Rect"),n)},a.prototype.setAppearanceState=function(t){this.dict.set(e.default.of("AS"),t)},a.prototype.setAppearances=function(t){this.dict.set(e.default.of("AP"),t)},a.prototype.ensureAP=function(){var t=this.AP();return t||(t=this.dict.context.obj({}),this.dict.set(e.default.of("AP"),t)),t},a.prototype.setNormalAppearance=function(t){this.ensureAP().set(e.default.of("N"),t)},a.prototype.setRolloverAppearance=function(t){this.ensureAP().set(e.default.of("R"),t)},a.prototype.setDownAppearance=function(t){this.ensureAP().set(e.default.of("D"),t)},a.prototype.removeRolloverAppearance=function(){var t=this.AP();null==t||t.delete(e.default.of("R"))},a.prototype.removeDownAppearance=function(){var t=this.AP();null==t||t.delete(e.default.of("D"))},a.prototype.getAppearances=function(){var r=this.AP();if(r)return{normal:r.lookup(e.default.of("N"),t.default,o.default),rollover:r.lookupMaybe(e.default.of("R"),t.default,o.default),down:r.lookupMaybe(e.default.of("D"),t.default,o.default)}},a.prototype.getFlags=function(){var t,e;return null!==(e=null===(t=this.F())||void 0===t?void 0:t.asNumber())&&void 0!==e?e:0},a.prototype.setFlags=function(t){this.dict.set(e.default.of("F"),u.default.of(t))},a.prototype.hasFlag=function(t){return 0!=(this.getFlags()&t)},a.prototype.setFlag=function(t){var e=this.getFlags();this.setFlags(e|t)},a.prototype.clearFlag=function(t){var e=this.getFlags();this.setFlags(e&~t)},a.prototype.setFlagTo=function(t,e){e?this.setFlag(t):this.clearFlag(t)},a.fromDict=function(t){return new a(t)},a}(),i=n;exports.default=i;
},{"../objects/PDFDict":"SzSo","../objects/PDFName":"EEtc","../objects/PDFStream":"a9WL","../objects/PDFArray":"eics","../objects/PDFNumber":"m342"}],"mxI4":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=n(require("../objects/PDFName")),e=n(require("../objects/PDFNumber")),o=n(require("../objects/PDFArray")),r=n(require("../objects/PDFHexString")),i=n(require("../objects/PDFString"));function n(t){return t&&t.__esModule?t:{default:t}}var f=function(){function n(t){this.dict=t}return n.prototype.R=function(){var o=this.dict.lookup(t.default.of("R"));if(o instanceof e.default)return o},n.prototype.BC=function(){var e=this.dict.lookup(t.default.of("BC"));if(e instanceof o.default)return e},n.prototype.BG=function(){var e=this.dict.lookup(t.default.of("BG"));if(e instanceof o.default)return e},n.prototype.CA=function(){var e=this.dict.lookup(t.default.of("CA"));if(e instanceof r.default||e instanceof i.default)return e},n.prototype.RC=function(){var e=this.dict.lookup(t.default.of("RC"));if(e instanceof r.default||e instanceof i.default)return e},n.prototype.AC=function(){var e=this.dict.lookup(t.default.of("AC"));if(e instanceof r.default||e instanceof i.default)return e},n.prototype.getRotation=function(){var t;return null===(t=this.R())||void 0===t?void 0:t.asNumber()},n.prototype.getBorderColor=function(){var t=this.BC();if(t){for(var o=[],r=0,i=null==t?void 0:t.size();r<i;r++){var n=t.get(r);n instanceof e.default&&o.push(n.asNumber())}return o}},n.prototype.getBackgroundColor=function(){var t=this.BG();if(t){for(var o=[],r=0,i=null==t?void 0:t.size();r<i;r++){var n=t.get(r);n instanceof e.default&&o.push(n.asNumber())}return o}},n.prototype.getCaptions=function(){var t=this.CA(),e=this.RC(),o=this.AC();return{normal:null==t?void 0:t.decodeText(),rollover:null==e?void 0:e.decodeText(),down:null==o?void 0:o.decodeText()}},n.prototype.setRotation=function(e){var o=this.dict.context.obj(e);this.dict.set(t.default.of("R"),o)},n.prototype.setBorderColor=function(e){var o=this.dict.context.obj(e);this.dict.set(t.default.of("BC"),o)},n.prototype.setBackgroundColor=function(e){var o=this.dict.context.obj(e);this.dict.set(t.default.of("BG"),o)},n.prototype.setCaptions=function(e){var o=r.default.fromText(e.normal);if(this.dict.set(t.default.of("CA"),o),e.rollover){var i=r.default.fromText(e.rollover);this.dict.set(t.default.of("RC"),i)}else this.dict.delete(t.default.of("RC"));if(e.down){var n=r.default.fromText(e.down);this.dict.set(t.default.of("AC"),n)}else this.dict.delete(t.default.of("AC"))},n.fromDict=function(t){return new n(t)},n}(),u=f;exports.default=u;
},{"../objects/PDFName":"EEtc","../objects/PDFNumber":"m342","../objects/PDFArray":"eics","../objects/PDFHexString":"HRof","../objects/PDFString":"aKIP"}],"F0K9":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=f(require("../objects/PDFDict")),r=f(require("../objects/PDFName")),i=f(require("../objects/PDFString")),o=f(require("../objects/PDFHexString")),n=f(require("./BorderStyle")),u=f(require("./PDFAnnotation")),a=f(require("./AppearanceCharacteristics"));function f(t){return t&&t.__esModule?t:{default:t}}var c=function(u){function f(){return null!==u&&u.apply(this,arguments)||this}return(0,t.__extends)(f,u),f.prototype.MK=function(){var t=this.dict.lookup(r.default.of("MK"));if(t instanceof e.default)return t},f.prototype.BS=function(){var t=this.dict.lookup(r.default.of("BS"));if(t instanceof e.default)return t},f.prototype.DA=function(){var t=this.dict.lookup(r.default.of("DA"));if(t instanceof i.default||t instanceof o.default)return t},f.prototype.setDefaultAppearance=function(t){this.dict.set(r.default.of("DA"),i.default.of(t))},f.prototype.getDefaultAppearance=function(){var t,e;return null!==(e=null===(t=this.DA())||void 0===t?void 0:t.asString())&&void 0!==e?e:""},f.prototype.getAppearanceCharacteristics=function(){var t=this.MK();if(t)return a.default.fromDict(t)},f.prototype.getOrCreateAppearanceCharacteristics=function(){var t=this.MK();if(t)return a.default.fromDict(t);var e=a.default.fromDict(this.dict.context.obj({}));return this.dict.set(r.default.of("MK"),e.dict),e},f.prototype.getBorderStyle=function(){var t=this.BS();if(t)return n.default.fromDict(t)},f.prototype.getOrCreateBorderStyle=function(){var t=this.BS();if(t)return n.default.fromDict(t);var e=n.default.fromDict(this.dict.context.obj({}));return this.dict.set(r.default.of("BS"),e.dict),e},f.prototype.getOnValue=function(){var t,i=null===(t=this.getAppearances())||void 0===t?void 0:t.normal;if(i instanceof e.default)for(var o=i.keys(),n=0,u=o.length;n<u;n++){var a=o[n];if(a!==r.default.of("Off"))return a}},f.fromDict=function(t){return new f(t)},f.create=function(t,e){return new f(t.obj({Type:"Annot",Subtype:"Widget",Rect:[0,0,0,0],Parent:e}))},f}(u.default),d=c;exports.default=d;
},{"tslib":"vCxL","../objects/PDFDict":"SzSo","../objects/PDFName":"EEtc","../objects/PDFString":"aKIP","../objects/PDFHexString":"HRof","./BorderStyle":"UAho","./PDFAnnotation":"ROtS","./AppearanceCharacteristics":"mxI4"}],"M5hp":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=u(require("../objects/PDFDict")),r=u(require("../objects/PDFName")),i=u(require("./PDFAcroField")),o=u(require("../annotation/PDFWidgetAnnotation")),n=require("../errors");function u(t){return t&&t.__esModule?t:{default:t}}var s=function(i){function u(){return null!==i&&i.apply(this,arguments)||this}return(0,t.__extends)(u,i),u.prototype.FT=function(){var t=this.getInheritableAttribute(r.default.of("FT"));return this.dict.context.lookup(t,r.default)},u.prototype.getWidgets=function(){var t=this.Kids();if(!t)return[o.default.fromDict(this.dict)];for(var r=new Array(t.size()),i=0,n=t.size();i<n;i++){var u=t.lookup(i,e.default);r[i]=o.default.fromDict(u)}return r},u.prototype.addWidget=function(t){this.normalizedEntries().Kids.push(t)},u.prototype.removeWidget=function(t){var e=this.Kids();if(e){if(t<0||t>e.size())throw new n.IndexOutOfBoundsError(t,0,e.size());e.remove(t)}else{if(0!==t)throw new n.IndexOutOfBoundsError(t,0,0);this.setKids([])}},u.prototype.normalizedEntries=function(){var t=this.Kids();return t||(t=this.dict.context.obj([this.ref]),this.dict.set(r.default.of("Kids"),t)),{Kids:t}},u.fromDict=function(t,e){return new u(t,e)},u}(i.default),d=s;exports.default=d;
},{"tslib":"vCxL","../objects/PDFDict":"SzSo","../objects/PDFName":"EEtc","./PDFAcroField":"crxD","../annotation/PDFWidgetAnnotation":"F0K9","../errors":"sGQ3"}],"jLWq":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=s(require("../objects/PDFString")),r=s(require("../objects/PDFHexString")),o=s(require("../objects/PDFArray")),i=s(require("../objects/PDFName")),u=s(require("./PDFAcroTerminal")),n=require("../errors");function s(t){return t&&t.__esModule?t:{default:t}}var a=function(u){function s(){return null!==u&&u.apply(this,arguments)||this}return(0,t.__extends)(s,u),s.prototype.Opt=function(){return this.dict.lookupMaybe(i.default.of("Opt"),e.default,r.default,o.default)},s.prototype.setOpt=function(t){this.dict.set(i.default.of("Opt"),this.dict.context.obj(t))},s.prototype.getExportValues=function(){var t=this.Opt();if(t){if(t instanceof e.default||t instanceof r.default)return[t];for(var o=[],i=0,u=t.size();i<u;i++){var n=t.lookup(i);(n instanceof e.default||n instanceof r.default)&&o.push(n)}return o}},s.prototype.removeExportValue=function(t){var o=this.Opt();if(o)if(o instanceof e.default||o instanceof r.default){if(0!==t)throw new n.IndexOutOfBoundsError(t,0,0);this.setOpt([])}else{if(t<0||t>o.size())throw new n.IndexOutOfBoundsError(t,0,o.size());o.remove(t)}},s.prototype.normalizeExportValues=function(){for(var t,e,o,i,u=null!==(t=this.getExportValues())&&void 0!==t?t:[],n=[],s=this.getWidgets(),a=0,d=s.length;a<d;a++){var l=s[a],f=null!==(e=u[a])&&void 0!==e?e:r.default.fromText(null!==(i=null===(o=l.getOnValue())||void 0===o?void 0:o.decodeText())&&void 0!==i?i:"");n.push(f)}this.setOpt(n)},s.prototype.addOpt=function(t,e){var r;this.normalizeExportValues();var o,i=t.decodeText();if(e)for(var u=null!==(r=this.getExportValues())&&void 0!==r?r:[],n=0,s=u.length;n<s;n++){u[n].decodeText()===i&&(o=n)}var a=this.Opt();return a.push(t),null!=o?o:a.size()-1},s.prototype.addWidgetWithOpt=function(t,e,r){var o=this.addOpt(e,r),u=i.default.of(String(o));return this.addWidget(t),u},s}(u.default),d=a;exports.default=d;
},{"tslib":"vCxL","../objects/PDFString":"aKIP","../objects/PDFHexString":"HRof","../objects/PDFArray":"eics","../objects/PDFName":"EEtc","./PDFAcroTerminal":"M5hp","../errors":"sGQ3"}],"Hzow":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=n(require("../objects/PDFName")),r=n(require("./PDFAcroButton")),u=require("../errors");function n(e){return e&&e.__esModule?e:{default:e}}var o=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}return(0,e.__extends)(n,r),n.prototype.setValue=function(e){var r;if(e!==(null!==(r=this.getOnValue())&&void 0!==r?r:t.default.of("Yes"))&&e!==t.default.of("Off"))throw new u.InvalidAcroFieldValueError;this.dict.set(t.default.of("V"),e);for(var n=this.getWidgets(),o=0,i=n.length;o<i;o++){var a=n[o],f=a.getOnValue()===e?e:t.default.of("Off");a.setAppearanceState(f)}},n.prototype.getValue=function(){var e=this.V();return e instanceof t.default?e:t.default.of("Off")},n.prototype.getOnValue=function(){var e=this.getWidgets()[0];return null==e?void 0:e.getOnValue()},n.fromDict=function(e,t){return new n(e,t)},n.create=function(e){var t=e.obj({FT:"Btn",Kids:[]});return new n(t,e.register(t))},n}(r.default),i=o;exports.default=i;
},{"tslib":"vCxL","../objects/PDFName":"EEtc","./PDFAcroButton":"jLWq","../errors":"sGQ3"}],"XdSr":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AcroChoiceFlags=exports.AcroTextFlags=exports.AcroButtonFlags=exports.AcroFieldFlags=void 0;var o,e,t,l,r=function(o){return 1<<o};exports.AcroFieldFlags=o,function(o){o[o.ReadOnly=r(0)]="ReadOnly",o[o.Required=r(1)]="Required",o[o.NoExport=r(2)]="NoExport"}(o||(exports.AcroFieldFlags=o={})),exports.AcroButtonFlags=e,function(o){o[o.NoToggleToOff=r(14)]="NoToggleToOff",o[o.Radio=r(15)]="Radio",o[o.PushButton=r(16)]="PushButton",o[o.RadiosInUnison=r(25)]="RadiosInUnison"}(e||(exports.AcroButtonFlags=e={})),exports.AcroTextFlags=t,function(o){o[o.Multiline=r(12)]="Multiline",o[o.Password=r(13)]="Password",o[o.FileSelect=r(20)]="FileSelect",o[o.DoNotSpellCheck=r(22)]="DoNotSpellCheck",o[o.DoNotScroll=r(23)]="DoNotScroll",o[o.Comb=r(24)]="Comb",o[o.RichText=r(25)]="RichText"}(t||(exports.AcroTextFlags=t={})),exports.AcroChoiceFlags=l,function(o){o[o.Combo=r(17)]="Combo",o[o.Edit=r(18)]="Edit",o[o.Sort=r(19)]="Sort",o[o.MultiSelect=r(21)]="MultiSelect",o[o.DoNotSpellCheck=r(22)]="DoNotSpellCheck",o[o.CommitOnSelChange=r(26)]="CommitOnSelChange"}(l||(exports.AcroChoiceFlags=l={}));
},{}],"Ofi8":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=l(require("./PDFAcroTerminal")),i=l(require("../objects/PDFHexString")),r=l(require("../objects/PDFString")),o=l(require("../objects/PDFArray")),a=l(require("../objects/PDFName")),n=require("./flags"),u=require("../errors");function l(e){return e&&e.__esModule?e:{default:e}}var s=function(t){function l(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(l,t),l.prototype.setValues=function(e){if(this.hasFlag(n.AcroChoiceFlags.Combo)&&!this.hasFlag(n.AcroChoiceFlags.Edit)&&!this.valuesAreValid(e))throw new u.InvalidAcroFieldValueError;if(0===e.length&&this.dict.delete(a.default.of("V")),1===e.length&&this.dict.set(a.default.of("V"),e[0]),e.length>1){if(!this.hasFlag(n.AcroChoiceFlags.MultiSelect))throw new u.MultiSelectValueError;this.dict.set(a.default.of("V"),this.dict.context.obj(e))}this.updateSelectedIndices(e)},l.prototype.valuesAreValid=function(e){for(var t=this.getOptions(),i=function(i,r){var o=e[i].decodeText();if(!t.find(function(e){return o===(e.display||e.value).decodeText()}))return{value:!1}},r=0,o=e.length;r<o;r++){var a=i(r);if("object"==typeof a)return a.value}return!0},l.prototype.updateSelectedIndices=function(e){if(e.length>1){for(var t=new Array(e.length),i=this.getOptions(),r=function(r,o){var a=e[r].decodeText();t[r]=i.findIndex(function(e){return a===(e.display||e.value).decodeText()})},o=0,n=e.length;o<n;o++)r(o);this.dict.set(a.default.of("I"),this.dict.context.obj(t.sort()))}else this.dict.delete(a.default.of("I"))},l.prototype.getValues=function(){var e=this.V();if(e instanceof r.default||e instanceof i.default)return[e];if(e instanceof o.default){for(var t=[],a=0,n=e.size();a<n;a++){var u=e.lookup(a);(u instanceof r.default||u instanceof i.default)&&t.push(u)}return t}return[]},l.prototype.Opt=function(){return this.dict.lookupMaybe(a.default.of("Opt"),r.default,i.default,o.default)},l.prototype.setOptions=function(e){for(var t=new Array(e.length),i=0,r=e.length;i<r;i++){var o=e[i],n=o.value,u=o.display;t[i]=this.dict.context.obj([n,u||n])}this.dict.set(a.default.of("Opt"),this.dict.context.obj(t))},l.prototype.getOptions=function(){var e=this.Opt();if(e instanceof r.default||e instanceof i.default)return[{value:e,display:e}];if(e instanceof o.default){for(var t=[],a=0,n=e.size();a<n;a++){var u=e.lookup(a);if((u instanceof r.default||u instanceof i.default)&&t.push({value:u,display:u}),u instanceof o.default&&u.size()>0){var l=u.lookup(0,r.default,i.default),s=u.lookupMaybe(1,r.default,i.default);t.push({value:l,display:s||l})}}return t}return[]},l}(t.default),f=s;exports.default=f;
},{"tslib":"vCxL","./PDFAcroTerminal":"M5hp","../objects/PDFHexString":"HRof","../objects/PDFString":"aKIP","../objects/PDFArray":"eics","../objects/PDFName":"EEtc","./flags":"XdSr","../errors":"sGQ3"}],"ijJD":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),r=u(require("./PDFAcroChoice")),t=require("./flags");function u(e){return e&&e.__esModule?e:{default:e}}var n=function(r){function u(){return null!==r&&r.apply(this,arguments)||this}return(0,e.__extends)(u,r),u.fromDict=function(e,r){return new u(e,r)},u.create=function(e){var r=e.obj({FT:"Ch",Ff:t.AcroChoiceFlags.Combo,Kids:[]});return new u(r,e.register(r))},u}(r.default),o=n;exports.default=o;
},{"tslib":"vCxL","./PDFAcroChoice":"Ofi8","./flags":"XdSr"}],"ltNp":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=i(require("../objects/PDFName")),r=i(require("./PDFAcroField"));function i(e){return e&&e.__esModule?e:{default:e}}var n=function(r){function i(){return null!==r&&r.apply(this,arguments)||this}return(0,e.__extends)(i,r),i.prototype.addField=function(e){var t=this.normalizedEntries().Kids;null==t||t.push(e)},i.prototype.normalizedEntries=function(){var e=this.Kids();return e||(e=this.dict.context.obj([]),this.dict.set(t.default.of("Kids"),e)),{Kids:e}},i.fromDict=function(e,t){return new i(e,t)},i.create=function(e){var t=e.obj({});return new i(t,e.register(t))},i}(r.default),u=n;exports.default=u;
},{"tslib":"vCxL","../objects/PDFName":"EEtc","./PDFAcroField":"crxD"}],"PPxy":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=r(require("./PDFAcroTerminal"));function r(e){return e&&e.__esModule?e:{default:e}}var u=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(r,t),r.fromDict=function(e,t){return new r(e,t)},r}(t.default),n=u;exports.default=n;
},{"tslib":"vCxL","./PDFAcroTerminal":"M5hp"}],"migm":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=i(require("../objects/PDFNumber")),o=i(require("../objects/PDFString")),r=i(require("../objects/PDFHexString")),n=i(require("../objects/PDFName")),u=i(require("./PDFAcroTerminal"));function i(t){return t&&t.__esModule?t:{default:t}}var f=function(u){function i(){return null!==u&&u.apply(this,arguments)||this}return(0,t.__extends)(i,u),i.prototype.MaxLen=function(){var t=this.dict.lookup(n.default.of("MaxLen"));if(t instanceof e.default)return t},i.prototype.Q=function(){var t=this.dict.lookup(n.default.of("Q"));if(t instanceof e.default)return t},i.prototype.setMaxLength=function(t){this.dict.set(n.default.of("MaxLen"),e.default.of(t))},i.prototype.removeMaxLength=function(){this.dict.delete(n.default.of("MaxLen"))},i.prototype.getMaxLength=function(){var t;return null===(t=this.MaxLen())||void 0===t?void 0:t.asNumber()},i.prototype.setQuadding=function(t){this.dict.set(n.default.of("Q"),e.default.of(t))},i.prototype.getQuadding=function(){var t;return null===(t=this.Q())||void 0===t?void 0:t.asNumber()},i.prototype.setValue=function(t){this.dict.set(n.default.of("V"),t)},i.prototype.removeValue=function(){this.dict.delete(n.default.of("V"))},i.prototype.getValue=function(){var t=this.V();if(t instanceof o.default||t instanceof r.default)return t},i.fromDict=function(t,e){return new i(t,e)},i.create=function(t){var e=t.obj({FT:"Tx",Kids:[]});return new i(e,t.register(e))},i}(u.default),a=f;exports.default=a;
},{"tslib":"vCxL","../objects/PDFNumber":"m342","../objects/PDFString":"aKIP","../objects/PDFHexString":"HRof","../objects/PDFName":"EEtc","./PDFAcroTerminal":"M5hp"}],"oXMb":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=u(require("./PDFAcroButton")),r=require("./flags");function u(e){return e&&e.__esModule?e:{default:e}}var n=function(t){function u(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(u,t),u.fromDict=function(e,t){return new u(e,t)},u.create=function(e){var t=e.obj({FT:"Btn",Ff:r.AcroButtonFlags.PushButton,Kids:[]});return new u(t,e.register(t))},u}(t.default),o=n;exports.default=o;
},{"tslib":"vCxL","./PDFAcroButton":"jLWq","./flags":"XdSr"}],"rJgd":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=o(require("../objects/PDFName")),r=o(require("./PDFAcroButton")),u=require("./flags"),n=require("../errors");function o(e){return e&&e.__esModule?e:{default:e}}var a=function(r){function o(){return null!==r&&r.apply(this,arguments)||this}return(0,e.__extends)(o,r),o.prototype.setValue=function(e){if(!this.getOnValues().includes(e)&&e!==t.default.of("Off"))throw new n.InvalidAcroFieldValueError;this.dict.set(t.default.of("V"),e);for(var r=this.getWidgets(),u=0,o=r.length;u<o;u++){var a=r[u],i=a.getOnValue()===e?e:t.default.of("Off");a.setAppearanceState(i)}},o.prototype.getValue=function(){var e=this.V();return e instanceof t.default?e:t.default.of("Off")},o.prototype.getOnValues=function(){for(var e=this.getWidgets(),t=[],r=0,u=e.length;r<u;r++){var n=e[r].getOnValue();n&&t.push(n)}return t},o.fromDict=function(e,t){return new o(e,t)},o.create=function(e){var t=e.obj({FT:"Btn",Ff:u.AcroButtonFlags.Radio,Kids:[]});return new o(t,e.register(t))},o}(r.default),i=a;exports.default=i;
},{"tslib":"vCxL","../objects/PDFName":"EEtc","./PDFAcroButton":"jLWq","./flags":"XdSr","../errors":"sGQ3"}],"biWN":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),r=t(require("./PDFAcroChoice"));function t(e){return e&&e.__esModule?e:{default:e}}var u=function(r){function t(){return null!==r&&r.apply(this,arguments)||this}return(0,e.__extends)(t,r),t.fromDict=function(e,r){return new t(e,r)},t.create=function(e){var r=e.obj({FT:"Ch",Kids:[]});return new t(r,e.register(r))},t}(r.default),n=u;exports.default=n;
},{"tslib":"vCxL","./PDFAcroChoice":"Ofi8"}],"GIjN":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createPDFAcroField=exports.createPDFAcroFields=void 0;var e=P(require("../objects/PDFNumber")),r=P(require("../objects/PDFDict")),t=P(require("../objects/PDFName")),o=P(require("../objects/PDFArray")),u=P(require("../objects/PDFRef")),f=P(require("./PDFAcroTerminal")),a=P(require("./PDFAcroNonTerminal")),i=P(require("./PDFAcroSignature")),n=P(require("./PDFAcroText")),c=P(require("./PDFAcroPushButton")),l=P(require("./PDFAcroRadioButton")),d=P(require("./PDFAcroCheckBox")),s=P(require("./PDFAcroComboBox")),D=P(require("./PDFAcroListBox")),F=require("./flags");function P(e){return e&&e.__esModule?e:{default:e}}var v=function(e){if(!e)return[];for(var t=[],o=0,f=e.size();o<f;o++){var a=e.get(o),i=e.lookup(o);a instanceof u.default&&i instanceof r.default&&t.push([m(i,a),a])}return t};exports.createPDFAcroFields=v;var m=function(e,r){return A(e)?a.default.fromDict(e,r):q(e,r)};exports.createPDFAcroField=m;var A=function(e){var u=e.lookup(t.default.of("Kids"));if(u instanceof o.default)for(var f=0,a=u.size();f<a;f++){var i=u.lookup(f);if(i instanceof r.default&&i.has(t.default.of("T")))return!0}return!1},q=function(e,r){var o=B(e,t.default.of("FT")),u=e.context.lookup(o,t.default);return u===t.default.of("Btn")?b(e,r):u===t.default.of("Ch")?p(e,r):u===t.default.of("Tx")?n.default.fromDict(e,r):u===t.default.of("Sig")?i.default.fromDict(e,r):f.default.fromDict(e,r)},b=function(r,o){var u,f=B(r,t.default.of("Ff")),a=r.context.lookupMaybe(f,e.default),i=null!==(u=null==a?void 0:a.asNumber())&&void 0!==u?u:0;return x(i,F.AcroButtonFlags.PushButton)?c.default.fromDict(r,o):x(i,F.AcroButtonFlags.Radio)?l.default.fromDict(r,o):d.default.fromDict(r,o)},p=function(r,o){var u,f=B(r,t.default.of("Ff")),a=r.context.lookupMaybe(f,e.default),i=null!==(u=null==a?void 0:a.asNumber())&&void 0!==u?u:0;return x(i,F.AcroChoiceFlags.Combo)?s.default.fromDict(r,o):D.default.fromDict(r,o)},x=function(e,r){return 0!=(e&r)},B=function(e,r){var t;return g(e,function(e){t||(t=e.get(r))}),t},g=function(e,o){o(e);var u=e.lookupMaybe(t.default.of("Parent"),r.default);u&&g(u,o)};
},{"../objects/PDFNumber":"m342","../objects/PDFDict":"SzSo","../objects/PDFName":"EEtc","../objects/PDFArray":"eics","../objects/PDFRef":"Q0Z6","./PDFAcroTerminal":"M5hp","./PDFAcroNonTerminal":"ltNp","./PDFAcroSignature":"PPxy","./PDFAcroText":"migm","./PDFAcroPushButton":"oXMb","./PDFAcroRadioButton":"rJgd","./PDFAcroCheckBox":"Hzow","./PDFAcroComboBox":"ijJD","./PDFAcroListBox":"biWN","./flags":"XdSr"}],"e7CY":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("../objects/PDFDict")),t=n(require("../objects/PDFArray")),r=n(require("../objects/PDFName")),i=n(require("./PDFAcroNonTerminal")),o=require("./utils");function n(e){return e&&e.__esModule?e:{default:e}}var s=function(){function n(e){this.dict=e}return n.prototype.Fields=function(){var e=this.dict.lookup(r.default.of("Fields"));if(e instanceof t.default)return e},n.prototype.getFields=function(){for(var t=this.normalizedEntries().Fields,r=new Array(t.size()),i=0,n=t.size();i<n;i++){var s=t.get(i),u=t.lookup(i,e.default);r[i]=[(0,o.createPDFAcroField)(u,s),s]}return r},n.prototype.getAllFields=function(){var e=[],t=function(r){if(r)for(var n=0,s=r.length;n<s;n++){var u=r[n];e.push(u);var l=u[0];l instanceof i.default&&t((0,o.createPDFAcroFields)(l.Kids()))}};return t(this.getFields()),e},n.prototype.addField=function(e){var t=this.normalizedEntries().Fields;null==t||t.push(e)},n.prototype.normalizedEntries=function(){var e=this.Fields();return e||(e=this.dict.context.obj([]),this.dict.set(r.default.of("Fields"),e)),{Fields:e}},n.fromDict=function(e){return new n(e)},n.create=function(e){return new n(e.obj({Fields:[]}))},n}(),u=s;exports.default=u;
},{"../objects/PDFDict":"SzSo","../objects/PDFArray":"eics","../objects/PDFName":"EEtc","./PDFAcroNonTerminal":"ltNp","./utils":"GIjN"}],"pdwo":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={PDFAcroButton:!0,PDFAcroCheckBox:!0,PDFAcroChoice:!0,PDFAcroComboBox:!0,PDFAcroField:!0,PDFAcroForm:!0,PDFAcroListBox:!0,PDFAcroNonTerminal:!0,PDFAcroPushButton:!0,PDFAcroRadioButton:!0,PDFAcroSignature:!0,PDFAcroTerminal:!0,PDFAcroText:!0};Object.defineProperty(exports,"PDFAcroButton",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"PDFAcroCheckBox",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(exports,"PDFAcroChoice",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(exports,"PDFAcroComboBox",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(exports,"PDFAcroField",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(exports,"PDFAcroForm",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(exports,"PDFAcroListBox",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"PDFAcroNonTerminal",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(exports,"PDFAcroPushButton",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(exports,"PDFAcroRadioButton",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(exports,"PDFAcroSignature",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(exports,"PDFAcroTerminal",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(exports,"PDFAcroText",{enumerable:!0,get:function(){return d.default}});var r=D(require("./PDFAcroButton")),t=D(require("./PDFAcroCheckBox")),o=D(require("./PDFAcroChoice")),n=D(require("./PDFAcroComboBox")),u=D(require("./PDFAcroField")),c=D(require("./PDFAcroForm")),i=D(require("./PDFAcroListBox")),P=D(require("./PDFAcroNonTerminal")),a=D(require("./PDFAcroPushButton")),f=D(require("./PDFAcroRadioButton")),l=D(require("./PDFAcroSignature")),F=D(require("./PDFAcroTerminal")),d=D(require("./PDFAcroText")),p=require("./flags");Object.keys(p).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===p[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return p[r]}}))});var A=require("./utils");function D(e){return e&&e.__esModule?e:{default:e}}Object.keys(A).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===A[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return A[r]}}))});
},{"./PDFAcroButton":"jLWq","./PDFAcroCheckBox":"Hzow","./PDFAcroChoice":"Ofi8","./PDFAcroComboBox":"ijJD","./PDFAcroField":"crxD","./PDFAcroForm":"e7CY","./PDFAcroListBox":"biWN","./PDFAcroNonTerminal":"ltNp","./PDFAcroPushButton":"oXMb","./PDFAcroRadioButton":"rJgd","./PDFAcroSignature":"PPxy","./PDFAcroTerminal":"M5hp","./PDFAcroText":"migm","./flags":"XdSr","./utils":"GIjN"}],"U6RI":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=n(require("../objects/PDFDict")),r=n(require("../objects/PDFName")),o=require("../acroform");function n(e){return e&&e.__esModule?e:{default:e}}var u=function(n){function u(){return null!==n&&n.apply(this,arguments)||this}return(0,e.__extends)(u,n),u.prototype.Pages=function(){return this.lookup(r.default.of("Pages"),t.default)},u.prototype.AcroForm=function(){return this.lookupMaybe(r.default.of("AcroForm"),t.default)},u.prototype.getAcroForm=function(){var e=this.AcroForm();if(e)return o.PDFAcroForm.fromDict(e)},u.prototype.getOrCreateAcroForm=function(){var e=this.getAcroForm();if(!e){e=o.PDFAcroForm.create(this.context);var t=this.context.register(e.dict);this.set(r.default.of("AcroForm"),t)}return e},u.prototype.insertLeafNode=function(e,t){var o=this.get(r.default.of("Pages"));return this.Pages().insertLeafNode(e,t)||o},u.prototype.removeLeafNode=function(e){this.Pages().removeLeafNode(e)},u.withContextAndPages=function(e,t){var o=new Map;return o.set(r.default.of("Type"),r.default.of("Catalog")),o.set(r.default.of("Pages"),t),new u(o,e)},u.fromMapWithContext=function(e,t){return new u(e,t)},u}(t.default),a=u;exports.default=a;
},{"tslib":"vCxL","../objects/PDFDict":"SzSo","../objects/PDFName":"EEtc","../acroform":"pdwo"}],"n42X":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=s(require("../objects/PDFArray")),r=s(require("../objects/PDFDict")),o=s(require("../objects/PDFName")),i=s(require("../objects/PDFNumber")),n=s(require("./PDFPageLeaf")),u=require("../errors");function s(e){return e&&e.__esModule?e:{default:e}}var a=function(r){function s(){return null!==r&&r.apply(this,arguments)||this}return(0,e.__extends)(s,r),s.prototype.Parent=function(){return this.lookup(o.default.of("Parent"))},s.prototype.Kids=function(){return this.lookup(o.default.of("Kids"),t.default)},s.prototype.Count=function(){return this.lookup(o.default.of("Count"),i.default)},s.prototype.pushTreeNode=function(e){this.Kids().push(e)},s.prototype.pushLeafNode=function(e){var t=this.Kids();this.insertLeafKid(t.size(),e)},s.prototype.insertLeafNode=function(e,t){var r=this.Kids(),o=this.Count().asNumber();if(t>o)throw new u.InvalidTargetIndexError(t,o);for(var i=t,a=0,f=r.size();a<f;a++){if(0===i)return void this.insertLeafKid(a,e);var d=r.get(a),p=this.context.lookup(d);if(p instanceof s){if(p.Count().asNumber()>i)return p.insertLeafNode(e,i)||d;i-=p.Count().asNumber()}p instanceof n.default&&(i-=1)}if(0!==i)throw new u.CorruptPageTreeError(t,"insertLeafNode");this.insertLeafKid(r.size(),e)},s.prototype.removeLeafNode=function(e,t){void 0===t&&(t=!0);var r=this.Kids(),o=this.Count().asNumber();if(e>=o)throw new u.InvalidTargetIndexError(e,o);for(var i=e,a=0,f=r.size();a<f;a++){var d=r.get(a),p=this.context.lookup(d);if(p instanceof s){if(p.Count().asNumber()>i)return p.removeLeafNode(i,t),void(t&&0===p.Kids().size()&&r.remove(a));i-=p.Count().asNumber()}if(p instanceof n.default){if(0===i)return void this.removeKid(a);i-=1}}throw new u.CorruptPageTreeError(e,"removeLeafNode")},s.prototype.ascend=function(e){e(this);var t=this.Parent();t&&t.ascend(e)},s.prototype.traverse=function(e){for(var t=this.Kids(),r=0,o=t.size();r<o;r++){var i=t.get(r),n=this.context.lookup(i);n instanceof s&&n.traverse(e),e(n,i)}},s.prototype.insertLeafKid=function(e,t){var r=this.Kids();this.ascend(function(e){var t=e.Count().asNumber()+1;e.set(o.default.of("Count"),i.default.of(t))}),r.insert(e,t)},s.prototype.removeKid=function(e){var t=this.Kids();t.lookup(e)instanceof n.default&&this.ascend(function(e){var t=e.Count().asNumber()-1;e.set(o.default.of("Count"),i.default.of(t))}),t.remove(e)},s.withContext=function(e,t){var r=new Map;return r.set(o.default.of("Type"),o.default.of("Pages")),r.set(o.default.of("Kids"),e.obj([])),r.set(o.default.of("Count"),e.obj(0)),t&&r.set(o.default.of("Parent"),t),new s(r,e)},s.fromMapWithContext=function(e,t){return new s(e,t)},s}(r.default),f=a;exports.default=f;
},{"tslib":"vCxL","../objects/PDFArray":"eics","../objects/PDFDict":"SzSo","../objects/PDFName":"EEtc","../objects/PDFNumber":"m342","./PDFPageLeaf":"Lj0m","../errors":"sGQ3"}],"ZpPz":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IsNumeric=exports.IsNumericPrefix=exports.IsDigit=void 0;var e=r(require("./CharCodes"));function r(e){return e&&e.__esModule?e:{default:e}}var t=new Uint8Array(256);exports.IsDigit=t,t[e.default.Zero]=1,t[e.default.One]=1,t[e.default.Two]=1,t[e.default.Three]=1,t[e.default.Four]=1,t[e.default.Five]=1,t[e.default.Six]=1,t[e.default.Seven]=1,t[e.default.Eight]=1,t[e.default.Nine]=1;var u=new Uint8Array(256);exports.IsNumericPrefix=u,u[e.default.Period]=1,u[e.default.Plus]=1,u[e.default.Minus]=1;var a=new Uint8Array(256);exports.IsNumeric=a;for(var i=0,d=256;i<d;i++)a[i]=t[i]||u[i]?1:0;
},{"./CharCodes":"mfDG"}],"F9AX":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("../errors"),t=o(require("../syntax/CharCodes")),r=require("../syntax/Numeric"),s=require("../syntax/Whitespace"),i=require("../../utils");function o(e){return e&&e.__esModule?e:{default:e}}var n=t.default.Newline,a=t.default.CarriageReturn,u=function(){function o(e,t){void 0===t&&(t=!1),this.bytes=e,this.capNumbers=t}return o.prototype.parseRawInt=function(){for(var t="";!this.bytes.done();){var s=this.bytes.peek();if(!r.IsDigit[s])break;t+=(0,i.charFromCode)(this.bytes.next())}var o=Number(t);if(!t||!isFinite(o))throw new e.NumberParsingError(this.bytes.position(),t);return o},o.prototype.parseRawNumber=function(){for(var s="";!this.bytes.done();){var o=this.bytes.peek();if(!r.IsNumeric[o])break;if(s+=(0,i.charFromCode)(this.bytes.next()),o===t.default.Period)break}for(;!this.bytes.done();){o=this.bytes.peek();if(!r.IsDigit[o])break;s+=(0,i.charFromCode)(this.bytes.next())}var n=Number(s);if(!s||!isFinite(n))throw new e.NumberParsingError(this.bytes.position(),s);if(n>Number.MAX_SAFE_INTEGER){if(this.capNumbers){var a="Parsed number that is too large for some PDF readers: "+s+", using Number.MAX_SAFE_INTEGER instead.";return console.warn(a),Number.MAX_SAFE_INTEGER}a="Parsed number that is too large for some PDF readers: "+s+", not capping.";console.warn(a)}return n},o.prototype.skipWhitespace=function(){for(;!this.bytes.done()&&s.IsWhitespace[this.bytes.peek()];)this.bytes.next()},o.prototype.skipLine=function(){for(;!this.bytes.done();){var e=this.bytes.peek();if(e===n||e===a)return;this.bytes.next()}},o.prototype.skipComment=function(){if(this.bytes.peek()!==t.default.Percent)return!1;for(;!this.bytes.done();){var e=this.bytes.peek();if(e===n||e===a)return!0;this.bytes.next()}return!0},o.prototype.skipWhitespaceAndComments=function(){for(this.skipWhitespace();this.skipComment();)this.skipWhitespace()},o.prototype.matchKeyword=function(e){for(var t=this.bytes.offset(),r=0,s=e.length;r<s;r++)if(this.bytes.done()||this.bytes.next()!==e[r])return this.bytes.moveTo(t),!1;return!0},o}(),h=u;exports.default=h;
},{"../errors":"sGQ3","../syntax/CharCodes":"mfDG","../syntax/Numeric":"ZpPz","../syntax/Whitespace":"IJED","../../utils":"eZqv"}],"iRIX":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("../errors"),e=require("../streams/decode"),i=o(require("../syntax/CharCodes"));function o(t){return t&&t.__esModule?t:{default:t}}var n=function(){function o(t){this.idx=0,this.line=0,this.column=0,this.bytes=t,this.length=this.bytes.length}return o.prototype.moveTo=function(t){this.idx=t},o.prototype.next=function(){var t=this.bytes[this.idx++];return t===i.default.Newline?(this.line+=1,this.column=0):this.column+=1,t},o.prototype.assertNext=function(e){if(this.peek()!==e)throw new t.NextByteAssertionError(this.position(),e,this.peek());return this.next()},o.prototype.peek=function(){return this.bytes[this.idx]},o.prototype.peekAhead=function(t){return this.bytes[this.idx+t]},o.prototype.peekAt=function(t){return this.bytes[t]},o.prototype.done=function(){return this.idx>=this.length},o.prototype.offset=function(){return this.idx},o.prototype.slice=function(t,e){return this.bytes.slice(t,e)},o.prototype.position=function(){return{line:this.line,column:this.column,offset:this.idx}},o.of=function(t){return new o(t)},o.fromPDFRawStream=function(t){return o.of((0,e.decodePDFRawStream)(t).decode())},o}(),r=n;exports.default=r;
},{"../errors":"sGQ3","../streams/decode":"gYNG","../syntax/CharCodes":"mfDG"}],"Lwcm":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Keywords=void 0;var e=require("tslib"),a=t(require("./CharCodes"));function t(e){return e&&e.__esModule?e:{default:e}}var d=a.default.Space,l=a.default.CarriageReturn,u=a.default.Newline,f=[a.default.s,a.default.t,a.default.r,a.default.e,a.default.a,a.default.m],r=[a.default.e,a.default.n,a.default.d,a.default.s,a.default.t,a.default.r,a.default.e,a.default.a,a.default.m],s={header:[a.default.Percent,a.default.P,a.default.D,a.default.F,a.default.Dash],eof:[a.default.Percent,a.default.Percent,a.default.E,a.default.O,a.default.F],obj:[a.default.o,a.default.b,a.default.j],endobj:[a.default.e,a.default.n,a.default.d,a.default.o,a.default.b,a.default.j],xref:[a.default.x,a.default.r,a.default.e,a.default.f],trailer:[a.default.t,a.default.r,a.default.a,a.default.i,a.default.l,a.default.e,a.default.r],startxref:[a.default.s,a.default.t,a.default.a,a.default.r,a.default.t,a.default.x,a.default.r,a.default.e,a.default.f],true:[a.default.t,a.default.r,a.default.u,a.default.e],false:[a.default.f,a.default.a,a.default.l,a.default.s,a.default.e],null:[a.default.n,a.default.u,a.default.l,a.default.l],stream:f,streamEOF1:(0,e.__spreadArrays)(f,[d,l,u]),streamEOF2:(0,e.__spreadArrays)(f,[l,u]),streamEOF3:(0,e.__spreadArrays)(f,[l]),streamEOF4:(0,e.__spreadArrays)(f,[u]),endstream:r,EOF1endstream:(0,e.__spreadArrays)([l,u],r),EOF2endstream:(0,e.__spreadArrays)([l],r),EOF3endstream:(0,e.__spreadArrays)([u],r)};exports.Keywords=s;
},{"tslib":"vCxL","./CharCodes":"mfDG"}],"GwA6":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=require("../errors"),r=v(require("../objects/PDFArray")),s=v(require("../objects/PDFBool")),a=v(require("../objects/PDFDict")),i=v(require("../objects/PDFHexString")),o=v(require("../objects/PDFName")),n=v(require("../objects/PDFNull")),h=v(require("../objects/PDFNumber")),u=v(require("../objects/PDFRawStream")),f=v(require("../objects/PDFRef")),d=v(require("../objects/PDFString")),y=v(require("./BaseParser")),c=v(require("./ByteStream")),p=v(require("../structures/PDFCatalog")),l=v(require("../structures/PDFPageLeaf")),m=v(require("../structures/PDFPageTree")),b=v(require("../syntax/CharCodes")),w=require("../syntax/Delimiters"),x=require("../syntax/Keywords"),F=require("../syntax/Numeric"),K=require("../syntax/Whitespace"),k=require("../../utils");function v(e){return e&&e.__esModule?e:{default:e}}var q=function(y){function v(e,t,r){void 0===r&&(r=!1);var s=y.call(this,e,r)||this;return s.context=t,s}return(0,e.__extends)(v,y),v.prototype.parseObject=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(x.Keywords.true))return s.default.True;if(this.matchKeyword(x.Keywords.false))return s.default.False;if(this.matchKeyword(x.Keywords.null))return n.default;var e=this.bytes.peek();if(e===b.default.LessThan&&this.bytes.peekAhead(1)===b.default.LessThan)return this.parseDictOrStream();if(e===b.default.LessThan)return this.parseHexString();if(e===b.default.LeftParen)return this.parseString();if(e===b.default.ForwardSlash)return this.parseName();if(e===b.default.LeftSquareBracket)return this.parseArray();if(F.IsNumeric[e])return this.parseNumberOrRef();throw new t.PDFObjectParsingError(this.bytes.position(),e)},v.prototype.parseNumberOrRef=function(){var e=this.parseRawNumber();this.skipWhitespaceAndComments();var t=this.bytes.offset();if(F.IsDigit[this.bytes.peek()]){var r=this.parseRawNumber();if(this.skipWhitespaceAndComments(),this.bytes.peek()===b.default.R)return this.bytes.assertNext(b.default.R),f.default.of(e,r)}return this.bytes.moveTo(t),h.default.of(e)},v.prototype.parseHexString=function(){var e="";for(this.bytes.assertNext(b.default.LessThan);!this.bytes.done()&&this.bytes.peek()!==b.default.GreaterThan;)e+=(0,k.charFromCode)(this.bytes.next());return this.bytes.assertNext(b.default.GreaterThan),i.default.of(e)},v.prototype.parseString=function(){for(var e=0,r=!1,s="";!this.bytes.done();){var a=this.bytes.next();if(s+=(0,k.charFromCode)(a),r||(a===b.default.LeftParen&&(e+=1),a===b.default.RightParen&&(e-=1)),a===b.default.BackSlash?r=!r:r&&(r=!1),0===e)return d.default.of(s.substring(1,s.length-1))}throw new t.UnbalancedParenthesisError(this.bytes.position())},v.prototype.parseName=function(){this.bytes.assertNext(b.default.ForwardSlash);for(var e="";!this.bytes.done();){var t=this.bytes.peek();if(K.IsWhitespace[t]||w.IsDelimiter[t])break;e+=(0,k.charFromCode)(t),this.bytes.next()}return o.default.of(e)},v.prototype.parseArray=function(){this.bytes.assertNext(b.default.LeftSquareBracket),this.skipWhitespaceAndComments();for(var e=r.default.withContext(this.context);this.bytes.peek()!==b.default.RightSquareBracket;){var t=this.parseObject();e.push(t),this.skipWhitespaceAndComments()}return this.bytes.assertNext(b.default.RightSquareBracket),e},v.prototype.parseDict=function(){this.bytes.assertNext(b.default.LessThan),this.bytes.assertNext(b.default.LessThan),this.skipWhitespaceAndComments();for(var e=new Map;!this.bytes.done()&&this.bytes.peek()!==b.default.GreaterThan&&this.bytes.peekAhead(1)!==b.default.GreaterThan;){var t=this.parseName(),r=this.parseObject();e.set(t,r),this.skipWhitespaceAndComments()}this.skipWhitespaceAndComments(),this.bytes.assertNext(b.default.GreaterThan),this.bytes.assertNext(b.default.GreaterThan);var s=e.get(o.default.of("Type"));return s===o.default.of("Catalog")?p.default.fromMapWithContext(e,this.context):s===o.default.of("Pages")?m.default.fromMapWithContext(e,this.context):s===o.default.of("Page")?l.default.fromMapWithContext(e,this.context):a.default
},{"tslib":"vCxL","../errors":"sGQ3","../objects/PDFArray":"eics","../objects/PDFBool":"CkjB","../objects/PDFDict":"SzSo","../objects/PDFHexString":"HRof","../objects/PDFName":"EEtc","../objects/PDFNull":"mRdK","../objects/PDFNumber":"m342","../objects/PDFRawStream":"ws4b","../objects/PDFRef":"Q0Z6","../objects/PDFString":"aKIP","./BaseParser":"F9AX","./ByteStream":"iRIX","../structures/PDFCatalog":"U6RI","../structures/PDFPageLeaf":"Lj0m","../structures/PDFPageTree":"n42X","../syntax/CharCodes":"mfDG","../syntax/Delimiters":"XMgE","../syntax/Keywords":"Lwcm","../syntax/Numeric":"ZpPz","../syntax/Whitespace":"IJED","../../utils":"eZqv"}],"OAvp":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=require("../errors"),r=n(require("../objects/PDFName")),s=n(require("../objects/PDFNumber")),a=n(require("../objects/PDFRef")),o=n(require("./ByteStream")),i=n(require("./PDFObjectParser")),u=require("../../utils");function n(e){return e&&e.__esModule?e:{default:e}}var f=function(i){function n(e,t){var a=i.call(this,o.default.fromPDFRawStream(e),e.dict.context)||this,u=e.dict;return a.alreadyParsed=!1,a.shouldWaitForTick=t||function(){return!1},a.firstOffset=u.lookup(r.default.of("First"),s.default).asNumber(),a.objectCount=u.lookup(r.default.of("N"),s.default).asNumber(),a}return(0,e.__extends)(n,i),n.prototype.parseIntoContext=function(){return(0,e.__awaiter)(this,void 0,void 0,function(){var r,s,o,i,n,f,c,d;return(0,e.__generator)(this,function(e){switch(e.label){case 0:if(this.alreadyParsed)throw new t.ReparseError("PDFObjectStreamParser","parseIntoContext");this.alreadyParsed=!0,r=this.parseOffsetsAndObjectNumbers(),s=0,o=r.length,e.label=1;case 1:return s<o?(i=r[s],n=i.objectNumber,f=i.offset,this.bytes.moveTo(this.firstOffset+f),c=this.parseObject(),d=a.default.of(n,0),this.context.assign(d,c),this.shouldWaitForTick()?[4,(0,u.waitForTick)()]:[3,3]):[3,4];case 2:e.sent(),e.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},n.prototype.parseOffsetsAndObjectNumbers=function(){for(var e=[],t=0,r=this.objectCount;t<r;t++){this.skipWhitespaceAndComments();var s=this.parseRawInt();this.skipWhitespaceAndComments();var a=this.parseRawInt();e.push({objectNumber:s,offset:a})}return e},n.forStream=function(e,t){return new n(e,t)},n}(i.default),c=f;exports.default=c;
},{"tslib":"vCxL","../errors":"sGQ3","../objects/PDFName":"EEtc","../objects/PDFNumber":"m342","../objects/PDFRef":"Q0Z6","./ByteStream":"iRIX","./PDFObjectParser":"GwA6","../../utils":"eZqv"}],"jUKR":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("../errors"),e=a(require("../objects/PDFArray")),r=a(require("../objects/PDFName")),s=a(require("../objects/PDFNumber")),o=a(require("../objects/PDFRef")),i=a(require("./ByteStream"));function a(t){return t&&t.__esModule?t:{default:t}}var u=function(){function a(t){this.alreadyParsed=!1,this.dict=t.dict,this.bytes=i.default.fromPDFRawStream(t),this.context=this.dict.context;var o=this.dict.lookup(r.default.of("Size"),s.default),a=this.dict.lookup(r.default.of("Index"));if(a instanceof e.default){this.subsections=[];for(var u=0,f=a.size();u<f;u+=2){var n=a.lookup(u+0,s.default).asNumber(),d=a.lookup(u+1,s.default).asNumber();this.subsections.push({firstObjectNumber:n,length:d})}}else this.subsections=[{firstObjectNumber:0,length:o.asNumber()}];var c=this.dict.lookup(r.default.of("W"),e.default);this.byteWidths=[-1,-1,-1];for(u=0,f=c.size();u<f;u++)this.byteWidths[u]=c.lookup(u,s.default).asNumber()}return a.prototype.parseIntoContext=function(){if(this.alreadyParsed)throw new t.ReparseError("PDFXRefStreamParser","parseIntoContext");return this.alreadyParsed=!0,this.context.trailerInfo={Root:this.dict.get(r.default.of("Root")),Encrypt:this.dict.get(r.default.of("Encrypt")),Info:this.dict.get(r.default.of("Info")),ID:this.dict.get(r.default.of("ID"))},this.parseEntries()},a.prototype.parseEntries=function(){for(var t=[],e=this.byteWidths,r=e[0],s=e[1],i=e[2],a=0,u=this.subsections.length;a<u;a++)for(var f=this.subsections[a],n=f.firstObjectNumber,d=f.length,c=0;c<d;c++){for(var h=0,l=0,b=r;l<b;l++)h=h<<8|this.bytes.next();var p=0;for(l=0,b=s;l<b;l++)p=p<<8|this.bytes.next();var y=0;for(l=0,b=i;l<b;l++)y=y<<8|this.bytes.next();0===r&&(h=1);var m=n+c,v={ref:o.default.of(m,y),offset:p,deleted:0===h,inObjectStream:2===h};t.push(v)}return t},a.forStream=function(t){return new a(t)},a}(),f=u;exports.default=f;
},{"../errors":"sGQ3","../objects/PDFArray":"eics","../objects/PDFName":"EEtc","../objects/PDFNumber":"m342","../objects/PDFRef":"Q0Z6","./ByteStream":"iRIX"}],"VzY1":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=v(require("../document/PDFCrossRefSection")),r=v(require("../document/PDFHeader")),s=v(require("../document/PDFTrailer")),i=require("../errors"),o=v(require("../objects/PDFDict")),a=v(require("../objects/PDFInvalidObject")),n=v(require("../objects/PDFName")),c=v(require("../objects/PDFRawStream")),h=v(require("../objects/PDFRef")),d=v(require("./ByteStream")),f=v(require("./PDFObjectParser")),u=v(require("./PDFObjectStreamParser")),p=v(require("./PDFXRefStreamParser")),y=v(require("../PDFContext")),l=v(require("../syntax/CharCodes")),b=require("../syntax/Keywords"),m=require("../syntax/Numeric"),w=require("../../utils");function v(e){return e&&e.__esModule?e:{default:e}}var I=function(f){function v(e,t,r,s){void 0===t&&(t=1/0),void 0===r&&(r=!1),void 0===s&&(s=!1);var i=f.call(this,d.default.of(e),y.default.create(),s)||this;return i.alreadyParsed=!1,i.parsedObjects=0,i.shouldWaitForTick=function(){return i.parsedObjects+=1,i.parsedObjects%i.objectsPerTick==0},i.objectsPerTick=t,i.throwOnInvalidObject=r,i}return(0,e.__extends)(v,f),v.prototype.parseDocument=function(){return(0,e.__awaiter)(this,void 0,void 0,function(){var t,r;return(0,e.__generator)(this,function(e){switch(e.label){case 0:if(this.alreadyParsed)throw new i.ReparseError("PDFParser","parseDocument");this.alreadyParsed=!0,this.context.header=this.parseHeader(),e.label=1;case 1:return this.bytes.done()?[3,3]:[4,this.parseDocumentSection()];case 2:if(e.sent(),(r=this.bytes.offset())===t)throw new i.StalledParserError(this.bytes.position());return t=r,[3,1];case 3:return this.maybeRecoverRoot(),this.context.lookup(h.default.of(0))&&(console.warn("Removing parsed object: 0 0 R"),this.context.delete(h.default.of(0))),[2,this.context]}})})},v.prototype.maybeRecoverRoot=function(){var e=function(e){return e instanceof o.default&&e.lookup(n.default.of("Type"))===n.default.of("Catalog")};if(!e(this.context.lookup(this.context.trailerInfo.Root)))for(var t=this.context.enumerateIndirectObjects(),r=0,s=t.length;r<s;r++){var i=t[r],a=i[0];e(i[1])&&(this.context.trailerInfo.Root=a)}},v.prototype.parseHeader=function(){for(;!this.bytes.done();){if(this.matchKeyword(b.Keywords.header)){var e=this.parseRawInt();this.bytes.assertNext(l.default.Period);var t=this.parseRawInt(),s=r.default.forVersion(e,t);return this.skipBinaryHeaderComment(),s}this.bytes.next()}throw new i.MissingPDFHeaderError(this.bytes.position())},v.prototype.parseIndirectObjectHeader=function(){this.skipWhitespaceAndComments();var e=this.parseRawInt();this.skipWhitespaceAndComments();var t=this.parseRawInt();if(this.skipWhitespaceAndComments(),!this.matchKeyword(b.Keywords.obj))throw new i.MissingKeywordError(this.bytes.position(),b.Keywords.obj);return h.default.of(e,t)},v.prototype.matchIndirectObjectHeader=function(){var e=this.bytes.offset();try{return this.parseIndirectObjectHeader(),!0}catch(t){return this.bytes.moveTo(e),!1}},v.prototype.parseIndirectObject=function(){return(0,e.__awaiter)(this,void 0,void 0,function(){var t,r;return(0,e.__generator)(this,function(e){switch(e.label){case 0:return t=this.parseIndirectObjectHeader(),this.skipWhitespaceAndComments(),r=this.parseObject(),this.skipWhitespaceAndComments(),this.matchKeyword(b.Keywords.endobj),r instanceof c.default&&r.dict.lookup(n.default.of("Type"))===n.default.of("ObjStm")?[4,u.default.forStream(r,this.shouldWaitForTick).parseIntoContext()]:[3,2];case 1:return e.sent(),[3,3];case 2:r instanceof c.default&&r.dict.lookup(n.default.of("Type"))===n.default.of("XRef")?p.default.forStream(r).parseIntoContext():this.context.assign(t,r),e.label=3;case 3:return[2,t]}})})},v.prototype.tryToParseInvalidIndirectObject=function(){var e=this.bytes.position(),t="Trying to parse invalid object: "+JSON.stringify(e)+")";if(this.throwOnInvalidObject)throw new Error(t);console.warn(t);var r=this.parseIndirectObjectHeader();console.warn("Invalid object ref: "+r),this.skipWhitespaceAndComments();for(var s=this.bytes.offset(),o=!0;!this.bytes
},{"tslib":"vCxL","../document/PDFCrossRefSection":"E8zq","../document/PDFHeader":"FVEo","../document/PDFTrailer":"qm7F","../errors":"sGQ3","../objects/PDFDict":"SzSo","../objects/PDFInvalidObject":"XOUr","../objects/PDFName":"EEtc","../objects/PDFRawStream":"ws4b","../objects/PDFRef":"Q0Z6","./ByteStream":"iRIX","./PDFObjectParser":"GwA6","./PDFObjectStreamParser":"OAvp","./PDFXRefStreamParser":"jUKR","../PDFContext":"i4ew","../syntax/CharCodes":"mfDG","../syntax/Keywords":"Lwcm","../syntax/Numeric":"ZpPz","../../utils":"eZqv"}],"AVq3":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AnnotationFlags=void 0;var o,e=function(o){return 1<<o};exports.AnnotationFlags=o,function(o){o[o.Invisible=e(0)]="Invisible",o[o.Hidden=e(1)]="Hidden",o[o.Print=e(2)]="Print",o[o.NoZoom=e(3)]="NoZoom",o[o.NoRotate=e(4)]="NoRotate",o[o.NoView=e(5)]="NoView",o[o.ReadOnly=e(6)]="ReadOnly",o[o.Locked=e(7)]="Locked",o[o.ToggleNoView=e(8)]="ToggleNoView",o[o.LockedContents=e(9)]="LockedContents"}(o||(exports.AnnotationFlags=o={}));
},{}],"EXrQ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={PDFAnnotation:!0,PDFWidgetAnnotation:!0,AppearanceCharacteristics:!0};Object.defineProperty(exports,"PDFAnnotation",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(exports,"PDFWidgetAnnotation",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"AppearanceCharacteristics",{enumerable:!0,get:function(){return n.default}});var t=a(require("./PDFAnnotation")),r=a(require("./PDFWidgetAnnotation")),n=a(require("./AppearanceCharacteristics")),o=require("./flags");function a(e){return e&&e.__esModule?e:{default:e}}Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in exports&&exports[t]===o[t]||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return o[t]}}))});
},{"./PDFAnnotation":"ROtS","./PDFWidgetAnnotation":"F0K9","./AppearanceCharacteristics":"mxI4","./flags":"AVq3"}],"jZtJ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={CharCodes:!0,PDFContext:!0,PDFObjectCopier:!0,PDFWriter:!0,PDFStreamWriter:!0,PDFHeader:!0,PDFTrailer:!0,PDFTrailerDict:!0,PDFCrossRefSection:!0,StandardFontEmbedder:!0,CustomFontEmbedder:!0,CustomFontSubsetEmbedder:!0,FileEmbedder:!0,JpegEmbedder:!0,PngEmbedder:!0,PDFPageEmbedder:!0,PDFObject:!0,PDFBool:!0,PDFNumber:!0,PDFString:!0,PDFHexString:!0,PDFName:!0,PDFNull:!0,PDFArray:!0,PDFDict:!0,PDFRef:!0,PDFInvalidObject:!0,PDFStream:!0,PDFRawStream:!0,PDFCatalog:!0,PDFContentStream:!0,PDFCrossRefStream:!0,PDFObjectStream:!0,PDFPageTree:!0,PDFPageLeaf:!0,PDFFlateStream:!0,PDFOperator:!0,PDFOperatorNames:!0,PDFObjectParser:!0,PDFObjectStreamParser:!0,PDFParser:!0,PDFXRefStreamParser:!0,decodePDFRawStream:!0};Object.defineProperty(exports,"CharCodes",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(exports,"PDFContext",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(exports,"PDFObjectCopier",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(exports,"PDFWriter",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(exports,"PDFStreamWriter",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(exports,"PDFHeader",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"PDFTrailer",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(exports,"PDFTrailerDict",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(exports,"PDFCrossRefSection",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(exports,"StandardFontEmbedder",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(exports,"CustomFontEmbedder",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(exports,"CustomFontSubsetEmbedder",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(exports,"FileEmbedder",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(exports,"JpegEmbedder",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(exports,"PngEmbedder",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(exports,"PDFPageEmbedder",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(exports,"PDFObject",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(exports,"PDFBool",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(exports,"PDFNumber",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(exports,"PDFString",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(exports,"PDFHexString",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(exports,"PDFName",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(exports,"PDFNull",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(exports,"PDFArray",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(exports,"PDFDict",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(exports,"PDFRef",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(exports,"PDFInvalidObject",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(exports,"PDFStream",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(exports,"PDFRawStream",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(exports,"PDFCatalog",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(exports,"PDFContentStream",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(exports,"PDFCrossRefStream",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(exports,"PDFObjectStream",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(exports,"PDFPageTree",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(exports,"PDFPageLeaf",{enumerable:!0,get:function(){r
},{"./errors":"sGQ3","./syntax/CharCodes":"mfDG","./PDFContext":"i4ew","./PDFObjectCopier":"nF0h","./writers/PDFWriter":"WfQZ","./writers/PDFStreamWriter":"zn3n","./document/PDFHeader":"FVEo","./document/PDFTrailer":"qm7F","./document/PDFTrailerDict":"akoB","./document/PDFCrossRefSection":"E8zq","./embedders/StandardFontEmbedder":"SJM0","./embedders/CustomFontEmbedder":"Ys0l","./embedders/CustomFontSubsetEmbedder":"cKgr","./embedders/FileEmbedder":"eFfO","./embedders/JpegEmbedder":"JW1F","./embedders/PngEmbedder":"vJYd","./embedders/PDFPageEmbedder":"B9zE","./objects/PDFObject":"gBDq","./objects/PDFBool":"CkjB","./objects/PDFNumber":"m342","./objects/PDFString":"aKIP","./objects/PDFHexString":"HRof","./objects/PDFName":"EEtc","./objects/PDFNull":"mRdK","./objects/PDFArray":"eics","./objects/PDFDict":"SzSo","./objects/PDFRef":"Q0Z6","./objects/PDFInvalidObject":"XOUr","./objects/PDFStream":"a9WL","./objects/PDFRawStream":"ws4b","./structures/PDFCatalog":"U6RI","./structures/PDFContentStream":"NCZn","./structures/PDFCrossRefStream":"uzd6","./structures/PDFObjectStream":"O7Fb","./structures/PDFPageTree":"n42X","./structures/PDFPageLeaf":"Lj0m","./structures/PDFFlateStream":"xPxG","./operators/PDFOperator":"p1EQ","./operators/PDFOperatorNames":"WFj3","./parser/PDFObjectParser":"GwA6","./parser/PDFObjectStreamParser":"OAvp","./parser/PDFParser":"VzY1","./parser/PDFXRefStreamParser":"jUKR","./streams/decode":"gYNG","./annotation":"EXrQ","./acroform":"pdwo"}],"Ch3x":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.asNumber=exports.asPDFNumber=exports.asPDFName=void 0;var e=require("../core"),r=function(r){return r instanceof e.PDFName?r:e.PDFName.of(r)};exports.asPDFName=r;var s=function(r){return r instanceof e.PDFNumber?r:e.PDFNumber.of(r)};exports.asPDFNumber=s;var t=function(r){return r instanceof e.PDFNumber?r.asNumber():r};exports.asNumber=t;
},{"../core":"jZtJ"}],"XwkK":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.rotateRectangle=exports.adjustDimsForRotation=exports.reduceRotation=exports.toDegrees=exports.toRadians=exports.radiansToDegrees=exports.degreesToRadians=exports.degrees=exports.radians=exports.RotationTypes=void 0;var e,t=require("../utils");exports.RotationTypes=e,function(e){e.Degrees="degrees",e.Radians="radians"}(e||(exports.RotationTypes=e={}));var r=function(r){return(0,t.assertIs)(r,"radianAngle",["number"]),{type:e.Radians,angle:r}};exports.radians=r;var o=function(r){return(0,t.assertIs)(r,"degreeAngle",["number"]),{type:e.Degrees,angle:r}};exports.degrees=o;var i=e.Radians,n=e.Degrees,a=function(e){return e*Math.PI/180};exports.degreesToRadians=a;var s=function(e){return 180*e/Math.PI};exports.radiansToDegrees=s;var d=function(e){return e.type===i?e.angle:e.type===n?a(e.angle):(0,t.error)("Invalid rotation: "+JSON.stringify(e))};exports.toRadians=d;var g=function(e){return e.type===i?s(e.angle):e.type===n?e.angle:(0,t.error)("Invalid rotation: "+JSON.stringify(e))};exports.toDegrees=g;var h=function(e){void 0===e&&(e=0);var t=e/90%4;return 0===t?0:1===t?90:2===t?180:3===t?270:0};exports.reduceRotation=h;var p=function(e,t){void 0===t&&(t=0);var r=h(t);return 90===r||270===r?{width:e.height,height:e.width}:{width:e.width,height:e.height}};exports.adjustDimsForRotation=p;var u=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=0);var o=e.x,i=e.y,n=e.width,a=e.height,s=h(r),d=t/2;return 0===s?{x:o-d,y:i-d,width:n,height:a}:90===s?{x:o-a+d,y:i-d,width:a,height:n}:180===s?{x:o-n+d,y:i-a+d,width:n,height:a}:270===s?{x:o-d,y:i-n+d,width:a,height:n}:{x:o-d,y:i-d,width:n,height:a}};exports.rotateRectangle=u;
},{"../utils":"eZqv"}],"u4ds":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.endMarkedContent=exports.beginMarkedContent=exports.setStrokingCmykColor=exports.setFillingCmykColor=exports.setStrokingRgbColor=exports.setFillingRgbColor=exports.setStrokingGrayscaleColor=exports.setFillingGrayscaleColor=exports.drawObject=exports.rotateAndSkewTextDegreesAndTranslate=exports.rotateAndSkewTextRadiansAndTranslate=exports.setTextMatrix=exports.setTextRenderingMode=exports.TextRenderingMode=exports.setTextRise=exports.setLineHeight=exports.setCharacterSqueeze=exports.setWordSpacing=exports.setCharacterSpacing=exports.setFontAndSize=exports.endText=exports.beginText=exports.showText=exports.moveText=exports.nextLine=exports.endPath=exports.fillAndStroke=exports.fill=exports.stroke=exports.square=exports.rectangle=exports.lineTo=exports.moveTo=exports.closePath=exports.appendQuadraticCurve=exports.appendBezierCurve=exports.setLineWidth=exports.popGraphicsState=exports.pushGraphicsState=exports.setGraphicsState=exports.setLineJoin=exports.LineJoinStyle=exports.setLineCap=exports.LineCapStyle=exports.restoreDashPattern=exports.setDashPattern=exports.skewDegrees=exports.skewRadians=exports.rotateDegrees=exports.rotateRadians=exports.scale=exports.translate=exports.concatTransformationMatrix=exports.clipEvenOdd=exports.clip=void 0;var e=require("./objects"),r=require("./rotations"),t=require("../core"),o=function(){return t.PDFOperator.of(t.PDFOperatorNames.ClipNonZero)};exports.clip=o;var a=function(){return t.PDFOperator.of(t.PDFOperatorNames.ClipEvenOdd)};exports.clipEvenOdd=a;var n=Math.cos,s=Math.sin,p=Math.tan,i=function(r,o,a,n,s,p){return t.PDFOperator.of(t.PDFOperatorNames.ConcatTransformationMatrix,[(0,e.asPDFNumber)(r),(0,e.asPDFNumber)(o),(0,e.asPDFNumber)(a),(0,e.asPDFNumber)(n),(0,e.asPDFNumber)(s),(0,e.asPDFNumber)(p)])};exports.concatTransformationMatrix=i;var u=function(e,r){return i(1,0,0,1,e,r)};exports.translate=u;var F=function(e,r){return i(e,0,0,r,0,0)};exports.scale=F;var P=function(r){return i(n((0,e.asNumber)(r)),s((0,e.asNumber)(r)),-s((0,e.asNumber)(r)),n((0,e.asNumber)(r)),0,0)};exports.rotateRadians=P;var D=function(t){return P((0,r.degreesToRadians)((0,e.asNumber)(t)))};exports.rotateDegrees=D;var x=function(r,t){return i(1,p((0,e.asNumber)(r)),p((0,e.asNumber)(t)),1,0,0)};exports.skewRadians=x;var m=function(t,o){return x((0,r.degreesToRadians)((0,e.asNumber)(t)),(0,r.degreesToRadians)((0,e.asNumber)(o)))};exports.skewDegrees=m;var N=function(r,o){return t.PDFOperator.of(t.PDFOperatorNames.SetLineDashPattern,["["+r.map(e.asPDFNumber).join(" ")+"]",(0,e.asPDFNumber)(o)])};exports.setDashPattern=N;var l,c=function(){return N([],0)};exports.restoreDashPattern=c,exports.LineCapStyle=l,function(e){e[e.Butt=0]="Butt",e[e.Round=1]="Round",e[e.Projecting=2]="Projecting"}(l||(exports.LineCapStyle=l={}));var f,O=function(r){return t.PDFOperator.of(t.PDFOperatorNames.SetLineCapStyle,[(0,e.asPDFNumber)(r)])};exports.setLineCap=O,exports.LineJoinStyle=f,function(e){e[e.Miter=0]="Miter",e[e.Round=1]="Round",e[e.Bevel=2]="Bevel"}(f||(exports.LineJoinStyle=f={}));var d=function(r){return t.PDFOperator.of(t.PDFOperatorNames.SetLineJoinStyle,[(0,e.asPDFNumber)(r)])};exports.setLineJoin=d;var b=function(r){return t.PDFOperator.of(t.PDFOperatorNames.SetGraphicsStateParams,[(0,e.asPDFName)(r)])};exports.setGraphicsState=b;var v=function(){return t.PDFOperator.of(t.PDFOperatorNames.PushGraphicsState)};exports.pushGraphicsState=v;var g=function(){return t.PDFOperator.of(t.PDFOperatorNames.PopGraphicsState)};exports.popGraphicsState=g;var S=function(r){return t.PDFOperator.of(t.PDFOperatorNames.SetLineWidth,[(0,e.asPDFNumber)(r)])};exports.setLineWidth=S;var C=function(r,o,a,n,s,p){return t.PDFOperator.of(t.PDFOperatorNames.AppendBezierCurve,[(0,e.asPDFNumber)(r),(0,e.asPDFNumber)(o),(0,e.asPDFNumber)(a),(0,e.asPDFNumber)(n),(0,e.asPDFNumber)(s),(0,e.asPDFNumber)(p)])};exports.appendBezierCurve=C;var T=function(r,o,a,n){return t.PDFOperator.of(t.PDFOperatorNames.CurveToReplicateInitialPoint,[(0,e.asPDFNumber)(r),(0,e.asPDFNumber
},{"./objects":"Ch3x","./rotations":"XwkK","../core":"jZtJ"}],"IBdY":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.colorToComponents=exports.componentsToColor=exports.setStrokingColor=exports.setFillingColor=exports.cmyk=exports.rgb=exports.grayscale=exports.ColorTypes=void 0;var e,r=require("./operators"),o=require("../utils");exports.ColorTypes=e,function(e){e.Grayscale="Grayscale",e.RGB="RGB",e.CMYK="CMYK"}(e||(exports.ColorTypes=e={}));var t=function(r){return(0,o.assertRange)(r,"gray",0,1),{type:e.Grayscale,gray:r}};exports.grayscale=t;var n=function(r,t,n){return(0,o.assertRange)(r,"red",0,1),(0,o.assertRange)(t,"green",0,1),(0,o.assertRange)(n,"blue",0,1),{type:e.RGB,red:r,green:t,blue:n}};exports.rgb=n;var l=function(r,t,n,l){return(0,o.assertRange)(r,"cyan",0,1),(0,o.assertRange)(t,"magenta",0,1),(0,o.assertRange)(n,"yellow",0,1),(0,o.assertRange)(l,"key",0,1),{type:e.CMYK,cyan:r,magenta:t,yellow:n,key:l}};exports.cmyk=l;var s=e.Grayscale,a=e.RGB,y=e.CMYK,g=function(e){return e.type===s?(0,r.setFillingGrayscaleColor)(e.gray):e.type===a?(0,r.setFillingRgbColor)(e.red,e.green,e.blue):e.type===y?(0,r.setFillingCmykColor)(e.cyan,e.magenta,e.yellow,e.key):(0,o.error)("Invalid color: "+JSON.stringify(e))};exports.setFillingColor=g;var i=function(e){return e.type===s?(0,r.setStrokingGrayscaleColor)(e.gray):e.type===a?(0,r.setStrokingRgbColor)(e.red,e.green,e.blue):e.type===y?(0,r.setStrokingCmykColor)(e.cyan,e.magenta,e.yellow,e.key):(0,o.error)("Invalid color: "+JSON.stringify(e))};exports.setStrokingColor=i;var p=function(e,r){return void 0===r&&(r=1),1===(null==e?void 0:e.length)?t(e[0]*r):3===(null==e?void 0:e.length)?n(e[0]*r,e[1]*r,e[2]*r):4===(null==e?void 0:e.length)?l(e[0]*r,e[1]*r,e[2]*r,e[3]*r):void 0};exports.componentsToColor=p;var c=function(e){return e.type===s?[e.gray]:e.type===a?[e.red,e.green,e.blue]:e.type===y?[e.cyan,e.magenta,e.yellow,e.key]:(0,o.error)("Invalid color: "+JSON.stringify(e))};exports.colorToComponents=c;
},{"./operators":"u4ds","../utils":"eZqv"}],"SREP":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.svgPathToOperators=void 0;var n=require("./operators"),r=0,t=0,e=0,a=0,u=0,l=0,i=new Map([["A",7],["a",7],["C",6],["c",6],["H",1],["h",1],["L",2],["l",2],["M",2],["m",2],["Q",4],["q",4],["S",4],["s",4],["T",2],["t",2],["V",1],["v",1],["Z",0],["z",0]]),o=function(n){for(var r,t=[],e=[],a="",u=!1,l=0,o=0,c=n;o<c.length;o++){var h=c[o];if(i.has(h))l=i.get(h),r&&(a.length>0&&(e[e.length]=+a),t[t.length]={cmd:r,args:e},e=[],a="",u=!1),r=h;else if([" ",","].includes(h)||"-"===h&&a.length>0&&"e"!==a[a.length-1]||"."===h&&u){if(0===a.length)continue;e.length===l?(t[t.length]={cmd:r,args:e},e=[+a],"M"===r&&(r="L"),"m"===r&&(r="l")):e[e.length]=+a,u="."===h,a=["-","."].includes(h)?h:""}else a+=h,"."===h&&(u=!0)}return a.length>0&&(e.length===l?(t[t.length]={cmd:r,args:e},e=[+a],"M"===r&&(r="L"),"m"===r&&(r="l")):e[e.length]=+a),t[t.length]={cmd:r,args:e},t},c=function(n){r=t=e=a=u=l=0;for(var i=[],o=0;o<n.length;o++){var c=n[o];if(c.cmd&&"function"==typeof h[c.cmd]){var s=h[c.cmd](c.args);Array.isArray(s)?i=i.concat(s):i.push(s)}}return i},h={M:function(i){return r=i[0],t=i[1],e=a=null,u=r,l=t,(0,n.moveTo)(r,t)},m:function(i){return r+=i[0],t+=i[1],e=a=null,u=r,l=t,(0,n.moveTo)(r,t)},C:function(u){return r=u[4],t=u[5],e=u[2],a=u[3],(0,n.appendBezierCurve)(u[0],u[1],u[2],u[3],u[4],u[5])},c:function(u){var l=(0,n.appendBezierCurve)(u[0]+r,u[1]+t,u[2]+r,u[3]+t,u[4]+r,u[5]+t);return e=r+u[2],a=t+u[3],r+=u[4],t+=u[5],l},S:function(u){null!==e&&null!==a||(e=r,a=t);var l=(0,n.appendBezierCurve)(r-(e-r),t-(a-t),u[0],u[1],u[2],u[3]);return e=u[0],a=u[1],r=u[2],t=u[3],l},s:function(u){null!==e&&null!==a||(e=r,a=t);var l=(0,n.appendBezierCurve)(r-(e-r),t-(a-t),r+u[0],t+u[1],r+u[2],t+u[3]);return e=r+u[0],a=t+u[1],r+=u[2],t+=u[3],l},Q:function(u){return e=u[0],a=u[1],r=u[2],t=u[3],(0,n.appendQuadraticCurve)(u[0],u[1],r,t)},q:function(u){var l=(0,n.appendQuadraticCurve)(u[0]+r,u[1]+t,u[2]+r,u[3]+t);return e=r+u[0],a=t+u[1],r+=u[2],t+=u[3],l},T:function(u){null===e||null===a?(e=r,a=t):(e=r-(e-r),a=t-(a-t));var l=(0,n.appendQuadraticCurve)(e,a,u[0],u[1]);return e=r-(e-r),a=t-(a-t),r=u[0],t=u[1],l},t:function(u){null===e||null===a?(e=r,a=t):(e=r-(e-r),a=t-(a-t));var l=(0,n.appendQuadraticCurve)(e,a,r+u[0],t+u[1]);return r+=u[0],t+=u[1],l},A:function(n){var e=s(r,t,n);return r=n[5],t=n[6],e},a:function(n){n[5]+=r,n[6]+=t;var e=s(r,t,n);return r=n[5],t=n[6],e},L:function(u){return r=u[0],t=u[1],e=a=null,(0,n.lineTo)(r,t)},l:function(u){return r+=u[0],t+=u[1],e=a=null,(0,n.lineTo)(r,t)},H:function(u){return r=u[0],e=a=null,(0,n.lineTo)(r,t)},h:function(u){return r+=u[0],e=a=null,(0,n.lineTo)(r,t)},V:function(u){return t=u[0],e=a=null,(0,n.lineTo)(r,t)},v:function(u){return t+=u[0],e=a=null,(0,n.lineTo)(r,t)},Z:function(){var e=(0,n.closePath)();return r=u,t=l,e},z:function(){var e=(0,n.closePath)();return r=u,t=l,e}},s=function(r,t,e){for(var a=e[0],u=e[1],l=e[2],i=e[3],o=e[4],c=e[5],h=e[6],s=[],p=0,M=v(c,h,a,u,i,o,l,r,t);p<M.length;p++){var d=M[p],g=f.apply(void 0,d);s.push(n.appendBezierCurve.apply(void 0,g))}return s},v=function(n,r,t,u,l,i,o,c,h){var s=o*(Math.PI/180),v=Math.sin(s),f=Math.cos(s);t=Math.abs(t),u=Math.abs(u);var p=(e=f*(c-n)*.5+v*(h-r)*.5)*e/(t*t)+(a=f*(h-r)*.5-v*(c-n)*.5)*a/(u*u);p>1&&(t*=p=Math.sqrt(p),u*=p);var M=f/t,d=v/t,g=-v/u,m=f/u,T=M*c+d*h,C=g*c+m*h,P=M*n+d*r,z=g*n+m*r,y=1/((P-T)*(P-T)+(z-C)*(z-C))-.25;y<0&&(y=0);var Q=Math.sqrt(y);i===l&&(Q=-Q);var q=.5*(T+P)-Q*(z-C),B=.5*(C+z)+Q*(P-T),b=Math.atan2(C-B,T-q),A=Math.atan2(z-B,P-q)-b;A<0&&1===i?A+=2*Math.PI:A>0&&0===i&&(A-=2*Math.PI);for(var I=Math.ceil(Math.abs(A/(.5*Math.PI+.001))),L=[],x=0;x<I;x++){var O=b+x*A/I,H=b+(x+1)*A/I;L[x]=[q,B,O,H,t,u,v,f]}return L},f=function(n,r,t,e,a,u,l,i){var o=i*a,c=-l*u,h=l*a,s=i*u,v=.5*(e-t),f=8/3*Math.sin(.5*v)*Math.sin(.5*v)/Math.sin(v),p=n+Math.cos(t)-f*Math.sin(t),M=r+Math.sin(t)+f*Math.cos(t),d=n+Math.cos(e),g=r+Math.sin(e),m=d+f*Math.sin(e),T=g-f*Math.cos(e);return[o*p+c*M,h*p+s*M,o*m+c*T,h*m+s*T,o*d+c*g,h*d+s*g]},p=function(n){return c(o(n))};exports.svgP
},{"./operators":"u4ds"}],"ir9q":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.drawOptionList=exports.drawTextField=exports.drawTextLines=exports.drawButton=exports.drawRadioButton=exports.drawCheckBox=exports.rotateInPlace=exports.drawCheckMark=exports.drawSvgPath=exports.drawEllipse=exports.drawEllipsePath=exports.drawRectangle=exports.drawLine=exports.drawPage=exports.drawImage=exports.drawLinesOfText=exports.drawText=void 0;var e=require("tslib"),r=require("./colors"),t=require("./operators"),a=require("./rotations"),o=require("./svgPath"),s=require("./objects"),i=function(e,o){return[(0,t.pushGraphicsState)(),o.graphicsState&&(0,t.setGraphicsState)(o.graphicsState),(0,t.beginText)(),(0,r.setFillingColor)(o.color),(0,t.setFontAndSize)(o.font,o.size),(0,t.rotateAndSkewTextRadiansAndTranslate)((0,a.toRadians)(o.rotate),(0,a.toRadians)(o.xSkew),(0,a.toRadians)(o.ySkew),o.x,o.y),(0,t.showText)(e),(0,t.endText)(),(0,t.popGraphicsState)()].filter(Boolean)};exports.drawText=i;var n=function(e,o){for(var s=[(0,t.pushGraphicsState)(),o.graphicsState&&(0,t.setGraphicsState)(o.graphicsState),(0,t.beginText)(),(0,r.setFillingColor)(o.color),(0,t.setFontAndSize)(o.font,o.size),(0,t.setLineHeight)(o.lineHeight),(0,t.rotateAndSkewTextRadiansAndTranslate)((0,a.toRadians)(o.rotate),(0,a.toRadians)(o.xSkew),(0,a.toRadians)(o.ySkew),o.x,o.y)].filter(Boolean),i=0,n=e.length;i<n;i++)s.push((0,t.showText)(e[i]),(0,t.nextLine)());return s.push((0,t.endText)(),(0,t.popGraphicsState)()),s};exports.drawLinesOfText=n;var d=function(e,r){return[(0,t.pushGraphicsState)(),r.graphicsState&&(0,t.setGraphicsState)(r.graphicsState),(0,t.translate)(r.x,r.y),(0,t.rotateRadians)((0,a.toRadians)(r.rotate)),(0,t.scale)(r.width,r.height),(0,t.skewRadians)((0,a.toRadians)(r.xSkew),(0,a.toRadians)(r.ySkew)),(0,t.drawObject)(e),(0,t.popGraphicsState)()].filter(Boolean)};exports.drawImage=d;var l=function(e,r){return[(0,t.pushGraphicsState)(),r.graphicsState&&(0,t.setGraphicsState)(r.graphicsState),(0,t.translate)(r.x,r.y),(0,t.rotateRadians)((0,a.toRadians)(r.rotate)),(0,t.scale)(r.xScale,r.yScale),(0,t.skewRadians)((0,a.toRadians)(r.xSkew),(0,a.toRadians)(r.ySkew)),(0,t.drawObject)(e),(0,t.popGraphicsState)()].filter(Boolean)};exports.drawPage=l;var h=function(e){var a,o;return[(0,t.pushGraphicsState)(),e.graphicsState&&(0,t.setGraphicsState)(e.graphicsState),e.color&&(0,r.setStrokingColor)(e.color),(0,t.setLineWidth)(e.thickness),(0,t.setDashPattern)(null!==(a=e.dashArray)&&void 0!==a?a:[],null!==(o=e.dashPhase)&&void 0!==o?o:0),(0,t.moveTo)(e.start.x,e.start.y),e.lineCap&&(0,t.setLineCap)(e.lineCap),(0,t.moveTo)(e.start.x,e.start.y),(0,t.lineTo)(e.end.x,e.end.y),(0,t.stroke)(),(0,t.popGraphicsState)()].filter(Boolean)};exports.drawLine=h;var p=function(e){var o,s;return[(0,t.pushGraphicsState)(),e.graphicsState&&(0,t.setGraphicsState)(e.graphicsState),e.color&&(0,r.setFillingColor)(e.color),e.borderColor&&(0,r.setStrokingColor)(e.borderColor),(0,t.setLineWidth)(e.borderWidth),e.borderLineCap&&(0,t.setLineCap)(e.borderLineCap),(0,t.setDashPattern)(null!==(o=e.borderDashArray)&&void 0!==o?o:[],null!==(s=e.borderDashPhase)&&void 0!==s?s:0),(0,t.translate)(e.x,e.y),(0,t.rotateRadians)((0,a.toRadians)(e.rotate)),(0,t.skewRadians)((0,a.toRadians)(e.xSkew),(0,a.toRadians)(e.ySkew)),(0,t.moveTo)(0,0),(0,t.lineTo)(0,e.height),(0,t.lineTo)(e.width,e.height),(0,t.lineTo)(e.width,0),(0,t.closePath)(),e.color&&e.borderWidth?(0,t.fillAndStroke)():e.color?(0,t.fill)():e.borderColor?(0,t.stroke)():(0,t.closePath)(),(0,t.popGraphicsState)()].filter(Boolean)};exports.drawRectangle=p;var c=(Math.sqrt(2)-1)/3*4,S=function(e){var r=(0,s.asNumber)(e.x),a=(0,s.asNumber)(e.y),o=(0,s.asNumber)(e.xScale),i=(0,s.asNumber)(e.yScale),n=o*c,d=i*c,l=(r-=o)+2*o,h=(a-=i)+2*i,p=r+o,S=a+i;return[(0,t.pushGraphicsState)(),(0,t.moveTo)(r,S),(0,t.appendBezierCurve)(r,S-d,p-n,a,p,a),(0,t.appendBezierCurve)(p+n,a,l,S-d,l,S),(0,t.appendBezierCurve)(l,S+d,p+n,h,p,h),(0,t.appendBezierCurve)(p-n,h,r,S+d,r,S),(0,t.popGraphicsState)()]};exports.drawEllipsePath=S;var x=function(e){var r=(0,s.asNumber)(e.
},{"tslib":"vCxL","./colors":"IBdY","./operators":"u4ds","./rotations":"XwkK","./svgPath":"SREP","./objects":"Ch3x"}],"iEaA":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidMaxLengthError=exports.ExceededMaxLengthError=exports.CombedTextLayoutError=exports.RichTextFieldReadError=exports.FieldExistsAsNonTerminalError=exports.InvalidFieldNamePartError=exports.FieldAlreadyExistsError=exports.MissingOnValueCheckError=exports.UnexpectedFieldTypeError=exports.NoSuchFieldError=exports.RemovePageFromEmptyDocumentError=exports.ForeignPageError=exports.FontkitNotRegisteredError=exports.EncryptedPDFError=void 0;var e=require("tslib"),r=function(r){function t(){return r.call(this,"Input document to `PDFDocument.load` is encrypted. You can use `PDFDocument.load(..., { ignoreEncryption: true })` if you wish to load the document anyways.")||this}return(0,e.__extends)(t,r),t}(Error);exports.EncryptedPDFError=r;var t=function(r){function t(){return r.call(this,"Input to `PDFDocument.embedFont` was a custom font, but no `fontkit` instance was found. You must register a `fontkit` instance with `PDFDocument.registerFontkit(...)` before embedding custom fonts.")||this}return(0,e.__extends)(t,r),t}(Error);exports.FontkitNotRegisteredError=t;var o=function(r){function t(){return r.call(this,"A `page` passed to `PDFDocument.addPage` or `PDFDocument.insertPage` was from a different (foreign) PDF document. If you want to copy pages from one PDFDocument to another, you must use `PDFDocument.copyPages(...)` to copy the pages before adding or inserting them.")||this}return(0,e.__extends)(t,r),t}(Error);exports.ForeignPageError=o;var n=function(r){function t(){return r.call(this,"PDFDocument has no pages so `PDFDocument.removePage` cannot be called")||this}return(0,e.__extends)(t,r),t}(Error);exports.RemovePageFromEmptyDocumentError=n;var i=function(r){function t(e){var t='PDFDocument has no form field with the name "'+e+'"';return r.call(this,t)||this}return(0,e.__extends)(t,r),t}(Error);exports.NoSuchFieldError=i;var s=function(r){function t(e,t,o){var n,i,s='Expected field "'+e+'" to be of type '+(null==t?void 0:t.name)+", but it is actually of type "+(null!==(i=null===(n=null==o?void 0:o.constructor)||void 0===n?void 0:n.name)&&void 0!==i?i:o);return r.call(this,s)||this}return(0,e.__extends)(t,r),t}(Error);exports.UnexpectedFieldTypeError=s;var a=function(r){function t(e){var t='Failed to select check box due to missing onValue: "'+e+'"';return r.call(this,t)||this}return(0,e.__extends)(t,r),t}(Error);exports.MissingOnValueCheckError=a;var u=function(r){function t(e){var t='A field already exists with the specified name: "'+e+'"';return r.call(this,t)||this}return(0,e.__extends)(t,r),t}(Error);exports.FieldAlreadyExistsError=u;var c=function(r){function t(e){var t='Field name contains invalid component: "'+e+'"';return r.call(this,t)||this}return(0,e.__extends)(t,r),t}(Error);exports.InvalidFieldNamePartError=c;var d=function(r){function t(e){var t='A non-terminal field already exists with the specified name: "'+e+'"';return r.call(this,t)||this}return(0,e.__extends)(t,r),t}(Error);exports.FieldExistsAsNonTerminalError=d;var l=function(r){function t(e){var t="Reading rich text fields is not supported: Attempted to read rich text field: "+e;return r.call(this,t)||this}return(0,e.__extends)(t,r),t}(Error);exports.RichTextFieldReadError=l;var x=function(r){function t(e,t){var o="Failed to layout combed text as lineLength="+e+" is greater than cellCount="+t;return r.call(this,o)||this}return(0,e.__extends)(t,r),t}(Error);exports.CombedTextLayoutError=x;var h=function(r){function t(e,t,o){var n="Attempted to set text with length="+e+" for TextField with maxLength="+t+" and name="+o;return r.call(this,n)||this}return(0,e.__extends)(t,r),t}(Error);exports.ExceededMaxLengthError=h;var p=function(r){function t(e,t,o){var n="Attempted to set maxLength="+t+", which is less than "+e+", the length of this field's current value (name="+o+")";return r.call(this,n)||this}return(0,e.__extends)(t,r),t}(Error);exports.InvalidMaxLengthError=p;
},{"tslib":"vCxL"}],"XyDK":[function(require,module,exports) {
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextAlignment=void 0,exports.TextAlignment=e,function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(e||(exports.TextAlignment=e={}));
},{}],"CsZC":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.layoutSinglelineText=exports.layoutCombedText=exports.layoutMultilineText=void 0;var e=require("../errors"),t=require("./alignment"),i=require("../../utils"),n=4,r=500,h=function(e,t,i){for(var h=n;h<r;){for(var o=0,d=e.length;o<d;o++){var x=e[o];if(t.widthOfTextAtSize(x,h)>i.width)return h-1}var l=t.heightAtSize(h),u=l+.2*l;if(e.length*u>i.height)return h-1;h+=1}return h},o=function(e,t,h,o){for(var d=h.width/o,x=h.height,l=n,u=(0,i.charSplit)(e);l<r;){for(var g=0,a=u.length;g<a;g++){var f=u[g];if(t.widthOfTextAtSize(f,l)>.75*d)return l-1}if(t.heightAtSize(l,{descender:!1})>x)return l-1;l+=1}return l},d=function(e){for(var t=e.length;t>0;t--)if(/\s/.test(e[t]))return t},x=function(e,t,i,n){for(var r,h=e.length;h>0;){var o=e.substring(0,h),x=i.encodeText(o),l=i.widthOfTextAtSize(o,n);if(l<t)return{line:o,encoded:x,width:l,remainder:e.substring(h)||void 0};h=null!==(r=d(o))&&void 0!==r?r:0}return{line:e,encoded:i.encodeText(e),width:i.widthOfTextAtSize(e,n),remainder:void 0}},l=function(e,n){var r=n.alignment,h=n.fontSize,o=n.font,d=n.bounds,l=(0,i.lineSplit)((0,i.cleanText)(e));void 0!==h&&0!==h||(h=12);for(var u=o.heightAtSize(h),g=u+.2*u,a=[],f=d.x,s=d.y,v=d.x+d.width,c=d.y+d.height,w=d.y+d.height,T=0,y=l.length;T<y;T++)for(var S=l[T];void 0!==S;){var m=x(S,d.width,o,h),A=m.line,z=m.encoded,b=m.width,p=m.remainder,O=r===t.TextAlignment.Left?d.x:r===t.TextAlignment.Center?d.x+d.width/2-b/2:r===t.TextAlignment.Right?d.x+d.width-b:d.x;O<f&&(f=O),(w-=g)<s&&(s=w),O+b>v&&(v=O+b),w+u>c&&(c=w+u),a.push({text:A,encoded:z,width:b,height:u,x:O,y:w}),S=null==p?void 0:p.trim()}return{fontSize:h,lineHeight:g,lines:a,bounds:{x:f,y:s,width:v-f,height:c-s}}};exports.layoutMultilineText=l;var u=function(t,n){var r=n.fontSize,h=n.font,d=n.bounds,x=n.cellCount,l=(0,i.mergeLines)((0,i.cleanText)(t));if(l.length>x)throw new e.CombedTextLayoutError(l.length,x);void 0!==r&&0!==r||(r=o(l,h,d,x));for(var u=d.width/x,g=h.heightAtSize(r,{descender:!1}),a=d.y+(d.height/2-g/2),f=[],s=d.x,v=d.y,c=d.x+d.width,w=d.y+d.height,T=0,y=0;T<x;){var S=(0,i.charAtIndex)(l,y),m=S[0],A=S[1],z=h.encodeText(m),b=h.widthOfTextAtSize(m,r),p=d.x+(u*T+u/2)-b/2;p<s&&(s=p),a<v&&(v=a),p+b>c&&(c=p+b),a+g>w&&(w=a+g),f.push({text:l,encoded:z,width:b,height:g,x:p,y:a}),T+=1,y+=A}return{fontSize:r,cells:f,bounds:{x:s,y:v,width:c-s,height:w-v}}};exports.layoutCombedText=u;var g=function(e,n){var r=n.alignment,o=n.fontSize,d=n.font,x=n.bounds,l=(0,i.mergeLines)((0,i.cleanText)(e));void 0!==o&&0!==o||(o=h([l],d,x));var u=d.encodeText(l),g=d.widthOfTextAtSize(l,o),a=d.heightAtSize(o,{descender:!1}),f=r===t.TextAlignment.Left?x.x:r===t.TextAlignment.Center?x.x+x.width/2-g/2:r===t.TextAlignment.Right?x.x+x.width-g:x.x,s=x.y+(x.height/2-a/2);return{fontSize:o,line:{text:l,encoded:u,width:g,height:a,x:f,y:s},bounds:{x:f,y:s,width:g,height:a}}};exports.layoutSinglelineText=g;
},{"../errors":"iEaA","./alignment":"XyDK","../../utils":"eZqv"}],"i6q6":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.defaultOptionListAppearanceProvider=exports.defaultDropdownAppearanceProvider=exports.defaultTextFieldAppearanceProvider=exports.defaultButtonAppearanceProvider=exports.defaultRadioGroupAppearanceProvider=exports.defaultCheckBoxAppearanceProvider=exports.normalizeAppearance=void 0;var o=require("tslib"),e=require("../operations"),t=require("../colors"),r=require("../rotations"),n=require("../text/layout"),i=require("../text/alignment"),l=require("../operators"),a=function(o){return"normal"in o?o:{normal:o}};exports.normalizeAppearance=a;var d=function(o,e){for(var t,r,n=0;n<o.length;){var i=o.substring(n).match(e);if(!i)return r;r=i,n+=(null!==(t=i.index)&&void 0!==t?t:0)+i[0].length}return r},s=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]+(\d*\.\d+|\d+)[\0\t\n\f\r\ ]+Tf/,u=function(o){var e,t,r=null!==(e=o.getDefaultAppearance())&&void 0!==e?e:"",n=null!==(t=d(r,s))&&void 0!==t?t:[],i=Number(n[2]);return isFinite(i)?i:void 0},g=/(\d*\.\d+|\d+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+(g|rg|k)/,c=function(o){var e,r=null!==(e=o.getDefaultAppearance())&&void 0!==e?e:"",n=d(r,g),i=null!=n?n:[],l=i[1],a=i[2],s=i[3],u=i[4],c=i[5];return"g"===c&&l?(0,t.grayscale)(Number(l)):"rg"===c&&l&&a&&s?(0,t.rgb)(Number(l),Number(a),Number(s)):"k"===c&&l&&a&&s&&u?(0,t.cmyk)(Number(l),Number(a),Number(s),Number(u)):void 0},v=function(o,e,r,n){var i;void 0===n&&(n=0);var a=[(0,t.setFillingColor)(e).toString(),(0,l.setFontAndSize)(null!==(i=null==r?void 0:r.name)&&void 0!==i?i:"dummy__noop",n).toString()].join("\n");o.setDefaultAppearance(a)},p=function(n,i){var l,a,d,s=c(i),u=c(n.acroField),g=i.getRectangle(),p=i.getAppearanceCharacteristics(),_=i.getBorderStyle(),f=null!==(l=null==_?void 0:_.getWidth())&&void 0!==l?l:0,h=(0,r.reduceRotation)(null==p?void 0:p.getRotation()),m=(0,r.adjustDimsForRotation)(g,h),C=m.width,x=m.height,A=(0,e.rotateInPlace)((0,o.__assign)((0,o.__assign)({},g),{rotation:h})),b=(0,t.rgb)(0,0,0),y=null!==(a=(0,t.componentsToColor)(null==p?void 0:p.getBorderColor()))&&void 0!==a?a:b,w=(0,t.componentsToColor)(null==p?void 0:p.getBackgroundColor()),B=(0,t.componentsToColor)(null==p?void 0:p.getBackgroundColor(),.8),S=null!==(d=null!=s?s:u)&&void 0!==d?d:b;v(s?i:n.acroField,S);var T={x:0+f/2,y:0+f/2,width:C-f,height:x-f,thickness:1.5,borderWidth:f,borderColor:y,markColor:S};return{normal:{on:(0,o.__spreadArrays)(A,(0,e.drawCheckBox)((0,o.__assign)((0,o.__assign)({},T),{color:w,filled:!0}))),off:(0,o.__spreadArrays)(A,(0,e.drawCheckBox)((0,o.__assign)((0,o.__assign)({},T),{color:w,filled:!1})))},down:{on:(0,o.__spreadArrays)(A,(0,e.drawCheckBox)((0,o.__assign)((0,o.__assign)({},T),{color:B,filled:!0}))),off:(0,o.__spreadArrays)(A,(0,e.drawCheckBox)((0,o.__assign)((0,o.__assign)({},T),{color:B,filled:!1})))}}};exports.defaultCheckBoxAppearanceProvider=p;var _=function(n,i){var l,a,d,s=c(i),u=c(n.acroField),g=i.getRectangle(),p=i.getAppearanceCharacteristics(),_=i.getBorderStyle(),f=null!==(l=null==_?void 0:_.getWidth())&&void 0!==l?l:0,h=(0,r.reduceRotation)(null==p?void 0:p.getRotation()),m=(0,r.adjustDimsForRotation)(g,h),C=m.width,x=m.height,A=(0,e.rotateInPlace)((0,o.__assign)((0,o.__assign)({},g),{rotation:h})),b=(0,t.rgb)(0,0,0),y=null!==(a=(0,t.componentsToColor)(null==p?void 0:p.getBorderColor()))&&void 0!==a?a:b,w=(0,t.componentsToColor)(null==p?void 0:p.getBackgroundColor()),B=(0,t.componentsToColor)(null==p?void 0:p.getBackgroundColor(),.8),S=null!==(d=null!=s?s:u)&&void 0!==d?d:b;v(s?i:n.acroField,S);var T={x:C/2,y:x/2,width:C-f,height:x-f,borderWidth:f,borderColor:y,dotColor:S};return{normal:{on:(0,o.__spreadArrays)(A,(0,e.drawRadioButton)((0,o.__assign)((0,o.__assign)({},T),{color:w,filled:!0}))),off:(0,o.__spreadArrays)(A,(0,e.drawRadioButton)((0,o.__assign)((0,o.__assign)({},T),{color:w,filled:!1})))},down:{on:(0,o.__spreadArrays)(A,(0,e.drawRadioButton)((0,o.__assign)((0,o.__assign)({},T),{color:B,filled:!0}))),off:(0,o.__spreadArrays)(A,(0,e.drawRadioButton)((0,o.__assign)((0
},{"tslib":"vCxL","../operations":"ir9q","../colors":"IBdY","../rotations":"XwkK","../text/layout":"CsZC","../text/alignment":"XyDK","../operators":"u4ds"}],"sfpp":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=s(require("./PDFDocument")),r=require("../core"),i=require("../utils");function s(e){return e&&e.__esModule?e:{default:e}}var d=function(){function s(e,s,d){this.alreadyEmbedded=!1,(0,i.assertIs)(e,"ref",[[r.PDFRef,"PDFRef"]]),(0,i.assertIs)(s,"doc",[[t.default,"PDFDocument"]]),(0,i.assertIs)(d,"embedder",[[r.PDFPageEmbedder,"PDFPageEmbedder"]]),this.ref=e,this.doc=s,this.width=d.width,this.height=d.height,this.embedder=d}return s.prototype.scale=function(e){return(0,i.assertIs)(e,"factor",["number"]),{width:this.width*e,height:this.height*e}},s.prototype.size=function(){return this.scale(1)},s.prototype.embed=function(){return(0,e.__awaiter)(this,void 0,void 0,function(){return(0,e.__generator)(this,function(e){switch(e.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:e.sent(),this.alreadyEmbedded=!0,e.label=2;case 2:return[2]}})})},s.of=function(e,t,r){return new s(e,t,r)},s}(),n=d;exports.default=n;
},{"tslib":"vCxL","./PDFDocument":"rCII","../core":"jZtJ","../utils":"eZqv"}],"vnuN":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=d(require("./PDFDocument")),r=require("../core"),n=require("../utils");function d(e){return e&&e.__esModule?e:{default:e}}var i=function(){function d(e,d,i){this.modified=!0,(0,n.assertIs)(e,"ref",[[r.PDFRef,"PDFRef"]]),(0,n.assertIs)(d,"doc",[[t.default,"PDFDocument"]]),(0,n.assertIs)(i,"embedder",[[r.CustomFontEmbedder,"CustomFontEmbedder"],[r.StandardFontEmbedder,"StandardFontEmbedder"]]),this.ref=e,this.doc=d,this.name=i.fontName,this.embedder=i}return d.prototype.encodeText=function(e){return(0,n.assertIs)(e,"text",["string"]),this.modified=!0,this.embedder.encodeText(e)},d.prototype.widthOfTextAtSize=function(e,t){return(0,n.assertIs)(e,"text",["string"]),(0,n.assertIs)(t,"size",["number"]),this.embedder.widthOfTextAtSize(e,t)},d.prototype.heightAtSize=function(e,t){var r;return(0,n.assertIs)(e,"size",["number"]),(0,n.assertOrUndefined)(null==t?void 0:t.descender,"options.descender",["boolean"]),this.embedder.heightOfFontAtSize(e,{descender:null===(r=null==t?void 0:t.descender)||void 0===r||r})},d.prototype.sizeAtHeight=function(e){return(0,n.assertIs)(e,"height",["number"]),this.embedder.sizeOfFontAtHeight(e)},d.prototype.getCharacterSet=function(){return this.embedder instanceof r.StandardFontEmbedder?this.embedder.encoding.supportedCodePoints:this.embedder.font.characterSet},d.prototype.embed=function(){return(0,e.__awaiter)(this,void 0,void 0,function(){return(0,e.__generator)(this,function(e){switch(e.label){case 0:return this.modified?[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]:[3,2];case 1:e.sent(),this.modified=!1,e.label=2;case 2:return[2]}})})},d.of=function(e,t,r){return new d(e,t,r)},d}(),s=i;exports.default=s;
},{"tslib":"vCxL","./PDFDocument":"rCII","../core":"jZtJ","../utils":"eZqv"}],"SPMm":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=s(require("./PDFDocument")),r=require("../core"),i=require("../utils");function s(e){return e&&e.__esModule?e:{default:e}}var d=function(){function s(e,s,d){this.alreadyEmbedded=!1,(0,i.assertIs)(e,"ref",[[r.PDFRef,"PDFRef"]]),(0,i.assertIs)(s,"doc",[[t.default,"PDFDocument"]]),(0,i.assertIs)(d,"embedder",[[r.JpegEmbedder,"JpegEmbedder"],[r.PngEmbedder,"PngEmbedder"]]),this.ref=e,this.doc=s,this.width=d.width,this.height=d.height,this.embedder=d}return s.prototype.scale=function(e){return(0,i.assertIs)(e,"factor",["number"]),{width:this.width*e,height:this.height*e}},s.prototype.scaleToFit=function(e,t){(0,i.assertIs)(e,"width",["number"]),(0,i.assertIs)(t,"height",["number"]);var r=e/this.width,s=t/this.height,d=Math.min(r,s);return this.scale(d)},s.prototype.size=function(){return this.scale(1)},s.prototype.embed=function(){return(0,e.__awaiter)(this,void 0,void 0,function(){return(0,e.__generator)(this,function(e){switch(e.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:e.sent(),this.alreadyEmbedded=!0,e.label=2;case 2:return[2]}})})},s.of=function(e,t,r){return new s(e,t,r)},s}(),n=d;exports.default=n;
},{"tslib":"vCxL","./PDFDocument":"rCII","../core":"jZtJ","../utils":"eZqv"}],"cLXn":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.assertFieldAppearanceOptions=void 0;var e=n(require("../PDFDocument")),t=require("../colors"),r=require("../rotations"),o=require("../../core"),a=require("../../utils");function n(e){return e&&e.__esModule?e:{default:e}}var i=function(e){(0,a.assertOrUndefined)(null==e?void 0:e.x,"options.x",["number"]),(0,a.assertOrUndefined)(null==e?void 0:e.y,"options.y",["number"]),(0,a.assertOrUndefined)(null==e?void 0:e.width,"options.width",["number"]),(0,a.assertOrUndefined)(null==e?void 0:e.height,"options.height",["number"]),(0,a.assertOrUndefined)(null==e?void 0:e.textColor,"options.textColor",[[Object,"Color"]]),(0,a.assertOrUndefined)(null==e?void 0:e.backgroundColor,"options.backgroundColor",[[Object,"Color"]]),(0,a.assertOrUndefined)(null==e?void 0:e.borderColor,"options.borderColor",[[Object,"Color"]]),(0,a.assertOrUndefined)(null==e?void 0:e.borderWidth,"options.borderWidth",["number"]),(0,a.assertOrUndefined)(null==e?void 0:e.rotate,"options.rotate",[[Object,"Rotation"]])};exports.assertFieldAppearanceOptions=i;var s=function(){function n(t,r,n){(0,a.assertIs)(t,"acroField",[[o.PDFAcroTerminal,"PDFAcroTerminal"]]),(0,a.assertIs)(r,"ref",[[o.PDFRef,"PDFRef"]]),(0,a.assertIs)(n,"doc",[[e.default,"PDFDocument"]]),this.acroField=t,this.ref=r,this.doc=n}return n.prototype.getName=function(){var e;return null!==(e=this.acroField.getFullyQualifiedName())&&void 0!==e?e:""},n.prototype.isReadOnly=function(){return this.acroField.hasFlag(o.AcroFieldFlags.ReadOnly)},n.prototype.enableReadOnly=function(){this.acroField.setFlagTo(o.AcroFieldFlags.ReadOnly,!0)},n.prototype.disableReadOnly=function(){this.acroField.setFlagTo(o.AcroFieldFlags.ReadOnly,!1)},n.prototype.isRequired=function(){return this.acroField.hasFlag(o.AcroFieldFlags.Required)},n.prototype.enableRequired=function(){this.acroField.setFlagTo(o.AcroFieldFlags.Required,!0)},n.prototype.disableRequired=function(){this.acroField.setFlagTo(o.AcroFieldFlags.Required,!1)},n.prototype.isExported=function(){return!this.acroField.hasFlag(o.AcroFieldFlags.NoExport)},n.prototype.enableExporting=function(){this.acroField.setFlagTo(o.AcroFieldFlags.NoExport,!1)},n.prototype.disableExporting=function(){this.acroField.setFlagTo(o.AcroFieldFlags.NoExport,!0)},n.prototype.needsAppearancesUpdate=function(){throw new o.MethodNotImplementedError(this.constructor.name,"needsAppearancesUpdate")},n.prototype.defaultUpdateAppearances=function(e){throw new o.MethodNotImplementedError(this.constructor.name,"defaultUpdateAppearances")},n.prototype.markAsDirty=function(){this.doc.getForm().markFieldAsDirty(this.ref)},n.prototype.markAsClean=function(){this.doc.getForm().markFieldAsClean(this.ref)},n.prototype.isDirty=function(){return this.doc.getForm().fieldIsDirty(this.ref)},n.prototype.createWidget=function(e){var n,i=e.textColor,s=e.backgroundColor,l=e.borderColor,d=e.borderWidth,p=(0,r.toDegrees)(e.rotate),c=e.caption,u=e.x,F=e.y,h=e.width+d,f=e.height+d;(0,a.assertMultiple)(p,"degreesAngle",90);var g=o.PDFWidgetAnnotation.create(this.doc.context,this.ref),A=(0,r.rotateRectangle)({x:u,y:F,width:h,height:f},d,p);g.setRectangle(A);var m=g.getOrCreateAppearanceCharacteristics();s&&m.setBackgroundColor((0,t.colorToComponents)(s)),m.setRotation(p),c&&m.setCaptions({normal:c}),l&&m.setBorderColor((0,t.colorToComponents)(l));var v=g.getOrCreateBorderStyle();if(void 0!==d&&v.setWidth(d),g.setFlagTo(o.AnnotationFlags.Print,!0),g.setFlagTo(o.AnnotationFlags.Hidden,!1),g.setFlagTo(o.AnnotationFlags.Invisible,!1),i){var y=(null!==(n=this.acroField.getDefaultAppearance())&&void 0!==n?n:"")+"\n"+(0,t.setFillingColor)(i).toString();this.acroField.setDefaultAppearance(y)}return g},n.prototype.updateWidgetAppearanceWithFont=function(e,t,r){var o=r.normal,a=r.rollover,n=r.down;this.updateWidgetAppearances(e,{normal:this.createAppearanceStream(e,o,t),rollover:a&&this.createAppearanceStream(e,a,t),down:n&&this.createAppearanceStream(e,n,t)})},n.prototype.updateOnOffWidgetAppearance=function(e,t,r){var o=r.normal,a=r.roll
},{"../PDFDocument":"rCII","../colors":"IBdY","../rotations":"XwkK","../../core":"jZtJ","../../utils":"eZqv"}],"tJ85":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),r=c(require("../PDFPage")),t=require("./appearances"),o=require("../colors"),a=require("../rotations"),i=l(require("./PDFField")),n=require("../../core"),d=require("../../utils");function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u();if(r&&r.has(e))return r.get(e);var t={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(t,a,i):t[a]=e[a]}return t.default=e,r&&r.set(e,t),t}function c(e){return e&&e.__esModule?e:{default:e}}var s=function(u){function l(e,r,t){var o=u.call(this,e,r,t)||this;return(0,d.assertIs)(e,"acroCheckBox",[[n.PDFAcroCheckBox,"PDFAcroCheckBox"]]),o.acroField=e,o}return(0,e.__extends)(l,u),l.prototype.check=function(){var e,r=null!==(e=this.acroField.getOnValue())&&void 0!==e?e:n.PDFName.of("Yes");this.markAsDirty(),this.acroField.setValue(r)},l.prototype.uncheck=function(){this.markAsDirty(),this.acroField.setValue(n.PDFName.of("Off"))},l.prototype.isChecked=function(){var e=this.acroField.getOnValue();return!!e&&e===this.acroField.getValue()},l.prototype.addToPage=function(e,t){var u,l,c,s,p,f;(0,d.assertIs)(e,"page",[[r.default,"PDFPage"]]),(0,i.assertFieldAppearanceOptions)(t),t||(t={}),"textColor"in t||(t.textColor=(0,o.rgb)(0,0,0)),"backgroundColor"in t||(t.backgroundColor=(0,o.rgb)(1,1,1)),"borderColor"in t||(t.borderColor=(0,o.rgb)(0,0,0)),"borderWidth"in t||(t.borderWidth=1);var h=this.createWidget({x:null!==(u=t.x)&&void 0!==u?u:0,y:null!==(l=t.y)&&void 0!==l?l:0,width:null!==(c=t.width)&&void 0!==c?c:50,height:null!==(s=t.height)&&void 0!==s?s:50,textColor:t.textColor,backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:null!==(p=t.borderWidth)&&void 0!==p?p:0,rotate:null!==(f=t.rotate)&&void 0!==f?f:(0,a.degrees)(0)}),g=this.doc.context.register(h.dict);this.acroField.addWidget(g),h.setAppearanceState(n.PDFName.of("Off")),this.updateWidgetAppearance(h,n.PDFName.of("Yes")),e.node.addAnnot(g)},l.prototype.needsAppearancesUpdate=function(){for(var e,r=this.acroField.getWidgets(),t=0,o=r.length;t<o;t++){var a=r[t],i=this.acroField.getValue(),d=null===(e=a.getAppearances())||void 0===e?void 0:e.normal;return!(d instanceof n.PDFDict&&d.has(i))}return!1},l.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},l.prototype.updateAppearances=function(e){var r;(0,d.assertOrUndefined)(e,"provider",[Function]);for(var t=this.acroField.getWidgets(),o=0,a=t.length;o<a;o++){var i=t[o],u=null!==(r=i.getOnValue())&&void 0!==r?r:n.PDFName.of("Yes");u&&this.updateWidgetAppearance(i,u,e)}this.markAsClean()},l.prototype.updateWidgetAppearance=function(e,r,o){var a=null!=o?o:t.defaultCheckBoxAppearanceProvider,i=(0,t.normalizeAppearance)(a(this,e));this.updateOnOffWidgetAppearance(e,r,i)},l.of=function(e,r,t){return new l(e,r,t)},l}(i.default),p=s;exports.default=p;
},{"tslib":"vCxL","../PDFPage":"O8IH","./appearances":"i6q6","../colors":"IBdY","../rotations":"XwkK","./PDFField":"cLXn","../../core":"jZtJ","../../utils":"eZqv"}],"FDBh":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=p(require("../PDFPage")),o=p(require("../PDFFont")),r=d(require("./PDFField")),i=require("./appearances"),n=require("../colors"),a=require("../rotations"),l=require("../../core"),s=require("../../utils");function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var n=r?Object.getOwnPropertyDescriptor(e,i):null;n&&(n.get||n.set)?Object.defineProperty(o,i,n):o[i]=e[i]}return o.default=e,t&&t.set(e,o),o}function p(e){return e&&e.__esModule?e:{default:e}}var u=function(c){function d(e,t,o){var r=c.call(this,e,t,o)||this;return(0,s.assertIs)(e,"acroComboBox",[[l.PDFAcroComboBox,"PDFAcroComboBox"]]),r.acroField=e,r}return(0,e.__extends)(d,c),d.prototype.getOptions=function(){for(var e=this.acroField.getOptions(),t=new Array(e.length),o=0,r=t.length;o<r;o++){var i=e[o],n=i.display,a=i.value;t[o]=(null!=n?n:a).decodeText()}return t},d.prototype.getSelected=function(){for(var e=this.acroField.getValues(),t=new Array(e.length),o=0,r=e.length;o<r;o++)t[o]=e[o].decodeText();return t},d.prototype.setOptions=function(e){(0,s.assertIs)(e,"options",[Array]);for(var t=new Array(e.length),o=0,r=e.length;o<r;o++)t[o]={value:l.PDFHexString.fromText(e[o])};this.acroField.setOptions(t)},d.prototype.addOptions=function(e){(0,s.assertIs)(e,"options",["string",Array]);for(var t=Array.isArray(e)?e:[e],o=this.acroField.getOptions(),r=new Array(t.length),i=0,n=t.length;i<n;i++)r[i]={value:l.PDFHexString.fromText(t[i])};this.acroField.setOptions(o.concat(r))},d.prototype.select=function(e,t){void 0===t&&(t=!1),(0,s.assertIs)(e,"options",["string",Array]),(0,s.assertIs)(t,"merge",["boolean"]);var o=Array.isArray(e)?e:[e],r=this.getOptions();o.find(function(e){return!r.includes(e)})&&this.enableEditing(),this.markAsDirty(),(o.length>1||1===o.length&&t)&&this.enableMultiselect();for(var i=new Array(o.length),n=0,a=o.length;n<a;n++)i[n]=l.PDFHexString.fromText(o[n]);if(t){var c=this.acroField.getValues();this.acroField.setValues(c.concat(i))}else this.acroField.setValues(i)},d.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},d.prototype.isEditable=function(){return this.acroField.hasFlag(l.AcroChoiceFlags.Edit)},d.prototype.enableEditing=function(){this.acroField.setFlagTo(l.AcroChoiceFlags.Edit,!0)},d.prototype.disableEditing=function(){this.acroField.setFlagTo(l.AcroChoiceFlags.Edit,!1)},d.prototype.isSorted=function(){return this.acroField.hasFlag(l.AcroChoiceFlags.Sort)},d.prototype.enableSorting=function(){this.acroField.setFlagTo(l.AcroChoiceFlags.Sort,!0)},d.prototype.disableSorting=function(){this.acroField.setFlagTo(l.AcroChoiceFlags.Sort,!1)},d.prototype.isMultiselect=function(){return this.acroField.hasFlag(l.AcroChoiceFlags.MultiSelect)},d.prototype.enableMultiselect=function(){this.acroField.setFlagTo(l.AcroChoiceFlags.MultiSelect,!0)},d.prototype.disableMultiselect=function(){this.acroField.setFlagTo(l.AcroChoiceFlags.MultiSelect,!1)},d.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(l.AcroChoiceFlags.DoNotSpellCheck)},d.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(l.AcroChoiceFlags.DoNotSpellCheck,!1)},d.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(l.AcroChoiceFlags.DoNotSpellCheck,!0)},d.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(l.AcroChoiceFlags.CommitOnSelChange)},d.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(l.AcroChoiceFlags.CommitOnSelChange,!0)},d.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(l.AcroChoiceFlags.CommitOnSelChange,!1)},d.prototype.addToPage=function(e,o){var i,l,c,d,p,u,h;(0,s.assertIs)(e,"page",[[t.default,"PDFPage"]]),(0,r.as
},{"tslib":"vCxL","../PDFPage":"O8IH","../PDFFont":"vnuN","./PDFField":"cLXn","./appearances":"i6q6","../colors":"IBdY","../rotations":"XwkK","../../core":"jZtJ","../../utils":"eZqv"}],"SH65":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=u(require("../PDFPage")),r=u(require("../PDFFont")),o=d(require("./PDFField")),i=require("./appearances"),n=require("../colors"),a=require("../rotations"),s=require("../../core"),l=require("../../utils");function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var n=o?Object.getOwnPropertyDescriptor(e,i):null;n&&(n.get||n.set)?Object.defineProperty(r,i,n):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function u(e){return e&&e.__esModule?e:{default:e}}var p=function(c){function d(e,t,r){var o=c.call(this,e,t,r)||this;return(0,l.assertIs)(e,"acroListBox",[[s.PDFAcroListBox,"PDFAcroListBox"]]),o.acroField=e,o}return(0,e.__extends)(d,c),d.prototype.getOptions=function(){for(var e=this.acroField.getOptions(),t=new Array(e.length),r=0,o=t.length;r<o;r++){var i=e[r],n=i.display,a=i.value;t[r]=(null!=n?n:a).decodeText()}return t},d.prototype.getSelected=function(){for(var e=this.acroField.getValues(),t=new Array(e.length),r=0,o=e.length;r<o;r++)t[r]=e[r].decodeText();return t},d.prototype.setOptions=function(e){(0,l.assertIs)(e,"options",[Array]),this.markAsDirty();for(var t=new Array(e.length),r=0,o=e.length;r<o;r++)t[r]={value:s.PDFHexString.fromText(e[r])};this.acroField.setOptions(t)},d.prototype.addOptions=function(e){(0,l.assertIs)(e,"options",["string",Array]),this.markAsDirty();for(var t=Array.isArray(e)?e:[e],r=this.acroField.getOptions(),o=new Array(t.length),i=0,n=t.length;i<n;i++)o[i]={value:s.PDFHexString.fromText(t[i])};this.acroField.setOptions(r.concat(o))},d.prototype.select=function(e,t){void 0===t&&(t=!1),(0,l.assertIs)(e,"options",["string",Array]),(0,l.assertIs)(t,"merge",["boolean"]);var r=Array.isArray(e)?e:[e],o=this.getOptions();(0,l.assertIsSubset)(r,"option",o),this.markAsDirty(),(r.length>1||1===r.length&&t)&&this.enableMultiselect();for(var i=new Array(r.length),n=0,a=r.length;n<a;n++)i[n]=s.PDFHexString.fromText(r[n]);if(t){var c=this.acroField.getValues();this.acroField.setValues(c.concat(i))}else this.acroField.setValues(i)},d.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},d.prototype.isSorted=function(){return this.acroField.hasFlag(s.AcroChoiceFlags.Sort)},d.prototype.enableSorting=function(){this.acroField.setFlagTo(s.AcroChoiceFlags.Sort,!0)},d.prototype.disableSorting=function(){this.acroField.setFlagTo(s.AcroChoiceFlags.Sort,!1)},d.prototype.isMultiselect=function(){return this.acroField.hasFlag(s.AcroChoiceFlags.MultiSelect)},d.prototype.enableMultiselect=function(){this.acroField.setFlagTo(s.AcroChoiceFlags.MultiSelect,!0)},d.prototype.disableMultiselect=function(){this.acroField.setFlagTo(s.AcroChoiceFlags.MultiSelect,!1)},d.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(s.AcroChoiceFlags.CommitOnSelChange)},d.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(s.AcroChoiceFlags.CommitOnSelChange,!0)},d.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(s.AcroChoiceFlags.CommitOnSelChange,!1)},d.prototype.addToPage=function(e,r){var i,s,c,d,u,p,g;(0,l.assertIs)(e,"page",[[t.default,"PDFPage"]]),(0,o.assertFieldAppearanceOptions)(r),r||(r={}),"textColor"in r||(r.textColor=(0,n.rgb)(0,0,0)),"backgroundColor"in r||(r.backgroundColor=(0,n.rgb)(1,1,1)),"borderColor"in r||(r.borderColor=(0,n.rgb)(0,0,0)),"borderWidth"in r||(r.borderWidth=1);var h=this.createWidget({x:null!==(i=r.x)&&void 0!==i?i:0,y:null!==(s=r.y)&&void 0!==s?s:0,width:null!==(c=r.width)&&void 0!==c?c:200,height:null!==(d=r.height)&&void 0!==d?d:100,textColor:r.textColor,backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:null!==(u=r.borderWidth)&&void 0!==u?u:0,rotate:null!==(p=r.rotate)&&voi
},{"tslib":"vCxL","../PDFPage":"O8IH","../PDFFont":"vnuN","./PDFField":"cLXn","./appearances":"i6q6","../colors":"IBdY","../rotations":"XwkK","../../core":"jZtJ","../../utils":"eZqv"}],"K9Hy":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=d(require("../PDFPage")),o=s(require("./PDFField")),r=require("./appearances"),i=require("../colors"),n=require("../rotations"),a=require("../../core"),l=require("../../utils");function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var n=r?Object.getOwnPropertyDescriptor(e,i):null;n&&(n.get||n.set)?Object.defineProperty(o,i,n):o[i]=e[i]}return o.default=e,t&&t.set(e,o),o}function d(e){return e&&e.__esModule?e:{default:e}}var c=function(u){function s(e,t,o){var r=u.call(this,e,t,o)||this;return(0,l.assertIs)(e,"acroRadioButton",[[a.PDFAcroRadioButton,"PDFAcroRadioButton"]]),r.acroField=e,r}return(0,e.__extends)(s,u),s.prototype.getOptions=function(){var e=this.acroField.getExportValues();if(e){for(var t=new Array(e.length),o=0,r=e.length;o<r;o++)t[o]=e[o].decodeText();return t}var i=this.acroField.getOnValues(),n=new Array(i.length);for(o=0,r=n.length;o<r;o++)n[o]=i[o].decodeText();return n},s.prototype.getSelected=function(){var e=this.acroField.getValue();if(e!==a.PDFName.of("Off")){var t=this.acroField.getExportValues();if(t)for(var o=this.acroField.getOnValues(),r=0,i=o.length;r<i;r++)if(o[r]===e)return t[r].decodeText();return e.decodeText()}},s.prototype.select=function(e){(0,l.assertIs)(e,"option",["string"]);var t=this.getOptions();(0,l.assertIsOneOf)(e,"option",t),this.markAsDirty();var o=this.acroField.getOnValues(),r=this.acroField.getExportValues();if(r)for(var i=0,n=r.length;i<n;i++)r[i].decodeText()===e&&this.acroField.setValue(o[i]);else for(i=0,n=o.length;i<n;i++){var a=o[i];a.decodeText()===e&&this.acroField.setValue(a)}},s.prototype.clear=function(){this.markAsDirty(),this.acroField.setValue(a.PDFName.of("Off"))},s.prototype.isOffToggleable=function(){return!this.acroField.hasFlag(a.AcroButtonFlags.NoToggleToOff)},s.prototype.enableOffToggling=function(){this.acroField.setFlagTo(a.AcroButtonFlags.NoToggleToOff,!1)},s.prototype.disableOffToggling=function(){this.acroField.setFlagTo(a.AcroButtonFlags.NoToggleToOff,!0)},s.prototype.isMutuallyExclusive=function(){return!this.acroField.hasFlag(a.AcroButtonFlags.RadiosInUnison)},s.prototype.enableMutualExclusion=function(){this.acroField.setFlagTo(a.AcroButtonFlags.RadiosInUnison,!1)},s.prototype.disableMutualExclusion=function(){this.acroField.setFlagTo(a.AcroButtonFlags.RadiosInUnison,!0)},s.prototype.addOptionToPage=function(e,r,u){var s,d,c,p,f,g,h,v,F;(0,l.assertIs)(e,"option",["string"]),(0,l.assertIs)(r,"page",[[t.default,"PDFPage"]]),(0,o.assertFieldAppearanceOptions)(u);var y=this.createWidget({x:null!==(s=null==u?void 0:u.x)&&void 0!==s?s:0,y:null!==(d=null==u?void 0:u.y)&&void 0!==d?d:0,width:null!==(c=null==u?void 0:u.width)&&void 0!==c?c:50,height:null!==(p=null==u?void 0:u.height)&&void 0!==p?p:50,textColor:null!==(f=null==u?void 0:u.textColor)&&void 0!==f?f:(0,i.rgb)(0,0,0),backgroundColor:null!==(g=null==u?void 0:u.backgroundColor)&&void 0!==g?g:(0,i.rgb)(1,1,1),borderColor:null!==(h=null==u?void 0:u.borderColor)&&void 0!==h?h:(0,i.rgb)(0,0,0),borderWidth:null!==(v=null==u?void 0:u.borderWidth)&&void 0!==v?v:1,rotate:null!==(F=null==u?void 0:u.rotate)&&void 0!==F?F:(0,n.degrees)(0)}),O=this.doc.context.register(y.dict),A=this.acroField.addWidgetWithOpt(O,a.PDFHexString.fromText(e),!this.isMutuallyExclusive());y.setAppearanceState(a.PDFName.of("Off")),this.updateWidgetAppearance(y,A),r.node.addAnnot(O)},s.prototype.needsAppearancesUpdate=function(){for(var e,t=this.acroField.getWidgets(),o=0,r=t.length;o<r;o++){var i=t[o],n=this.acroField.getValue(),l=null===(e=i.getAppearances())||void 0===e?void 0:e.normal;return!(l instanceof a.PDFDict&&l.has(n))}return!1},s.prototype.defaultUpdateAppearances=function(
},{"tslib":"vCxL","../PDFPage":"O8IH","./PDFField":"cLXn","./appearances":"i6q6","../colors":"IBdY","../rotations":"XwkK","../../core":"jZtJ","../../utils":"eZqv"}],"tPcl":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),r=n(require("./PDFField")),t=require("../../core"),u=require("../../utils");function n(e){return e&&e.__esModule?e:{default:e}}var i=function(r){function n(e,n,i){var o=r.call(this,e,n,i)||this;return(0,u.assertIs)(e,"acroSignature",[[t.PDFAcroSignature,"PDFAcroSignature"]]),o.acroField=e,o}return(0,e.__extends)(n,r),n.prototype.needsAppearancesUpdate=function(){return!1},n.of=function(e,r,t){return new n(e,r,t)},n}(r.default),o=i;exports.default=o;
},{"tslib":"vCxL","./PDFField":"cLXn","../../core":"jZtJ","../../utils":"eZqv"}],"FL7J":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=h(require("../PDFPage")),r=h(require("../PDFFont")),o=g(require("./PDFField")),i=require("./appearances"),a=require("../colors"),n=require("../rotations"),l=require("../errors"),s=require("../text/alignment"),c=require("../../core"),d=require("../../utils");function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function g(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function h(e){return e&&e.__esModule?e:{default:e}}var p=function(u){function g(e,t,r){var o=u.call(this,e,t,r)||this;return(0,d.assertIs)(e,"acroText",[[c.PDFAcroText,"PDFAcroText"]]),o.acroField=e,o}return(0,e.__extends)(g,u),g.prototype.getText=function(){var e=this.acroField.getValue();if(!e&&this.isRichFormatted())throw new l.RichTextFieldReadError(this.getName());return null==e?void 0:e.decodeText()},g.prototype.setText=function(e){(0,d.assertOrUndefined)(e,"text",["string"]);var t=this.getMaxLength();if(void 0!==t&&e&&e.length>t)throw new l.ExceededMaxLengthError(e.length,t,this.getName());this.markAsDirty(),this.disableRichFormatting(),e?this.acroField.setValue(c.PDFHexString.fromText(e)):this.acroField.removeValue()},g.prototype.getAlignment=function(){var e=this.acroField.getQuadding();return 0===e?s.TextAlignment.Left:1===e?s.TextAlignment.Center:2===e?s.TextAlignment.Right:s.TextAlignment.Left},g.prototype.setAlignment=function(e){(0,d.assertIsOneOf)(e,"alignment",s.TextAlignment),this.markAsDirty(),this.acroField.setQuadding(e)},g.prototype.getMaxLength=function(){return this.acroField.getMaxLength()},g.prototype.setMaxLength=function(e){if((0,d.assertRangeOrUndefined)(e,"maxLength",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),void 0===e)this.acroField.removeMaxLength();else{var t=this.getText();if(t&&t.length>e)throw new l.InvalidMaxLengthError(t.length,e,this.getName());this.acroField.setMaxLength(e)}},g.prototype.removeMaxLength=function(){this.markAsDirty(),this.acroField.removeMaxLength()},g.prototype.isMultiline=function(){return this.acroField.hasFlag(c.AcroTextFlags.Multiline)},g.prototype.enableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(c.AcroTextFlags.Multiline,!0)},g.prototype.disableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(c.AcroTextFlags.Multiline,!1)},g.prototype.isPassword=function(){return this.acroField.hasFlag(c.AcroTextFlags.Password)},g.prototype.enablePassword=function(){this.acroField.setFlagTo(c.AcroTextFlags.Password,!0)},g.prototype.disablePassword=function(){this.acroField.setFlagTo(c.AcroTextFlags.Password,!1)},g.prototype.isFileSelector=function(){return this.acroField.hasFlag(c.AcroTextFlags.FileSelect)},g.prototype.enableFileSelection=function(){this.acroField.setFlagTo(c.AcroTextFlags.FileSelect,!0)},g.prototype.disableFileSelection=function(){this.acroField.setFlagTo(c.AcroTextFlags.FileSelect,!1)},g.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(c.AcroTextFlags.DoNotSpellCheck)},g.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(c.AcroTextFlags.DoNotSpellCheck,!1)},g.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(c.AcroTextFlags.DoNotSpellCheck,!0)},g.prototype.isScrollable=function(){return!this.acroField.hasFlag(c.AcroTextFlags.DoNotScroll)},g.prototype.enableScrolling=function(){this.acroField.setFlagTo(c.AcroTextFlags.DoNotScroll,!1)},g.prototype.disableScrolling=function(){this.acroField.setFlagTo(c.AcroTextFlags.DoNotScroll,!0)},g.prototype.isCombed=function(){return this.acroField.hasFlag(c.AcroTextFlags.Comb)&&!this.isMultiline()&&!this.isPassword()&&!this.isFileSelector()&&void 0
},{"tslib":"vCxL","../PDFPage":"O8IH","../PDFFont":"vnuN","./PDFField":"cLXn","./appearances":"i6q6","../colors":"IBdY","../rotations":"XwkK","../errors":"iEaA","../text/alignment":"XyDK","../../core":"jZtJ","../../utils":"eZqv"}],"dBjh":[function(require,module,exports) {
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.StandardFonts=void 0,exports.StandardFonts=e,function(e){e.Courier="Courier",e.CourierBold="Courier-Bold",e.CourierOblique="Courier-Oblique",e.CourierBoldOblique="Courier-BoldOblique",e.Helvetica="Helvetica",e.HelveticaBold="Helvetica-Bold",e.HelveticaOblique="Helvetica-Oblique",e.HelveticaBoldOblique="Helvetica-BoldOblique",e.TimesRoman="Times-Roman",e.TimesRomanBold="Times-Bold",e.TimesRomanItalic="Times-Italic",e.TimesRomanBoldItalic="Times-BoldItalic",e.Symbol="Symbol",e.ZapfDingbats="ZapfDingbats"}(e||(exports.StandardFonts=e={}));
},{}],"CwHR":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=F(require("../PDFDocument")),t=F(require("./PDFButton")),r=F(require("./PDFCheckBox")),n=F(require("./PDFDropdown")),o=F(require("./PDFOptionList")),i=F(require("./PDFRadioGroup")),a=F(require("./PDFSignature")),s=F(require("./PDFTextField")),d=require("../errors"),f=F(require("../PDFFont")),l=require("../StandardFonts"),c=require("../../core"),u=require("../../utils");function F(e){return e&&e.__esModule?e:{default:e}}var p=function(){function F(t,r){var n=this;this.embedDefaultFont=function(){return n.doc.embedStandardFont(l.StandardFonts.Helvetica)},(0,u.assertIs)(t,"acroForm",[[c.PDFAcroForm,"PDFAcroForm"]]),(0,u.assertIs)(r,"doc",[[e.default,"PDFDocument"]]),this.acroForm=t,this.doc=r,this.dirtyFields=new Set,this.defaultFontCache=u.Cache.populatedBy(this.embedDefaultFont)}return F.prototype.hasXFA=function(){return this.acroForm.dict.has(c.PDFName.of("XFA"))},F.prototype.deleteXFA=function(){this.acroForm.dict.delete(c.PDFName.of("XFA"))},F.prototype.getFields=function(){for(var e=this.acroForm.getAllFields(),t=[],r=0,n=e.length;r<n;r++){var o=e[r],i=o[0],a=o[1],s=m(i,a,this.doc);s&&t.push(s)}return t},F.prototype.getFieldMaybe=function(e){(0,u.assertIs)(e,"name",["string"]);for(var t=this.getFields(),r=0,n=t.length;r<n;r++){var o=t[r];if(o.getName()===e)return o}},F.prototype.getField=function(e){(0,u.assertIs)(e,"name",["string"]);var t=this.getFieldMaybe(e);if(t)return t;throw new d.NoSuchFieldError(e)},F.prototype.getButton=function(e){(0,u.assertIs)(e,"name",["string"]);var r=this.getField(e);if(r instanceof t.default)return r;throw new d.UnexpectedFieldTypeError(e,t.default,r)},F.prototype.getCheckBox=function(e){(0,u.assertIs)(e,"name",["string"]);var t=this.getField(e);if(t instanceof r.default)return t;throw new d.UnexpectedFieldTypeError(e,r.default,t)},F.prototype.getDropdown=function(e){(0,u.assertIs)(e,"name",["string"]);var t=this.getField(e);if(t instanceof n.default)return t;throw new d.UnexpectedFieldTypeError(e,n.default,t)},F.prototype.getOptionList=function(e){(0,u.assertIs)(e,"name",["string"]);var t=this.getField(e);if(t instanceof o.default)return t;throw new d.UnexpectedFieldTypeError(e,o.default,t)},F.prototype.getRadioGroup=function(e){(0,u.assertIs)(e,"name",["string"]);var t=this.getField(e);if(t instanceof i.default)return t;throw new d.UnexpectedFieldTypeError(e,i.default,t)},F.prototype.getSignature=function(e){(0,u.assertIs)(e,"name",["string"]);var t=this.getField(e);if(t instanceof a.default)return t;throw new d.UnexpectedFieldTypeError(e,a.default,t)},F.prototype.getTextField=function(e){(0,u.assertIs)(e,"name",["string"]);var t=this.getField(e);if(t instanceof s.default)return t;throw new d.UnexpectedFieldTypeError(e,s.default,t)},F.prototype.createButton=function(e){(0,u.assertIs)(e,"name",["string"]);var r=g(e),n=this.findOrCreateNonTerminals(r.nonTerminal),o=c.PDFAcroPushButton.create(this.doc.context);return o.setPartialName(r.terminal),P(n,[o,o.ref],r.terminal),t.default.of(o,o.ref,this.doc)},F.prototype.createCheckBox=function(e){(0,u.assertIs)(e,"name",["string"]);var t=g(e),n=this.findOrCreateNonTerminals(t.nonTerminal),o=c.PDFAcroCheckBox.create(this.doc.context);return o.setPartialName(t.terminal),P(n,[o,o.ref],t.terminal),r.default.of(o,o.ref,this.doc)},F.prototype.createDropdown=function(e){(0,u.assertIs)(e,"name",["string"]);var t=g(e),r=this.findOrCreateNonTerminals(t.nonTerminal),o=c.PDFAcroComboBox.create(this.doc.context);return o.setPartialName(t.terminal),P(r,[o,o.ref],t.terminal),n.default.of(o,o.ref,this.doc)},F.prototype.createOptionList=function(e){(0,u.assertIs)(e,"name",["string"]);var t=g(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=c.PDFAcroListBox.create(this.doc.context);return n.setPartialName(t.terminal),P(r,[n,n.ref],t.terminal),o.default.of(n,n.ref,this.doc)},F.prototype.createRadioGroup=function(e){(0,u.assertIs)(e,"name",["string"]);var t=g(e),r=this.findOrCreateNonTerminals(t.nonTerminal),n=c.PDFAcroRadioButton.create(this.doc.context);retur
},{"../PDFDocument":"rCII","./PDFButton":"cjSt","./PDFCheckBox":"tJ85","./PDFDropdown":"FDBh","./PDFOptionList":"SH65","./PDFRadioGroup":"K9Hy","./PDFSignature":"tPcl","./PDFTextField":"FL7J","../errors":"iEaA","../PDFFont":"vnuN","../StandardFonts":"dBjh","../../core":"jZtJ","../../utils":"eZqv"}],"a0QN":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PageSizes=void 0;var A={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],Executive:[521.86,756],Folio:[612,936],Legal:[612,1008],Letter:[612,792],Tabloid:[792,1224]};exports.PageSizes=A;
},{}],"N1Mo":[function(require,module,exports) {
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ParseSpeeds=void 0,exports.ParseSpeeds=e,function(e){e[e.Fastest=1/0]="Fastest",e[e.Fast=1500]="Fast",e[e.Medium=500]="Medium",e[e.Slow=100]="Slow"}(e||(exports.ParseSpeeds=e={}));
},{}],"DkUo":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=require("../core"),o=function(){function o(e,t,o){this.alreadyEmbedded=!1,this.ref=e,this.doc=t,this.embedder=o}return o.prototype.embed=function(){return(0,e.__awaiter)(this,void 0,void 0,function(){var o,s,a,d;return(0,e.__generator)(this,function(e){switch(e.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:o=e.sent(),this.doc.catalog.has(t.PDFName.of("Names"))||this.doc.catalog.set(t.PDFName.of("Names"),this.doc.context.obj({})),(s=this.doc.catalog.lookup(t.PDFName.of("Names"),t.PDFDict)).has(t.PDFName.of("EmbeddedFiles"))||s.set(t.PDFName.of("EmbeddedFiles"),this.doc.context.obj({})),(a=s.lookup(t.PDFName.of("EmbeddedFiles"),t.PDFDict)).has(t.PDFName.of("Names"))||a.set(t.PDFName.of("Names"),this.doc.context.obj([])),(d=a.lookup(t.PDFName.of("Names"),t.PDFArray)).push(t.PDFHexString.fromText(this.embedder.fileName)),d.push(o),this.alreadyEmbedded=!0,e.label=2;case 2:return[2]}})})},o.of=function(e,t,s){return new o(e,t,s)},o}(),s=o;exports.default=s;
},{"tslib":"vCxL","../core":"jZtJ"}],"rCII":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=require("tslib"),e=require("./errors"),r=h(require("./PDFEmbeddedPage")),o=h(require("./PDFFont")),n=h(require("./PDFImage")),i=h(require("./PDFPage")),a=h(require("./form/PDFForm")),s=require("./sizes"),u=require("../core"),c=require("./PDFDocumentOptions"),d=require("../utils"),f=h(require("../core/embedders/FileEmbedder")),g=h(require("./PDFEmbeddedFile"));function h(t){return t&&t.__esModule?t:{default:t}}var p=function(){function h(t,r,o){var n=this;if(this.defaultWordBreaks=[" "],this.computePages=function(){var t=[];return n.catalog.Pages().traverse(function(e,r){if(e instanceof u.PDFPageLeaf){var o=n.pageMap.get(e);o||(o=i.default.of(e,r,n),n.pageMap.set(e,o)),t.push(o)}}),t},this.getOrCreateForm=function(){var t=n.catalog.getOrCreateAcroForm();return a.default.of(t,n)},(0,d.assertIs)(t,"context",[[u.PDFContext,"PDFContext"]]),(0,d.assertIs)(r,"ignoreEncryption",["boolean"]),this.context=t,this.catalog=t.lookup(t.trailerInfo.Root),this.isEncrypted=!!t.lookup(t.trailerInfo.Encrypt),this.pageCache=d.Cache.populatedBy(this.computePages),this.pageMap=new Map,this.formCache=d.Cache.populatedBy(this.getOrCreateForm),this.fonts=[],this.images=[],this.embeddedPages=[],this.embeddedFiles=[],!r&&this.isEncrypted)throw new e.EncryptedPDFError;o&&this.updateInfoDict()}return h.load=function(e,r){return void 0===r&&(r={}),(0,t.__awaiter)(this,void 0,void 0,function(){var o,n,i,a,s,f,g,p,l,P,D;return(0,t.__generator)(this,function(t){switch(t.label){case 0:return o=r.ignoreEncryption,n=void 0!==o&&o,i=r.parseSpeed,a=void 0===i?c.ParseSpeeds.Slow:i,s=r.throwOnInvalidObject,f=void 0!==s&&s,g=r.updateMetadata,p=void 0===g||g,l=r.capNumbers,P=void 0!==l&&l,(0,d.assertIs)(e,"pdf",["string",Uint8Array,ArrayBuffer]),(0,d.assertIs)(n,"ignoreEncryption",["boolean"]),(0,d.assertIs)(a,"parseSpeed",["number"]),(0,d.assertIs)(f,"throwOnInvalidObject",["boolean"]),D=(0,d.toUint8Array)(e),[4,u.PDFParser.forBytesWithOptions(D,a,f,P).parseDocument()];case 1:return[2,new h(t.sent(),n,p)]}})})},h.create=function(e){return void 0===e&&(e={}),(0,t.__awaiter)(this,void 0,void 0,function(){var r,o,n,i,a,s;return(0,t.__generator)(this,function(t){return r=e.updateMetadata,o=void 0===r||r,n=u.PDFContext.create(),i=u.PDFPageTree.withContext(n),a=n.register(i),s=u.PDFCatalog.withContextAndPages(n,a),n.trailerInfo.Root=n.register(s),[2,new h(n,!1,o)]})})},h.prototype.registerFontkit=function(t){this.fontkit=t},h.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},h.prototype.getTitle=function(){var t=this.getInfoDict().lookup(u.PDFName.Title);if(t)return P(t),t.decodeText()},h.prototype.getAuthor=function(){var t=this.getInfoDict().lookup(u.PDFName.Author);if(t)return P(t),t.decodeText()},h.prototype.getSubject=function(){var t=this.getInfoDict().lookup(u.PDFName.Subject);if(t)return P(t),t.decodeText()},h.prototype.getKeywords=function(){var t=this.getInfoDict().lookup(u.PDFName.Keywords);if(t)return P(t),t.decodeText()},h.prototype.getCreator=function(){var t=this.getInfoDict().lookup(u.PDFName.Creator);if(t)return P(t),t.decodeText()},h.prototype.getProducer=function(){var t=this.getInfoDict().lookup(u.PDFName.Producer);if(t)return P(t),t.decodeText()},h.prototype.getCreationDate=function(){var t=this.getInfoDict().lookup(u.PDFName.CreationDate);if(t)return P(t),t.decodeDate()},h.prototype.getModificationDate=function(){var t=this.getInfoDict().lookup(u.PDFName.ModDate);if(t)return P(t),t.decodeDate()},h.prototype.setTitle=function(t){(0,d.assertIs)(t,"title",["string"]);var e=u.PDFName.of("Title");this.getInfoDict().set(e,u.PDFHexString.fromText(t))},h.prototype.setAuthor=function(t){(0,d.assertIs)(t,"author",["string"]);var e=u.PDFName.of("Author");this.getInfoDict().set(e,u.PDFHexString.fromText(t))},h.prototype.setSubject=function(t){(0,d.assertIs)(t,"author",["string"]);var e=u.PDFName.of("Subject");this.getInfoDict()
},{"tslib":"vCxL","./errors":"iEaA","./PDFEmbeddedPage":"sfpp","./PDFFont":"vnuN","./PDFImage":"SPMm","./PDFPage":"O8IH","./form/PDFForm":"CwHR","./sizes":"a0QN","../core":"jZtJ","./PDFDocumentOptions":"N1Mo","../utils":"eZqv","../core/embedders/FileEmbedder":"eFfO","./PDFEmbeddedFile":"DkUo"}],"foLZ":[function(require,module,exports) {
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.BlendMode=void 0,exports.BlendMode=e,function(e){e.Normal="Normal",e.Multiply="Multiply",e.Screen="Screen",e.Overlay="Overlay",e.Darken="Darken",e.Lighten="Lighten",e.ColorDodge="ColorDodge",e.ColorBurn="ColorBurn",e.HardLight="HardLight",e.SoftLight="SoftLight",e.Difference="Difference",e.Exclusion="Exclusion"}(e||(exports.BlendMode=e={}));
},{}],"O8IH":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=require("./colors"),o=require("./operations"),r=require("./operators"),n=u(require("./PDFDocument")),s=u(require("./PDFEmbeddedPage")),i=u(require("./PDFFont")),a=u(require("./PDFImage")),d=require("./PDFPageOptions"),h=require("./rotations"),l=require("./StandardFonts"),p=require("../core"),c=require("../utils");function u(e){return e&&e.__esModule?e:{default:e}}var b=function(){function u(e,o,r){this.fontSize=24,this.fontColor=(0,t.rgb)(0,0,0),this.lineHeight=24,this.x=0,this.y=0,(0,c.assertIs)(e,"leafNode",[[p.PDFPageLeaf,"PDFPageLeaf"]]),(0,c.assertIs)(o,"ref",[[p.PDFRef,"PDFRef"]]),(0,c.assertIs)(r,"doc",[[n.default,"PDFDocument"]]),this.node=e,this.ref=o,this.doc=r}return u.prototype.setRotation=function(e){var t=(0,h.toDegrees)(e);(0,c.assertMultiple)(t,"degreesAngle",90),this.node.set(p.PDFName.of("Rotate"),this.doc.context.obj(t))},u.prototype.getRotation=function(){var e=this.node.Rotate();return(0,h.degrees)(e?e.asNumber():0)},u.prototype.setSize=function(e,t){(0,c.assertIs)(e,"width",["number"]),(0,c.assertIs)(t,"height",["number"]);var o=this.getMediaBox();this.setMediaBox(o.x,o.y,e,t);var r=this.getCropBox(),n=this.getBleedBox(),s=this.getTrimBox(),i=this.getArtBox(),a=this.node.CropBox(),d=this.node.BleedBox(),h=this.node.TrimBox(),l=this.node.ArtBox();a&&(0,c.rectanglesAreEqual)(r,o)&&this.setCropBox(o.x,o.y,e,t),d&&(0,c.rectanglesAreEqual)(n,o)&&this.setBleedBox(o.x,o.y,e,t),h&&(0,c.rectanglesAreEqual)(s,o)&&this.setTrimBox(o.x,o.y,e,t),l&&(0,c.rectanglesAreEqual)(i,o)&&this.setArtBox(o.x,o.y,e,t)},u.prototype.setWidth=function(e){(0,c.assertIs)(e,"width",["number"]),this.setSize(e,this.getSize().height)},u.prototype.setHeight=function(e){(0,c.assertIs)(e,"height",["number"]),this.setSize(this.getSize().width,e)},u.prototype.setMediaBox=function(e,t,o,r){(0,c.assertIs)(e,"x",["number"]),(0,c.assertIs)(t,"y",["number"]),(0,c.assertIs)(o,"width",["number"]),(0,c.assertIs)(r,"height",["number"]);var n=this.doc.context.obj([e,t,e+o,t+r]);this.node.set(p.PDFName.MediaBox,n)},u.prototype.setCropBox=function(e,t,o,r){(0,c.assertIs)(e,"x",["number"]),(0,c.assertIs)(t,"y",["number"]),(0,c.assertIs)(o,"width",["number"]),(0,c.assertIs)(r,"height",["number"]);var n=this.doc.context.obj([e,t,e+o,t+r]);this.node.set(p.PDFName.CropBox,n)},u.prototype.setBleedBox=function(e,t,o,r){(0,c.assertIs)(e,"x",["number"]),(0,c.assertIs)(t,"y",["number"]),(0,c.assertIs)(o,"width",["number"]),(0,c.assertIs)(r,"height",["number"]);var n=this.doc.context.obj([e,t,e+o,t+r]);this.node.set(p.PDFName.BleedBox,n)},u.prototype.setTrimBox=function(e,t,o,r){(0,c.assertIs)(e,"x",["number"]),(0,c.assertIs)(t,"y",["number"]),(0,c.assertIs)(o,"width",["number"]),(0,c.assertIs)(r,"height",["number"]);var n=this.doc.context.obj([e,t,e+o,t+r]);this.node.set(p.PDFName.TrimBox,n)},u.prototype.setArtBox=function(e,t,o,r){(0,c.assertIs)(e,"x",["number"]),(0,c.assertIs)(t,"y",["number"]),(0,c.assertIs)(o,"width",["number"]),(0,c.assertIs)(r,"height",["number"]);var n=this.doc.context.obj([e,t,e+o,t+r]);this.node.set(p.PDFName.ArtBox,n)},u.prototype.getSize=function(){var e=this.getMediaBox();return{width:e.width,height:e.height}},u.prototype.getWidth=function(){return this.getSize().width},u.prototype.getHeight=function(){return this.getSize().height},u.prototype.getMediaBox=function(){return this.node.MediaBox().asRectangle()},u.prototype.getCropBox=function(){var e,t=this.node.CropBox();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:this.getMediaBox()},u.prototype.getBleedBox=function(){var e,t=this.node.BleedBox();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:this.getCropBox()},u.prototype.getTrimBox=function(){var e,t=this.node.TrimBox();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:this.getCropBox()},u.prototype.getArtBox=function(){var e,t=this.node.ArtBox();return null!==(e=null==t?void 0:t.asRectangle())&&void 0!==e?e:this.getCropBox()},u.prototype.translateContent=function(e,t){
},{"tslib":"vCxL","./colors":"IBdY","./operations":"ir9q","./operators":"u4ds","./PDFDocument":"rCII","./PDFEmbeddedPage":"sfpp","./PDFFont":"vnuN","./PDFImage":"SPMm","./PDFPageOptions":"foLZ","./rotations":"XwkK","./StandardFonts":"dBjh","../core":"jZtJ","../utils":"eZqv"}],"cjSt":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("tslib"),t=c(require("../PDFPage")),r=c(require("../PDFFont")),o=require("./appearances"),i=p(require("./PDFField")),n=require("../colors"),a=require("../rotations"),d=require("../operations"),l=require("../../core"),u=require("../../utils");function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var n=o?Object.getOwnPropertyDescriptor(e,i):null;n&&(n.get||n.set)?Object.defineProperty(r,i,n):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function c(e){return e&&e.__esModule?e:{default:e}}var h=function(s){function p(e,t,r){var o=s.call(this,e,t,r)||this;return(0,u.assertIs)(e,"acroButton",[[l.PDFAcroPushButton,"PDFAcroPushButton"]]),o.acroField=e,o}return(0,e.__extends)(p,s),p.prototype.setImage=function(t){for(var r,o,i=this.acroField.dict.context,n=this.acroField.getWidgets(),l=0,s=n.length;l<s;l++){var p=n[l],c=p.getRectangle(),h=p.getAppearanceCharacteristics(),g=p.getBorderStyle(),f=null!==(o=null==g?void 0:g.getWidth())&&void 0!==o?o:1,v=(0,a.reduceRotation)(null==h?void 0:h.getRotation()),F=(0,d.rotateInPlace)((0,e.__assign)((0,e.__assign)({},c),{rotation:v})),y=(0,a.adjustDimsForRotation)(c,v),b=t.scaleToFit(y.width-2*f,y.height-2*f),P={x:0+f,y:0+f,width:y.width-2*f,height:y.height-2*f},A={x:P.x+(P.width/2-b.width/2),y:P.y+(P.height/2-b.height/2),width:b.width,height:b.height,rotate:(0,a.degrees)(0),xSkew:(0,a.degrees)(0),ySkew:(0,a.degrees)(0)},w=(0,u.addRandomSuffix)("Image",10),x=(0,e.__spreadArrays)(F,(0,d.drawImage)(w,A)),W={XObject:(r={},r[w]=t.ref,r)},O=i.formXObject(x,{Resources:W,BBox:i.obj([0,0,c.width,c.height]),Matrix:i.obj([1,0,0,1,0,0])}),D=i.register(O);this.updateWidgetAppearances(p,{normal:D})}this.markAsClean()},p.prototype.addToPage=function(e,r,o){var d,l,s,p,c,h,g,f,v,F,y;(0,u.assertOrUndefined)(e,"text",["string"]),(0,u.assertOrUndefined)(r,"page",[[t.default,"PDFPage"]]),(0,i.assertFieldAppearanceOptions)(o);var b=this.createWidget({x:(null!==(d=null==o?void 0:o.x)&&void 0!==d?d:0)-(null!==(l=null==o?void 0:o.borderWidth)&&void 0!==l?l:0)/2,y:(null!==(s=null==o?void 0:o.y)&&void 0!==s?s:0)-(null!==(p=null==o?void 0:o.borderWidth)&&void 0!==p?p:0)/2,width:null!==(c=null==o?void 0:o.width)&&void 0!==c?c:100,height:null!==(h=null==o?void 0:o.height)&&void 0!==h?h:50,textColor:null!==(g=null==o?void 0:o.textColor)&&void 0!==g?g:(0,n.rgb)(0,0,0),backgroundColor:null!==(f=null==o?void 0:o.backgroundColor)&&void 0!==f?f:(0,n.rgb)(.75,.75,.75),borderColor:null==o?void 0:o.borderColor,borderWidth:null!==(v=null==o?void 0:o.borderWidth)&&void 0!==v?v:0,rotate:null!==(F=null==o?void 0:o.rotate)&&void 0!==F?F:(0,a.degrees)(0),caption:e}),P=this.doc.context.register(b.dict);this.acroField.addWidget(P);var A=null!==(y=null==o?void 0:o.font)&&void 0!==y?y:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(b,A),r.node.addAnnot(P)},p.prototype.needsAppearancesUpdate=function(){var e;if(this.isDirty())return!0;for(var t=this.acroField.getWidgets(),r=0,o=t.length;r<o;r++){if(!((null===(e=t[r].getAppearances())||void 0===e?void 0:e.normal)instanceof l.PDFStream))return!0}return!1},p.prototype.defaultUpdateAppearances=function(e){(0,u.assertIs)(e,"font",[[r.default,"PDFFont"]]),this.updateAppearances(e)},p.prototype.updateAppearances=function(e,t){(0,u.assertIs)(e,"font",[[r.default,"PDFFont"]]),(0,u.assertOrUndefined)(t,"provider",[Function]);for(var o=this.acroField.getWidgets(),i=0,n=o.length;i<n;i++){var a=o[i];this.updateWidgetAppearance(a,e,t)}},p.prototype.updateWidgetAppearance=function(e,t,r){var i=null!=r?r:o.defaultButtonAppearanceProvider,n=(0,o.normalizeAppearance)(i(this,e,t));this.updateWidgetAppearanceWithFont(e,t,n)},p.of=function(e,t,r){return new p(e,t,
},{"tslib":"vCxL","../PDFPage":"O8IH","../PDFFont":"vnuN","./appearances":"i6q6","./PDFField":"cLXn","../colors":"IBdY","../rotations":"XwkK","../operations":"ir9q","../../core":"jZtJ","../../utils":"eZqv"}],"UTcZ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={PDFButton:!0,PDFCheckBox:!0,PDFDropdown:!0,PDFField:!0,PDFForm:!0,PDFOptionList:!0,PDFRadioGroup:!0,PDFSignature:!0,PDFTextField:!0};Object.defineProperty(exports,"PDFButton",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(exports,"PDFCheckBox",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(exports,"PDFDropdown",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(exports,"PDFField",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(exports,"PDFForm",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"PDFOptionList",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(exports,"PDFRadioGroup",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(exports,"PDFSignature",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(exports,"PDFTextField",{enumerable:!0,get:function(){return d.default}});var r=require("./appearances");Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in exports&&exports[t]===r[t]||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return r[t]}}))});var t=F(require("./PDFButton")),n=F(require("./PDFCheckBox")),u=F(require("./PDFDropdown")),o=F(require("./PDFField")),i=F(require("./PDFForm")),P=F(require("./PDFOptionList")),p=F(require("./PDFRadioGroup")),a=F(require("./PDFSignature")),d=F(require("./PDFTextField"));function F(e){return e&&e.__esModule?e:{default:e}}
},{"./appearances":"i6q6","./PDFButton":"cjSt","./PDFCheckBox":"tJ85","./PDFDropdown":"FDBh","./PDFField":"cLXn","./PDFForm":"CwHR","./PDFOptionList":"SH65","./PDFRadioGroup":"K9Hy","./PDFSignature":"tPcl","./PDFTextField":"FL7J"}],"Sk2D":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./alignment");Object.keys(e).forEach(function(t){"default"!==t&&"__esModule"!==t&&(t in exports&&exports[t]===e[t]||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}}))});var t=require("./layout");Object.keys(t).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in exports&&exports[e]===t[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return t[e]}}))});
},{"./alignment":"XyDK","./layout":"CsZC"}],"xU9E":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={PDFDocument:!0,PDFFont:!0,PDFImage:!0,PDFPage:!0,PDFEmbeddedPage:!0};Object.defineProperty(exports,"PDFDocument",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(exports,"PDFFont",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(exports,"PDFImage",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(exports,"PDFPage",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(exports,"PDFEmbeddedPage",{enumerable:!0,get:function(){return P.default}});var t=require("./form");Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in exports&&exports[r]===t[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return t[r]}}))});var r=require("./text");Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in exports&&exports[t]===r[t]||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return r[t]}}))});var o=require("./colors");Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in exports&&exports[t]===o[t]||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return o[t]}}))});var n=require("./errors");Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in exports&&exports[t]===n[t]||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return n[t]}}))});var u=require("./objects");Object.keys(u).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in exports&&exports[t]===u[t]||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return u[t]}}))});var c=require("./operations");Object.keys(c).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in exports&&exports[t]===c[t]||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return c[t]}}))});var a=require("./operators");Object.keys(a).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in exports&&exports[t]===a[t]||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return a[t]}}))});var p=require("./rotations");Object.keys(p).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in exports&&exports[t]===p[t]||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return p[t]}}))});var s=require("./sizes");Object.keys(s).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in exports&&exports[t]===s[t]||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return s[t]}}))});var i=require("./PDFPageOptions");Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in exports&&exports[t]===i[t]||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return i[t]}}))});var f=require("./PDFDocumentOptions");Object.keys(f).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in exports&&exports[t]===f[t]||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return f[t]}}))});var l=require("./StandardFonts");Object.keys(l).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in exports&&exports[t]===l[t]||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return l[t]}}))});var b=j(require("./PDFDocument")),d=j(require("./PDFFont")),O=j(require("./PDFImage")),y=j(require("./PDFPage")),P=j(require("./PDFEmbeddedPage"));function j(e){return e&&e.__esModule?e:{default:e}}
},{"./form":"UTcZ","./text":"Sk2D","./colors":"IBdY","./errors":"iEaA","./objects":"Ch3x","./operations":"ir9q","./operators":"u4ds","./rotations":"XwkK","./sizes":"a0QN","./PDFPageOptions":"foLZ","./PDFDocumentOptions":"N1Mo","./StandardFonts":"dBjh","./PDFDocument":"rCII","./PDFFont":"vnuN","./PDFImage":"SPMm","./PDFPage":"O8IH","./PDFEmbeddedPage":"sfpp"}],"LYu1":[function(require,module,exports) {
},{}],"Yu9A":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./api/index");Object.keys(e).forEach(function(r){"default"!==r&&"__esModule"!==r&&(r in exports&&exports[r]===e[r]||Object.defineProperty(exports,r,{enumerable:!0,get:function(){return e[r]}}))});var r=require("./core/index");Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in exports&&exports[e]===r[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return r[e]}}))});var t=require("./types/index");Object.keys(t).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in exports&&exports[e]===t[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return t[e]}}))});var n=require("./utils/index");Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in exports&&exports[e]===n[e]||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return n[e]}}))});
},{"./api/index":"xU9E","./core/index":"jZtJ","./types/index":"LYu1","./utils/index":"eZqv"}],"zusO":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.generatePdf=i;var e=r(require("@babel/runtime/regenerator")),t=r(require("@babel/runtime/helpers/asyncToGenerator")),a=require("./util"),n=require("pdf-lib");function r(e){return e&&e.__esModule?e:{default:e}}var c={travail:578,achats:533,sante:477,famille:435,handicap:396,sport_animaux:358,convocation:295,missions:255,enfants:211};function i(e,t,a){return o.apply(this,arguments)}function o(){return(o=(0,t.default)(e.default.mark(function t(r,i,o){var u,d,l,f,p,h,g,m,x,v,b,y,w,S,P,D,T,q,z,A,F,M,_;return e.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u=new Date,d=u.toLocaleDateString("fr-FR"),l=u.toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit"}).replace(":","h"),f=r.lastname,p=r.firstname,h=r.birthday,g=r.placeofbirth,m=r.address,x=r.zipcode,v=r.city,b=r.datesortie,y=r.heuresortie,w=["Cree le: ".concat(d," a ").concat(l),"Nom: ".concat(f),"Prenom: ".concat(p),"Naissance: ".concat(h," a ").concat(g),"Adresse: ".concat(m," ").concat(x," ").concat(v),"Sortie: ".concat(b," a ").concat(y),"Motifs: ".concat(i)].join(";\n "),e.next=7,fetch(o).then(function(e){return e.arrayBuffer()});case 7:return S=e.sent,e.next=10,n.PDFDocument.load(S);case 10:return(P=e.sent).setTitle("COVID-19 - Déclaration de déplacement"),P.setSubject("Attestation de déplacement dérogatoire"),P.setKeywords(["covid19","covid-19","attestation","déclaration","déplacement","officielle","gouvernement"]),P.setProducer("DNUM/SDIT"),P.setCreator(""),P.setAuthor("Ministère de l'intérieur"),D=P.getPages()[0],e.next=20,P.embedFont(n.StandardFonts.Helvetica);case 20:return T=e.sent,(q=function(e,t,a){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:11;D.drawText(e,{x:t,y:a,size:n,font:T})})("".concat(p," ").concat(f),119,696),q(h,119,674),q(g,297,674),q("".concat(m," ").concat(x," ").concat(v),133,652),i.split(", ").forEach(function(e){q("x",84,c[e],18)}),(z=s(T,r.city,83,7,11))||(alert('Le nom de la ville risque de ne pas être affiché correctement en raison de sa longueur. Essayez d\'utiliser des abréviations ("Saint" en "St." par exemple) quand cela est possible.'),z=7),q(r.city,105,177,z),q("".concat(r.datesortie),91,153,11),q("".concat(r.heuresortie),264,153,11),e.next=34,(0,a.generateQR)(w);case 34:return A=e.sent,e.next=37,P.embedPng(A);case 37:return F=e.sent,D.drawImage(F,{x:D.getWidth()-156,y:100,width:92,height:92}),P.addPage(),(M=P.getPages()[1]).drawImage(F,{x:50,y:M.getHeight()-350,width:300,height:300}),e.next=44,P.save();case 44:return _=e.sent,e.abrupt("return",new Blob([_],{type:"application/pdf"}));case 46:case"end":return e.stop()}},t)}))).apply(this,arguments)}function s(e,t,a,n,r){for(var c=r,i=e.widthOfTextAtSize(t,r);i>a&&c>n;)i=e.widthOfTextAtSize(t,--c);return i>a?null:c}
},{"@babel/runtime/regenerator":"PMvg","@babel/runtime/helpers/asyncToGenerator":"agGE","./util":"wT1R","pdf-lib":"Yu9A"}],"qRST":[function(require,module,exports) {
2020-10-30 17:39:09 +00:00
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setReleaseDateTime=p,exports.getProfile=v,exports.getReasons=h,exports.prepareInputs=m,exports.prepareForm=g;var e=u(require("@babel/runtime/helpers/toConsumableArray")),t=u(require("@babel/runtime/regenerator")),r=u(require("@babel/runtime/helpers/asyncToGenerator")),n=require("./dom-utils"),a=require("./util"),i=u(require("../certificate.pdf")),o=require("./pdf-util");function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=c(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){u=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw i}}}}function c(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d={"#field-firstname":{length:1},"#field-lastname":{length:1},"#field-birthday":{pattern:/^([0][1-9]|[1-2][0-9]|30|31)\/([0][1-9]|10|11|12)\/(19[0-9][0-9]|20[0-1][0-9]|2020)/g},"#field-placeofbirth":{length:1},"#field-address":{length:1},"#field-city":{length:1},"#field-zipcode":{pattern:/\d{5}/g},"#field-datesortie":{pattern:/\d{4}-\d{2}-\d{2}/g},"#field-heuresortie":{pattern:/\d{2}:\d{2}/g}};function f(){return Object.keys(d).map(function(e){var t=d[e],r=t.pattern,a=t.length,i=r&&!(0,n.$)(e).value.match(r),o=a&&!(0,n.$)(e).value.length,u=!(!i&&!o);return(0,n.$)(e).setAttribute("aria-invalid",u),u&&(0,n.$)(e).focus(),u}).includes(!0)}function p(e){var t=new Date;e.value=(0,a.getFormattedDate)(t)}function v(e){var t,r={},n=l(e);try{for(n.s();!(t=n.n()).done;){var a=t.value,i=a.value;if("field-datesortie"===a.id){var o=a.value.split("-");i="".concat(o[2],"/").concat(o[1],"/").concat(o[0])}r[a.id.substring("field-".length)]=i}}catch(u){n.e(u)}finally{n.f()}return r}function h(e){return e.filter(function(e){return e.checked}).map(function(e){return e.value}).join(", ")}function m(e,u,l,c,s){e.forEach(function(e){var t=e.parentNode.parentNode.querySelector(".exemple"),r=e.parentNode.parentNode.querySelector(".validity");e.placeholder&&t&&e.addEventListener("input",function(n){e.value?(t.innerHTML="ex.&nbsp;: "+e.placeholder,r.removeAttribute("hidden")):t.innerHTML=""})}),(0,n.$)("#field-birthday").addEventListener("keyup",function(e){e.preventDefault();var t=e.target,r=e.keyCode||e.charCode;8!==r&&46!==r&&(t.value=(0,a.addSlash)(t.value))}),u.forEach(function(e){e.addEventListener("change",function(e){var t=u.every(function(e){return!e.checked});l.classList.toggle("fieldset-error",t),c.classList.toggle("hidden",!t)})}),(0,n.$)("#generate-btn").addEventListener("click",function(){var a=(0,r.default)(t.default.mark(function r(a){var d,p,m,g,b;return t.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a.preventDefault(),d=h(u)){t.next=7;break}return l.classList.add("fieldset-error"),c.classList.remove("hidden"),l.scrollIntoView&&l.scrollIntoView(),t.abrupt("return");case 7:if(!f()){t.next=10;break}return t.abrupt("return");case 10:return formToURL(v(e),d),console.log(v(e),d),t.next=13,(0,o.generatePdf)(v(e),d,i.default);case 13:p=t.sent,m=new Date,g=m.toLocaleDateString("fr-CA"),b=m.toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit"}).replace(":","-"),(0,n.downloadBlob)(p,"attestation-".concat(g,"_").concat(b,".pdf")),s.classList.remove("d-none"),setTimeout(function(){return s.classList.add("show")}
2020-10-29 21:30:05 +00:00
},{"@babel/runtime/helpers/toConsumableArray":"Fhqp","@babel/runtime/regenerator":"PMvg","@babel/runtime/helpers/asyncToGenerator":"agGE","./dom-utils":"XNdd","./util":"wT1R","../certificate.pdf":"W9IH","./pdf-util":"zusO"}],"OPnp":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnFacebookBrowserUserIfNecessary=r;var e=require("./dom-utils");function r(){if(o()){var r=(0,e.$)("#alert-facebook");r.value="ATTENTION !! Vous utilisez actuellement le navigateur Facebook, ce générateur ne fonctionne pas correctement au sein de ce navigateur ! Merci d'ouvrir Chrome sur Android ou bien Safari sur iOS.",r.classList.remove("d-none")}}function o(){var e=navigator.userAgent||navigator.vendor||window.opera;return e.includes("FBAN")||e.includes("FBAV")}
},{"./dom-utils":"XNdd"}],"IxO8":[function(require,module,exports) {
function e(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}module.exports=e;
},{}],"Ufpb":[function(require,module,exports) {
module.exports=[[{key:"firstname",type:"text",contentType:"firstname",label:"Prénom",autocomplete:"given-name",placeholder:"Camille"},{key:"lastname",type:"text",contentType:"lastname",label:"Nom",autocomplete:"family-name",placeholder:"Dupont"},{key:"birthday",type:"text",contentType:"birthday",label:"Date de naissance",autocomplete:"birthday",pattern:"^([0][1-9]|[1-2][0-9]|30|31)/([0][1-9]|10|11|12)/(19[0-9][0-9]|20[0-1][0-9]|2020)",maxlength:10,placeholder:"01/01/1970"}],[{key:"placeofbirth",type:"text",contentType:"cityofbirth",label:"Lieu de naissance",autocomplete:"off",placeholder:"Paris"},{key:"address",type:"text",contentType:"address",label:"Adresse",autocomplete:"adress-line1",placeholder:"999 avenue de France"},{key:"city",type:"text",contentType:"city",label:"Ville",autocomplete:"address-level2",placeholder:"Paris"},{key:"zipcode",type:"number",contentType:"zipcode",label:"Code Postal",autocomplete:"postal-code",placeholder:"75001",inputmode:"numeric",pattern:"[0-9]{5}",min:1e3,max:99999,minlength:4,maxlength:5}],[{key:"creationDate",type:"date",contentType:"creationDate",label:"Date de création",isHidden:!0},{key:"creationHour",type:"time",contentType:"creationHour",label:"Heure de création",isHidden:!0},{key:"datesortie",type:"date",contentType:"datesortie",label:"Date de sortie",pattern:"^([0][1-9]|[1-2][0-9]|30|31)/([0][1-9]|10|11|12)/(19[0-9][0-9]|20[0-1][0-9]|2020)",autocomplete:""},{key:"heuresortie",type:"time",contentType:"heuresortie",label:"Heure de sortie",autocomplete:""},{key:"reason",type:"list",items:[{code:"travail",label:'Déplacements entre le domicile et le lieu d\'exercice de l\'activité professionnelle ou les déplacements professionnels ne pouvant être différés <a class="footnote" id="footnote2" href="#footnote2">[2]</a>;'},{code:"achats",label:'Déplacements pour effectuer des achats de fournitures nécessaires à l\'activité professionnelle, des achats de première nécessité <a class="footnote" id="footnote3" href="#footnote3">[3]</a> dans des établissements dont les activités demeurent autorisées (liste sur gouvernement.fr) et les livraisons à domicile;'},{code:"sante",label:"Consultations et soins ne pouvant être assurés à distance et ne pouvant être différés et lachat de médicaments;"},{code:"famille",label:"Déplacements pour motif familial impérieux, pour l'assistance aux personnes vulnérables et précaires ou la garde d'enfants;"},{code:"handicap",label:"Déplacements des personnes en situation de handicap et de leur accompagnant;"},{code:"sport_animaux",label:"Déplacements brefs, dans la limite d'une heure quotidienne et dans un rayon maximal d'un kilomètre autour du domicile, liés soit à l'activité physique individuelle des personnes, à l'exclusion de toute pratique sportive collective et de toute proximité avec d'autres personnes, soit à la promenade avec les seules personnes regroupées dans un même domicile, soit aux besoins des animaux de compagnie."},{code:"convocation",label:" Convocation judiciaire ou administrative et rendez-vous dans un service public;"},{code:"missions",label:" Participation à des missions d'intérêt général sur demande de l'autorité administrative;"},{code:"enfants",label:"Déplacement pour chercher les enfants à lécoles et à loccasion de leurs activités périscolaires;"}]}]];
},{}],"oVPx":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createForm=m;var e=a(require("@babel/runtime/helpers/defineProperty")),t=a(require("@babel/runtime/helpers/toConsumableArray"));require("bootstrap/dist/css/bootstrap.min.css"),require("../css/main.css");var r=a(require("../form-data.json")),n=require("./dom-utils");function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?o(Object(n),!0).forEach(function(r){(0,e.default)(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var c=function(){return[(0,n.createElement)("h2",{className:"titre-2",innerHTML:"Remplissez en ligne votre déclaration numérique: "}),(0,n.createElement)("p",{className:"msg-info",innerHTML:"Tous les champs sont obligatoires."})]},l=function(e){var t=e.autocomplete,r=void 0!==t&&t,a=e.autofocus,o=void 0!==a&&a,i=e.inputmode,c=e.label,l=e.max,s=e.min,u=e.maxlength,m=e.minlength,f=e.name,d=e.pattern,p=e.placeholder,b=void 0===p?"":p,v=e.type,h=void 0===v?"text":v,g=(0,n.createElement)("div",{className:"form-group"}),y={for:"field-".concat(f),id:"field-".concat(f,"-label"),innerHTML:c},O=(0,n.createElement)("label",y),E=(0,n.createElement)("div",{className:"input-group align-items-center"}),T={autocomplete:r,autofocus:o,className:"form-control",id:"field-".concat(f),inputmode:i,min:s,max:l,minlength:m,maxlength:u,name:f,pattern:d,placeholder:b,required:!0,type:h},j=(0,n.createElement)("input",T),N=(0,n.createElement)("span",{className:"validity"}),x=(0,n.appendTo)(g);x(O),x(E);var M=(0,n.appendTo)(E);return M(j),M(N),g},s=function(e){var t=(0,n.createElement)("div",{className:"form-checkbox align-items-center"}),r=(0,n.appendTo)(t),a="checkbox-".concat(e.code),o={className:"form-check-input",type:"checkbox",id:a,name:"field-reason",value:e.code},i=(0,n.createElement)("input",o),c={innerHTML:e.label,className:"form-checkbox-label",for:a};return r([i,(0,n.createElement)("label",c)]),t},u=function(e){var r=(0,n.createElement)("fieldset",{id:"reason-fieldset",className:"fieldset"}),a=(0,n.appendTo)(r),o=(0,n.createElement)("legend",{className:"legend titre 3 ",innerHTML:"Choisissez un motif de déplacement"}),i=(0,n.createElement)("p",{className:"msg-alert hidden",innerHTML:"Veuillez choisir un motif"}),c=(0,n.createElement)("p",{innerHTML:'certifie que mon déplacement est lié au motif suivant (cocher la case) autorisé en application des \n mesures générales nécessaires pour faire face à l\'épidémie de Covid19 dans le cadre de l\'état \n d\'urgence sanitaire <a class="footnote" id="footnote1" href="#footnote1">[1]</a>&nbsp;:'}),l=e.items.map(s);return a([o,i,c].concat((0,t.default)(l))),r};function m(){var e=(0,n.$)("#form-profile");if(""===e.innerHTML){var a=(0,n.appendTo)(e),o=r.default.flat(1).filter(function(e){return"reason"!==e.key}).filter(function(e){return!e.isHidden}).map(function(e,t){return l(i(i({autofocus:0===t},e),{},{name:e.key}))}),s=r.default.flat(1).find(function(e){return"reason"===e.key}),m=u(s);a([].concat((0,t.default)(c()),(0,t.default)(o),[m]))}}
},{"@babel/runtime/helpers/defineProperty":"IxO8","@babel/runtime/helpers/toConsumableArray":"Fhqp","bootstrap/dist/css/bootstrap.min.css":"LYu1","../css/main.css":"I7Ak","../form-data.json":"Ufpb","./dom-utils":"XNdd"}],"d6sW":[function(require,module,exports) {
"use strict";require("bootstrap/dist/css/bootstrap.min.css"),require("../css/main.css"),require("./icons"),require("./check-updates");var r=require("./form-util"),e=require("./facebook-util"),s=require("./util"),i=require("./form");(0,e.warnFacebookBrowserUserIfNecessary)(),(0,i.createForm)(),(0,r.prepareForm)(),(0,s.addVersion)("1.0.6-e38dfbf");
},{"bootstrap/dist/css/bootstrap.min.css":"LYu1","../css/main.css":"I7Ak","./icons":"jeVz","./check-updates":"qEem","./form-util":"qRST","./facebook-util":"OPnp","./util":"wT1R","./form":"oVPx"}]},{},["d6sW"], null)
2020-10-30 17:39:09 +00:00
//# sourceMappingURL=/deplacement-covid-19/main.859e2903.js.map