@pdftron/webviewer 11.5.0-20250509 → 11.5.0-20250511

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/package.json +1 -1
  2. package/public/core/19.chunk.js +7 -7
  3. package/public/core/22.chunk.js +7 -7
  4. package/public/core/AndroidContentPartRetriever.chunk.js +2 -2
  5. package/public/core/AzurePartRetriever.chunk.js +1 -1
  6. package/public/core/ExternalAnnotationMerger.chunk.js +14 -14
  7. package/public/core/ExternalPdfPartRetriever.chunk.js +6 -6
  8. package/public/core/HttpPartRetriever.chunk.js +13 -13
  9. package/public/core/IOSPartRetriever.chunk.js +2 -2
  10. package/public/core/LocalPartRetriever.chunk.js +4 -4
  11. package/public/core/LocalPdfPartRetriever.chunk.js +3 -3
  12. package/public/core/PDFInfoVersion1.chunk.js +16 -16
  13. package/public/core/SelectionInfoOld.chunk.js +14 -14
  14. package/public/core/StreamingPartRetriever.chunk.js +9 -9
  15. package/public/core/WebDBPartRetriever.chunk.js +2 -2
  16. package/public/core/WebViewerServerPartRetriever.chunk.js +43 -43
  17. package/public/core/WinRTPartRetriever.chunk.js +2 -2
  18. package/public/core/legacyOffice/LegacyOfficeWorker.js +1 -1
  19. package/public/core/legacyOffice/WebB2XOfficeWorker.br.js.mem +0 -0
  20. package/public/core/legacyOffice/WebB2XOfficeWorker.br.mem +0 -0
  21. package/public/core/legacyOffice/WebB2XOfficeWorker.gz.js.mem +0 -0
  22. package/public/core/legacyOffice/WebB2XOfficeWorker.gz.mem +0 -0
  23. package/public/core/legacyOffice/WebB2XOfficeWorkerWasm.br.js.mem +0 -0
  24. package/public/core/legacyOffice/WebB2XOfficeWorkerWasm.br.wasm +0 -0
  25. package/public/core/legacyOffice/WebB2XOfficeWorkerWasm.gz.js.mem +0 -0
  26. package/public/core/legacyOffice/WebB2XOfficeWorkerWasm.gz.wasm +0 -0
  27. package/public/core/legacyOffice/WebB2XOfficeWorkerWasm.js +1 -1
  28. package/public/core/office/OfficeWorker.js +1 -1
  29. package/public/core/office/WebOfficeWorker.br.js.mem +0 -0
  30. package/public/core/office/WebOfficeWorker.br.mem +0 -0
  31. package/public/core/office/WebOfficeWorker.gz.js.mem +0 -0
  32. package/public/core/office/WebOfficeWorker.gz.mem +0 -0
  33. package/public/core/office/WebOfficeWorkerWasm.br.js.mem +0 -0
  34. package/public/core/office/WebOfficeWorkerWasm.br.wasm +0 -0
  35. package/public/core/office/WebOfficeWorkerWasm.gz.js.mem +0 -0
  36. package/public/core/office/WebOfficeWorkerWasm.gz.wasm +0 -0
  37. package/public/core/office/WebOfficeWorkerWasm.js +1 -1
  38. package/public/core/officeEditor/OfficeEditorWorkerWasm.br.js.mem +0 -0
  39. package/public/core/officeEditor/OfficeEditorWorkerWasm.br.wasm +0 -0
  40. package/public/core/pikaday.chunk.js +17 -17
  41. package/public/core/vendors.ascii85.chunk.js +6 -6
  42. package/public/core/vendors.pako.chunk.js +80 -80
  43. package/public/core/webviewer-core.min.js +4414 -4416
@@ -1,44 +1,44 @@
1
1
  /** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
2
- (function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[13],{634:function(ya,va,n){function ma(){return!1}function na(z,aa,ca){if(!(aa in y))return!0;aa=y[aa];for(var ba=0;ba<aa.length;ba++){var fa=z;var ha=aa[ba];var pa=ca;if(ha.name in fa){var oa="",ka=!1;fa=fa[ha.name];switch(ha.type){case "s":oa="String";ka=Object(ia.isString)(fa);break;case "a":oa="Array";ka=Object(ia.isArray)(fa);break;case "n":oa="Number";ka=Object(ia.isNumber)(fa)&&Object(ia.isFinite)(fa);break;case "o":oa="Object",
3
- ka=Object(ia.isObject)(fa)&&!Object(ia.isArray)(fa)}ka||pa.reject('Expected response field "'.concat(ha.name,'" to have type ').concat(oa));ha=ka}else pa.reject('Response missing field "'.concat(ha.name,'"')),ha=!1;if(!ha)return!1}return!0}function la(z){for(var aa=0,ca=["locale","excelMaxAllowedCellCount","applyPageBreaksToSheet","excelDefaultCellBorderWidth","displayChangeTracking"];aa<ca.length;aa++){var ba=ca[aa],fa=ba;ba=ba.charAt(0).toUpperCase()+ba.slice(1);z[fa]&&(Object.defineProperty(z,
4
- ba,Object.getOwnPropertyDescriptor(z,fa)),delete z[fa])}return z}n.r(va);var ja=n(0),ia=n(1);n.n(ia);var ea=n(2);ya=n(53);var w=n(36),x=n(653),r=n(129),h=n(546),b=n(52),e=n(243),f=function(){function z(){this.request=this.result=null;this.state=0;var aa=this;aa.promise=new Promise(function(ca,ba){aa.resolve=function(){if(0===aa.state||4===aa.state)aa.state=1,aa.result=arguments[0],ca.apply(null,arguments)};aa.reject=function(){if(0===aa.state||4===aa.state)aa.state=2,ba.apply(null,arguments)}})}z.prototype.pA=
5
- function(){return 1===(this.state&1)};z.prototype.vHa=function(){return 2===(this.state&2)};z.prototype.xm=function(){return!this.vHa()&&!this.pA()};z.prototype.KGa=function(){return 4===(this.state&4)};z.prototype.Y_=function(){this.state|=4};return z}(),a=function(){function z(){this.bA={};this.Pc=[]}z.prototype.pop=function(){var aa=this.Pc.pop();this.bA[aa.key]=void 0;return aa};z.prototype.push=function(aa,ca){ca={key:aa,data:ca};this.Pc.push(ca);this.bA[aa]=ca.data};z.prototype.contains=function(aa){return!!this.bA[aa]};
6
- z.prototype.get=function(aa){return this.bA[aa]};z.prototype.set=function(aa,ca){var ba=this;this.bA[aa]=ca;this.Pc.forEach(function(fa,ha){fa.key===aa&&(ba.Pc[ha]=fa)})};z.prototype.remove=function(aa){var ca=this;this.bA[aa]=void 0;this.Pc.forEach(function(ba,fa){ba.key===aa&&ca.Pc.splice(fa,1)})};z.prototype.length=function(){return this.Pc.length};return z}(),y={pages:[{name:"pages",type:"a"}],pdf:[{name:"url",type:"s"}],docmod:[{name:"url",type:"s"},{name:"rID",type:"s"}],health:[],tiles:[{name:"z",
7
- type:"n"},{name:"rID",type:"n"},{name:"tiles",type:"a"},{name:"size",type:"n"}],cAnnots:[{name:"annots",type:"a"}],annots:[{name:"url",type:"s"},{name:"name",type:"s"}],image:[{name:"url",type:"s"},{name:"name",type:"s"},{name:"p",type:"n"}],text:[{name:"url",type:"s"},{name:"name",type:"s"},{name:"p",type:"n"}],ApString2Xod:[{name:"url",type:"s"},{name:"rID",type:"s"}]};n=function(){function z(aa,ca,ba){var fa=this;this.E0=this.D8=!1;this.Sj=this.eQ=this.QB=this.vg=this.jD=this.Ft=this.iD=this.Ar=
8
- null;this.Pq=new f;this.ov=new f;this.MK=!1;this.Rh=this.Ag=this.Bg=this.Eh=null;this.oi=[];this.HL=[];this.cache={};this.timeStamp=0;this.Mj=[];this.Im=[];this.VU=null;this.p8=!1;this.jha=this.id=null;this.jY=this.qba=ma;this.gi=0;this.LW=!1;this.Hda=1;this.Dm={};this.xy=0;this.$A=new a;ca.endsWith("/")||(ca+="/");ba=ba||{};this.D8=ba.disableWebsockets||!1;this.E0=ba.singleServerMode||!1;null!=ba.customQueryParameters&&Object(b.b)("wvsQueryParameters",ba.customQueryParameters);ca.endsWith("blackbox/")||
9
- (ca+="blackbox/");this.Ar=ba.uploadData||null;this.QB=ba.uriData||null;this.iD=ba.cacheKey||null;if(this.Ft=ba.officeOptions||null)this.Ft=la(this.Ft);this.vg=ba.rasterizerOptions||null;this.jD=ba.cadOptions||null;this.Ug=ca;this.tU=aa;this.$t(!0);this.Uy=(new x.a(ca,null,this.Rk())).kAa(!this.D8,function(ha){fa.bKa(ha)},function(){return null},function(){fa.MK=!1},function(){fa.FOa()})}z.prototype.Wva=function(){var aa=this;return new Promise(function(ca,ba){var fa=new XMLHttpRequest,ha="".concat(aa.Ug,
10
- "ck");fa.open("GET",ha);fa.withCredentials=aa.Rk();fa.onreadystatechange=function(){fa.readyState===XMLHttpRequest.DONE&&(200===fa.status?ca():ba())};fa.send()})};z.prototype.VQa=function(aa){this.qba=aa||ma;this.jY=ma};z.prototype.Nta=function(){this.xga();return this.Uy.Hv()};z.prototype.xga=function(){Object(ja.b)(this,void 0,void 0,function(){return Object(ja.d)(this,function(aa){switch(aa.label){case 0:return this.ov=new f,this.Pq=new f,this.MK=!1,this.id=null,this.p8=!1,[4,this.Wva().catch(function(){})];
11
- case 1:return aa.aa(),[2]}})})};z.prototype.FOa=function(){this.qba();this.xga();this.Eh&&(this.Eh.xm()?this.Xj(this.Eh.request):this.Eh.pA()&&this.jY(this.Eh.result.url,"pdf")&&(this.Eh=null,this.uga()));this.Rh&&this.Rh.xm()&&this.Xj(this.Rh.request);this.Bg&&this.Bg.xm()?this.Xj(this.Bg.request):this.Ag&&this.Ag.xm()&&this.Saa();var aa;for(aa=0;aa<this.Mj.length;aa++)this.Mj[aa]&&(this.Mj[aa].xm()?this.Xj(this.Mj[aa].request):this.Mj[aa].pA()&&this.jY(this.Mj[aa].result.url,"image")&&(this.Mj[aa]=
12
- null,this.KO(Object(ia.uniqueId)(),aa)));for(aa=0;aa<this.Im.length;aa++)this.Im[aa]&&this.Im[aa].xm()&&!this.Im[aa].KGa()&&this.Xj(this.Im[aa].request);for(aa=0;aa<this.oi.length;aa++)this.oi[aa]&&this.oi[aa].xm()&&this.Xj(this.oi[aa].request)};z.prototype.PFa=function(){return this.MK?Promise.resolve():(this.MK=!0,this.timeStamp=Date.now(),this.Uy.$M())};z.prototype.dVa=function(){var aa=this,ca,ba,fa,ha,pa;return new Promise(function(oa,ka){if(aa.Ar)ca=new FormData,ca.append("file",aa.Ar.fileHandle,
13
- aa.Ar.fileHandle.name),aa.Ft&&ca.append("officeOptions",JSON.stringify(aa.Ft)),aa.vg&&ca.append("rasterizerOptions",JSON.stringify(aa.vg)),aa.jD&&ca.append("cadOptions",aa.jD.getJsonString()),aa.iD&&ca.append("cacheKey",aa.iD),ba=aa.Ar.loadCallback,ha="upload",fa=aa.Ar.extension;else if(aa.QB)ca={uri:aa.QB.uri,x_a:aa.QB.shareId},ca=Object.keys(ca).map(function(sa){return"".concat(sa,"=").concat(ca[sa]?encodeURIComponent(ca[sa]):"")}).join("&"),pa="application/x-www-form-urlencoded; charset=UTF-8",
14
- ba=aa.QB.loadCallback,ha="url",fa=aa.QB.extension;else{oa();return}var ra=new XMLHttpRequest,qa=Object(w.l)(aa.Ug,"AuxUpload");qa=Object(e.a)(qa,{type:ha,ext:fa});ra.open("POST",qa);ra.withCredentials=aa.Rk();pa&&ra.setRequestHeader("Content-Type",pa);ra.addEventListener("load",function(){if(ra.readyState===ra.DONE&&200===ra.status){var sa=JSON.parse(ra.response);aa.tU=sa.uri;ba(sa);oa(sa)}});ra.addEventListener("error",function(){ka("".concat(ra.statusText," ").concat(JSON.stringify(ra)))});aa.Ar&&
15
- null!=aa.Ar.onProgress&&(ra.upload.onprogress=function(sa){aa.Ar.onProgress(sa)});ra.send(ca)})};z.prototype.rOa=function(aa){this.password=aa||null;this.Pq.pA()||(this.Pq=new f,this.Xj({t:"pages"}));return this.Pq.promise};z.prototype.IG=function(aa){this.VU=aa||null;this.Pq.pA()||this.Xj({t:"pages"});return this.Pq.promise};z.prototype.uD=function(aa){aa=Object.assign(aa,{uri:encodeURIComponent(this.tU)});this.VU&&(aa.ext=this.VU);this.Sj&&(aa.c=this.Sj);this.password&&(aa.pswd=this.password);this.iD&&
16
- (aa.cacheKey=this.iD);this.Ft&&(aa.officeOptions=this.Ft);this.vg&&(aa.rastOptions=this.vg);this.jD&&(aa.cadOptions=this.jD.mImpl);return aa};z.prototype.xPa=function(){0<this.$A.length()&&10>=this.xy&&this.yPa(this.$A.pop().data)};z.prototype.Ysa=function(aa){0<this.$A.length()&&this.$A.contains(aa)&&this.$A.remove(aa)};z.prototype.Xj=function(aa){aa=this.uD(aa);this.Uy.send(aa)};z.prototype.eha=function(aa,ca){10<this.xy?this.$A.push(aa,ca):(this.xy++,aa=this.uD(ca),this.Uy.send(aa))};z.prototype.yPa=
17
- function(aa){this.xy++;aa=this.uD(aa);this.Uy.send(aa)};z.prototype.Pp=function(aa){return aa};z.prototype.pba=function(aa){this.E0&&aa?Object(ea.i)("Server failed health check. Single server mode ignoring check."):!this.GYa&&aa&&3>=this.gi?(this.LW=!0,this.Uy.Hv()):3<this.gi&&(this.E0=!0)};z.prototype.bKa=function(aa){var ca=this,ba=aa.data,fa=aa.err,ha=aa.t;switch(ha){case "upload":fa?this.eVa.reject(fa):this.eVa.resolve("Success");break;case "pages":fa?this.Pq.reject(fa):na(ba,ha,this.Pq)&&this.Pq.resolve(ba);
18
- break;case "config":if(fa)this.ov.reject(fa);else if(na(ba,ha,this.ov)){this.pba(ba.unhealthy);ba.id&&(this.id=ba.id);if(ba.auth){var pa=Object(b.a)("wvsQueryParameters");pa.auth=ba.auth;Object(b.b)("wvsQueryParameters",pa)}ba.serverVersion&&(this.eQ=ba.serverVersion,Object(ea.g)("[WebViewer Server] server version: ".concat(this.eQ)));ba.serverID?(this.gi=ba.serverID===this.jha&&this.LW?this.gi+1:0,this.jha=ba.serverID):this.gi=0;this.LW=!1;this.ov.resolve(ba)}break;case "health":fa?this.ov.reject(fa):
19
- na(ba,ha,this.ov)&&this.pba(ba.unhealthy);break;case "pdf":ba.url=Object(e.a)("".concat(this.Ug,"../").concat(encodeURI(ba.url)));fa?this.Eh.reject(fa):na(ba,ha,this.Eh)&&this.Eh.resolve(ba);break;case "ApString2Xod":ba.url=Object(e.a)("".concat(this.Ug,"../data/").concat(encodeURI(ba.url)));fa?this.Dm[ba.rID].reject(fa):na(ba,ha,this.Dm[ba.rID])&&this.Dm[ba.rID].resolve(ba);break;case "docmod":ba.url=Object(e.a)("".concat(this.Ug,"../").concat(encodeURI(ba.url)));fa?this.Dm[ba.rID].reject(fa):na(ba,
20
- ha,this.Eh)&&this.Dm[ba.rID].resolve(ba);break;case "xod":if(fa)this.Bg&&this.Bg.xm()&&this.Bg.reject(fa),this.Ag&&this.Ag.xm()&&this.Ag.reject(fa);else if(ba.notFound)ba.noCreate||this.Bg&&this.Bg.xm()&&this.Bg.resolve(ba),this.Ag&&this.Ag.xm()&&this.Ag.resolve(ba);else{ba.url&&(ba.url=Object(e.a)("".concat(this.Ug,"../").concat(encodeURI(ba.url))));if(!this.Ag||this.Ag.pA())this.Ag=new f,this.Ag.request={t:"xod",noCreate:!0};this.Bg||(this.Bg=new f,this.Bg.request={t:"xod"});this.Ag.resolve(ba);
21
- this.Bg.resolve(ba)}break;case "cAnnots":pa=this.Rh;if(fa)pa.reject(fa);else if(na(ba,ha,pa)){pa.Y_();var oa=[],ka=ba.annots;ba=function(za){var Aa=ka[za].s,Da=ka[za].e,Fa="".concat(ra.Ug,"../").concat(encodeURI(ka[za].xfdf)),Ca="true"===ka[za].hasAppearance?Object(e.a)("".concat(Fa,".xodapp")):null,Ka=Object(ia.range)(Aa,Da);oa[za]={range:Ka,promise:new Promise(function(La,Ha){var Qa=new XMLHttpRequest;Qa.open("GET",Object(e.a)(Fa));Qa.responseType="text";Qa.withCredentials=ca.Rk();Qa.addEventListener("load",
22
- function(){Qa.readyState===Qa.DONE&&200===Qa.status&&La({Er:Qa.response,Ep:Ca,range:Ka})});Qa.addEventListener("error",function(){Ha("".concat(Qa.statusText," ").concat(JSON.stringify(Qa)))});Qa.send()})}};var ra=this;for(fa=0;fa<ka.length;fa++)ba(fa);pa.resolve(oa)}break;case "annots":if(fa)this.Rh.reject(fa);else if(na(ba,ha,this.Rh)){this.Rh.Y_();var qa=new XMLHttpRequest;pa="".concat(this.Ug,"../").concat(encodeURI(ba.url));var sa=ba.hasAppearance?Object(e.a)("".concat(pa,".xodapp")):null;qa.open("GET",
23
- Object(e.a)(pa));qa.responseType="text";qa.withCredentials=this.Rk();qa.addEventListener("load",function(){qa.readyState===qa.DONE&&200===qa.status&&ca.Rh.resolve({Er:qa.response,Ep:sa})});qa.addEventListener("error",function(){ca.Rh.reject("".concat(qa.statusText," ").concat(JSON.stringify(qa)))});qa.send()}break;case "image":this.xy--;var ta=this.Mj[ba.p];fa?ta.promise.reject(fa):na(ba,ha,ta)&&(ta.result=ba,ta.result.url=Object(e.a)("".concat(this.Ug,"../").concat(encodeURI(ta.result.url))),ta.resolve(ta.result));
24
- break;case "tiles":this.xy--;ta=ba.rID;pa=this.oi[ta];this.oi[ta]=null;this.HL.push(ta);if(fa)pa.reject(fa);else if(na(ba,ha,pa)){for(fa=0;fa<ba.tiles.length;fa++)ba.tiles[fa]=Object(e.a)("".concat(this.Ug,"../").concat(encodeURI(ba.tiles[fa])));pa.resolve(ba)}break;case "text":ta=this.Im[ba.p];if(fa)ta.reject(fa);else if(na(ba,ha,ta)){ta.Y_();var wa=new XMLHttpRequest;ba=Object(e.a)("".concat(this.Ug,"../").concat(encodeURI(ba.url)));wa.open("GET",ba);wa.withCredentials=this.Rk();wa.addEventListener("load",
25
- function(){wa.readyState===wa.DONE&&200===wa.status&&(ta.result=JSON.parse(wa.response),ta.resolve(ta.result))});wa.addEventListener("error",function(za){ta.reject("".concat(wa.statusText," ").concat(JSON.stringify(za)))});wa.send()}break;case "progress":"loading"===ba.t&&this.trigger(r.a.Events.DOCUMENT_LOADING_PROGRESS,[ba.bytes,ba.total])}this.xPa();!ha&&aa.echo&&aa&&"apstring2xod"===aa.echo.t&&(aa=aa.echo.reqID)&&(2<=parseInt(this.eQ,10)?this.Dm[aa].reject("Message unhandled by server"):this.Dm[aa].reject())};
26
- z.prototype.YAa=function(){return Object(ja.b)(this,void 0,void 0,function(){return Object(ja.d)(this,function(aa){switch(aa.label){case 0:return[4,this.PFa()];case 1:return aa.aa(),[2,this.ov.promise]}})})};z.prototype.zAa=function(aa){for(var ca=this,ba=new XMLHttpRequest,fa=Object(e.a)("".concat(this.Ug,"aul"),{id:this.id}),ha=new FormData,pa={},oa=0;oa<aa.body.length;oa++){var ka=aa.body[oa];pa[ka.id]="".concat(ka.IS.w,";").concat(ka.IS.h);ha.append(ka.id,ka.IS.dataString)}aa={t:"apstring2xod",
27
- reqID:this.Hda++,parts:pa};var ra=this.uD(aa);ha.append("msg",JSON.stringify(ra));this.Dm[ra.reqID]=new f;ba.open("POST",fa);ba.withCredentials=this.Rk;fa=new Promise(function(qa,sa){ba.onreadystatechange=function(){4===ba.readyState&&(200===ba.status?qa():sa("An error occurred while sending down appearance strings to the server"))}});ba.send(ha);return fa.then(function(){return ca.Dm[ra.reqID].promise})};z.prototype.Sta=function(){var aa=this.eQ.split("-")[0].split("."),ca=["1","5","9"];if(3!==aa.length)throw Error("Invalid WVS version length.");
28
- if(3!==ca.length)throw Error("Invalid version length.");for(var ba=0;ba<aa.length;++ba){if(ca.length===ba||aa[ba]>ca[ba])return-1;if(aa[ba]!==ca[ba])return 1}return 0};z.prototype.lv=function(){return 0>=this.Sta()};z.prototype.lV=function(){this.Rh||(this.Rh=new f,this.lv()?this.Rh.request={t:"cAnnots"}:this.Rh.request={t:"annots"},this.Xj(this.Rh.request));return this.Rh.promise};z.prototype.KO=function(aa,ca){this.Mj[ca]||(this.Mj[ca]=new f,this.Mj[ca].request={t:"image",p:ca},this.eha(aa,this.Mj[ca].request));
29
- return this.Mj[ca].promise};z.prototype.sOa=function(aa){this.Im[aa]||(this.Im[aa]=new f,this.Im[aa].request={t:"text",p:aa},this.Xj(this.Im[aa].request));return this.Im[aa].promise};z.prototype.tOa=function(aa,ca,ba,fa,ha){var pa=this.oi.length;this.HL.length&&(pa=this.HL.pop());this.oi[pa]=new f;this.oi[pa].request={t:"tiles",p:ca,z:ba,r:fa,size:ha,rID:pa};this.eha(aa,this.oi[pa].request);return this.oi[pa].promise};z.prototype.uga=function(){this.Eh||(this.Eh=new f,this.Eh.request={t:"pdf"},this.p8?
30
- this.Eh.resolve({url:this.tU}):this.Xj(this.Eh.request));return this.Eh.promise};z.prototype.T$=function(aa){var ca=this,ba=new XMLHttpRequest,fa=Object(e.a)("".concat(this.Ug,"aul"),{id:this.id}),ha=new FormData,pa={};aa.annots&&(pa.annots="xfdf");aa.watermark&&(pa.watermark="png");aa.redactions&&(pa.redactions="redact");pa={t:"docmod",reqID:this.Hda++,parts:pa};aa.print&&(pa.print=!0);var oa=this.uD(pa);ha.append("msg",JSON.stringify(oa));return Promise.all([aa.annots,aa.watermark,aa.redactions].map(function(ka){return Promise.resolve(ka)})).then(function(ka){var ra=
31
- ka[0],qa=ka[1];ka=ka[2];ra&&ha.append("annots",ra);qa&&ha.append("watermark",qa);ka&&ha.append("redactions",ka);ca.Dm[oa.reqID]=new f;ba.open("POST",fa);ba.withCredentials=ca.Rk;ra=new Promise(function(sa,ta){ba.onreadystatechange=function(){4===ba.readyState&&(200===ba.status?sa():ta("An error occurred while sending down annotation data to the server"))}});ba.send(ha);return ra.then(function(){return ca.Dm[oa.reqID].promise})})};z.prototype.Saa=function(){this.Ag||(this.Ag=new f,this.Ag.request=
32
- {t:"xod",noCreate:!0},this.Xj(this.Ag.request));return this.Ag.promise};z.prototype.uOa=function(){this.Bg||(this.Bg=new f,this.Bg.request={t:"xod"},this.Xj(this.Bg.request));return this.Bg.promise};z.prototype.Rt=function(){return!0};z.prototype.request=function(){};z.prototype.Kfa=function(){};z.prototype.abort=function(){for(var aa=0;aa<this.oi.length;aa++)this.oi[aa]&&(this.oi[aa].resolve(null),this.oi[aa]=null,this.HL.push(aa));this.close()};z.prototype.dP=function(aa){this.Sj=this.Sj||{};this.Sj.headers=
33
- aa};z.prototype.$t=function(aa){this.Sj=this.Sj||{};this.Sj.internal=this.Sj.internal||{};this.Sj.internal.withCredentials=aa};z.prototype.Rk=function(){return this.Sj&&this.Sj.internal?this.Sj.internal.withCredentials:null};z.prototype.getFileData=function(){return Promise.reject()};return z}();Object(ya.a)(n);Object(h.a)(n);Object(h.b)(n);va["default"]=n},653:function(ya,va,n){var ma=n(0),na=n(2),la=n(36),ja=n(52),ia=n(243),ea=n(109),w=function(){function r(h,b,e,f,a,y){void 0===e&&(e=null);void 0===
34
- f&&(f=null);void 0===a&&(a=null);void 0===y&&(y=null);this.OW=!1;this.gi=0;this.HF=8;this.Kga=3E3;this.zP=!1;this.D6=this.GVa(h);this.url=b?"".concat(this.D6,"/").concat(b):"".concat(this.D6,"/ws");this.bU=e;this.$F=f;this.sD=a;this.vga=y}r.prototype.GVa=function(h){var b=h.indexOf("://"),e="ws://";0>b?b=0:(5===b&&(e="wss://"),b+=3);var f=h.lastIndexOf("/");0>f&&(f=h.length);return e+h.slice(b,f)};r.prototype.send=function(h){this.ou.readyState===WebSocket.CLOSED||this.OW||this.ou.send(JSON.stringify(h))};
35
- r.prototype.$M=function(){return Object(ma.b)(this,void 0,void 0,function(){var h,b=this;return Object(ma.d)(this,function(){h=Object(ja.a)("wvsQueryParameters");h.bcid=Object(la.m)(8);Object(ja.b)("wvsQueryParameters",h);return[2,new Promise(function(e,f){var a=Object(ia.a)(b.url);b.zP=!1;b.ou=new WebSocket(a);b.ou.onopen=function(){b.OW=!1;b.gi=0;b.$F&&b.$F();e()};b.ou.onerror=function(){b.OW=!0};b.ou.onclose=function(y){y=y.code;b.sD&&b.sD();1E3!==y&&3E3!==y&&b.ZEa(y,e,f)};b.ou.onmessage=function(y){y&&
36
- y.data&&(y=JSON.parse(y.data),y.hb?b.send({hb:!0}):y.end?close():b.bU(y))}})]})})};r.prototype.ZEa=function(h,b,e){Object(ma.b)(this,void 0,void 0,function(){var f=this;return Object(ma.d)(this,function(){if(this.zP)return b(),[2];this.gi<this.HF?setTimeout(function(){f.zP?b():(f.gi++,Object(na.i)("Failed to connect to server with WebSocket close code ".concat(h,". Reconnecting to WebViewer Server, attempt ").concat(f.gi," of ").concat(f.HF," ...")),f.$M().then(b).catch(e))},this.Kga):e(ea.a);return[2]})})};
37
- r.prototype.Hv=function(){var h;void 0===h&&(h=!1);this.gi=0;this.zP=!0;h?this.ou.close(3E3):this.ou.close();return Promise.resolve()};return r}(),x=function(){function r(h,b,e,f,a,y,z){void 0===f&&(f=null);void 0===a&&(a=null);void 0===y&&(y=null);void 0===z&&(z=null);this.gi=this.JO=this.id=0;this.UE=!1;this.request=null;this.HF=8;this.Kga=3E3;h=this.ZLa(h);this.url=b?"".concat(h,"/").concat(b,"pf"):"".concat(h,"/pf");this.YP=e;this.bU=f;this.$F=a;this.sD=y;this.vga=z}r.prototype.ZLa=function(h){var b=
38
- h.lastIndexOf("/");0>b&&(b=h.length);return h.slice(0,b)};r.prototype.uva=function(h){h=h.split("\n");for(h[h.length-1]&&h.pop();0<h.length&&3>h[h.length-1].length;)"]"===h.pop()&&(this.id=0);0<h.length&&3>h[0].length&&h.shift();for(var b=0;b<h.length;++b)h[b].endsWith(",")&&(h[b]=h[b].substr(0,h[b].length-1));return h};r.prototype.Jga=function(){return Object(ma.b)(this,void 0,void 0,function(){var h=this;return Object(ma.d)(this,function(b){switch(b.label){case 0:return this.gi++<this.HF?[4,new Promise(function(e){return setTimeout(function(){h.vga();
39
- h.$M();e()},3E3)})]:[3,2];case 1:b.aa(),b.label=2;case 2:return[2]}})})};r.prototype.dMa=function(h){Object(ma.b)(this,void 0,void 0,function(){var b,e;return Object(ma.d)(this,function(f){switch(f.label){case 0:b=null,e=0,f.label=1;case 1:if(!(e<h.length))return[3,6];b=JSON.parse(h[e]);if(!b)return[3,5];if(!b.end)return[3,2];close();return[3,5];case 2:if(!b.id||Number(b.id)===this.id)return[3,4];Object(na.i)("Reconnecting, new server detected");this.Hv();return[4,this.Jga()];case 3:return f.aa(),
40
- [3,5];case 4:b.hb&&Number(b.id)===this.id?this.send({hb:!0}):this.UE||this.bU(b),f.label=5;case 5:return++e,[3,1];case 6:return[2]}})})};r.prototype.XJa=function(h){Object(ma.b)(this,void 0,void 0,function(){var b,e,f;return Object(ma.d)(this,function(a){switch(a.label){case 0:if(!(3<=h.readyState))return[3,2];try{b=h.responseText.length}catch(y){return Object(na.g)("caught exception"),[2]}if(0<b)try{e=this.uva(h.responseText),0===this.id&&0<e.length&&(f=JSON.parse(e.shift()),this.id=f.id,this.gi=
41
- 0),this.dMa(e)}catch(y){}return this.UE?[3,2]:[4,this.w9()];case 1:a.aa(),a.label=2;case 2:return[2]}})})};r.prototype.w9=function(){return Object(ma.b)(this,void 0,void 0,function(){var h=this;return Object(ma.d)(this,function(){return[2,new Promise(function(b,e){function f(){return Object(ma.b)(h,void 0,void 0,function(){return Object(ma.d)(this,function(y){switch(y.label){case 0:e(),this.Hv(),y.label=1;case 1:return this.UE&&this.gi<this.HF?[4,this.Jga()]:[3,3];case 2:return y.aa(),[3,1];case 3:return[2]}})})}
42
- h.request=new XMLHttpRequest;h.request.withCredentials=h.YP;var a=Object(ia.a)(h.url,0!==h.id?{id:String(h.id),uc:String(h.JO)}:{uc:String(h.JO)});h.JO++;h.request.open("GET",a,!0);h.request.setRequestHeader("Cache-Control","no-cache");h.request.setRequestHeader("X-Requested-With","XMLHttpRequest");h.request.onreadystatechange=function(){h.XJa(h.request)};h.request.addEventListener("error",f);h.request.addEventListener("timeout",f);h.request.addEventListener("load",function(){h.$F&&h.$F();b()});h.request.send()})]})})};
43
- r.prototype.$M=function(){var h=Object(ja.a)("wvsQueryParameters");h.bcid=Object(la.m)(8);Object(ja.b)("wvsQueryParameters",h);this.JO=this.id=0;this.UE=!1;return this.w9()};r.prototype.send=function(h){var b=this,e=new XMLHttpRequest;e.withCredentials=this.YP;var f=Object(ia.a)(this.url,{id:String(this.id)}),a=new FormData;a.append("data",JSON.stringify(h));e.addEventListener("error",function(){b.Hv()});e.open("POST",f);e.setRequestHeader("X-Requested-With","XMLHttpRequest");e.send(a)};r.prototype.Hv=
44
- function(){this.id=0;this.UE=!0;this.sD&&this.sD();this.request.abort();return Promise.resolve()};return r}();ya=function(){function r(h,b,e){this.B7=h;this.target=b;this.YP=e}r.prototype.kAa=function(h,b,e,f,a){void 0===h&&(h=!0);void 0===b&&(b=null);void 0===e&&(e=null);void 0===f&&(f=null);void 0===a&&(a=null);return h?new w(this.B7,this.target,b,e,f,a):new x(this.B7,this.target,this.YP,b,e,f,a)};return r}();va.a=ya}}]);}).call(this || window)
2
+ (function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[13],{634:function(ya,va,n){function ma(){return!1}function na(z,aa,ea){if(!(aa in x))return!0;aa=x[aa];for(var ba=0;ba<aa.length;ba++){var fa=z;var ha=aa[ba];var pa=ea;if(ha.name in fa){var oa="",ka=!1;fa=fa[ha.name];switch(ha.type){case "s":oa="String";ka=Object(ia.isString)(fa);break;case "a":oa="Array";ka=Object(ia.isArray)(fa);break;case "n":oa="Number";ka=Object(ia.isNumber)(fa)&&Object(ia.isFinite)(fa);break;case "o":oa="Object",
3
+ ka=Object(ia.isObject)(fa)&&!Object(ia.isArray)(fa)}ka||pa.reject('Expected response field "'.concat(ha.name,'" to have type ').concat(oa));ha=ka}else pa.reject('Response missing field "'.concat(ha.name,'"')),ha=!1;if(!ha)return!1}return!0}function la(z){for(var aa=0,ea=["locale","excelMaxAllowedCellCount","applyPageBreaksToSheet","excelDefaultCellBorderWidth","displayChangeTracking"];aa<ea.length;aa++){var ba=ea[aa],fa=ba;ba=ba.charAt(0).toUpperCase()+ba.slice(1);z[fa]&&(Object.defineProperty(z,
4
+ ba,Object.getOwnPropertyDescriptor(z,fa)),delete z[fa])}return z}n.r(va);var ja=n(0),ia=n(1);n.n(ia);var ca=n(2);ya=n(53);var w=n(36),y=n(653),r=n(129),h=n(546),e=n(52),b=n(243),f=function(){function z(){this.request=this.result=null;this.state=0;var aa=this;aa.promise=new Promise(function(ea,ba){aa.resolve=function(){if(0===aa.state||4===aa.state)aa.state=1,aa.result=arguments[0],ea.apply(null,arguments)};aa.reject=function(){if(0===aa.state||4===aa.state)aa.state=2,ba.apply(null,arguments)}})}z.prototype.mA=
5
+ function(){return 1===(this.state&1)};z.prototype.sHa=function(){return 2===(this.state&2)};z.prototype.xm=function(){return!this.sHa()&&!this.mA()};z.prototype.HGa=function(){return 4===(this.state&4)};z.prototype.X_=function(){this.state|=4};return z}(),a=function(){function z(){this.Zz={};this.Pc=[]}z.prototype.pop=function(){var aa=this.Pc.pop();this.Zz[aa.key]=void 0;return aa};z.prototype.push=function(aa,ea){ea={key:aa,data:ea};this.Pc.push(ea);this.Zz[aa]=ea.data};z.prototype.contains=function(aa){return!!this.Zz[aa]};
6
+ z.prototype.get=function(aa){return this.Zz[aa]};z.prototype.set=function(aa,ea){var ba=this;this.Zz[aa]=ea;this.Pc.forEach(function(fa,ha){fa.key===aa&&(ba.Pc[ha]=fa)})};z.prototype.remove=function(aa){var ea=this;this.Zz[aa]=void 0;this.Pc.forEach(function(ba,fa){ba.key===aa&&ea.Pc.splice(fa,1)})};z.prototype.length=function(){return this.Pc.length};return z}(),x={pages:[{name:"pages",type:"a"}],pdf:[{name:"url",type:"s"}],docmod:[{name:"url",type:"s"},{name:"rID",type:"s"}],health:[],tiles:[{name:"z",
7
+ type:"n"},{name:"rID",type:"n"},{name:"tiles",type:"a"},{name:"size",type:"n"}],cAnnots:[{name:"annots",type:"a"}],annots:[{name:"url",type:"s"},{name:"name",type:"s"}],image:[{name:"url",type:"s"},{name:"name",type:"s"},{name:"p",type:"n"}],text:[{name:"url",type:"s"},{name:"name",type:"s"},{name:"p",type:"n"}],ApString2Xod:[{name:"url",type:"s"},{name:"rID",type:"s"}]};n=function(){function z(aa,ea,ba){var fa=this;this.D0=this.C8=!1;this.Sj=this.dQ=this.PB=this.vg=this.iD=this.Dt=this.hD=this.zr=
8
+ null;this.Oq=new f;this.mv=new f;this.LK=!1;this.Qh=this.Ag=this.Bg=this.Dh=null;this.ni=[];this.GL=[];this.cache={};this.timeStamp=0;this.Mj=[];this.Im=[];this.UU=null;this.o8=!1;this.hha=this.id=null;this.iY=this.oba=ma;this.fi=0;this.KW=!1;this.Fda=1;this.Dm={};this.uy=0;this.YA=new a;ea.endsWith("/")||(ea+="/");ba=ba||{};this.C8=ba.disableWebsockets||!1;this.D0=ba.singleServerMode||!1;null!=ba.customQueryParameters&&Object(e.b)("wvsQueryParameters",ba.customQueryParameters);ea.endsWith("blackbox/")||
9
+ (ea+="blackbox/");this.zr=ba.uploadData||null;this.PB=ba.uriData||null;this.hD=ba.cacheKey||null;if(this.Dt=ba.officeOptions||null)this.Dt=la(this.Dt);this.vg=ba.rasterizerOptions||null;this.iD=ba.cadOptions||null;this.Ug=ea;this.sU=aa;this.Yt(!0);this.Ry=(new y.a(ea,null,this.Rk())).iAa(!this.C8,function(ha){fa.YJa(ha)},function(){return null},function(){fa.LK=!1},function(){fa.BOa()})}z.prototype.Uva=function(){var aa=this;return new Promise(function(ea,ba){var fa=new XMLHttpRequest,ha="".concat(aa.Ug,
10
+ "ck");fa.open("GET",ha);fa.withCredentials=aa.Rk();fa.onreadystatechange=function(){fa.readyState===XMLHttpRequest.DONE&&(200===fa.status?ea():ba())};fa.send()})};z.prototype.RQa=function(aa){this.oba=aa||ma;this.iY=ma};z.prototype.Lta=function(){this.vga();return this.Ry.Fv()};z.prototype.vga=function(){Object(ja.b)(this,void 0,void 0,function(){return Object(ja.d)(this,function(aa){switch(aa.label){case 0:return this.mv=new f,this.Oq=new f,this.LK=!1,this.id=null,this.o8=!1,[4,this.Uva().catch(function(){})];
11
+ case 1:return aa.aa(),[2]}})})};z.prototype.BOa=function(){this.oba();this.vga();this.Dh&&(this.Dh.xm()?this.Xj(this.Dh.request):this.Dh.mA()&&this.iY(this.Dh.result.url,"pdf")&&(this.Dh=null,this.sga()));this.Qh&&this.Qh.xm()&&this.Xj(this.Qh.request);this.Bg&&this.Bg.xm()?this.Xj(this.Bg.request):this.Ag&&this.Ag.xm()&&this.Qaa();var aa;for(aa=0;aa<this.Mj.length;aa++)this.Mj[aa]&&(this.Mj[aa].xm()?this.Xj(this.Mj[aa].request):this.Mj[aa].mA()&&this.iY(this.Mj[aa].result.url,"image")&&(this.Mj[aa]=
12
+ null,this.JO(Object(ia.uniqueId)(),aa)));for(aa=0;aa<this.Im.length;aa++)this.Im[aa]&&this.Im[aa].xm()&&!this.Im[aa].HGa()&&this.Xj(this.Im[aa].request);for(aa=0;aa<this.ni.length;aa++)this.ni[aa]&&this.ni[aa].xm()&&this.Xj(this.ni[aa].request)};z.prototype.MFa=function(){return this.LK?Promise.resolve():(this.LK=!0,this.timeStamp=Date.now(),this.Ry.ZM())};z.prototype.$Ua=function(){var aa=this,ea,ba,fa,ha,pa;return new Promise(function(oa,ka){if(aa.zr)ea=new FormData,ea.append("file",aa.zr.fileHandle,
13
+ aa.zr.fileHandle.name),aa.Dt&&ea.append("officeOptions",JSON.stringify(aa.Dt)),aa.vg&&ea.append("rasterizerOptions",JSON.stringify(aa.vg)),aa.iD&&ea.append("cadOptions",aa.iD.getJsonString()),aa.hD&&ea.append("cacheKey",aa.hD),ba=aa.zr.loadCallback,ha="upload",fa=aa.zr.extension;else if(aa.PB)ea={uri:aa.PB.uri,u_a:aa.PB.shareId},ea=Object.keys(ea).map(function(sa){return"".concat(sa,"=").concat(ea[sa]?encodeURIComponent(ea[sa]):"")}).join("&"),pa="application/x-www-form-urlencoded; charset=UTF-8",
14
+ ba=aa.PB.loadCallback,ha="url",fa=aa.PB.extension;else{oa();return}var ra=new XMLHttpRequest,qa=Object(w.l)(aa.Ug,"AuxUpload");qa=Object(b.a)(qa,{type:ha,ext:fa});ra.open("POST",qa);ra.withCredentials=aa.Rk();pa&&ra.setRequestHeader("Content-Type",pa);ra.addEventListener("load",function(){if(ra.readyState===ra.DONE&&200===ra.status){var sa=JSON.parse(ra.response);aa.sU=sa.uri;ba(sa);oa(sa)}});ra.addEventListener("error",function(){ka("".concat(ra.statusText," ").concat(JSON.stringify(ra)))});aa.zr&&
15
+ null!=aa.zr.onProgress&&(ra.upload.onprogress=function(sa){aa.zr.onProgress(sa)});ra.send(ea)})};z.prototype.nOa=function(aa){this.password=aa||null;this.Oq.mA()||(this.Oq=new f,this.Xj({t:"pages"}));return this.Oq.promise};z.prototype.IG=function(aa){this.UU=aa||null;this.Oq.mA()||this.Xj({t:"pages"});return this.Oq.promise};z.prototype.tD=function(aa){aa=Object.assign(aa,{uri:encodeURIComponent(this.sU)});this.UU&&(aa.ext=this.UU);this.Sj&&(aa.c=this.Sj);this.password&&(aa.pswd=this.password);this.hD&&
16
+ (aa.cacheKey=this.hD);this.Dt&&(aa.officeOptions=this.Dt);this.vg&&(aa.rastOptions=this.vg);this.iD&&(aa.cadOptions=this.iD.mImpl);return aa};z.prototype.tPa=function(){0<this.YA.length()&&10>=this.uy&&this.uPa(this.YA.pop().data)};z.prototype.Wsa=function(aa){0<this.YA.length()&&this.YA.contains(aa)&&this.YA.remove(aa)};z.prototype.Xj=function(aa){aa=this.tD(aa);this.Ry.send(aa)};z.prototype.cha=function(aa,ea){10<this.uy?this.YA.push(aa,ea):(this.uy++,aa=this.tD(ea),this.Ry.send(aa))};z.prototype.uPa=
17
+ function(aa){this.uy++;aa=this.tD(aa);this.Ry.send(aa)};z.prototype.Op=function(aa){return aa};z.prototype.nba=function(aa){this.D0&&aa?Object(ca.i)("Server failed health check. Single server mode ignoring check."):!this.CYa&&aa&&3>=this.fi?(this.KW=!0,this.Ry.Fv()):3<this.fi&&(this.D0=!0)};z.prototype.YJa=function(aa){var ea=this,ba=aa.data,fa=aa.err,ha=aa.t;switch(ha){case "upload":fa?this.aVa.reject(fa):this.aVa.resolve("Success");break;case "pages":fa?this.Oq.reject(fa):na(ba,ha,this.Oq)&&this.Oq.resolve(ba);
18
+ break;case "config":if(fa)this.mv.reject(fa);else if(na(ba,ha,this.mv)){this.nba(ba.unhealthy);ba.id&&(this.id=ba.id);if(ba.auth){var pa=Object(e.a)("wvsQueryParameters");pa.auth=ba.auth;Object(e.b)("wvsQueryParameters",pa)}ba.serverVersion&&(this.dQ=ba.serverVersion,Object(ca.g)("[WebViewer Server] server version: ".concat(this.dQ)));ba.serverID?(this.fi=ba.serverID===this.hha&&this.KW?this.fi+1:0,this.hha=ba.serverID):this.fi=0;this.KW=!1;this.mv.resolve(ba)}break;case "health":fa?this.mv.reject(fa):
19
+ na(ba,ha,this.mv)&&this.nba(ba.unhealthy);break;case "pdf":ba.url=Object(b.a)("".concat(this.Ug,"../").concat(encodeURI(ba.url)));fa?this.Dh.reject(fa):na(ba,ha,this.Dh)&&this.Dh.resolve(ba);break;case "ApString2Xod":ba.url=Object(b.a)("".concat(this.Ug,"../data/").concat(encodeURI(ba.url)));fa?this.Dm[ba.rID].reject(fa):na(ba,ha,this.Dm[ba.rID])&&this.Dm[ba.rID].resolve(ba);break;case "docmod":ba.url=Object(b.a)("".concat(this.Ug,"../").concat(encodeURI(ba.url)));fa?this.Dm[ba.rID].reject(fa):na(ba,
20
+ ha,this.Dh)&&this.Dm[ba.rID].resolve(ba);break;case "xod":if(fa)this.Bg&&this.Bg.xm()&&this.Bg.reject(fa),this.Ag&&this.Ag.xm()&&this.Ag.reject(fa);else if(ba.notFound)ba.noCreate||this.Bg&&this.Bg.xm()&&this.Bg.resolve(ba),this.Ag&&this.Ag.xm()&&this.Ag.resolve(ba);else{ba.url&&(ba.url=Object(b.a)("".concat(this.Ug,"../").concat(encodeURI(ba.url))));if(!this.Ag||this.Ag.mA())this.Ag=new f,this.Ag.request={t:"xod",noCreate:!0};this.Bg||(this.Bg=new f,this.Bg.request={t:"xod"});this.Ag.resolve(ba);
21
+ this.Bg.resolve(ba)}break;case "cAnnots":pa=this.Qh;if(fa)pa.reject(fa);else if(na(ba,ha,pa)){pa.X_();var oa=[],ka=ba.annots;ba=function(za){var Aa=ka[za].s,Da=ka[za].e,Fa="".concat(ra.Ug,"../").concat(encodeURI(ka[za].xfdf)),Ca="true"===ka[za].hasAppearance?Object(b.a)("".concat(Fa,".xodapp")):null,Ka=Object(ia.range)(Aa,Da);oa[za]={range:Ka,promise:new Promise(function(La,Ia){var Qa=new XMLHttpRequest;Qa.open("GET",Object(b.a)(Fa));Qa.responseType="text";Qa.withCredentials=ea.Rk();Qa.addEventListener("load",
22
+ function(){Qa.readyState===Qa.DONE&&200===Qa.status&&La({Dr:Qa.response,Dp:Ca,range:Ka})});Qa.addEventListener("error",function(){Ia("".concat(Qa.statusText," ").concat(JSON.stringify(Qa)))});Qa.send()})}};var ra=this;for(fa=0;fa<ka.length;fa++)ba(fa);pa.resolve(oa)}break;case "annots":if(fa)this.Qh.reject(fa);else if(na(ba,ha,this.Qh)){this.Qh.X_();var qa=new XMLHttpRequest;pa="".concat(this.Ug,"../").concat(encodeURI(ba.url));var sa=ba.hasAppearance?Object(b.a)("".concat(pa,".xodapp")):null;qa.open("GET",
23
+ Object(b.a)(pa));qa.responseType="text";qa.withCredentials=this.Rk();qa.addEventListener("load",function(){qa.readyState===qa.DONE&&200===qa.status&&ea.Qh.resolve({Dr:qa.response,Dp:sa})});qa.addEventListener("error",function(){ea.Qh.reject("".concat(qa.statusText," ").concat(JSON.stringify(qa)))});qa.send()}break;case "image":this.uy--;var ta=this.Mj[ba.p];fa?ta.promise.reject(fa):na(ba,ha,ta)&&(ta.result=ba,ta.result.url=Object(b.a)("".concat(this.Ug,"../").concat(encodeURI(ta.result.url))),ta.resolve(ta.result));
24
+ break;case "tiles":this.uy--;ta=ba.rID;pa=this.ni[ta];this.ni[ta]=null;this.GL.push(ta);if(fa)pa.reject(fa);else if(na(ba,ha,pa)){for(fa=0;fa<ba.tiles.length;fa++)ba.tiles[fa]=Object(b.a)("".concat(this.Ug,"../").concat(encodeURI(ba.tiles[fa])));pa.resolve(ba)}break;case "text":ta=this.Im[ba.p];if(fa)ta.reject(fa);else if(na(ba,ha,ta)){ta.X_();var wa=new XMLHttpRequest;ba=Object(b.a)("".concat(this.Ug,"../").concat(encodeURI(ba.url)));wa.open("GET",ba);wa.withCredentials=this.Rk();wa.addEventListener("load",
25
+ function(){wa.readyState===wa.DONE&&200===wa.status&&(ta.result=JSON.parse(wa.response),ta.resolve(ta.result))});wa.addEventListener("error",function(za){ta.reject("".concat(wa.statusText," ").concat(JSON.stringify(za)))});wa.send()}break;case "progress":"loading"===ba.t&&this.trigger(r.a.Events.DOCUMENT_LOADING_PROGRESS,[ba.bytes,ba.total])}this.tPa();!ha&&aa.echo&&aa&&"apstring2xod"===aa.echo.t&&(aa=aa.echo.reqID)&&(2<=parseInt(this.dQ,10)?this.Dm[aa].reject("Message unhandled by server"):this.Dm[aa].reject())};
26
+ z.prototype.XAa=function(){return Object(ja.b)(this,void 0,void 0,function(){return Object(ja.d)(this,function(aa){switch(aa.label){case 0:return[4,this.MFa()];case 1:return aa.aa(),[2,this.mv.promise]}})})};z.prototype.xAa=function(aa){for(var ea=this,ba=new XMLHttpRequest,fa=Object(b.a)("".concat(this.Ug,"aul"),{id:this.id}),ha=new FormData,pa={},oa=0;oa<aa.body.length;oa++){var ka=aa.body[oa];pa[ka.id]="".concat(ka.HS.w,";").concat(ka.HS.h);ha.append(ka.id,ka.HS.dataString)}aa={t:"apstring2xod",
27
+ reqID:this.Fda++,parts:pa};var ra=this.tD(aa);ha.append("msg",JSON.stringify(ra));this.Dm[ra.reqID]=new f;ba.open("POST",fa);ba.withCredentials=this.Rk;fa=new Promise(function(qa,sa){ba.onreadystatechange=function(){4===ba.readyState&&(200===ba.status?qa():sa("An error occurred while sending down appearance strings to the server"))}});ba.send(ha);return fa.then(function(){return ea.Dm[ra.reqID].promise})};z.prototype.Qta=function(){var aa=this.dQ.split("-")[0].split("."),ea=["1","5","9"];if(3!==aa.length)throw Error("Invalid WVS version length.");
28
+ if(3!==ea.length)throw Error("Invalid version length.");for(var ba=0;ba<aa.length;++ba){if(ea.length===ba||aa[ba]>ea[ba])return-1;if(aa[ba]!==ea[ba])return 1}return 0};z.prototype.jv=function(){return 0>=this.Qta()};z.prototype.kV=function(){this.Qh||(this.Qh=new f,this.jv()?this.Qh.request={t:"cAnnots"}:this.Qh.request={t:"annots"},this.Xj(this.Qh.request));return this.Qh.promise};z.prototype.JO=function(aa,ea){this.Mj[ea]||(this.Mj[ea]=new f,this.Mj[ea].request={t:"image",p:ea},this.cha(aa,this.Mj[ea].request));
29
+ return this.Mj[ea].promise};z.prototype.oOa=function(aa){this.Im[aa]||(this.Im[aa]=new f,this.Im[aa].request={t:"text",p:aa},this.Xj(this.Im[aa].request));return this.Im[aa].promise};z.prototype.pOa=function(aa,ea,ba,fa,ha){var pa=this.ni.length;this.GL.length&&(pa=this.GL.pop());this.ni[pa]=new f;this.ni[pa].request={t:"tiles",p:ea,z:ba,r:fa,size:ha,rID:pa};this.cha(aa,this.ni[pa].request);return this.ni[pa].promise};z.prototype.sga=function(){this.Dh||(this.Dh=new f,this.Dh.request={t:"pdf"},this.o8?
30
+ this.Dh.resolve({url:this.sU}):this.Xj(this.Dh.request));return this.Dh.promise};z.prototype.S$=function(aa){var ea=this,ba=new XMLHttpRequest,fa=Object(b.a)("".concat(this.Ug,"aul"),{id:this.id}),ha=new FormData,pa={};aa.annots&&(pa.annots="xfdf");aa.watermark&&(pa.watermark="png");aa.redactions&&(pa.redactions="redact");pa={t:"docmod",reqID:this.Fda++,parts:pa};aa.print&&(pa.print=!0);var oa=this.tD(pa);ha.append("msg",JSON.stringify(oa));return Promise.all([aa.annots,aa.watermark,aa.redactions].map(function(ka){return Promise.resolve(ka)})).then(function(ka){var ra=
31
+ ka[0],qa=ka[1];ka=ka[2];ra&&ha.append("annots",ra);qa&&ha.append("watermark",qa);ka&&ha.append("redactions",ka);ea.Dm[oa.reqID]=new f;ba.open("POST",fa);ba.withCredentials=ea.Rk;ra=new Promise(function(sa,ta){ba.onreadystatechange=function(){4===ba.readyState&&(200===ba.status?sa():ta("An error occurred while sending down annotation data to the server"))}});ba.send(ha);return ra.then(function(){return ea.Dm[oa.reqID].promise})})};z.prototype.Qaa=function(){this.Ag||(this.Ag=new f,this.Ag.request=
32
+ {t:"xod",noCreate:!0},this.Xj(this.Ag.request));return this.Ag.promise};z.prototype.qOa=function(){this.Bg||(this.Bg=new f,this.Bg.request={t:"xod"},this.Xj(this.Bg.request));return this.Bg.promise};z.prototype.Pt=function(){return!0};z.prototype.request=function(){};z.prototype.Ifa=function(){};z.prototype.abort=function(){for(var aa=0;aa<this.ni.length;aa++)this.ni[aa]&&(this.ni[aa].resolve(null),this.ni[aa]=null,this.GL.push(aa));this.close()};z.prototype.cP=function(aa){this.Sj=this.Sj||{};this.Sj.headers=
33
+ aa};z.prototype.Yt=function(aa){this.Sj=this.Sj||{};this.Sj.internal=this.Sj.internal||{};this.Sj.internal.withCredentials=aa};z.prototype.Rk=function(){return this.Sj&&this.Sj.internal?this.Sj.internal.withCredentials:null};z.prototype.getFileData=function(){return Promise.reject()};return z}();Object(ya.a)(n);Object(h.a)(n);Object(h.b)(n);va["default"]=n},653:function(ya,va,n){var ma=n(0),na=n(2),la=n(36),ja=n(52),ia=n(243),ca=n(109),w=function(){function r(h,e,b,f,a,x){void 0===b&&(b=null);void 0===
34
+ f&&(f=null);void 0===a&&(a=null);void 0===x&&(x=null);this.NW=!1;this.fi=0;this.GF=8;this.Iga=3E3;this.yP=!1;this.C6=this.CVa(h);this.url=e?"".concat(this.C6,"/").concat(e):"".concat(this.C6,"/ws");this.aU=b;this.$F=f;this.rD=a;this.tga=x}r.prototype.CVa=function(h){var e=h.indexOf("://"),b="ws://";0>e?e=0:(5===e&&(b="wss://"),e+=3);var f=h.lastIndexOf("/");0>f&&(f=h.length);return b+h.slice(e,f)};r.prototype.send=function(h){this.mu.readyState===WebSocket.CLOSED||this.NW||this.mu.send(JSON.stringify(h))};
35
+ r.prototype.ZM=function(){return Object(ma.b)(this,void 0,void 0,function(){var h,e=this;return Object(ma.d)(this,function(){h=Object(ja.a)("wvsQueryParameters");h.bcid=Object(la.m)(8);Object(ja.b)("wvsQueryParameters",h);return[2,new Promise(function(b,f){var a=Object(ia.a)(e.url);e.yP=!1;e.mu=new WebSocket(a);e.mu.onopen=function(){e.NW=!1;e.fi=0;e.$F&&e.$F();b()};e.mu.onerror=function(){e.NW=!0};e.mu.onclose=function(x){x=x.code;e.rD&&e.rD();1E3!==x&&3E3!==x&&e.WEa(x,b,f)};e.mu.onmessage=function(x){x&&
36
+ x.data&&(x=JSON.parse(x.data),x.hb?e.send({hb:!0}):x.end?close():e.aU(x))}})]})})};r.prototype.WEa=function(h,e,b){Object(ma.b)(this,void 0,void 0,function(){var f=this;return Object(ma.d)(this,function(){if(this.yP)return e(),[2];this.fi<this.GF?setTimeout(function(){f.yP?e():(f.fi++,Object(na.i)("Failed to connect to server with WebSocket close code ".concat(h,". Reconnecting to WebViewer Server, attempt ").concat(f.fi," of ").concat(f.GF," ...")),f.ZM().then(e).catch(b))},this.Iga):b(ca.a);return[2]})})};
37
+ r.prototype.Fv=function(){var h;void 0===h&&(h=!1);this.fi=0;this.yP=!0;h?this.mu.close(3E3):this.mu.close();return Promise.resolve()};return r}(),y=function(){function r(h,e,b,f,a,x,z){void 0===f&&(f=null);void 0===a&&(a=null);void 0===x&&(x=null);void 0===z&&(z=null);this.fi=this.IO=this.id=0;this.TE=!1;this.request=null;this.GF=8;this.Iga=3E3;h=this.VLa(h);this.url=e?"".concat(h,"/").concat(e,"pf"):"".concat(h,"/pf");this.XP=b;this.aU=f;this.$F=a;this.rD=x;this.tga=z}r.prototype.VLa=function(h){var e=
38
+ h.lastIndexOf("/");0>e&&(e=h.length);return h.slice(0,e)};r.prototype.sva=function(h){h=h.split("\n");for(h[h.length-1]&&h.pop();0<h.length&&3>h[h.length-1].length;)"]"===h.pop()&&(this.id=0);0<h.length&&3>h[0].length&&h.shift();for(var e=0;e<h.length;++e)h[e].endsWith(",")&&(h[e]=h[e].substr(0,h[e].length-1));return h};r.prototype.Hga=function(){return Object(ma.b)(this,void 0,void 0,function(){var h=this;return Object(ma.d)(this,function(e){switch(e.label){case 0:return this.fi++<this.GF?[4,new Promise(function(b){return setTimeout(function(){h.tga();
39
+ h.ZM();b()},3E3)})]:[3,2];case 1:e.aa(),e.label=2;case 2:return[2]}})})};r.prototype.$La=function(h){Object(ma.b)(this,void 0,void 0,function(){var e,b;return Object(ma.d)(this,function(f){switch(f.label){case 0:e=null,b=0,f.label=1;case 1:if(!(b<h.length))return[3,6];e=JSON.parse(h[b]);if(!e)return[3,5];if(!e.end)return[3,2];close();return[3,5];case 2:if(!e.id||Number(e.id)===this.id)return[3,4];Object(na.i)("Reconnecting, new server detected");this.Fv();return[4,this.Hga()];case 3:return f.aa(),
40
+ [3,5];case 4:e.hb&&Number(e.id)===this.id?this.send({hb:!0}):this.TE||this.aU(e),f.label=5;case 5:return++b,[3,1];case 6:return[2]}})})};r.prototype.TJa=function(h){Object(ma.b)(this,void 0,void 0,function(){var e,b,f;return Object(ma.d)(this,function(a){switch(a.label){case 0:if(!(3<=h.readyState))return[3,2];try{e=h.responseText.length}catch(x){return Object(na.g)("caught exception"),[2]}if(0<e)try{b=this.sva(h.responseText),0===this.id&&0<b.length&&(f=JSON.parse(b.shift()),this.id=f.id,this.fi=
41
+ 0),this.$La(b)}catch(x){}return this.TE?[3,2]:[4,this.v9()];case 1:a.aa(),a.label=2;case 2:return[2]}})})};r.prototype.v9=function(){return Object(ma.b)(this,void 0,void 0,function(){var h=this;return Object(ma.d)(this,function(){return[2,new Promise(function(e,b){function f(){return Object(ma.b)(h,void 0,void 0,function(){return Object(ma.d)(this,function(x){switch(x.label){case 0:b(),this.Fv(),x.label=1;case 1:return this.TE&&this.fi<this.GF?[4,this.Hga()]:[3,3];case 2:return x.aa(),[3,1];case 3:return[2]}})})}
42
+ h.request=new XMLHttpRequest;h.request.withCredentials=h.XP;var a=Object(ia.a)(h.url,0!==h.id?{id:String(h.id),uc:String(h.IO)}:{uc:String(h.IO)});h.IO++;h.request.open("GET",a,!0);h.request.setRequestHeader("Cache-Control","no-cache");h.request.setRequestHeader("X-Requested-With","XMLHttpRequest");h.request.onreadystatechange=function(){h.TJa(h.request)};h.request.addEventListener("error",f);h.request.addEventListener("timeout",f);h.request.addEventListener("load",function(){h.$F&&h.$F();e()});h.request.send()})]})})};
43
+ r.prototype.ZM=function(){var h=Object(ja.a)("wvsQueryParameters");h.bcid=Object(la.m)(8);Object(ja.b)("wvsQueryParameters",h);this.IO=this.id=0;this.TE=!1;return this.v9()};r.prototype.send=function(h){var e=this,b=new XMLHttpRequest;b.withCredentials=this.XP;var f=Object(ia.a)(this.url,{id:String(this.id)}),a=new FormData;a.append("data",JSON.stringify(h));b.addEventListener("error",function(){e.Fv()});b.open("POST",f);b.setRequestHeader("X-Requested-With","XMLHttpRequest");b.send(a)};r.prototype.Fv=
44
+ function(){this.id=0;this.TE=!0;this.rD&&this.rD();this.request.abort();return Promise.resolve()};return r}();ya=function(){function r(h,e,b){this.A7=h;this.target=e;this.XP=b}r.prototype.iAa=function(h,e,b,f,a){void 0===h&&(h=!0);void 0===e&&(e=null);void 0===b&&(b=null);void 0===f&&(f=null);void 0===a&&(a=null);return h?new w(this.A7,this.target,e,b,f,a):new y(this.A7,this.target,this.XP,e,b,f,a)};return r}();va.a=ya}}]);}).call(this || window)
@@ -1,4 +1,4 @@
1
1
  /** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
2
- (function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[14],{633:function(ya,va,n){n.r(va);var ma=n(0),na=n(365);ya=n(623);var la=n(129);n=n(546);var ja={},ia=function(ea){function w(x,r){var h=ea.call(this,x,r)||this;h.url=x;h.range=r;h.status=na.a.NOT_STARTED;return h}Object(ma.c)(w,ea);w.prototype.start=function(x){var r=this;"undefined"===typeof ja[this.range.start]&&(ja[this.range.start]={M0:function(h){var b=atob(h),e,f=b.length;h=new Uint8Array(f);for(e=0;e<f;++e)h[e]=b.charCodeAt(e);
3
- b=h.length;e="";for(var a=0;a<b;)f=h.subarray(a,a+1024),a+=1024,e+=String.fromCharCode.apply(null,f);r.M0(e,x)},UYa:function(){r.status=na.a.ERROR;x({code:r.status})}},window.external.notify(this.url),this.status=na.a.STARTED);r.nM()};return w}(ya.ByteRangeRequest);ya=function(ea){function w(x,r,h,b){x=ea.call(this,x,h,b)||this;x.xG=ia;return x}Object(ma.c)(w,ea);w.prototype.yD=function(x,r){return"".concat(x,"?").concat(r.start,"&").concat(r.stop?r.stop:"")};return w}(la.a);Object(n.a)(ya);Object(n.b)(ya);
2
+ (function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[14],{633:function(ya,va,n){n.r(va);var ma=n(0),na=n(365);ya=n(623);var la=n(129);n=n(546);var ja={},ia=function(ca){function w(y,r){var h=ca.call(this,y,r)||this;h.url=y;h.range=r;h.status=na.a.NOT_STARTED;return h}Object(ma.c)(w,ca);w.prototype.start=function(y){var r=this;"undefined"===typeof ja[this.range.start]&&(ja[this.range.start]={L0:function(h){var e=atob(h),b,f=e.length;h=new Uint8Array(f);for(b=0;b<f;++b)h[b]=e.charCodeAt(b);
3
+ e=h.length;b="";for(var a=0;a<e;)f=h.subarray(a,a+1024),a+=1024,b+=String.fromCharCode.apply(null,f);r.L0(b,y)},QYa:function(){r.status=na.a.ERROR;y({code:r.status})}},window.external.notify(this.url),this.status=na.a.STARTED);r.lM()};return w}(ya.ByteRangeRequest);ya=function(ca){function w(y,r,h,e){y=ca.call(this,y,h,e)||this;y.xG=ia;return y}Object(ma.c)(w,ca);w.prototype.xD=function(y,r){return"".concat(y,"?").concat(r.start,"&").concat(r.stop?r.stop:"")};return w}(la.a);Object(n.a)(ya);Object(n.b)(ya);
4
4
  va["default"]=ya}}]);}).call(this || window)
@@ -1,3 +1,3 @@
1
1
  !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/core/legacyOffice/",n(n.s=2)}([function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){
2
2
  /*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */
3
- e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:c}=Object,{apply:s,construct:u}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),s||(s=function(e,t,n){return e.apply(t,n)}),u||(u=function(e,t){return new e(...t)});const l=S(Array.prototype.forEach),f=S(Array.prototype.lastIndexOf),m=S(Array.prototype.pop),d=S(Array.prototype.push),p=S(Array.prototype.splice),h=S(String.prototype.toLowerCase),g=S(String.prototype.toString),y=S(String.prototype.match),v=S(String.prototype.replace),b=S(String.prototype.indexOf),T=S(String.prototype.trim),w=S(Object.prototype.hasOwnProperty),A=S(RegExp.prototype.test),E=(_=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(_,t)});var _;function S(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return s(e,t,r)}}function x(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function N(e){for(let t=0;t<e.length;t++)w(e,t)||(e[t]=null);return e}function O(t){const n=c(null);for(const[r,o]of e(t))w(t,r)&&(Array.isArray(o)?n[r]=N(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=O(o):n[r]=o);return n}function R(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return S(n.get);if("function"==typeof n.value)return S(n.value)}e=r(e)}return function(){return null}}const M=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),P=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),k=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),C=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),D=i(["#text"]),U=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),j=i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),F=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),z=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=a(/<%[\w\W]*|[\w\W]*%>/gm),B=a(/\$\{[\w\W]*/gm),G=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),Y=a(/^aria-[\-\w]+$/),X=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=a(/^(?:\w+script|data):/i),$=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V=a(/^html$/i),K=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z=Object.freeze({__proto__:null,ARIA_ATTR:Y,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:K,DATA_ATTR:G,DOCTYPE_NAME:V,ERB_EXPR:W,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:H,TMPLIT_EXPR:B});const J=1,Q=3,ee=7,te=8,ne=9,re=function(){return"undefined"==typeof window?null:window},oe=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;t&&t.hasAttribute("data-tt-policy-suffix")&&(n=t.getAttribute("data-tt-policy-suffix"));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re();const r=e=>t(e);if(r.version="3.2.5",r.removed=[],!n||!n.document||n.document.nodeType!==ne||!n.Element)return r.isSupported=!1,r;let{document:o}=n;const a=o,s=a.currentScript,{DocumentFragment:u,HTMLTemplateElement:_,Node:S,Element:N,NodeFilter:H,NamedNodeMap:W=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:B,DOMParser:G,trustedTypes:Y}=n,q=N.prototype,$=R(q,"cloneNode"),K=R(q,"remove"),ie=R(q,"nextSibling"),ae=R(q,"childNodes"),ce=R(q,"parentNode");if("function"==typeof _){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let se,ue="";const{implementation:le,createNodeIterator:fe,createDocumentFragment:me,getElementsByTagName:de}=o,{importNode:pe}=a;let he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof e&&"function"==typeof ce&&le&&void 0!==le.createHTMLDocument;const{MUSTACHE_EXPR:ge,ERB_EXPR:ye,TMPLIT_EXPR:ve,DATA_ATTR:be,ARIA_ATTR:Te,IS_SCRIPT_OR_DATA:we,ATTR_WHITESPACE:Ae,CUSTOM_ELEMENT:Ee}=Z;let{IS_ALLOWED_URI:_e}=Z,Se=null;const xe=x({},[...M,...L,...P,...k,...D]);let Ne=null;const Oe=x({},[...U,...j,...F,...z]);let Re=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Me=null,Le=null,Pe=!0,Ie=!0,ke=!1,Ce=!0,De=!1,Ue=!0,je=!1,Fe=!1,ze=!1,He=!1,We=!1,Be=!1,Ge=!0,Ye=!1;const Xe="user-content-";let qe=!0,$e=!1,Ve={},Ke=null;const Ze=x({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Je=null;const Qe=x({},["audio","video","img","source","image","track"]);let et=null;const tt=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml";let it=ot,at=!1,ct=null;const st=x({},[nt,rt,ot],g);let ut=x({},["mi","mo","mn","ms","mtext"]),lt=x({},["annotation-xml"]);const ft=x({},["title","style","font","a","script"]);let mt=null;const dt=["application/xhtml+xml","text/html"],pt="text/html";let ht=null,gt=null;const yt=o.createElement("form"),vt=function(e){return e instanceof RegExp||e instanceof Function},bt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!gt||gt!==e){if(e&&"object"==typeof e||(e={}),e=O(e),mt=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?pt:e.PARSER_MEDIA_TYPE,ht="application/xhtml+xml"===mt?g:h,Se=w(e,"ALLOWED_TAGS")?x({},e.ALLOWED_TAGS,ht):xe,Ne=w(e,"ALLOWED_ATTR")?x({},e.ALLOWED_ATTR,ht):Oe,ct=w(e,"ALLOWED_NAMESPACES")?x({},e.ALLOWED_NAMESPACES,g):st,et=w(e,"ADD_URI_SAFE_ATTR")?x(O(tt),e.ADD_URI_SAFE_ATTR,ht):tt,Je=w(e,"ADD_DATA_URI_TAGS")?x(O(Qe),e.ADD_DATA_URI_TAGS,ht):Qe,Ke=w(e,"FORBID_CONTENTS")?x({},e.FORBID_CONTENTS,ht):Ze,Me=w(e,"FORBID_TAGS")?x({},e.FORBID_TAGS,ht):{},Le=w(e,"FORBID_ATTR")?x({},e.FORBID_ATTR,ht):{},Ve=!!w(e,"USE_PROFILES")&&e.USE_PROFILES,Pe=!1!==e.ALLOW_ARIA_ATTR,Ie=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,De=e.SAFE_FOR_TEMPLATES||!1,Ue=!1!==e.SAFE_FOR_XML,je=e.WHOLE_DOCUMENT||!1,He=e.RETURN_DOM||!1,We=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,ze=e.FORCE_BODY||!1,Ge=!1!==e.SANITIZE_DOM,Ye=e.SANITIZE_NAMED_PROPS||!1,qe=!1!==e.KEEP_CONTENT,$e=e.IN_PLACE||!1,_e=e.ALLOWED_URI_REGEXP||X,it=e.NAMESPACE||ot,ut=e.MATHML_TEXT_INTEGRATION_POINTS||ut,lt=e.HTML_INTEGRATION_POINTS||lt,Re=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&vt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Re.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&vt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Re.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Re.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Ie=!1),We&&(He=!0),Ve&&(Se=x({},D),Ne=[],!0===Ve.html&&(x(Se,M),x(Ne,U)),!0===Ve.svg&&(x(Se,L),x(Ne,j),x(Ne,z)),!0===Ve.svgFilters&&(x(Se,P),x(Ne,j),x(Ne,z)),!0===Ve.mathMl&&(x(Se,k),x(Ne,F),x(Ne,z))),e.ADD_TAGS&&(Se===xe&&(Se=O(Se)),x(Se,e.ADD_TAGS,ht)),e.ADD_ATTR&&(Ne===Oe&&(Ne=O(Ne)),x(Ne,e.ADD_ATTR,ht)),e.ADD_URI_SAFE_ATTR&&x(et,e.ADD_URI_SAFE_ATTR,ht),e.FORBID_CONTENTS&&(Ke===Ze&&(Ke=O(Ke)),x(Ke,e.FORBID_CONTENTS,ht)),qe&&(Se["#text"]=!0),je&&x(Se,["html","head","body"]),Se.table&&(x(Se,["tbody"]),delete Me.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');se=e.TRUSTED_TYPES_POLICY,ue=se.createHTML("")}else void 0===se&&(se=oe(Y,s)),null!==se&&"string"==typeof ue&&(ue=se.createHTML(""));i&&i(e),gt=e}},Tt=x({},[...L,...P,...I]),wt=x({},[...k,...C]),At=function(e){let t=ce(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});const n=h(e.tagName),r=h(t.tagName);return!!ct[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===ot?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===r||ut[r]):Boolean(Tt[n]):e.namespaceURI===nt?t.namespaceURI===ot?"math"===n:t.namespaceURI===rt?"math"===n&&lt[r]:Boolean(wt[n]):e.namespaceURI===ot?!(t.namespaceURI===rt&&!lt[r])&&!(t.namespaceURI===nt&&!ut[r])&&!wt[n]&&(ft[n]||!Tt[n]):!("application/xhtml+xml"!==mt||!ct[e.namespaceURI]))},Et=function(e){d(r.removed,{element:e});try{ce(e).removeChild(e)}catch(t){K(e)}},_t=function(e,t){try{d(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(He||We)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},St=function(e){let t=null,n=null;if(ze)e="<remove></remove>"+e;else{const t=y(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===mt&&it===ot&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=se?se.createHTML(e):e;if(it===ot)try{t=(new G).parseFromString(r,mt)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(it,"template",null);try{t.documentElement.innerHTML=at?ue:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),it===ot?de.call(t,je?"html":"body")[0]:je?t.documentElement:i},xt=function(e){return fe.call(e.ownerDocument||e,e,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT|H.SHOW_PROCESSING_INSTRUCTION|H.SHOW_CDATA_SECTION,null)},Nt=function(e){return e instanceof B&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof W)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ot=function(e){return"function"==typeof S&&e instanceof S};function Rt(e,t,n){l(e,e=>{e.call(r,t,n,gt)})}const Mt=function(e){let t=null;if(Rt(he.beforeSanitizeElements,e,null),Nt(e))return Et(e),!0;const n=ht(e.nodeName);if(Rt(he.uponSanitizeElement,e,{tagName:n,allowedTags:Se}),e.hasChildNodes()&&!Ot(e.firstElementChild)&&A(/<[/\w!]/g,e.innerHTML)&&A(/<[/\w!]/g,e.textContent))return Et(e),!0;if(e.nodeType===ee)return Et(e),!0;if(Ue&&e.nodeType===te&&A(/<[/\w]/g,e.data))return Et(e),!0;if(!Se[n]||Me[n]){if(!Me[n]&&Pt(n)){if(Re.tagNameCheck instanceof RegExp&&A(Re.tagNameCheck,n))return!1;if(Re.tagNameCheck instanceof Function&&Re.tagNameCheck(n))return!1}if(qe&&!Ke[n]){const t=ce(e)||e.parentNode,n=ae(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=$(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,ie(e))}}return Et(e),!0}return e instanceof N&&!At(e)?(Et(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!A(/<\/no(script|embed|frames)/i,e.innerHTML)?(De&&e.nodeType===Q&&(t=e.textContent,l([ge,ye,ve],e=>{t=v(t,e," ")}),e.textContent!==t&&(d(r.removed,{element:e.cloneNode()}),e.textContent=t)),Rt(he.afterSanitizeElements,e,null),!1):(Et(e),!0)},Lt=function(e,t,n){if(Ge&&("id"===t||"name"===t)&&(n in o||n in yt))return!1;if(Ie&&!Le[t]&&A(be,t));else if(Pe&&A(Te,t));else if(!Ne[t]||Le[t]){if(!(Pt(e)&&(Re.tagNameCheck instanceof RegExp&&A(Re.tagNameCheck,e)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(e))&&(Re.attributeNameCheck instanceof RegExp&&A(Re.attributeNameCheck,t)||Re.attributeNameCheck instanceof Function&&Re.attributeNameCheck(t))||"is"===t&&Re.allowCustomizedBuiltInElements&&(Re.tagNameCheck instanceof RegExp&&A(Re.tagNameCheck,n)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(n))))return!1}else if(et[t]);else if(A(_e,v(n,Ae,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!Je[e])if(ke&&!A(we,v(n,Ae,"")));else if(n)return!1;return!0},Pt=function(e){return"annotation-xml"!==e&&y(e,Ee)},It=function(e){Rt(he.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Nt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:c,value:s}=i,u=ht(a);let f="value"===a?s:T(s);if(n.attrName=u,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,Rt(he.uponSanitizeAttribute,e,n),f=n.attrValue,!Ye||"id"!==u&&"name"!==u||(_t(a,e),f=Xe+f),Ue&&A(/((--!?|])>)|<\/(style|title)/i,f)){_t(a,e);continue}if(n.forceKeepAttr)continue;if(_t(a,e),!n.keepAttr)continue;if(!Ce&&A(/\/>/i,f)){_t(a,e);continue}De&&l([ge,ye,ve],e=>{f=v(f,e," ")});const d=ht(e.nodeName);if(Lt(d,u,f)){if(se&&"object"==typeof Y&&"function"==typeof Y.getAttributeType)if(c);else switch(Y.getAttributeType(d,u)){case"TrustedHTML":f=se.createHTML(f);break;case"TrustedScriptURL":f=se.createScriptURL(f)}try{c?e.setAttributeNS(c,a,f):e.setAttribute(a,f),Nt(e)?Et(e):m(r.removed)}catch(e){}}}Rt(he.afterSanitizeAttributes,e,null)},kt=function e(t){let n=null;const r=xt(t);for(Rt(he.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Rt(he.uponSanitizeShadowNode,n,null),Mt(n),It(n),n.content instanceof u&&e(n.content);Rt(he.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,c=null;if(at=!e,at&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ot(e)){if("function"!=typeof e.toString)throw E("toString is not a function");if("string"!=typeof(e=e.toString()))throw E("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Fe||bt(t),r.removed=[],"string"==typeof e&&($e=!1),$e){if(e.nodeName){const t=ht(e.nodeName);if(!Se[t]||Me[t])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof S)n=St("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===J&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!He&&!De&&!je&&-1===e.indexOf("<"))return se&&Be?se.createHTML(e):e;if(n=St(e),!n)return He?null:Be?ue:""}n&&ze&&Et(n.firstChild);const s=xt($e?e:n);for(;i=s.nextNode();)Mt(i),It(i),i.content instanceof u&&kt(i.content);if($e)return e;if(He){if(We)for(c=me.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(Ne.shadowroot||Ne.shadowrootmode)&&(c=pe.call(a,c,!0)),c}let f=je?n.outerHTML:n.innerHTML;return je&&Se["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&A(V,n.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+f),De&&l([ge,ye,ve],e=>{f=v(f,e," ")}),se&&Be?se.createHTML(f):f},r.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};bt(e),Fe=!0},r.clearConfig=function(){gt=null,Fe=!1},r.isValidAttribute=function(e,t,n){gt||bt({});const r=ht(e),o=ht(t);return Lt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&d(he[e],t)},r.removeHook=function(e,t){if(void 0!==t){const n=f(he[e],t);return-1===n?void 0:p(he[e],n,1)[0]}return m(he[e])},r.removeHooks=function(e){he[e]=[]},r.removeAllHooks=function(){he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}()}()},function(e,t,n){e.exports=n(8)},function(e,t,n){"use strict";(function(e,t){function r(e){return(r="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)}!function(e){e.createPromiseCapability=function(){var e={};return e.promise=new w((function(t,n){e.resolve=t,e.reject=n})),e};var o=e.Promise,i=o&&"resolve"in o&&"reject"in o&&"all"in o&&"race"in o&&function(){var e;return new o((function(t){e=t})),"function"==typeof e}();"undefined"!=typeof exports&&exports?(exports.Promise=i?o:w,exports.Polyfill=w):"function"==typeof define&&n(7)?define((function(){return i?o:w})):i||(e.Promise=w);var a=function(){};function c(e){return"[object Array]"===Object.prototype.toString.call(e)}var s,u=void 0!==t?t:setTimeout,l=[];function f(){for(var e=0;e<l.length;e++)l[e][0](l[e][1]);l=[],s=!1}function m(e,t){l.push([e,t]),s||(s=!0,u(f,0))}function d(e){var t=e.owner,n=t.state_,r=t.data_,o=e[n],i=e.then;if("function"==typeof o){n="fulfilled";try{r=o(r)}catch(e){y(i,e)}}p(i,r)||("fulfilled"===n&&h(i,r),"rejected"===n&&y(i,r))}function p(e,t){var n;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"===r(t))){var o=t.then;if("function"==typeof o)return o.call(t,(function(r){n||(n=!0,t!==r?h(e,r):g(e,r))}),(function(t){n||(n=!0,y(e,t))})),!0}}catch(t){return n||y(e,t),!0}return!1}function h(e,t){e!==t&&p(e,t)||g(e,t)}function g(e,t){"pending"===e.state_&&(e.state_="sealed",e.data_=t,m(b,e))}function y(e,t){"pending"===e.state_&&(e.state_="sealed",e.data_=t,m(T,e))}function v(e){var t=e.then_;e.then_=void 0;for(var n=0;n<t.length;n++)d(t[n])}function b(e){e.state_="fulfilled",v(e)}function T(e){e.state_="rejected",v(e)}function w(e){if("function"!=typeof e)throw new TypeError("Promise constructor takes a function argument");if(!(this instanceof w))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[],function(e,t){function n(e){y(t,e)}try{e((function(e){h(t,e)}),n)}catch(e){n(e)}}(e,this)}w.prototype={constructor:w,state_:"pending",then_:null,data_:void 0,then:function(e,t){var n={owner:this,then:new this.constructor(a),fulfilled:e,rejected:t};return"fulfilled"===this.state_||"rejected"===this.state_?m(d,n):this.then_.push(n),n.then},catch:function(e){return this.then(null,e)}},w.all=function(e){if(!c(e))throw new TypeError("You must pass an array to Promise.all().");return new this((function(t,n){var r=[],o=0;function i(e){return o++,function(n){r[e]=n,--o||t(r)}}for(var a,c=0;c<e.length;c++)(a=e[c])&&"function"==typeof a.then?a.then(i(c),n):r[c]=a;o||t(r)}))},w.race=function(e){if(!c(e))throw new TypeError("You must pass an array to Promise.race().");return new this((function(t,n){for(var r,o=0;o<e.length;o++)(r=e[o])&&"function"==typeof r.then?r.then(t,n):t(r)}))},w.resolve=function(e){return e&&"object"===r(e)&&e.constructor===this?e:new this((function(t){t(e)}))},w.reject=function(e){return new this((function(t,n){n(e)}))}}("undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:void 0)}).call(this,n(0),n(4).setImmediate)},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(5),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,c,s=1,u={},l=!1,f=e.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(e);m=m&&m.setTimeout?m:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",c=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",c,!1):e.attachEvent("onmessage",c),r=function(t){e.postMessage(a+t,"*")}),m.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return u[s]=o,r(s),s++},m.clearImmediate=d}function d(e){delete u[e]}function p(e){if(l)setTimeout(p,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(0),n(6))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],l=!1,f=-1;function m(){l&&s&&(l=!1,s.length?u=s.concat(u):f=-1,u.length&&d())}function d(){if(!l){var e=c(m);l=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||c(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";n.r(t);n(3),function(e){void 0===e.crypto&&(e.crypto={getRandomValues:function(e){for(var t=0;t<e.length;t++)e[t]=256*Math.random()}})}("undefined"==typeof window?self:window),console.log,console.warn,console.error;var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var a={flattenedResources:!1,CANVAS_CACHE_SIZE:void 0,maxPagesBefore:void 0,maxPagesAhead:void 0,disableLogs:!1,wvsQueryParameters:{},_trnDebugMode:!1,_logFiltersEnabled:null},c=function(e){return a[e]},s=function(e,t){c("disableLogs")||(t?console.warn("".concat(e,": ").concat(t)):console.warn(e))};function u(e,t,n){return new Promise((function(r){if(!e)return r();var o=n.document.createElement("script");o.type="text/javascript",o.onload=function(){r()},o.onerror=function(){t&&s(t),r()},o.src=e,n.document.getElementsByTagName("head")[0].appendChild(o)}))}var l,f=function(e){if("string"==typeof e){for(var t=new Uint8Array(e.length),n=e.length,r=0;r<n;r++)t[r]=e.charCodeAt(r);return t}return e},m=function(e){if("string"!=typeof e){for(var t="",n=0,r=e.length,o=void 0;n<r;)o=e.subarray(n,n+1024),n+=1024,t+=String.fromCharCode.apply(null,o);return t}return e},d=n(1),p=n.n(d),h=new Map,g=function(){return("undefined"==typeof window?self:window).trustedTypes},y=function(e,t){var n,o={createHTML:function(e){return p.a.sanitize(e,r({},t))},createScript:function(e){return e},createScriptURL:function(e){return e}};if(null===(n=g())||void 0===n?void 0:n.createPolicy){var i="".concat(e,"-po");h.has(e)||(o=function(e){return g().createPolicy(e,{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}(i),h.set(i,o),o=function(e,t){return g().createPolicy(e,{createHTML:function(e){return p.a.sanitize(e,r(r({},t),{RETURN_TRUSTED_TYPE:!1}))},createScript:function(e){return e},createScriptURL:function(e){return e}})}(e,t),h.set(e,o));var a=t.createPolicyOnly?i:e;o=h.get(a)}return o},v=function(e,t){return void 0===t&&(t={createPolicyOnly:!0,trustedTypesPolicyName:"webviewer"}),y(t.trustedTypesPolicyName,t).createScriptURL(e.toString())},b="undefined"==typeof window?self:window,T=b.importScripts,w=!1,A=function(e,t){w||(T(v("".concat(b.basePath,"decode.min.js"))),w=!0);var n=f(e),r=self.BrotliDecode(n);return t?r:m(r)},E=function(e,t){return o(void 0,void 0,Promise,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return w?[3,2]:[4,u("".concat(self.Core.getWorkerPath(),"external/decode.min.js"),"Failed to download decode.min.js",window)];case 1:r.sent(),w=!0,r.label=2;case 2:return n=self.BrotliDecode(f(e)),[2,t?n:m(n)]}}))}))},_=(function(){function e(){this.remainingDataArrays=[]}e.prototype.processRaw=function(e){return e},e.prototype.processBrotli=function(e){return this.remainingDataArrays.push(e),null},e.prototype.GetNextChunk=function(e){return this.decodeFunction||(0===e[0]&&97===e[1]&&115===e[2]&&109===e[3]?this.decodeFunction=this.processRaw:this.decodeFunction=this.processBrotli),this.decodeFunction(e)},e.prototype.End=function(){if(this.remainingDataArrays.length){for(var e=this.arrays,t=0,n=0;n<e.length;++n)t+=e[n].length;var r=new Uint8Array(t),o=0;for(n=0;n<e.length;++n){var i=e[n];r.set(i,o),o+=i.length}return A(r,!0)}return null}}(),function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var r=new XMLHttpRequest;r.open("GET",e,t);var o=n&&r.overrideMimeType;return r.responseType=o?"text":"arraybuffer",o&&r.overrideMimeType("text/plain; charset=x-user-defined"),r}),S=function(e,t){var n=t.decompressFunction,r=t.shouldOutputArray,o=t.compressedMaximum,i=void 0!==T?Date.now():null;try{var a=r?O(e):R(e);return"Result length is ".concat(a.length),a.length<o?a=x(a,n,r):r||(a=m(a)),T&&N(t.paths,i),a}catch(e){throw new Error("Failed to decompress: ".concat(e))}},x=function(e,t,n){var r=t(e,n);return s("There may be some degradation of performance. Your server has not been configured to serve .gz. and .br. files with the expected Content-Encoding. See https://docs.apryse.com/documentation/web/faq/content-encoding/ for instructions on how to resolve this."),T&&"Decompressed length is ".concat(r.length),r},N=function(e,t){var n=e.join(", ");"".concat(n," Decompression took ").concat(Date.now()-t," ms")},O=function(e){var t=e.reduce((function(e,t){var n=new Uint8Array(t);return e.concat(Array.from(n))}),[]);return new Uint8Array(t)},R=function(e){return e.join("")},M=function(e){var t,n=!e.shouldOutputArray,r=e.paths,o=e.isAsync;if(o)t=Promise.all(r.map((function(e){return function(e,t,n){return new Promise((function(r,o){var i=_(e,t,n);i.send(),i.onload=function(){200===this.status||0===this.status?r(i.response):o(new Error("Download Failed ".concat(e)))},i.onerror=function(){o(new Error("Network error occurred ".concat(e)))}}))}(e,o,n)}))).then((function(t){return S(t,e)})).catch((function(e){throw new Error("Failed to fetch or decompress files: ".concat(e.message))}));else{var i=r.map((function(e){var t=_(e,o,n);if(t.send(),200===t.status||0===t.status)return t.response;throw new Error("Failed to load ".concat(e))}));t=S(i,e)}return t},L=function(e){var t=e.lastIndexOf("/");-1===t&&(t=0);var n=e.slice(t).replace(".",".br.");return T||(n.endsWith(".js.mem")?n=n.replace(".js.mem",".mem"):n.endsWith(".js")&&(n=n.concat(".mem"))),e.slice(0,t)+n},P=function(e,t){return t.decompressFunction=T?A:E,t.paths=e.map((function(e){return L(e)})),M(t)},I=function(e,t,n,r){return e.catch((function(e){return s(e),r(t,n)}))},k=function(e,t,n,r){return function(e,t,n){if(n.isAsync){for(var r=t[0](e,n),o=1;o<t.length;++o)r=I(r,e,n,t[o]);return r}for(var i=0,a=t;i<a.length;i++){var c=a[i];try{return c(e,n)}catch(e){s(e.message)}}throw new Error("None of the worker files were able to load. ")}(Array.isArray(e)?e:[e],[P],{compressedMaximum:t,isAsync:n,shouldOutputArray:r})};function C(e,t,n,r){return function e(t,n,r,o,i,a,c){if(a=a||Date.now(),i&&!o)return fetch(L(t)).then((function(e){return WebAssembly.instantiateStreaming(e,n)})).catch((function(i){return"instantiateStreaming Failed ".concat(t," message ").concat(i.message),e(t,n,r,o,!1,a,c)}));var s=o?o.map((function(e,t){return"".concat(e,"PDFNetCWasm-chunk-").concat(t,".wasm")})):t;return k(s,r,!0,!0).then((function(e){return c=Date.now(),"Request took ".concat(c-a," ms"),WebAssembly.instantiate(e,n)}))}(e,t,n,r,!!WebAssembly.instantiateStreaming,void 0,void 0).then((function(e){return"WASM compilation took ".concat(Date.now()-void 0," ms"),e}))}var D,U,j,F,z,H="undefined"==typeof window?self:window,W=(D=navigator.userAgent.toLowerCase(),(U=/(msie) ([\w.]+)/.exec(D)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(D))?parseInt(U[2],10):U),B=(j=H.navigator.userAgent.match(/OPR/),F=H.navigator.userAgent.match(/Maxthon/),z=H.navigator.userAgent.match(/Edge/),H.navigator.userAgent.match(/Chrome\/(.*?) /)&&!j&&!F&&!z),G=(function(){if(!B)return null;var e=H.navigator.userAgent.match(/Chrome\/([0-9]+)\./);e&&parseInt(e[1],10)}(),!!navigator.userAgent.match(/Edge/i)||navigator.userAgent.match(/Edg\/(.*?)/)&&H.navigator.userAgent.match(/Chrome\/(.*?) /)),Y=(function(){if(!G)return null;var e=H.navigator.userAgent.match(/Edg\/([0-9]+)\./);e&&parseInt(e[1],10)}(),/iPad|iPhone|iPod/.test(H.navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/iPad|iPhone|iPod/.test(H.navigator.userAgent)),X=function(){var e=H.navigator.userAgent.match(/.*\/([0-9\.]+)\s(Safari|Mobile).*/i);return e?parseFloat(e[1]):e}(),q=/^((?!chrome|android).)*safari/i.test(H.navigator.userAgent)||/^((?!chrome|android).)*$/.test(H.navigator.userAgent)&&Y,$=(q&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&parseInt(null===(l=navigator.userAgent.match(/Version\/(\d+)/))||void 0===l?void 0:l[1],10),H.navigator.userAgent.match(/Firefox/)),V=(function(){if(!$)return null;var e=H.navigator.userAgent.match(/Firefox\/([0-9]+)\./);e&&parseInt(e[1],10)}(),W||/Android|webOS|Touch|IEMobile|Silk/i.test(navigator.userAgent),navigator.userAgent.match(/(iPad|iPhone|iPod)/i),H.navigator.userAgent.indexOf("Android"),/Mac OS X 10_13_6.*\(KHTML, like Gecko\)$/.test(H.navigator.userAgent)),K=!!H.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)&&parseInt(H.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)[3],10)>=14,Z=!(!self.WebAssembly||!self.WebAssembly.validate),J=H.navigator.userAgent.indexOf("Edge/16")>-1||H.navigator.userAgent.indexOf("MSAppHost")>-1,Q=function(){return Z&&!J&&!(!K&&(q&&X<14||V))};var ee=function(){function e(e){var t=this;this.promise=e.then((function(e){t.response=e,t.status=200}))}return e.prototype.addEventListener=function(e,t){this.promise.then(t)},e}();function te(e){return(te="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)}var ne=null;!function(e){var t,n,r,o,i=[];function a(e){i||(i=[]),i.push(e)}var c=function(){e.basePath="../";var a,c,s=e.legacyOfficeWorkerPath||"";function u(e){var t=function(e){var t=[];return{resource_array:t,msg:JSON.stringify(e.data,(function(e,n){if("object"===te(n)){var i=null;if(n instanceof Uint8Array?i=n:n instanceof ArrayBuffer&&(i=new Uint8Array(n)),i){var a=r(i.length),c=o(a);if(c)new Uint8Array(Module.HEAPU8.buffer,c,i.length).set(i);return t.push(a),{__trn_res_id:a}}}return n}))}}(e);n(t.msg)}e.workerBasePath&&(e.basePath=e.workerBasePath),e.externalPath?e.basePath=e.externalPath:e.basePath+="external/",importScripts("".concat(e.basePath,"Promise.js")),e.ContinueFunc=function(e){t("ContinueFunc called"),setTimeout((function(){onmessage({data:{action:"continue"}})}),e)},e.pdfWorkerPath&&(a=e.pdfWorkerPath),e.officeAsmPath&&(c=e.officeAsmPath),e.Module={memoryInitializerPrefixURL:a,asmjsPrefix:c,onRuntimeInitialized:function(){t||(t=function(){});var e=Date.now()-ne;"time duration from start to ready: ".concat(JSON.stringify(e)),n=function(e){if(null!=e&&0!==e){var t=1+(e.length<<2),n=Module._malloc(t);stringToUTF8(e,n,t)>0&&Module._TRN_OnMessage(n)}},r=function(e){return Module._TRN_CreateBufferResource(e)},o=function(e){return Module._TRN_GetResourcePointer(e)},t("OnReady called"),onmessage=u,Module._TRN_InitWorker();for(var a=0;a<i.length;++a)onmessage(i[a]);i=null},fetchSelf:function(){ne=Date.now(),function(e,t,n,r){var o,i;if(Q()&&!n){if(self.Module.instantiateWasm=function(n,o){return C("".concat(e,"Wasm.wasm"),n,t["Wasm.wasm"],r).then((function(e){o(e.instance)}))},t.disableObjectURLBlobs)return void importScripts("".concat(e,"Wasm.js"));o=k("".concat(e,"Wasm.js.mem"),t["Wasm.js.mem"],!1,!1),i=new Blob([o],{type:"application/javascript"}),importScripts(v(URL.createObjectURL(i)))}else{if(t.disableObjectURLBlobs)return void importScripts("".concat((self.Module.asmjsPrefix?self.Module.asmjsPrefix:"")+e,".js"));o=k("".concat((self.Module.asmjsPrefix?self.Module.asmjsPrefix:"")+e,".js.mem"),t[".js.mem"],!1);var a=k("".concat((self.Module.memoryInitializerPrefixURL?self.Module.memoryInitializerPrefixURL:"")+e,".mem"),t[".mem"],!0,!0);self.Module.memoryInitializerRequest=new ee(a),i=new Blob([o],{type:"application/javascript"}),importScripts(v(URL.createObjectURL(i)))}}("".concat(s,"WebB2XOfficeWorker"),{"Wasm.wasm":5e6,"Wasm.js.mem":1e5,".js.mem":5e6,".mem":3e6,disableObjectURLBlobs:e.disableObjectURLBlobs},!!navigator.userAgent.match(/Edge/i)||e.wasmDisabled)},noExitRuntime:!0}};e.onmessage=function(t){"init"===t.data.action&&(e.wasmDisabled=!t.data.wasm,e.externalPath=t.data.externalPath,e.officeAsmPath=t.data.officeAsmPath,e.pdfWorkerPath=t.data.pdfWorkerPath,e.disableObjectURLBlobs=t.data.disableObjectURLBlobs,e.onmessage=a,c(),e.Module.fetchSelf())}}("undefined"==typeof window?self:window);ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(e,t){if(void 0===e&&(e=0),void 0===t&&(t=this.byteLength),e=Math.floor(e),t=Math.floor(t),e<0&&(e+=this.byteLength),t<0&&(t+=this.byteLength),e=Math.min(Math.max(0,e),this.byteLength),(t=Math.min(Math.max(0,t),this.byteLength))-e<=0)return new ArrayBuffer(0);var n=new ArrayBuffer(t-e),r=new Uint8Array(n),o=new Uint8Array(this,e,t-e);return r.set(o),n})}]);
3
+ e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:c}=Object,{apply:s,construct:u}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),s||(s=function(e,t,n){return e.apply(t,n)}),u||(u=function(e,t){return new e(...t)});const l=S(Array.prototype.forEach),f=S(Array.prototype.lastIndexOf),m=S(Array.prototype.pop),d=S(Array.prototype.push),p=S(Array.prototype.splice),h=S(String.prototype.toLowerCase),g=S(String.prototype.toString),y=S(String.prototype.match),v=S(String.prototype.replace),b=S(String.prototype.indexOf),T=S(String.prototype.trim),w=S(Object.prototype.hasOwnProperty),A=S(RegExp.prototype.test),E=(_=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(_,t)});var _;function S(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return s(e,t,r)}}function x(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let i=r.length;for(;i--;){let t=r[i];if("string"==typeof t){const e=o(t);e!==t&&(n(r)||(r[i]=e),t=e)}e[t]=!0}return e}function N(e){for(let t=0;t<e.length;t++)w(e,t)||(e[t]=null);return e}function O(t){const n=c(null);for(const[r,o]of e(t))w(t,r)&&(Array.isArray(o)?n[r]=N(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=O(o):n[r]=o);return n}function R(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return S(n.get);if("function"==typeof n.value)return S(n.value)}e=r(e)}return function(){return null}}const M=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),P=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),k=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),C=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),D=i(["#text"]),U=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),j=i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),F=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),z=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=a(/<%[\w\W]*|[\w\W]*%>/gm),B=a(/\$\{[\w\W]*/gm),G=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),Y=a(/^aria-[\-\w]+$/),X=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=a(/^(?:\w+script|data):/i),$=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V=a(/^html$/i),K=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z=Object.freeze({__proto__:null,ARIA_ATTR:Y,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:K,DATA_ATTR:G,DOCTYPE_NAME:V,ERB_EXPR:W,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:H,TMPLIT_EXPR:B});const J=1,Q=3,ee=7,te=8,ne=9,re=function(){return"undefined"==typeof window?null:window},oe=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;t&&t.hasAttribute("data-tt-policy-suffix")&&(n=t.getAttribute("data-tt-policy-suffix"));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re();const r=e=>t(e);if(r.version="3.2.5",r.removed=[],!n||!n.document||n.document.nodeType!==ne||!n.Element)return r.isSupported=!1,r;let{document:o}=n;const a=o,s=a.currentScript,{DocumentFragment:u,HTMLTemplateElement:_,Node:S,Element:N,NodeFilter:H,NamedNodeMap:W=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:B,DOMParser:G,trustedTypes:Y}=n,q=N.prototype,$=R(q,"cloneNode"),K=R(q,"remove"),ie=R(q,"nextSibling"),ae=R(q,"childNodes"),ce=R(q,"parentNode");if("function"==typeof _){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let se,ue="";const{implementation:le,createNodeIterator:fe,createDocumentFragment:me,getElementsByTagName:de}=o,{importNode:pe}=a;let he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof e&&"function"==typeof ce&&le&&void 0!==le.createHTMLDocument;const{MUSTACHE_EXPR:ge,ERB_EXPR:ye,TMPLIT_EXPR:ve,DATA_ATTR:be,ARIA_ATTR:Te,IS_SCRIPT_OR_DATA:we,ATTR_WHITESPACE:Ae,CUSTOM_ELEMENT:Ee}=Z;let{IS_ALLOWED_URI:_e}=Z,Se=null;const xe=x({},[...M,...L,...P,...k,...D]);let Ne=null;const Oe=x({},[...U,...j,...F,...z]);let Re=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Me=null,Le=null,Pe=!0,Ie=!0,ke=!1,Ce=!0,De=!1,Ue=!0,je=!1,Fe=!1,ze=!1,He=!1,We=!1,Be=!1,Ge=!0,Ye=!1;const Xe="user-content-";let qe=!0,$e=!1,Ve={},Ke=null;const Ze=x({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Je=null;const Qe=x({},["audio","video","img","source","image","track"]);let et=null;const tt=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml";let it=ot,at=!1,ct=null;const st=x({},[nt,rt,ot],g);let ut=x({},["mi","mo","mn","ms","mtext"]),lt=x({},["annotation-xml"]);const ft=x({},["title","style","font","a","script"]);let mt=null;const dt=["application/xhtml+xml","text/html"],pt="text/html";let ht=null,gt=null;const yt=o.createElement("form"),vt=function(e){return e instanceof RegExp||e instanceof Function},bt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!gt||gt!==e){if(e&&"object"==typeof e||(e={}),e=O(e),mt=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?pt:e.PARSER_MEDIA_TYPE,ht="application/xhtml+xml"===mt?g:h,Se=w(e,"ALLOWED_TAGS")?x({},e.ALLOWED_TAGS,ht):xe,Ne=w(e,"ALLOWED_ATTR")?x({},e.ALLOWED_ATTR,ht):Oe,ct=w(e,"ALLOWED_NAMESPACES")?x({},e.ALLOWED_NAMESPACES,g):st,et=w(e,"ADD_URI_SAFE_ATTR")?x(O(tt),e.ADD_URI_SAFE_ATTR,ht):tt,Je=w(e,"ADD_DATA_URI_TAGS")?x(O(Qe),e.ADD_DATA_URI_TAGS,ht):Qe,Ke=w(e,"FORBID_CONTENTS")?x({},e.FORBID_CONTENTS,ht):Ze,Me=w(e,"FORBID_TAGS")?x({},e.FORBID_TAGS,ht):{},Le=w(e,"FORBID_ATTR")?x({},e.FORBID_ATTR,ht):{},Ve=!!w(e,"USE_PROFILES")&&e.USE_PROFILES,Pe=!1!==e.ALLOW_ARIA_ATTR,Ie=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,De=e.SAFE_FOR_TEMPLATES||!1,Ue=!1!==e.SAFE_FOR_XML,je=e.WHOLE_DOCUMENT||!1,He=e.RETURN_DOM||!1,We=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,ze=e.FORCE_BODY||!1,Ge=!1!==e.SANITIZE_DOM,Ye=e.SANITIZE_NAMED_PROPS||!1,qe=!1!==e.KEEP_CONTENT,$e=e.IN_PLACE||!1,_e=e.ALLOWED_URI_REGEXP||X,it=e.NAMESPACE||ot,ut=e.MATHML_TEXT_INTEGRATION_POINTS||ut,lt=e.HTML_INTEGRATION_POINTS||lt,Re=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&vt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Re.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&vt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Re.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Re.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Ie=!1),We&&(He=!0),Ve&&(Se=x({},D),Ne=[],!0===Ve.html&&(x(Se,M),x(Ne,U)),!0===Ve.svg&&(x(Se,L),x(Ne,j),x(Ne,z)),!0===Ve.svgFilters&&(x(Se,P),x(Ne,j),x(Ne,z)),!0===Ve.mathMl&&(x(Se,k),x(Ne,F),x(Ne,z))),e.ADD_TAGS&&(Se===xe&&(Se=O(Se)),x(Se,e.ADD_TAGS,ht)),e.ADD_ATTR&&(Ne===Oe&&(Ne=O(Ne)),x(Ne,e.ADD_ATTR,ht)),e.ADD_URI_SAFE_ATTR&&x(et,e.ADD_URI_SAFE_ATTR,ht),e.FORBID_CONTENTS&&(Ke===Ze&&(Ke=O(Ke)),x(Ke,e.FORBID_CONTENTS,ht)),qe&&(Se["#text"]=!0),je&&x(Se,["html","head","body"]),Se.table&&(x(Se,["tbody"]),delete Me.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');se=e.TRUSTED_TYPES_POLICY,ue=se.createHTML("")}else void 0===se&&(se=oe(Y,s)),null!==se&&"string"==typeof ue&&(ue=se.createHTML(""));i&&i(e),gt=e}},Tt=x({},[...L,...P,...I]),wt=x({},[...k,...C]),At=function(e){let t=ce(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});const n=h(e.tagName),r=h(t.tagName);return!!ct[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===ot?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===r||ut[r]):Boolean(Tt[n]):e.namespaceURI===nt?t.namespaceURI===ot?"math"===n:t.namespaceURI===rt?"math"===n&&lt[r]:Boolean(wt[n]):e.namespaceURI===ot?!(t.namespaceURI===rt&&!lt[r])&&!(t.namespaceURI===nt&&!ut[r])&&!wt[n]&&(ft[n]||!Tt[n]):!("application/xhtml+xml"!==mt||!ct[e.namespaceURI]))},Et=function(e){d(r.removed,{element:e});try{ce(e).removeChild(e)}catch(t){K(e)}},_t=function(e,t){try{d(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(He||We)try{Et(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},St=function(e){let t=null,n=null;if(ze)e="<remove></remove>"+e;else{const t=y(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===mt&&it===ot&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=se?se.createHTML(e):e;if(it===ot)try{t=(new G).parseFromString(r,mt)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(it,"template",null);try{t.documentElement.innerHTML=at?ue:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),it===ot?de.call(t,je?"html":"body")[0]:je?t.documentElement:i},xt=function(e){return fe.call(e.ownerDocument||e,e,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT|H.SHOW_PROCESSING_INSTRUCTION|H.SHOW_CDATA_SECTION,null)},Nt=function(e){return e instanceof B&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof W)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ot=function(e){return"function"==typeof S&&e instanceof S};function Rt(e,t,n){l(e,e=>{e.call(r,t,n,gt)})}const Mt=function(e){let t=null;if(Rt(he.beforeSanitizeElements,e,null),Nt(e))return Et(e),!0;const n=ht(e.nodeName);if(Rt(he.uponSanitizeElement,e,{tagName:n,allowedTags:Se}),e.hasChildNodes()&&!Ot(e.firstElementChild)&&A(/<[/\w!]/g,e.innerHTML)&&A(/<[/\w!]/g,e.textContent))return Et(e),!0;if(e.nodeType===ee)return Et(e),!0;if(Ue&&e.nodeType===te&&A(/<[/\w]/g,e.data))return Et(e),!0;if(!Se[n]||Me[n]){if(!Me[n]&&Pt(n)){if(Re.tagNameCheck instanceof RegExp&&A(Re.tagNameCheck,n))return!1;if(Re.tagNameCheck instanceof Function&&Re.tagNameCheck(n))return!1}if(qe&&!Ke[n]){const t=ce(e)||e.parentNode,n=ae(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=$(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,ie(e))}}return Et(e),!0}return e instanceof N&&!At(e)?(Et(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!A(/<\/no(script|embed|frames)/i,e.innerHTML)?(De&&e.nodeType===Q&&(t=e.textContent,l([ge,ye,ve],e=>{t=v(t,e," ")}),e.textContent!==t&&(d(r.removed,{element:e.cloneNode()}),e.textContent=t)),Rt(he.afterSanitizeElements,e,null),!1):(Et(e),!0)},Lt=function(e,t,n){if(Ge&&("id"===t||"name"===t)&&(n in o||n in yt))return!1;if(Ie&&!Le[t]&&A(be,t));else if(Pe&&A(Te,t));else if(!Ne[t]||Le[t]){if(!(Pt(e)&&(Re.tagNameCheck instanceof RegExp&&A(Re.tagNameCheck,e)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(e))&&(Re.attributeNameCheck instanceof RegExp&&A(Re.attributeNameCheck,t)||Re.attributeNameCheck instanceof Function&&Re.attributeNameCheck(t))||"is"===t&&Re.allowCustomizedBuiltInElements&&(Re.tagNameCheck instanceof RegExp&&A(Re.tagNameCheck,n)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(n))))return!1}else if(et[t]);else if(A(_e,v(n,Ae,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!Je[e])if(ke&&!A(we,v(n,Ae,"")));else if(n)return!1;return!0},Pt=function(e){return"annotation-xml"!==e&&y(e,Ee)},It=function(e){Rt(he.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Nt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ne,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:c,value:s}=i,u=ht(a);let f="value"===a?s:T(s);if(n.attrName=u,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,Rt(he.uponSanitizeAttribute,e,n),f=n.attrValue,!Ye||"id"!==u&&"name"!==u||(_t(a,e),f=Xe+f),Ue&&A(/((--!?|])>)|<\/(style|title)/i,f)){_t(a,e);continue}if(n.forceKeepAttr)continue;if(_t(a,e),!n.keepAttr)continue;if(!Ce&&A(/\/>/i,f)){_t(a,e);continue}De&&l([ge,ye,ve],e=>{f=v(f,e," ")});const d=ht(e.nodeName);if(Lt(d,u,f)){if(se&&"object"==typeof Y&&"function"==typeof Y.getAttributeType)if(c);else switch(Y.getAttributeType(d,u)){case"TrustedHTML":f=se.createHTML(f);break;case"TrustedScriptURL":f=se.createScriptURL(f)}try{c?e.setAttributeNS(c,a,f):e.setAttribute(a,f),Nt(e)?Et(e):m(r.removed)}catch(e){}}}Rt(he.afterSanitizeAttributes,e,null)},kt=function e(t){let n=null;const r=xt(t);for(Rt(he.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Rt(he.uponSanitizeShadowNode,n,null),Mt(n),It(n),n.content instanceof u&&e(n.content);Rt(he.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,i=null,c=null;if(at=!e,at&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ot(e)){if("function"!=typeof e.toString)throw E("toString is not a function");if("string"!=typeof(e=e.toString()))throw E("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Fe||bt(t),r.removed=[],"string"==typeof e&&($e=!1),$e){if(e.nodeName){const t=ht(e.nodeName);if(!Se[t]||Me[t])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof S)n=St("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===J&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!He&&!De&&!je&&-1===e.indexOf("<"))return se&&Be?se.createHTML(e):e;if(n=St(e),!n)return He?null:Be?ue:""}n&&ze&&Et(n.firstChild);const s=xt($e?e:n);for(;i=s.nextNode();)Mt(i),It(i),i.content instanceof u&&kt(i.content);if($e)return e;if(He){if(We)for(c=me.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(Ne.shadowroot||Ne.shadowrootmode)&&(c=pe.call(a,c,!0)),c}let f=je?n.outerHTML:n.innerHTML;return je&&Se["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&A(V,n.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+f),De&&l([ge,ye,ve],e=>{f=v(f,e," ")}),se&&Be?se.createHTML(f):f},r.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};bt(e),Fe=!0},r.clearConfig=function(){gt=null,Fe=!1},r.isValidAttribute=function(e,t,n){gt||bt({});const r=ht(e),o=ht(t);return Lt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&d(he[e],t)},r.removeHook=function(e,t){if(void 0!==t){const n=f(he[e],t);return-1===n?void 0:p(he[e],n,1)[0]}return m(he[e])},r.removeHooks=function(e){he[e]=[]},r.removeAllHooks=function(){he={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}()}()},function(e,t,n){e.exports=n(8)},function(e,t,n){"use strict";(function(e,t){function r(e){return(r="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)}!function(e){e.createPromiseCapability=function(){var e={};return e.promise=new w((function(t,n){e.resolve=t,e.reject=n})),e};var o=e.Promise,i=o&&"resolve"in o&&"reject"in o&&"all"in o&&"race"in o&&function(){var e;return new o((function(t){e=t})),"function"==typeof e}();"undefined"!=typeof exports&&exports?(exports.Promise=i?o:w,exports.Polyfill=w):"function"==typeof define&&n(7)?define((function(){return i?o:w})):i||(e.Promise=w);var a=function(){};function c(e){return"[object Array]"===Object.prototype.toString.call(e)}var s,u=void 0!==t?t:setTimeout,l=[];function f(){for(var e=0;e<l.length;e++)l[e][0](l[e][1]);l=[],s=!1}function m(e,t){l.push([e,t]),s||(s=!0,u(f,0))}function d(e){var t=e.owner,n=t.state_,r=t.data_,o=e[n],i=e.then;if("function"==typeof o){n="fulfilled";try{r=o(r)}catch(e){y(i,e)}}p(i,r)||("fulfilled"===n&&h(i,r),"rejected"===n&&y(i,r))}function p(e,t){var n;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"===r(t))){var o=t.then;if("function"==typeof o)return o.call(t,(function(r){n||(n=!0,t!==r?h(e,r):g(e,r))}),(function(t){n||(n=!0,y(e,t))})),!0}}catch(t){return n||y(e,t),!0}return!1}function h(e,t){e!==t&&p(e,t)||g(e,t)}function g(e,t){"pending"===e.state_&&(e.state_="sealed",e.data_=t,m(b,e))}function y(e,t){"pending"===e.state_&&(e.state_="sealed",e.data_=t,m(T,e))}function v(e){var t=e.then_;e.then_=void 0;for(var n=0;n<t.length;n++)d(t[n])}function b(e){e.state_="fulfilled",v(e)}function T(e){e.state_="rejected",v(e)}function w(e){if("function"!=typeof e)throw new TypeError("Promise constructor takes a function argument");if(!(this instanceof w))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[],function(e,t){function n(e){y(t,e)}try{e((function(e){h(t,e)}),n)}catch(e){n(e)}}(e,this)}w.prototype={constructor:w,state_:"pending",then_:null,data_:void 0,then:function(e,t){var n={owner:this,then:new this.constructor(a),fulfilled:e,rejected:t};return"fulfilled"===this.state_||"rejected"===this.state_?m(d,n):this.then_.push(n),n.then},catch:function(e){return this.then(null,e)}},w.all=function(e){if(!c(e))throw new TypeError("You must pass an array to Promise.all().");return new this((function(t,n){var r=[],o=0;function i(e){return o++,function(n){r[e]=n,--o||t(r)}}for(var a,c=0;c<e.length;c++)(a=e[c])&&"function"==typeof a.then?a.then(i(c),n):r[c]=a;o||t(r)}))},w.race=function(e){if(!c(e))throw new TypeError("You must pass an array to Promise.race().");return new this((function(t,n){for(var r,o=0;o<e.length;o++)(r=e[o])&&"function"==typeof r.then?r.then(t,n):t(r)}))},w.resolve=function(e){return e&&"object"===r(e)&&e.constructor===this?e:new this((function(t){t(e)}))},w.reject=function(e){return new this((function(t,n){n(e)}))}}("undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:void 0)}).call(this,n(0),n(4).setImmediate)},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(5),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,c,s=1,u={},l=!1,f=e.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(e);m=m&&m.setTimeout?m:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",c=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",c,!1):e.attachEvent("onmessage",c),r=function(t){e.postMessage(a+t,"*")}),m.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return u[s]=o,r(s),s++},m.clearImmediate=d}function d(e){delete u[e]}function p(e){if(l)setTimeout(p,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(0),n(6))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],l=!1,f=-1;function m(){l&&s&&(l=!1,s.length?u=s.concat(u):f=-1,u.length&&d())}function d(){if(!l){var e=c(m);l=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||c(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";n.r(t);n(3),function(e){void 0===e.crypto&&(e.crypto={getRandomValues:function(e){for(var t=0;t<e.length;t++)e[t]=256*Math.random()}})}("undefined"==typeof window?self:window),console.log,console.warn,console.error;var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var a={flattenedResources:!1,CANVAS_CACHE_SIZE:void 0,maxPagesBefore:void 0,maxPagesAhead:void 0,disableLogs:!1,wvsQueryParameters:{},_trnDebugMode:!1,_logFiltersEnabled:null},c=function(e){return a[e]},s=function(e,t){c("disableLogs")||(t?console.warn("".concat(e,": ").concat(t)):console.warn(e))};function u(e,t,n){return new Promise((function(r){if(!e)return r();var o=n.document.createElement("script");o.type="text/javascript",o.onload=function(){r()},o.onerror=function(){t&&s(t),r()},o.src=e,n.document.getElementsByTagName("head")[0].appendChild(o)}))}var l,f=function(e){if("string"==typeof e){for(var t=new Uint8Array(e.length),n=e.length,r=0;r<n;r++)t[r]=e.charCodeAt(r);return t}return e},m=function(e){if("string"!=typeof e){for(var t="",n=0,r=e.length,o=void 0;n<r;)o=e.subarray(n,n+1024),n+=1024,t+=String.fromCharCode.apply(null,o);return t}return e},d=n(1),p=n.n(d),h=new Map,g=function(){return("undefined"==typeof window?self:window).trustedTypes},y=function(e,t){var n,o={createHTML:function(e){return p.a.sanitize(e,r({},t))},createScript:function(e){return e},createScriptURL:function(e){return e}};if(null===(n=g())||void 0===n?void 0:n.createPolicy){var i="".concat(e,"-po");h.has(e)||(o=function(e){return g().createPolicy(e,{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}(i),h.set(i,o),o=function(e,t){return g().createPolicy(e,{createHTML:function(e){return p.a.sanitize(e,r(r({},t),{RETURN_TRUSTED_TYPE:!1}))},createScript:function(e){return e},createScriptURL:function(e){return e}})}(e,t),h.set(e,o));var a=t.createPolicyOnly?i:e;o=h.get(a)}return o},v=function(e,t){return void 0===t&&(t={createPolicyOnly:!0,trustedTypesPolicyName:"webviewer"}),y(t.trustedTypesPolicyName,t).createScriptURL(e.toString())},b="undefined"==typeof window?self:window,T=b.importScripts,w=!1,A=function(e,t){w||(T(v("".concat(b.basePath,"decode.min.js"))),w=!0);var n=f(e),r=self.BrotliDecode(n);return t?r:m(r)},E=function(e,t){return o(void 0,void 0,Promise,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return w?[3,2]:[4,u("".concat(self.Core.getWorkerPath(),"external/decode.min.js"),"Failed to download decode.min.js",window)];case 1:r.sent(),w=!0,r.label=2;case 2:return n=self.BrotliDecode(f(e)),[2,t?n:m(n)]}}))}))},_=(function(){function e(){this.remainingDataArrays=[]}e.prototype.processRaw=function(e){return e},e.prototype.processBrotli=function(e){return this.remainingDataArrays.push(e),null},e.prototype.GetNextChunk=function(e){return this.decodeFunction||(0===e[0]&&97===e[1]&&115===e[2]&&109===e[3]?this.decodeFunction=this.processRaw:this.decodeFunction=this.processBrotli),this.decodeFunction(e)},e.prototype.End=function(){if(this.remainingDataArrays.length){for(var e=this.arrays,t=0,n=0;n<e.length;++n)t+=e[n].length;var r=new Uint8Array(t),o=0;for(n=0;n<e.length;++n){var i=e[n];r.set(i,o),o+=i.length}return A(r,!0)}return null}}(),function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var r=new XMLHttpRequest;r.open("GET",e,t);var o=n&&r.overrideMimeType;return r.responseType=o?"text":"arraybuffer",o&&r.overrideMimeType("text/plain; charset=x-user-defined"),r}),S=function(e,t){var n=t.decompressFunction,r=t.shouldOutputArray,o=t.compressedMaximum,i=void 0!==T?Date.now():null;try{var a=r?O(e):R(e);return"Result length is ".concat(a.length),a.length<o?a=x(a,n,r):r||(a=m(a)),T&&N(t.paths,i),a}catch(e){throw new Error("Failed to decompress: ".concat(e))}},x=function(e,t,n){var r=t(e,n);return s("There may be some degradation of performance. Your server has not been configured to serve .gz. and .br. files with the expected Content-Encoding. See https://docs.apryse.com/documentation/web/faq/content-encoding/ for instructions on how to resolve this."),T&&"Decompressed length is ".concat(r.length),r},N=function(e,t){var n=e.join(", ");"".concat(n," Decompression took ").concat(Date.now()-t," ms")},O=function(e){var t=e.reduce((function(e,t){var n=new Uint8Array(t);return e.concat(Array.from(n))}),[]);return new Uint8Array(t)},R=function(e){return e.join("")},M=function(e){var t,n=!e.shouldOutputArray,r=e.paths,o=e.isAsync;if(o)t=Promise.all(r.map((function(e){return function(e,t,n){return new Promise((function(r,o){var i=_(e,t,n);i.send(),i.onload=function(){200===this.status||0===this.status?r(i.response):o(new Error("Download Failed ".concat(e)))},i.onerror=function(){o(new Error("Network error occurred ".concat(e)))}}))}(e,o,n)}))).then((function(t){return S(t,e)})).catch((function(e){throw new Error("Failed to fetch or decompress files: ".concat(e.message))}));else{var i=r.map((function(e){var t=_(e,o,n);if(t.send(),200===t.status||0===t.status)return t.response;throw new Error("Failed to load ".concat(e))}));t=S(i,e)}return t},L=function(e){var t=e.lastIndexOf("/");-1===t&&(t=0);var n=e.slice(t).replace(".",".br.");return T||(n.endsWith(".js.mem")?n=n.replace(".js.mem",".mem"):n.endsWith(".js")&&(n=n.concat(".mem"))),e.slice(0,t)+n},P=function(e,t){return t.decompressFunction=T?A:E,t.paths=e.map((function(e){return L(e)})),M(t)},I=function(e,t,n,r){return e.catch((function(e){return s(e),r(t,n)}))},k=function(e,t,n,r){return function(e,t,n){if(n.isAsync){for(var r=t[0](e,n),o=1;o<t.length;++o)r=I(r,e,n,t[o]);return r}for(var i=0,a=t;i<a.length;i++){var c=a[i];try{return c(e,n)}catch(e){s(e.message)}}throw new Error("None of the worker files were able to load. ")}(Array.isArray(e)?e:[e],[P],{compressedMaximum:t,isAsync:n,shouldOutputArray:r})};function C(e,t,n,r){return function e(t,n,r,o,i,a,c){if(a=a||Date.now(),i&&!o)return fetch(L(t)).then((function(e){return WebAssembly.instantiateStreaming(e,n)})).catch((function(i){return"instantiateStreaming Failed ".concat(t," message ").concat(i.message),e(t,n,r,o,!1,a,c)}));var s=o?o.map((function(e,t){return"".concat(e,"PDFNetCWasm-chunk-").concat(t,".wasm")})):t;return k(s,r,!0,!0).then((function(e){return c=Date.now(),"Request took ".concat(c-a," ms"),WebAssembly.instantiate(e,n)}))}(e,t,n,r,!!WebAssembly.instantiateStreaming,void 0,void 0).then((function(e){return"WASM compilation took ".concat(Date.now()-void 0," ms"),e}))}var D,U,j,F,z,H="undefined"==typeof window?self:window,W=(D=navigator.userAgent.toLowerCase(),(U=/(msie) ([\w.]+)/.exec(D)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(D))?parseInt(U[2],10):U),B=(j=H.navigator.userAgent.match(/OPR/),F=H.navigator.userAgent.match(/Maxthon/),z=H.navigator.userAgent.match(/Edge/),H.navigator.userAgent.match(/Chrome\/(.*?) /)&&!j&&!F&&!z),G=(function(){if(!B)return null;var e=H.navigator.userAgent.match(/Chrome\/([0-9]+)\./);e&&parseInt(e[1],10)}(),!!navigator.userAgent.match(/Edge/i)||navigator.userAgent.match(/Edg\/(.*?)/)&&H.navigator.userAgent.match(/Chrome\/(.*?) /)),Y=(function(){if(!G)return null;var e=H.navigator.userAgent.match(/Edg\/([0-9]+)\./);e&&parseInt(e[1],10)}(),/iPad|iPhone|iPod/.test(H.navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/iPad|iPhone|iPod/.test(H.navigator.userAgent)),X=function(){var e=H.navigator.userAgent.match(/.*\/([0-9\.]+)\s(Safari|Mobile).*/i);return e?parseFloat(e[1]):e}(),q=/^((?!chrome|android).)*safari/i.test(H.navigator.userAgent)||/^((?!chrome|android).)*$/.test(H.navigator.userAgent)&&Y,$=(q&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&parseInt(null===(l=navigator.userAgent.match(/Version\/(\d+)/))||void 0===l?void 0:l[1],10),H.navigator.userAgent.match(/Firefox/)),V=(function(){if(!$)return null;var e=H.navigator.userAgent.match(/Firefox\/([0-9]+)\./);e&&parseInt(e[1],10)}(),W||/Android|webOS|Touch|IEMobile|Silk/i.test(navigator.userAgent),navigator.userAgent.match(/(iPad|iPhone|iPod)/i),H.navigator.userAgent.indexOf("Android"),/Mac OS X 10_13_6.*\(KHTML, like Gecko\)$/.test(H.navigator.userAgent)),K=!!H.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)&&parseInt(H.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)[3],10)>=14,Z=!(!self.WebAssembly||!self.WebAssembly.validate),J=H.navigator.userAgent.indexOf("Edge/16")>-1||H.navigator.userAgent.indexOf("MSAppHost")>-1,Q=function(){return Z&&!J&&!(!K&&(q&&X<14||V))};var ee=function(){function e(e){var t=this;this.promise=e.then((function(e){t.response=e,t.status=200}))}return e.prototype.addEventListener=function(e,t){this.promise.then(t)},e}();function te(e){return(te="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)}var ne=null;!function(e){var t,n,r,o,i=[];function a(e){i||(i=[]),i.push(e)}var c=function(){e.basePath="../";var a,c,s=e.legacyOfficeWorkerPath||"";function u(e){var t=function(e){var t=[];return{resource_array:t,msg:JSON.stringify(e.data,(function(e,n){if("object"===te(n)){var i=null;if(n instanceof Uint8Array?i=n:n instanceof ArrayBuffer&&(i=new Uint8Array(n)),i){var a=r(i.length),c=o(a);if(c)new Uint8Array(Module.HEAPU8.buffer,c,i.length).set(i);return t.push(a),{__trn_res_id:a}}}return n}))}}(e);n(t.msg)}e.workerBasePath&&(e.basePath=e.workerBasePath),e.externalPath?e.basePath=e.externalPath:e.basePath+="external/",importScripts("".concat(e.basePath,"Promise.js")),e.ContinueFunc=function(e){t("ContinueFunc called"),setTimeout((function(){onmessage({data:{action:"continue"}})}),e)},e.pdfWorkerPath&&(a=e.pdfWorkerPath),e.officeAsmPath&&(c=e.officeAsmPath),e.Module={memoryInitializerPrefixURL:a,asmjsPrefix:c,onRuntimeInitialized:function(){t||(t=function(){});var e=Date.now()-ne;"time duration from start to ready: ".concat(JSON.stringify(e)),n=function(e){if(null!=e&&0!==e){var t=1+(e.length<<2),n=Module._malloc(t);stringToUTF8(e,n,t)>0&&Module._TRN_OnMessage(n)}},r=function(e){return Module._TRN_CreateBufferResource(e)},o=function(e){return Module._TRN_GetResourcePointer(e)},t("OnReady called"),onmessage=u,Module._TRN_InitWorker();for(var a=0;a<i.length;++a)onmessage(i[a]);i=null},fetchSelf:function(){ne=Date.now(),function(e,t,n,r){var o,i;if(Q()&&!n){if(self.Module.instantiateWasm=function(n,o){return C("".concat(e,"Wasm.wasm"),n,t["Wasm.wasm"],r).then((function(e){o(e.instance)}))},t.disableObjectURLBlobs)return void importScripts("".concat(e,"Wasm.js"));o=k("".concat(e,"Wasm.js.mem"),t["Wasm.js.mem"],!1,!1),i=new Blob([o],{type:"application/javascript"}),importScripts(v(URL.createObjectURL(i)))}else{if(t.disableObjectURLBlobs)return void importScripts("".concat((self.Module.asmjsPrefix?self.Module.asmjsPrefix:"")+e,".js"));o=k("".concat((self.Module.asmjsPrefix?self.Module.asmjsPrefix:"")+e,".js.mem"),t[".js.mem"],!1);var a=k("".concat((self.Module.memoryInitializerPrefixURL?self.Module.memoryInitializerPrefixURL:"")+e,".mem"),t[".mem"],!0,!0);self.Module.memoryInitializerRequest=new ee(a),i=new Blob([o],{type:"application/javascript"}),importScripts(v(URL.createObjectURL(i)))}}("".concat(s,"WebB2XOfficeWorker"),{"Wasm.wasm":5e6,"Wasm.js.mem":1e5,".js.mem":5e6,".mem":5e5,disableObjectURLBlobs:e.disableObjectURLBlobs},!!navigator.userAgent.match(/Edge/i)||e.wasmDisabled)},noExitRuntime:!0}};e.onmessage=function(t){"init"===t.data.action&&(e.wasmDisabled=!t.data.wasm,e.externalPath=t.data.externalPath,e.officeAsmPath=t.data.officeAsmPath,e.pdfWorkerPath=t.data.pdfWorkerPath,e.disableObjectURLBlobs=t.data.disableObjectURLBlobs,e.onmessage=a,c(),e.Module.fetchSelf())}}("undefined"==typeof window?self:window);ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(e,t){if(void 0===e&&(e=0),void 0===t&&(t=this.byteLength),e=Math.floor(e),t=Math.floor(t),e<0&&(e+=this.byteLength),t<0&&(t+=this.byteLength),e=Math.min(Math.max(0,e),this.byteLength),(t=Math.min(Math.max(0,t),this.byteLength))-e<=0)return new ArrayBuffer(0);var n=new ArrayBuffer(t-e),r=new Uint8Array(n),o=new Uint8Array(this,e,t-e);return r.set(o),n})}]);