/** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2022 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */ !function webpackUniversalModuleDefinition(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf",[],r):"object"==typeof exports?exports["pdfjs-dist/build/pdf"]=r():t["pdfjs-dist/build/pdf"]=t.pdfjsLib=r()}(this,(function(){return(()=>{var __webpack_modules__=[,(t,r,a)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.VerbosityLevel=r.Util=r.UnknownErrorException=r.UnexpectedResponseException=r.UNSUPPORTED_FEATURES=r.TextRenderingMode=r.StreamType=r.RenderingIntentFlag=r.PermissionFlag=r.PasswordResponses=r.PasswordException=r.PageActionEventType=r.OPS=r.MissingPDFException=r.IsLittleEndianCached=r.IsEvalSupportedCached=r.InvalidPDFException=r.ImageKind=r.IDENTITY_MATRIX=r.FormatError=r.FontType=r.FONT_IDENTITY_MATRIX=r.DocumentActionEventType=r.CMapCompressionType=r.BaseException=r.AnnotationType=r.AnnotationStateModelType=r.AnnotationReviewState=r.AnnotationReplyType=r.AnnotationMode=r.AnnotationMarkedState=r.AnnotationFlag=r.AnnotationFieldFlag=r.AnnotationBorderStyleType=r.AnnotationActionEventType=r.AbortException=void 0;r.arrayByteLength=arrayByteLength;r.arraysToBytes=function arraysToBytes(t){var r=t.length;if(1===r&&t[0]instanceof Uint8Array)return t[0];for(var a=0,i=0;i1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return null;try{if(a&&"string"==typeof t){if(a.addDefaultProtocol&&t.startsWith("www.")){var i=t.match(/\./g);i&&i.length>=2&&(t="http://".concat(t))}if(a.tryConvertEncoding)try{t=stringToUTF8String(t)}catch(t){}}var o=r?new URL(t,r):new URL(t);if(_isValidProtocol(o))return o}catch(t){}return null};r.escapeString=function escapeString(t){return t.replace(/([()\\\n\r])/g,(function(t){return"\n"===t?"\\n":"\r"===t?"\\r":"\\".concat(t)}))};r.getModificationDate=function getModificationDate(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,r=[t.getUTCFullYear().toString(),(t.getUTCMonth()+1).toString().padStart(2,"0"),t.getUTCDate().toString().padStart(2,"0"),t.getUTCHours().toString().padStart(2,"0"),t.getUTCMinutes().toString().padStart(2,"0"),t.getUTCSeconds().toString().padStart(2,"0")];return r.join("")};r.getVerbosityLevel=function getVerbosityLevel(){return o};r.info=function info(t){o>=i.INFOS&&console.log("Info: ".concat(t))};r.isArrayBuffer=function isArrayBuffer(t){return"object"===_typeof(t)&&null!==t&&void 0!==t.byteLength};r.isArrayEqual=function isArrayEqual(t,r){if(t.length!==r.length)return!1;for(var a=0,i=t.length;a=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:o}}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 l,c=!0,u=!1;return{s:function s(){a=a.call(t)},n:function n(){var t=a.next();c=t.done;return t},e:function e(t){u=!0;l=t},f:function f(){try{c||null==a.return||a.return()}finally{if(u)throw l}}}}(t);try{for(i.s();!(r=i.n()).done;){var o=(u=r.value,d=2,function _arrayWithHoles(t){if(Array.isArray(t))return t}(u)||function _iterableToArrayLimit(t,r){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==a)return;var i,o,l=[],c=!0,u=!1;try{for(a=a.call(t);!(c=(i=a.next()).done);c=!0){l.push(i.value);if(r&&l.length===r)break}}catch(t){u=!0;o=t}finally{try{c||null==a.return||a.return()}finally{if(u)throw o}}return l}(u,d)||_unsupportedIterableToArray(u,d)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=o[0],c=o[1];a[l]=c}}catch(t){i.e(t)}finally{i.f()}var u,d;return a};r.objectSize=function objectSize(t){return Object.keys(t).length};r.setVerbosityLevel=function setVerbosityLevel(t){Number.isInteger(t)&&(o=t)};r.shadow=shadow;r.string32=function string32(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)};r.stringToBytes=stringToBytes;r.stringToPDFString=function stringToPDFString(t){if(t[0]>="ï"){var r;"þ"===t[0]&&"ÿ"===t[1]?r="utf-16be":"ÿ"===t[0]&&"þ"===t[1]?r="utf-16le":"ï"===t[0]&&"»"===t[1]&&"¿"===t[2]&&(r="utf-8");if(r)try{var a=new TextDecoder(r,{fatal:!0}),i=stringToBytes(t);return a.decode(i)}catch(t){warn('stringToPDFString: "'.concat(t,'".'))}}for(var o=[],l=0,c=t.length;l>8&255),String.fromCharCode(255&o))}return r.join("")};r.stringToUTF8String=stringToUTF8String;r.unreachable=unreachable;r.utf8StringToString=function utf8StringToString(t){return unescape(encodeURIComponent(t))};r.warn=warn;a(2);function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_unsupportedIterableToArray(t)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);return"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a=i.WARNINGS&&console.log("Warning: ".concat(t))}function unreachable(t){throw new Error(t)}function _isValidProtocol(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function shadow(t,r,a){Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!1});return a}var l=function BaseExceptionClosure(){function BaseException(t,r){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=t;this.name=r}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();r.BaseException=l;var c=function(t){_inherits(PasswordException,t);var r=_createSuper(PasswordException);function PasswordException(t,a){var i;_classCallCheck(this,PasswordException);(i=r.call(this,t,"PasswordException")).code=a;return i}return _createClass(PasswordException)}(l);r.PasswordException=c;var u=function(t){_inherits(UnknownErrorException,t);var r=_createSuper(UnknownErrorException);function UnknownErrorException(t,a){var i;_classCallCheck(this,UnknownErrorException);(i=r.call(this,t,"UnknownErrorException")).details=a;return i}return _createClass(UnknownErrorException)}(l);r.UnknownErrorException=u;var d=function(t){_inherits(InvalidPDFException,t);var r=_createSuper(InvalidPDFException);function InvalidPDFException(t){_classCallCheck(this,InvalidPDFException);return r.call(this,t,"InvalidPDFException")}return _createClass(InvalidPDFException)}(l);r.InvalidPDFException=d;var h=function(t){_inherits(MissingPDFException,t);var r=_createSuper(MissingPDFException);function MissingPDFException(t){_classCallCheck(this,MissingPDFException);return r.call(this,t,"MissingPDFException")}return _createClass(MissingPDFException)}(l);r.MissingPDFException=h;var p=function(t){_inherits(UnexpectedResponseException,t);var r=_createSuper(UnexpectedResponseException);function UnexpectedResponseException(t,a){var i;_classCallCheck(this,UnexpectedResponseException);(i=r.call(this,t,"UnexpectedResponseException")).status=a;return i}return _createClass(UnexpectedResponseException)}(l);r.UnexpectedResponseException=p;var v=function(t){_inherits(FormatError,t);var r=_createSuper(FormatError);function FormatError(t){_classCallCheck(this,FormatError);return r.call(this,t,"FormatError")}return _createClass(FormatError)}(l);r.FormatError=v;var y=function(t){_inherits(AbortException,t);var r=_createSuper(AbortException);function AbortException(t){_classCallCheck(this,AbortException);return r.call(this,t,"AbortException")}return _createClass(AbortException)}(l);r.AbortException=y;function stringToBytes(t){"string"!=typeof t&&unreachable("Invalid argument for stringToBytes");for(var r=t.length,a=new Uint8Array(r),i=0;it[2]){r[0]=t[2];r[2]=t[0]}if(t[1]>t[3]){r[1]=t[3];r[3]=t[1]}return r}},{key:"intersect",value:function intersect(t,r){function compare(t,r){return t-r}var a=[t[0],t[2],r[0],r[2]].sort(compare),i=[t[1],t[3],r[1],r[3]].sort(compare),o=[];t=Util.normalizeRect(t);r=Util.normalizeRect(r);if(!(a[0]===t[0]&&a[1]===r[0]||a[0]===r[0]&&a[1]===t[0]))return null;o[0]=a[1];o[2]=a[2];if(!(i[0]===t[1]&&i[1]===r[1]||i[0]===r[1]&&i[1]===t[1]))return null;o[1]=i[1];o[3]=i[2];return o}},{key:"bezierBoundingBox",value:function bezierBoundingBox(t,r,a,i,o,l,c,u){for(var d,h,p,v,y,g,m,_,b=[],A=[[],[]],S=0;S<2;++S){if(0===S){h=6*t-12*a+6*o;d=-3*t+9*a-9*o+3*c;p=3*a-3*t}else{h=6*r-12*i+6*l;d=-3*r+9*i-9*l+3*u;p=3*i-3*r}if(Math.abs(d)<1e-12){if(Math.abs(h)<1e-12)continue;0<(v=-p/h)&&v<1&&b.push(v)}else{m=h*h-4*p*d;_=Math.sqrt(m);if(!(m<0)){0<(y=(-h+_)/(2*d))&&y<1&&b.push(y);0<(g=(-h-_)/(2*d))&&g<1&&b.push(g)}}}for(var k,x=b.length,C=x;x--;){k=1-(v=b[x]);A[0][x]=k*k*k*t+3*k*k*v*a+3*k*v*v*o+v*v*v*c;A[1][x]=k*k*k*r+3*k*k*v*i+3*k*v*v*l+v*v*v*u}A[0][C]=t;A[1][C]=r;A[0][C+1]=c;A[1][C+1]=u;A[0].length=A[1].length=C+2;return[Math.min.apply(Math,_toConsumableArray(A[0])),Math.min.apply(Math,_toConsumableArray(A[1])),Math.max.apply(Math,_toConsumableArray(A[0])),Math.max.apply(Math,_toConsumableArray(A[1]))]}}]);return Util}();r.Util=b;var A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function stringToUTF8String(t){return decodeURIComponent(escape(t))}},(t,r,a)=>{"use strict";var i=a(3);if(!globalThis._pdfjsCompatibilityChecked){globalThis._pdfjsCompatibilityChecked=!0;!function checkNodeBtoa(){!globalThis.btoa&&i.isNodeJS&&(globalThis.btoa=function(t){return Buffer.from(t,"binary").toString("base64")})}();!function checkNodeAtob(){!globalThis.atob&&i.isNodeJS&&(globalThis.atob=function(t){return Buffer.from(t,"base64").toString("binary")})}();!function checkDOMMatrix(){!globalThis.DOMMatrix&&i.isNodeJS&&(globalThis.DOMMatrix=a(4))}();!function checkPromise(){globalThis.Promise.allSettled||(globalThis.Promise=a(5))}();!function checkReadableStream(){!globalThis.ReadableStream&&i.isNodeJS&&(globalThis.ReadableStream=require("web-streams-polyfill/dist/ponyfill.js").ReadableStream)}();!function checkStructuredClone(){globalThis.structuredClone||a(129)}()}},(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.isNodeJS=void 0;function _typeof(t){return _typeof="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},_typeof(t)}var a=!("object"!==("undefined"==typeof process?"undefined":_typeof(process))||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);r.isNodeJS=a},(t,r,a)=>{"use strict";var i,o,l;function _typeof(t){return _typeof="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},_typeof(t)}l=function(){function fromArray(r){var a=new t,i=Array.from(r);if(!i.every((function(t){return!Number.isNaN(t)})))throw TypeError('CSSMatrix: "'+r+'" must only have numbers.');if(16===i.length){var o=i[0],l=i[1],c=i[2],u=i[3],d=i[4],h=i[5],p=i[6],v=i[7],y=i[8],g=i[9],m=i[10],_=i[11],b=i[12],A=i[13],S=i[14],k=i[15];a.m11=o;a.a=o;a.m21=d;a.c=d;a.m31=y;a.m41=b;a.e=b;a.m12=l;a.b=l;a.m22=h;a.d=h;a.m32=g;a.m42=A;a.f=A;a.m13=c;a.m23=p;a.m33=m;a.m43=S;a.m14=u;a.m24=v;a.m34=_;a.m44=k}else{if(6!==i.length)throw new TypeError("CSSMatrix: expecting an Array of 6/16 values.");var x=i[0],C=i[1],P=i[2],w=i[3],T=i[4],R=i[5];a.m11=x;a.a=x;a.m12=C;a.b=C;a.m21=P;a.c=P;a.m22=w;a.d=w;a.m41=T;a.e=T;a.m42=R;a.f=R}return a}function fromMatrix(r){var a=Object.keys(new t);if("object"===_typeof(r)&&a.every((function(t){return t in r})))return fromArray([r.m11,r.m12,r.m13,r.m14,r.m21,r.m22,r.m23,r.m24,r.m31,r.m32,r.m33,r.m34,r.m41,r.m42,r.m43,r.m44]);throw TypeError('CSSMatrix: "'+r+'" is not a DOMMatrix / CSSMatrix / JSON compatible object.')}function fromString(r){if("string"!=typeof r)throw TypeError('CSSMatrix: "'+r+'" is not a string.');var a=String(r).replace(/\s/g,""),i=new t,o='CSSMatrix: invalid transform string "'+r+'"';a.split(")").filter((function(t){return t})).forEach((function(t){var r=t.split("("),a=r[0],l=r[1];if(!l)throw TypeError(o);var c=l.split(",").map((function(t){return t.includes("rad")?parseFloat(t)*(180/Math.PI):parseFloat(t)})),u=c[0],d=c[1],h=c[2],p=c[3],v=[u,d,h],y=[u,d,h,p];if("perspective"===a&&u&&[d,h].every((function(t){return void 0===t})))i.m34=-1/u;else if(a.includes("matrix")&&[6,16].includes(c.length)&&c.every((function(t){return!Number.isNaN(+t)}))){var g=c.map((function(t){return Math.abs(t)<1e-6?0:t}));i=i.multiply(fromArray(g))}else if("translate3d"===a&&v.every((function(t){return!Number.isNaN(+t)})))i=i.translate(u,d,h);else if("translate"===a&&u&&void 0===h)i=i.translate(u,d||0,0);else if("rotate3d"===a&&y.every((function(t){return!Number.isNaN(+t)}))&&p)i=i.rotateAxisAngle(u,d,h,p);else if("rotate"===a&&u&&[d,h].every((function(t){return void 0===t})))i=i.rotate(0,0,u);else if("scale3d"===a&&v.every((function(t){return!Number.isNaN(+t)}))&&v.some((function(t){return 1!==t})))i=i.scale(u,d,h);else if("scale"!==a||Number.isNaN(u)||1===u||void 0!==h)if("skew"===a&&u&&void 0===h){i=i.skewX(u);i=d?i.skewY(d):i}else{if(!(/[XYZ]/.test(a)&&u&&[d,h].every((function(t){return void 0===t}))&&["translate","rotate","scale","skew"].some((function(t){return a.includes(t)}))))throw TypeError(o);if(["skewX","skewY"].includes(a))i=i[a](u);else{var m=a.replace(/[XYZ]/,""),_=a.replace(m,""),b=["X","Y","Z"].indexOf(_),A=[0===b?u:0,1===b?u:0,2===b?u:0];i=i[m].apply(i,A)}}else{var S=Number.isNaN(+d)?u:d;i=i.scale(u,S,1)}}));return i}function Translate(r,a,i){var o=new t;o.m41=r;o.e=r;o.m42=a;o.f=a;o.m43=i;return o}function Rotate(r,a,i){var o=new t,l=Math.PI/180,c=r*l,u=a*l,d=i*l,h=Math.cos(c),p=-Math.sin(c),v=Math.cos(u),y=-Math.sin(u),g=Math.cos(d),m=-Math.sin(d),_=v*g,b=-v*m;o.m11=_;o.a=_;o.m12=b;o.b=b;o.m13=y;var A=p*y*g+h*m;o.m21=A;o.c=A;var S=h*g-p*y*m;o.m22=S;o.d=S;o.m23=-p*v;o.m31=p*m-h*y*g;o.m32=p*g+h*y*m;o.m33=h*v;return o}function RotateAxisAngle(r,a,i,o){var l=new t,c=o*(Math.PI/360),u=Math.sin(c),d=Math.cos(c),h=u*u,p=Math.sqrt(r*r+a*a+i*i),v=r,y=a,g=i;if(0===p){v=0;y=0;g=1}else{v/=p;y/=p;g/=p}var m=v*v,_=y*y,b=g*g,A=1-2*(_+b)*h;l.m11=A;l.a=A;var S=2*(v*y*h+g*u*d);l.m12=S;l.b=S;l.m13=2*(v*g*h-y*u*d);var k=2*(y*v*h-g*u*d);l.m21=k;l.c=k;var x=1-2*(b+m)*h;l.m22=x;l.d=x;l.m23=2*(y*g*h+v*u*d);l.m31=2*(g*v*h+y*u*d);l.m32=2*(g*y*h-v*u*d);l.m33=1-2*(m+_)*h;return l}function Scale(r,a,i){var o=new t;o.m11=r;o.a=r;o.m22=a;o.d=a;o.m33=i;return o}function SkewX(r){var a=new t,i=r*Math.PI/180,o=Math.tan(i);a.m21=o;a.c=o;return a}function SkewY(r){var a=new t,i=r*Math.PI/180,o=Math.tan(i);a.m12=o;a.b=o;return a}function Multiply(t,r){return fromArray([r.m11*t.m11+r.m12*t.m21+r.m13*t.m31+r.m14*t.m41,r.m11*t.m12+r.m12*t.m22+r.m13*t.m32+r.m14*t.m42,r.m11*t.m13+r.m12*t.m23+r.m13*t.m33+r.m14*t.m43,r.m11*t.m14+r.m12*t.m24+r.m13*t.m34+r.m14*t.m44,r.m21*t.m11+r.m22*t.m21+r.m23*t.m31+r.m24*t.m41,r.m21*t.m12+r.m22*t.m22+r.m23*t.m32+r.m24*t.m42,r.m21*t.m13+r.m22*t.m23+r.m23*t.m33+r.m24*t.m43,r.m21*t.m14+r.m22*t.m24+r.m23*t.m34+r.m24*t.m44,r.m31*t.m11+r.m32*t.m21+r.m33*t.m31+r.m34*t.m41,r.m31*t.m12+r.m32*t.m22+r.m33*t.m32+r.m34*t.m42,r.m31*t.m13+r.m32*t.m23+r.m33*t.m33+r.m34*t.m43,r.m31*t.m14+r.m32*t.m24+r.m33*t.m34+r.m34*t.m44,r.m41*t.m11+r.m42*t.m21+r.m43*t.m31+r.m44*t.m41,r.m41*t.m12+r.m42*t.m22+r.m43*t.m32+r.m44*t.m42,r.m41*t.m13+r.m42*t.m23+r.m43*t.m33+r.m44*t.m43,r.m41*t.m14+r.m42*t.m24+r.m43*t.m34+r.m44*t.m44])}var t=function CSSMatrix(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var a=this;a.a=1;a.b=0;a.c=0;a.d=1;a.e=0;a.f=0;a.m11=1;a.m12=0;a.m13=0;a.m14=0;a.m21=0;a.m22=1;a.m23=0;a.m24=0;a.m31=0;a.m32=0;a.m33=1;a.m34=0;a.m41=0;a.m42=0;a.m43=0;a.m44=1;if(t&&t.length){var i=[16,6].some((function(r){return r===t.length}))?t:t[0];return a.setMatrixValue(i)}return a},r={isIdentity:{configurable:!0},is2D:{configurable:!0}};r.isIdentity.set=function(t){this.isIdentity=t};r.isIdentity.get=function(){var t=this;return 1===t.m11&&0===t.m12&&0===t.m13&&0===t.m14&&0===t.m21&&1===t.m22&&0===t.m23&&0===t.m24&&0===t.m31&&0===t.m32&&1===t.m33&&0===t.m34&&0===t.m41&&0===t.m42&&0===t.m43&&1===t.m44};r.is2D.get=function(){var t=this;return 0===t.m31&&0===t.m32&&1===t.m33&&0===t.m34&&0===t.m43&&1===t.m44};r.is2D.set=function(t){this.is2D=t};t.prototype.setMatrixValue=function setMatrixValue(t){return[Array,Float64Array,Float32Array].some((function(r){return t instanceof r}))?fromArray(t):"string"==typeof t&&t.length&&"none"!==t?fromString(t):"object"===_typeof(t)?fromMatrix(t):this};t.prototype.toArray=function toArray(){var t=this,r=Math.pow(10,6);return(t.is2D?[t.a,t.b,t.c,t.d,t.e,t.f]:[t.m11,t.m12,t.m13,t.m14,t.m21,t.m22,t.m23,t.m24,t.m31,t.m32,t.m33,t.m34,t.m41,t.m42,t.m43,t.m44]).map((function(t){return Math.abs(t)<1e-6?0:(t*r>>0)/r}))};t.prototype.toString=function toString(){var t=this.toArray();return(this.is2D?"matrix":"matrix3d")+"("+t+")"};t.prototype.toJSON=function toJSON(){var t=this,r=t.is2D,a=t.isIdentity;return Object.assign({},t,{is2D:r,isIdentity:a})};t.prototype.multiply=function multiply(t){return Multiply(this,t)};t.prototype.translate=function translate(t,r,a){var i=r,o=a;void 0===o&&(o=0);void 0===i&&(i=0);return Multiply(this,Translate(t,i,o))};t.prototype.scale=function scale(t,r,a){var i=r,o=a;void 0===i&&(i=t);void 0===o&&(o=1);return Multiply(this,Scale(t,i,o))};t.prototype.rotate=function rotate(t,r,a){var i=t,o=r,l=a;void 0===o&&(o=0);if(void 0===l){l=i;i=0}return Multiply(this,Rotate(i,o,l))};t.prototype.rotateAxisAngle=function rotateAxisAngle(t,r,a,i){if([t,r,a,i].some((function(t){return Number.isNaN(t)})))throw new TypeError("CSSMatrix: expecting 4 values");return Multiply(this,RotateAxisAngle(t,r,a,i))};t.prototype.skewX=function skewX(t){return Multiply(this,SkewX(t))};t.prototype.skewY=function skewY(t){return Multiply(this,SkewY(t))};t.prototype.transformPoint=function transformPoint(t){var r=Translate(t.x,t.y,t.z);r.m44=t.w||1;return{x:(r=this.multiply(r)).m41,y:r.m42,z:r.m43,w:r.m44}};t.prototype.transform=function transform(t){var r=this,a=r.m11*t.x+r.m12*t.y+r.m13*t.z+r.m14*t.w,i=r.m21*t.x+r.m22*t.y+r.m23*t.z+r.m24*t.w,o=r.m31*t.x+r.m32*t.y+r.m33*t.z+r.m34*t.w,l=r.m41*t.x+r.m42*t.y+r.m43*t.z+r.m44*t.w;return{x:a/l,y:i/l,z:o/l,w:l}};Object.defineProperties(t.prototype,r);Object.assign(t,{Translate:Translate,Rotate:Rotate,RotateAxisAngle:RotateAxisAngle,Scale:Scale,SkewX:SkewX,SkewY:SkewY,Multiply:Multiply,fromArray:fromArray,fromMatrix:fromMatrix,fromString:fromString});Object.assign(t,{Version:"0.0.24"});return t},"object"===_typeof(r)?t.exports=l():void 0!==(o="function"==typeof(i=l)?i.call(r,a,r,t):i)&&(t.exports=o)},(t,r,a)=>{a(6);a(91);a(97);a(99);a(123);a(124);a(125);a(126);var i=a(128);t.exports=i.Promise},(t,r,a)=>{"use strict";var i=a(7),o=a(8),l=a(27),c=a(69),u=a(71),d=a(57),h=a(73),p=a(46),v=a(15),y=a(77),g=a(78),m=a(79),_=a(88),b=a(36),A=a(90),S=b("toStringTag"),k=o.Error,x=[].push,C=function AggregateError(t,r){var a,i=arguments.length>2?arguments[2]:void 0,o=l(P,this);if(u)a=u(new k,o?c(this):P);else{a=o?this:h(P);p(a,S,"Error")}void 0!==r&&p(a,"message",_(r));A&&p(a,"stack",y(a.stack,1));g(a,i);var d=[];m(t,x,{that:d});p(a,"errors",d);return a};u?u(C,k):d(C,k,{name:!0});var P=C.prototype=h(k.prototype,{constructor:v(1,C),message:v(1,""),name:v(1,"AggregateError")});i({global:!0},{AggregateError:C})},(t,r,a)=>{var i=a(8),o=a(9).f,l=a(46),c=a(50),u=a(40),d=a(57),h=a(68);t.exports=function(t,r){var a,p,v,y,g,m=t.target,_=t.global,b=t.stat;if(a=_?i:b?i[m]||u(m,{}):(i[m]||{}).prototype)for(p in r){y=r[p];v=t.noTargetGet?(g=o(a,p))&&g.value:a[p];if(!h(_?p:m+(b?".":"#")+p,t.forced)&&void 0!==v){if(typeof y==typeof v)continue;d(y,v)}(t.sham||v&&v.sham)&&l(y,"sham",!0);c(a,p,y,t)}}},t=>{var check=function(t){return t&&t.Math==Math&&t};t.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof global&&global)||function(){return this}()||Function("return this")()},(t,r,a)=>{var i=a(10),o=a(12),l=a(14),c=a(15),u=a(16),d=a(21),h=a(41),p=a(44),v=Object.getOwnPropertyDescriptor;r.f=i?v:function getOwnPropertyDescriptor(t,r){t=u(t);r=d(r);if(p)try{return v(t,r)}catch(t){}if(h(t,r))return c(!o(l.f,t,r),t[r])}},(t,r,a)=>{var i=a(11);t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},(t,r,a)=>{var i=a(13),o=Function.prototype.call;t.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},(t,r,a)=>{var i=a(11);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},(t,r)=>{"use strict";var a={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!a.call({1:2},1);r.f=o?function propertyIsEnumerable(t){var r=i(this,t);return!!r&&r.enumerable}:a},t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},(t,r,a)=>{var i=a(17),o=a(20);t.exports=function(t){return i(o(t))}},(t,r,a)=>{var i=a(8),o=a(18),l=a(11),c=a(19),u=i.Object,d=o("".split);t.exports=l((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==c(t)?d(t,""):u(t)}:u},(t,r,a)=>{var i=a(13),o=Function.prototype,l=o.bind,c=o.call,u=i&&l.bind(c,c);t.exports=i?function(t){return t&&u(t)}:function(t){return t&&function(){return c.apply(t,arguments)}}},(t,r,a)=>{var i=a(18),o=i({}.toString),l=i("".slice);t.exports=function(t){return l(o(t),8,-1)}},(t,r,a)=>{var i=a(8).TypeError;t.exports=function(t){if(null==t)throw i("Can't call method on "+t);return t}},(t,r,a)=>{var i=a(22),o=a(25);t.exports=function(t){var r=i(t,"string");return o(r)?r:r+""}},(t,r,a)=>{var i=a(8),o=a(12),l=a(23),c=a(25),u=a(32),d=a(35),h=a(36),p=i.TypeError,v=h("toPrimitive");t.exports=function(t,r){if(!l(t)||c(t))return t;var a,i=u(t,v);if(i){void 0===r&&(r="default");a=o(i,t,r);if(!l(a)||c(a))return a;throw p("Can't convert object to primitive value")}void 0===r&&(r="number");return d(t,r)}},(t,r,a)=>{var i=a(24);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},t=>{t.exports=function(t){return"function"==typeof t}},(t,r,a)=>{var i=a(8),o=a(26),l=a(24),c=a(27),u=a(28),d=i.Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var r=o("Symbol");return l(r)&&c(r.prototype,d(t))}},(t,r,a)=>{var i=a(8),o=a(24),aFunction=function(t){return o(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?aFunction(i[t]):i[t]&&i[t][r]}},(t,r,a)=>{var i=a(18);t.exports=i({}.isPrototypeOf)},(t,r,a)=>{var i=a(29);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(t,r,a)=>{var i=a(30),o=a(11);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},(t,r,a)=>{var i,o,l=a(8),c=a(31),u=l.process,d=l.Deno,h=u&&u.versions||d&&d.version,p=h&&h.v8;p&&(o=(i=p.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1]));!o&&c&&(!(i=c.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=c.match(/Chrome\/(\d+)/))&&(o=+i[1]);t.exports=o},(t,r,a)=>{var i=a(26);t.exports=i("navigator","userAgent")||""},(t,r,a)=>{var i=a(33);t.exports=function(t,r){var a=t[r];return null==a?void 0:i(a)}},(t,r,a)=>{var i=a(8),o=a(24),l=a(34),c=i.TypeError;t.exports=function(t){if(o(t))return t;throw c(l(t)+" is not a function")}},(t,r,a)=>{var i=a(8).String;t.exports=function(t){try{return i(t)}catch(t){return"Object"}}},(t,r,a)=>{var i=a(8),o=a(12),l=a(24),c=a(23),u=i.TypeError;t.exports=function(t,r){var a,i;if("string"===r&&l(a=t.toString)&&!c(i=o(a,t)))return i;if(l(a=t.valueOf)&&!c(i=o(a,t)))return i;if("string"!==r&&l(a=t.toString)&&!c(i=o(a,t)))return i;throw u("Can't convert object to primitive value")}},(t,r,a)=>{var i=a(8),o=a(37),l=a(41),c=a(43),u=a(29),d=a(28),h=o("wks"),p=i.Symbol,v=p&&p.for,y=d?p:p&&p.withoutSetter||c;t.exports=function(t){if(!l(h,t)||!u&&"string"!=typeof h[t]){var r="Symbol."+t;u&&l(p,t)?h[t]=p[t]:h[t]=d&&v?v(r):y(r)}return h[t]}},(t,r,a)=>{var i=a(38),o=a(39);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.21.1",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},t=>{t.exports=!1},(t,r,a)=>{var i=a(8),o=a(40),l="__core-js_shared__",c=i[l]||o(l,{});t.exports=c},(t,r,a)=>{var i=a(8),o=Object.defineProperty;t.exports=function(t,r){try{o(i,t,{value:r,configurable:!0,writable:!0})}catch(a){i[t]=r}return r}},(t,r,a)=>{var i=a(18),o=a(42),l=i({}.hasOwnProperty);t.exports=Object.hasOwn||function hasOwn(t,r){return l(o(t),r)}},(t,r,a)=>{var i=a(8),o=a(20),l=i.Object;t.exports=function(t){return l(o(t))}},(t,r,a)=>{var i=a(18),o=0,l=Math.random(),c=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+c(++o+l,36)}},(t,r,a)=>{var i=a(10),o=a(11),l=a(45);t.exports=!i&&!o((function(){return 7!=Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a}))},(t,r,a)=>{var i=a(8),o=a(23),l=i.document,c=o(l)&&o(l.createElement);t.exports=function(t){return c?l.createElement(t):{}}},(t,r,a)=>{var i=a(10),o=a(47),l=a(15);t.exports=i?function(t,r,a){return o.f(t,r,l(1,a))}:function(t,r,a){t[r]=a;return t}},(t,r,a)=>{var i=a(8),o=a(10),l=a(44),c=a(48),u=a(49),d=a(21),h=i.TypeError,p=Object.defineProperty,v=Object.getOwnPropertyDescriptor,y="enumerable",g="configurable",m="writable";r.f=o?c?function defineProperty(t,r,a){u(t);r=d(r);u(a);if("function"==typeof t&&"prototype"===r&&"value"in a&&m in a&&!a.writable){var i=v(t,r);if(i&&i.writable){t[r]=a.value;a={configurable:g in a?a.configurable:i.configurable,enumerable:y in a?a.enumerable:i.enumerable,writable:!1}}}return p(t,r,a)}:p:function defineProperty(t,r,a){u(t);r=d(r);u(a);if(l)try{return p(t,r,a)}catch(t){}if("get"in a||"set"in a)throw h("Accessors not supported");"value"in a&&(t[r]=a.value);return t}},(t,r,a)=>{var i=a(10),o=a(11);t.exports=i&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},(t,r,a)=>{var i=a(8),o=a(23),l=i.String,c=i.TypeError;t.exports=function(t){if(o(t))return t;throw c(l(t)+" is not an object")}},(t,r,a)=>{var i=a(8),o=a(24),l=a(41),c=a(46),u=a(40),d=a(51),h=a(52),p=a(56).CONFIGURABLE,v=h.get,y=h.enforce,g=String(String).split("String");(t.exports=function(t,r,a,d){var h,v=!!d&&!!d.unsafe,m=!!d&&!!d.enumerable,_=!!d&&!!d.noTargetGet,b=d&&void 0!==d.name?d.name:r;if(o(a)){"Symbol("===String(b).slice(0,7)&&(b="["+String(b).replace(/^Symbol\(([^)]*)\)/,"$1")+"]");(!l(a,"name")||p&&a.name!==b)&&c(a,"name",b);(h=y(a)).source||(h.source=g.join("string"==typeof b?b:""))}if(t!==i){v?!_&&t[r]&&(m=!0):delete t[r];m?t[r]=a:c(t,r,a)}else m?t[r]=a:u(r,a)})(Function.prototype,"toString",(function toString(){return o(this)&&v(this).source||d(this)}))},(t,r,a)=>{var i=a(18),o=a(24),l=a(39),c=i(Function.toString);o(l.inspectSource)||(l.inspectSource=function(t){return c(t)});t.exports=l.inspectSource},(t,r,a)=>{var i,o,l,c=a(53),u=a(8),d=a(18),h=a(23),p=a(46),v=a(41),y=a(39),g=a(54),m=a(55),_="Object already initialized",b=u.TypeError,A=u.WeakMap;if(c||y.state){var S=y.state||(y.state=new A),k=d(S.get),x=d(S.has),C=d(S.set);i=function(t,r){if(x(S,t))throw new b(_);r.facade=t;C(S,t,r);return r};o=function(t){return k(S,t)||{}};l=function(t){return x(S,t)}}else{var P=g("state");m[P]=!0;i=function(t,r){if(v(t,P))throw new b(_);r.facade=t;p(t,P,r);return r};o=function(t){return v(t,P)?t[P]:{}};l=function(t){return v(t,P)}}t.exports={set:i,get:o,has:l,enforce:function(t){return l(t)?o(t):i(t,{})},getterFor:function(t){return function(r){var a;if(!h(r)||(a=o(r)).type!==t)throw b("Incompatible receiver, "+t+" required");return a}}}},(t,r,a)=>{var i=a(8),o=a(24),l=a(51),c=i.WeakMap;t.exports=o(c)&&/native code/.test(l(c))},(t,r,a)=>{var i=a(37),o=a(43),l=i("keys");t.exports=function(t){return l[t]||(l[t]=o(t))}},t=>{t.exports={}},(t,r,a)=>{var i=a(10),o=a(41),l=Function.prototype,c=i&&Object.getOwnPropertyDescriptor,u=o(l,"name"),d=u&&"something"===function something(){}.name,h=u&&(!i||i&&c(l,"name").configurable);t.exports={EXISTS:u,PROPER:d,CONFIGURABLE:h}},(t,r,a)=>{var i=a(41),o=a(58),l=a(9),c=a(47);t.exports=function(t,r,a){for(var u=o(r),d=c.f,h=l.f,p=0;p{var i=a(26),o=a(18),l=a(59),c=a(67),u=a(49),d=o([].concat);t.exports=i("Reflect","ownKeys")||function ownKeys(t){var r=l.f(u(t)),a=c.f;return a?d(r,a(t)):r}},(t,r,a)=>{var i=a(60),o=a(66).concat("length","prototype");r.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return i(t,o)}},(t,r,a)=>{var i=a(18),o=a(41),l=a(16),c=a(61).indexOf,u=a(55),d=i([].push);t.exports=function(t,r){var a,i=l(t),h=0,p=[];for(a in i)!o(u,a)&&o(i,a)&&d(p,a);for(;r.length>h;)o(i,a=r[h++])&&(~c(p,a)||d(p,a));return p}},(t,r,a)=>{var i=a(16),o=a(62),l=a(64),createMethod=function(t){return function(r,a,c){var u,d=i(r),h=l(d),p=o(c,h);if(t&&a!=a){for(;h>p;)if((u=d[p++])!=u)return!0}else for(;h>p;p++)if((t||p in d)&&d[p]===a)return t||p||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(t,r,a)=>{var i=a(63),o=Math.max,l=Math.min;t.exports=function(t,r){var a=i(t);return a<0?o(a+r,0):l(a,r)}},t=>{var r=Math.ceil,a=Math.floor;t.exports=function(t){var i=+t;return i!=i||0===i?0:(i>0?a:r)(i)}},(t,r,a)=>{var i=a(65);t.exports=function(t){return i(t.length)}},(t,r,a)=>{var i=a(63),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(t,r)=>{r.f=Object.getOwnPropertySymbols},(t,r,a)=>{var i=a(11),o=a(24),l=/#|\.prototype\./,isForced=function(t,r){var a=u[c(t)];return a==h||a!=d&&(o(r)?i(r):!!r)},c=isForced.normalize=function(t){return String(t).replace(l,".").toLowerCase()},u=isForced.data={},d=isForced.NATIVE="N",h=isForced.POLYFILL="P";t.exports=isForced},(t,r,a)=>{var i=a(8),o=a(41),l=a(24),c=a(42),u=a(54),d=a(70),h=u("IE_PROTO"),p=i.Object,v=p.prototype;t.exports=d?p.getPrototypeOf:function(t){var r=c(t);if(o(r,h))return r[h];var a=r.constructor;return l(a)&&r instanceof a?a.prototype:r instanceof p?v:null}},(t,r,a)=>{var i=a(11);t.exports=!i((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},(t,r,a)=>{var i=a(18),o=a(49),l=a(72);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,a={};try{(t=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(a,[]);r=a instanceof Array}catch(t){}return function setPrototypeOf(a,i){o(a);l(i);r?t(a,i):a.__proto__=i;return a}}():void 0)},(t,r,a)=>{var i=a(8),o=a(24),l=i.String,c=i.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw c("Can't set "+l(t)+" as a prototype")}},(t,r,a)=>{var i,o=a(49),l=a(74),c=a(66),u=a(55),d=a(76),h=a(45),p=a(54),v=p("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"