UNPKG

file-previewer-vue

Version:
22 lines 778 kB
(("undefined"!==typeof self?self:this)["webpackChunkfile_previewer"]=("undefined"!==typeof self?self:this)["webpackChunkfile_previewer"]||[]).push([[620],{114:function(e,t,r){var a=r(45)["hp"]; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2018 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(t,r){e.exports=r()})(0,(function(){return function(e){var t={};function r(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(a,i,function(t){return e[t]}.bind(null,i));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";var a=r(1);t.WorkerMessageHandler=a.WorkerMessageHandler},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerMessageHandler=t.WorkerTask=void 0;var a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var r=[],a=!0,i=!1,n=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done);a=!0)if(r.push(o.value),t&&r.length===t)break}catch(c){i=!0,n=c}finally{try{!a&&s["return"]&&s["return"]()}finally{if(i)throw n}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=r(2),o=r(130),s=r(5),c=h(s),l=r(172),u=r(138);function h(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(e){this.name=e,this.terminated=!1,this._capability=(0,n.createPromiseCapability)()}return e.prototype={get finished(){return this._capability.promise},finish:function(){this._capability.resolve()},terminate:function(){this.terminated=!0},ensureNotTerminated:function(){if(this.terminated)throw new Error("Worker task was terminated")}},e}(),d=function(){function e(e){this._msgHandler=e,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}function t(e){var t=this;this._msgHandler=e,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;var r=this._msgHandler.sendWithStream("GetReader");this._reader=r.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((function(e){t._isStreamingSupported=e.isStreamingSupported,t._isRangeSupported=e.isRangeSupported,t._contentLength=e.contentLength}))}function r(e,t,r){this._msgHandler=r,this.onProgress=null;var a=this._msgHandler.sendWithStream("GetRangeReader",{begin:e,end:t});this._reader=a.getReader()}return e.prototype={getFullReader:function(){return(0,n.assert)(!this._fullRequestReader),this._fullRequestReader=new t(this._msgHandler),this._fullRequestReader},getRangeReader:function(e,t){var a=new r(e,t,this._msgHandler);return this._rangeRequestReaders.push(a),a},cancelAllRequests:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}},t.prototype={get headersReady(){return this._headersReady},get contentLength(){return this._contentLength},get isStreamingSupported(){return this._isStreamingSupported},get isRangeSupported(){return this._isRangeSupported},read:function(){return this._reader.read().then((function(e){var t=e.value,r=e.done;return r?{value:void 0,done:!0}:{value:t.buffer,done:!1}}))},cancel:function(e){this._reader.cancel(e)}},r.prototype={get isStreamingSupported(){return!1},read:function(){return this._reader.read().then((function(e){var t=e.value,r=e.done;return r?{value:void 0,done:!0}:{value:t.buffer,done:!1}}))},cancel:function(e){this._reader.cancel(e)}},e}(),g={setup:function(e,t){var r=!1;e.on("test",(function(t){if(!r)if(r=!0,t instanceof Uint8Array){var a=255===t[0];e.postMessageTransfers=a;var i=new XMLHttpRequest,n="response"in i;try{i.responseType}catch(o){n=!1}n?e.send("test",{supportTypedArray:!0,supportTransfers:a}):e.send("test",!1)}else e.send("test",!1)})),e.on("configure",(function(e){(0,n.setVerbosityLevel)(e.verbosity)})),e.on("GetDocRequest",(function(e){return g.createDocumentHandler(e,t)}))},createDocumentHandler:function(e,t){var r,s=!1,c=null,h=[],g=e.apiVersion,m="2.0.943";if(g!==m)throw new Error('The API version "'+g+'" does not match the Worker version "'+m+'".');var p=e.docId,v=e.docBaseUrl,b=e.docId+"_worker",y=new l.MessageHandler(b,p,t);function w(){if(s)throw new Error("Worker was terminated")}function k(e){h.push(e)}function S(e){e.finish();var t=h.indexOf(e);h.splice(t,1)}function C(e){var t=(0,n.createPromiseCapability)(),a=function(){Promise.all([r.ensureDoc("numPages"),r.ensureDoc("fingerprint")]).then((function(e){var r=i(e,2),a=r[0],n=r[1];t.resolve({numPages:a,fingerprint:n})}),o)},o=function(e){t.reject(e)};return r.ensureDoc("checkHeader",[]).then((function(){r.ensureDoc("parseStartXRef",[]).then((function(){r.ensureDoc("parse",[e]).then(a,o)}),o)}),o),t.promise}function x(e,t){var r,a=(0,n.createPromiseCapability)(),i=e.source;if(i.data){try{r=new o.LocalPdfManager(p,i.data,i.password,t,v),a.resolve(r)}catch(m){a.reject(m)}return a.promise}var s,l=[];try{s=new d(y)}catch(m){return a.reject(m),a.promise}var u=s.getFullReader();u.headersReady.then((function(){if(u.isRangeSupported){var e=i.disableAutoFetch||u.isStreamingSupported;r=new o.NetworkPdfManager(p,s,{msgHandler:y,url:i.url,password:i.password,length:u.contentLength,disableAutoFetch:e,rangeChunkSize:i.rangeChunkSize},t,v);for(var n=0;n<l.length;n++)r.sendProgressiveData(l[n]);l=[],a.resolve(r),c=null}})).catch((function(e){a.reject(e),c=null}));var h=0,f=function(){var e=(0,n.arraysToBytes)(l);i.length&&e.length!==i.length&&(0,n.warn)("reported HTTP length is different from actual");try{r=new o.LocalPdfManager(p,e,i.password,t,v),a.resolve(r)}catch(m){a.reject(m)}l=[]},g=new Promise((function(e,t){var a=function e(a){try{if(w(),a.done)return r||f(),void(c=null);var i=a.value;h+=(0,n.arrayByteLength)(i),u.isStreamingSupported||y.send("DocProgress",{loaded:h,total:Math.max(h,u.contentLength||0)}),r?r.sendProgressiveData(i):l.push(i),u.read().then(e,t)}catch(o){t(o)}};u.read().then(a,t)}));return g.catch((function(e){a.reject(e),c=null})),c=function(){s.cancelAllRequests("abort")},a.promise}function _(e){function t(e){w(),y.send("GetDoc",{pdfInfo:e})}function a(e){if(w(),e instanceof n.PasswordException){var t=new f("PasswordException: response "+e.code);k(t),y.sendWithPromise("PasswordRequest",e).then((function(e){S(t),r.updatePassword(e.password),i()})).catch(function(e){S(t),y.send("PasswordException",e)}.bind(null,e))}else e instanceof n.InvalidPDFException?y.send("InvalidPDF",e):e instanceof n.MissingPDFException?y.send("MissingPDF",e):e instanceof n.UnexpectedResponseException?y.send("UnexpectedResponse",e):y.send("UnknownError",new n.UnknownErrorException(e.message,e.toString()))}function i(){w(),C(!1).then(t,(function(e){w(),e instanceof n.XRefParseException?(r.requestLoadedStream(),r.onLoadedStream().then((function(){w(),C(!0).then(t,a)}))):a(e)}),a)}w();var o={forceDataSchema:e.disableCreateObjectURL,maxImageSize:e.maxImageSize,disableFontFace:e.disableFontFace,nativeImageDecoderSupport:e.nativeImageDecoderSupport,ignoreErrors:e.ignoreErrors,isEvalSupported:e.isEvalSupported};x(e,o).then((function(e){if(s)throw e.terminate(),new Error("Worker was terminated");r=e,r.onLoadedStream().then((function(e){y.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(i,a)}return y.postMessageTransfers=e.postMessageTransfers,y.on("GetPage",(function(e){return r.getPage(e.pageIndex).then((function(e){return Promise.all([r.ensure(e,"rotate"),r.ensure(e,"ref"),r.ensure(e,"userUnit"),r.ensure(e,"view")]).then((function(e){var t=i(e,4),r=t[0],a=t[1],n=t[2],o=t[3];return{rotate:r,ref:a,userUnit:n,view:o}}))}))})),y.on("GetPageIndex",(function(e){var t=new u.Ref(e.ref.num,e.ref.gen),a=r.pdfDocument.catalog;return a.getPageIndex(t)})),y.on("GetDestinations",(function(e){return r.ensureCatalog("destinations")})),y.on("GetDestination",(function(e){return r.ensureCatalog("getDestination",[e.id])})),y.on("GetPageLabels",(function(e){return r.ensureCatalog("pageLabels")})),y.on("GetPageMode",(function(e){return r.ensureCatalog("pageMode")})),y.on("GetAttachments",(function(e){return r.ensureCatalog("attachments")})),y.on("GetJavaScript",(function(e){return r.ensureCatalog("javaScript")})),y.on("GetOutline",(function(e){return r.ensureCatalog("documentOutline")})),y.on("GetPermissions",(function(e){return r.ensureCatalog("permissions")})),y.on("GetMetadata",(function(e){return Promise.all([r.ensureDoc("documentInfo"),r.ensureCatalog("metadata")])})),y.on("GetData",(function(e){return r.requestLoadedStream(),r.onLoadedStream().then((function(e){return e.bytes}))})),y.on("GetStats",(function(e){return r.pdfDocument.xref.stats})),y.on("GetAnnotations",(function(e){var t=e.pageIndex,a=e.intent;return r.getPage(t).then((function(e){return e.getAnnotationsData(a)}))})),y.on("RenderPageRequest",(function(e){var t=e.pageIndex;r.getPage(t).then((function(r){var i=new f("RenderPageRequest: page "+t);k(i);var o=t+1,s=Date.now();r.getOperatorList({handler:y,task:i,intent:e.intent,renderInteractiveForms:e.renderInteractiveForms}).then((function(e){S(i),(0,n.info)("page="+o+" - getOperatorList: time="+(Date.now()-s)+"ms, len="+e.totalLength)}),(function(t){if(S(i),!i.terminated){y.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.unknown});var r,s="worker.js: while trying to getPage() and getOperatorList()";r="string"===typeof t?{message:t,stack:s}:"object"===("undefined"===typeof t?"undefined":a(t))?{message:t.message||t.toString(),stack:t.stack||s}:{message:"Unknown exception type: "+("undefined"===typeof t?"undefined":a(t)),stack:s},y.send("PageError",{pageNum:o,error:r,intent:e.intent})}}))}))}),this),y.on("GetTextContent",(function(e,t){var a=e.pageIndex;t.onPull=function(e){},t.onCancel=function(e){},r.getPage(a).then((function(r){var i=new f("GetTextContent: page "+a);k(i);var o=a+1,s=Date.now();r.extractTextContent({handler:y,task:i,sink:t,normalizeWhitespace:e.normalizeWhitespace,combineTextItems:e.combineTextItems}).then((function(){S(i),(0,n.info)("text indexing: page="+o+" - time="+(Date.now()-s)+"ms"),t.close()}),(function(e){if(S(i),!i.terminated)throw t.error(e),e}))}))})),y.on("Cleanup",(function(e){return r.cleanup()})),y.on("Terminate",(function(e){s=!0,r&&(r.terminate(),r=null),c&&c();var t=[];return h.forEach((function(e){t.push(e.finished),e.terminate()})),Promise.all(t).then((function(){y.destroy(),y=null}))})),y.on("Ready",(function(t){_(e),e=null})),b},initializeFromPort:function(e){var t=new l.MessageHandler("worker","main",e);g.setup(t,e),t.send("ready",null)}};function m(e){return"function"===typeof e.postMessage&&"onmessage"in e}"undefined"===typeof window&&!(0,c.default)()&&"undefined"!==typeof self&&m(self)&&g.initializeFromPort(self),t.WorkerTask=f,t.WorkerMessageHandler=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unreachable=t.warn=t.utf8StringToString=t.stringToUTF8String=t.stringToPDFString=t.stringToBytes=t.string32=t.shadow=t.setVerbosityLevel=t.URL=t.ReadableStream=t.removeNullCharacters=t.readUint32=t.readUint16=t.readInt8=t.log2=t.isEvalSupported=t.isLittleEndian=t.createValidAbsoluteUrl=t.isSameOrigin=t.isSpace=t.isString=t.isNum=t.isEmptyObj=t.isBool=t.isArrayBuffer=t.info=t.getVerbosityLevel=t.getLookupTableFactory=t.getInheritableProperty=t.deprecated=t.createObjectURL=t.createPromiseCapability=t.bytesToString=t.assert=t.arraysToBytes=t.arrayByteLength=t.FormatError=t.XRefParseException=t.toRomanNumerals=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.NativeImageDecoding=t.MissingPDFException=t.MissingDataException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=void 0;var a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r(3);var i=r(126),n=r(128),o=[1,0,0,1,0,0],s=[.001,0,0,.001,0,0],c={NONE:"none",DECODE:"decode",DISPLAY:"display"},l={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},u={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},h={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},f={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},d={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},g={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},m={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},p={UNKNOWN:0,FLATE:1,LZW:2,DCT:3,JPX:4,JBIG:5,A85:6,AHX:7,CCF:8,RL:9},v={UNKNOWN:0,TYPE1:1,TYPE1C:2,CIDFONTTYPE0:3,CIDFONTTYPE0C:4,TRUETYPE:5,CIDFONTTYPE2:6,TYPE3:7,OPENTYPE:8,TYPE0:9,MMTYPE1:10},b={ERRORS:0,WARNINGS:1,INFOS:5},y={NONE:0,BINARY:1,STREAM:2},w={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},k={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"},S={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},C=b.WARNINGS;function x(e){Number.isInteger(e)&&(C=e)}function _(){return C}function A(e){C>=b.INFOS&&console.log("Info: "+e)}function P(e){C>=b.WARNINGS&&console.log("Warning: "+e)}function I(e){console.log("Deprecated API usage: "+e)}function O(e){throw new Error(e)}function T(e,t){e||O(t)}function E(e,t){try{var r=new n.URL(e);if(!r.origin||"null"===r.origin)return!1}catch(i){return!1}var a=new n.URL(t,r);return r.origin===a.origin}function F(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function R(e,t){if(!e)return null;try{var r=t?new n.URL(e,t):new n.URL(e);if(F(r))return r}catch(a){}return null}function B(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}function D(e){var t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}}var M=function(){function e(e,t){this.name="PasswordException",this.message=e,this.code=t}return e.prototype=new Error,e.constructor=e,e}(),L=function(){function e(e,t){this.name="UnknownErrorException",this.message=e,this.details=t}return e.prototype=new Error,e.constructor=e,e}(),N=function(){function e(e){this.name="InvalidPDFException",this.message=e}return e.prototype=new Error,e.constructor=e,e}(),U=function(){function e(e){this.name="MissingPDFException",this.message=e}return e.prototype=new Error,e.constructor=e,e}(),q=function(){function e(e,t){this.name="UnexpectedResponseException",this.message=e,this.status=t}return e.prototype=new Error,e.constructor=e,e}(),j=function(){function e(e,t){this.begin=e,this.end=t,this.message="Missing data ["+e+", "+t+")"}return e.prototype=new Error,e.prototype.name="MissingDataException",e.constructor=e,e}(),z=function(){function e(e){this.message=e}return e.prototype=new Error,e.prototype.name="XRefParseException",e.constructor=e,e}(),H=function(){function e(e){this.message=e}return e.prototype=new Error,e.prototype.name="FormatError",e.constructor=e,e}(),G=function(){function e(e){this.name="AbortException",this.message=e}return e.prototype=new Error,e.constructor=e,e}(),W=/\x00/g;function X(e){return"string"!==typeof e?(P("The argument for removeNullCharacters must be a string."),e):e.replace(W,"")}function V(e){T(null!==e&&"object"===("undefined"===typeof e?"undefined":a(e))&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length,r=8192;if(t<r)return String.fromCharCode.apply(null,e);for(var i=[],n=0;n<t;n+=r){var o=Math.min(n+r,t),s=e.subarray(n,o);i.push(String.fromCharCode.apply(null,s))}return i.join("")}function K(e){T("string"===typeof e,"Invalid argument for stringToBytes");for(var t=e.length,r=new Uint8Array(t),a=0;a<t;++a)r[a]=255&e.charCodeAt(a);return r}function Y(e){return void 0!==e.length?e.length:(T(void 0!==e.byteLength),e.byteLength)}function J(e){if(1===e.length&&e[0]instanceof Uint8Array)return e[0];var t,r,a,i=0,n=e.length;for(t=0;t<n;t++)r=e[t],a=Y(r),i+=a;var o=0,s=new Uint8Array(i);for(t=0;t<n;t++)r=e[t],r instanceof Uint8Array||(r="string"===typeof r?K(r):new Uint8Array(r)),a=r.byteLength,s.set(r,o),o+=a;return s}function Z(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function Q(e){return e<=0?0:Math.ceil(Math.log2(e))}function $(e,t){return e[t]<<24>>24}function ee(e,t){return e[t]<<8|e[t+1]}function te(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function re(){var e=new Uint8Array(4);e[0]=1;var t=new Uint32Array(e.buffer,0,1);return 1===t[0]}function ae(){try{return new Function(""),!0}catch(e){return!1}}function ie(e){var t=e.dict,r=e.key,a=e.getArray,i=void 0!==a&&a,n=e.stopWhenFound,o=void 0===n||n,s=100,c=0,l=void 0;while(t){var u=i?t.getArray(r):t.get(r);if(void 0!==u){if(o)return u;l||(l=[]),l.push(u)}if(++c>s){P('getInheritableProperty: maximum loop count exceeded for "'+r+'"');break}t=t.get("Parent")}return l}var ne=function(){function e(){}var t=["rgb(",0,",",0,",",0,")"];return e.makeCssRgb=function(e,r,a){return t[1]=e,t[3]=r,t[5]=a,t.join("")},e.transform=function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]},e.applyTransform=function(e,t){var r=e[0]*t[0]+e[1]*t[2]+t[4],a=e[0]*t[1]+e[1]*t[3]+t[5];return[r,a]},e.applyInverseTransform=function(e,t){var r=t[0]*t[3]-t[1]*t[2],a=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,i=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r;return[a,i]},e.getAxialAlignedBoundingBox=function(t,r){var a=e.applyTransform(t,r),i=e.applyTransform(t.slice(2,4),r),n=e.applyTransform([t[0],t[3]],r),o=e.applyTransform([t[2],t[1]],r);return[Math.min(a[0],i[0],n[0],o[0]),Math.min(a[1],i[1],n[1],o[1]),Math.max(a[0],i[0],n[0],o[0]),Math.max(a[1],i[1],n[1],o[1])]},e.inverseTransform=function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]},e.apply3dTransform=function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]},e.singularValueDecompose2dScale=function(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],a=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],n=e[2]*t[1]+e[3]*t[3],o=(r+n)/2,s=Math.sqrt((r+n)*(r+n)-4*(r*n-i*a))/2,c=o+s||1,l=o-s||1;return[Math.sqrt(c),Math.sqrt(l)]},e.normalizeRect=function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t},e.intersect=function(t,r){function a(e,t){return e-t}var i=[t[0],t[2],r[0],r[2]].sort(a),n=[t[1],t[3],r[1],r[3]].sort(a),o=[];return t=e.normalizeRect(t),r=e.normalizeRect(r),(i[0]===t[0]&&i[1]===r[0]||i[0]===r[0]&&i[1]===t[0])&&(o[0]=i[1],o[2]=i[2],(n[0]===t[1]&&n[1]===r[1]||n[0]===r[1]&&n[1]===t[1])&&(o[1]=n[1],o[3]=n[2],o))},e}(),oe=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function se(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];T(Number.isInteger(e)&&e>0,"The number should be a positive integer.");var r=void 0,a=[];while(e>=1e3)e-=1e3,a.push("M");r=e/100|0,e%=100,a.push(oe[r]),r=e/10|0,e%=10,a.push(oe[10+r]),a.push(oe[20+e]);var i=a.join("");return t?i.toLowerCase():i}var ce=[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 le(e){var t,r=e.length,a=[];if("þ"===e[0]&&"ÿ"===e[1])for(t=2;t<r;t+=2)a.push(String.fromCharCode(e.charCodeAt(t)<<8|e.charCodeAt(t+1)));else for(t=0;t<r;++t){var i=ce[e.charCodeAt(t)];a.push(i?String.fromCharCode(i):e.charAt(t))}return a.join("")}function ue(e){return decodeURIComponent(escape(e))}function he(e){return unescape(encodeURIComponent(e))}function fe(e){for(var t in e)return!1;return!0}function de(e){return"boolean"===typeof e}function ge(e){return"number"===typeof e}function me(e){return"string"===typeof e}function pe(e){return"object"===("undefined"===typeof e?"undefined":a(e))&&null!==e&&void 0!==e.byteLength}function ve(e){return 32===e||9===e||13===e||10===e}function be(){var e={};return e.promise=new Promise((function(t,r){e.resolve=t,e.reject=r})),e}var ye=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!a&&n.URL.createObjectURL){var i=new Blob([t],{type:r});return n.URL.createObjectURL(i)}for(var o="data:"+r+";base64,",s=0,c=t.length;s<c;s+=3){var l=255&t[s],u=255&t[s+1],h=255&t[s+2],f=l>>2,d=(3&l)<<4|u>>4,g=s+1<c?(15&u)<<2|h>>6:64,m=s+2<c?63&h:64;o+=e[f]+e[d]+e[g]+e[m]}return o}}();t.FONT_IDENTITY_MATRIX=s,t.IDENTITY_MATRIX=o,t.OPS=w,t.VerbosityLevel=b,t.UNSUPPORTED_FEATURES=k,t.AnnotationBorderStyleType=m,t.AnnotationFieldFlag=g,t.AnnotationFlag=d,t.AnnotationType=f,t.FontType=v,t.ImageKind=h,t.CMapCompressionType=y,t.AbortException=G,t.InvalidPDFException=N,t.MissingDataException=j,t.MissingPDFException=U,t.NativeImageDecoding=c,t.PasswordException=M,t.PasswordResponses=S,t.PermissionFlag=l,t.StreamType=p,t.TextRenderingMode=u,t.UnexpectedResponseException=q,t.UnknownErrorException=L,t.Util=ne,t.toRomanNumerals=se,t.XRefParseException=z,t.FormatError=H,t.arrayByteLength=Y,t.arraysToBytes=J,t.assert=T,t.bytesToString=V,t.createPromiseCapability=be,t.createObjectURL=ye,t.deprecated=I,t.getInheritableProperty=ie,t.getLookupTableFactory=D,t.getVerbosityLevel=_,t.info=A,t.isArrayBuffer=pe,t.isBool=de,t.isEmptyObj=fe,t.isNum=ge,t.isString=me,t.isSpace=ve,t.isSameOrigin=E,t.createValidAbsoluteUrl=R,t.isLittleEndian=re,t.isEvalSupported=ae,t.log2=Q,t.readInt8=$,t.readUint16=ee,t.readUint32=te,t.removeNullCharacters=X,t.ReadableStream=i.ReadableStream,t.URL=n.URL,t.setVerbosityLevel=x,t.shadow=B,t.string32=Z,t.stringToBytes=K,t.stringToPDFString=le,t.stringToUTF8String=ue,t.utf8StringToString=he,t.warn=P,t.unreachable=O},function(e,t,r){"use strict";var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=r(4);if(!n._pdfjsCompatibilityChecked){n._pdfjsCompatibilityChecked=!0;var o=r(5),s="object"===("undefined"===typeof window?"undefined":i(window))&&"object"===("undefined"===typeof document?"undefined":i(document));(function(){!n.btoa&&o()&&(n.btoa=function(e){return a.from(e,"binary").toString("base64")})})(),function(){!n.atob&&o()&&(n.atob=function(e){return a.from(e,"base64").toString("binary")})}(),function(){s&&("currentScript"in document||Object.defineProperty(document,"currentScript",{get:function(){var e=document.getElementsByTagName("script");return e[e.length-1]},enumerable:!0,configurable:!0}))}(),function(){s&&"undefined"===typeof Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})}(),function(){if(s&&!o()){var e=document.createElement("div");if(!1!==e.classList.toggle("test",0)){var t=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e){if(arguments.length>1){var r=!!arguments[1];return this[r?"add":"remove"](e),r}return t(e)}}}}(),function(){String.prototype.includes||r(6)}(),function(){Array.prototype.includes||r(34)}(),function(){Object.assign||r(43)}(),function(){Math.log2||(Math.log2=r(53))}(),function(){Number.isNaN||(Number.isNaN=r(55))}(),function(){Number.isInteger||(Number.isInteger=r(57))}(),function(){n.Promise||(n.Promise=r(60))}(),function(){n.WeakMap||(n.WeakMap=r(95))}(),function(){String.codePointAt||(String.codePointAt=r(112))}(),function(){String.fromCodePoint||(String.fromCodePoint=r(114))}(),function(){n.Symbol||r(116)}(),function(){Object.values||(Object.values=r(123))}()}},function(e,t,a){"use strict";e.exports="undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof r.g&&r.g.Math===Math?r.g:"undefined"!==typeof self&&self.Math===Math?self:{}},function(e,t,r){"use strict";var a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(){return"object"===("undefined"===typeof process?"undefined":a(process))&&process+""==="[object process]"}},function(e,t,r){"use strict";r(7),e.exports=r(10).String.includes},function(e,t,r){"use strict";var a=r(8),i=r(26),n="includes";a(a.P+a.F*r(33)(n),"String",{includes:function(e){return!!~i(this,e,n).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";var a=r(9),i=r(10),n=r(11),o=r(21),s=r(24),c="prototype",l=function e(t,r,l){var u,h,f,d,g=t&e.F,m=t&e.G,p=t&e.S,v=t&e.P,b=t&e.B,y=m?a:p?a[r]||(a[r]={}):(a[r]||{})[c],w=m?i:i[r]||(i[r]={}),k=w[c]||(w[c]={});for(u in m&&(l=r),l)h=!g&&y&&void 0!==y[u],f=(h?y:l)[u],d=b&&h?s(f,a):v&&"function"==typeof f?s(Function.call,f):f,y&&o(y,u,f,t&e.U),w[u]!=f&&n(w,u,d),v&&k[u]!=f&&(k[u]=f)};a.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,r){"use strict";var a=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},function(e,t,r){"use strict";var a=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=a)},function(e,t,r){"use strict";var a=r(12),i=r(20);e.exports=r(16)?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){"use strict";var a=r(13),i=r(15),n=r(19),o=Object.defineProperty;t.f=r(16)?Object.defineProperty:function(e,t,r){if(a(e),t=n(t,!0),a(r),i)try{return o(e,t,r)}catch(s){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){"use strict";var a=r(14);e.exports=function(e){if(!a(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){"use strict";var a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){return"object"===("undefined"===typeof e?"undefined":a(e))?null!==e:"function"===typeof e}},function(e,t,r){"use strict";e.exports=!r(16)&&!r(17)((function(){return 7!=Object.defineProperty(r(18)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){"use strict";e.exports=!r(17)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,r){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,r){"use strict";var a=r(14),i=r(9).document,n=a(i)&&a(i.createElement);e.exports=function(e){return n?i.createElement(e):{}}},function(e,t,r){"use strict";var a=r(14);e.exports=function(e,t){if(!a(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!a(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!a(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!a(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){"use strict";var a=r(9),i=r(11),n=r(22),o=r(23)("src"),s="toString",c=Function[s],l=(""+c).split(s);r(10).inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,r,s){var c="function"==typeof r;c&&(n(r,"name")||i(r,"name",t)),e[t]!==r&&(c&&(n(r,o)||i(r,o,e[t]?""+e[t]:l.join(String(t)))),e===a?e[t]=r:s?e[t]?e[t]=r:i(e,t,r):(delete e[t],i(e,t,r)))})(Function.prototype,s,(function(){return"function"==typeof this&&this[o]||c.call(this)}))},function(e,t,r){"use strict";var a={}.hasOwnProperty;e.exports=function(e,t){return a.call(e,t)}},function(e,t,r){"use strict";var a=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++a+i).toString(36))}},function(e,t,r){"use strict";var a=r(25);e.exports=function(e,t,r){if(a(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,a){return e.call(t,r,a)};case 3:return function(r,a,i){return e.call(t,r,a,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){"use strict";e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){"use strict";var a=r(27),i=r(32);e.exports=function(e,t,r){if(a(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(e))}},function(e,t,r){"use strict";var a=r(14),i=r(28),n=r(29)("match");e.exports=function(e){var t;return a(e)&&(void 0!==(t=e[n])?!!t:"RegExp"==i(e))}},function(e,t,r){"use strict";var a={}.toString;e.exports=function(e){return a.call(e).slice(8,-1)}},function(e,t,r){"use strict";var a=r(30)("wks"),i=r(23),n=r(9).Symbol,o="function"==typeof n,s=e.exports=function(e){return a[e]||(a[e]=o&&n[e]||(o?n:i)("Symbol."+e))};s.store=a},function(e,t,r){"use strict";var a=r(10),i=r(9),n="__core-js_shared__",o=i[n]||(i[n]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:a.version,mode:r(31)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){"use strict";e.exports=!1},function(e,t,r){"use strict";e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){"use strict";var a=r(29)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[a]=!1,!"/./"[e](t)}catch(i){}}return!0}},function(e,t,r){"use strict";r(35),e.exports=r(10).Array.includes},function(e,t,r){"use strict";var a=r(8),i=r(36)(!0);a(a.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(42)("includes")},function(e,t,r){"use strict";var a=r(37),i=r(39),n=r(41);e.exports=function(e){return function(t,r,o){var s,c=a(t),l=i(c.length),u=n(o,l);if(e&&r!=r){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}}},function(e,t,r){"use strict";var a=r(38),i=r(32);e.exports=function(e){return a(i(e))}},function(e,t,r){"use strict";var a=r(28);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},function(e,t,r){"use strict";var a=r(40),i=Math.min;e.exports=function(e){return e>0?i(a(e),9007199254740991):0}},function(e,t,r){"use strict";var a=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:a)(e)}},function(e,t,r){"use strict";var a=r(40),i=Math.max,n=Math.min;e.exports=function(e,t){return e=a(e),e<0?i(e+t,0):n(e,t)}},function(e,t,r){"use strict";var a=r(29)("unscopables"),i=Array.prototype;void 0==i[a]&&r(11)(i,a,{}),e.exports=function(e){i[a][e]=!0}},function(e,t,r){"use strict";r(44),e.exports=r(10).Object.assign},function(e,t,r){"use strict";var a=r(8);a(a.S+a.F,"Object",{assign:r(45)})},function(e,t,r){"use strict";var a=r(46),i=r(50),n=r(51),o=r(52),s=r(38),c=Object.assign;e.exports=!c||r(17)((function(){var e={},t={},r=Symbol(),a="abcdefghijklmnopqrst";return e[r]=7,a.split("").forEach((function(e){t[e]=e})),7!=c({},e)[r]||Object.keys(c({},t)).join("")!=a}))?function(e,t){var r=o(e),c=arguments.length,l=1,u=i.f,h=n.f;while(c>l){var f,d=s(arguments[l++]),g=u?a(d).concat(u(d)):a(d),m=g.length,p=0;while(m>p)h.call(d,f=g[p++])&&(r[f]=d[f])}return r}:c},function(e,t,r){"use strict";var a=r(47),i=r(49);e.exports=Object.keys||function(e){return a(e,i)}},function(e,t,r){"use strict";var a=r(22),i=r(37),n=r(36)(!1),o=r(48)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),c=0,l=[];for(r in s)r!=o&&a(s,r)&&l.push(r);while(t.length>c)a(s,r=t[c++])&&(~n(l,r)||l.push(r));return l}},function(e,t,r){"use strict";var a=r(30)("keys"),i=r(23);e.exports=function(e){return a[e]||(a[e]=i(e))}},function(e,t,r){"use strict";e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,r){"use strict";t.f={}.propertyIsEnumerable},function(e,t,r){"use strict";var a=r(32);e.exports=function(e){return Object(a(e))}},function(e,t,r){"use strict";r(54),e.exports=r(10).Math.log2},function(e,t,r){"use strict";var a=r(8);a(a.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,r){"use strict";r(56),e.exports=r(10).Number.isNaN},function(e,t,r){"use strict";var a=r(8);a(a.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,r){"use strict";r(58),e.exports=r(10).Number.isInteger},function(e,t,r){"use strict";var a=r(8);a(a.S,"Number",{isInteger:r(59)})},function(e,t,r){"use strict";var a=r(14),i=Math.floor;e.exports=function(e){return!a(e)&&isFinite(e)&&i(e)===e}},function(e,t,r){"use strict";r(61),r(63),r(73),r(76),r(93),r(94),e.exports=r(10).Promise},function(e,t,r){"use strict";var a=r(62),i={};i[r(29)("toStringTag")]="z",i+""!="[object z]"&&r(21)(Object.prototype,"toString",(function(){return"[object "+a(this)+"]"}),!0)},function(e,t,r){"use strict";var a=r(28),i=r(29)("toStringTag"),n="Arguments"==a(function(){return arguments}()),o=function(e,t){try{return e[t]}catch(r){}};e.exports=function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=o(t=Object(e),i))?r:n?a(t):"Object"==(s=a(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,r){"use strict";var a=r(64)(!0);r(65)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=a(t,r),this._i+=e.length,{value:e,done:!1})}))},function(e,t,r){"use strict";var a=r(40),i=r(32);e.exports=function(e){return function(t,r){var n,o,s=String(i(t)),c=a(r),l=s.length;return c<0||c>=l?e?"":void 0:(n=s.charCodeAt(c),n<55296||n>56319||c+1===l||(o=s.charCodeAt(c+1))<56320||o>57343?e?s.charAt(c):n:e?s.slice(c,c+2):o-56320+(n-55296<<10)+65536)}}},function(e,t,r){"use strict";var a=r(31),i=r(8),n=r(21),o=r(11),s=r(66),c=r(67),l=r(71),u=r(72),h=r(29)("iterator"),f=!([].keys&&"next"in[].keys()),d="@@iterator",g="keys",m="values",p=function(){return this};e.exports=function(e,t,r,v,b,y,w){c(r,t,v);var k,S,C,x=function(e){if(!f&&e in I)return I[e];switch(e){case g:return function(){return new r(this,e)};case m:return function(){return new r(this,e)}}return function(){return new r(this,e)}},_=t+" Iterator",A=b==m,P=!1,I=e.prototype,O=I[h]||I[d]||b&&I[b],T=O||x(b),E=b?A?x("entries"):T:void 0,F="Array"==t&&I.entries||O;if(F&&(C=u(F.call(new e)),C!==Object.prototype&&C.next&&(l(C,_,!0),a||"function"==typeof C[h]||o(C,h,p))),A&&O&&O.name!==m&&(P=!0,T=function(){return O.call(this)}),a&&!w||!f&&!P&&I[h]||o(I,h,T),s[t]=T,s[_]=p,b)if(k={values:A?T:x(m),keys:y?T:x(g),entries:E},w)for(S in k)S in I||n(I,S,k[S]);else i(i.P+i.F*(f||P),t,k);return k}},function(e,t,r){"use strict";e.exports={}},function(e,t,r){"use strict";var a=r(68),i=r(20),n=r(71),o={};r(11)(o,r(29)("iterator"),(function(){return this})),e.exports=function(e,t,r){e.prototype=a(o,{next:i(1,r)}),n(e,t+" Iterator")}},function(e,t,r){"use strict";var a=r(13),i=r(69),n=r(49),o=r(48)("IE_PROTO"),s=function(){},c="prototype",l=function(){var e,t=r(18)("iframe"),a=n.length,i="<",o=">";t.style.display="none",r(70).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+o+"document.F=Object"+i+"/script"+o),e.close(),l=e.F;while(a--)delete l[c][n[a]];return l()};e.exports=Object.create||function(e,t){var r;return null!==e?(s[c]=a(e),r=new s,s[c]=null,r[o]=e):r=l(),void 0===t?r:i(r,t)}},function(e,t,r){"use strict";var a=r(12),i=r(13),n=r(46);e.exports=r(16)?Object.defineProperties:function(e,t){i(e);var r,o=n(t),s=o.length,c=0;while(s>c)a.f(e,r=o[c++],t[r]);return e}},function(e,t,r){"use strict";var a=r(9).document;e.exports=a&&a.documentElement},function(e,t,r){"use strict";var a=r(12).f,i=r(22),n=r(29)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,n)&&a(e,n,{configurable:!0,value:t})}},function(e,t,r){"use strict";var a=r(22),i=r(52),n=r(48)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),a(e,n)?e[n]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,r){"use strict";for(var a=r(74),i=r(46),n=r(21),o=r(9),s=r(11),c=r(66),l=r(29),u=l("iterator"),h=l("toStringTag"),f=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},g=i(d),m=0;m<g.length;m++){var p,v=g[m],b=d[v],y=o[v],w=y&&y.prototype;if(w&&(w[u]||s(w,u,f),w[h]||s(w,h,v),c[v]=f,b))for(p in a)w[p]||n(w,p,a[p],!0)}},function(e,t,r){"use strict";var a=r(42),i=r(75),n=r(66),o=r(37);e.exports=r(65)(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])}),"values"),n.Arguments=n.Array,a("keys"),a("values"),a("entries")},function(e,t,r){"use strict";e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){"use strict";var a,i,n,o,s=r(31),c=r(9),l=r(24),u=r(62),h=r(8),f=r(14),d=r(25),g=r(77),m=r(78),p=r(82),v=r(83).set,b=r(85)(),y=r(86),w=r(87),k=r(88),S=r(89),C="Promise",x=c.TypeError,_=c.process,A=_&&_.versions,P=A&&A.v8||"",I=c[C],O="process"==u(_),T=function(){},E=i=y.f,F=!!function(){try{var e=I.resolve(1),t=(e.constructor={})[r(29)("species")]=function(e){e(T,T)};return(O||"function"==typeof PromiseRejectionEvent)&&e.then(T)instanceof t&&0!==P.indexOf("6.6")&&-1===k.indexOf("Chrome/66")}catch(a){}}(),R=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},B=function(e,t){if(!e._n){e._n=!0;var r=e._c;b((function(){var a=e._v,i=1==e._s,n=0,o=function(t){var r,n,o,s=i?t.ok:t.fail,c=t.resolve,l=t.reject,u=t.domain;try{s?(i||(2==e._h&&L(e),e._h=1),!0===s?r=a:(u&&u.enter(),r=s(a),u&&(u.exit(),o=!0)),r===t.promise?l(x("Promise-chain cycle")):(n=R(r))?n.call(r,c,l):c(r)):l(a)}catch(h){u&&!o&&u.exit(),l(h)}};while(r.length>n)o(r[n++]);e._c=[],e._n=!1,t&&!e._h&&D(e)}))}},D=function(e){v.call(c,(function(){var t,r,a,i=e._v,n=M(e);if(n&&(t=w((function(){O?_.emit("unhandledRejection",i,e):(r=c.onunhandledrejection)?r({promise:e,reason:i}):(a=c.console)&&a.error&&a.error("Unhandled promise rejection",i)})),e._h=O||M(e)?2:1),e._a=void 0,n&&t.e)throw t.v}))},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){v.call(c,(function(){var t;O?_.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},N=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),B(t,!0))},U=function e(t){var r,a=this;if(!a._d){a._d=!0,a=a._w||a;try{if(a===t)throw x("Promise can't be resolved itself");(r=R(t))?b((function(){var i={_w:a,_d:!1};try{r.call(t,l(e,i,1),l(N,i,1))}catch(n){N.call(i,n)}})):(a._v=t,a._s=1,B(a,!1))}catch(i){N.call({_w:a,_d:!1},i)}}};F||(I=function(e){g(this,I,C,"_h"),d(e),a.call(this);try{e(l(U,this,1),l(N,this,1))}catch(t){N.call(this,t)}},a=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},a.prototype=r(90)(I.prototype,{then:function(e,t){var r=E(p(this,I));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=O?_.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&B(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),n=function(){var e=new a;this.promise=e,this.resolve=l(U,e,1),this.reject=l(N,e,1)},y.f=E=function(e){return e===I||e===o?new n(e):i(e)}),h(h.G+h.W+h.F*!F,{Promise:I}),r(71)(I,C),r(91)(C),o=r(10)[C],h(h.S+h.F*!F,C,{reject:function(e){var t=E(this),r=t.reject;return r(e),t.promise}}),h(h.S+h.F*(s||!F),C,{resolve:function(e){return S(s&&this===o?I:this,e)}}),h(h.S+h.F*!(F&&r(92)((function(e){I.all(e)["catch"](T)}))),C,{all:function(e){var t=this,r=E(t),a=r.resolve,i=r.reject,n=w((function(){var r=[],n=0,o=1;m(e,!1,(function(e){var s=n++,c=!1;r.push(void 0),o++,t.resolve(e).then((function(e){c||(c=!0,r[s]=e,--o||a(r))}),i)})),--o||a(r)}));return n.e&&i(n.v),r.promise},race:function(e){var t=this,r=E(t),a=r.reject,i=w((function(){m(e,!1,(function(e){t.resolve(e).then(r.resolve,a)}))}));return i.e&&a(i.v),r.promise}})},function(e,t,r){"use strict";e.exports=function(e,t,r,a){if(!(e instanceof t)||void 0!==a&&a in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){"use strict";var a=r(24),i=r(79),n=r(80),o=r(13),s=r(39),c=r(81),l={},u={},h=e.exports=function(e,t,r,h,f){var d,g,m,p,v=f?function(){return e}:c(e),b=a(r,h,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(n(v)){for(d=s(e.length);d>y;y++)if(p=t?b(o(g=e[y])[0],g[1]):b(e[y]),p===l||p===u)return p}else for(m=v.call(e);!(g=m.next()).done;)if(p=i(m,b,g.value,t),p===l||p===u)return p};h.BREAK=l,h.RETURN=u},function(e,t,r){"use strict";var a=r(13);e.exports=function(e,t,r,i){try{return i?t(a(r)[0],r[1]):t(r)}catch(o){var n=e["return"];throw void 0!==n&&a(n.call(e)),o}}},function(e,t,r){"use strict";var a=r(66),i=r(29)("iterator"),n=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||n[i]===e)}},function(e,t,r){"use strict";var a=r(62),i=r(29)("iterator"),n=r(66);e.exports=r(10).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||n[a(e)]}},function(e,t,r){"use strict";var a=r(13),i=r(25),n=r(29)("species");e.exports=function(e,t){var r,o=a(e).constructor;return void 0===o||void 0==(r=a(o)[n])?t:i(r)}},function(e,t,r){"use strict";var a,i,n,o=r(24),s=r(84),c=r(70),l=r(18),u=r(9),h=u.process,f=u.setImmediate,d=u.clearImmediate,g=u.MessageChannel,m=u.Dispatch,p=0,v={},b="onreadystatechange",y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},w=function(e){y.call(e.data)};f&&d||(f=function(e){var t=[],r=1;while(arguments.length>r)t.push(arguments[r++]);return v[++p]=function(){s("function"==typeof e?e:Function(e),t)},a(p),p},d=function(e){delete v[e]},"process"==r(28)(h)?a=function(e){h.nextTick(o(y,e,1))}:m&&m.now?a=function(e){m.now(o(y,e,1))}:g?(i=new g,n=i.port2,i.port1.onmessage=w,a=o(n.postMessage,n,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(a=function(e){u.postMessage(e+"","*")},u.addEventListener("message",w,!1)):a=b in l("script")?function(e){c.appendChild(l("script"))[b]=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(o(y,e,1),0)}),e.exports={set:f,clear:d}},function(e,t,r){"use strict";e.exports=function(e,t,r){var a=void 0===r;switch(t.length){case 0:return a?e():e.call(r);case 1:return a?e(t[0]):e.call(r,t[0]);case 2:return a?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return a?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return a?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,r){"use strict";var a=r(9),i=r(83).set,n=a.MutationObserver||a.WebKitMutationObserver,o=a.process,s=a.Promise,c="process"==r(28)(o);e.exports=function(){var e,t,r,l=function(){var a,i;c&&(a=o.domain)&&a.exit();while(e){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,a&&a.enter()};if(c)r=function(){o.nextTick(l)};else if(!n||a.navigator&&a.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);r=function(){u.then(l)}}else r=function(){i.call(a,l)};else{var h=!0,f=document.createTextNode("");new n(l).observe(f,{characterData:!0}),r=function(){f.data=h=!h}}return function(a){var i={fn:a,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},function(e,t,r){"use strict";var a=r(25);function i(e){var t,r;this.promise=new e((function(e,a){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=a})),this.resolve=a(t),this.reject=a(r)}e.exports.f=function(e){return new i(e)}},function(e,t,r){"use strict";e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},function(e,t,r){"use strict";var a=r(9),i=a.navigator;e.exports=i&&i.userAgent||""},function(e,t,r){"use strict";var a=r(13),i=r(14),n=r(86);e.exports=function(e,t){if(a(e),i(t)&&t.constructor===e)return t;var r=n.f(e),o=r.resolve;return o(t),r.promise}},function(e,t,r){"use strict";var a=r(21);e.exports=function(e,t,r){for(var i in t)a(e,i,t[i],r);return e}},function(e,t,r){"use strict";var a=r(9),i=r(12),n=r(16),o=r(29)("species");e.exports=function(e){var t=a[e];n&&t&&!t[o]&&i.f(t,o,{configurable:!0,get:function(){return this}})}},function(e,t,r){"use strict";var a=r(29)("iterator"),i=!1;try{var n=[7][a]();n["return"]=function(){i=!0},Array.from(n,(function(){throw 2}))}catch(o){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var n=[7],s=n[a]();s.next=function(){return{done:r=!0}},n[a]=function(){return s},e(n)}catch(o){}return r}},function(e,t,r){"use strict";var a=r(8),i=r(10),n=r(9),o=r(82),s=r(89);a(a.P+a.R,"Promise",{finally:function(e){var t=o(this,i.Promise||n.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then((function(){return r}))}:e,r?function(r){return s(t,e()).then((function(){throw r}))}:e)}})},function(e,t,r){"use strict";var a=r(8),i=r(86),n=r(87);a(a.S,"Promise",{try:function(e){var t=i.f(this),r=n(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){"use strict";r(61),r(73),r(96),r(108),r(110),e.exports=r(10).WeakMap},function(e,t,r){"use strict";var a,i=r(97)(0),n=r(21),o=r(101),s=r(45),c=r(102),l=r(14),u=r(