{"code":"(window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[]).push([[\"chunk-685716e8\"],{\"0b16\":function(e,t,r){\"use strict\";var n=r(\"1985\"),i=r(\"35e8\");function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=A,t.resolve=S,t.resolveObject=C,t.format=w,t.Url=a;var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,l=[\"<\",\">\",'\"',\"`\",\" \",\"\\r\",\"\\n\",\"\\t\"],c=[\"{\",\"}\",\"|\",\"\\\\\",\"^\",\"`\"].concat(l),h=[\"'\"].concat(c),d=[\"%\",\"/\",\"?\",\";\",\"#\"].concat(h),f=[\"/\",\"?\",\"#\"],p=255,v=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,\"javascript:\":!0},y={javascript:!0,\"javascript:\":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,\"http:\":!0,\"https:\":!0,\"ftp:\":!0,\"gopher:\":!0,\"file:\":!0},_=r(\"b383\");function A(e,t,r){if(e&&i.isObject(e)&&e instanceof a)return e;var n=new a;return n.parse(e,t,r),n}function w(e){return i.isString(e)&&(e=A(e)),e instanceof a?e.format():a.prototype.format.call(e)}function S(e,t){return A(e,!1,!0).resolve(t)}function C(e,t){return e?A(e,!1,!0).resolveObject(t):t}a.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError(\"Parameter 'url' must be a string, not \"+typeof e);var a=e.indexOf(\"?\"),s=-1!==a&&a127?j+=\"x\":j+=I[D];if(!j.match(v)){var N=L.slice(0,E),q=L.slice(E+1),W=I.match(m);W&&(N.push(W[1]),q.unshift(W[2])),q.length&&(A=\"/\"+q.join(\".\")+A),this.hostname=N.join(\".\");break}}}this.hostname.length>p?this.hostname=\"\":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=n.toASCII(this.hostname));var B=this.port?\":\"+this.port:\"\",U=this.hostname||\"\";this.host=U+B,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),\"/\"!==A[0]&&(A=\"/\"+A))}if(!g[C])for(E=0,F=h.length;E0)&&r.host.split(\"@\");k&&(r.auth=k.shift(),r.host=r.hostname=k.shift())}return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:\"\")+(r.search?r.search:\"\")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path=\"/\"+r.search:r.path=null,r.href=r.format(),r;for(var x=S.slice(-1)[0],P=(r.host||e.host||S.length>1)&&(\".\"===x||\"..\"===x)||\"\"===x,R=0,E=S.length;E>=0;E--)x=S[E],\".\"===x?S.splice(E,1):\"..\"===x?(S.splice(E,1),R++):R&&(S.splice(E,1),R--);if(!A&&!w)for(;R--;R)S.unshift(\"..\");!A||\"\"===S[0]||S[0]&&\"/\"===S[0].charAt(0)||S.unshift(\"\"),P&&\"/\"!==S.join(\"/\").substr(-1)&&S.push(\"\");var T=\"\"===S[0]||S[0]&&\"/\"===S[0].charAt(0);if(C){r.hostname=r.host=T?\"\":S.length?S.shift():\"\";k=!!(r.host&&r.host.indexOf(\"@\")>0)&&r.host.split(\"@\");k&&(r.auth=k.shift(),r.host=r.hostname=k.shift())}return A=A||r.host&&S.length,A&&!T&&S.unshift(\"\"),S.length?r.pathname=S.join(\"/\"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:\"\")+(r.search?r.search:\"\")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(t=t[0],\":\"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},\"113f\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.SimpleLinkService=t.PDFLinkService=void 0;var n=\"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){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=t.eventBus,n=t.externalLinkTarget,i=void 0===n?null:n,o=t.externalLinkRel,u=void 0===o?null:o;s(this,e),this.eventBus=r||(0,a.getGlobalEventBus)(),this.externalLinkTarget=i,this.externalLinkRel=u,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}return i(e,[{key:\"setDocument\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)}},{key:\"setViewer\",value:function(e){this.pdfViewer=e}},{key:\"setHistory\",value:function(e){this.pdfHistory=e}},{key:\"navigateTo\",value:function(e){var t=this,r=function e(r){var n=r.namedDest,i=r.explicitDest,a=i[0],o=void 0;if(a instanceof Object){if(o=t._cachedPageNumber(a),null===o)return void t.pdfDocument.getPageIndex(a).then((function(r){t.cachePageRef(r+1,a),e({namedDest:n,explicitDest:i})})).catch((function(){}))}else{if(!Number.isInteger(a))return;o=a+1}!o||o<1||o>t.pagesCount||(t.pdfHistory&&(t.pdfHistory.pushCurrentPosition(),t.pdfHistory.push({namedDest:n,explicitDest:i,pageNumber:o})),t.pdfViewer.scrollPageIntoView({pageNumber:o,destArray:i}))};new Promise((function(r,n){\"string\"!==typeof e?r({namedDest:\"\",explicitDest:e}):t.pdfDocument.getDestination(e).then((function(t){r({namedDest:e,explicitDest:t})}))})).then((function(e){Array.isArray(e.explicitDest)&&r(e)}))}},{key:\"getDestinationHash\",value:function(e){if(\"string\"===typeof e)return this.getAnchorUrl(\"#\"+escape(e));if(Array.isArray(e)){var t=JSON.stringify(e);return this.getAnchorUrl(\"#\"+escape(t))}return this.getAnchorUrl(\"\")}},{key:\"getAnchorUrl\",value:function(e){return(this.baseUrl||\"\")+e}},{key:\"setHash\",value:function(e){var t=void 0,r=void 0;if(e.includes(\"=\")){var n=(0,o.parseQueryString)(e);if(\"search\"in n&&this.eventBus.dispatch(\"findfromurlhash\",{source:this,query:n[\"search\"].replace(/\"/g,\"\"),phraseSearch:\"true\"===n[\"phrase\"]}),\"nameddest\"in n)return void this.navigateTo(n.nameddest);if(\"page\"in n&&(t=0|n.page||1),\"zoom\"in n){var i=n.zoom.split(\",\"),a=i[0],s=parseFloat(a);a.includes(\"Fit\")?\"Fit\"===a||\"FitB\"===a?r=[null,{name:a}]:\"FitH\"===a||\"FitBH\"===a||\"FitV\"===a||\"FitBV\"===a?r=[null,{name:a},i.length>1?0|i[1]:null]:\"FitR\"===a&&(5!==i.length||(r=[null,{name:a},0|i[1],0|i[2],0|i[3],0|i[4]])):r=[null,{name:\"XYZ\"},i.length>1?0|i[1]:null,i.length>2?0|i[2]:null,s?s/100:a]}r?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:r,allowNegativeOffset:!0}):t&&(this.page=t),\"pagemode\"in n&&this.eventBus.dispatch(\"pagemode\",{source:this,mode:n.pagemode})}else{r=unescape(e);try{r=JSON.parse(r),Array.isArray(r)||(r=r.toString())}catch(u){}if(\"string\"===typeof r||l(r))return void this.navigateTo(r)}}},{key:\"executeNamedAction\",value:function(e){switch(e){case\"GoBack\":this.pdfHistory&&this.pdfHistory.back();break;case\"GoForward\":this.pdfHistory&&this.pdfHistory.forward();break;case\"NextPage\":this.page1&&this.page--;break;case\"LastPage\":this.page=this.pagesCount;break;case\"FirstPage\":this.page=1;break;default:break}this.eventBus.dispatch(\"namedaction\",{source:this,action:e})}},{key:\"cachePageRef\",value:function(e,t){if(t){var r=t.num+\" \"+t.gen+\" R\";this._pagesRefCache[r]=e}}},{key:\"_cachedPageNumber\",value:function(e){var t=e.num+\" \"+e.gen+\" R\";return this._pagesRefCache&&this._pagesRefCache[t]||null}},{key:\"pagesCount\",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:\"page\",get:function(){return this.pdfViewer.currentPageNumber},set:function(e){this.pdfViewer.currentPageNumber=e}},{key:\"rotation\",get:function(){return this.pdfViewer.pagesRotation},set:function(e){this.pdfViewer.pagesRotation=e}}]),e}();function l(e){if(!Array.isArray(e))return!1;var t=e.length,r=!0;if(t<2)return!1;var i=e[0];if((\"object\"!==(\"undefined\"===typeof i?\"undefined\":n(i))||!Number.isInteger(i.num)||!Number.isInteger(i.gen))&&!(Number.isInteger(i)&&i>=0))return!1;var a=e[1];if(\"object\"!==(\"undefined\"===typeof a?\"undefined\":n(a))||\"string\"!==typeof a.name)return!1;switch(a.name){case\"XYZ\":if(5!==t)return!1;break;case\"Fit\":case\"FitB\":return 2===t;case\"FitH\":case\"FitBH\":case\"FitV\":case\"FitBV\":if(3!==t)return!1;break;case\"FitR\":if(6!==t)return!1;r=!1;break;default:return!1}for(var o=2;o= 0x80 (not a basic code point)\",\"invalid-input\":\"Invalid input\"},A=l-c,w=Math.floor,S=String.fromCharCode;function C(e){throw new RangeError(_[e])}function k(e,t){var r=e.length,n=[];while(r--)n[r]=t(e[r]);return n}function x(e,t){var r=e.split(\"@\"),n=\"\";r.length>1&&(n=r[0]+\"@\",e=r[1]),e=e.replace(b,\".\");var i=e.split(\".\"),a=k(i,t).join(\".\");return n+a}function P(e){var t,r,n=[],i=0,a=e.length;while(i=55296&&t<=56319&&i65535&&(e-=65536,t+=S(e>>>10&1023|55296),e=56320|1023&e),t+=S(e),t})).join(\"\")}function E(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:l}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function O(e,t,r){var n=0;for(e=r?w(e/f):e>>1,e+=w(e/t);e>A*h>>1;n+=l)e=w(e/A);return w(n+(A+1)*e/(e+d))}function L(e){var t,r,n,i,a,o,s,d,f,g,y=[],b=e.length,_=0,A=v,S=p;for(r=e.lastIndexOf(m),r<0&&(r=0),n=0;n=128&&C(\"not-basic\"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=b&&C(\"invalid-input\"),d=E(e.charCodeAt(i++)),(d>=l||d>w((u-_)/o))&&C(\"overflow\"),_+=d*o,f=s<=S?c:s>=S+h?h:s-S,dw(u/g)&&C(\"overflow\"),o*=g}t=y.length+1,S=O(_-a,t,0==a),w(_/t)>u-A&&C(\"overflow\"),A+=w(_/t),_%=t,y.splice(_++,0,A)}return R(y)}function F(e){var t,r,n,i,a,o,s,d,f,g,y,b,_,A,k,x=[];for(e=P(e),b=e.length,t=v,r=0,a=p,o=0;o=t&&yw((u-r)/_)&&C(\"overflow\"),r+=(s-t)*_,t=s,o=0;ou&&C(\"overflow\"),y==t){for(d=r,f=l;;f+=l){if(g=f<=a?c:f>=a+h?h:f-a,d1.15)&&this.pdf.renderPage(this.rotate),this.$refs.annotationLayer.style.transform=\"scale(\"+t+\")\"}},print:function(e,t){this.pdf.printPage(e,t)}},mounted:function(){this.pdf=new r(this.$refs.canvas,this.$refs.annotationLayer,this.$emit.bind(this)),this.$on(\"loaded\",(function(){this.pdf.loadPage(this.page,this.rotate)})),this.$on(\"page-size\",(function(e,t){this.$refs.canvas.style.height=this.$refs.canvas.offsetWidth*(t/e)+\"px\"})),this.pdf.loadDocument(this.src)},destroyed:function(){this.pdf.destroy()}}};if(\"server\"!==Object({NODE_ENV:\"production\",BASE_URL:\"/fvue/\"}).VUE_ENV){var v=r(\"a068\").default,m=r(\"9511\");if(\"undefined\"!==typeof window&&\"Worker\"in window&&-1===navigator.appVersion.indexOf(\"MSIE 10\")){var g=r(\"68c4\");m.GlobalWorkerOptions.workerPort=new g}var y=p(v(m))}else y=p({});var b,_,A=y,w=A,S=(r(\"f9a3\"),Object(h[\"a\"])(w,b,_,!1,null,null,null)),C=S.exports,k={name:\"FilePreview\",props:{appendToBody:{type:Boolean,default:!1}},components:{Docx:s[\"a\"],pdf:C},data:function(){return{dialogVisible:!1,fileType:0,previewUrl:\"\",loading:!1,pageTotalNum:1}},methods:{open:function(e){var t=this;this.loading=!0,e=e.toLowerCase();var r=[\"png\",\"jpg\",\"jpeg\",\"bmp\",\"gif\",\"webp\",\"psd\",\"svg\",\"tiff\"],n=[\"doc\",\"docx\"],i=[\"pdf\"],a=[r,n,i];if(a.forEach((function(r,n){-1!==r.indexOf(e)&&(t.fileType=n+1)})),[].concat(r,n,i).includes(e)){var o=this;3===this.fileType&&u[\"a\"].get(o.previewUrl,\"arraybuffer\").then((function(e){o.previewUrl=window.URL.createObjectURL(new Blob([e.data],{type:\"application/pdf\"}))})),this.dialogVisible=!0}else this.$message.warning(\"抱歉,该文件类型无法预览!\")},mskLoading:function(){this.loading=!1},closeLoading:function(){this.loading=!1},pageLoaded:function(e){this.getNumPages(),this.loading=!1},getNumPages:function(){var e=this,t=C.createLoadingTask(this.previewUrl);t.promise.then((function(t){e.pageTotalNum=t.numPages})).catch((function(e){}))},pdfError:function(e){this.loading=!1,this.$message.error(e)}}},x=k,P=(r(\"f390\"),Object(h[\"a\"])(x,a,o,!1,null,\"a229b49c\",null));t[\"a\"]=P.exports},\"3bc3\":function(e,t,r){var n=r(\"5db2\");\"string\"===typeof n&&(n=[[e.i,n,\"\"]]),n.locals&&(e.exports=n.locals);var i=r(\"499e\").default;i(\"220b934e\",n,!0,{sourceMap:!0,shadowMode:!1})},4:function(e,t){},5:function(e,t){},\"5db2\":function(e,t,r){t=e.exports=r(\"2350\")(!0),t.push([e.i,\"@keyframes resizeSensorVisibility{0%{top:0}}\",\"\",{version:3,sources:[\"D:/jenkins/workspace/ljzc-fvue/node_modules/vue-resize-sensor/src/D:/jenkins/workspace/ljzc-fvue/node_modules/vue-resize-sensor/src/D:/jenkins/workspace/ljzc-fvue/node_modules/vue-resize-sensor/src/resize-sensor.vue\"],names:[],mappings:\"AACA,kCACC,GAAO,KAAQ,CAChB,CAAA\",file:\"resize-sensor.vue?vue&type=style&index=0&lang=css&\",sourcesContent:[\"\\r\\n@keyframes resizeSensorVisibility {\\r\\n\\tfrom { top: 0; }\\r\\n}\\r\\n\"],sourceRoot:\"\"}])},\"68c4\":function(e,t,r){e.exports=function(){return new Worker(r.p+\"6a4a1b6625793b2b0a1d.worker.js\")}},7123:function(e,t,r){var n=function(){return this}()||Function(\"return this\")(),i=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf(\"regeneratorRuntime\")>=0,a=i&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=r(\"bb87\"),i)n.regeneratorRuntime=a;else try{delete n.regeneratorRuntime}catch(o){n.regeneratorRuntime=void 0}},7663:function(e,t,r){var n=r(\"b041\");t=e.exports=r(\"2350\")(!0),t.push([e.i,'.primaryColor[data-v-a229b49c]{background-color:#4080ff}[data-v-a229b49c]:export{aside_width:11.97917vw}[data-v-a229b49c] .el-dialog__wrapper{overflow:hidden}.pdf__iframe[data-v-a229b49c]{width:100%;height:100%;border:0}[data-v-a229b49c] .el-dialog__body{height:81vh;max-height:81vh!important;padding:0 .52083vw .52083vw .52083vw}[data-v-a229b49c] .el-dialog__body img{user-select:none;pointer-events:none}[data-v-a229b49c] .el-dialog__body ::-webkit-scrollbar{width:.3vw!important}[data-v-a229b49c] .el-dialog__header{background:#fff}[data-v-a229b49c] .el-dialog__header .el-dialog__close{color:#909399!important}[data-v-a229b49c] .el-dialog__footer{padding:0;height:1.82292vw}.ls-icon[data-v-a229b49c]{position:relative;text-align:right;width:100%}.ls-icon[data-v-a229b49c],.ls-icon[data-v-a229b49c]:after{height:.72917vw;display:block}.ls-icon[data-v-a229b49c]:after{content:\"\";width:.72917vw;background:url('+n(r(\"34af\"))+\") no-repeat;background-size:cover;position:absolute;right:.52083vw;top:-.26042vw}.onlineHelp[data-v-a229b49c]{height:100%;position:relative;display:flex;justify-content:center}.onlineHelp .tools[data-v-a229b49c]{position:absolute;top:.52083vw;right:.52083vw;z-index:999}.onlineHelp .tools .page[data-v-a229b49c]{display:inline-block;margin-right:.52083vw}.onlineHelp .pdf-box[data-v-a229b49c]{height:100%;width:90%}.dialog-box[data-v-a229b49c] .el-dialog__body{overflow:hidden!important}\",\"\",{version:3,sources:[\"D:/jenkins/workspace/ljzc-fvue/src/components/FilePreview/D:/jenkins/workspace/ljzc-fvue/src/components/FilePreview/D:/jenkins/workspace/ljzc-fvue/src/components/FilePreview/D:/jenkins/workspace/ljzc-fvue/src/assets/css/element-variables.scss\",\"D:/jenkins/workspace/ljzc-fvue/src/components/FilePreview/D:/jenkins/workspace/ljzc-fvue/src/components/FilePreview/D:/jenkins/workspace/ljzc-fvue/src/components/FilePreview/D:/jenkins/workspace/ljzc-fvue/src/components/FilePreview/filePreview.vue\"],names:[],mappings:\"AA8BA,+BACE,wBA1BuB,CA2BxB,yBAIC,sBARmB,CC8HrB,sCACE,eAAgB,CACjB,8BAEC,WACA,YACA,QAAS,CACV,mCAGC,YACA,0BACA,oCAA2B,CAJ7B,uCAMI,iBACA,mBAAoB,CAPxB,uDAUI,oBAAuB,CACxB,qCAGD,eAAgB,CADlB,uDAGI,uBAAyB,CAC1B,qCAGD,UACA,gBAAY,CACb,0BAEC,kBACA,iBACA,UAEc,CACf,0DAFC,gBACA,aAWS,CAVV,gCAEC,WAEA,eAEA,mDACA,sBACA,kBACA,eACA,aAAS,CACV,6BAEC,YACA,kBACA,aACA,sBAAuB,CAJzB,oCAMI,kBACA,aACA,eACA,WAAY,CAThB,0CAWM,qBACA,qBAAkB,CAZxB,sCAgBI,YAEA,SAAU,CACX,8CAIC,yBAA2B,CAAA\",file:\"filePreview.vue?vue&type=style&index=0&id=a229b49c&lang=scss&scoped=true&\",sourcesContent:[\"/* 改变系统主题色变量 ——*/\\r\\n$--theme-color: #2761ff; /*主题颜色(即首页导航栏颜色)——#2761ff*/\\r\\n$--theme-color-active: #1f4ecc; /*首页导航栏颜色鼠标悬停到某一个菜单时的颜色——#1F4ECC*/\\r\\n\\r\\n/* 改变element组件主题色变量 ——*/\\r\\n$--color-primary: #4080FF; /*主题颜色——#、#211bce;、*/\\r\\n//#2662c9\\r\\n$--color-success: #67c23a; /*成功颜色——#67c23a*/\\r\\n$--color-warning: #e6a23c; /*警告颜色——#e6a23c*/\\r\\n$--color-danger: #f56c6c; /*危险颜色——#f56c6c*/\\r\\n$--color-info: #909399; /*信息颜色——#909399*/\\r\\n$--color-text-primary: #303133; /*主要文字颜色——#303133*/\\r\\n$--color-text-regular: #606266; /*常规文字颜色——#606266*/\\r\\n$--color-text-secondary: #909399; /*次要文字颜色——#909399*/\\r\\n$--color-text-placeholder: #c0c4cc; /*占位文字颜色——#c0c4cc*/\\r\\n$--border-color-base: #dcdfe6; /*一级边框颜色——#dcdfe6*/\\r\\n$--border-color-light: #e4e7ed; /*二级边框颜色——#e4e7ed*/\\r\\n$--border-color-lighter: #ebeef5; /*三级边框颜色——#ebeef5*/\\r\\n$--border-color-extra-light: #f2f6fc; /*四级边框颜色——#f2f6fc*/\\r\\n$--color-white: #ffffff; /*基础白色——#FFFFFF*/\\r\\n$--color-black: #000000; /*基础黑色——#000000*/\\r\\n$--background-color-base: #f1f1f1; /*基础背景色——#F5F7FA*/\\r\\n$--background-color-secondary: #f0f2f5; /*第二基础背景色——#F0F2F5*/\\r\\n$--color-secondary: #dfebfc;\\r\\n$--color-primary-light: #4d89f1; /* 菜单栏辅助色 */\\r\\n$--hover-bgcolor: #1d8694; /*鼠标经过的背景颜色*/\\r\\n$--color-text: #ccf2ff;\\r\\n/* 左侧树宽度设置 */\\r\\n$--aside-width: 230px;\\r\\n/* 自定义主题色变量 */\\r\\n.primaryColor {\\r\\n background-color: $--color-primary;\\r\\n}\\r\\n\\r\\n//主要的一步:\\r\\n:export {\\r\\n aside_width: $--aside-width;\\r\\n}\\r\\n\\r\\n// ------navigator-----------\\r\\n$--navigator-main-color: #fff;\\r\\n$--navigator-main-text-color: #393a40;\\r\\n$--navigator-text-color: #565656;\\r\\n$--navigator-text-size: 18px;\\r\\n\\r\\n// -----menu------------\\r\\n$--menu-bg: #393a40;\\r\\n$--menu-active: #616166;\\r\\n$--menu-hover: #2e2e33;\\r\\n$--menu-text: #fff;\\r\\n$--menu-icon: #909399;\\r\\n\",\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\r\\n@import '@/assets/css/element-variables.scss';\\r\\n/deep/.el-dialog__wrapper {\\r\\n overflow: hidden;\\r\\n}\\r\\n.pdf__iframe {\\r\\n width: 100%;\\r\\n height: 100%;\\r\\n border: 0;\\r\\n}\\r\\n/deep/ .el-dialog__body {\\r\\n // overflow: hidden!important;\\r\\n height: 81vh;\\r\\n max-height: 81vh !important;\\r\\n padding: 0px 10px 10px 10px;\\r\\n img {\\r\\n user-select: none;\\r\\n pointer-events: none;\\r\\n }\\r\\n ::-webkit-scrollbar {\\r\\n width: 0.3vw !important;\\r\\n }\\r\\n}\\r\\n/deep/.el-dialog__header {\\r\\n background: #fff;\\r\\n .el-dialog__close {\\r\\n color: #909399 !important;\\r\\n }\\r\\n}\\r\\n/deep/.el-dialog__footer {\\r\\n padding: 0;\\r\\n height: 35px;\\r\\n}\\r\\n.ls-icon {\\r\\n position: relative;\\r\\n text-align: right;\\r\\n width: 100%;\\r\\n height: 14px;\\r\\n display: block;\\r\\n}\\r\\n.ls-icon::after {\\r\\n content: '';\\r\\n display: block;\\r\\n width: 14px;\\r\\n height: 14px;\\r\\n background: url('../../assets/img/svg/ls.svg') no-repeat;\\r\\n background-size: cover;\\r\\n position: absolute;\\r\\n right: 10px;\\r\\n top: -5px;\\r\\n}\\r\\n.onlineHelp {\\r\\n height: 100%;\\r\\n position: relative;\\r\\n display: flex;\\r\\n justify-content: center;\\r\\n .tools {\\r\\n position: absolute;\\r\\n top: 10px;\\r\\n right: 10px;\\r\\n z-index: 999;\\r\\n .page {\\r\\n display: inline-block;\\r\\n margin-right: 10px;\\r\\n }\\r\\n }\\r\\n .pdf-box {\\r\\n height: 100%;\\r\\n // overflow: auto;\\r\\n width: 90%;\\r\\n }\\r\\n}\\r\\n.dialog-box {\\r\\n /deep/.el-dialog__body {\\r\\n overflow: hidden !important;\\r\\n }\\r\\n}\\r\\n\"],sourceRoot:\"\"}])},8588:function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.moveToEndOfArray=t.waitOnEventOrTimeout=t.WaitOnType=t.animationStarted=t.normalizeWheelEventDelta=t.binarySearchFirstItem=t.watchScroll=t.scrollIntoView=t.getOutputScale=t.approximateFraction=t.getPageSizeInches=t.roundToDivide=t.getVisibleElements=t.backtrackBeforeAllVisibleElements=t.parseQueryString=t.noContextMenuHandler=t.getPDFFileNameFromURL=t.ProgressBar=t.EventBus=t.NullL10n=t.TextLayerMode=t.RendererType=t.PresentationModeState=t.isPortraitOrientation=t.isValidRotation=t.VERTICAL_PADDING=t.SCROLLBAR_PADDING=t.MAX_AUTO_SCALE=t.UNKNOWN_SCALE=t.MAX_SCALE=t.MIN_SCALE=t.DEFAULT_SCALE=t.DEFAULT_SCALE_VALUE=t.CSS_UNITS=void 0;var n=r(\"d785\"),i=u(n),a=function(){function e(e,t){for(var r=0;r2&&void 0!==arguments[2]&&arguments[2],n=e.offsetParent;if(n){var i=e.offsetTop+e.clientTop,a=e.offsetLeft+e.clientLeft;while(n.clientHeight===n.scrollHeight&&n.clientWidth===n.scrollWidth||r&&\"hidden\"===getComputedStyle(n).overflow)if(n.dataset._scaleY&&(i/=n.dataset._scaleY,a/=n.dataset._scaleX),i+=n.offsetTop,a+=n.offsetLeft,n=n.offsetParent,!n)return;t&&(void 0!==t.top&&(i+=t.top),void 0!==t.left&&(a+=t.left,n.scrollLeft=a)),n.scrollTop=i}}function P(e,t){var r=function(r){i||(i=window.requestAnimationFrame((function(){i=null;var r=e.scrollLeft,a=n.lastX;r!==a&&(n.right=r>a),n.lastX=r;var o=e.scrollTop,s=n.lastY;o!==s&&(n.down=o>s),n.lastY=o,t(n)})))},n={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:r},i=null;return e.addEventListener(\"scroll\",r,!0),n}function R(e){for(var t=e.split(\"&\"),r=Object.create(null),n=0,i=t.length;n1?a[1]:null;r[decodeURIComponent(o)]=decodeURIComponent(s)}return r}function E(e,t){var r=0,n=e.length-1;if(0===e.length||!t(e[n]))return e.length;if(t(e[r]))return r;while(r>1,a=e[i];t(a)?n=i:r=i+1}return r}function T(e){if(Math.floor(e)===e)return[e,1];var t=1/e,r=8;if(t>r)return[1,r];if(Math.floor(t)===t)return[1,t];var n=e>1?t:e,i=0,a=1,o=1,s=1;while(1){var u=i+o,l=a+s;if(l>r)break;n<=u/l?(o=u,s=l):(i=u,a=l)}var c=void 0;return c=n-i/a=r&&(n=t[e-1].div,i=n.offsetTop+n.clientTop);for(var a=e-2;a>=0;--a){if(n=t[a].div,n.offsetTop+n.clientTop+n.clientHeight<=i)break;e=a}return e}function I(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.scrollTop,a=i+e.clientHeight,o=e.scrollLeft,s=o+e.clientWidth;function u(e){var t=e.div,r=t.offsetTop+t.clientTop+t.clientHeight;return r>i}function l(e){var t=e.div,r=t.offsetLeft+t.clientLeft+t.clientWidth;return r>o}var c=[],h=void 0,d=void 0,f=void 0,p=void 0,v=void 0,m=void 0,g=void 0,y=void 0,b=void 0,_=void 0,A=void 0,w=0===t.length?0:E(t,n?l:u);t.length>0&&!n&&(w=F(w,t,i));for(var S=n?s:-1,C=w,k=t.length;C=a&&(S=v);else if((n?g:f)>S)break;v<=i||f>=a||b<=o||g>=s||(m=Math.max(0,i-f)+Math.max(0,v-a),_=Math.max(0,o-g)+Math.max(0,b-s),A=(p-m)*(y-_)*100/p/y|0,c.push({id:h.id,x:g,y:f,view:h,percent:A}))}var x=c[0],P=c[c.length-1];return r&&c.sort((function(e,t){var r=e.percent-t.percent;return Math.abs(r)>.001?-r:e.id-t.id})),{first:x,last:P,views:c}}function j(e){e.preventDefault()}function D(e){var t=0,r=e.length;while(t1&&void 0!==arguments[1]?arguments[1]:\"document.pdf\";if(\"string\"!==typeof e)return t;if(D(e))return t;var r=/^(?:(?:[^:]+:)?\\/\\/[^\\/]+)?([^?#]*)(\\?[^#]*)?(#.*)?$/,n=/[^\\/?#=]+\\.pdf\\b(?!.*\\.pdf\\b)/i,i=r.exec(e),a=n.exec(i[1])||n.exec(i[2])||n.exec(i[3]);if(a&&(a=a[0],a.includes(\"%\")))try{a=n.exec(decodeURIComponent(a))[0]}catch(o){}return a||t}function N(e){var t=Math.sqrt(e.deltaX*e.deltaX+e.deltaY*e.deltaY),r=Math.atan2(e.deltaY,e.deltaX);-.25*Math.PI=0))throw new Error(\"waitOnEventOrTimeout - invalid parameters.\");function a(n){t instanceof G?t.off(r,s):t.removeEventListener(r,s),l&&clearTimeout(l),e(n)}var s=a.bind(null,B.EVENT);t instanceof G?t.on(r,s):t.addEventListener(r,s);var u=a.bind(null,B.TIMEOUT),l=setTimeout(u,i)}))}var z=new Promise((function(e){\"undefined\"!==typeof window?window.requestAnimationFrame(e):setTimeout(e,20)})),G=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.dispatchToDOM,n=void 0!==r&&r;l(this,e),this._listeners=Object.create(null),this._dispatchToDOM=!0===n}return a(e,[{key:\"on\",value:function(e,t){var r=this._listeners[e];r||(r=[],this._listeners[e]=r),r.push(t)}},{key:\"off\",value:function(e,t){var r=this._listeners[e],n=void 0;!r||(n=r.indexOf(t))<0||r.splice(n,1)}},{key:\"dispatch\",value:function(e){var t=this._listeners[e];if(t&&0!==t.length){var r=Array.prototype.slice.call(arguments,1);t.slice(0).forEach((function(e){e.apply(null,r)})),this._dispatchToDOM&&this._dispatchDOMEvent(e,r)}else if(this._dispatchToDOM){var n=Array.prototype.slice.call(arguments,1);this._dispatchDOMEvent(e,n)}}},{key:\"_dispatchDOMEvent\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this._dispatchToDOM){var r=Object.create(null);if(t&&t.length>0){var n=t[0];for(var i in n){var a=n[i];if(\"source\"!==i)r[i]=a;else if(a===window||a===document)return}}var o=document.createEvent(\"CustomEvent\");o.initCustomEvent(e,!0,!0,r),document.dispatchEvent(o)}}}]),e}();function H(e,t,r){return Math.min(Math.max(e,t),r)}var X=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.height,i=r.width,a=r.units;l(this,e),this.visible=!0,this.div=document.querySelector(t+\" .progress\"),this.bar=this.div.parentNode,this.height=n||100,this.width=i||100,this.units=a||\"%\",this.div.style.height=this.height+this.units,this.percent=0}return a(e,[{key:\"_updateBar\",value:function(){if(this._indeterminate)return this.div.classList.add(\"indeterminate\"),void(this.div.style.width=this.width+this.units);this.div.classList.remove(\"indeterminate\");var e=this.width*this._percent/100;this.div.style.width=e+this.units}},{key:\"setWidth\",value:function(e){if(e){var t=e.parentNode,r=t.offsetWidth-e.offsetWidth;r>0&&this.bar.setAttribute(\"style\",\"width: calc(100% - \"+r+\"px);\")}}},{key:\"hide\",value:function(){this.visible&&(this.visible=!1,this.bar.classList.add(\"hidden\"),document.body.classList.remove(\"loadingInProgress\"))}},{key:\"show\",value:function(){this.visible||(this.visible=!0,document.body.classList.add(\"loadingInProgress\"),this.bar.classList.remove(\"hidden\"))}},{key:\"percent\",get:function(){return this._percent},set:function(e){this._indeterminate=isNaN(e),this._percent=H(e,0,100),this._updateBar()}}]),e}();function V(e,t){for(var r=[],n=e.length,i=0,a=0;a0&&l>u&&(l=u);for(var c=0;c=0?(h=v.substr(0,m),d=v.substr(m+1)):(h=v,d=\"\"),f=decodeURIComponent(h),p=decodeURIComponent(d),n(o,f)?i(o[f])?o[f].push(p):o[f]=[o[f],p]:o[f]=p}return o};var i=Array.isArray||function(e){return\"[object Array]\"===Object.prototype.toString.call(e)}},\"941a\":function(e,t,r){t=e.exports=r(\"2350\")(!0),t.push([e.i,'.annotationLayer{left:0;top:0;right:0;bottom:0}.annotationLayer,.annotationLayer section{position:absolute}.annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%;background:url(\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\") 0 0 repeat}.annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 .10417vw .52083vw #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer}.annotationLayer .buttonWidgetAnnotation.checkBox input,.annotationLayer .buttonWidgetAnnotation.radioButton input,.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .textWidgetAnnotation input,.annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:.46875vw;height:100%;padding:0 .15625vw;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:.46875vw;resize:none}.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .textWidgetAnnotation input[disabled],.annotationLayer .textWidgetAnnotation textarea[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,.annotationLayer .buttonWidgetAnnotation.radioButton input:hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .textWidgetAnnotation input:hover,.annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}.annotationLayer .choiceWidgetAnnotation select:focus,.annotationLayer .textWidgetAnnotation input:focus,.annotationLayer .textWidgetAnnotation textarea:focus{background:none;border:1px solid transparent}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:.10417vw;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}.annotationLayer .buttonWidgetAnnotation.checkBox input,.annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none}.annotationLayer .popupWrapper{position:absolute;width:20em}.annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 .10417vw .26042vw #333;border-radius:.10417vw;padding:.6em;margin-left:.26042vw;cursor:pointer;word-wrap:break-word}.annotationLayer .popup h1{font-size:1em;border-bottom:1px solid #000;padding-bottom:.2em}.annotationLayer .popup p{padding-top:.2em}.annotationLayer .fileAttachmentAnnotation,.annotationLayer .highlightAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .underlineAnnotation{cursor:pointer}',\"\",{version:3,sources:[\"D:/jenkins/workspace/ljzc-fvue/node_modules/vue-pdf/src/D:/jenkins/workspace/ljzc-fvue/node_modules/vue-pdf/src/D:/jenkins/workspace/ljzc-fvue/node_modules/vue-pdf/src/annotationLayer.css\"],names:[],mappings:\"AAEA,iBAEC,OACA,MACA,QACA,QACD,CAEA,0CAPC,iBASD,CAEA,mCACC,kBACA,cACA,MACA,OACA,WACA,YAIA,2GAHD,CAMA,yCACC,WACA,gBACA,mCACD,CAEA,qCACC,kBACA,cACD,CAEA,gQAKC,oCACA,6BACA,sBACA,mBACA,YACA,mBACA,mBACA,UACD,CAEA,gDACC,iBACA,mBACA,WACD,CAEA,kTAKC,gBACA,6BACA,kBACD,CAEA,8RAKC,qBACD,CAEA,+JAGC,gBACA,4BACD,CAEA,kDACC,sBACA,sBACA,eACD,CAEA,wDAOC,UACD,CAEA,mHAEC,wBACA,qBACA,oBACA,eACD,CAEA,+BACC,kBACA,UACD,CAEA,wBACC,kBACA,YACA,eACA,sBACA,oCACA,uBACA,aACA,qBACA,eACA,oBACD,CAEA,2BACC,cACA,6BACA,mBACD,CAEA,0BACC,gBACD,CAEA,4OAMC,cACD,CAAA\",file:\"annotationLayer.css?vue&type=style&index=0&lang=css&\",sourcesContent:['/* see https://github.com/mozilla/pdf.js/blob/55a853b6678cf3d05681ffbb521e5228e607b5d2/test/annotation_layer_test.css */\\r\\n\\r\\n.annotationLayer {\\r\\n\\tposition: absolute;\\r\\n\\tleft: 0;\\r\\n\\ttop: 0;\\r\\n\\tright: 0;\\r\\n\\tbottom: 0;\\r\\n}\\r\\n\\r\\n.annotationLayer section {\\r\\n\\tposition: absolute;\\r\\n}\\r\\n\\r\\n.annotationLayer .linkAnnotation > a {\\r\\n\\tposition: absolute;\\r\\n\\tfont-size: 1em;\\r\\n\\ttop: 0;\\r\\n\\tleft: 0;\\r\\n\\twidth: 100%;\\r\\n\\theight: 100%;\\r\\n}\\r\\n\\r\\n.annotationLayer .linkAnnotation > a /* -ms-a */ {\\r\\n\\tbackground: url(\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\") 0 0 repeat;\\r\\n}\\r\\n\\r\\n.annotationLayer .linkAnnotation > a:hover {\\r\\n\\topacity: 0.2;\\r\\n\\tbackground: #ff0;\\r\\n\\tbox-shadow: 0px 2px 10px #ff0;\\r\\n}\\r\\n\\r\\n.annotationLayer .textAnnotation img {\\r\\n\\tposition: absolute;\\r\\n\\tcursor: pointer;\\r\\n}\\r\\n\\r\\n.annotationLayer .textWidgetAnnotation input,\\r\\n.annotationLayer .textWidgetAnnotation textarea,\\r\\n.annotationLayer .choiceWidgetAnnotation select,\\r\\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\\r\\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\\r\\n\\tbackground-color: rgba(0, 54, 255, 0.13);\\r\\n\\tborder: 1px solid transparent;\\r\\n\\tbox-sizing: border-box;\\r\\n\\tfont-size: 9px;\\r\\n\\theight: 100%;\\r\\n\\tpadding: 0 3px;\\r\\n\\tvertical-align: top;\\r\\n\\twidth: 100%;\\r\\n}\\r\\n\\r\\n.annotationLayer .textWidgetAnnotation textarea {\\r\\n\\tfont: message-box;\\r\\n\\tfont-size: 9px;\\r\\n\\tresize: none;\\r\\n}\\r\\n\\r\\n.annotationLayer .textWidgetAnnotation input[disabled],\\r\\n.annotationLayer .textWidgetAnnotation textarea[disabled],\\r\\n.annotationLayer .choiceWidgetAnnotation select[disabled],\\r\\n.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],\\r\\n.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {\\r\\n\\tbackground: none;\\r\\n\\tborder: 1px solid transparent;\\r\\n\\tcursor: not-allowed;\\r\\n}\\r\\n\\r\\n.annotationLayer .textWidgetAnnotation input:hover,\\r\\n.annotationLayer .textWidgetAnnotation textarea:hover,\\r\\n.annotationLayer .choiceWidgetAnnotation select:hover,\\r\\n.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,\\r\\n.annotationLayer .buttonWidgetAnnotation.radioButton input:hover {\\r\\n\\tborder: 1px solid #000;\\r\\n}\\r\\n\\r\\n.annotationLayer .textWidgetAnnotation input:focus,\\r\\n.annotationLayer .textWidgetAnnotation textarea:focus,\\r\\n.annotationLayer .choiceWidgetAnnotation select:focus {\\r\\n\\tbackground: none;\\r\\n\\tborder: 1px solid transparent;\\r\\n}\\r\\n\\r\\n.annotationLayer .textWidgetAnnotation input.comb {\\r\\n\\tfont-family: monospace;\\r\\n\\tpadding-left: 2px;\\r\\n\\tpadding-right: 0;\\r\\n}\\r\\n\\r\\n.annotationLayer .textWidgetAnnotation input.comb:focus {\\r\\n\\t/*\\r\\n\\t * Letter spacing is placed on the right side of each character. Hence, the\\r\\n\\t * letter spacing of the last character may be placed outside the visible\\r\\n\\t * area, causing horizontal scrolling. We avoid this by extending the width\\r\\n\\t * when the element has focus and revert this when it loses focus.\\r\\n\\t */\\r\\n\\twidth: 115%;\\r\\n}\\r\\n\\r\\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\\r\\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\\r\\n\\t-webkit-appearance: none;\\r\\n\\t-moz-appearance: none;\\r\\n\\t-ms-appearance: none;\\r\\n\\tappearance: none;\\r\\n}\\r\\n\\r\\n.annotationLayer .popupWrapper {\\r\\n\\tposition: absolute;\\r\\n\\twidth: 20em;\\r\\n}\\r\\n\\r\\n.annotationLayer .popup {\\r\\n\\tposition: absolute;\\r\\n\\tz-index: 200;\\r\\n\\tmax-width: 20em;\\r\\n\\tbackground-color: #FFFF99;\\r\\n\\tbox-shadow: 0px 2px 5px #333;\\r\\n\\tborder-radius: 2px;\\r\\n\\tpadding: 0.6em;\\r\\n\\tmargin-left: 5px;\\r\\n\\tcursor: pointer;\\r\\n\\tword-wrap: break-word;\\r\\n}\\r\\n\\r\\n.annotationLayer .popup h1 {\\r\\n\\tfont-size: 1em;\\r\\n\\tborder-bottom: 1px solid #000000;\\r\\n\\tpadding-bottom: 0.2em;\\r\\n}\\r\\n\\r\\n.annotationLayer .popup p {\\r\\n\\tpadding-top: 0.2em;\\r\\n}\\r\\n\\r\\n.annotationLayer .highlightAnnotation,\\r\\n.annotationLayer .underlineAnnotation,\\r\\n.annotationLayer .squigglyAnnotation,\\r\\n.annotationLayer .strikeoutAnnotation,\\r\\n.annotationLayer .lineAnnotation svg line,\\r\\n.annotationLayer .fileAttachmentAnnotation {\\r\\n\\tcursor: pointer;\\r\\n}\\r\\n'],sourceRoot:\"\"}])},9511:function(e,t,r){(function(t,n,i){(function(t,r){e.exports=r()})(0,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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 n=Object.create(null);if(r.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},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 n=r(1),i=r(129),a=r(145),o=r(146),s=r(130),u=r(147),l=r(135),c=r(132),h=r(4);if(h()){var d=r(148).PDFNodeStream;i.setPDFNetworkStreamFactory((function(e){return new d(e)}))}else if(\"undefined\"!==typeof Response&&\"body\"in Response.prototype&&\"undefined\"!==typeof ReadableStream){var f=r(151).PDFFetchStream;i.setPDFNetworkStreamFactory((function(e){return new f(e)}))}else{var p=r(152).PDFNetworkStream;i.setPDFNetworkStreamFactory((function(e){return new p(e)}))}t.build=i.build,t.version=i.version,t.getDocument=i.getDocument,t.LoopbackPort=i.LoopbackPort,t.PDFDataRangeTransport=i.PDFDataRangeTransport,t.PDFWorker=i.PDFWorker,t.renderTextLayer=a.renderTextLayer,t.AnnotationLayer=o.AnnotationLayer,t.createPromiseCapability=n.createPromiseCapability,t.PasswordResponses=n.PasswordResponses,t.InvalidPDFException=n.InvalidPDFException,t.MissingPDFException=n.MissingPDFException,t.SVGGraphics=u.SVGGraphics,t.NativeImageDecoding=n.NativeImageDecoding,t.CMapCompressionType=n.CMapCompressionType,t.PermissionFlag=n.PermissionFlag,t.UnexpectedResponseException=n.UnexpectedResponseException,t.OPS=n.OPS,t.VerbosityLevel=n.VerbosityLevel,t.UNSUPPORTED_FEATURES=n.UNSUPPORTED_FEATURES,t.createValidAbsoluteUrl=n.createValidAbsoluteUrl,t.createObjectURL=n.createObjectURL,t.removeNullCharacters=n.removeNullCharacters,t.shadow=n.shadow,t.Util=n.Util,t.ReadableStream=n.ReadableStream,t.URL=n.URL,t.RenderingCancelledException=s.RenderingCancelledException,t.getFilenameFromUrl=s.getFilenameFromUrl,t.LinkTarget=s.LinkTarget,t.addLinkAttributes=s.addLinkAttributes,t.loadScript=s.loadScript,t.GlobalWorkerOptions=l.GlobalWorkerOptions,t.apiCompatibilityParams=c.apiCompatibilityParams},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 n=\"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(2);var i=r(125),a=r(127),o=[1,0,0,1,0,0],s=[.001,0,0,.001,0,0],u={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},c={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},d={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},f={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},p={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},v={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},m={UNKNOWN:0,FLATE:1,LZW:2,DCT:3,JPX:4,JBIG:5,A85:6,AHX:7,CCF:8,RL:9},g={UNKNOWN:0,TYPE1:1,TYPE1C:2,CIDFONTTYPE0:3,CIDFONTTYPE0C:4,TRUETYPE:5,CIDFONTTYPE2:6,TYPE3:7,OPENTYPE:8,TYPE0:9,MMTYPE1:10},y={ERRORS:0,WARNINGS:1,INFOS:5},b={NONE:0,BINARY:1,STREAM:2},_={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},A={unknown:\"unknown\",forms:\"forms\",javaScript:\"javaScript\",smask:\"smask\",shadingPattern:\"shadingPattern\",font:\"font\"},w={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},S=y.WARNINGS;function C(e){Number.isInteger(e)&&(S=e)}function k(){return S}function x(e){y.INFOS}function P(e){y.WARNINGS}function R(e){}function E(e){throw new Error(e)}function T(e,t){e||E(t)}function O(e,t){try{var r=new a.URL(e);if(!r.origin||\"null\"===r.origin)return!1}catch(i){return!1}var n=new a.URL(t,r);return r.origin===n.origin}function L(e){if(!e)return!1;switch(e.protocol){case\"http:\":case\"https:\":case\"ftp:\":case\"mailto:\":case\"tel:\":return!0;default:return!1}}function F(e,t){if(!e)return null;try{var r=t?new a.URL(e,t):new a.URL(e);if(L(r))return r}catch(n){}return null}function I(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}function j(e){var t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}}var D=function(){function e(e,t){this.name=\"PasswordException\",this.message=e,this.code=t}return e.prototype=new Error,e.constructor=e,e}(),M=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}(),q=function(){function e(e){this.name=\"MissingPDFException\",this.message=e}return e.prototype=new Error,e.constructor=e,e}(),W=function(){function e(e,t){this.name=\"UnexpectedResponseException\",this.message=e,this.status=t}return e.prototype=new Error,e.constructor=e,e}(),B=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}(),U=function(){function e(e){this.message=e}return e.prototype=new Error,e.prototype.name=\"XRefParseException\",e.constructor=e,e}(),z=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}(),H=/\\x00/g;function X(e){return\"string\"!==typeof e?(P(\"The argument for removeNullCharacters must be a string.\"),e):e.replace(H,\"\")}function V(e){T(null!==e&&\"object\"===(\"undefined\"===typeof e?\"undefined\":n(e))&&void 0!==e.length,\"Invalid argument for bytesToString\");var t=e.length,r=8192;if(t>24&255,e>>16&255,e>>8&255,255&e)}function J(e){return e<=0?0:Math.ceil(Math.log2(e))}function Z(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 ne(){try{return new Function(\"\"),!0}catch(e){return!1}}function ie(e){var t=e.dict,r=e.key,n=e.getArray,i=void 0!==n&&n,a=e.stopWhenFound,o=void 0===a||a,s=100,u=0,l=void 0;while(t){var c=i?t.getArray(r):t.get(r);if(void 0!==c){if(o)return c;l||(l=[]),l.push(c)}if(++u>s){P('getInheritableProperty: maximum loop count exceeded for \"'+r+'\"');break}t=t.get(\"Parent\")}return l}var ae=function(){function e(){}var t=[\"rgb(\",0,\",\",0,\",\",0,\")\"];return e.makeCssRgb=function(e,r,n){return t[1]=e,t[3]=r,t[5]=n,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],n=e[0]*t[1]+e[1]*t[3]+t[5];return[r,n]},e.applyInverseTransform=function(e,t){var r=t[0]*t[3]-t[1]*t[2],n=(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[n,i]},e.getAxialAlignedBoundingBox=function(t,r){var n=e.applyTransform(t,r),i=e.applyTransform(t.slice(2,4),r),a=e.applyTransform([t[0],t[3]],r),o=e.applyTransform([t[2],t[1]],r);return[Math.min(n[0],i[0],a[0],o[0]),Math.min(n[1],i[1],a[1],o[1]),Math.max(n[0],i[0],a[0],o[0]),Math.max(n[1],i[1],a[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],n=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],a=e[2]*t[1]+e[3]*t[3],o=(r+a)/2,s=Math.sqrt((r+a)*(r+a)-4*(r*a-i*n))/2,u=o+s||1,l=o-s||1;return[Math.sqrt(u),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 n(e,t){return e-t}var i=[t[0],t[2],r[0],r[2]].sort(n),a=[t[1],t[3],r[1],r[3]].sort(n),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],(a[0]===t[1]&&a[1]===r[1]||a[0]===r[1]&&a[1]===t[1])&&(o[1]=a[1],o[3]=a[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,n=[];while(e>=1e3)e-=1e3,n.push(\"M\");r=e/100|0,e%=100,n.push(oe[r]),r=e/10|0,e%=10,n.push(oe[10+r]),n.push(oe[20+e]);var i=n.join(\"\");return t?i.toLowerCase():i}var ue=[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,n=[];if(\"þ\"===e[0]&&\"ÿ\"===e[1])for(t=2;t2&&void 0!==arguments[2]&&arguments[2];if(!n&&a.URL.createObjectURL){var i=new Blob([t],{type:r});return a.URL.createObjectURL(i)}for(var o=\"data:\"+r+\";base64,\",s=0,u=t.length;s>2,f=(3&l)<<4|c>>4,p=s+1>6:64,v=s+21){var r=!!arguments[1];return this[r?\"add\":\"remove\"](e),r}return t(e)}}}}(),function(){String.prototype.includes||n(5)}(),function(){Array.prototype.includes||n(33)}(),function(){Object.assign||n(42)}(),function(){Math.log2||(Math.log2=n(52))}(),function(){Number.isNaN||(Number.isNaN=n(54))}(),function(){Number.isInteger||(Number.isInteger=n(56))}(),function(){a.Promise||(a.Promise=n(59))}(),function(){a.WeakMap||(a.WeakMap=n(94))}(),function(){String.codePointAt||(String.codePointAt=n(111))}(),function(){String.fromCodePoint||(String.fromCodePoint=n(113))}(),function(){a.Symbol||n(115)}(),function(){Object.values||(Object.values=n(122))}()}},function(e,t,r){\"use strict\";e.exports=\"undefined\"!==typeof window&&window.Math===Math?window:\"undefined\"!==typeof n&&n.Math===Math?n:\"undefined\"!==typeof self&&self.Math===Math?self:{}},function(e,t,r){\"use strict\";var n=\"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 i?\"undefined\":n(i))&&i+\"\"===\"[object process]\"}},function(e,t,r){\"use strict\";r(6),e.exports=r(9).String.includes},function(e,t,r){\"use strict\";var n=r(7),i=r(25),a=\"includes\";n(n.P+n.F*r(32)(a),\"String\",{includes:function(e){return!!~i(this,e,a).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){\"use strict\";var n=r(8),i=r(9),a=r(10),o=r(20),s=r(23),u=\"prototype\",l=function e(t,r,l){var c,h,d,f,p=t&e.F,v=t&e.G,m=t&e.S,g=t&e.P,y=t&e.B,b=v?n:m?n[r]||(n[r]={}):(n[r]||{})[u],_=v?i:i[r]||(i[r]={}),A=_[u]||(_[u]={});for(c in v&&(l=r),l)h=!p&&b&&void 0!==b[c],d=(h?b:l)[c],f=y&&h?s(d,n):g&&\"function\"==typeof d?s(Function.call,d):d,b&&o(b,c,d,t&e.U),_[c]!=d&&a(_,c,f),g&&A[c]!=d&&(A[c]=d)};n.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 n=e.exports=\"undefined\"!=typeof window&&window.Math==Math?window:\"undefined\"!=typeof self&&self.Math==Math?self:Function(\"return this\")();\"number\"==typeof __g&&(__g=n)},function(e,t,r){\"use strict\";var n=e.exports={version:\"2.5.7\"};\"number\"==typeof __e&&(__e=n)},function(e,t,r){\"use strict\";var n=r(11),i=r(19);e.exports=r(15)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){\"use strict\";var n=r(12),i=r(14),a=r(18),o=Object.defineProperty;t.f=r(15)?Object.defineProperty:function(e,t,r){if(n(e),t=a(t,!0),n(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 n=r(13);e.exports=function(e){if(!n(e))throw TypeError(e+\" is not an object!\");return e}},function(e,t,r){\"use strict\";var n=\"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\":n(e))?null!==e:\"function\"===typeof e}},function(e,t,r){\"use strict\";e.exports=!r(15)&&!r(16)((function(){return 7!=Object.defineProperty(r(17)(\"div\"),\"a\",{get:function(){return 7}}).a}))},function(e,t,r){\"use strict\";e.exports=!r(16)((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 n=r(13),i=r(8).document,a=n(i)&&n(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,r){\"use strict\";var n=r(13);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&\"function\"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if(\"function\"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&\"function\"==typeof(r=e.toString)&&!n(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 n=r(8),i=r(10),a=r(21),o=r(22)(\"src\"),s=\"toString\",u=Function[s],l=(\"\"+u).split(s);r(9).inspectSource=function(e){return u.call(e)},(e.exports=function(e,t,r,s){var u=\"function\"==typeof r;u&&(a(r,\"name\")||i(r,\"name\",t)),e[t]!==r&&(u&&(a(r,o)||i(r,o,e[t]?\"\"+e[t]:l.join(String(t)))),e===n?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]||u.call(this)}))},function(e,t,r){\"use strict\";var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,r){\"use strict\";var n=0,i=Math.random();e.exports=function(e){return\"Symbol(\".concat(void 0===e?\"\":e,\")_\",(++n+i).toString(36))}},function(e,t,r){\"use strict\";var n=r(24);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,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 n=r(26),i=r(31);e.exports=function(e,t,r){if(n(t))throw TypeError(\"String#\"+r+\" doesn't accept regex!\");return String(i(e))}},function(e,t,r){\"use strict\";var n=r(13),i=r(27),a=r(28)(\"match\");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[a])?!!t:\"RegExp\"==i(e))}},function(e,t,r){\"use strict\";var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,r){\"use strict\";var n=r(29)(\"wks\"),i=r(22),a=r(8).Symbol,o=\"function\"==typeof a,s=e.exports=function(e){return n[e]||(n[e]=o&&a[e]||(o?a:i)(\"Symbol.\"+e))};s.store=n},function(e,t,r){\"use strict\";var n=r(9),i=r(8),a=\"__core-js_shared__\",o=i[a]||(i[a]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})(\"versions\",[]).push({version:n.version,mode:r(30)?\"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 n=r(28)(\"match\");e.exports=function(e){var t=/./;try{\"/./\"[e](t)}catch(r){try{return t[n]=!1,!\"/./\"[e](t)}catch(i){}}return!0}},function(e,t,r){\"use strict\";r(34),e.exports=r(9).Array.includes},function(e,t,r){\"use strict\";var n=r(7),i=r(35)(!0);n(n.P,\"Array\",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(41)(\"includes\")},function(e,t,r){\"use strict\";var n=r(36),i=r(38),a=r(40);e.exports=function(e){return function(t,r,o){var s,u=n(t),l=i(u.length),c=a(o,l);if(e&&r!=r){while(l>c)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}}},function(e,t,r){\"use strict\";var n=r(37),i=r(31);e.exports=function(e){return n(i(e))}},function(e,t,r){\"use strict\";var n=r(27);e.exports=Object(\"z\").propertyIsEnumerable(0)?Object:function(e){return\"String\"==n(e)?e.split(\"\"):Object(e)}},function(e,t,r){\"use strict\";var n=r(39),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){\"use strict\";var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,r){\"use strict\";var n=r(39),i=Math.max,a=Math.min;e.exports=function(e,t){return e=n(e),e<0?i(e+t,0):a(e,t)}},function(e,t,r){\"use strict\";var n=r(28)(\"unscopables\"),i=Array.prototype;void 0==i[n]&&r(10)(i,n,{}),e.exports=function(e){i[n][e]=!0}},function(e,t,r){\"use strict\";r(43),e.exports=r(9).Object.assign},function(e,t,r){\"use strict\";var n=r(7);n(n.S+n.F,\"Object\",{assign:r(44)})},function(e,t,r){\"use strict\";var n=r(45),i=r(49),a=r(50),o=r(51),s=r(37),u=Object.assign;e.exports=!u||r(16)((function(){var e={},t={},r=Symbol(),n=\"abcdefghijklmnopqrst\";return e[r]=7,n.split(\"\").forEach((function(e){t[e]=e})),7!=u({},e)[r]||Object.keys(u({},t)).join(\"\")!=n}))?function(e,t){var r=o(e),u=arguments.length,l=1,c=i.f,h=a.f;while(u>l){var d,f=s(arguments[l++]),p=c?n(f).concat(c(f)):n(f),v=p.length,m=0;while(v>m)h.call(f,d=p[m++])&&(r[d]=f[d])}return r}:u},function(e,t,r){\"use strict\";var n=r(46),i=r(48);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t,r){\"use strict\";var n=r(21),i=r(36),a=r(35)(!1),o=r(47)(\"IE_PROTO\");e.exports=function(e,t){var r,s=i(e),u=0,l=[];for(r in s)r!=o&&n(s,r)&&l.push(r);while(t.length>u)n(s,r=t[u++])&&(~a(l,r)||l.push(r));return l}},function(e,t,r){\"use strict\";var n=r(29)(\"keys\"),i=r(22);e.exports=function(e){return n[e]||(n[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 n=r(31);e.exports=function(e){return Object(n(e))}},function(e,t,r){\"use strict\";r(53),e.exports=r(9).Math.log2},function(e,t,r){\"use strict\";var n=r(7);n(n.S,\"Math\",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,r){\"use strict\";r(55),e.exports=r(9).Number.isNaN},function(e,t,r){\"use strict\";var n=r(7);n(n.S,\"Number\",{isNaN:function(e){return e!=e}})},function(e,t,r){\"use strict\";r(57),e.exports=r(9).Number.isInteger},function(e,t,r){\"use strict\";var n=r(7);n(n.S,\"Number\",{isInteger:r(58)})},function(e,t,r){\"use strict\";var n=r(13),i=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},function(e,t,r){\"use strict\";r(60),r(62),r(72),r(75),r(92),r(93),e.exports=r(9).Promise},function(e,t,r){\"use strict\";var n=r(61),i={};i[r(28)(\"toStringTag\")]=\"z\",i+\"\"!=\"[object z]\"&&r(20)(Object.prototype,\"toString\",(function(){return\"[object \"+n(this)+\"]\"}),!0)},function(e,t,r){\"use strict\";var n=r(27),i=r(28)(\"toStringTag\"),a=\"Arguments\"==n(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:a?n(t):\"Object\"==(s=n(t))&&\"function\"==typeof t.callee?\"Arguments\":s}},function(e,t,r){\"use strict\";var n=r(63)(!0);r(64)(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=n(t,r),this._i+=e.length,{value:e,done:!1})}))},function(e,t,r){\"use strict\";var n=r(39),i=r(31);e.exports=function(e){return function(t,r){var a,o,s=String(i(t)),u=n(r),l=s.length;return u<0||u>=l?e?\"\":void 0:(a=s.charCodeAt(u),a<55296||a>56319||u+1===l||(o=s.charCodeAt(u+1))<56320||o>57343?e?s.charAt(u):a:e?s.slice(u,u+2):o-56320+(a-55296<<10)+65536)}}},function(e,t,r){\"use strict\";var n=r(30),i=r(7),a=r(20),o=r(10),s=r(65),u=r(66),l=r(70),c=r(71),h=r(28)(\"iterator\"),d=!([].keys&&\"next\"in[].keys()),f=\"@@iterator\",p=\"keys\",v=\"values\",m=function(){return this};e.exports=function(e,t,r,g,y,b,_){u(r,t,g);var A,w,S,C=function(e){if(!d&&e in R)return R[e];switch(e){case p:return function(){return new r(this,e)};case v:return function(){return new r(this,e)}}return function(){return new r(this,e)}},k=t+\" Iterator\",x=y==v,P=!1,R=e.prototype,E=R[h]||R[f]||y&&R[y],T=E||C(y),O=y?x?C(\"entries\"):T:void 0,L=\"Array\"==t&&R.entries||E;if(L&&(S=c(L.call(new e)),S!==Object.prototype&&S.next&&(l(S,k,!0),n||\"function\"==typeof S[h]||o(S,h,m))),x&&E&&E.name!==v&&(P=!0,T=function(){return E.call(this)}),n&&!_||!d&&!P&&R[h]||o(R,h,T),s[t]=T,s[k]=m,y)if(A={values:x?T:C(v),keys:b?T:C(p),entries:O},_)for(w in A)w in R||a(R,w,A[w]);else i(i.P+i.F*(d||P),t,A);return A}},function(e,t,r){\"use strict\";e.exports={}},function(e,t,r){\"use strict\";var n=r(67),i=r(19),a=r(70),o={};r(10)(o,r(28)(\"iterator\"),(function(){return this})),e.exports=function(e,t,r){e.prototype=n(o,{next:i(1,r)}),a(e,t+\" Iterator\")}},function(e,t,r){\"use strict\";var n=r(12),i=r(68),a=r(48),o=r(47)(\"IE_PROTO\"),s=function(){},u=\"prototype\",l=function(){var e,t=r(17)(\"iframe\"),n=a.length,i=\"<\",o=\">\";t.style.display=\"none\",r(69).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(n--)delete l[u][a[n]];return l()};e.exports=Object.create||function(e,t){var r;return null!==e?(s[u]=n(e),r=new s,s[u]=null,r[o]=e):r=l(),void 0===t?r:i(r,t)}},function(e,t,r){\"use strict\";var n=r(11),i=r(12),a=r(45);e.exports=r(15)?Object.defineProperties:function(e,t){i(e);var r,o=a(t),s=o.length,u=0;while(s>u)n.f(e,r=o[u++],t[r]);return e}},function(e,t,r){\"use strict\";var n=r(8).document;e.exports=n&&n.documentElement},function(e,t,r){\"use strict\";var n=r(11).f,i=r(21),a=r(28)(\"toStringTag\");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,a)&&n(e,a,{configurable:!0,value:t})}},function(e,t,r){\"use strict\";var n=r(21),i=r(51),a=r(47)(\"IE_PROTO\"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,a)?e[a]:\"function\"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,r){\"use strict\";for(var n=r(73),i=r(45),a=r(20),o=r(8),s=r(10),u=r(65),l=r(28),c=l(\"iterator\"),h=l(\"toStringTag\"),d=u.Array,f={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},p=i(f),v=0;v=e.length?(this._t=void 0,i(1)):i(0,\"keys\"==t?r:\"values\"==t?e[r]:[r,e[r]])}),\"values\"),a.Arguments=a.Array,n(\"keys\"),n(\"values\"),n(\"entries\")},function(e,t,r){\"use strict\";e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){\"use strict\";var n,i,a,o,s=r(30),u=r(8),l=r(23),c=r(61),h=r(7),d=r(13),f=r(24),p=r(76),v=r(77),m=r(81),g=r(82).set,y=r(84)(),b=r(85),_=r(86),A=r(87),w=r(88),S=\"Promise\",C=u.TypeError,k=u.process,x=k&&k.versions,P=x&&x.v8||\"\",R=u[S],E=\"process\"==c(k),T=function(){},O=i=b.f,L=!!function(){try{var e=R.resolve(1),t=(e.constructor={})[r(28)(\"species\")]=function(e){e(T,T)};return(E||\"function\"==typeof PromiseRejectionEvent)&&e.then(T)instanceof t&&0!==P.indexOf(\"6.6\")&&-1===A.indexOf(\"Chrome/66\")}catch(n){}}(),F=function(e){var t;return!(!d(e)||\"function\"!=typeof(t=e.then))&&t},I=function(e,t){if(!e._n){e._n=!0;var r=e._c;y((function(){var n=e._v,i=1==e._s,a=0,o=function(t){var r,a,o,s=i?t.ok:t.fail,u=t.resolve,l=t.reject,c=t.domain;try{s?(i||(2==e._h&&M(e),e._h=1),!0===s?r=n:(c&&c.enter(),r=s(n),c&&(c.exit(),o=!0)),r===t.promise?l(C(\"Promise-chain cycle\")):(a=F(r))?a.call(r,u,l):u(r)):l(n)}catch(h){c&&!o&&c.exit(),l(h)}};while(r.length>a)o(r[a++]);e._c=[],e._n=!1,t&&!e._h&&j(e)}))}},j=function(e){g.call(u,(function(){var t,r,n,i=e._v,a=D(e);if(a&&(t=_((function(){E?k.emit(\"unhandledRejection\",i,e):(r=u.onunhandledrejection)?r({promise:e,reason:i}):(n=u.console)&&n.error&&n.error(\"Unhandled promise rejection\",i)})),e._h=E||D(e)?2:1),e._a=void 0,a&&t.e)throw t.v}))},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},M=function(e){g.call(u,(function(){var t;E?k.emit(\"rejectionHandled\",e):(t=u.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()),I(t,!0))},q=function e(t){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw C(\"Promise can't be resolved itself\");(r=F(t))?y((function(){var i={_w:n,_d:!1};try{r.call(t,l(e,i,1),l(N,i,1))}catch(a){N.call(i,a)}})):(n._v=t,n._s=1,I(n,!1))}catch(i){N.call({_w:n,_d:!1},i)}}};L||(R=function(e){p(this,R,S,\"_h\"),f(e),n.call(this);try{e(l(q,this,1),l(N,this,1))}catch(t){N.call(this,t)}},n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(89)(R.prototype,{then:function(e,t){var r=O(m(this,R));return r.ok=\"function\"!=typeof e||e,r.fail=\"function\"==typeof t&&t,r.domain=E?k.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&I(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new n;this.promise=e,this.resolve=l(q,e,1),this.reject=l(N,e,1)},b.f=O=function(e){return e===R||e===o?new a(e):i(e)}),h(h.G+h.W+h.F*!L,{Promise:R}),r(70)(R,S),r(90)(S),o=r(9)[S],h(h.S+h.F*!L,S,{reject:function(e){var t=O(this),r=t.reject;return r(e),t.promise}}),h(h.S+h.F*(s||!L),S,{resolve:function(e){return w(s&&this===o?R:this,e)}}),h(h.S+h.F*!(L&&r(91)((function(e){R.all(e)[\"catch\"](T)}))),S,{all:function(e){var t=this,r=O(t),n=r.resolve,i=r.reject,a=_((function(){var r=[],a=0,o=1;v(e,!1,(function(e){var s=a++,u=!1;r.push(void 0),o++,t.resolve(e).then((function(e){u||(u=!0,r[s]=e,--o||n(r))}),i)})),--o||n(r)}));return a.e&&i(a.v),r.promise},race:function(e){var t=this,r=O(t),n=r.reject,i=_((function(){v(e,!1,(function(e){t.resolve(e).then(r.resolve,n)}))}));return i.e&&n(i.v),r.promise}})},function(e,t,r){\"use strict\";e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+\": incorrect invocation!\");return e}},function(e,t,r){\"use strict\";var n=r(23),i=r(78),a=r(79),o=r(12),s=r(38),u=r(80),l={},c={},h=e.exports=function(e,t,r,h,d){var f,p,v,m,g=d?function(){return e}:u(e),y=n(r,h,t?2:1),b=0;if(\"function\"!=typeof g)throw TypeError(e+\" is not iterable!\");if(a(g)){for(f=s(e.length);f>b;b++)if(m=t?y(o(p=e[b])[0],p[1]):y(e[b]),m===l||m===c)return m}else for(v=g.call(e);!(p=v.next()).done;)if(m=i(v,y,p.value,t),m===l||m===c)return m};h.BREAK=l,h.RETURN=c},function(e,t,r){\"use strict\";var n=r(12);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(o){var a=e[\"return\"];throw void 0!==a&&n(a.call(e)),o}}},function(e,t,r){\"use strict\";var n=r(65),i=r(28)(\"iterator\"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||a[i]===e)}},function(e,t,r){\"use strict\";var n=r(61),i=r(28)(\"iterator\"),a=r(65);e.exports=r(9).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e[\"@@iterator\"]||a[n(e)]}},function(e,t,r){\"use strict\";var n=r(12),i=r(24),a=r(28)(\"species\");e.exports=function(e,t){var r,o=n(e).constructor;return void 0===o||void 0==(r=n(o)[a])?t:i(r)}},function(e,t,r){\"use strict\";var n,i,a,o=r(23),s=r(83),u=r(69),l=r(17),c=r(8),h=c.process,d=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,v=c.Dispatch,m=0,g={},y=\"onreadystatechange\",b=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},_=function(e){b.call(e.data)};d&&f||(d=function(e){var t=[],r=1;while(arguments.length>r)t.push(arguments[r++]);return g[++m]=function(){s(\"function\"==typeof e?e:Function(e),t)},n(m),m},f=function(e){delete g[e]},\"process\"==r(27)(h)?n=function(e){h.nextTick(o(b,e,1))}:v&&v.now?n=function(e){v.now(o(b,e,1))}:p?(i=new p,a=i.port2,i.port1.onmessage=_,n=o(a.postMessage,a,1)):c.addEventListener&&\"function\"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+\"\",\"*\")},c.addEventListener(\"message\",_,!1)):n=y in l(\"script\")?function(e){u.appendChild(l(\"script\"))[y]=function(){u.removeChild(this),b.call(e)}}:function(e){setTimeout(o(b,e,1),0)}),e.exports={set:d,clear:f}},function(e,t,r){\"use strict\";e.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?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 n=r(8),i=r(82).set,a=n.MutationObserver||n.WebKitMutationObserver,o=n.process,s=n.Promise,u=\"process\"==r(27)(o);e.exports=function(){var e,t,r,l=function(){var n,i;u&&(n=o.domain)&&n.exit();while(e){i=e.fn,e=e.next;try{i()}catch(a){throw e?r():t=void 0,a}}t=void 0,n&&n.enter()};if(u)r=function(){o.nextTick(l)};else if(!a||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);r=function(){c.then(l)}}else r=function(){i.call(n,l)};else{var h=!0,d=document.createTextNode(\"\");new a(l).observe(d,{characterData:!0}),r=function(){d.data=h=!h}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},function(e,t,r){\"use strict\";var n=r(24);function i(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError(\"Bad Promise constructor\");t=e,r=n})),this.resolve=n(t),this.reject=n(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 n=r(8),i=n.navigator;e.exports=i&&i.userAgent||\"\"},function(e,t,r){\"use strict\";var n=r(12),i=r(13),a=r(85);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=a.f(e),o=r.resolve;return o(t),r.promise}},function(e,t,r){\"use strict\";var n=r(20);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},function(e,t,r){\"use strict\";var n=r(8),i=r(11),a=r(15),o=r(28)(\"species\");e.exports=function(e){var t=n[e];a&&t&&!t[o]&&i.f(t,o,{configurable:!0,get:function(){return this}})}},function(e,t,r){\"use strict\";var n=r(28)(\"iterator\"),i=!1;try{var a=[7][n]();a[\"return\"]=function(){i=!0},Array.from(a,(function(){throw 2}))}catch(o){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var a=[7],s=a[n]();s.next=function(){return{done:r=!0}},a[n]=function(){return s},e(a)}catch(o){}return r}},function(e,t,r){\"use strict\";var n=r(7),i=r(9),a=r(8),o=r(81),s=r(88);n(n.P+n.R,\"Promise\",{finally:function(e){var t=o(this,i.Promise||a.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 n=r(7),i=r(85),a=r(86);n(n.S,\"Promise\",{try:function(e){var t=i.f(this),r=a(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){\"use strict\";r(60),r(72),r(95),r(107),r(109),e.exports=r(9).WeakMap},function(e,t,r){\"use strict\";var n,i=r(96)(0),a=r(20),o=r(100),s=r(44),u=r(101),l=r(13),c=r(16),h=r(102),d=\"WeakMap\",f=o.getWeak,p=Object.isExtensible,v=u.ufstore,m={},g=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(l(e)){var t=f(e);return!0===t?v(h(this,d)).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(h(this,d),e,t)}},b=e.exports=r(103)(d,g,y,u,!0,!0);c((function(){return 7!=(new b).set((Object.freeze||Object)(m),7).get(m)}))&&(n=u.getConstructor(g,d),s(n.prototype,y),o.NEED=!0,i([\"delete\",\"has\",\"get\",\"set\"],(function(e){var t=b.prototype,r=t[e];a(t,e,(function(t,i){if(l(t)&&!p(t)){this._f||(this._f=new n);var a=this._f[e](t,i);return\"set\"==e?this:a}return r.call(this,t,i)}))})))},function(e,t,r){\"use strict\";var n=r(23),i=r(37),a=r(51),o=r(38),s=r(97);e.exports=function(e,t){var r=1==e,u=2==e,l=3==e,c=4==e,h=6==e,d=5==e||h,f=t||s;return function(t,s,p){for(var v,m,g=a(t),y=i(g),b=n(s,p,3),_=o(y.length),A=0,w=r?f(t,_):u?f(t,0):void 0;_>A;A++)if((d||A in y)&&(v=y[A],m=b(v,A,g),e))if(r)w[A]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return A;case 2:w.push(v)}else if(c)return!1;return h?-1:l||c?c:w}}},function(e,t,r){\"use strict\";var n=r(98);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,r){\"use strict\";var n=r(13),i=r(99),a=r(28)(\"species\");e.exports=function(e){var t;return i(e)&&(t=e.constructor,\"function\"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),n(t)&&(t=t[a],null===t&&(t=void 0))),void 0===t?Array:t}},function(e,t,r){\"use strict\";var n=r(27);e.exports=Array.isArray||function(e){return\"Array\"==n(e)}},function(e,t,r){\"use strict\";var n=\"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=r(22)(\"meta\"),a=r(13),o=r(21),s=r(11).f,u=0,l=Object.isExtensible||function(){return!0},c=!r(16)((function(){return l(Object.preventExtensions({}))})),h=function(e){s(e,i,{value:{i:\"O\"+ ++u,w:{}}})},d=function(e,t){if(!a(e))return\"symbol\"==(\"undefined\"===typeof e?\"undefined\":n(e))?e:(\"string\"==typeof e?\"S\":\"P\")+e;if(!o(e,i)){if(!l(e))return\"F\";if(!t)return\"E\";h(e)}return e[i].i},f=function(e,t){if(!o(e,i)){if(!l(e))return!0;if(!t)return!1;h(e)}return e[i].w},p=function(e){return c&&v.NEED&&l(e)&&!o(e,i)&&h(e),e},v=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:f,onFreeze:p}},function(e,t,r){\"use strict\";var n=r(89),i=r(100).getWeak,a=r(12),o=r(13),s=r(76),u=r(77),l=r(96),c=r(21),h=r(102),d=l(5),f=l(6),p=0,v=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},g=function(e,t){return d(e.a,(function(e){return e[0]===t}))};m.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var r=g(this,e);r?r[1]=t:this.a.push([e,t])},delete:function(e){var t=f(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,a){var l=e((function(e,n){s(e,l,t,\"_i\"),e._t=t,e._i=p++,e._l=void 0,void 0!=n&&u(n,r,e[a],e)}));return n(l.prototype,{delete:function(e){if(!o(e))return!1;var r=i(e);return!0===r?v(h(this,t))[\"delete\"](e):r&&c(r,this._i)&&delete r[this._i]},has:function(e){if(!o(e))return!1;var r=i(e);return!0===r?v(h(this,t)).has(e):r&&c(r,this._i)}}),l},def:function(e,t,r){var n=i(a(t),!0);return!0===n?v(e).set(t,r):n[e._i]=r,e},ufstore:v}},function(e,t,r){\"use strict\";var n=r(13);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError(\"Incompatible receiver, \"+t+\" required!\");return e}},function(e,t,r){\"use strict\";var n=r(8),i=r(7),a=r(20),o=r(89),s=r(100),u=r(77),l=r(76),c=r(13),h=r(16),d=r(91),f=r(70),p=r(104);e.exports=function(e,t,r,v,m,g){var y=n[e],b=y,_=m?\"set\":\"add\",A=b&&b.prototype,w={},S=function(e){var t=A[e];a(A,e,\"delete\"==e||\"has\"==e?function(e){return!(g&&!c(e))&&t.call(this,0===e?0:e)}:\"get\"==e?function(e){return g&&!c(e)?void 0:t.call(this,0===e?0:e)}:\"add\"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if(\"function\"==typeof b&&(g||A.forEach&&!h((function(){(new b).entries().next()})))){var C=new b,k=C[_](g?{}:-0,1)!=C,x=h((function(){C.has(1)})),P=d((function(e){new b(e)})),R=!g&&h((function(){var e=new b,t=5;while(t--)e[_](t,t);return!e.has(-0)}));P||(b=t((function(t,r){l(t,b,e);var n=p(new y,t,b);return void 0!=r&&u(r,m,n[_],n),n})),b.prototype=A,A.constructor=b),(x||R)&&(S(\"delete\"),S(\"has\"),m&&S(\"get\")),(R||k)&&S(_),g&&A.clear&&delete A.clear}else b=v.getConstructor(t,e,m,_),o(b.prototype,r),s.NEED=!0;return f(b,e),w[e]=b,i(i.G+i.W+i.F*(b!=y),w),g||v.setStrong(b,e,m),b}},function(e,t,r){\"use strict\";var n=r(13),i=r(105).set;e.exports=function(e,t,r){var a,o=t.constructor;return o!==r&&\"function\"==typeof o&&(a=o.prototype)!==r.prototype&&n(a)&&i&&i(e,a),e}},function(e,t,r){\"use strict\";var n=r(13),i=r(12),a=function(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+\": can't set as prototype!\")};e.exports={set:Object.setPrototypeOf||(\"__proto__\"in{}?function(e,t,n){try{n=r(23)(Function.call,r(106).f(Object.prototype,\"__proto__\").set,2),n(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,r){return a(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:a}},function(e,t,r){\"use strict\";var n=r(50),i=r(19),a=r(36),o=r(18),s=r(21),u=r(14),l=Object.getOwnPropertyDescriptor;t.f=r(15)?l:function(e,t){if(e=a(e),t=o(t,!0),u)try{return l(e,t)}catch(r){}if(s(e,t))return i(!n.f.call(e,t),e[t])}},function(e,t,r){\"use strict\";r(108)(\"WeakMap\")},function(e,t,r){\"use strict\";var n=r(7);e.exports=function(e){n(n.S,e,{of:function(){var e=arguments.length,t=new Array(e);while(e--)t[e]=arguments[e];return new this(t)}})}},function(e,t,r){\"use strict\";r(110)(\"WeakMap\")},function(e,t,r){\"use strict\";var n=r(7),i=r(24),a=r(23),o=r(77);e.exports=function(e){n(n.S,e,{from:function(e){var t,r,n,s,u=arguments[1];return i(this),t=void 0!==u,t&&i(u),void 0==e?new this:(r=[],t?(n=0,s=a(u,arguments[2],2),o(e,!1,(function(e){r.push(s(e,n++))}))):o(e,!1,r.push,r),new this(r))}})}},function(e,t,r){\"use strict\";r(112),e.exports=r(9).String.codePointAt},function(e,t,r){\"use strict\";var n=r(7),i=r(63)(!1);n(n.P,\"String\",{codePointAt:function(e){return i(this,e)}})},function(e,t,r){\"use strict\";r(114),e.exports=r(9).String.fromCodePoint},function(e,t,r){\"use strict\";var n=r(7),i=r(40),a=String.fromCharCode,o=String.fromCodePoint;n(n.S+n.F*(!!o&&1!=o.length),\"String\",{fromCodePoint:function(e){var t,r=[],n=arguments.length,o=0;while(n>o){if(t=+arguments[o++],i(t,1114111)!==t)throw RangeError(t+\" is not a valid code point\");r.push(t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320))}return r.join(\"\")}})},function(e,t,r){\"use strict\";r(116),r(60),e.exports=r(9).Symbol},function(e,t,r){\"use strict\";var n=\"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=r(8),a=r(21),o=r(15),s=r(7),u=r(20),l=r(100).KEY,c=r(16),h=r(29),d=r(70),f=r(22),p=r(28),v=r(117),m=r(118),g=r(119),y=r(99),b=r(12),_=r(13),A=r(36),w=r(18),S=r(19),C=r(67),k=r(120),x=r(106),P=r(11),R=r(45),E=x.f,T=P.f,O=k.f,L=i.Symbol,F=i.JSON,I=F&&F.stringify,j=\"prototype\",D=p(\"_hidden\"),M=p(\"toPrimitive\"),N={}.propertyIsEnumerable,q=h(\"symbol-registry\"),W=h(\"symbols\"),B=h(\"op-symbols\"),U=Object[j],z=\"function\"==typeof L,G=i.QObject,H=!G||!G[j]||!G[j].findChild,X=o&&c((function(){return 7!=C(T({},\"a\",{get:function(){return T(this,\"a\",{value:7}).a}})).a}))?function(e,t,r){var n=E(U,t);n&&delete U[t],T(e,t,r),n&&e!==U&&T(U,t,n)}:T,V=function(e){var t=W[e]=C(L[j]);return t._k=e,t},Y=z&&\"symbol\"==n(L.iterator)?function(e){return\"symbol\"==(\"undefined\"===typeof e?\"undefined\":n(e))}:function(e){return e instanceof L},Q=function(e,t,r){return e===U&&Q(B,t,r),b(e),t=w(t,!0),b(r),a(W,t)?(r.enumerable?(a(e,D)&&e[D][t]&&(e[D][t]=!1),r=C(r,{enumerable:S(0,!1)})):(a(e,D)||T(e,D,S(1,{})),e[D][t]=!0),X(e,t,r)):T(e,t,r)},$=function(e,t){b(e);var r,n=g(t=A(t)),i=0,a=n.length;while(a>i)Q(e,r=n[i++],t[r]);return e},K=function(e,t){return void 0===t?C(e):$(C(e),t)},J=function(e){var t=N.call(this,e=w(e,!0));return!(this===U&&a(W,e)&&!a(B,e))&&(!(t||!a(this,e)||!a(W,e)||a(this,D)&&this[D][e])||t)},Z=function(e,t){if(e=A(e),t=w(t,!0),e!==U||!a(W,t)||a(B,t)){var r=E(e,t);return!r||!a(W,t)||a(e,D)&&e[D][t]||(r.enumerable=!0),r}},ee=function(e){var t,r=O(A(e)),n=[],i=0;while(r.length>i)a(W,t=r[i++])||t==D||t==l||n.push(t);return n},te=function(e){var t,r=e===U,n=O(r?B:A(e)),i=[],o=0;while(n.length>o)!a(W,t=n[o++])||r&&!a(U,t)||i.push(W[t]);return i};z||(L=function(){if(this instanceof L)throw TypeError(\"Symbol is not a constructor!\");var e=f(arguments.length>0?arguments[0]:void 0),t=function t(r){this===U&&t.call(B,r),a(this,D)&&a(this[D],e)&&(this[D][e]=!1),X(this,e,S(1,r))};return o&&H&&X(U,e,{configurable:!0,set:t}),V(e)},u(L[j],\"toString\",(function(){return this._k})),x.f=Z,P.f=Q,r(121).f=k.f=ee,r(50).f=J,r(49).f=te,o&&!r(30)&&u(U,\"propertyIsEnumerable\",J,!0),v.f=function(e){return V(p(e))}),s(s.G+s.W+s.F*!z,{Symbol:L});for(var re=\"hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables\".split(\",\"),ne=0;re.length>ne;)p(re[ne++]);for(var ie=R(p.store),ae=0;ie.length>ae;)m(ie[ae++]);s(s.S+s.F*!z,\"Symbol\",{for:function(e){return a(q,e+=\"\")?q[e]:q[e]=L(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+\" is not a symbol!\");for(var t in q)if(q[t]===e)return t},useSetter:function(){H=!0},useSimple:function(){H=!1}}),s(s.S+s.F*!z,\"Object\",{create:K,defineProperty:Q,defineProperties:$,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te}),F&&s(s.S+s.F*(!z||c((function(){var e=L();return\"[null]\"!=I([e])||\"{}\"!=I({a:e})||\"{}\"!=I(Object(e))}))),\"JSON\",{stringify:function(e){var t,r,n=[e],i=1;while(arguments.length>i)n.push(arguments[i++]);if(r=t=n[1],(_(t)||void 0!==e)&&!Y(e))return y(t)||(t=function(e,t){if(\"function\"==typeof r&&(t=r.call(this,e,t)),!Y(t))return t}),n[1]=t,I.apply(F,n)}}),L[j][M]||r(10)(L[j],M,L[j].valueOf),d(L,\"Symbol\"),d(Math,\"Math\",!0),d(i.JSON,\"JSON\",!0)},function(e,t,r){\"use strict\";t.f=r(28)},function(e,t,r){\"use strict\";var n=r(8),i=r(9),a=r(30),o=r(117),s=r(11).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=a?{}:n.Symbol||{});\"_\"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},function(e,t,r){\"use strict\";var n=r(45),i=r(49),a=r(50);e.exports=function(e){var t=n(e),r=i.f;if(r){var o,s=r(e),u=a.f,l=0;while(s.length>l)u.call(e,o=s[l++])&&t.push(o)}return t}},function(e,t,r){\"use strict\";var n=\"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=r(36),a=r(121).f,o={}.toString,s=\"object\"==(\"undefined\"===typeof window?\"undefined\":n(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return a(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&\"[object Window]\"==o.call(e)?u(e):a(i(e))}},function(e,t,r){\"use strict\";var n=r(46),i=r(48).concat(\"length\",\"prototype\");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){\"use strict\";r(123),e.exports=r(9).Object.values},function(e,t,r){\"use strict\";var n=r(7),i=r(124)(!1);n(n.S,\"Object\",{values:function(e){return i(e)}})},function(e,t,r){\"use strict\";var n=r(45),i=r(36),a=r(50).f;e.exports=function(e){return function(t){var r,o=i(t),s=n(o),u=s.length,l=0,c=[];while(u>l)a.call(o,r=s[l++])&&c.push(e?[r,o[r]]:o[r]);return c}}},function(e,t,r){\"use strict\";var n=!1;if(\"undefined\"!==typeof ReadableStream)try{new ReadableStream({start:function(e){e.close()}}),n=!0}catch(i){}t.ReadableStream=n?ReadableStream:r(126).ReadableStream},function(e,t,r){\"use strict\";var n=\"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};(function(e,t){for(var r in t)e[r]=t[r]})(t,function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},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=7)}([function(e,t,r){var i=\"function\"===typeof Symbol&&\"symbol\"===n(Symbol.iterator)?function(e){return\"undefined\"===typeof e?\"undefined\":n(e)}:function(e){return e&&\"function\"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":\"undefined\"===typeof e?\"undefined\":n(e)},a=r(1),o=a.assert;function s(e){return\"string\"===typeof e||\"symbol\"===(\"undefined\"===typeof e?\"undefined\":i(e))}function u(e,t,r){if(\"function\"!==typeof e)throw new TypeError(\"Argument is not a function\");return Function.prototype.apply.call(e,t,r)}t.typeIsObject=function(e){return\"object\"===(\"undefined\"===typeof e?\"undefined\":i(e))&&null!==e||\"function\"===typeof e},t.createDataProperty=function(e,r,n){o(t.typeIsObject(e)),Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})},t.createArrayFromList=function(e){return e.slice()},t.ArrayBufferCopy=function(e,t,r,n,i){new Uint8Array(e).set(new Uint8Array(r,n,i),t)},t.CreateIterResultObject=function(e,t){o(\"boolean\"===typeof t);var r={};return Object.defineProperty(r,\"value\",{value:e,enumerable:!0,writable:!0,configurable:!0}),Object.defineProperty(r,\"done\",{value:t,enumerable:!0,writable:!0,configurable:!0}),r},t.IsFiniteNonNegativeNumber=function(e){return!Number.isNaN(e)&&(e!==1/0&&!(e<0))},t.InvokeOrNoop=function(e,t,r){o(void 0!==e),o(s(t)),o(Array.isArray(r));var n=e[t];if(void 0!==n)return u(n,e,r)},t.PromiseInvokeOrNoop=function(e,r,n){o(void 0!==e),o(s(r)),o(Array.isArray(n));try{return Promise.resolve(t.InvokeOrNoop(e,r,n))}catch(i){return Promise.reject(i)}},t.PromiseInvokeOrPerformFallback=function(e,t,r,n,i){o(void 0!==e),o(s(t)),o(Array.isArray(r)),o(Array.isArray(i));var a=void 0;try{a=e[t]}catch(l){return Promise.reject(l)}if(void 0===a)return n.apply(null,i);try{return Promise.resolve(u(a,e,r))}catch(c){return Promise.reject(c)}},t.TransferArrayBuffer=function(e){return e.slice()},t.ValidateAndNormalizeHighWaterMark=function(e){if(e=Number(e),Number.isNaN(e)||e<0)throw new RangeError(\"highWaterMark property of a queuing strategy must be non-negative and non-NaN\");return e},t.ValidateAndNormalizeQueuingStrategy=function(e,r){if(void 0!==e&&\"function\"!==typeof e)throw new TypeError(\"size property of a queuing strategy must be a function\");return r=t.ValidateAndNormalizeHighWaterMark(r),{size:e,highWaterMark:r}}},function(e,t,r){function n(e){e&&e.constructor===i&&setTimeout((function(){throw e}),0)}function i(e){this.name=\"AssertionError\",this.message=e||\"\",this.stack=(new Error).stack}function a(e,t){if(!e)throw new i(t)}i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,e.exports={rethrowAssertionErrorRejection:n,AssertionError:i,assert:a}},function(e,t,r){var n=function(){function e(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.size,a=r.highWaterMark,o=void 0===a?1:a;i(this,e),this._state=\"writable\",this._storedError=void 0,this._writer=void 0,this._writableStreamController=void 0,this._writeRequests=[],this._inFlightWriteRequest=void 0,this._closeRequest=void 0,this._inFlightCloseRequest=void 0,this._pendingAbortRequest=void 0,this._backpressure=!1;var s=t.type;if(void 0!==s)throw new RangeError(\"Invalid type is specified\");this._writableStreamController=new V(this,t,n,o),this._writableStreamController.__startSteps()}return n(e,[{key:\"abort\",value:function(e){return!1===_(this)?Promise.reject(ae(\"abort\")):!0===A(this)?Promise.reject(new TypeError(\"Cannot abort a stream that already has a writer\")):w(this,e)}},{key:\"getWriter\",value:function(){if(!1===_(this))throw ae(\"getWriter\");return b(this)}},{key:\"locked\",get:function(){if(!1===_(this))throw ae(\"locked\");return A(this)}}]),e}();function b(e){return new M(e)}function _(e){return!!l(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_writableStreamController\")}function A(e){return h(!0===_(e),\"IsWritableStreamLocked should only be used on known writable streams\"),void 0!==e._writer}function w(e,t){var r=e._state;if(\"closed\"===r)return Promise.resolve(void 0);if(\"errored\"===r)return Promise.reject(e._storedError);var n=new TypeError(\"Requested to abort\");if(void 0!==e._pendingAbortRequest)return Promise.reject(n);h(\"writable\"===r||\"erroring\"===r,\"state must be writable or erroring\");var i=!1;\"erroring\"===r&&(i=!0,t=void 0);var a=new Promise((function(r,n){e._pendingAbortRequest={_resolve:r,_reject:n,_reason:t,_wasAlreadyErroring:i}}));return!1===i&&k(e,n),a}function S(e){h(!0===A(e)),h(\"writable\"===e._state);var t=new Promise((function(t,r){var n={_resolve:t,_reject:r};e._writeRequests.push(n)}));return t}function C(e,t){var r=e._state;\"writable\"!==r?(h(\"erroring\"===r),x(e)):k(e,t)}function k(e,t){h(void 0===e._storedError,\"stream._storedError === undefined\"),h(\"writable\"===e._state,\"state must be writable\");var r=e._writableStreamController;h(void 0!==r,\"controller must not be undefined\"),e._state=\"erroring\",e._storedError=t;var n=e._writer;void 0!==n&&z(n,t),!1===L(e)&&!0===r._started&&x(e)}function x(e){h(\"erroring\"===e._state,\"stream._state === erroring\"),h(!1===L(e),\"WritableStreamHasOperationMarkedInFlight(stream) === false\"),e._state=\"errored\",e._writableStreamController.__errorSteps();for(var t=e._storedError,r=0;r0,\"Spec-level failure: should never dequeue from an empty queue.\");var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value},t.EnqueueValueWithSize=function(e,t,r){if(o(\"_queue\"in e&&\"_queueTotalSize\"in e,\"Spec-level failure: EnqueueValueWithSize should only be used on containers with [[queue]] and [[queueTotalSize]].\"),r=Number(r),!i(r))throw new RangeError(\"Size must be a finite, non-NaN, non-negative number.\");e._queue.push({value:t,size:r}),e._queueTotalSize+=r},t.PeekQueueValue=function(e){o(\"_queue\"in e&&\"_queueTotalSize\"in e,\"Spec-level failure: PeekQueueValue should only be used on containers with [[queue]] and [[queueTotalSize]].\"),o(e._queue.length>0,\"Spec-level failure: should never peek at an empty queue.\");var t=e._queue[0];return t.value},t.ResetQueue=function(e){o(\"_queue\"in e&&\"_queueTotalSize\"in e,\"Spec-level failure: ResetQueue should only be used on containers with [[queue]] and [[queueTotalSize]].\"),e._queue=[],e._queueTotalSize=0}},function(e,t,r){var n=function(){function e(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.size,a=r.highWaterMark;i(this,e),this._state=\"readable\",this._reader=void 0,this._storedError=void 0,this._disturbed=!1,this._readableStreamController=void 0;var o=t.type,s=String(o);if(\"bytes\"===s)void 0===a&&(a=0),this._readableStreamController=new _e(this,t,a);else{if(void 0!==o)throw new RangeError(\"Invalid type is specified\");void 0===a&&(a=1),this._readableStreamController=new ce(this,t,n,a)}}return n(e,[{key:\"cancel\",value:function(e){return!1===M(this)?Promise.reject(He(\"cancel\")):!0===q(this)?Promise.reject(new TypeError(\"Cannot cancel a stream that already has a reader\")):X(this,e)}},{key:\"getReader\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mode;if(!1===M(this))throw He(\"getReader\");if(void 0===t)return D(this);if(t=String(t),\"byob\"===t)return j(this);throw new RangeError(\"Invalid mode is specified\")}},{key:\"pipeThrough\",value:function(e,t){var r=e.writable,n=e.readable,i=this.pipeTo(r,t);return it(i),n}},{key:\"pipeTo\",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.preventClose,i=r.preventAbort,a=r.preventCancel;if(!1===M(this))return Promise.reject(He(\"pipeTo\"));if(!1===P(e))return Promise.reject(new TypeError(\"ReadableStream.prototype.pipeTo's first argument must be a WritableStream\"));if(n=Boolean(n),i=Boolean(i),a=Boolean(a),!0===q(this))return Promise.reject(new TypeError(\"ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream\"));if(!0===R(e))return Promise.reject(new TypeError(\"ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream\"));var o=D(this),s=x(e),u=!1,l=Promise.resolve();return new Promise((function(r,c){function h(){return l=Promise.resolve(),!0===u?Promise.resolve():s._readyPromise.then((function(){return le(o).then((function(e){var t=e.value,r=e.done;!0!==r&&(l=L(s,t).catch((function(){})))}))})).then(h)}if(p(t,o._closedPromise,(function(t){!1===i?m((function(){return E(e,t)}),!0,t):g(!0,t)})),p(e,s._closedPromise,(function(e){!1===a?m((function(){return X(t,e)}),!0,e):g(!0,e)})),v(t,o._closedPromise,(function(){!1===n?m((function(){return T(s)})):g()})),!0===F(e)||\"closed\"===e._state){var d=new TypeError(\"the destination writable stream closed before all data could be piped to it\");!1===a?m((function(){return X(t,d)}),!0,d):g(!0,d)}function f(){var e=l;return l.then((function(){return e!==l?f():void 0}))}function p(e,t,r){\"errored\"===e._state?r(e._storedError):t.catch(r).catch(_)}function v(e,t,r){\"closed\"===e._state?r():t.then(r).catch(_)}function m(t,r,n){function i(){t().then((function(){return y(r,n)}),(function(e){return y(!0,e)})).catch(_)}!0!==u&&(u=!0,\"writable\"===e._state&&!1===F(e)?f().then(i):i())}function g(t,r){!0!==u&&(u=!0,\"writable\"===e._state&&!1===F(e)?f().then((function(){return y(t,r)})).catch(_):y(t,r))}function y(e,t){O(s),se(o),e?c(t):r(void 0)}h().catch((function(e){l=Promise.resolve(),_(e)}))}))}},{key:\"tee\",value:function(){if(!1===M(this))throw He(\"tee\");var e=W(this,!1);return v(e)}},{key:\"locked\",get:function(){if(!1===M(this))throw He(\"locked\");return q(this)}}]),e}();function j(e){return new re(e)}function D(e){return new te(e)}function M(e){return!!g(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_readableStreamController\")}function N(e){return b(!0===M(e),\"IsReadableStreamDisturbed should only be used on known readable streams\"),e._disturbed}function q(e){return b(!0===M(e),\"IsReadableStreamLocked should only be used on known readable streams\"),void 0!==e._reader}function W(e,t){b(!0===M(e)),b(\"boolean\"===typeof t);var r=D(e),n={closedOrErrored:!1,canceled1:!1,canceled2:!1,reason1:void 0,reason2:void 0};n.promise=new Promise((function(e){n._resolve=e}));var i=B();i._reader=r,i._teeState=n,i._cloneForBranch2=t;var a=U();a._stream=e,a._teeState=n;var o=z();o._stream=e,o._teeState=n;var s=Object.create(Object.prototype);m(s,\"pull\",i),m(s,\"cancel\",a);var u=new I(s),l=Object.create(Object.prototype);m(l,\"pull\",i),m(l,\"cancel\",o);var c=new I(l);return i._branch1=u._readableStreamController,i._branch2=c._readableStreamController,r._closedPromise.catch((function(e){!0!==n.closedOrErrored&&(me(i._branch1,e),me(i._branch2,e),n.closedOrErrored=!0)})),[u,c]}function B(){function e(){var t=e._reader,r=e._branch1,n=e._branch2,i=e._teeState;return le(t).then((function(e){b(g(e));var t=e.value,a=e.done;if(b(\"boolean\"===typeof a),!0===a&&!1===i.closedOrErrored&&(!1===i.canceled1&&pe(r),!1===i.canceled2&&pe(n),i.closedOrErrored=!0),!0!==i.closedOrErrored){var o=t,s=t;!1===i.canceled1&&ve(r,o),!1===i.canceled2&&ve(n,s)}}))}return e}function U(){function e(t){var r=e._stream,n=e._teeState;if(n.canceled1=!0,n.reason1=t,!0===n.canceled2){var i=v([n.reason1,n.reason2]),a=X(r,i);n._resolve(a)}return n.promise}return e}function z(){function e(t){var r=e._stream,n=e._teeState;if(n.canceled2=!0,n.reason2=t,!0===n.canceled1){var i=v([n.reason1,n.reason2]),a=X(r,i);n._resolve(a)}return n.promise}return e}function G(e){b(!0===ne(e._reader)),b(\"readable\"===e._state||\"closed\"===e._state);var t=new Promise((function(t,r){var n={_resolve:t,_reject:r};e._reader._readIntoRequests.push(n)}));return t}function H(e){b(!0===ie(e._reader)),b(\"readable\"===e._state);var t=new Promise((function(t,r){var n={_resolve:t,_reject:r};e._reader._readRequests.push(n)}));return t}function X(e,t){if(e._disturbed=!0,\"closed\"===e._state)return Promise.resolve(void 0);if(\"errored\"===e._state)return Promise.reject(e._storedError);V(e);var r=e._readableStreamController.__cancelSteps(t);return r.then((function(){}))}function V(e){b(\"readable\"===e._state),e._state=\"closed\";var t=e._reader;if(void 0!==t){if(!0===ie(t)){for(var r=0;r0);var i=n._readIntoRequests.shift();i._resolve(s(t,r))}function $(e,t,r){var n=e._reader;b(n._readRequests.length>0);var i=n._readRequests.shift();i._resolve(s(t,r))}function K(e){return e._reader._readIntoRequests.length}function J(e){return e._reader._readRequests.length}function Z(e){var t=e._reader;return void 0!==t&&!1!==ne(t)}function ee(e){var t=e._reader;return void 0!==t&&!1!==ie(t)}e.exports={ReadableStream:I,IsReadableStreamDisturbed:N,ReadableStreamDefaultControllerClose:pe,ReadableStreamDefaultControllerEnqueue:ve,ReadableStreamDefaultControllerError:me,ReadableStreamDefaultControllerGetDesiredSize:ye};var te=function(){function e(t){if(i(this,e),!1===M(t))throw new TypeError(\"ReadableStreamDefaultReader can only be constructed with a ReadableStream instance\");if(!0===q(t))throw new TypeError(\"This stream has already been locked for exclusive reading by another reader\");ae(this,t),this._readRequests=[]}return n(e,[{key:\"cancel\",value:function(e){return!1===ie(this)?Promise.reject(Ve(\"cancel\")):void 0===this._ownerReadableStream?Promise.reject(Xe(\"cancel\")):oe(this,e)}},{key:\"read\",value:function(){return!1===ie(this)?Promise.reject(Ve(\"read\")):void 0===this._ownerReadableStream?Promise.reject(Xe(\"read from\")):le(this)}},{key:\"releaseLock\",value:function(){if(!1===ie(this))throw Ve(\"releaseLock\");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError(\"Tried to release a reader lock when that reader has pending read() calls un-settled\");se(this)}}},{key:\"closed\",get:function(){return!1===ie(this)?Promise.reject(Ve(\"closed\")):this._closedPromise}}]),e}(),re=function(){function e(t){if(i(this,e),!M(t))throw new TypeError(\"ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source\");if(!1===Ae(t._readableStreamController))throw new TypeError(\"Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source\");if(q(t))throw new TypeError(\"This stream has already been locked for exclusive reading by another reader\");ae(this,t),this._readIntoRequests=[]}return n(e,[{key:\"cancel\",value:function(e){return ne(this)?void 0===this._ownerReadableStream?Promise.reject(Xe(\"cancel\")):oe(this,e):Promise.reject(et(\"cancel\"))}},{key:\"read\",value:function(e){return ne(this)?void 0===this._ownerReadableStream?Promise.reject(Xe(\"read from\")):ArrayBuffer.isView(e)?0===e.byteLength?Promise.reject(new TypeError(\"view must have non-zero byteLength\")):ue(this,e):Promise.reject(new TypeError(\"view must be an array buffer view\")):Promise.reject(et(\"read\"))}},{key:\"releaseLock\",value:function(){if(!ne(this))throw et(\"releaseLock\");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError(\"Tried to release a reader lock when that reader has pending read() calls un-settled\");se(this)}}},{key:\"closed\",get:function(){return ne(this)?this._closedPromise:Promise.reject(et(\"closed\"))}}]),e}();function ne(e){return!!g(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_readIntoRequests\")}function ie(e){return!!g(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_readRequests\")}function ae(e,t){e._ownerReadableStream=t,t._reader=e,\"readable\"===t._state?Ye(e):\"closed\"===t._state?$e(e):(b(\"errored\"===t._state,\"state must be errored\"),Qe(e,t._storedError),e._closedPromise.catch((function(){})))}function oe(e,t){var r=e._ownerReadableStream;return b(void 0!==r),X(r,t)}function se(e){b(void 0!==e._ownerReadableStream),b(e._ownerReadableStream._reader===e),\"readable\"===e._ownerReadableStream._state?Ke(e,new TypeError(\"Reader was released and can no longer be used to monitor the stream's closedness\")):Je(e,new TypeError(\"Reader was released and can no longer be used to monitor the stream's closedness\")),e._closedPromise.catch((function(){})),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function ue(e,t){var r=e._ownerReadableStream;return b(void 0!==r),r._disturbed=!0,\"errored\"===r._state?Promise.reject(r._storedError):Fe(r._readableStreamController,t)}function le(e){var t=e._ownerReadableStream;return b(void 0!==t),t._disturbed=!0,\"closed\"===t._state?Promise.resolve(s(void 0,!0)):\"errored\"===t._state?Promise.reject(t._storedError):(b(\"readable\"===t._state),t._readableStreamController.__pullSteps())}var ce=function(){function e(t,r,n,a){if(i(this,e),!1===M(t))throw new TypeError(\"ReadableStreamDefaultController can only be constructed with a ReadableStream instance\");if(void 0!==t._readableStreamController)throw new TypeError(\"ReadableStreamDefaultController instances can only be created by the ReadableStream constructor\");this._controlledReadableStream=t,this._underlyingSource=r,this._queue=void 0,this._queueTotalSize=void 0,C(this),this._started=!1,this._closeRequested=!1,this._pullAgain=!1,this._pulling=!1;var o=d(n,a);this._strategySize=o.size,this._strategyHWM=o.highWaterMark;var s=this,u=l(r,\"start\",[this]);Promise.resolve(u).then((function(){s._started=!0,b(!1===s._pulling),b(!1===s._pullAgain),de(s)}),(function(e){ge(s,e)})).catch(_)}return n(e,[{key:\"close\",value:function(){if(!1===he(this))throw tt(\"close\");if(!0===this._closeRequested)throw new TypeError(\"The stream has already been closed; do not close it again!\");var e=this._controlledReadableStream._state;if(\"readable\"!==e)throw new TypeError(\"The stream (in \"+e+\" state) is not in the readable state and cannot be closed\");pe(this)}},{key:\"enqueue\",value:function(e){if(!1===he(this))throw tt(\"enqueue\");if(!0===this._closeRequested)throw new TypeError(\"stream is closed or draining\");var t=this._controlledReadableStream._state;if(\"readable\"!==t)throw new TypeError(\"The stream (in \"+t+\" state) is not in the readable state and cannot be enqueued to\");return ve(this,e)}},{key:\"error\",value:function(e){if(!1===he(this))throw tt(\"error\");var t=this._controlledReadableStream;if(\"readable\"!==t._state)throw new TypeError(\"The stream is \"+t._state+\" and so cannot be errored\");me(this,e)}},{key:\"__cancelSteps\",value:function(e){return C(this),c(this._underlyingSource,\"cancel\",[e])}},{key:\"__pullSteps\",value:function(){var e=this._controlledReadableStream;if(this._queue.length>0){var t=w(this);return!0===this._closeRequested&&0===this._queue.length?V(e):de(this),Promise.resolve(s(t,!1))}var r=H(e);return de(this),r}},{key:\"desiredSize\",get:function(){if(!1===he(this))throw tt(\"desiredSize\");return ye(this)}}]),e}();function he(e){return!!g(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_underlyingSource\")}function de(e){var t=fe(e);if(!1!==t)if(!0!==e._pulling){b(!1===e._pullAgain),e._pulling=!0;var r=c(e._underlyingSource,\"pull\",[e]);r.then((function(){if(e._pulling=!1,!0===e._pullAgain)return e._pullAgain=!1,de(e)}),(function(t){ge(e,t)})).catch(_)}else e._pullAgain=!0}function fe(e){var t=e._controlledReadableStream;if(\"closed\"===t._state||\"errored\"===t._state)return!1;if(!0===e._closeRequested)return!1;if(!1===e._started)return!1;if(!0===q(t)&&J(t)>0)return!0;var r=ye(e);return r>0}function pe(e){var t=e._controlledReadableStream;b(!1===e._closeRequested),b(\"readable\"===t._state),e._closeRequested=!0,0===e._queue.length&&V(t)}function ve(e,t){var r=e._controlledReadableStream;if(b(!1===e._closeRequested),b(\"readable\"===r._state),!0===q(r)&&J(r)>0)$(r,t,!1);else{var n=1;if(void 0!==e._strategySize){var i=e._strategySize;try{n=i(t)}catch(a){throw ge(e,a),a}}try{S(e,t,n)}catch(o){throw ge(e,o),o}}de(e)}function me(e,t){var r=e._controlledReadableStream;b(\"readable\"===r._state),C(e),Y(r,t)}function ge(e,t){\"readable\"===e._controlledReadableStream._state&&me(e,t)}function ye(e){var t=e._controlledReadableStream,r=t._state;return\"errored\"===r?null:\"closed\"===r?0:e._strategyHWM-e._queueTotalSize}var be=function(){function e(t,r){i(this,e),this._associatedReadableByteStreamController=t,this._view=r}return n(e,[{key:\"respond\",value:function(e){if(!1===we(this))throw rt(\"respond\");if(void 0===this._associatedReadableByteStreamController)throw new TypeError(\"This BYOB request has been invalidated\");ze(this._associatedReadableByteStreamController,e)}},{key:\"respondWithNewView\",value:function(e){if(!1===we(this))throw rt(\"respond\");if(void 0===this._associatedReadableByteStreamController)throw new TypeError(\"This BYOB request has been invalidated\");if(!ArrayBuffer.isView(e))throw new TypeError(\"You can only respond with array buffer views\");Ge(this._associatedReadableByteStreamController,e)}},{key:\"view\",get:function(){return this._view}}]),e}(),_e=function(){function e(t,r,n){if(i(this,e),!1===M(t))throw new TypeError(\"ReadableByteStreamController can only be constructed with a ReadableStream instance given a byte source\");if(void 0!==t._readableStreamController)throw new TypeError(\"ReadableByteStreamController instances can only be created by the ReadableStream constructor given a byte source\");this._controlledReadableStream=t,this._underlyingByteSource=r,this._pullAgain=!1,this._pulling=!1,Ce(this),this._queue=this._queueTotalSize=void 0,C(this),this._closeRequested=!1,this._started=!1,this._strategyHWM=f(n);var a=r.autoAllocateChunkSize;if(void 0!==a&&(!1===Number.isInteger(a)||a<=0))throw new RangeError(\"autoAllocateChunkSize must be a positive integer\");this._autoAllocateChunkSize=a,this._pendingPullIntos=[];var o=this,s=l(r,\"start\",[this]);Promise.resolve(s).then((function(){o._started=!0,b(!1===o._pulling),b(!1===o._pullAgain),Se(o)}),(function(e){\"readable\"===t._state&&Be(o,e)})).catch(_)}return n(e,[{key:\"close\",value:function(){if(!1===Ae(this))throw nt(\"close\");if(!0===this._closeRequested)throw new TypeError(\"The stream has already been closed; do not close it again!\");var e=this._controlledReadableStream._state;if(\"readable\"!==e)throw new TypeError(\"The stream (in \"+e+\" state) is not in the readable state and cannot be closed\");qe(this)}},{key:\"enqueue\",value:function(e){if(!1===Ae(this))throw nt(\"enqueue\");if(!0===this._closeRequested)throw new TypeError(\"stream is closed or draining\");var t=this._controlledReadableStream._state;if(\"readable\"!==t)throw new TypeError(\"The stream (in \"+t+\" state) is not in the readable state and cannot be enqueued to\");if(!ArrayBuffer.isView(e))throw new TypeError(\"You can only enqueue array buffer views when using a ReadableByteStreamController\");We(this,e)}},{key:\"error\",value:function(e){if(!1===Ae(this))throw nt(\"error\");var t=this._controlledReadableStream;if(\"readable\"!==t._state)throw new TypeError(\"The stream is \"+t._state+\" and so cannot be errored\");Be(this,e)}},{key:\"__cancelSteps\",value:function(e){if(this._pendingPullIntos.length>0){var t=this._pendingPullIntos[0];t.bytesFilled=0}return C(this),c(this._underlyingByteSource,\"cancel\",[e])}},{key:\"__pullSteps\",value:function(){var e=this._controlledReadableStream;if(b(!0===ee(e)),this._queueTotalSize>0){b(0===J(e));var t=this._queue.shift();this._queueTotalSize-=t.byteLength,Te(this);var r=void 0;try{r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}catch(u){return Promise.reject(u)}return Promise.resolve(s(r,!1))}var n=this._autoAllocateChunkSize;if(void 0!==n){var i=void 0;try{i=new ArrayBuffer(n)}catch(l){return Promise.reject(l)}var a={buffer:i,byteOffset:0,byteLength:n,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:\"default\"};this._pendingPullIntos.push(a)}var o=H(e);return Se(this),o}},{key:\"byobRequest\",get:function(){if(!1===Ae(this))throw nt(\"byobRequest\");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var e=this._pendingPullIntos[0],t=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled);this._byobRequest=new be(this,t)}return this._byobRequest}},{key:\"desiredSize\",get:function(){if(!1===Ae(this))throw nt(\"desiredSize\");return Ue(this)}}]),e}();function Ae(e){return!!g(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_underlyingByteSource\")}function we(e){return!!g(e)&&!!Object.prototype.hasOwnProperty.call(e,\"_associatedReadableByteStreamController\")}function Se(e){var t=Ne(e);if(!1!==t)if(!0!==e._pulling){b(!1===e._pullAgain),e._pulling=!0;var r=c(e._underlyingByteSource,\"pull\",[e]);r.then((function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,Se(e))}),(function(t){\"readable\"===e._controlledReadableStream._state&&Be(e,t)})).catch(_)}else e._pullAgain=!0}function Ce(e){Oe(e),e._pendingPullIntos=[]}function ke(e,t){b(\"errored\"!==e._state,\"state must not be errored\");var r=!1;\"closed\"===e._state&&(b(0===t.bytesFilled),r=!0);var n=xe(t);\"default\"===t.readerType?$(e,n,r):(b(\"byob\"===t.readerType),Q(e,n,r))}function xe(e){var t=e.bytesFilled,r=e.elementSize;return b(t<=e.byteLength),b(t%r===0),new e.ctor(e.buffer,e.byteOffset,t/r)}function Pe(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function Re(e,t){var r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,i=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),a=t.bytesFilled+i,s=a-a%r,u=i,l=!1;s>n&&(u=s-t.bytesFilled,l=!0);var c=e._queue;while(u>0){var h=c[0],d=Math.min(u,h.byteLength),f=t.byteOffset+t.bytesFilled;o(t.buffer,f,h.buffer,h.byteOffset,d),h.byteLength===d?c.shift():(h.byteOffset+=d,h.byteLength-=d),e._queueTotalSize-=d,Ee(e,d,t),u-=d}return!1===l&&(b(0===e._queueTotalSize,\"queue must be empty\"),b(t.bytesFilled>0),b(t.bytesFilled0){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos[0];!0===Re(e,t)&&(Me(e),ke(e._controlledReadableStream,t))}}function Fe(e,t){var r=e._controlledReadableStream,n=1;t.constructor!==DataView&&(n=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,a={buffer:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:n,ctor:i,readerType:\"byob\"};if(e._pendingPullIntos.length>0)return a.buffer=h(a.buffer),e._pendingPullIntos.push(a),G(r);if(\"closed\"===r._state){var o=new t.constructor(a.buffer,a.byteOffset,0);return Promise.resolve(s(o,!0))}if(e._queueTotalSize>0){if(!0===Re(e,a)){var u=xe(a);return Te(e),Promise.resolve(s(u,!1))}if(!0===e._closeRequested){var l=new TypeError(\"Insufficient bytes to fill elements in the given buffer\");return Be(e,l),Promise.reject(l)}}a.buffer=h(a.buffer),e._pendingPullIntos.push(a);var c=G(r);return Se(e),c}function Ie(e,t){t.buffer=h(t.buffer),b(0===t.bytesFilled,\"bytesFilled must be 0\");var r=e._controlledReadableStream;if(!0===Z(r))while(K(r)>0){var n=Me(e);ke(r,n)}}function je(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError(\"bytesWritten out of range\");if(Ee(e,t,r),!(r.bytesFilled0){var i=r.byteOffset+r.bytesFilled,a=r.buffer.slice(i-n,i);Pe(e,a,0,a.byteLength)}r.buffer=h(r.buffer),r.bytesFilled-=n,ke(e._controlledReadableStream,r),Le(e)}}function De(e,t){var r=e._pendingPullIntos[0],n=e._controlledReadableStream;if(\"closed\"===n._state){if(0!==t)throw new TypeError(\"bytesWritten must be 0 when calling respond() on a closed stream\");Ie(e,r)}else b(\"readable\"===n._state),je(e,t,r)}function Me(e){var t=e._pendingPullIntos.shift();return Oe(e),t}function Ne(e){var t=e._controlledReadableStream;return\"readable\"===t._state&&(!0!==e._closeRequested&&(!1!==e._started&&(!0===ee(t)&&J(t)>0||(!0===Z(t)&&K(t)>0||Ue(e)>0))))}function qe(e){var t=e._controlledReadableStream;if(b(!1===e._closeRequested),b(\"readable\"===t._state),e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){var r=e._pendingPullIntos[0];if(r.bytesFilled>0){var n=new TypeError(\"Insufficient bytes to fill elements in the given buffer\");throw Be(e,n),n}}V(t)}}function We(e,t){var r=e._controlledReadableStream;b(!1===e._closeRequested),b(\"readable\"===r._state);var n=t.buffer,i=t.byteOffset,a=t.byteLength,o=h(n);if(!0===ee(r))if(0===J(r))Pe(e,o,i,a);else{b(0===e._queue.length);var s=new Uint8Array(o,i,a);$(r,s,!1)}else!0===Z(r)?(Pe(e,o,i,a),Le(e)):(b(!1===q(r),\"stream must not be locked\"),Pe(e,o,i,a))}function Be(e,t){var r=e._controlledReadableStream;b(\"readable\"===r._state),Ce(e),C(e),Y(r,t)}function Ue(e){var t=e._controlledReadableStream,r=t._state;return\"errored\"===r?null:\"closed\"===r?0:e._strategyHWM-e._queueTotalSize}function ze(e,t){if(t=Number(t),!1===u(t))throw new RangeError(\"bytesWritten must be a finite\");b(e._pendingPullIntos.length>0),De(e,t)}function Ge(e,t){b(e._pendingPullIntos.length>0);var r=e._pendingPullIntos[0];if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError(\"The region specified by view does not match byobRequest\");if(r.byteLength!==t.byteLength)throw new RangeError(\"The buffer of view has different capacity than byobRequest\");r.buffer=t.buffer,De(e,t.byteLength)}function He(e){return new TypeError(\"ReadableStream.prototype.\"+e+\" can only be used on a ReadableStream\")}function Xe(e){return new TypeError(\"Cannot \"+e+\" a stream using a released reader\")}function Ve(e){return new TypeError(\"ReadableStreamDefaultReader.prototype.\"+e+\" can only be used on a ReadableStreamDefaultReader\")}function Ye(e){e._closedPromise=new Promise((function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r}))}function Qe(e,t){e._closedPromise=Promise.reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function $e(e){e._closedPromise=Promise.resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function Ke(e,t){b(void 0!==e._closedPromise_resolve),b(void 0!==e._closedPromise_reject),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function Je(e,t){b(void 0===e._closedPromise_resolve),b(void 0===e._closedPromise_reject),e._closedPromise=Promise.reject(t)}function Ze(e){b(void 0!==e._closedPromise_resolve),b(void 0!==e._closedPromise_reject),e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function et(e){return new TypeError(\"ReadableStreamBYOBReader.prototype.\"+e+\" can only be used on a ReadableStreamBYOBReader\")}function tt(e){return new TypeError(\"ReadableStreamDefaultController.prototype.\"+e+\" can only be used on a ReadableStreamDefaultController\")}function rt(e){return new TypeError(\"ReadableStreamBYOBRequest.prototype.\"+e+\" can only be used on a ReadableStreamBYOBRequest\")}function nt(e){return new TypeError(\"ReadableByteStreamController.prototype.\"+e+\" can only be used on a ReadableByteStreamController\")}function it(e){try{Promise.prototype.then.call(e,void 0,(function(){}))}catch(t){}}},function(e,t,r){var n=r(6),i=r(4),a=r(2);t.TransformStream=n.TransformStream,t.ReadableStream=i.ReadableStream,t.IsReadableStreamDisturbed=i.IsReadableStreamDisturbed,t.ReadableStreamDefaultControllerClose=i.ReadableStreamDefaultControllerClose,t.ReadableStreamDefaultControllerEnqueue=i.ReadableStreamDefaultControllerEnqueue,t.ReadableStreamDefaultControllerError=i.ReadableStreamDefaultControllerError,t.ReadableStreamDefaultControllerGetDesiredSize=i.ReadableStreamDefaultControllerGetDesiredSize,t.AcquireWritableStreamDefaultWriter=a.AcquireWritableStreamDefaultWriter,t.IsWritableStream=a.IsWritableStream,t.IsWritableStreamLocked=a.IsWritableStreamLocked,t.WritableStream=a.WritableStream,t.WritableStreamAbort=a.WritableStreamAbort,t.WritableStreamDefaultControllerError=a.WritableStreamDefaultControllerError,t.WritableStreamDefaultWriterCloseWithErrorPropagation=a.WritableStreamDefaultWriterCloseWithErrorPropagation,t.WritableStreamDefaultWriterRelease=a.WritableStreamDefaultWriterRelease,t.WritableStreamDefaultWriterWrite=a.WritableStreamDefaultWriterWrite},function(e,t,r){var n=function(){function e(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this._transformer=t;var r=t.readableStrategy,n=t.writableStrategy;this._transforming=!1,this._errored=!1,this._storedError=void 0,this._writableController=void 0,this._readableController=void 0,this._transformStreamController=void 0,this._writableDone=!1,this._readableClosed=!1,this._backpressure=void 0,this._backpressureChangePromise=void 0,this._backpressureChangePromise_resolve=void 0,this._transformStreamController=new j(this);var a=void 0,s=new Promise((function(e){a=e})),l=new I(this,s);this._readable=new f(l,r);var c=new F(this,s);this._writable=new b(c,n),o(void 0!==this._writableController),o(void 0!==this._readableController);var h=g(this._readableController);R(this,h<=0);var d=this,p=u(t,\"start\",[d._transformStreamController]);a(p),s.catch((function(e){!1===d._errored&&(d._errored=!0,d._storedError=e)}))}return n(e,[{key:\"readable\",get:function(){if(!1===L(this))throw N(\"readable\");return this._readable}},{key:\"writable\",get:function(){if(!1===L(this))throw N(\"writable\");return this._writable}}]),e}();function M(e){return new TypeError(\"TransformStreamDefaultController.prototype.\"+e+\" can only be used on a TransformStreamDefaultController\")}function N(e){return new TypeError(\"TransformStream.prototype.\"+e+\" can only be used on a TransformStream\")}e.exports={TransformStream:D}},function(e,t,r){e.exports=r(5)}]))},function(e,t,r){\"use strict\";var n=\"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=!1;try{if(\"function\"===typeof URL&&\"object\"===n(URL.prototype)&&\"origin\"in URL.prototype){var a=new URL(\"b\",\"http://a\");a.pathname=\"c%20d\",i=\"http://a/c%20d\"===a.href}}catch(u){}if(i)t.URL=URL;else{var o=r(128).URL,s=r(3).URL;s&&(o.createObjectURL=function(e){return s.createObjectURL.apply(s,arguments)},o.revokeObjectURL=function(e){s.revokeObjectURL(e)}),t.URL=o}},function(e,t,r){\"use strict\";(function(){var e=Object.create(null);e[\"ftp\"]=21,e[\"file\"]=0,e[\"gopher\"]=70,e[\"http\"]=80,e[\"https\"]=443,e[\"ws\"]=80,e[\"wss\"]=443;var r=Object.create(null);function n(t){return void 0!==e[t]}function i(){d.call(this),this._isInvalid=!0}function a(e){return\"\"===e&&i.call(this),e.toLowerCase()}function o(e){var t=e.charCodeAt(0);return t>32&&t<127&&-1===[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function s(e){var t=e.charCodeAt(0);return t>32&&t<127&&-1===[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}r[\"%2e\"]=\".\",r[\".%2e\"]=\"..\",r[\"%2e.\"]=\"..\",r[\"%2e%2e\"]=\"..\";var u,l=/[a-zA-Z]/,c=/[a-zA-Z0-9\\+\\-\\.]/;function h(t,h,d){function f(e){b.push(e)}var p=h||\"scheme start\",v=0,m=\"\",g=!1,y=!1,b=[];e:while((t[v-1]!==u||0===v)&&!this._isInvalid){var _=t[v];switch(p){case\"scheme start\":if(!_||!l.test(_)){if(h){f(\"Invalid scheme.\");break e}m=\"\",p=\"no scheme\";continue}m+=_.toLowerCase(),p=\"scheme\";break;case\"scheme\":if(_&&c.test(_))m+=_.toLowerCase();else{if(\":\"!==_){if(h){if(_===u)break e;f(\"Code point not allowed in scheme: \"+_);break e}m=\"\",v=0,p=\"no scheme\";continue}if(this._scheme=m,m=\"\",h)break e;n(this._scheme)&&(this._isRelative=!0),p=\"file\"===this._scheme?\"relative\":this._isRelative&&d&&d._scheme===this._scheme?\"relative or authority\":this._isRelative?\"authority first slash\":\"scheme data\"}break;case\"scheme data\":\"?\"===_?(this._query=\"?\",p=\"query\"):\"#\"===_?(this._fragment=\"#\",p=\"fragment\"):_!==u&&\"\\t\"!==_&&\"\\n\"!==_&&\"\\r\"!==_&&(this._schemeData+=o(_));break;case\"no scheme\":if(d&&n(d._scheme)){p=\"relative\";continue}f(\"Missing scheme.\"),i.call(this);break;case\"relative or authority\":if(\"/\"!==_||\"/\"!==t[v+1]){f(\"Expected /, got: \"+_),p=\"relative\";continue}p=\"authority ignore slashes\";break;case\"relative\":if(this._isRelative=!0,\"file\"!==this._scheme&&(this._scheme=d._scheme),_===u){this._host=d._host,this._port=d._port,this._path=d._path.slice(),this._query=d._query,this._username=d._username,this._password=d._password;break e}if(\"/\"===_||\"\\\\\"===_)\"\\\\\"===_&&f(\"\\\\ is an invalid code point.\"),p=\"relative slash\";else if(\"?\"===_)this._host=d._host,this._port=d._port,this._path=d._path.slice(),this._query=\"?\",this._username=d._username,this._password=d._password,p=\"query\";else{if(\"#\"!==_){var A=t[v+1],w=t[v+2];(\"file\"!==this._scheme||!l.test(_)||\":\"!==A&&\"|\"!==A||w!==u&&\"/\"!==w&&\"\\\\\"!==w&&\"?\"!==w&&\"#\"!==w)&&(this._host=d._host,this._port=d._port,this._username=d._username,this._password=d._password,this._path=d._path.slice(),this._path.pop()),p=\"relative path\";continue}this._host=d._host,this._port=d._port,this._path=d._path.slice(),this._query=d._query,this._fragment=\"#\",this._username=d._username,this._password=d._password,p=\"fragment\"}break;case\"relative slash\":if(\"/\"!==_&&\"\\\\\"!==_){\"file\"!==this._scheme&&(this._host=d._host,this._port=d._port,this._username=d._username,this._password=d._password),p=\"relative path\";continue}\"\\\\\"===_&&f(\"\\\\ is an invalid code point.\"),p=\"file\"===this._scheme?\"file host\":\"authority ignore slashes\";break;case\"authority first slash\":if(\"/\"!==_){f(\"Expected '/', got: \"+_),p=\"authority ignore slashes\";continue}p=\"authority second slash\";break;case\"authority second slash\":if(p=\"authority ignore slashes\",\"/\"!==_){f(\"Expected '/', got: \"+_);continue}break;case\"authority ignore slashes\":if(\"/\"!==_&&\"\\\\\"!==_){p=\"authority\";continue}f(\"Expected authority, got: \"+_);break;case\"authority\":if(\"@\"===_){g&&(f(\"@ already seen.\"),m+=\"%40\"),g=!0;for(var S=0;S3&&void 0!==arguments[3]&&arguments[3];this.pageIndex=e,this._pageInfo=t,this.transport=r,this._stats=n?new u.StatTimer:u.DummyStatTimer,this._pdfBug=n,this.commonObjs=r.commonObjs,this.objs=new U,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return e.prototype={get pageNumber(){return this.pageIndex+1},get rotate(){return this._pageInfo.rotate},get ref(){return this._pageInfo.ref},get userUnit(){return this._pageInfo.userUnit},get view(){return this._pageInfo.view},getViewport:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rotate,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new u.PageViewport({viewBox:this.view,scale:e,rotation:t,dontFlip:r})},getAnnotations:function(e){var t=e&&e.intent||null;return this.annotationsPromise&&this.annotationsIntent===t||(this.annotationsPromise=this.transport.getAnnotations(this.pageIndex,t),this.annotationsIntent=t),this.annotationsPromise},render:function(e){var t=this,r=this._stats;r.time(\"Overall\"),this.pendingCleanup=!1;var n=\"print\"===e.intent?\"print\":\"display\",i=e.canvasFactory||new u.DOMCanvasFactory,a=new y.WebGLContext({enable:e.enableWebGL});this.intentStates[n]||(this.intentStates[n]=Object.create(null));var o=this.intentStates[n];o.displayReadyCapability||(o.receivingOperatorList=!0,o.displayReadyCapability=(0,s.createPromiseCapability)(),o.operatorList={fnArray:[],argsArray:[],lastChunk:!1},r.time(\"Page Request\"),this.transport.messageHandler.send(\"RenderPageRequest\",{pageIndex:this.pageNumber-1,intent:n,renderInteractiveForms:!0===e.renderInteractiveForms}));var l=function(e){var n=o.renderTasks.indexOf(c);n>=0&&o.renderTasks.splice(n,1),t.cleanupAfterRender&&(t.pendingCleanup=!0),t._tryCleanup(),e?c.capability.reject(e):c.capability.resolve(),r.timeEnd(\"Rendering\"),r.timeEnd(\"Overall\")},c=new G(l,e,this.objs,this.commonObjs,o.operatorList,this.pageNumber,i,a,this._pdfBug);c.useRequestAnimationFrame=\"print\"!==n,o.renderTasks||(o.renderTasks=[]),o.renderTasks.push(c);var h=c.task;return o.displayReadyCapability.promise.then((function(e){t.pendingCleanup?l():(r.time(\"Rendering\"),c.initializeGraphics(e),c.operatorListChanged())})).catch(l),h},getOperatorList:function(){function e(){if(n.operatorList.lastChunk){n.opListReadCapability.resolve(n.operatorList);var e=n.renderTasks.indexOf(r);e>=0&&n.renderTasks.splice(e,1)}}var t=\"oplist\";this.intentStates[t]||(this.intentStates[t]=Object.create(null));var r,n=this.intentStates[t];return n.opListReadCapability||(r={},r.operatorListChanged=e,n.receivingOperatorList=!0,n.opListReadCapability=(0,s.createPromiseCapability)(),n.renderTasks=[],n.renderTasks.push(r),n.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats.time(\"Page Request\"),this.transport.messageHandler.send(\"RenderPageRequest\",{pageIndex:this.pageIndex,intent:t})),n.opListReadCapability.promise},streamTextContent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=100;return this.transport.messageHandler.sendWithStream(\"GetTextContent\",{pageIndex:this.pageNumber-1,normalizeWhitespace:!0===e.normalizeWhitespace,combineTextItems:!0!==e.disableCombineTextItems},{highWaterMark:t,size:function(e){return e.items.length}})},getTextContent:function(e){e=e||{};var t=this.streamTextContent(e);return new Promise((function(e,r){function n(){i.read().then((function(t){var r,i=t.value,o=t.done;o?e(a):(Object.assign(a.styles,i.styles),(r=a.items).push.apply(r,_(i.items)),n())}),r)}var i=t.getReader(),a={items:[],styles:Object.create(null)};n()}))},_destroy:function(){this.destroyed=!0,this.transport.pageCache[this.pageIndex]=null;var e=[];return Object.keys(this.intentStates).forEach((function(t){if(\"oplist\"!==t){var r=this.intentStates[t];r.renderTasks.forEach((function(t){var r=t.capability.promise.catch((function(){}));e.push(r),t.cancel()}))}}),this),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(e)},cleanup:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.pendingCleanup=!0,this._tryCleanup(e)},_tryCleanup:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.pendingCleanup&&!Object.keys(this.intentStates).some((function(e){var t=this.intentStates[e];return 0!==t.renderTasks.length||t.receivingOperatorList}),this)&&(Object.keys(this.intentStates).forEach((function(e){delete this.intentStates[e]}),this),this.objs.clear(),this.annotationsPromise=null,e&&this._stats instanceof u.StatTimer&&(this._stats=new u.StatTimer),this.pendingCleanup=!1)},_startRenderPage:function(e,t){var r=this.intentStates[t];r.displayReadyCapability&&r.displayReadyCapability.resolve(e)},_renderPageChunk:function(e,t){var r,n,i=this.intentStates[t];for(r=0,n=e.length;r0&&void 0!==arguments[0])||arguments[0];A(this,e),this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void 0)}return a(e,[{key:\"postMessage\",value:function(e,t){var r=this;function n(e){if(\"object\"!==(\"undefined\"===typeof e?\"undefined\":o(e))||null===e)return e;if(i.has(e))return i.get(e);var r,a;if((a=e.buffer)&&(0,s.isArrayBuffer)(a)){var u=t&&t.includes(a);return r=e===a?e:u?new e.constructor(a,e.byteOffset,e.byteLength):new e.constructor(e),i.set(e,r),r}for(var l in r=Array.isArray(e)?[]:{},i.set(e,r),e){var c,h=e;while(!(c=Object.getOwnPropertyDescriptor(h,l)))h=Object.getPrototypeOf(h);\"undefined\"!==typeof c.value&&\"function\"!==typeof c.value&&(r[l]=n(c.value))}return r}if(this._defer){var i=new WeakMap,a={data:n(e)};this._deferred.then((function(){r._listeners.forEach((function(e){e.call(this,a)}),r)}))}else this._listeners.forEach((function(t){t.call(this,{data:e})}),this)}},{key:\"addEventListener\",value:function(e,t){this._listeners.push(t)}},{key:\"removeEventListener\",value:function(e,t){var r=this._listeners.indexOf(t);this._listeners.splice(r,1)}},{key:\"terminate\",value:function(){this._listeners=[]}}]),e}(),W=function(){var e=0;function t(){if(p.GlobalWorkerOptions.workerSrc)return p.GlobalWorkerOptions.workerSrc;if(\"undefined\"!==typeof C)return C;throw new Error('No \"GlobalWorkerOptions.workerSrc\" specified.')}function r(){try{if(\"undefined\"!==typeof window)return window.pdfjsWorker&&window.pdfjsWorker.WorkerMessageHandler}catch(e){}return null}var n=void 0;function i(){if(n)return n.promise;n=(0,s.createPromiseCapability)();var e=r();if(e)return n.resolve(e),n.promise;var i=k||function(){return(0,u.loadScript)(t()).then((function(){return window.pdfjsWorker.WorkerMessageHandler}))};return i().then(n.resolve,n.reject),n.promise}function a(e){var t=\"importScripts('\"+e+\"');\";return s.URL.createObjectURL(new Blob([t]))}var o=new WeakMap;function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,r=void 0===t?null:t,n=e.port,i=void 0===n?null:n,a=e.postMessageTransfers,u=void 0===a||a,l=e.verbosity,c=void 0===l?(0,s.getVerbosityLevel)():l;if(i&&o.has(i))throw new Error(\"Cannot use more than one PDFWorker per port\");if(this.name=r,this.destroyed=!1,this.postMessageTransfers=!1!==u,this.verbosity=c,this._readyCapability=(0,s.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,i)return o.set(i,this),void this._initializeFromPort(i);this._initialize()}return l.prototype={get promise(){return this._readyCapability.promise},get port(){return this._port},get messageHandler(){return this._messageHandler},_initializeFromPort:function(e){this._port=e,this._messageHandler=new v.MessageHandler(\"main\",\"worker\",e),this._messageHandler.on(\"ready\",(function(){})),this._readyCapability.resolve()},_initialize:function(){var e=this;if(\"undefined\"!==typeof Worker&&!S&&!r()){var n=t();try{(0,s.isSameOrigin)(window.location.href,n)||(n=a(new s.URL(n,window.location).href));var i=new Worker(n),o=new v.MessageHandler(\"main\",\"worker\",i),u=function(){i.removeEventListener(\"error\",l),o.destroy(),i.terminate(),e.destroyed?e._readyCapability.reject(new Error(\"Worker was destroyed\")):e._setupFakeWorker()},l=function(){e._webWorker||u()};i.addEventListener(\"error\",l),o.on(\"test\",(function(t){i.removeEventListener(\"error\",l),e.destroyed?u():t&&t.supportTypedArray?(e._messageHandler=o,e._port=i,e._webWorker=i,t.supportTransfers||(e.postMessageTransfers=!1),e._readyCapability.resolve(),o.send(\"configure\",{verbosity:e.verbosity})):(e._setupFakeWorker(),o.destroy(),i.terminate())})),o.on(\"ready\",(function(t){if(i.removeEventListener(\"error\",l),e.destroyed)u();else try{c()}catch(r){e._setupFakeWorker()}}));var c=function(){var t=new Uint8Array([e.postMessageTransfers?255:0]);try{o.send(\"test\",t,[t.buffer])}catch(r){(0,s.info)(\"Cannot use postMessage transfers\"),t[0]=0,o.send(\"test\",t)}};return void c()}catch(h){(0,s.info)(\"The worker has been disabled.\")}}this._setupFakeWorker()},_setupFakeWorker:function(){var t=this;S||((0,s.warn)(\"Setting up fake worker.\"),S=!0),i().then((function(r){if(t.destroyed)t._readyCapability.reject(new Error(\"Worker was destroyed\"));else{var n=new q;t._port=n;var i=\"fake\"+e++,a=new v.MessageHandler(i+\"_worker\",i,n);r.setup(a,n);var o=new v.MessageHandler(i,i+\"_worker\",n);t._messageHandler=o,t._readyCapability.resolve()}})).catch((function(e){t._readyCapability.reject(new Error('Setting up fake worker failed: \"'+e.message+'\".'))}))},destroy:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),o.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},l.fromPort=function(e){if(!e||!e.port)throw new Error(\"PDFWorker.fromPort - invalid method signature.\");return o.has(e.port)?o.get(e.port):new l(e)},l.getWorkerSrc=function(){return t()},l}(),B=function(){function e(t,r,n,i){A(this,e),this.messageHandler=t,this.loadingTask=r,this.commonObjs=new U,this.fontLoader=new l.FontLoader(r.docId),this._params=i,this.CMapReaderFactory=new i.CMapReaderFactory({baseUrl:i.cMapUrl,isCompressed:i.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,s.createPromiseCapability)(),this.setupMessageHandler()}return a(e,[{key:\"destroy\",value:function(){var e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,s.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error(\"Worker was destroyed during onPassword callback\"));var t=[];this.pageCache.forEach((function(e){e&&t.push(e._destroy())})),this.pageCache=[],this.pagePromises=[];var r=this.messageHandler.sendWithPromise(\"Terminate\",null);return t.push(r),Promise.all(t).then((function(){e.fontLoader.clear(),e._networkStream&&e._networkStream.cancelAllRequests(),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}},{key:\"setupMessageHandler\",value:function(){var e=this.messageHandler,t=this.loadingTask;e.on(\"GetReader\",(function(e,t){var r=this;(0,s.assert)(this._networkStream),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=function(e){r._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=function(){r._fullReader.read().then((function(e){var r=e.value,n=e.done;n?t.close():((0,s.assert)((0,s.isArrayBuffer)(r)),t.enqueue(new Uint8Array(r),1,[r]))})).catch((function(e){t.error(e)}))},t.onCancel=function(e){r._fullReader.cancel(e)}}),this),e.on(\"ReaderHeadersReady\",(function(e){var r=this,n=(0,s.createPromiseCapability)(),i=this._fullReader;return i.headersReady.then((function(){i.isStreamingSupported&&i.isRangeSupported||(r._lastProgress&&t.onProgress&&t.onProgress(r._lastProgress),i.onProgress=function(e){t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}),n.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})}),n.reject),n.promise}),this),e.on(\"GetRangeReader\",(function(e,t){(0,s.assert)(this._networkStream);var r=this._networkStream.getRangeReader(e.begin,e.end);t.onPull=function(){r.read().then((function(e){var r=e.value,n=e.done;n?t.close():((0,s.assert)((0,s.isArrayBuffer)(r)),t.enqueue(new Uint8Array(r),1,[r]))})).catch((function(e){t.error(e)}))},t.onCancel=function(e){r.cancel(e)}}),this),e.on(\"GetDoc\",(function(e){var r=e.pdfInfo;this.numPages=r.numPages,this.pdfDocument=new M(r,this,t),t._capability.resolve(this.pdfDocument)}),this),e.on(\"PasswordRequest\",(function(e){var r=this;if(this._passwordCapability=(0,s.createPromiseCapability)(),t.onPassword){var n=function(e){r._passwordCapability.resolve({password:e})};try{t.onPassword(n,e.code)}catch(i){this._passwordCapability.reject(i)}}else this._passwordCapability.reject(new s.PasswordException(e.message,e.code));return this._passwordCapability.promise}),this),e.on(\"PasswordException\",(function(e){t._capability.reject(new s.PasswordException(e.message,e.code))}),this),e.on(\"InvalidPDF\",(function(e){t._capability.reject(new s.InvalidPDFException(e.message))}),this),e.on(\"MissingPDF\",(function(e){t._capability.reject(new s.MissingPDFException(e.message))}),this),e.on(\"UnexpectedResponse\",(function(e){t._capability.reject(new s.UnexpectedResponseException(e.message,e.status))}),this),e.on(\"UnknownError\",(function(e){t._capability.reject(new s.UnknownErrorException(e.message,e.details))}),this),e.on(\"DataLoaded\",(function(e){t.onProgress&&t.onProgress({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)}),this),e.on(\"StartRenderPage\",(function(e){if(!this.destroyed){var t=this.pageCache[e.pageIndex];t._stats.timeEnd(\"Page Request\"),t._startRenderPage(e.transparency,e.intent)}}),this),e.on(\"RenderPageChunk\",(function(e){if(!this.destroyed){var t=this.pageCache[e.pageIndex];t._renderPageChunk(e.operatorList,e.intent)}}),this),e.on(\"commonobj\",(function(e){var t=this;if(!this.destroyed){var r=i(e,3),n=r[0],a=r[1],o=r[2];if(!this.commonObjs.hasData(n))switch(a){case\"Font\":var u=this._params;if(\"error\"in o){var c=o.error;(0,s.warn)(\"Error during font loading: \"+c),this.commonObjs.resolve(n,c);break}var h=null;u.pdfBug&&f.default.FontInspector&&f.default.FontInspector.enabled&&(h={registerFont:function(e,t){f.default[\"FontInspector\"].fontAdded(e,t)}});var d=new l.FontFaceObject(o,{isEvalSupported:u.isEvalSupported,disableFontFace:u.disableFontFace,ignoreErrors:u.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:h}),p=function(e){t.commonObjs.resolve(n,d)};this.fontLoader.bind([d],p);break;case\"FontPath\":this.commonObjs.resolve(n,o);break;default:throw new Error(\"Got unknown common object type \"+a)}}}),this),e.on(\"obj\",(function(e){if(!this.destroyed){var t=i(e,4),r=t[0],n=t[1],a=t[2],o=t[3],s=this.pageCache[n];if(!s.objs.hasData(r))switch(a){case\"JpegStream\":return new Promise((function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=function(){t(new Error(\"Error during JPEG image loading\"))},r.src=o})).then((function(e){s.objs.resolve(r,e)}));case\"Image\":s.objs.resolve(r,o);var u=8e6;o&&\"data\"in o&&o.data.length>u&&(s.cleanupAfterRender=!0);break;default:throw new Error(\"Got unknown object type \"+a)}}}),this),e.on(\"DocProgress\",(function(e){this.destroyed||t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}),this),e.on(\"PageError\",(function(e){if(!this.destroyed){var t=this.pageCache[e.pageNum-1],r=t.intentStates[e.intent];if(!r.displayReadyCapability)throw new Error(e.error);if(r.displayReadyCapability.reject(e.error),r.operatorList){r.operatorList.lastChunk=!0;for(var n=0;nthis.numPages)return Promise.reject(new Error(\"Invalid page request\"));var r=e-1;if(r in this.pagePromises)return this.pagePromises[r];var n=this.messageHandler.sendWithPromise(\"GetPage\",{pageIndex:r}).then((function(e){if(t.destroyed)throw new Error(\"Transport destroyed\");var n=new N(r,e,t,t._params.pdfBug);return t.pageCache[r]=n,n}));return this.pagePromises[r]=n,n}},{key:\"getPageIndex\",value:function(e){return this.messageHandler.sendWithPromise(\"GetPageIndex\",{ref:e}).catch((function(e){return Promise.reject(new Error(e))}))}},{key:\"getAnnotations\",value:function(e,t){return this.messageHandler.sendWithPromise(\"GetAnnotations\",{pageIndex:e,intent:t})}},{key:\"getDestinations\",value:function(){return this.messageHandler.sendWithPromise(\"GetDestinations\",null)}},{key:\"getDestination\",value:function(e){return\"string\"!==typeof e?Promise.reject(new Error(\"Invalid destination request.\")):this.messageHandler.sendWithPromise(\"GetDestination\",{id:e})}},{key:\"getPageLabels\",value:function(){return this.messageHandler.sendWithPromise(\"GetPageLabels\",null)}},{key:\"getPageMode\",value:function(){return this.messageHandler.sendWithPromise(\"GetPageMode\",null)}},{key:\"getAttachments\",value:function(){return this.messageHandler.sendWithPromise(\"GetAttachments\",null)}},{key:\"getJavaScript\",value:function(){return this.messageHandler.sendWithPromise(\"GetJavaScript\",null)}},{key:\"getOutline\",value:function(){return this.messageHandler.sendWithPromise(\"GetOutline\",null)}},{key:\"getPermissions\",value:function(){return this.messageHandler.sendWithPromise(\"GetPermissions\",null)}},{key:\"getMetadata\",value:function(){var e=this;return this.messageHandler.sendWithPromise(\"GetMetadata\",null).then((function(t){return{info:t[0],metadata:t[1]?new m.Metadata(t[1]):null,contentDispositionFilename:e._fullReader?e._fullReader.filename:null}}))}},{key:\"getStats\",value:function(){return this.messageHandler.sendWithPromise(\"GetStats\",null)}},{key:\"startCleanup\",value:function(){var e=this;this.messageHandler.sendWithPromise(\"Cleanup\",null).then((function(){for(var t=0,r=e.pageCache.length;t8&&void 0!==arguments[8]&&arguments[8];this.callback=e,this.params=t,this.objs=r,this.commonObjs=n,this.operatorListIdx=null,this.operatorList=i,this.pageNumber=a,this.canvasFactory=o,this.webGLContext=u,this._pdfBug=l,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this.useRequestAnimationFrame=!1,this.cancelled=!1,this.capability=(0,s.createPromiseCapability)(),this.task=new z(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=t.canvasContext.canvas}return t.prototype={initializeGraphics:function(t){if(!this.cancelled){if(this._canvas){if(e.has(this._canvas))throw new Error(\"Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.\");e.set(this._canvas,this)}this._pdfBug&&f.default.StepperManager&&f.default.StepperManager.enabled&&(this.stepper=f.default.StepperManager.create(this.pageNumber-1),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var r=this.params;this.gfx=new h.CanvasGraphics(r.canvasContext,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,r.imageLayer),this.gfx.beginDrawing({transform:r.transform,viewport:r.viewport,transparency:t,background:r.background}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}},cancel:function(){this.running=!1,this.cancelled=!0,this._canvas&&e.delete(this._canvas),this.callback(new u.RenderingCancelledException(\"Rendering cancelled, page \"+this.pageNumber,\"canvas\"))},operatorListChanged:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)},_continue:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())},_scheduleNext:function(){var e=this;this.useRequestAnimationFrame&&\"undefined\"!==typeof window?window.requestAnimationFrame((function(){e._nextBound().catch(e.callback)})):Promise.resolve().then(this._nextBound).catch(this.callback)},_next:function(){var t=this;return new Promise((function(){t.cancelled||(t.operatorListIdx=t.gfx.executeOperatorList(t.operatorList,t.operatorListIdx,t._continueBound,t.stepper),t.operatorListIdx===t.operatorList.argsArray.length&&(t.running=!1,t.operatorList.lastChunk&&(t.gfx.endDrawing(),t._canvas&&e.delete(t._canvas),t.callback())))}))}},t}();t.version=F=\"2.0.943\",t.build=I=\"dc98bf76\",t.getDocument=O,t.LoopbackPort=q,t.PDFDataRangeTransport=D,t.PDFWorker=W,t.PDFDocumentProxy=M,t.PDFPageProxy=N,t.setPDFNetworkStreamFactory=T,t.version=F,t.build=I},function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.loadScript=t.DummyStatTimer=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.getFilenameFromUrl=t.addLinkAttributes=t.RenderingCancelledException=t.PageViewport=void 0;var n=function(){function e(e,t){for(var r=0;r0&&t>0,\"Invalid SVG dimensions\");var r=document.createElementNS(s,\"svg:svg\");return r.setAttribute(\"version\",\"1.1\"),r.setAttribute(\"width\",e+\"px\"),r.setAttribute(\"height\",t+\"px\"),r.setAttribute(\"preserveAspectRatio\",\"none\"),r.setAttribute(\"viewBox\",\"0 0 \"+e+\" \"+t),r}},{key:\"createElement\",value:function(e){return(0,i.assert)(\"string\"===typeof e,\"Invalid SVG element type\"),document.createElementNS(s,e)}}]),e}(),h=function(){function e(t){var r=t.viewBox,n=t.scale,i=t.rotation,o=t.offsetX,s=void 0===o?0:o,u=t.offsetY,l=void 0===u?0:u,c=t.dontFlip,h=void 0!==c&&c;a(this,e),this.viewBox=r,this.scale=n,this.rotation=i,this.offsetX=s,this.offsetY=l;var d=(r[2]+r[0])/2,f=(r[3]+r[1])/2,p=void 0,v=void 0,m=void 0,g=void 0;switch(i%=360,i=i<0?i+360:i,i){case 180:p=-1,v=0,m=0,g=1;break;case 90:p=0,v=1,m=1,g=0;break;case 270:p=0,v=-1,m=-1,g=0;break;default:p=1,v=0,m=0,g=-1;break}h&&(m=-m,g=-g);var y=void 0,b=void 0,_=void 0,A=void 0;0===p?(y=Math.abs(f-r[1])*n+s,b=Math.abs(d-r[0])*n+l,_=Math.abs(r[3]-r[1])*n,A=Math.abs(r[2]-r[0])*n):(y=Math.abs(d-r[0])*n+s,b=Math.abs(f-r[1])*n+l,_=Math.abs(r[2]-r[0])*n,A=Math.abs(r[3]-r[1])*n),this.transform=[p*n,v*n,m*n,g*n,y-p*n*d-m*n*f,b-v*n*d-g*n*f],this.width=_,this.height=A}return n(e,[{key:\"clone\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.scale,n=void 0===r?this.scale:r,i=t.rotation,a=void 0===i?this.rotation:i,o=t.dontFlip,s=void 0!==o&&o;return new e({viewBox:this.viewBox.slice(),scale:n,rotation:a,offsetX:this.offsetX,offsetY:this.offsetY,dontFlip:s})}},{key:\"convertToViewportPoint\",value:function(e,t){return i.Util.applyTransform([e,t],this.transform)}},{key:\"convertToViewportRectangle\",value:function(e){var t=i.Util.applyTransform([e[0],e[1]],this.transform),r=i.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}},{key:\"convertToPdfPoint\",value:function(e,t){return i.Util.applyInverseTransform([e,t],this.transform)}}]),e}(),d=function(){function e(e,t){this.message=e,this.type=t}return e.prototype=new Error,e.prototype.name=\"RenderingCancelledException\",e.constructor=e,e}(),f={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4},p=[\"\",\"_self\",\"_blank\",\"_parent\",\"_top\"];function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.url,n=t.target,a=t.rel;if(e.href=e.title=r?(0,i.removeNullCharacters)(r):\"\",r){var s=Object.values(f),u=s.includes(n)?n:f.NONE;e.target=p[u],e.rel=\"string\"===typeof a?a:o}}function m(e){var t=e.indexOf(\"#\"),r=e.indexOf(\"?\"),n=Math.min(t>0?t:e.length,r>0?r:e.length);return e.substring(e.lastIndexOf(\"/\",n)+1,n)}var g=function(){function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a(this,e),this.enabled=!!t,this.started=Object.create(null),this.times=[]}return n(e,[{key:\"time\",value:function(e){this.enabled&&(e in this.started&&(0,i.warn)(\"Timer is already running for \"+e),this.started[e]=Date.now())}},{key:\"timeEnd\",value:function(e){this.enabled&&(e in this.started||(0,i.warn)(\"Timer has not been started for \"+e),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e])}},{key:\"toString\",value:function(){for(var e=this.times,t=\"\",r=0,n=0,i=e.length;nr&&(r=a.length)}for(var o=0,s=e.length;o0&&!this.isSyncFontLoadingSupported?this._prepareFontLoadEvent(r,n,v):v.complete()}},{key:\"_queueLoadingCallback\",value:function(e){function t(){(0,i.assert)(!n.done,\"completeRequest() cannot be called twice.\"),n.done=!0;while(r.requests.length>0&&r.requests[0].done){var e=r.requests.shift();setTimeout(e.callback,0)}}var r=this.loadingContext,n={id:\"pdfjs-font-loading-\"+r.nextRequestId++,done:!1,complete:t,callback:e};return r.requests.push(n),n}},{key:\"_prepareFontLoadEvent\",value:function(e,t,r){(0,i.unreachable)(\"Abstract method `_prepareFontLoadEvent`.\")}},{key:\"isFontLoadingAPISupported\",get:function(){(0,i.unreachable)(\"Abstract method `isFontLoadingAPISupported`.\")}},{key:\"isSyncFontLoadingSupported\",get:function(){(0,i.unreachable)(\"Abstract method `isSyncFontLoadingSupported`.\")}},{key:\"_loadTestFont\",get:function(){(0,i.unreachable)(\"Abstract method `_loadTestFont`.\")}}]),e}(),l=void 0;t.FontLoader=l=function(e){function t(e){s(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.loadTestFontId=0,r}return o(t,e),n(t,[{key:\"_prepareFontLoadEvent\",value:function(e,t,r){function n(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function a(e,t,r,n){var i=e.substring(0,t),a=e.substring(t+r);return i+n+a}var o=void 0,s=void 0,u=document.createElement(\"canvas\");u.width=1,u.height=1;var l=u.getContext(\"2d\"),c=0;function h(e,t){if(c++,c>30)return(0,i.warn)(\"Load test font never loaded.\"),void t();l.font=\"30px \"+e,l.fillText(\".\",0,20);var r=l.getImageData(0,0,1,1);r.data[3]>0?t():setTimeout(h.bind(null,e,t))}var d=\"lt\"+Date.now()+this.loadTestFontId++,f=this._loadTestFont,p=976;f=a(f,p,d.length,d);var v=16,m=1482184792,g=n(f,v);for(o=0,s=d.length-3;o=14&&(e=!0)}return(0,i.shadow)(this,\"isSyncFontLoadingSupported\",e)}},{key:\"_loadTestFont\",get:function(){var e=function(){return atob(\"T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==\")};return(0,i.shadow)(this,\"_loadTestFont\",e())}}]),t}(u);var c={get value(){return(0,i.shadow)(this,\"value\",(0,i.isEvalSupported)())}},h=function(){function e(t,r){var n=r.isEvalSupported,i=void 0===n||n,a=r.disableFontFace,o=void 0!==a&&a,u=r.ignoreErrors,l=void 0!==u&&u,c=r.onUnsupportedFeature,h=void 0===c?null:c,d=r.fontRegistry,f=void 0===d?null:d;for(var p in s(this,e),this.compiledGlyphs=Object.create(null),t)this[p]=t[p];this.isEvalSupported=!1!==i,this.disableFontFace=!0===o,this.ignoreErrors=!0===l,this._onUnsupportedFeature=h,this.fontRegistry=f}return n(e,[{key:\"createNativeFontFace\",value:function(){if(!this.data||this.disableFontFace)return null;var e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}},{key:\"createFontFaceRule\",value:function(){if(!this.data||this.disableFontFace)return null;var e=(0,i.bytesToString)(new Uint8Array(this.data)),t=\"url(data:\"+this.mimetype+\";base64,\"+btoa(e)+\");\",r='@font-face {font-family:\"'+this.loadedName+'\";src:'+t+\"}\";return this.fontRegistry&&this.fontRegistry.registerFont(this,t),r}},{key:\"getPathGenerator\",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var r=void 0,n=void 0;try{r=e.get(this.loadedName+\"_path_\"+t)}catch(l){if(!this.ignoreErrors)throw l;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:i.UNSUPPORTED_FEATURES.font}),(0,i.warn)('getPathGenerator - ignoring character: \"'+l+'\".'),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&c.value){for(var a=void 0,o=\"\",s=0,u=r.length;s0)f[p++]=m&v?0:255,v>>=1}var g=0;for(p=0,0!==f[p]&&(l[0]=1,++g),r=1;r>2)+(f[p+1]?4:0)+(f[p-h+1]?8:0),c[y]&&(l[n+r]=c[y],++g),p++;if(f[p-h]!==f[p]&&(l[n+r]=f[p]?2:4,++g),g>a)return null}for(p=h*(s-1),n=t*u,0!==f[p]&&(l[n]=8,++g),r=1;ra)return null;var b=new Int32Array([0,u,-1,0,-u,0,0,0,1]),_=[];for(t=0;g&&t<=s;t++){var A=t*u,w=A+o;while(A>4,l[A]&=k>>2|k<<2),C.push(A%u),C.push(A/u|0),--g}while(x!==A);_.push(C),--t}}var R=function(e){e.save(),e.scale(1/o,-1/s),e.translate(0,-s),e.beginPath();for(var t=0,r=_.length;t>2),A=_.length,w=l+7>>3,S=4294967295,C=d.value?4278190080:255;for(i=0;iw?l:8*k-7,R=-8&P,E=0,T=0;x>=1}while(r=f&&(o=c,s=l*o),r=0,a=s;a--;)y[r++]=g[m++],y[r++]=g[m++],y[r++]=g[m++],y[r++]=255;e.putImageData(v,0,i*h)}}}}function y(e,t){for(var r=t.height,n=t.width,i=r%h,a=(r-i)/h,o=0===i?a:a+1,s=e.createImageData(n,h),u=0,l=t.data,c=s.data,d=0;d>=1}e.putImageData(s,0,d*h)}}function b(e,t){for(var r=[\"strokeStyle\",\"fillStyle\",\"fillRule\",\"globalAlpha\",\"lineWidth\",\"lineCap\",\"lineJoin\",\"miterLimit\",\"globalCompositeOperation\",\"font\"],n=0,i=r.length;n>8,e[a-2]=e[a-2]*o+r*s>>8,e[a-1]=e[a-1]*o+n*s>>8}}}function w(e,t,r){for(var n=e.length,i=1/255,a=3;a>8]>>8:t[i]*a>>16}}function C(e,t,r,n,i,a,o){var s,u=!!a,l=u?a[0]:0,c=u?a[1]:0,h=u?a[2]:0;s=\"Luminosity\"===i?S:w;for(var d=1048576,f=Math.min(n,Math.ceil(d/r)),p=0;pt&&\"function\"===typeof a,f=d?Date.now()+e:0,p=0,v=this.commonObjs,m=this.objs;while(1){if(void 0!==o&&l===o.nextBreakPoint)return o.breakIt(l,a),l;if(h=u[l],h!==n.OPS.dependency)this[h].apply(this,s[l]);else for(var g=s[l],y=0,b=g.length;yt){if(Date.now()>f)return a(),l;p=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=x[e]},setLineJoin:function(e){this.ctx.lineJoin=P[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)},setRenderingIntent:function(e){},setFlatness:function(e){},setGState:function(e){for(var t=0,r=e.length;t0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=a?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null;break}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,r=e.canvas.height,n=\"smaskGroupAt\"+this.groupLevel,i=this.cachedCanvases.getCanvas(n,t,r,!0),a=this.ctx,o=a.mozCurrentTransform;this.ctx.save();var s=i.context;s.scale(1/e.scaleX,1/e.scaleY),s.translate(-e.offsetX,-e.offsetY),s.transform.apply(s,o),e.startTransformInverse=s.mozCurrentTransformInverse,b(a,s),this.ctx=s,this.setGState([[\"BM\",\"source-over\"],[\"ca\",1],[\"CA\",1]]),this.groupStack.push(a),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),k(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),b(e,this.ctx),this.current.resumeSMaskCtx=e;var t=n.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),k(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),b(e,this.ctx);var t=n.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(e,t,r,n,i,a){this.ctx.transform(e,t,r,n,i,a),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var r=this.ctx,i=this.current,a=i.x,o=i.y,s=0,u=0,l=e.length;so?o:t;this.current.fontSizeScale=t/h;var d=l+\" \"+u+\" \"+h+\"px \"+c;this.ctx.font=d}},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,r,n,i,a){this.current.textMatrix=[e,t,r,n,i,a],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(e,t,r,i){var a,o=this.ctx,s=this.current,u=s.font,l=s.textRenderingMode,c=s.fontSize/s.fontSizeScale,h=l&n.TextRenderingMode.FILL_STROKE_MASK,d=!!(l&n.TextRenderingMode.ADD_TO_PATH_FLAG),f=s.patternFill&&u.data;if((u.disableFontFace||d||f)&&(a=u.getPathGenerator(this.commonObjs,e)),u.disableFontFace||f?(o.save(),o.translate(t,r),o.beginPath(),a(o,c),i&&o.setTransform.apply(o,i),h!==n.TextRenderingMode.FILL&&h!==n.TextRenderingMode.FILL_STROKE||o.fill(),h!==n.TextRenderingMode.STROKE&&h!==n.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(h!==n.TextRenderingMode.FILL&&h!==n.TextRenderingMode.FILL_STROKE||o.fillText(e,t,r),h!==n.TextRenderingMode.STROKE&&h!==n.TextRenderingMode.FILL_STROKE||o.strokeText(e,t,r)),d){var p=this.pendingTextPaths||(this.pendingTextPaths=[]);p.push({transform:o.mozCurrentTransform,x:t,y:r,fontSize:c,addToPath:a})}},get isFontSubpixelAAEnabled(){var e=this.canvasFactory.create(10,10).context;e.scale(1.5,1),e.fillText(\"I\",0,10);for(var t=e.getImageData(0,0,10,10).data,r=!1,i=3;i0&&t[i]<255){r=!0;break}return(0,n.shadow)(this,\"isFontSubpixelAAEnabled\",r)},showText:function(e){var t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);var i=t.fontSize;if(0!==i){var a=this.ctx,o=t.fontSizeScale,s=t.charSpacing,l=t.wordSpacing,c=t.fontDirection,h=t.textHScale*c,d=e.length,f=r.vertical,p=f?1:-1,v=r.defaultVMetrics,m=i*t.fontMatrix[0],g=t.textRenderingMode===n.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill;a.save();var y=void 0;if(t.patternFill){a.save();var b=t.fillColor.getPattern(a,this);y=a.mozCurrentTransform,a.restore(),a.fillStyle=b}a.transform.apply(a,t.textMatrix),a.translate(t.x,t.y+t.textRise),c>0?a.scale(h,-1):a.scale(h,1);var _=t.lineWidth,A=t.textMatrixScale;if(0===A||0===_){var w=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;w!==n.TextRenderingMode.STROKE&&w!==n.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,_=this.getSinglePixelWidth()*u)}else _/=A;1!==o&&(a.scale(o,o),_/=o),a.lineWidth=_;var S,C=0;for(S=0;S0){var N=1e3*a.measureText(j).width/i*o;if(Ms&&(h=l/s,l=s),c>s&&(d=c/s,c=s);var f=\"groupAt\"+this.groupLevel;e.smask&&(f+=\"_smask_\"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(f,l,c,!0),v=p.context;v.scale(1/h,1/d),v.translate(-o,-u),v.transform.apply(v,r),e.smask?this.smaskStack.push({canvas:p.canvas,context:v,offsetX:o,offsetY:u,scaleX:h,scaleY:d,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(o,u),t.scale(h,d)),b(t,v),this.ctx=v,this.setGState([[\"BM\",\"source-over\"],[\"ca\",1],[\"CA\",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,r){if(this.save(),_(this.ctx),this.current=new m,Array.isArray(e)&&4===e.length){var n=e[2]-e[0],i=e[3]-e[1];this.ctx.rect(e[0],e[1],n,i),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,r)},endAnnotation:function(){this.restore()},paintJpegXObject:function(e,t,r){var i=this.objs.get(e);if(i){this.save();var a=this.ctx;if(a.scale(1/t,-1/r),a.drawImage(i,0,0,i.width,i.height,0,-r,t,r),this.imageLayer){var o=a.mozCurrentTransformInverse,s=this.getCanvasPosition(0,0);this.imageLayer.appendImage({objId:e,left:s[0],top:s[1],width:t/o[0],height:r/o[3]})}this.restore()}else(0,n.warn)(\"Dependent image isn't ready yet\")},paintImageMaskXObject:function(e){var t=this.ctx,r=e.width,n=e.height,i=this.current.fillColor,a=this.current.patternFill,o=this.processingType3;if(l&&o&&void 0===o.compiled&&(o.compiled=r<=c&&n<=c?v({data:e.data,width:r,height:n}):null),o&&o.compiled)o.compiled(t);else{var s=this.cachedCanvases.getCanvas(\"maskCanvas\",r,n),u=s.context;u.save(),y(u,e),u.globalCompositeOperation=\"source-in\",u.fillStyle=a?i.getPattern(u,this):i,u.fillRect(0,0,r,n),u.restore(),this.paintInlineImageXObject(s.canvas)}},paintImageMaskXObjectRepeat:function(e,t,r,n){var i=e.width,a=e.height,o=this.current.fillColor,s=this.current.patternFill,u=this.cachedCanvases.getCanvas(\"maskCanvas\",i,a),l=u.context;l.save(),y(l,e),l.globalCompositeOperation=\"source-in\",l.fillStyle=s?o.getPattern(l,this):o,l.fillRect(0,0,i,a),l.restore();for(var c=this.ctx,h=0,d=n.length;h2&&p>1||d>2&&v>1){var y=p,b=v;l>2&&p>1&&(y=Math.ceil(p/2),l/=p/y),d>2&&v>1&&(b=Math.ceil(v/2),d/=v/b),a=this.cachedCanvases.getCanvas(m,y,b),f=a.context,f.clearRect(0,0,y,b),f.drawImage(i,0,0,p,v,0,0,y,b),i=a.canvas,p=y,v=b,m=\"prescale1\"===m?\"prescale2\":\"prescale1\"}if(n.drawImage(i,0,0,p,v,0,-r,t,r),this.imageLayer){var _=this.getCanvasPosition(0,-r);this.imageLayer.appendImage({imgData:e,left:_[0],top:_[1],width:t/o[0],height:r/o[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,t){var r=this.ctx,n=e.width,i=e.height,a=this.cachedCanvases.getCanvas(\"inlineImage\",n,i),o=a.context;g(o,e);for(var s=0,u=t.length;sl[n+1]&&(u=r,r=n,n=u,u=a,a=o,o=u),l[n+1]>l[i+1]&&(u=n,n=i,i=u,u=o,o=s,s=u),l[r+1]>l[n+1]&&(u=r,r=n,n=u,u=a,a=o,o=u);var f=(l[r]+t.offsetX)*t.scaleX,p=(l[r+1]+t.offsetY)*t.scaleY,v=(l[n]+t.offsetX)*t.scaleX,m=(l[n+1]+t.offsetY)*t.scaleY,g=(l[i]+t.offsetX)*t.scaleX,y=(l[i+1]+t.offsetY)*t.scaleY;if(!(p>=y))for(var b,_,A,w,S,C,k,x,P,R=c[a],E=c[a+1],T=c[a+2],O=c[o],L=c[o+1],F=c[o+2],I=c[s],j=c[s+1],D=c[s+2],M=Math.round(p),N=Math.round(y),q=M;q<=N;q++){qy?1:m===y?0:(m-q)/(m-y),b=v-(v-g)*P,_=O-(O-I)*P,A=L-(L-j)*P,w=F-(F-D)*P),P=qy?1:(p-q)/(p-y),S=f-(f-g)*P,C=R-(R-I)*P,k=E-(E-j)*P,x=T-(T-D)*P;for(var W=Math.round(Math.min(b,S)),B=Math.round(Math.max(b,S)),U=d*q+4*W,z=W;z<=B;z++)P=(b-z)/(b-S),P=P<0?0:P>1?1:P,h[U++]=_-(_-C)*P|0,h[U++]=A-(A-k)*P|0,h[U++]=w-(w-x)*P|0,h[U++]=255}}function t(t,r,n){var i,a,o=r.coords,s=r.colors;switch(r.type){case\"lattice\":var u=r.verticesPerRow,l=Math.floor(o.length/u)-1,c=u-1;for(i=0;i2&&void 0!==arguments[2]?arguments[2]:null;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt(\"return\");case 2:return e.abrupt(\"return\",t.apply(n,r));case 3:case\"end\":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),s=r(1);function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,r){function n(i,a){try{var o=t[i](a),s=o.value}catch(u){return void r(u)}if(!o.done)return Promise.resolve(s).then((function(e){n(\"next\",e)}),(function(e){n(\"throw\",e)}));e(s)}return n(\"next\")}))}}function c(e){if(\"object\"!==(\"undefined\"===typeof e?\"undefined\":a(e)))return e;switch(e.name){case\"AbortException\":return new s.AbortException(e.message);case\"MissingPDFException\":return new s.MissingPDFException(e.message);case\"UnexpectedResponseException\":return new s.UnexpectedResponseException(e.message,e.status);default:return new s.UnknownErrorException(e.message,e.details)}}function h(e){return!(e instanceof Error)||e instanceof s.AbortException||e instanceof s.MissingPDFException||e instanceof s.UnexpectedResponseException||e instanceof s.UnknownErrorException?e:new s.UnknownErrorException(e.message,e.toString())}function d(e,t,r){t?e.resolve():e.reject(r)}function f(e){return Promise.resolve(e).catch((function(){}))}function p(e,t,r){var n=this;this.sourceName=e,this.targetName=t,this.comObj=r,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null);var i=this.callbacksCapabilities=Object.create(null),a=this.actionHandler=Object.create(null);this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===n.sourceName)if(t.stream)n._processStreamMessage(t);else if(t.isReply){var o=t.callbackId;if(!(t.callbackId in i))throw new Error(\"Cannot resolve callback \"+o);var s=i[o];delete i[o],\"error\"in t?s.reject(c(t.error)):s.resolve(t.data)}else{if(!(t.action in a))throw new Error(\"Unknown action from worker: \"+t.action);var u=a[t.action];if(t.callbackId){var l=n.sourceName,d=t.sourceName;Promise.resolve().then((function(){return u[0].call(u[1],t.data)})).then((function(e){r.postMessage({sourceName:l,targetName:d,isReply:!0,callbackId:t.callbackId,data:e})}),(function(e){r.postMessage({sourceName:l,targetName:d,isReply:!0,callbackId:t.callbackId,error:h(e)})}))}else t.streamId?n._createStreamSink(t):u[0].call(u[1],t.data)}},r.addEventListener(\"message\",this._onComObjOnMessage)}p.prototype={on:function(e,t,r){var n=this.actionHandler;if(n[e])throw new Error('There is already an actionName called \"'+e+'\"');n[e]=[t,r]},send:function(e,t,r){var n={sourceName:this.sourceName,targetName:this.targetName,action:e,data:t};this.postMessage(n,r)},sendWithPromise:function(e,t,r){var n=this.callbackId++,i={sourceName:this.sourceName,targetName:this.targetName,action:e,data:t,callbackId:n},a=(0,s.createPromiseCapability)();this.callbacksCapabilities[n]=a;try{this.postMessage(i,r)}catch(o){a.reject(o)}return a.promise},sendWithStream:function(e,t,r,n){var i=this,a=this.streamId++,o=this.sourceName,u=this.targetName;return new s.ReadableStream({start:function(r){var n=(0,s.createPromiseCapability)();return i.streamControllers[a]={controller:r,startCall:n,isClosed:!1},i.postMessage({sourceName:o,targetName:u,action:e,streamId:a,data:t,desiredSize:r.desiredSize}),n.promise},pull:function(e){var t=(0,s.createPromiseCapability)();return i.streamControllers[a].pullCall=t,i.postMessage({sourceName:o,targetName:u,stream:\"pull\",streamId:a,desiredSize:e.desiredSize}),t.promise},cancel:function(e){var t=(0,s.createPromiseCapability)();return i.streamControllers[a].cancelCall=t,i.streamControllers[a].isClosed=!0,i.postMessage({sourceName:o,targetName:u,stream:\"cancel\",reason:e,streamId:a}),t.promise}},r)},_createStreamSink:function(e){var t=this,r=this,n=this.actionHandler[e.action],i=e.streamId,a=e.desiredSize,u=this.sourceName,l=e.sourceName,c=(0,s.createPromiseCapability)(),h=function(e){var r=e.stream,n=e.chunk,a=e.transfers,o=e.success,s=e.reason;t.postMessage({sourceName:u,targetName:l,stream:r,streamId:i,chunk:n,success:o,reason:s},a)},d={enqueue:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments[2];if(!this.isCancelled){var n=this.desiredSize;this.desiredSize-=t,n>0&&this.desiredSize<=0&&(this.sinkCapability=(0,s.createPromiseCapability)(),this.ready=this.sinkCapability.promise),h({stream:\"enqueue\",chunk:e,transfers:r})}},close:function(){this.isCancelled||(this.isCancelled=!0,h({stream:\"close\"}),delete r.streamSinks[i])},error:function(e){this.isCancelled||(this.isCancelled=!0,h({stream:\"error\",reason:e}))},sinkCapability:c,onPull:null,onCancel:null,isCancelled:!1,desiredSize:a,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[i]=d,o(n[0],[e.data,d],n[1]).then((function(){h({stream:\"start_complete\",success:!0})}),(function(e){h({stream:\"start_complete\",success:!1,reason:e})}))},_processStreamMessage:function(e){var t=this,r=this.sourceName,n=e.sourceName,i=e.streamId,a=function(e){var a=e.stream,o=e.success,s=e.reason;t.comObj.postMessage({sourceName:r,targetName:n,stream:a,success:o,streamId:i,reason:s})},u=function(){Promise.all([t.streamControllers[e.streamId].startCall,t.streamControllers[e.streamId].pullCall,t.streamControllers[e.streamId].cancelCall].map((function(e){return e&&f(e.promise)}))).then((function(){delete t.streamControllers[e.streamId]}))};switch(e.stream){case\"start_complete\":d(this.streamControllers[e.streamId].startCall,e.success,c(e.reason));break;case\"pull_complete\":d(this.streamControllers[e.streamId].pullCall,e.success,c(e.reason));break;case\"pull\":if(!this.streamSinks[e.streamId]){a({stream:\"pull_complete\",success:!0});break}this.streamSinks[e.streamId].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[e.streamId].sinkCapability.resolve(),this.streamSinks[e.streamId].desiredSize=e.desiredSize,o(this.streamSinks[e.streamId].onPull).then((function(){a({stream:\"pull_complete\",success:!0})}),(function(e){a({stream:\"pull_complete\",success:!1,reason:e})}));break;case\"enqueue\":(0,s.assert)(this.streamControllers[e.streamId],\"enqueue should have stream controller\"),this.streamControllers[e.streamId].isClosed||this.streamControllers[e.streamId].controller.enqueue(e.chunk);break;case\"close\":if((0,s.assert)(this.streamControllers[e.streamId],\"close should have stream controller\"),this.streamControllers[e.streamId].isClosed)break;this.streamControllers[e.streamId].isClosed=!0,this.streamControllers[e.streamId].controller.close(),u();break;case\"error\":(0,s.assert)(this.streamControllers[e.streamId],\"error should have stream controller\"),this.streamControllers[e.streamId].controller.error(c(e.reason)),u();break;case\"cancel_complete\":d(this.streamControllers[e.streamId].cancelCall,e.success,c(e.reason)),u();break;case\"cancel\":if(!this.streamSinks[e.streamId])break;o(this.streamSinks[e.streamId].onCancel,[c(e.reason)]).then((function(){a({stream:\"cancel_complete\",success:!0})}),(function(e){a({stream:\"cancel_complete\",success:!1,reason:e})})),this.streamSinks[e.streamId].sinkCapability.reject(c(e.reason)),this.streamSinks[e.streamId].isCancelled=!0,delete this.streamSinks[e.streamId];break;default:throw new Error(\"Unexpected stream case\")}},postMessage:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)},destroy:function(){this.comObj.removeEventListener(\"message\",this._onComObjOnMessage)}},t.MessageHandler=p},function(e,t,r){\"use strict\";e.exports=r(138)},function(e,t,r){\"use strict\";var n=function(){return this}()||Function(\"return this\")(),i=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf(\"regeneratorRuntime\")>=0,a=i&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=r(139),i)n.regeneratorRuntime=a;else try{delete n.regeneratorRuntime}catch(o){n.regeneratorRuntime=void 0}},function(e,t,r){\"use strict\";(function(e){var t=\"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};!function(r){var n,i=Object.prototype,a=i.hasOwnProperty,o=\"function\"===typeof Symbol?Symbol:{},s=o.iterator||\"@@iterator\",u=o.asyncIterator||\"@@asyncIterator\",l=o.toStringTag||\"@@toStringTag\",c=\"object\"===t(e),h=r.regeneratorRuntime;if(h)c&&(e.exports=h);else{h=r.regeneratorRuntime=c?e.exports:{},h.wrap=A;var d=\"suspendedStart\",f=\"suspendedYield\",p=\"executing\",v=\"completed\",m={},g={};g[s]=function(){return this};var y=Object.getPrototypeOf,b=y&&y(y(F([])));b&&b!==i&&a.call(b,s)&&(g=b);var _=k.prototype=S.prototype=Object.create(g);C.prototype=_.constructor=k,k.constructor=C,k[l]=C.displayName=\"GeneratorFunction\",h.isGeneratorFunction=function(e){var t=\"function\"===typeof e&&e.constructor;return!!t&&(t===C||\"GeneratorFunction\"===(t.displayName||t.name))},h.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,l in e||(e[l]=\"GeneratorFunction\")),e.prototype=Object.create(_),e},h.awrap=function(e){return{__await:e}},x(P.prototype),P.prototype[u]=function(){return this},h.AsyncIterator=P,h.async=function(e,t,r,n){var i=new P(A(e,t,r,n));return h.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(_),_[l]=\"Generator\",_[s]=function(){return this},_.toString=function(){return\"[object Generator]\"},h.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){while(t.length){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},h.values=F,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=n,this.tryEntries.forEach(O),!e)for(var t in this)\"t\"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type=\"throw\",s.arg=e,t.next=r,i&&(t.method=\"next\",t.arg=n),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if(\"root\"===o.tryLoc)return r(\"end\");if(o.tryLoc<=this.prev){var u=a.call(o,\"catchLoc\"),l=a.call(o,\"finallyLoc\");if(u&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,\"finallyLoc\")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;O(r)}return i}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,t,r){return this.delegate={iterator:F(e),resultName:t,nextLoc:r},\"next\"===this.method&&(this.arg=n),m}}}function A(e,t,r,n){var i=t&&t.prototype instanceof S?t:S,a=Object.create(i.prototype),o=new L(n||[]);return a._invoke=R(e,r,o),a}function w(e,t,r){try{return{type:\"normal\",arg:e.call(t,r)}}catch(n){return{type:\"throw\",arg:n}}}function S(){}function C(){}function k(){}function x(e){[\"next\",\"throw\",\"return\"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function P(e){function r(n,i,o,s){var u=w(e[n],e,i);if(\"throw\"!==u.type){var l=u.arg,c=l.value;return c&&\"object\"===(\"undefined\"===typeof c?\"undefined\":t(c))&&a.call(c,\"__await\")?Promise.resolve(c.__await).then((function(e){r(\"next\",e,o,s)}),(function(e){r(\"throw\",e,o,s)})):Promise.resolve(c).then((function(e){l.value=e,o(l)}),s)}s(u.arg)}var n;function i(e,t){function i(){return new Promise((function(n,i){r(e,t,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=i}function R(e,t,r){var n=d;return function(i,a){if(n===p)throw new Error(\"Generator is already running\");if(n===v){if(\"throw\"===i)throw a;return I()}r.method=i,r.arg=a;while(1){var o=r.delegate;if(o){var s=E(o,r);if(s){if(s===m)continue;return s}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(n===d)throw n=v,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);n=p;var u=w(e,t,r);if(\"normal\"===u.type){if(n=r.done?v:f,u.arg===m)continue;return{value:u.arg,done:r.done}}\"throw\"===u.type&&(n=v,r.method=\"throw\",r.arg=u.arg)}}}function E(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,\"throw\"===t.method){if(e.iterator.return&&(t.method=\"return\",t.arg=n,E(e,t),\"throw\"===t.method))return m;t.method=\"throw\",t.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return m}var i=w(r,e.iterator,t.arg);if(\"throw\"===i.type)return t.method=\"throw\",t.arg=i.arg,t.delegate=null,m;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,\"return\"!==t.method&&(t.method=\"next\",t.arg=n),t.delegate=null,m):a:(t.method=\"throw\",t.arg=new TypeError(\"iterator result is not an object\"),t.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type=\"normal\",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:\"root\"}],e.forEach(T,this),this.reset(!0)}function F(e){if(e){var t=e[s];if(t)return t.call(e);if(\"function\"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){while(++r\\\\376\\\\377([^<]+)/g,(function(e,t){for(var r=t.replace(/\\\\([0-3])([0-7])([0-7])/g,(function(e,t,r,n){return String.fromCharCode(64*t+8*r+1*n)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case\"amp\":return\"&\";case\"apos\":return\"'\";case\"gt\":return\">\";case\"lt\":return\"<\";case\"quot\":return'\"'}throw new Error(\"_repair: \"+t+\" isn't defined.\")})),n=\"\",i=0,a=r.length;i=32&&o<127&&60!==o&&62!==o&&38!==o?String.fromCharCode(o):\"&#x\"+(65536+o).toString(16).substring(1)+\";\"}return\">\"+n}))}},{key:\"_parse\",value:function(e){var t=e.documentElement;if(\"rdf:rdf\"!==t.nodeName.toLowerCase()){t=t.firstChild;while(t&&\"rdf:rdf\"!==t.nodeName.toLowerCase())t=t.nextSibling}var r=t?t.nodeName.toLowerCase():null;if(t&&\"rdf:rdf\"===r&&t.hasChildNodes())for(var n=t.childNodes,i=0,a=n.length;i\";case\"amp\":return\"&\";case\"quot\":return'\"'}return this.onResolveEntity(t)}))}},{key:\"_parseContent\",value:function(e,t){var r=t,n=void 0,i=[];function a(){while(r\"!==e[r]&&\"/\"!==e[r])++r;n=e.substring(t,r),a();while(r\"!==e[r]&&\"/\"!==e[r]&&\"?\"!==e[r]){a();var o=\"\",s=\"\";while(r\"!==e[r]&&\"/\"!==e[r])++r;n=e.substring(t,r),a();var o=r;while(r\"!==e[r+1]))++r;return i=e.substring(o,r),{name:n,value:i,parsed:r-t}}},{key:\"parseXml\",value:function(e){var t=0;while(t\",n),a<0)return void this.onError(l.UnterminatedElement);this.onEndElement(e.substring(n,a)),n=a+1;break;case\"?\":++n;var o=this._parseProcessingInstruction(e,n);if(\"?>\"!==e.substring(n+o.parsed,n+o.parsed+2))return void this.onError(l.UnterminatedXmlDeclaration);this.onPi(o.name,o.value),n+=o.parsed+2;break;case\"!\":if(\"--\"===e.substring(n+1,n+3)){if(a=e.indexOf(\"--\\x3e\",n+3),a<0)return void this.onError(l.UnterminatedComment);this.onComment(e.substring(n+3,a)),n=a+3}else if(\"[CDATA[\"===e.substring(n+1,n+8)){if(a=e.indexOf(\"]]>\",n+8),a<0)return void this.onError(l.UnterminatedCdat);this.onCdata(e.substring(n+8,a)),n=a+3}else{if(\"DOCTYPE\"!==e.substring(n+1,n+8))return void this.onError(l.MalformedElement);var s=e.indexOf(\"[\",n+8),u=!1;if(a=e.indexOf(\">\",n+8),a<0)return void this.onError(l.UnterminatedDoctypeDeclaration);if(s>0&&a>s){if(a=e.indexOf(\"]>\",n+8),a<0)return void this.onError(l.UnterminatedDoctypeDeclaration);u=!0}var c=e.substring(n+8,a+(u?1:0));this.onDoctype(c),n=a+(u?2:1)}break;default:var h=this._parseContent(e,n);if(null===h)return void this.onError(l.MalformedElement);var d=!1;if(\"/>\"===e.substring(n+h.parsed,n+h.parsed+2))d=!0;else if(\">\"!==e.substring(n+h.parsed,n+h.parsed+1))return void this.onError(l.UnterminatedElement);this.onBeginElement(h.name,h.attributes,d),n+=h.parsed+(d?2:1);break}}else{while(n0}},{key:\"firstChild\",get:function(){return this.childNodes[0]}},{key:\"nextSibling\",get:function(){var e=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[e+1]}},{key:\"textContent\",get:function(){return this.childNodes?this.childNodes.map((function(e){return e.textContent})).join(\"\"):this.nodeValue||\"\"}}]),e}(),p=function(e){function t(){u(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._currentFragment=null,e._stack=null,e._errorCode=l.NoError,e}return s(t,e),a(t,[{key:\"parseFromString\",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=l.NoError,this.parseXml(e),this._errorCode===l.NoError){var t=n(this._currentFragment,1),r=t[0];if(r)return{documentElement:r}}}},{key:\"onResolveEntity\",value:function(e){switch(e){case\"apos\":return\"'\"}return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"onResolveEntity\",this).call(this,e)}},{key:\"onText\",value:function(e){if(!h(e)){var t=new f(\"#text\",e);this._currentFragment.push(t)}}},{key:\"onCdata\",value:function(e){var t=new f(\"#text\",e);this._currentFragment.push(t)}},{key:\"onBeginElement\",value:function(e,t,r){var n=new f(e);n.childNodes=[],this._currentFragment.push(n),r||(this._stack.push(this._currentFragment),this._currentFragment=n.childNodes)}},{key:\"onEndElement\",value:function(e){this._currentFragment=this._stack.pop();for(var t=this._currentFragment[this._currentFragment.length-1],r=0,n=t.childNodes.length;r0){var i=new Uint8Array(n).buffer;this._queuedChunks.push(i)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((function(e,t){r._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener((function(e){r._onProgress({loaded:e})})),this._pdfDataRangeTransport.addProgressiveReadListener((function(e){r._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.transportReady()}function t(e,t){this._stream=e,this._done=!1,this._filename=null,this._queuedChunks=t||[],this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}function r(e,t,r){this._stream=e,this._begin=t,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return e.prototype={_onReceiveData:function(e){var t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{var r=this._rangeReaders.some((function(r){return r._begin===e.begin&&(r._enqueue(t),!0)}));(0,a.assert)(r)}},_onProgress:function(e){if(this._rangeReaders.length>0){var t=this._rangeReaders[0];t.onProgress&&t.onProgress({loaded:e.loaded})}},_removeRangeReader:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)},getFullReader:function(){(0,a.assert)(!this._fullRequestReader);var e=this._queuedChunks;return this._queuedChunks=null,new t(this,e)},getRangeReader:function(e,t){var n=new r(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n},cancelAllRequests:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeReaders.slice(0);t.forEach((function(t){t.cancel(e)})),this._pdfDataRangeTransport.abort()}},t.prototype={_enqueue:function(e){if(!this._done)if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e,done:!1})}else this._queuedChunks.push(e)},get headersReady(){return this._headersReady},get filename(){return this._filename},get isRangeSupported(){return this._stream._isRangeSupported},get isStreamingSupported(){return this._stream._isStreamingSupported},get contentLength(){return this._stream._contentLength},read:function(){var e=s(i.default.mark((function e(){var t,r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this._queuedChunks.length>0)){e.next=3;break}return t=this._queuedChunks.shift(),e.abrupt(\"return\",{value:t,done:!1});case 3:if(!this._done){e.next=5;break}return e.abrupt(\"return\",{value:void 0,done:!0});case 5:return r=(0,a.createPromiseCapability)(),this._requests.push(r),e.abrupt(\"return\",r.promise);case 8:case\"end\":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),cancel:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]}},r.prototype={_enqueue:function(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{var t=this._requests.shift();t.resolve({value:e,done:!1}),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]}this._done=!0,this._stream._removeRangeReader(this)}},get isStreamingSupported(){return!1},read:function(){var e=s(i.default.mark((function e(){var t,r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt(\"return\",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt(\"return\",{value:void 0,done:!0});case 6:return r=(0,a.createPromiseCapability)(),this._requests.push(r),e.abrupt(\"return\",r.promise);case 9:case\"end\":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),cancel:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._stream._removeRangeReader(this)}},e}();t.PDFDataTransportStream=u},function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.WebGLContext=void 0;var n=function(){function e(e,t){for(var r=0;r 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } \",c=null;function h(){var e,i;s(),e=o,o=null,i=a,a=null;var h=t(i,u),d=r(i,l),f=n(i,[h,d]);i.useProgram(f);var p={};p.gl=i,p.canvas=e,p.resolutionLocation=i.getUniformLocation(f,\"u_resolution\"),p.positionLocation=i.getAttribLocation(f,\"a_position\"),p.backdropLocation=i.getUniformLocation(f,\"u_backdrop\"),p.subtypeLocation=i.getUniformLocation(f,\"u_subtype\");var v=i.getAttribLocation(f,\"a_texCoord\"),m=i.getUniformLocation(f,\"u_image\"),g=i.getUniformLocation(f,\"u_mask\"),y=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,y),i.bufferData(i.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),i.STATIC_DRAW),i.enableVertexAttribArray(v),i.vertexAttribPointer(v,2,i.FLOAT,!1,0,0),i.uniform1i(m,0),i.uniform1i(g,1),c=p}function d(e,t,r){var n=e.width,a=e.height;c||h();var o=c,s=o.canvas,u=o.gl;s.width=n,s.height=a,u.viewport(0,0,u.drawingBufferWidth,u.drawingBufferHeight),u.uniform2f(o.resolutionLocation,n,a),r.backdrop?u.uniform4f(o.resolutionLocation,r.backdrop[0],r.backdrop[1],r.backdrop[2],1):u.uniform4f(o.resolutionLocation,0,0,0,0),u.uniform1i(o.subtypeLocation,\"Luminosity\"===r.subtype?1:0);var l=i(u,e,u.TEXTURE0),d=i(u,t,u.TEXTURE1),f=u.createBuffer();return u.bindBuffer(u.ARRAY_BUFFER,f),u.bufferData(u.ARRAY_BUFFER,new Float32Array([0,0,n,0,0,a,0,a,n,0,n,a]),u.STATIC_DRAW),u.enableVertexAttribArray(o.positionLocation),u.vertexAttribPointer(o.positionLocation,2,u.FLOAT,!1,0,0),u.clearColor(0,0,0,0),u.enable(u.BLEND),u.blendFunc(u.ONE,u.ONE_MINUS_SRC_ALPHA),u.clear(u.COLOR_BUFFER_BIT),u.drawArrays(u.TRIANGLES,0,6),u.flush(),u.deleteTexture(l),u.deleteTexture(d),u.deleteBuffer(f),s}var f=\" attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } \",p=\" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } \",v=null;function m(){var e,i;s(),e=o,o=null,i=a,a=null;var u=t(i,f),l=r(i,p),c=n(i,[u,l]);i.useProgram(c);var h={};h.gl=i,h.canvas=e,h.resolutionLocation=i.getUniformLocation(c,\"u_resolution\"),h.scaleLocation=i.getUniformLocation(c,\"u_scale\"),h.offsetLocation=i.getUniformLocation(c,\"u_offset\"),h.positionLocation=i.getAttribLocation(c,\"a_position\"),h.colorLocation=i.getAttribLocation(c,\"a_color\"),v=h}function g(e,t,r,n,i){v||m();var a=v,o=a.canvas,s=a.gl;o.width=e,o.height=t,s.viewport(0,0,s.drawingBufferWidth,s.drawingBufferHeight),s.uniform2f(a.resolutionLocation,e,t);var u,l,c,h=0;for(u=0,l=n.length;u1&&(c.vertical?s.canvasWidth=t.height*e._viewport.scale:s.canvasWidth=t.width*e._viewport.scale),e._textDivProperties.set(o,s),e._textContentStream&&e._layoutText(o),e._enhanceTextSelection){var v=1,m=0;0!==l&&(v=Math.cos(l),m=Math.sin(l));var g,y,b=(c.vertical?t.height:t.width)*e._viewport.scale,_=f;0!==l?(g=[v,m,-m,v,h,d],y=n.Util.getAxialAlignedBoundingBox([0,0,b,_],g)):y=[h,d,h+b,d+_],e._bounds.push({left:y[0],top:y[1],right:y[2],bottom:y[3],div:o,size:[b,_],m:g})}}function s(t){if(!t._canceled){var r=t._textDivs,n=t._capability,i=r.length;if(i>e)return t._renderingDone=!0,void n.resolve();if(!t._textContentStream)for(var a=0;a0&&(n=n?Math.min(a,n):a)}return n},g=1+Math.min(Math.abs(d),Math.abs(f));s.paddingLeft=m(v,32,16)/g,s.paddingTop=m(v,48,16)/g,s.paddingRight=m(v,0,16)/g,s.paddingBottom=m(v,16,16)/g,e._textDivProperties.set(o,s)}else s.paddingLeft=t[a].left-i[a].left,s.paddingTop=t[a].top-i[a].top,s.paddingRight=i[a].right-t[a].right,s.paddingBottom=i[a].bottom-t[a].bottom,e._textDivProperties.set(o,s)}}function l(e,t,r){var n=r.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}));c(e,n);var i=new Array(r.length);return n.forEach((function(e){var t=e.index;i[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}})),r.map((function(t,r){var a=i[r],o=n[r];o.x1=t.top,o.y1=e-a.right,o.x2=t.bottom,o.y2=e-a.left,o.index=r,o.x1New=void 0,o.x2New=void 0})),c(t,n),n.forEach((function(e){var t=e.index;i[t].top=e.x1New,i[t].bottom=e.x2New})),i}function c(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}));var r={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},n=[{start:-1/0,end:1/0,boundary:r}];t.forEach((function(e){var t=0;while(t=0&&n[a].start>=e.y2)a--;var o,s,u=-1/0;for(o=t;o<=a;o++){var l;r=n[o],i=r.boundary,l=i.x2>e.x1?i.index>e.index?i.x1New:e.x1:void 0===i.x2New?(i.x2+e.x1)/2:i.x2New,l>u&&(u=l)}for(e.x1New=u,o=t;o<=a;o++)r=n[o],i=r.boundary,void 0===i.x2New?i.x2>e.x1?i.index>e.index&&(i.x2New=i.x2):i.x2New=u:i.x2New>u&&(i.x2New=Math.max(u,i.x2));var c=[],h=null;for(o=t;o<=a;o++){r=n[o],i=r.boundary;var d=i.x2>e.x2?i:e;h===d?c[c.length-1].end=r.end:(c.push({start:r.start,end:r.end,boundary:d}),h=d)}for(n[t].start=0&&n[s].start>=i.y1;s--)f=n[s].boundary===i;for(s=a+1;!f&&s0&&(r.scale=r.canvasWidth/a,o=\"scaleX(\"+r.scale+\")\"),0!==r.angle&&(o=\"rotate(\"+r.angle+\"deg) \"+o),\"\"!==o&&(r.originalTransform=o,e.style.transform=o),this._textDivProperties.set(e,r),t.appendChild(e)}},_render:function(e){var t=this,r=(0,n.createPromiseCapability)(),i=Object.create(null),a=document.createElement(\"canvas\");if(a.mozOpaque=!0,this._layoutTextCtx=a.getContext(\"2d\",{alpha:!1}),this._textContent){var o=this._textContent.items,u=this._textContent.styles;this._processItems(o,u),r.resolve()}else{if(!this._textContentStream)throw new Error('Neither \"textContent\" nor \"textContentStream\" parameters specified.');var l=function e(){t._reader.read().then((function(n){var a=n.value,o=n.done;o?r.resolve():(Object.assign(i,a.styles),t._processItems(a.items,i),e())}),r.reject)};this._reader=this._textContentStream.getReader(),l()}r.promise.then((function(){i=null,e?t._renderTimer=setTimeout((function(){s(t),t._renderTimer=null}),e):s(t)}),this._capability.reject)},expandTextDivs:function(e){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(u(this),this._bounds=null);for(var t=0,r=this._textDivs.length;t1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];l(this,e),this.isRenderable=r,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderInteractiveForms=t.renderInteractiveForms,this.svgFactory=t.svgFactory,r&&(this.container=this._createContainer(n))}return i(e,[{key:\"_createContainer\",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data,r=this.page,n=this.viewport,i=document.createElement(\"section\"),a=t.rect[2]-t.rect[0],s=t.rect[3]-t.rect[1];i.setAttribute(\"data-annotation-id\",t.id);var u=o.Util.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]]);if(i.style.transform=\"matrix(\"+n.transform.join(\",\")+\")\",i.style.transformOrigin=-u[0]+\"px \"+-u[1]+\"px\",!e&&t.borderStyle.width>0){i.style.borderWidth=t.borderStyle.width+\"px\",t.borderStyle.style!==o.AnnotationBorderStyleType.UNDERLINE&&(a-=2*t.borderStyle.width,s-=2*t.borderStyle.width);var l=t.borderStyle.horizontalCornerRadius,c=t.borderStyle.verticalCornerRadius;if(l>0||c>0){var h=l+\"px / \"+c+\"px\";i.style.borderRadius=h}switch(t.borderStyle.style){case o.AnnotationBorderStyleType.SOLID:i.style.borderStyle=\"solid\";break;case o.AnnotationBorderStyleType.DASHED:i.style.borderStyle=\"dashed\";break;case o.AnnotationBorderStyleType.BEVELED:(0,o.warn)(\"Unimplemented border style: beveled\");break;case o.AnnotationBorderStyleType.INSET:(0,o.warn)(\"Unimplemented border style: inset\");break;case o.AnnotationBorderStyleType.UNDERLINE:i.style.borderBottomStyle=\"solid\";break;default:break}t.color?i.style.borderColor=o.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):i.style.borderWidth=0}return i.style.left=u[0]+\"px\",i.style.top=u[1]+\"px\",i.style.width=a+\"px\",i.style.height=s+\"px\",i}},{key:\"_createPopup\",value:function(e,t,r){t||(t=document.createElement(\"div\"),t.style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));var n=new A({container:e,trigger:t,color:r.color,title:r.title,contents:r.contents,hideWrapper:!0}),i=n.render();i.style.left=e.style.width,e.appendChild(i)}},{key:\"render\",value:function(){(0,o.unreachable)(\"Abstract method `AnnotationElement.render` called\")}}]),e}(),d=function(e){function t(e){l(this,t);var r=!!(e.data.url||e.data.dest||e.data.action);return s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return u(t,e),i(t,[{key:\"render\",value:function(){this.container.className=\"linkAnnotation\";var e=this.data,t=this.linkService,r=document.createElement(\"a\");return(0,a.addLinkAttributes)(r,{url:e.url,target:e.newWindow?a.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel}),e.url||(e.action?this._bindNamedAction(r,e.action):this._bindLink(r,e.dest)),this.container.appendChild(r),this.container}},{key:\"_bindLink\",value:function(e,t){var r=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&r.linkService.navigateTo(t),!1},t&&(e.className=\"internalLink\")}},{key:\"_bindNamedAction\",value:function(e,t){var r=this;e.href=this.linkService.getAnchorUrl(\"\"),e.onclick=function(){return r.linkService.executeNamedAction(t),!1},e.className=\"internalLink\"}}]),t}(h),f=function(e){function t(e){l(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return u(t,e),i(t,[{key:\"render\",value:function(){this.container.className=\"textAnnotation\";var e=document.createElement(\"img\");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+\"annotation-\"+this.data.name.toLowerCase()+\".svg\",e.alt=\"[{{type}} Annotation]\",e.dataset.l10nId=\"text_annotation_type\",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}]),t}(h),p=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),i(t,[{key:\"render\",value:function(){return this.container}}]),t}(h),v=function(e){function t(e){l(this,t);var r=e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue;return s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return u(t,e),i(t,[{key:\"render\",value:function(){var e=[\"left\",\"center\",\"right\"];this.container.className=\"textWidgetAnnotation\";var t=null;if(this.renderInteractiveForms){if(this.data.multiLine?(t=document.createElement(\"textarea\"),t.textContent=this.data.fieldValue):(t=document.createElement(\"input\"),t.type=\"text\",t.setAttribute(\"value\",this.data.fieldValue)),t.disabled=this.data.readOnly,null!==this.data.maxLen&&(t.maxLength=this.data.maxLen),this.data.comb){var r=this.data.rect[2]-this.data.rect[0],n=r/this.data.maxLen;t.classList.add(\"comb\"),t.style.letterSpacing=\"calc(\"+n+\"px - 1ch)\"}}else{t=document.createElement(\"div\"),t.textContent=this.data.fieldValue,t.style.verticalAlign=\"middle\",t.style.display=\"table-cell\";var i=null;this.data.fontRefName&&(i=this.page.commonObjs.getData(this.data.fontRefName)),this._setTextStyle(t,i)}return null!==this.data.textAlignment&&(t.style.textAlign=e[this.data.textAlignment]),this.container.appendChild(t),this.container}},{key:\"_setTextStyle\",value:function(e,t){var r=e.style;if(r.fontSize=this.data.fontSize+\"px\",r.direction=this.data.fontDirection<0?\"rtl\":\"ltr\",t){r.fontWeight=t.black?t.bold?\"900\":\"bold\":t.bold?\"bold\":\"normal\",r.fontStyle=t.italic?\"italic\":\"normal\";var n=t.loadedName?'\"'+t.loadedName+'\", ':\"\",i=t.fallbackName||\"Helvetica, sans-serif\";r.fontFamily=n+i}}}]),t}(p),m=function(e){function t(e){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,e.renderInteractiveForms))}return u(t,e),i(t,[{key:\"render\",value:function(){this.container.className=\"buttonWidgetAnnotation checkBox\";var e=document.createElement(\"input\");return e.disabled=this.data.readOnly,e.type=\"checkbox\",this.data.fieldValue&&\"Off\"!==this.data.fieldValue&&e.setAttribute(\"checked\",!0),this.container.appendChild(e),this.container}}]),t}(p),g=function(e){function t(e){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,e.renderInteractiveForms))}return u(t,e),i(t,[{key:\"render\",value:function(){this.container.className=\"buttonWidgetAnnotation radioButton\";var e=document.createElement(\"input\");return e.disabled=this.data.readOnly,e.type=\"radio\",e.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&e.setAttribute(\"checked\",!0),this.container.appendChild(e),this.container}}]),t}(p),y=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),i(t,[{key:\"render\",value:function(){var e=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),\"render\",this).call(this);return e.className=\"buttonWidgetAnnotation pushButton\",e}}]),t}(d),b=function(e){function t(e){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,e.renderInteractiveForms))}return u(t,e),i(t,[{key:\"render\",value:function(){this.container.className=\"choiceWidgetAnnotation\";var e=document.createElement(\"select\");e.disabled=this.data.readOnly,this.data.combo||(e.size=this.data.options.length,this.data.multiSelect&&(e.multiple=!0));for(var t=0,r=this.data.options.length;t0&&void 0!==arguments[0]&&arguments[0];e&&(this.pinned=!0),this.hideElement.hasAttribute(\"hidden\")&&(this.hideElement.removeAttribute(\"hidden\"),this.container.style.zIndex+=1)}},{key:\"_hide\",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&(this.pinned=!1),this.hideElement.hasAttribute(\"hidden\")||this.pinned||(this.hideElement.setAttribute(\"hidden\",!0),this.container.style.zIndex-=1)}}]),e}(),w=function(e){function t(e){l(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,!0))}return u(t,e),i(t,[{key:\"render\",value:function(){this.container.className=\"lineAnnotation\";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),i=this.svgFactory.createElement(\"svg:line\");return i.setAttribute(\"x1\",e.rect[2]-e.lineCoordinates[0]),i.setAttribute(\"y1\",e.rect[3]-e.lineCoordinates[1]),i.setAttribute(\"x2\",e.rect[2]-e.lineCoordinates[2]),i.setAttribute(\"y2\",e.rect[3]-e.lineCoordinates[3]),i.setAttribute(\"stroke-width\",e.borderStyle.width),i.setAttribute(\"stroke\",\"transparent\"),n.appendChild(i),this.container.append(n),this._createPopup(this.container,i,e),this.container}}]),t}(h),S=function(e){function t(e){l(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,!0))}return u(t,e),i(t,[{key:\"render\",value:function(){this.container.className=\"squareAnnotation\";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),i=e.borderStyle.width,a=this.svgFactory.createElement(\"svg:rect\");return a.setAttribute(\"x\",i/2),a.setAttribute(\"y\",i/2),a.setAttribute(\"width\",t-i),a.setAttribute(\"height\",r-i),a.setAttribute(\"stroke-width\",i),a.setAttribute(\"stroke\",\"transparent\"),a.setAttribute(\"fill\",\"none\"),n.appendChild(a),this.container.append(n),this._createPopup(this.container,a,e),this.container}}]),t}(h),C=function(e){function t(e){l(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,!0))}return u(t,e),i(t,[{key:\"render\",value:function(){this.container.className=\"circleAnnotation\";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),i=e.borderStyle.width,a=this.svgFactory.createElement(\"svg:ellipse\");return a.setAttribute(\"cx\",t/2),a.setAttribute(\"cy\",r/2),a.setAttribute(\"rx\",t/2-i/2),a.setAttribute(\"ry\",r/2-i/2),a.setAttribute(\"stroke-width\",i),a.setAttribute(\"stroke\",\"transparent\"),a.setAttribute(\"fill\",\"none\"),n.appendChild(a),this.container.append(n),this._createPopup(this.container,a,e),this.container}}]),t}(h),k=function(e){function t(e){l(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents),n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,!0));return n.containerClassName=\"polylineAnnotation\",n.svgElementName=\"svg:polyline\",n}return u(t,e),i(t,[{key:\"render\",value:function(){this.container.className=this.containerClassName;for(var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),i=e.vertices,a=[],o=0,s=i.length;o>1&2147483647:u>>1&2147483647;a[s]=u}function h(e,t,r){for(var n=-1,i=t;i>>8^s}return-1^n}function d(e,t,r,n){var i=n,a=t.length;r[i]=a>>24&255,r[i+1]=a>>16&255,r[i+2]=a>>8&255,r[i+3]=255&a,i+=4,r[i]=255&e.charCodeAt(0),r[i+1]=255&e.charCodeAt(1),r[i+2]=255&e.charCodeAt(2),r[i+3]=255&e.charCodeAt(3),i+=4,r.set(t,i),i+=t.length;var o=h(r,n+4,i);r[i]=o>>24&255,r[i+1]=o>>16&255,r[i+2]=o>>8&255,r[i+3]=255&o}function f(e,t,r){for(var n=1,i=0,a=t;a=8?e:new t(e);var a=r(2).deflateSync(n,{level:9});return a instanceof Uint8Array?a:new Uint8Array(a)}catch(s){(0,o.warn)(\"Not compressing PNG because zlib.deflateSync is unavailable: \"+s)}return v(e)}function v(e){var t=e.length,r=65535,n=Math.ceil(t/r),i=new Uint8Array(2+t+5*n+4),a=0;i[a++]=120,i[a++]=156;var o=0;while(t>r)i[a++]=0,i[a++]=255,i[a++]=255,i[a++]=0,i[a++]=0,i.set(e.subarray(o,o+r),a),a+=r,o+=r,t-=r;i[a++]=1,i[a++]=255&t,i[a++]=t>>8&255,i[a++]=255&~t,i[a++]=(65535&~t)>>8&255,i.set(e.subarray(o),a),a+=e.length-o;var s=f(e,0,e.length);return i[a++]=s>>24&255,i[a++]=s>>16&255,i[a++]=s>>8&255,i[a++]=255&s,i}function m(t,r,i,a){var s,u,l,c=t.width,h=t.height,f=t.data;switch(r){case o.ImageKind.GRAYSCALE_1BPP:u=0,s=1,l=c+7>>3;break;case o.ImageKind.RGB_24BPP:u=2,s=8,l=3*c;break;case o.ImageKind.RGBA_32BPP:u=6,s=8,l=4*c;break;default:throw new Error(\"invalid format\")}var v,m,g=new Uint8Array((1+l)*h),y=0,b=0;for(v=0;v>24&255,c>>16&255,c>>8&255,255&c,h>>24&255,h>>16&255,h>>8&255,255&h,s,u,0,0,0]),A=p(g),w=e.length+3*n+_.length+A.length,S=new Uint8Array(w),C=0;return S.set(e,C),C+=e.length,d(\"IHDR\",_,S,C),C+=n+_.length,d(\"IDATA\",A,S,C),C+=n+A.length,d(\"IEND\",new Uint8Array(0),S,C),(0,o.createObjectURL)(S,\"image/png\",i)}return function(e,t,r){var n=void 0===e.kind?o.ImageKind.GRAYSCALE_1BPP:e.kind;return m(e,n,t,r)}}(),p=function(){function e(){this.fontSizeScale=1,this.fontWeight=d.fontWeight,this.fontSize=0,this.textMatrix=o.IDENTITY_MATRIX,this.fontMatrix=o.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=o.TextRenderingMode.FILL,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=d.fillColor,this.strokeColor=\"#000000\",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin=\"\",this.lineCap=\"\",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=\"\"}return e.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}();n.SVGGraphics=h=function(){function e(e){for(var t=[],r=[],n=e.length,i=0;i0,\"Range chunk size must be larger than zero\");var o={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(t(\"Content-Length\"),10);if(!Number.isInteger(s))return o;if(o.suggestedLength=s,s<=2*i)return o;if(a||!r)return o;if(\"bytes\"!==t(\"Accept-Ranges\"))return o;var u=t(\"Content-Encoding\")||\"identity\";return\"identity\"!==u||(o.allowRangeRequests=!0),o}function o(e){var t=e(\"Content-Disposition\");if(t){var r=(0,i.getFilenameFromContentDispositionHeader)(t);if(/\\.pdf$/i.test(r))return r}return null}function s(e,t){return 404===e||0===e&&/^file:/.test(t)?new n.MissingPDFException('Missing PDF \"'+t+'\".'):new n.UnexpectedResponseException(\"Unexpected server response (\"+e+') while retrieving PDF \"'+t+'\".',e)}function u(e){return 200===e||206===e}t.createResponseStatusError=s,t.extractFilenameFromHeader=o,t.validateRangeRequestCapabilities=a,t.validateResponseStatus=u},function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=function(){function e(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(r.push(o.value),t&&r.length===t)break}catch(u){i=!0,a=u}finally{try{!n&&s[\"return\"]&&s[\"return\"]()}finally{if(i)throw a}}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\")}}();function i(e){var t=!0,r=s(\"filename\\\\*\",\"i\").exec(e);if(r){r=r[1];var i=h(r);return i=unescape(i),i=d(i),i=f(i),l(i)}if(r=c(e),r){var a=f(r);return l(a)}if(r=s(\"filename\",\"i\").exec(e),r){r=r[1];var o=h(r);return o=f(o),l(o)}function s(e,t){return new RegExp(\"(?:^|;)\\\\s*\"+e+'\\\\s*=\\\\s*([^\";\\\\s][^;\\\\s]*|\"(?:[^\"\\\\\\\\]|\\\\\\\\\"?)+\"?)',t)}function u(e,r){if(e){if(!/^[\\x00-\\xFF]+$/.test(r))return r;try{for(var n=new TextDecoder(e,{fatal:!0}),i=new Array(r.length),a=0;a=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===n.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===n.status&&this.isHttp)r.onError&&r.onError(n.status);else{var i=n.status||h,a=i===h&&r.expectedStatus===d;if(a||i===r.expectedStatus){this.loadedRequests[e]=!0;var o=p(n);if(i===d){var s=n.getResponseHeader(\"Content-Range\"),u=/bytes (\\d+)-(\\d+)\\/(\\d+)/.exec(s),l=parseInt(u[1],10);r.onDone({begin:l,chunk:o})}else r.onProgressiveData?r.onDone(null):o?r.onDone({begin:0,chunk:o}):r.onError&&r.onError(n.status)}else r.onError&&r.onError(n.status)}}},hasPendingRequests:function(){for(var e in this.pendingRequests)return!0;return!1},getRequestXhr:function(e){return this.pendingRequests[e].xhr},isStreamingRequest:function(e){return!!this.pendingRequests[e].onProgressiveData},isPendingRequest:function(e){return e in this.pendingRequests},isLoadedRequest:function(e){return e in this.loadedRequests},abortAllRequests:function(){for(var e in this.pendingRequests)this.abortRequest(0|e)},abortRequest:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}},m.prototype={_onRangeRequestReaderClosed:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)},getFullReader:function(){return(0,a.assert)(!this._fullRequestReader),this._fullRequestReader=new g(this._manager,this._source),this._fullRequestReader},getRangeReader:function(e,t){var r=new y(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r},cancelAllRequests:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}},g.prototype={_onHeadersReceived:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=function(e){return t.getResponseHeader(e)},n=(0,o.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),i=n.allowRangeRequests,a=n.suggestedLength;i&&(this._isRangeSupported=!0),this._contentLength=a||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(r);var s=this._manager;s.isStreamingRequest(e)?this._isStreamingSupported=!0:this._isRangeSupported&&s.abortRequest(e),this._headersReceivedCapability.resolve()},_onProgressiveData:function(e){if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e,done:!1})}else this._cachedChunks.push(e)},_onDone:function(e){e&&this._onProgressiveData(e.chunk),this._done=!0,this._cachedChunks.length>0||(this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[])},_onError:function(e){var t=this._url,r=(0,o.createResponseStatusError)(e,t);this._storedError=r,this._headersReceivedCapability.reject(r),this._requests.forEach((function(e){e.reject(r)})),this._requests=[],this._cachedChunks=[]},_onProgress:function(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})},get filename(){return this._filename},get isRangeSupported(){return this._isRangeSupported},get isStreamingSupported(){return this._isStreamingSupported},get contentLength(){return this._contentLength},get headersReady(){return this._headersReceivedCapability.promise},read:function(){var e=c(i.default.mark((function e(){var t,r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){e.next=5;break}return t=this._cachedChunks.shift(),e.abrupt(\"return\",{value:t,done:!1});case 5:if(!this._done){e.next=7;break}return e.abrupt(\"return\",{value:void 0,done:!0});case 7:return r=(0,a.createPromiseCapability)(),this._requests.push(r),e.abrupt(\"return\",r.promise);case 10:case\"end\":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),cancel:function(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},y.prototype={_close:function(){this.onClosed&&this.onClosed(this)},_onDone:function(e){var t=e.chunk;if(this._requests.length>0){var r=this._requests.shift();r.resolve({value:t,done:!1})}else this._queuedChunk=t;this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._close()},_onProgress:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})},get isStreamingSupported(){return!1},read:function(){var e=c(i.default.mark((function e(){var t,r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null===this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt(\"return\",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt(\"return\",{value:void 0,done:!0});case 6:return r=(0,a.createPromiseCapability)(),this._requests.push(r),e.abrupt(\"return\",r.promise);case 9:case\"end\":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),cancel:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},t.PDFNetworkStream=m,t.NetworkManager=f}])}))}).call(this,r(\"1c35\").Buffer,r(\"c8ba\"),r(\"4362\"))},a068:function(e,t,r){\"use strict\";r.r(t);var n=r(\"113f\");t[\"default\"]=function(e){function t(e){return\"object\"===typeof e&&null!==e&&!0===e.__PDFDocumentLoadingTask}function r(t,r){var n;if(\"string\"===typeof t)n={url:t};else if(t instanceof Uint8Array)n={data:t};else{if(\"object\"!==typeof t||null===t)throw new TypeError(\"invalid src type\");n=Object.assign({},t)}var i=e.getDocument(n);return i.__PDFDocumentLoadingTask=!0,r&&r.onPassword&&(i.onPassword=r.onPassword),r&&r.onProgress&&(i.onProgress=r.onProgress),i}function i(i,a,o){var s=null,u=null,l=null,c=!1;function h(){i.getContext(\"2d\").clearRect(0,0,i.width,i.height)}function d(){while(a.firstChild)a.removeChild(a.firstChild)}i.getContext(\"2d\").save(),this.destroy=function(){null!==s&&(s.destroy(),s=null)},this.getResolutionScale=function(){return i.offsetWidth/i.width},this.printPage=function(e,t){if(null!==u){var r=void 0===e?150:e,n=r/72,i=96/72,a=document.createElement(\"iframe\");new Promise((function(e,t){a.frameBorder=\"0\",a.scrolling=\"no\",a.width=\"0px;\",a.height=\"0px;\",a.style.cssText=\"position: absolute; top: 0; left: 0\",a.onload=function(){e(this.contentWindow)},window.document.body.appendChild(a)})).then((function(e){return e.document.title=\"\",s.getPage(1).then((function(t){var r=t.getViewport(1);return e.document.head.appendChild(e.document.createElement(\"style\")).textContent=\"@supports ((size:A4) and (size:1pt 1pt)) {@page { margin: 1pt; size: \"+r.width*n/i+\"pt \"+r.height*n/i+\"pt; }}@media print {body { margin: 0 }canvas { page-break-before: avoid; page-break-after: always; page-break-inside: avoid }}@media screen {body { margin: 0 }}\",e}))})).then((function(e){for(var r=[],i=1;i<=s.numPages;++i)void 0!==t&&-1===t.indexOf(i)||r.push(s.getPage(i).then((function(t){var r=t.getViewport(1),i=e.document.body.appendChild(e.document.createElement(\"canvas\"));return i.width=r.width*n,i.height=r.height*n,t.render({canvasContext:i.getContext(\"2d\"),transform:[n,0,0,n,0,0],viewport:r,intent:\"print\"}).promise})));Promise.all(r).then((function(){e.focus(),e.document.queryCommandSupported(\"print\")?e.document.execCommand(\"print\",!1,null):e.print(),l()})).catch((function(e){l(),o(\"error\",e)}))}))}function l(){a.parentNode.removeChild(a)}},this.renderPage=function(t){if(null!==l){if(c)return;return c=!0,void l.cancel()}if(null!==u){void 0===t&&(t=u.rotate);var r=i.offsetWidth/u.getViewport(1).width*(window.devicePixelRatio||1),h=u.getViewport(r,t);o(\"page-size\",h.width,h.height),i.width=h.width,i.height=h.height,l=u.render({canvasContext:i.getContext(\"2d\"),viewport:h}),a.style.visibility=\"hidden\",d();var f={scrollPageIntoView:function(e){o(\"link-clicked\",e.pageNumber)}},p=new n[\"PDFLinkService\"];p.setDocument(s),p.setViewer(f),u.getAnnotations({intent:\"display\"}).then((function(t){e.AnnotationLayer.render({viewport:h.clone({dontFlip:!0}),div:a,annotations:t,page:u,linkService:p,renderInteractiveForms:!1})})),l.then((function(){a.style.visibility=\"\",c=!1,l=null})).catch(function(r){if(l=null,r instanceof e.RenderingCancelledException)return c=!1,void this.renderPage(t);o(\"error\",r)}.bind(this))}},this.forEachPage=function(e){var t=s.numPages;(function r(n){s.getPage(n).then(e).then((function(){++n<=t&&r(n)}))})(1)},this.loadPage=function(e,t){u=null,null!==s&&s.getPage(e).then(function(e){u=e,this.renderPage(t),o(\"page-loaded\",e.pageNumber)}.bind(this)).catch((function(e){h(),d(),o(\"error\",e)}))},this.loadDocument=function(n){if(s=null,u=null,o(\"num-pages\",void 0),!n)return i.removeAttribute(\"width\"),i.removeAttribute(\"height\"),void d();if(t(n)){if(n.destroyed)return void o(\"error\",new Error(\"loadingTask has been destroyed\"));var a=n}else a=r(n,{onPassword:function(t,r){var n;switch(r){case e.PasswordResponses.NEED_PASSWORD:n=\"NEED_PASSWORD\";break;case e.PasswordResponses.INCORRECT_PASSWORD:n=\"INCORRECT_PASSWORD\";break}o(\"password\",t,n)},onProgress:function(e){var t=e.loaded/e.total;o(\"progress\",Math.min(t,1))}});a.then((function(e){s=e,o(\"num-pages\",e.numPages),o(\"loaded\")})).catch((function(e){h(),d(),o(\"error\",e)}))},a.style.transformOrigin=\"0 0\"}return{createLoadingTask:r,PDFJSWrapper:i}}},b383:function(e,t,r){\"use strict\";t.decode=t.parse=r(\"91dd\"),t.encode=t.stringify=r(\"e099\")},bb87:function(e,t){!function(t){\"use strict\";var r,n=Object.prototype,i=n.hasOwnProperty,a=\"function\"===typeof Symbol?Symbol:{},o=a.iterator||\"@@iterator\",s=a.asyncIterator||\"@@asyncIterator\",u=a.toStringTag||\"@@toStringTag\",l=\"object\"===typeof e,c=t.regeneratorRuntime;if(c)l&&(e.exports=c);else{c=t.regeneratorRuntime=l?e.exports:{},c.wrap=_;var h=\"suspendedStart\",d=\"suspendedYield\",f=\"executing\",p=\"completed\",v={},m={};m[o]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(L([])));y&&y!==n&&i.call(y,o)&&(m=y);var b=C.prototype=w.prototype=Object.create(m);S.prototype=b.constructor=C,C.constructor=S,C[u]=S.displayName=\"GeneratorFunction\",c.isGeneratorFunction=function(e){var t=\"function\"===typeof e&&e.constructor;return!!t&&(t===S||\"GeneratorFunction\"===(t.displayName||t.name))},c.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,u in e||(e[u]=\"GeneratorFunction\")),e.prototype=Object.create(b),e},c.awrap=function(e){return{__await:e}},k(x.prototype),x.prototype[s]=function(){return this},c.AsyncIterator=x,c.async=function(e,t,r,n){var i=new x(_(e,t,r,n));return c.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(b),b[u]=\"Generator\",b[o]=function(){return this},b.toString=function(){return\"[object Generator]\"},c.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){while(t.length){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},c.values=L,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method=\"next\",this.arg=r,this.tryEntries.forEach(T),!e)for(var t in this)\"t\"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if(\"throw\"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,i){return s.type=\"throw\",s.arg=e,t.next=n,i&&(t.method=\"next\",t.arg=r),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=i.call(o,\"catchLoc\"),l=i.call(o,\"finallyLoc\");if(u&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,\"finallyLoc\")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;T(r)}return i}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},\"next\"===this.method&&(this.arg=r),v}}}function _(e,t,r,n){var i=t&&t.prototype instanceof w?t:w,a=Object.create(i.prototype),o=new O(n||[]);return a._invoke=P(e,r,o),a}function A(e,t,r){try{return{type:\"normal\",arg:e.call(t,r)}}catch(n){return{type:\"throw\",arg:n}}}function w(){}function S(){}function C(){}function k(e){[\"next\",\"throw\",\"return\"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function x(e){function t(r,n,a,o){var s=A(e[r],e,n);if(\"throw\"!==s.type){var u=s.arg,l=u.value;return l&&\"object\"===typeof l&&i.call(l,\"__await\")?Promise.resolve(l.__await).then((function(e){t(\"next\",e,a,o)}),(function(e){t(\"throw\",e,a,o)})):Promise.resolve(l).then((function(e){u.value=e,a(u)}),o)}o(s.arg)}var r;function n(e,n){function i(){return new Promise((function(r,i){t(e,n,r,i)}))}return r=r?r.then(i,i):i()}this._invoke=n}function P(e,t,r){var n=h;return function(i,a){if(n===f)throw new Error(\"Generator is already running\");if(n===p){if(\"throw\"===i)throw a;return F()}r.method=i,r.arg=a;while(1){var o=r.delegate;if(o){var s=R(o,r);if(s){if(s===v)continue;return s}}if(\"next\"===r.method)r.sent=r._sent=r.arg;else if(\"throw\"===r.method){if(n===h)throw n=p,r.arg;r.dispatchException(r.arg)}else\"return\"===r.method&&r.abrupt(\"return\",r.arg);n=f;var u=A(e,t,r);if(\"normal\"===u.type){if(n=r.done?p:d,u.arg===v)continue;return{value:u.arg,done:r.done}}\"throw\"===u.type&&(n=p,r.method=\"throw\",r.arg=u.arg)}}}function R(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,\"throw\"===t.method){if(e.iterator.return&&(t.method=\"return\",t.arg=r,R(e,t),\"throw\"===t.method))return v;t.method=\"throw\",t.arg=new TypeError(\"The iterator does not provide a 'throw' method\")}return v}var i=A(n,e.iterator,t.arg);if(\"throw\"===i.type)return t.method=\"throw\",t.arg=i.arg,t.delegate=null,v;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,\"return\"!==t.method&&(t.method=\"next\",t.arg=r),t.delegate=null,v):a:(t.method=\"throw\",t.arg=new TypeError(\"iterator result is not an object\"),t.delegate=null,v)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type=\"normal\",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:\"root\"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[o];if(t)return t.call(e);if(\"function\"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){while(++n0&&void 0!==arguments[0]&&arguments[0];return a||(a=new n.EventBus({dispatchToDOM:e}),e||i(a)),a}t.attachDOMEventsToEventBus=i,t.getGlobalEventBus=o},c0ef7:function(e,t,r){\"use strict\";r(\"3bc3\")},d785:function(e,t,r){e.exports=r(\"7123\")},e099:function(e,t,r){\"use strict\";var n=function(e){switch(typeof e){case\"string\":return e;case\"boolean\":return e?\"true\":\"false\";case\"number\":return isFinite(e)?e:\"\";default:return\"\"}};e.exports=function(e,t,r,s){return t=t||\"&\",r=r||\"=\",null===e&&(e=void 0),\"object\"===typeof e?a(o(e),(function(o){var s=encodeURIComponent(n(o))+r;return i(e[o])?a(e[o],(function(e){return s+encodeURIComponent(n(e))})).join(t):s+encodeURIComponent(n(e[o]))})).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):\"\"};var i=Array.isArray||function(e){return\"[object Array]\"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n