@pdftron/webviewer 11.5.0-20250503 → 11.5.0-20250504
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.
package/package.json
CHANGED
|
@@ -2416,7 +2416,7 @@ la.prototype.UO=function(ja,ia){if(ja.message||ja.Gya){ja.message&&ja.message.me
|
|
|
2416
2416
|
this.yk){var ia=this.yk[ja];delete this.yk[ja];this.pdfnetActiveCommands.has(ja)&&this.pdfnetActiveCommands.delete(ja);ia.reject({type:"Cancelled",message:"Request has been cancelled."});this.postMessage({action:"actionCancel",data:{callbackId:ja}})}else Object(ma.c)("Cannot cancel callback ".concat(ja))};la.prototype.postMessage=function(ja){"officeeditor"!==this.name&&Object(na.a)("enableWorkerLogs")&&Object(ma.g)("PDFWorker","".concat(performance.now()," Sent ").concat(JSON.stringify(ja)));if(this.Mo){var ia=
|
|
2417
2417
|
this.EDa(ja);this.Np.postMessage(ja,ia)}else this.Np.postMessage(ja)};la.prototype.G$=function(ja,ia){var ca=this;null!==ja&&"object"===typeof ja&&(ja instanceof Uint8Array?ia.push(ja.buffer):ja instanceof ArrayBuffer?ia.push(ja):Object.keys(ja).forEach(function(x){ja.hasOwnProperty(x)&&ca.G$(ja[x],ia)}))};la.prototype.EDa=function(ja){var ia=[];this.G$(ja,ia);return 0===ia.length?void 0:ia};la.prototype.fw=function(ja){var ia=this,ca=ja.data;"officeeditor"!==this.name&&Object(na.a)("enableWorkerLogs")&&
|
|
2418
2418
|
Object(ma.g)("PDFWorker","".concat(performance.now()," Received ").concat(JSON.stringify(ca)));var x=this.Ap,y=this.jqa;ja=this.yk;var r=this.pdfnetActiveCommands;if(ca.isReply)x=ca.callbackId,x in ja?(y=ja[x],delete ja[x],r.has(x)&&r.delete(x),"error"in ca?y.reject(ca.error):y.resolve(ca.data)):Object(ma.b)("Cannot resolve callback ".concat(x));else if(ca.action in x){var h=x[ca.action];ca.callbackId?Promise.resolve().then(function(){return h[0].call(h[1],ca.data)}).then(function(e){ia.postMessage({isReply:!0,
|
|
2419
|
-
callbackId:ca.callbackId,data:e})},function(e){ia.UO(e,ca.callbackId)}):h[0].call(h[1],ca.data)}else ca.action in y?(h=y[ca.action],ca.callbackId?h[0].call(h[1],ca).then(function(e){ia.postMessage({isReply:!0,callbackId:ca.callbackId,data:e});ia.CN()},function(e){ia.UO(e,ca.callbackId);ia.CN()}):h[0].call(h[1],ca).then(function(){ia.CN()},function(){ia.CN()})):Object(ma.f)("Unknown action from worker: ".concat(ca.action))};return la}();va.a=ya},function(ya,va,n){function ma(){return"
|
|
2419
|
+
callbackId:ca.callbackId,data:e})},function(e){ia.UO(e,ca.callbackId)}):h[0].call(h[1],ca.data)}else ca.action in y?(h=y[ca.action],ca.callbackId?h[0].call(h[1],ca).then(function(e){ia.postMessage({isReply:!0,callbackId:ca.callbackId,data:e});ia.CN()},function(e){ia.UO(e,ca.callbackId);ia.CN()}):h[0].call(h[1],ca).then(function(){ia.CN()},function(){ia.CN()})):Object(ma.f)("Unknown action from worker: ".concat(ca.action))};return la}();va.a=ya},function(ya,va,n){function ma(){return"NS80LzIwMjV8NWIzMGZiOWM0"}
|
|
2420
2420
|
function na(){return"11.5.0"}n.d(va,"b",function(){return na});n.d(va,"a",function(){return ma})},function(ya,va){va.a=function(){return function(n,ma,na,la,ja,ia){this.jR=n;this.eJ=ma;this.dJ=na;this.RQ=la;this.IJ=ja;this.HJ=ia;this.jR=n;this.eJ=ma||0;this.dJ=na||0;this.RQ=la;this.IJ=ja||0;this.HJ=ia||0}}()},function(ya,va,n){n.d(va,"a",function(){return ma});var ma=RegExp("[-[\\]{}()*+?.,\\\\^$|#\\s]","g");va.b=function(){return function(na,la){this.Wba=la&&("r"===la||"w"===la);this.text=(la&&"w"===
|
|
2421
2421
|
la?na.replace(/(\*+|.|\n)/g,function(ja){if("*"===ja.charAt(0)){if(1===ja.length)return".*?";var ia=ja.length/2|0;return 1===((ja.length|0)&1)?"".concat("*".repeat(ia).replace(ma,"\\$&"),".*?"):"*".repeat(ia).replace(ma,"\\$&")}return ja.replace(ma,"\\$&")}):na).replaceAll("\n"," ")}}()},function(ya,va,n){var ma=n(0),na=n(16),la=n(42),ja=n(312);ya=n(53);n=function(){function ia(ca,x,y,r,h){void 0===y&&(y=!1);this.id=ca;this.apa=x;this.bpa=y;this.transport=r;this.Bs=h;this.isValid=!1;this.listeners=
|
|
2422
2422
|
[];this.LB=window.createPromiseCapability()}ia.create=function(ca,x){return Object(ma.b)(this,arguments,Promise,function(y,r,h,e){var b,f;void 0===h&&(h=!1);void 0===e&&(e=!1);return Object(ma.d)(this,function(a){switch(a.label){case 0:return[4,y.ys()];case 1:b=a.aa();if("id"in b)return f=new ia(b.id,h,e,y,r),f.zM(b),[2,f];throw Error("Cursor ID not found");}})})};ia.prototype.zM=function(ca){if("cmd"in ca)switch(ca.cmd){case "invalidateCursor":this.qba();break;case "resolveCursor":if("page"in ca&&
|