@pdftron/pdfjs-express 8.6.0 → 8.7.0
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 +1 -1
- package/public/core/22.chunk.js +7 -7
- package/public/core/23.chunk.js +7 -7
- package/public/core/AndroidContentPartRetriever.chunk.js +2 -2
- package/public/core/ArrayBufferPdfPartRetriever.chunk.js +1 -1
- package/public/core/AzurePartRetriever.chunk.js +2 -2
- package/public/core/ContentEdit.chunk.js +28 -28
- package/public/core/ExternalAnnotationMerger.chunk.js +13 -14
- package/public/core/ExternalPdfPartRetriever.chunk.js +6 -6
- package/public/core/HttpPartRetriever.chunk.js +12 -12
- package/public/core/IOSPartRetriever.chunk.js +2 -2
- package/public/core/LocalPartRetriever.chunk.js +4 -4
- package/public/core/LocalPdfPartRetriever.chunk.js +3 -3
- package/public/core/PDFInfoVersion1.chunk.js +16 -16
- package/public/core/SelectionInfoOld.chunk.js +14 -14
- package/public/core/StreamingPartRetriever.chunk.js +9 -9
- package/public/core/WebDBPartRetriever.chunk.js +2 -2
- package/public/core/WebViewerServerPartRetriever.chunk.js +41 -38
- package/public/core/WinRTPartRetriever.chunk.js +2 -3
- package/public/core/pdfjs/PDFJSDocumentType.js +154 -151
- package/public/core/pikaday.chunk.js +33 -33
- package/public/core/vendors.ascii85.chunk.js +6 -6
- package/public/core/vendors.ascii85.quill.chunk.js +34 -34
- package/public/core/vendors.pako.chunk.js +80 -80
- package/public/core/vendors.quill.chunk.js +394 -394
- package/public/core/webviewer-core.min.js +2793 -2758
- package/public/ui/chunks/10.chunk.js +1 -1
- package/public/ui/chunks/100.chunk.js +1 -1
- package/public/ui/chunks/101.chunk.js +1 -1
- package/public/ui/chunks/102.chunk.js +1 -1
- package/public/ui/chunks/103.chunk.js +1 -1
- package/public/ui/chunks/104.chunk.js +1 -1
- package/public/ui/chunks/105.chunk.js +1 -1
- package/public/ui/chunks/106.chunk.js +1 -1
- package/public/ui/chunks/107.chunk.js +1 -1
- package/public/ui/chunks/108.chunk.js +1 -1
- package/public/ui/chunks/109.chunk.js +1 -1
- package/public/ui/chunks/11.chunk.js +1 -1
- package/public/ui/chunks/110.chunk.js +1 -1
- package/public/ui/chunks/111.chunk.js +1 -1
- package/public/ui/chunks/112.chunk.js +1 -1
- package/public/ui/chunks/113.chunk.js +1 -1
- package/public/ui/chunks/114.chunk.js +1 -1
- package/public/ui/chunks/115.chunk.js +1 -1
- package/public/ui/chunks/116.chunk.js +1 -1
- package/public/ui/chunks/117.chunk.js +1 -1
- package/public/ui/chunks/118.chunk.js +1 -1
- package/public/ui/chunks/119.chunk.js +1 -1
- package/public/ui/chunks/12.chunk.js +1 -1
- package/public/ui/chunks/120.chunk.js +1 -1
- package/public/ui/chunks/121.chunk.js +1 -1
- package/public/ui/chunks/122.chunk.js +1 -1
- package/public/ui/chunks/123.chunk.js +1 -1
- package/public/ui/chunks/124.chunk.js +1 -1
- package/public/ui/chunks/125.chunk.js +1 -1
- package/public/ui/chunks/126.chunk.js +1 -1
- package/public/ui/chunks/127.chunk.js +1 -1
- package/public/ui/chunks/128.chunk.js +1 -1
- package/public/ui/chunks/129.chunk.js +1 -1
- package/public/ui/chunks/13.chunk.js +1 -1
- package/public/ui/chunks/130.chunk.js +1 -1
- package/public/ui/chunks/131.chunk.js +1 -1
- package/public/ui/chunks/132.chunk.js +1 -1
- package/public/ui/chunks/133.chunk.js +1 -1
- package/public/ui/chunks/134.chunk.js +1 -1
- package/public/ui/chunks/135.chunk.js +1 -1
- package/public/ui/chunks/136.chunk.js +1 -1
- package/public/ui/chunks/137.chunk.js +1 -1
- package/public/ui/chunks/138.chunk.js +1 -1
- package/public/ui/chunks/139.chunk.js +1 -1
- package/public/ui/chunks/14.chunk.js +1 -1
- package/public/ui/chunks/140.chunk.js +1 -1
- package/public/ui/chunks/141.chunk.js +1 -1
- package/public/ui/chunks/142.chunk.js +1 -1
- package/public/ui/chunks/143.chunk.js +1 -1
- package/public/ui/chunks/144.chunk.js +1 -1
- package/public/ui/chunks/145.chunk.js +1 -1
- package/public/ui/chunks/15.chunk.js +1 -1
- package/public/ui/chunks/16.chunk.js +1 -1
- package/public/ui/chunks/17.chunk.js +1 -1
- package/public/ui/chunks/18.chunk.js +1 -1
- package/public/ui/chunks/19.chunk.js +1 -1
- package/public/ui/chunks/2.chunk.js +1 -1
- package/public/ui/chunks/20.chunk.js +1 -1
- package/public/ui/chunks/21.chunk.js +1 -1
- package/public/ui/chunks/22.chunk.js +1 -1
- package/public/ui/chunks/23.chunk.js +1 -1
- package/public/ui/chunks/24.chunk.js +1 -1
- package/public/ui/chunks/25.chunk.js +1 -1
- package/public/ui/chunks/26.chunk.js +1 -1
- package/public/ui/chunks/27.chunk.js +1 -1
- package/public/ui/chunks/28.chunk.js +1 -1
- package/public/ui/chunks/29.chunk.js +1 -1
- package/public/ui/chunks/3.chunk.js +1 -1
- package/public/ui/chunks/30.chunk.js +1 -1
- package/public/ui/chunks/31.chunk.js +1 -1
- package/public/ui/chunks/32.chunk.js +1 -1
- package/public/ui/chunks/33.chunk.js +1 -1
- package/public/ui/chunks/34.chunk.js +1 -1
- package/public/ui/chunks/35.chunk.js +1 -1
- package/public/ui/chunks/36.chunk.js +1 -1
- package/public/ui/chunks/37.chunk.js +1 -1
- package/public/ui/chunks/38.chunk.js +1 -1
- package/public/ui/chunks/39.chunk.js +1 -1
- package/public/ui/chunks/4.chunk.js +1 -1
- package/public/ui/chunks/40.chunk.js +1 -1
- package/public/ui/chunks/41.chunk.js +1 -1
- package/public/ui/chunks/42.chunk.js +1 -1
- package/public/ui/chunks/43.chunk.js +1 -1
- package/public/ui/chunks/44.chunk.js +1 -1
- package/public/ui/chunks/45.chunk.js +1 -1
- package/public/ui/chunks/46.chunk.js +1 -1
- package/public/ui/chunks/47.chunk.js +1 -1
- package/public/ui/chunks/48.chunk.js +1 -1
- package/public/ui/chunks/49.chunk.js +1 -1
- package/public/ui/chunks/5.chunk.js +1 -1
- package/public/ui/chunks/50.chunk.js +1 -1
- package/public/ui/chunks/51.chunk.js +1 -1
- package/public/ui/chunks/52.chunk.js +1 -1
- package/public/ui/chunks/53.chunk.js +1 -1
- package/public/ui/chunks/54.chunk.js +1 -1
- package/public/ui/chunks/55.chunk.js +1 -1
- package/public/ui/chunks/56.chunk.js +1 -1
- package/public/ui/chunks/57.chunk.js +1 -1
- package/public/ui/chunks/58.chunk.js +1 -1
- package/public/ui/chunks/59.chunk.js +1 -1
- package/public/ui/chunks/6.chunk.js +1 -1
- package/public/ui/chunks/60.chunk.js +1 -1
- package/public/ui/chunks/61.chunk.js +1 -1
- package/public/ui/chunks/62.chunk.js +1 -1
- package/public/ui/chunks/63.chunk.js +1 -1
- package/public/ui/chunks/64.chunk.js +1 -1
- package/public/ui/chunks/65.chunk.js +1 -1
- package/public/ui/chunks/66.chunk.js +1 -1
- package/public/ui/chunks/67.chunk.js +1 -1
- package/public/ui/chunks/68.chunk.js +1 -1
- package/public/ui/chunks/69.chunk.js +1 -1
- package/public/ui/chunks/7.chunk.js +1 -1
- package/public/ui/chunks/70.chunk.js +1 -1
- package/public/ui/chunks/71.chunk.js +1 -1
- package/public/ui/chunks/72.chunk.js +1 -1
- package/public/ui/chunks/73.chunk.js +1 -1
- package/public/ui/chunks/74.chunk.js +1 -1
- package/public/ui/chunks/75.chunk.js +1 -1
- package/public/ui/chunks/76.chunk.js +1 -1
- package/public/ui/chunks/77.chunk.js +1 -1
- package/public/ui/chunks/78.chunk.js +1 -1
- package/public/ui/chunks/79.chunk.js +1 -1
- package/public/ui/chunks/8.chunk.js +1 -1
- package/public/ui/chunks/80.chunk.js +1 -1
- package/public/ui/chunks/81.chunk.js +1 -1
- package/public/ui/chunks/82.chunk.js +1 -1
- package/public/ui/chunks/83.chunk.js +1 -1
- package/public/ui/chunks/84.chunk.js +1 -1
- package/public/ui/chunks/85.chunk.js +1 -1
- package/public/ui/chunks/86.chunk.js +1 -1
- package/public/ui/chunks/87.chunk.js +1 -1
- package/public/ui/chunks/88.chunk.js +1 -1
- package/public/ui/chunks/89.chunk.js +1 -1
- package/public/ui/chunks/9.chunk.js +1 -1
- package/public/ui/chunks/90.chunk.js +1 -1
- package/public/ui/chunks/91.chunk.js +1 -1
- package/public/ui/chunks/92.chunk.js +1 -1
- package/public/ui/chunks/93.chunk.js +1 -1
- package/public/ui/chunks/94.chunk.js +1 -1
- package/public/ui/chunks/95.chunk.js +1 -1
- package/public/ui/chunks/96.chunk.js +1 -1
- package/public/ui/chunks/97.chunk.js +1 -1
- package/public/ui/chunks/98.chunk.js +1 -1
- package/public/ui/chunks/99.chunk.js +1 -1
- package/public/ui/chunks/vendors.html2canvas.chunk.js +1 -1
- package/public/ui/i18n/translation-bn.json +50 -14
- package/public/ui/i18n/translation-de.json +51 -15
- package/public/ui/i18n/translation-el.json +50 -14
- package/public/ui/i18n/translation-en.json +33 -40
- package/public/ui/i18n/translation-es.json +49 -13
- package/public/ui/i18n/translation-fr.json +49 -13
- package/public/ui/i18n/translation-hi.json +51 -15
- package/public/ui/i18n/translation-id.json +50 -14
- package/public/ui/i18n/translation-it.json +49 -13
- package/public/ui/i18n/translation-ja.json +51 -15
- package/public/ui/i18n/translation-ko.json +52 -24
- package/public/ui/i18n/translation-ms.json +50 -14
- package/public/ui/i18n/translation-nl.json +51 -15
- package/public/ui/i18n/translation-pt_br.json +50 -14
- package/public/ui/i18n/translation-ru.json +49 -13
- package/public/ui/i18n/translation-tr.json +49 -13
- package/public/ui/i18n/translation-uk.json +50 -14
- package/public/ui/i18n/translation-vi.json +51 -15
- package/public/ui/i18n/translation-zh_cn.json +50 -14
- package/public/ui/i18n/translation-zh_tw.json +50 -14
- package/public/ui/style.css +25 -19
- package/public/ui/style.css.map +1 -1
- package/public/ui/webviewer-ui.min.js +15 -15
- package/public/ui/webviewer-ui.min.js.map +1 -1
- package/webviewer.min.js +1 -1
package/package.json
CHANGED
package/public/core/22.chunk.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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([[22],{
|
|
3
|
-
h)return
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[22],{449:function(Ba){(function(){Ba.exports={EW:function(){function ua(b,h){this.scrollLeft=b;this.scrollTop=h}function r(b){if(null===b||"object"!==typeof b||void 0===b.behavior||"auto"===b.behavior||"instant"===b.behavior)return!0;if("object"===typeof b&&"smooth"===b.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+b.behavior+" is not a valid value for enumeration ScrollBehavior.");}function pa(b,h){if("Y"===
|
|
3
|
+
h)return b.clientHeight+a<b.scrollHeight;if("X"===h)return b.clientWidth+a<b.scrollWidth}function ka(b,h){b=z.getComputedStyle(b,null)["overflow"+h];return"auto"===b||"scroll"===b}function ma(b){var h=pa(b,"Y")&&ka(b,"Y");b=pa(b,"X")&&ka(b,"X");return h||b}function fa(b){var h=(e()-b.startTime)/468;var n=.5*(1-Math.cos(Math.PI*(1<h?1:h)));h=b.sy+(b.x-b.sy)*n;n=b.ty+(b.y-b.ty)*n;b.method.call(b.mE,h,n);h===b.x&&n===b.y||z.requestAnimationFrame(fa.bind(z,b))}function da(b,h,n){var ba=e();if(b===x.body){var w=
|
|
4
|
+
z;var ea=z.scrollX||z.pageXOffset;b=z.scrollY||z.pageYOffset;var ja=f.scroll}else w=b,ea=b.scrollLeft,b=b.scrollTop,ja=ua;fa({mE:w,method:ja,startTime:ba,sy:ea,ty:b,x:h,y:n})}var z=window,x=document;if(!("scrollBehavior"in x.documentElement.style&&!0!==z.Vma)){var y=z.HTMLElement||z.Element,f={scroll:z.scroll||z.scrollTo,scrollBy:z.scrollBy,bS:y.prototype.scroll||ua,scrollIntoView:y.prototype.scrollIntoView},e=z.performance&&z.performance.now?z.performance.now.bind(z.performance):Date.now,a=RegExp("MSIE |Trident/|Edge/").test(z.navigator.userAgent)?
|
|
5
|
+
1:0;z.scroll=z.scrollTo=function(b,h){void 0!==b&&(!0===r(b)?f.scroll.call(z,void 0!==b.left?b.left:"object"!==typeof b?b:z.scrollX||z.pageXOffset,void 0!==b.top?b.top:void 0!==h?h:z.scrollY||z.pageYOffset):da.call(z,x.body,void 0!==b.left?~~b.left:z.scrollX||z.pageXOffset,void 0!==b.top?~~b.top:z.scrollY||z.pageYOffset))};z.scrollBy=function(b,h){void 0!==b&&(r(b)?f.scrollBy.call(z,void 0!==b.left?b.left:"object"!==typeof b?b:0,void 0!==b.top?b.top:void 0!==h?h:0):da.call(z,x.body,~~b.left+(z.scrollX||
|
|
6
|
+
z.pageXOffset),~~b.top+(z.scrollY||z.pageYOffset)))};y.prototype.scroll=y.prototype.scrollTo=function(b,h){if(void 0!==b)if(!0===r(b)){if("number"===typeof b&&void 0===h)throw new SyntaxError("Value could not be converted");f.bS.call(this,void 0!==b.left?~~b.left:"object"!==typeof b?~~b:this.scrollLeft,void 0!==b.top?~~b.top:void 0!==h?~~h:this.scrollTop)}else h=b.left,b=b.top,da.call(this,this,"undefined"===typeof h?this.scrollLeft:~~h,"undefined"===typeof b?this.scrollTop:~~b)};y.prototype.scrollBy=
|
|
7
|
+
function(b,h){void 0!==b&&(!0===r(b)?f.bS.call(this,void 0!==b.left?~~b.left+this.scrollLeft:~~b+this.scrollLeft,void 0!==b.top?~~b.top+this.scrollTop:~~h+this.scrollTop):this.scroll({left:~~b.left+this.scrollLeft,top:~~b.top+this.scrollTop,behavior:b.behavior}))};y.prototype.scrollIntoView=function(b){if(!0===r(b))f.scrollIntoView.call(this,void 0===b?!0:b);else{for(b=this;b!==x.body&&!1===ma(b);)b=b.parentNode||b.host;var h=b.getBoundingClientRect(),n=this.getBoundingClientRect();b!==x.body?(da.call(this,
|
|
8
|
+
b,b.scrollLeft+n.left-h.left,b.scrollTop+n.top-h.top),"fixed"!==z.getComputedStyle(b).position&&z.scrollBy({left:h.left,top:h.top,behavior:"smooth"})):z.scrollBy({left:n.left,top:n.top,behavior:"smooth"})}}}}}})()}}]);}).call(this || window)
|
package/public/core/23.chunk.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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([[23],{
|
|
3
|
-
break;case "delete":this.ja.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[23],{451:function(Ba,ua,r){r.r(ua);var pa=r(1),ka=r(10),ma=r(2);Ba=r(51);var fa=r(34),da=r(11);r=function(){function z(){this.init()}z.prototype.init=function(){this.S5=!1;this.Ne=this.cl=this.connection=null;this.Lr={};this.ja=this.$E=null};z.prototype.tla=function(x){for(var y=this,f=0;f<x.length;++f){var e=x[f];switch(e.at){case "create":this.Lr[e.author]||(this.Lr[e.author]=e.aName);this.yca(e);break;case "modify":this.ja.Hl(e.xfdf).then(function(a){y.ja.kb(a[0])});
|
|
3
|
+
break;case "delete":this.ja.Hl("<delete><id>"+e.aId+"</id></delete>")}}};z.prototype.yca=function(x){var y=this;this.ja.Hl(x.xfdf).then(function(f){f=f[0];f.authorId=x.author;y.ja.kb(f);y.ja.trigger(ka.b.UPDATE_ANNOTATION_PERMISSION,[f])})};z.prototype.Zba=function(x,y,f){this.cl&&this.cl(x,y,f)};z.prototype.preloadAnnotations=function(x){this.addEventListener("webViewerServerAnnotationsEnabled",this.Zba.bind(this,x,"add",{imported:!1}),{once:!0})};z.prototype.initiateCollaboration=function(x,y,f){var e=
|
|
4
|
+
this;if(x){e.Ne=y;e.ja=f.pa();f.addEventListener(ka.e.DOCUMENT_UNLOADED,function(){e.disableCollaboration()});e.Sla(x);var a=new XMLHttpRequest;a.addEventListener("load",function(){if(200===a.status&&0<a.responseText.length)try{var b=JSON.parse(a.responseText);e.connection=exports.Sa.wma(Object(fa.j)(e.Ne,"blackbox/"),"annot");e.$E=b.id;e.Lr[b.id]=b.user_name;e.ja.VL(b.id);e.connection.Cpa(function(h){h.t&&h.t.startsWith("a_")&&h.data&&e.tla(h.data)},function(){e.connection.send({t:"a_retrieve",dId:x});
|
|
5
|
+
e.trigger(z.Events.WEBVIEWER_SERVER_ANNOTATIONS_ENABLED,[e.Lr[b.id],e.$E])},function(){e.disableCollaboration()})}catch(h){Object(ma.g)(h.message)}});a.open("GET",Object(fa.j)(this.Ne,"demo/SessionInfo.jsp"));a.withCredentials=!0;a.send();e.S5=!0;e.ja.fY(function(b){return e.Lr[b.Author]||b.Author})}else Object(ma.g)("Document ID required for collaboration")};z.prototype.disableCollaboration=function(){this.cl&&(this.ja.removeEventListener(da.a.Events.ANNOTATION_CHANGED,this.cl),this.cl=null);this.connection&&
|
|
6
|
+
this.connection.Cp();this.ja&&this.ja.VL("Guest");this.init();this.trigger(z.Events.WEBVIEWER_SERVER_ANNOTATIONS_DISABLED)};z.prototype.Sla=function(x){var y=this;this.cl&&this.ja.removeEventListener(da.a.Events.ANNOTATION_CHANGED,this.cl);this.cl=function(f,e,a){return Object(pa.b)(this,void 0,void 0,function(){var b,h,n,ba,w,ea,ja,aa,ca;return Object(pa.d)(this,function(ia){switch(ia.label){case 0:if(a.imported)return[2];b={t:"a_"+e,dId:x,annots:[]};return[4,y.ja.hI()];case 1:h=ia.ea();"delete"!==
|
|
7
|
+
e&&(n=(new DOMParser).parseFromString(h,"text/xml"),ba=new XMLSerializer);for(w=0;w<f.length;w++)ea=f[w],aa=ja=void 0,"add"===e?(ja=n.querySelector('[name="'+ea.Id+'"]'),aa=ba.serializeToString(ja),ca=null,ea.InReplyTo&&(ca=y.ja.Xf(ea.InReplyTo).authorId||"default"),b.annots.push({at:"create",aId:ea.Id,author:y.$E,aName:y.Lr[y.$E],parent:ca,xfdf:"<add>"+aa+"</add>"})):"modify"===e?(ja=n.querySelector('[name="'+ea.Id+'"]'),aa=ba.serializeToString(ja),b.annots.push({at:"modify",aId:ea.Id,xfdf:"<modify>"+
|
|
8
|
+
aa+"</modify>"})):"delete"===e&&b.annots.push({at:"delete",aId:ea.Id});0<b.annots.length&&y.connection.send(b);return[2]}})})}.bind(y);this.ja.addEventListener(da.a.Events.ANNOTATION_CHANGED,this.cl)};z.Events={WEBVIEWER_SERVER_ANNOTATIONS_ENABLED:"webViewerServerAnnotationsEnabled",WEBVIEWER_SERVER_ANNOTATIONS_DISABLED:"webViewerServerAnnotationsDisabled"};return z}();Object(Ba.a)(r);ua["default"]=r}}]);}).call(this || window)
|
|
@@ -1,3 +1,3 @@
|
|
|
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([[3],{
|
|
3
|
-
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[3],{437:function(Ba,ua,r){r.r(ua);var pa=r(1),ka=r(245);Ba=r(433);r=r(375);var ma=window,fa=function(da){function z(x,y){var f=da.call(this,x,y)||this;f.url=x;f.range=y;f.request=new XMLHttpRequest;f.request.open("GET",f.url,!0);ma.Uint8Array&&(f.request.responseType="arraybuffer");f.request.setRequestHeader("X-Requested-With","XMLHttpRequest");f.status=ka.a.NOT_STARTED;return f}Object(pa.c)(z,da);return z}(Ba.ByteRangeRequest);
|
|
3
|
+
Ba=function(da){function z(x,y,f,e){x=da.call(this,x,y,f,e)||this;x.Kx=fa;return x}Object(pa.c)(z,da);z.prototype.Ev=function(x,y){return x+"/bytes="+y.start+","+(y.stop?y.stop:"")};return z}(Ba["default"]);Object(r.a)(Ba);Object(r.b)(Ba);ua["default"]=Ba}}]);}).call(this || window)
|
|
@@ -1,2 +1,2 @@
|
|
|
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([[4],{
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[4],{438:function(Ba,ua,r){r.r(ua);Ba=r(51);r=r(375);var pa=function(){function ka(ma){this.buffer=ma;this.fileSize=null===ma||void 0===ma?void 0:ma.byteLength}ka.prototype.getFileData=function(ma){ma(new Uint8Array(this.buffer))};ka.prototype.getFile=function(){return Promise.resolve(null)};return ka}();Object(Ba.a)(pa);Object(r.a)(pa);Object(r.b)(pa);ua["default"]=pa}}]);}).call(this || window)
|
|
@@ -1,3 +1,3 @@
|
|
|
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([[5],{
|
|
3
|
-
da)})};return
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[5],{439:function(Ba,ua,r){r.r(ua);var pa=r(1),ka=r(147);Ba=r(433);r=r(375);Ba=function(ma){function fa(da,z,x,y){return ma.call(this,da,z,x,y)||this}Object(pa.c)(fa,ma);fa.prototype.$S=function(){return{start:this.lS-ka.a,stop:this.lS}};fa.prototype.bt=function(da){var z=this;this.ao(this.url,{start:0,stop:1},function(x,y,f){if(x)return da(x);x=f.request.getResponseHeader("Content-Range");z.lS=x.split("/")[1];ma.prototype.bt.call(z,
|
|
3
|
+
da)})};return fa}(Ba["default"]);Object(r.a)(Ba);Object(r.b)(Ba);ua["default"]=Ba}}]);}).call(this || window)
|
|
@@ -1,29 +1,29 @@
|
|
|
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([[6],{
|
|
3
|
-
[4,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
this.width=function(){return Math.round(this.right-this.left)};this.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Ua
|
|
12
|
-
void 0,void 0,function(){var
|
|
13
|
-
[3,7];case 4:return
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Va=new y(parseFloat(Va[0]),parseFloat(Va[1]),parseFloat(Va[2]),parseFloat(Va[3]));
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Ea=parseFloat(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
r.r(ua);var
|
|
24
|
-
void 0,void 0,function(){var
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"");
|
|
28
|
-
pdfFile:
|
|
29
|
-
return
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[6],{164:function(Ba,ua,r){function pa(Ra,Ma,Aa,Ja){return Object(ca.b)(void 0,void 0,void 0,function(){var Ia,Pa,Wa,Qa,Fa,Ea,Ua,Va,Xa;return Object(ca.d)(this,function(cb){switch(cb.label){case 0:return Ia=Ka.getDocument(),Pa=[1],[4,Object(ia.c)(Ma,{extension:"pdf"})];case 1:return Wa=cb.ea(),Qa=Ka.pa(),Ua=(Ea=oa.a).$fa,[4,Wa.NB()];case 2:return Fa=Ua.apply(Ea,[cb.ea().xfdfString,Ra]),Va=!0,[4,Ia.zf(Wa,Pa,Ra,Va)];case 3:return cb.ea(),
|
|
3
|
+
[4,Ia.ng([Ra+1],Va)];case 4:return cb.ea(),Xa=Qa.Gb().filter(function(eb){return eb.YJ()&&eb.PageNumber===Ra}),Qa.Jj(Xa,{force:!0,source:"contentEditTool"}),[4,Qa.HJ(Fa)];case 5:return cb.ea(),Ka.getDocument().sL(),Ka.rL(Ra),Ka.Qe(),fa(Ra),h(Ra,Aa.galleys,Ja),h(Ra,Aa.objects,Ja),[2]}})})}function ka(Ra){Ra=(new DOMParser).parseFromString(Ra,"text/html").documentElement.querySelector("body");Ra.querySelectorAll("p").forEach(function(Ma){Ma.querySelectorAll("span").forEach(function(Ia){var Pa=Ia.getAttribute("style");
|
|
4
|
+
Pa=ma(Pa,Ia.innerHTML);Ia.innerHTML=Pa});var Aa=Ma.getAttribute("style"),Ja=Ma.innerHTML.replaceAll("<br>","");Ma.innerHTML=ma(Aa,Ja)});return Ra.innerHTML.trim()}function ma(Ra,Ma){Ra.includes("bold")&&(Ma="<strong>"+Ma+"</strong>");Ra.includes("italic")&&(Ma="<em>"+Ma+"</em>");Ra.includes("text-decoration: underline")&&(Ma="<u>"+Ma+"</u>");return Ma}function fa(Ra){var Ma=Ka.pa(),Aa=Ma.Gb().filter(function(Ja){return Ja.Jh()&&Ja.PageNumber===Ra});Ma.Jj(Aa,{force:!0,source:"contentEditTool"})}function da(Ra,
|
|
5
|
+
Ma){Ma.forEach(function(Aa){La[Ra]||(La[Ra]=[]);La[Ra].find(function(Ja){return Ja.id===Aa.id})||La[Ra].push(Aa)})}function z(Ra,Ma){Ma.forEach(function(Aa){Ha[Ra]||(Ha[Ra]=[]);Ha[Ra].find(function(Ja){return Ja.id===Aa.id})||Ha[Ra].push(Aa)})}function x(Ra){var Ma=new DOMParser,Aa=Ma.parseFromString(Ra,"text/xml");Aa.querySelector("parsererror")&&(Aa=Ma.parseFromString("<Root>"+Ra+"</Root>","text/xml"));Aa.querySelectorAll("a").forEach(function(Ja){var Ia=Ja.childNodes[0];Array.from(Ja.querySelectorAll("*")).find(function(Pa){return"u"===
|
|
6
|
+
Pa.tagName.toLowerCase()})||(Ja=document.createElement("u"),Ia.after(Ja),Ja.appendChild(Ia))});return(new XMLSerializer).serializeToString(Aa)}function y(Ra,Ma,Aa,Ja){this.top=Ra;this.left=Ma;this.bottom=Aa;this.right=Ja;this.topVal=function(){return Math.round(this.top)};this.bottomVal=function(){return Math.round(this.bottom)};this.leftVal=function(){return Math.round(this.left)};this.rightVal=function(){return Math.round(this.right)};this.height=function(){return Math.round(Math.abs(this.top-this.bottom))};
|
|
7
|
+
this.width=function(){return Math.round(this.right-this.left)};this.MQ=function(Ia){return this.topVal()!==Ia.topVal()||this.leftVal()!==Ia.leftVal()||this.bottomVal()!==Ia.bottomVal()||this.rightVal()!==Ia.rightVal()}}function f(Ra,Ma,Aa,Ja,Ia){this.id=Ra;this.pagenum=Ma;this.galleysContents=Aa;this.contents=Ja;this.galleyBox=Ia;Object(va.g)(Ha)}function e(Ra,Ma,Aa,Ja){this.id=Ma;this.type=Ra;this.bbox=Aa;this.pagenum=Ja}function a(Ra,Ma,Aa,Ja,Ia){this.id=Ra;this.pagecount=Ma;this.pageBBox=Aa;this.galleys=
|
|
8
|
+
Ja;this.objects=Ia}function b(Ra,Ma,Aa,Ja,Ia){var Pa=[];(new DOMParser).parseFromString(Ja,"text/html").documentElement.querySelectorAll("p").forEach(function(Ea,Ua){Pa[Ua]=Ea.innerHTML});Aa=(new DOMParser).parseFromString(Aa,"text/html");var Wa=null;Aa.documentElement.querySelectorAll("p").forEach(function(Ea,Ua){Ua<Pa.length?(Ea.innerHTML=Pa[Ua],Wa=Ea.getAttribute("style"),Wa=Wa.replace("font:italic","font:normal"),Wa=Wa.replace(" bold "," normal "),Wa=Wa.replace("underline:1;","underline:0;"),
|
|
9
|
+
Ea.setAttribute("style",Wa)):Ea.remove()});for(Ja=Aa.documentElement.querySelectorAll("p").length;Ja<Pa.length;Ja++){var Qa=document.createElement("p");Qa.setAttribute("id","0");Qa.innerHTML=Pa[Ja];null!=Wa&&Qa.setAttribute("style",Wa);Aa.documentElement.querySelector("body").appendChild(Qa)}Aa=Aa.documentElement.querySelector("body").innerHTML;var Fa="";Ha[Ra].forEach(function(Ea){Ea.id===Ia&&(Fa=Ea)});if(""===Fa)return"";Ma="<DOC id='"+Ma.id+"' pagecount='"+Ma.pagecount+"'>";Ma=Ma+("<STORY galley_ids='"+
|
|
10
|
+
Ia+"' pagenum='"+Ra+"'><galleys>")+(Fa.galleysContents+"</galleys>");Fa.contents=Aa;Ma=Ma+Aa+"\n</STORY>";return Ma+="</DOC>"}function h(Ra,Ma,Aa){var Ja=[],Ia=Ka.getDocument(),Pa=null;Ma.forEach(function(Wa){if(Wa instanceof e){var Qa=Ia.Sn(Ra,Wa.bbox.leftVal(),Wa.bbox.topVal());var Fa=Qa.x;var Ea=Qa.y;var Ua=Ia.Sn(Ra,Wa.bbox.rightVal(),Wa.bbox.bottomVal());Qa=Ua.x;Ua=Ua.y}else if(Wa instanceof f)Qa=Ia.Sn(Ra,Wa.galleyBox.leftVal(),Wa.galleyBox.topVal()),Fa=Qa.x,Ea=Qa.y,Ua=Ia.Sn(Ra,Wa.galleyBox.rightVal(),
|
|
11
|
+
Wa.galleyBox.bottomVal()),Qa=Ua.x,Ua=Ua.y;else return;var Va=new window.Core.Annotations.RectangleAnnotation,Xa=ta.a.OBJECT;Wa instanceof f&&(Xa=ta.a.TEXT);Va.Eia(Wa,Xa);Va.PageNumber=Wa.pagenum;Va.X=Fa;Va.Y=Ea;Va.Width=Qa-Fa;Va.Height=Ua-Ea;Va.StrokeColor=new ha.a("#3183C8");Va.FillColor=new ha.a(255,255,255,.01);Va.Style="dash";Va.Dashes="4,3";Va.yB();Va.selectionModel=la.a;Ja.push(Va);"undefined"!==typeof Aa&&Aa===Wa.id&&(Pa=Va)});Ma=Ka.pa();Ma.ri(Ja);Pa&&Ma.rg(Pa);Ma.bf(Ja)}function n(Ra,Ma,Aa){return Object(ca.b)(this,
|
|
12
|
+
void 0,void 0,function(){var Ja,Ia,Pa,Wa,Qa;return Object(ca.d)(this,function(Fa){switch(Fa.label){case 0:Ja=Ra.data;Pa=Ja.cmd;switch(Pa){case "isReady":return[3,1];case "initialiseInfixServer":return[3,3];case "exportFile":return[3,4];case "importText":return[3,5];case "transformObject":return[3,5];case "deleteObject":return[3,6]}return[3,7];case 1:return[4,Object(qa.b)()];case 2:return Wa=Fa.ea(),wa.postMessage({cmd:"initialiseInfixServer",l:Wa}),[3,7];case 3:return(Qa=ba(Ja.resultsXML))?Ma():Aa("License key does not have content edit permission"),
|
|
13
|
+
[3,7];case 4:return Ja.exportPerformed?w(Ja.pageNumber,Ja.exportXML,Ja.objectXML,Ja.resultsXML):(Ia=Ca[Ja.pageNumber],z(Ja.pageNumber,Ia.galleys),da(Ja.pageNumber,Ia.objects),fa(Ja.pageNumber),h(Ja.pageNumber,Ia.galleys),h(Ja.pageNumber,Ia.objects)),[3,7];case 5:return Ia=Ca[Ja.pageNumber],aa(Ja.pageNumber,Ja.resultsXML),pa(Ja.pageNumber,Ja.pdfBuffer,Ia,Ja.id),[3,7];case 6:return Ia=Ca[Ja.pageNumber],aa(Ja.pageNumber,Ja.resultsXML),Ia.galleys=Ia.galleys.filter(function(Ea){return Ea.id!==Ja.id}),
|
|
14
|
+
Ia.objects=Ia.objects.filter(function(Ea){return Ea.id!==Ja.id}),pa(Ja.pageNumber,Ja.pdfBuffer,Ia),[3,7];case 7:return[2]}})})}function ba(Ra){Ra=new Uint8Array(Ra);var Ma=(new TextDecoder("utf-8")).decode(Ra);Ra=!1;Ma=(new DOMParser).parseFromString(Ma,"text/xml").getElementsByTagName("LicenseCheck");null!==Ma&&0<Ma.length&&(Ma=Ma[0].getElementsByTagName("Status")[0].innerHTML,"error"!==Ma&&"ok"===Ma&&(Ra=!0));return Ra}function w(Ra,Ma,Aa,Ja){var Ia=new Uint8Array(Ma),Pa=new TextDecoder("utf-8");
|
|
15
|
+
Ma=Pa.decode(Ia);Ia=new Uint8Array(Aa);Aa=Pa.decode(Ia);Ia=new Uint8Array(Ja);Ja=Pa.decode(Ia);Ca[Ra]=ja(Ra,Ma,Aa,Ja);Ja=Ca[Ra];z(Ra,Ja.galleys);da(Ra,Ja.objects);fa(Ra);h(Ra,Ja.galleys);h(Ra,Ja.objects)}function ea(Ra,Ma){Ra=parseFloat(Ra);return isNaN(Ma)||Ma<Ra?Ra:Ma}function ja(Ra,Ma,Aa,Ja){var Ia;var Pa=new DOMParser;Ja=Pa.parseFromString(Ja,"text/xml");Array.prototype.slice.call(Ja.getElementsByTagName("BBox")).forEach(function(Fa){if("CropBox"===Fa.getAttribute("Name")){var Ea=parseFloat(Fa.getElementsByTagName("Top").item(0).innerHTML),
|
|
16
|
+
Ua=parseFloat(Fa.getElementsByTagName("Bottom").item(0).innerHTML),Va=parseFloat(Fa.getElementsByTagName("Left").item(0).innerHTML);Fa=parseFloat(Fa.getElementsByTagName("Right").item(0).innerHTML);Ia=new y(Ea,Va,Ua,Fa)}});Pa=new DOMParser;Ja=Pa.parseFromString(Ma,"text/xml");var Wa=[];Array.prototype.slice.call(Ja.getElementsByTagName("STORY")).forEach(function(Fa){var Ea=Fa.getAttribute("galley_ids"),Ua=Array.prototype.slice.call(Fa.getElementsByTagName("g"))[0],Va=Ua.getAttribute("bbox").split(" ");
|
|
17
|
+
Va=new y(parseFloat(Va[0]),parseFloat(Va[1]),parseFloat(Va[2]),parseFloat(Va[3]));Ua=Ua.innerHTML;var Xa=Array.prototype.slice.call(Fa.getElementsByTagName("galleys"))[0];Xa.parentNode.removeChild(Xa);Fa=Fa.innerHTML;Fa=(new DOMParser).parseFromString(Fa,"text/html").documentElement.querySelector("body").innerHTML.trim();Ea=new f(Ea,Ra,Ua,Fa,Va);Wa.push(Ea)});Pa=new DOMParser;var Qa=[];Ma=Pa.parseFromString(Aa,"text/xml").getElementsByTagName("Object");Array.prototype.slice.call(Ma).forEach(function(Fa){var Ea=
|
|
18
|
+
Fa.getAttribute("Type"),Ua=Fa.getAttribute("OID");Fa=Array.prototype.slice.call(Fa.getElementsByTagName("Point"));var Va=Number.NaN,Xa=Number.NaN,cb=Number.NaN,eb=Number.NaN;Fa.forEach(function(hb){var kb=hb.getAttribute("Name");"TL"===kb?(Va=ea(hb.getAttribute("Y"),Va),cb=ea(hb.getAttribute("X"),cb)):"TR"===kb?(Va=ea(hb.getAttribute("Y"),Va),eb=ea(hb.getAttribute("X"),eb)):"BR"===kb?(Xa=ea(hb.getAttribute("Y"),Xa),eb=ea(hb.getAttribute("X"),eb)):"BL"===kb&&(Xa=ea(hb.getAttribute("Y"),Xa),cb=ea(hb.getAttribute("X"),
|
|
19
|
+
cb))});Fa=new y(Va,cb,Xa,eb);Ea=new e(Ea,Ua,Fa,Ra);Qa.push(Ea)});Ma=Array.prototype.slice.call(Ja.getElementsByTagName("DOC"))[0].getAttribute("id");return new a(Ma,1,Ia,Wa,Qa)}function aa(Ra,Ma){var Aa;Ma=(new TextDecoder("utf-8")).decode(Ma);var Ja=(new DOMParser).parseFromString(Ma,"text/xml");Ma=Ja.getElementsByTagName("Galley").item(0);if(null!=Ma){var Ia=Ma.getAttribute("id");Ma=Ja.getElementsByTagName("BBox");Ma=Array.prototype.slice.call(Ma);Ma.forEach(function(Qa){var Fa=Qa.getElementsByTagName("Top"),
|
|
20
|
+
Ea=parseFloat(Fa.item(0).innerHTML);Fa=Qa.getElementsByTagName("Left");var Ua=parseFloat(Fa.item(0).innerHTML);Fa=Qa.getElementsByTagName("Bottom");var Va=parseFloat(Fa.item(0).innerHTML);Fa=Qa.getElementsByTagName("Right");Qa=parseFloat(Fa.item(0).innerHTML);Aa=new y(Ea,Ua,Va,Qa)});Ha[Ra].forEach(function(Qa){Qa.id===Ia&&!0===Aa.MQ(Qa.galleyBox)&&(Qa.galleyBox=Aa)})}Ma=Ja.getElementsByTagName("Object").item(0);if(null!=Ma){var Pa=Ma.getAttribute("OID");Ma=Ja.getElementsByTagName("BBox");Ma=Array.prototype.slice.call(Ma);
|
|
21
|
+
Ma.forEach(function(Qa){var Fa=Qa.getElementsByTagName("Top"),Ea=parseFloat(Fa.item(0).innerHTML);Fa=Qa.getElementsByTagName("Left");var Ua=parseFloat(Fa.item(0).innerHTML);Fa=Qa.getElementsByTagName("Bottom");var Va=parseFloat(Fa.item(0).innerHTML);Fa=Qa.getElementsByTagName("Right");Qa=parseFloat(Fa.item(0).innerHTML);Aa=new y(Ea,Ua,Va,Qa)});La[Ra].forEach(function(Qa){Qa.id===Pa&&!0===Aa.MQ(Qa.bbox)&&(Qa.bbox=Aa)})}Ma=Ja.getElementsByTagName("NewParas").item(0);if(null!=Ma){var Wa=Ma.getAttribute("id");
|
|
22
|
+
Ha[Ra].forEach(function(Qa){if(Qa.id===Wa){var Fa="<Contents>"+Qa.contents;Fa+="</Contents>";var Ea=Array.prototype.slice.call(Ja.getElementsByTagName("NewPara"));Fa=(new DOMParser).parseFromString(Fa,"text/xml");var Ua=Array.prototype.slice.call(Fa.getElementsByTagName("p"));Ea.forEach(function(Va){var Xa=parseFloat(Va.innerHTML),cb=!1;Ua.forEach(function(eb){var hb=eb.getAttribute("id");!1===cb&&"0"===hb&&(eb.setAttribute("id",Xa),cb=!0)})});Qa.contents=Fa.getElementsByTagName("Contents").item(0).innerHTML}})}}
|
|
23
|
+
r.r(ua);var ca=r(1),ia=r(55),ha=r(8),la=r(474),na=r(37),qa=r(76),ra=r(2),ta=r(174),va=r(118),oa=r(6),wa=null,Da=null,Ha={},La={},Ca={},Ka;ua["default"]={Xfa:function(Ra){return Object(ca.b)(void 0,void 0,void 0,function(){return Object(ca.d)(this,function(){Da||(Ka=Ra,Da=new Promise(function(Ma,Aa){wa=new Worker(window.Core.getWorkerPath()+"contentEdit/InfixServerModule.js");wa.onmessage=function(Ja){n(Ja,Ma,Aa)};wa.postMessage({cmd:"isReady"})}));return[2,Da]})})},Zfa:function(Ra,Ma,Aa){return Object(ca.b)(void 0,
|
|
24
|
+
void 0,void 0,function(){var Ja,Ia,Pa,Wa;return Object(ca.d)(this,function(Qa){switch(Qa.label){case 0:return fa(Ma),Ha[Ma]=[],La[Ma]=[],[4,Ra.Be([Ma])];case 1:return Ja=Qa.ea(),Ia=new TextEncoder,Pa=Ia.encode(""),Wa=Pa.buffer,wa.postMessage({cmd:"exportFile",pageNumber:Ma,performExport:Aa,pdfFile:Ja,tableData:Wa},[Ja,Wa]),[2]}})})},U6:function(Ra){return Object(ca.b)(void 0,void 0,void 0,function(){var Ma,Aa,Ja,Ia,Pa,Wa,Qa,Fa;return Object(ca.d)(this,function(Ea){switch(Ea.label){case 0:return Ma=
|
|
25
|
+
Ra.id,Aa=Ra.isText,Ja=Ra.pageNumber,Ia=Ka.getDocument(),[4,Ia.Be([Ja])];case 1:return Pa=Ea.ea(),Wa=new TextEncoder,Qa=Wa.encode(""),Fa=Qa.buffer,wa.postMessage({cmd:"deleteObject",pdfFile:Pa,pageNumber:Ja,objectID:Ma,isText:Aa,tableData:Fa},[Fa]),[2]}})})},hla:function(Ra){return Object(ca.b)(void 0,void 0,void 0,function(){var Ma,Aa,Ja,Ia,Pa,Wa,Qa,Fa,Ea,Ua,Va,Xa,cb;return Object(ca.d)(this,function(eb){switch(eb.label){case 0:return Ma=Ra.id,Aa=Ra.position,Ja=Aa.top,Ia=Aa.left,Pa=Aa.bottom,Wa=Aa.right,
|
|
26
|
+
Qa=Ra.isText,Fa=Ra.pageNumber,Ea=Ka.getDocument(),[4,Ea.Be([Fa])];case 1:return Ua=eb.ea(),Va=new TextEncoder,Xa=Va.encode(""),cb=Xa.buffer,wa.postMessage({cmd:"transformObject",pdfFile:Ua,pageNumber:Fa,objectID:Ma,isText:Qa,topVal:Ja,leftVal:Ia,bottomVal:Pa,rightVal:Wa,tableData:cb},[cb]),[2]}})})},zla:function(Ra,Ma){return Object(ca.b)(void 0,void 0,void 0,function(){var Aa,Ja,Ia,Pa,Wa,Qa,Fa,Ea,Ua,Va,Xa,cb,eb,hb,kb,sb,pb,tb;return Object(ca.d)(this,function(Db){switch(Db.label){case 0:Aa=Ma.replaceAll("<p><br></p>",
|
|
27
|
+
"");Ja=x(Aa);Ja=Ja.replace(/<span style="color: var\(--text-color\);">(.*?)<\/span>/g,"$1");Ia=Ra.Du.id;Pa=Ra.PageNumber;Wa=Ca[Pa];Qa=Wa.galleys.find(function(Ab){return Ab.id===Ia});Fa=ka(Qa.contents);Ea=b(Pa,Wa,Fa,Ja,Ia);if(""===Ea)return[3,2];Ua=new TextEncoder;Va=Ua.encode(Ea);Xa=Va.buffer;cb=Object(na.c)()||"https://www.pdftron.com/webfonts/v2/";eb=Ka.getDocument();return[4,eb.Be([Pa])];case 1:return hb=Db.ea(),Ua=new TextEncoder,kb=Ua.encode(""),sb=kb.buffer,wa.postMessage({cmd:"importText",
|
|
28
|
+
pdfFile:hb,pageNumber:Pa,webFontURL:cb,galleyId:Ia,importData:Xa,tableData:sb},[Xa,sb]),pb={},Qa&&(tb=Qa.galleyBox,pb={top:tb.top,left:tb.left,bottom:tb.bottom,right:tb.right}),Object(va.h)(Fa,Ja,pb),[3,3];case 2:Object(ra.g)("Unable to generate import XML"),Db.label=3;case 3:return[2]}})})},iaa:function(Ra){if(Ra)return ka(Ra.contents);Object(ra.g)("Unable to extract document content")}}},474:function(Ba,ua,r){var pa=r(1);Ba=r(83);var ka=r(48);r=function(ma){function fa(){return null!==ma&&ma.apply(this,
|
|
29
|
+
arguments)||this}Object(pa.c)(fa,ma);fa.prototype.testSelection=function(da,z,x){return ka.a.al(da,z,x)};return fa}(Ba.a);ua.a=r}}]);}).call(this || window)
|
|
@@ -1,15 +1,14 @@
|
|
|
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([[7],{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
ma.prototype.AS=function(){return[]};return ma}(r(457).a);ua.a=Aa}}]);}).call(this || window)
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[7],{448:function(Ba,ua,r){r.r(ua);var pa=r(1),ka=r(475),ma=r(476),fa;(function(da){da[da.EXTERNAL_XFDF_NOT_REQUESTED=0]="EXTERNAL_XFDF_NOT_REQUESTED";da[da.EXTERNAL_XFDF_NOT_AVAILABLE=1]="EXTERNAL_XFDF_NOT_AVAILABLE";da[da.EXTERNAL_XFDF_AVAILABLE=2]="EXTERNAL_XFDF_AVAILABLE"})(fa||(fa={}));Ba=function(){function da(z){this.aa=z;this.state=fa.EXTERNAL_XFDF_NOT_REQUESTED}da.prototype.Tba=function(){var z=this;return function(x,y,f){return Object(pa.b)(z,
|
|
3
|
+
void 0,void 0,function(){var e,a,b,h,n,ba,w,ea=this,ja;return Object(pa.d)(this,function(aa){switch(aa.label){case 0:if(this.state!==fa.EXTERNAL_XFDF_NOT_REQUESTED)return[3,2];e=this.aa.getDocument().ps();return[4,this.naa(e)];case 1:a=aa.ea(),b=this.r6(a),this.iI=null!==(ja=null===b||void 0===b?void 0:b.parse())&&void 0!==ja?ja:null,this.state=null===this.iI?fa.EXTERNAL_XFDF_NOT_AVAILABLE:fa.EXTERNAL_XFDF_AVAILABLE,aa.label=2;case 2:if(this.state===fa.EXTERNAL_XFDF_NOT_AVAILABLE)return f(x),[2];
|
|
4
|
+
h=new DOMParser;n=h.parseFromString(x,"text/xml");y.forEach(function(ca){ea.merge(n,ea.iI,ca-1)});ba=new XMLSerializer;w=ba.serializeToString(n);f(w);return[2]}})})}};da.prototype.YL=function(z){this.naa=z};da.prototype.le=function(){this.iI=void 0;this.state=fa.EXTERNAL_XFDF_NOT_REQUESTED};da.prototype.r6=function(z){return z?Array.isArray(z)?new ka.a(z):"string"!==typeof z?null:(new DOMParser).parseFromString(z,"text/xml").querySelector("xfdf > add")?new ka.a(z):new ma.a(z):null};da.prototype.merge=
|
|
5
|
+
function(z,x,y){var f=this;0===y&&(this.mea(z,x.kp),this.oea(z,x.QH));var e=x.ca[y];e&&(this.pea(z,e.ln),this.rea(z,e.RZ,x.Yv),this.qea(z,e.page,y),this.nea(z,e.HR));e=this.aa.Ob();if(y===e-1){var a=x.Yv;Object.keys(a).forEach(function(b){a[b].yJ||f.sV(z,b,a[b])})}};da.prototype.mea=function(z,x){null!==x&&(z=this.lv(z),this.Bq(z,"calculation-order",x))};da.prototype.oea=function(z,x){null!==x&&(z=this.lv(z),this.Bq(z,"document-actions",x))};da.prototype.pea=function(z,x){var y=this,f=this.kv(z.querySelector("xfdf"),
|
|
6
|
+
"annots");Object.keys(x).forEach(function(e){y.Bq(f,'[name="'+e+'"]',x[e])})};da.prototype.rea=function(z,x,y){var f=this;if(0!==x.length){var e=this.lv(z);x.forEach(function(a){var b=a.getAttribute("field"),h=y[b];h&&(f.sV(z,b,h),f.Bq(e,"null",a))})}};da.prototype.sV=function(z,x,y){var f=this.lv(z);null!==y.OB&&this.Bq(f,'ffield [name="'+x+'"]',y.OB);z=this.kv(z.querySelector("xfdf"),"fields");x=x.split(".");this.iL(z,x,0,y.value);y.yJ=!0};da.prototype.qea=function(z,x,y){null!==x&&(z=this.lv(z),
|
|
7
|
+
z=this.kv(z,"pages"),this.Bq(z,'[number="'+(y+1)+'"]',x))};da.prototype.nea=function(z,x){Object.keys(x).forEach(function(y){(y=z.querySelector('annots [name="'+y+'"]'))&&y.parentElement.removeChild(y)})};da.prototype.iL=function(z,x,y,f){if(y===x.length)x=document.createElementNS("","value"),x.textContent=f,this.Bq(z,"value",x);else{var e=x[y];this.kv(z,'[name="'+e+'"]',"field").setAttribute("name",e);z=z.querySelectorAll('[name="'+e+'"]');1===z.length?this.iL(z[0],x,y+1,f):(e=this.Z9(z),this.iL(y===
|
|
8
|
+
x.length-1?e:this.$ka(z,e),x,y+1,f))}};da.prototype.Z9=function(z){for(var x=null,y=0;y<z.length;y++){var f=z[y];if(0===f.childElementCount||1===f.childElementCount&&"value"===f.children[0].tagName){x=f;break}}return x};da.prototype.$ka=function(z,x){for(var y=0;y<z.length;y++)if(z[y]!==x)return z[y];return null};da.prototype.Bq=function(z,x,y){x=z.querySelector(x);null!==x&&z.removeChild(x);z.appendChild(y)};da.prototype.lv=function(z){var x=z.querySelector("pdf-info");if(null!==x)return x;x=this.kv(z.querySelector("xfdf"),
|
|
9
|
+
"pdf-info");x.setAttribute("xmlns","http://www.pdftron.com/pdfinfo");x.setAttribute("version","2");x.setAttribute("import-version","4");return x};da.prototype.kv=function(z,x,y){var f=z.querySelector(x);if(null!==f)return f;f=document.createElementNS("",y||x);z.appendChild(f);return f};return da}();ua["default"]=Ba},460:function(Ba,ua){Ba=function(){function r(){}r.prototype.rA=function(pa){var ka={kp:null,QH:null,Yv:{},ca:{}};pa=(new DOMParser).parseFromString(pa,"text/xml");ka.kp=pa.querySelector("pdf-info calculation-order");
|
|
10
|
+
ka.QH=pa.querySelector("pdf-info document-actions");ka.Yv=this.jfa(pa);ka.ca=this.vfa(pa);return ka};r.prototype.jfa=function(pa){var ka=pa.querySelector("fields");pa=pa.querySelectorAll("pdf-info > ffield");if(null===ka&&null===pa)return{};var ma={};this.b4(ma,ka);this.Z3(ma,pa);return ma};r.prototype.b4=function(pa,ka){if(null!==ka&&ka.children){for(var ma=[],fa=0;fa<ka.children.length;fa++){var da=ka.children[fa];ma.push({name:da.getAttribute("name"),element:da})}for(;0!==ma.length;)for(ka=ma.shift(),
|
|
11
|
+
fa=0;fa<ka.element.children.length;fa++)da=ka.element.children[fa],"value"===da.tagName?pa[ka.name]={value:da.textContent,OB:null,yJ:!1}:da.children&&ma.push({name:ka.name+"."+da.getAttribute("name"),element:da})}};r.prototype.Z3=function(pa,ka){ka.forEach(function(ma){var fa=ma.getAttribute("name");pa[fa]?pa[fa].OB=ma:pa[fa]={value:null,OB:ma,yJ:!1}})};r.prototype.vfa=function(pa){var ka=this,ma={};pa.querySelectorAll("pdf-info widget").forEach(function(fa){var da=parseInt(fa.getAttribute("page"),
|
|
12
|
+
10)-1;ka.OC(ma,da);ma[da].RZ.push(fa)});pa.querySelectorAll("pdf-info page").forEach(function(fa){var da=parseInt(fa.getAttribute("number"),10)-1;ka.OC(ma,da);ma[da].page=fa});this.iT(pa).forEach(function(fa){var da=parseInt(fa.getAttribute("page"),10),z=fa.getAttribute("name");ka.OC(ma,da);ma[da].ln[z]=fa});this.VS(pa).forEach(function(fa){var da=parseInt(fa.getAttribute("page"),10);fa=fa.textContent;ka.OC(ma,da);ma[da].HR[fa]=!0});return ma};r.prototype.OC=function(pa,ka){pa[ka]||(pa[ka]={ln:{},
|
|
13
|
+
HR:{},RZ:[],page:null})};return r}();ua.a=Ba},475:function(Ba,ua,r){var pa=r(1),ka=r(0);r.n(ka);Ba=function(ma){function fa(da){var z=ma.call(this)||this;z.M9=Array.isArray(da)?da:[da];return z}Object(pa.c)(fa,ma);fa.prototype.parse=function(){var da=this,z={kp:null,QH:null,Yv:{},ca:{}};this.M9.forEach(function(x){z=Object(ka.merge)(z,da.rA(x))});return z};fa.prototype.iT=function(da){var z=[];da.querySelectorAll("add > *").forEach(function(x){z.push(x)});da.querySelectorAll("modify > *").forEach(function(x){z.push(x)});
|
|
14
|
+
return z};fa.prototype.VS=function(da){return da.querySelectorAll("delete > *")};return fa}(r(460).a);ua.a=Ba},476:function(Ba,ua,r){var pa=r(1);Ba=function(ka){function ma(fa){var da=ka.call(this)||this;da.N9=fa;return da}Object(pa.c)(ma,ka);ma.prototype.parse=function(){return this.rA(this.N9)};ma.prototype.iT=function(fa){return fa.querySelectorAll("annots > *")};ma.prototype.VS=function(){return[]};return ma}(r(460).a);ua.a=Ba}}]);}).call(this || window)
|
|
@@ -1,7 +1,7 @@
|
|
|
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([[8],{
|
|
3
|
-
|
|
4
|
-
this.status&&(
|
|
5
|
-
if(!f.
|
|
6
|
-
function(h){f.trigger(
|
|
7
|
-
ERROR:"error"};return
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[8],{440:function(Ba,ua,r){r.r(ua);var pa=r(1);Ba=r(51);var ka=r(163),ma=r(375),fa=r(229),da=window;r=function(){function z(x,y){this.GU=function(f){f=f.split(".");return f[f.length-1].match(/(jpg|jpeg|png|gif)$/i)};y=y||{};this.url=x;this.filename=y.filename||x;this.af=y.customHeaders;this.Jla=!!y.useDownloader;this.withCredentials=!!y.withCredentials}z.prototype.rE=function(x){this.af=x};z.prototype.getCustomHeaders=function(){return this.af};
|
|
3
|
+
z.prototype.getFileData=function(x){var y=this,f=this,e=new XMLHttpRequest,a=0===this.url.indexOf("blob:")?"blob":"arraybuffer";e.open("GET",this.url,!0);e.withCredentials=this.withCredentials;e.responseType=a;this.af&&Object.keys(this.af).forEach(function(h){e.setRequestHeader(h,y.af[h])});var b=/^https?:/i.test(this.url);e.addEventListener("load",function(h){return Object(pa.b)(this,void 0,void 0,function(){var n,ba,w,ea,ja,aa;return Object(pa.d)(this,function(ca){switch(ca.label){case 0:if(200!==
|
|
4
|
+
this.status&&(b||0!==this.status))return[3,10];f.trigger(z.Events.DOCUMENT_LOADING_PROGRESS,[h.loaded,h.loaded]);if("blob"!==this.responseType)return[3,4];n=this.response;return f.GU(f.filename)?[4,Object(fa.b)(n)]:[3,2];case 1:return ba=ca.ea(),f.fileSize=ba.byteLength,x(new Uint8Array(ba)),[3,3];case 2:w=new FileReader,w.onload=function(ia){ia=new Uint8Array(ia.target.result);f.fileSize=ia.length;x(ia)},w.readAsArrayBuffer(n),ca.label=3;case 3:return[3,9];case 4:ca.vg.push([4,8,,9]);ea=new Uint8Array(this.response);
|
|
5
|
+
if(!f.GU(f.filename))return[3,6];n=new Blob([ea.buffer]);return[4,Object(fa.b)(n)];case 5:return ba=ca.ea(),f.fileSize=ba.byteLength,x(new Uint8Array(ba)),[3,7];case 6:f.fileSize=ea.length,x(ea),ca.label=7;case 7:return[3,9];case 8:return ca.ea(),f.trigger(z.Events.ERROR,["pdfLoad","Out of memory"]),[3,9];case 9:return[3,11];case 10:ja=h.currentTarget,aa=Object(ka.b)(ja),f.trigger(z.Events.ERROR,["pdfLoad",this.status+" "+ja.statusText,aa]),ca.label=11;case 11:return f.Ty=null,[2]}})})},!1);e.onprogress=
|
|
6
|
+
function(h){f.trigger(z.Events.DOCUMENT_LOADING_PROGRESS,[h.loaded,0<h.total?h.total:0])};e.addEventListener("error",function(){f.trigger(z.Events.ERROR,["pdfLoad","Network failure"]);f.Ty=null},!1);e.send();this.Ty=e};z.prototype.getFile=function(){var x=this;return new Promise(function(y){da.utils.isJSWorker&&y(x.url);if(x.Jla){var f=Object(pa.a)({url:x.url},x.af?{customHeaders:x.af}:{});y(f)}y(null)})};z.prototype.abort=function(){this.Ty&&(this.Ty.abort(),this.Ty=null)};z.Events={DOCUMENT_LOADING_PROGRESS:"documentLoadingProgress",
|
|
7
|
+
ERROR:"error"};return z}();Object(Ba.a)(r);Object(ma.a)(r);Object(ma.b)(r);ua["default"]=r}}]);}).call(this || window)
|
|
@@ -1,13 +1,13 @@
|
|
|
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([[0],{
|
|
3
|
-
this.withCredentials=
|
|
4
|
-
this.request.overrideMimeType("text/plain; charset=x-user-defined"):this.request.setRequestHeader("Accept-Charset","x-user-defined");this.status=y.a.NOT_STARTED}ea.prototype.start=function(ja){var
|
|
5
|
-
y.a.ERROR,ja({code:
|
|
6
|
-
function(ja){var
|
|
7
|
-
"":
|
|
8
|
-
this.
|
|
9
|
-
function(){var
|
|
10
|
-
!0;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
!1;ja.
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[0],{433:function(Ba,ua,r){r.r(ua);r.d(ua,"ByteRangeRequest",function(){return ba});var pa=r(1),ka=r(0);r.n(ka);var ma=r(2),fa=r(147);Ba=r(94);var da=r(246),z=r(73),x=r(71),y=r(245),f=r(163);r=r(375);var e=[],a=[],b=window,h=function(){return function(){this.em=1}}(),n;(function(ea){ea[ea.UNSENT=0]="UNSENT";ea[ea.DONE=4]="DONE"})(n||(n={}));var ba=function(){function ea(ja,aa,ca,ia){var ha=this;this.url=ja;this.range=aa;this.af=ca;
|
|
3
|
+
this.withCredentials=ia;this.K1=n;this.request=new XMLHttpRequest;this.request.open("GET",this.url,!0);b.Uint8Array&&(this.request.responseType="arraybuffer");ia&&(this.request.withCredentials=ia);w.DISABLE_RANGE_HEADER||(Object(ka.isUndefined)(aa.stop)?this.request.setRequestHeader("Range","bytes="+aa.start):this.request.setRequestHeader("Range",["bytes=",aa.start,"-",aa.stop-1].join("")));ca&&Object.keys(ca).forEach(function(la){ha.request.setRequestHeader(la,ca[la])});this.request.overrideMimeType?
|
|
4
|
+
this.request.overrideMimeType("text/plain; charset=x-user-defined"):this.request.setRequestHeader("Accept-Charset","x-user-defined");this.status=y.a.NOT_STARTED}ea.prototype.start=function(ja){var aa=this,ca=this.request;ca.onreadystatechange=function(){if(aa.aborted)return aa.status=y.a.ABORTED,ja({code:y.a.ABORTED});if(this.readyState===aa.K1.DONE){aa.pC();var ia=0===window.document.URL.indexOf("file:///");200===ca.status||206===ca.status||ia&&0===ca.status?(ia=b.vT(this),aa.EM(ia,ja)):(aa.status=
|
|
5
|
+
y.a.ERROR,ja({code:aa.status,status:aa.status}))}};this.request.send(null);this.status=y.a.STARTED};ea.prototype.EM=function(ja,aa){this.status=y.a.SUCCESS;if(aa)return aa(!1,ja)};ea.prototype.abort=function(){this.pC();this.aborted=!0;this.request.abort()};ea.prototype.pC=function(){var ja=Object(f.c)(this.url,this.range,a);-1!==ja&&a.splice(ja,1);if(0<e.length){ja=e.shift();var aa=new ea(ja.url,ja.range,this.af,this.withCredentials);ja.request=aa;a.push(ja);aa.start(Object(f.d)(ja))}};ea.prototype.extend=
|
|
6
|
+
function(ja){var aa=Object.assign({},this,ja.prototype);aa.constructor=ja;return aa};return ea}(),w=function(ea){function ja(aa,ca,ia,ha,la){ia=ea.call(this,aa,ia,ha)||this;ia.hm={};ia.TA=ca;ia.url=aa;ia.DISABLE_RANGE_HEADER=!1;ia.Kx=ba;ia.BN=3;ia.af=la||{};return ia}Object(pa.c)(ja,ea);ja.prototype.Ev=function(aa,ca,ia){var ha=-1===aa.indexOf("?")?"?":"&";switch(ia){case !1:case x.a.NEVER_CACHE:aa=aa+ha+"_="+Object(ka.uniqueId)();break;case !0:case x.a.CACHE:aa=aa+ha+"_="+ca.start+","+(Object(ka.isUndefined)(ca.stop)?
|
|
7
|
+
"":ca.stop)}return aa};ja.prototype.uR=function(aa,ca,ia,ha){void 0===ia&&(ia={});return new this.Kx(aa,ca,ia,ha)};ja.prototype.C9=function(aa,ca,ia,ha,la){for(var na=0;na<e.length;na++)if(Object(ka.isEqual)(e[na].range,ca)&&Object(ka.isEqual)(e[na].url,aa))return e[na].Kg.push(ha),e[na].uD++,null;for(na=0;na<a.length;na++)if(Object(ka.isEqual)(a[na].range,ca)&&Object(ka.isEqual)(a[na].url,aa))return a[na].Kg.push(ha),a[na].uD++,null;ia={url:aa,range:ca,TA:ia,Kg:[ha],uD:1};if(0===e.length&&a.length<
|
|
8
|
+
this.BN)return a.push(ia),ia.request=this.uR(aa,ca,la,this.withCredentials),ia;e.push(ia);return null};ja.prototype.ao=function(aa,ca,ia){var ha=this.Ev(aa,ca,this.TA);(aa=this.C9(ha,ca,this.TA,ia,this.af))&&aa.request.start(Object(f.d)(aa));return function(){var la=Object(f.c)(ha,ca,a);if(-1!==la){var na=--a[la].uD;0===na&&a[la].request&&a[la].request.abort()}else la=Object(f.c)(ha,ca,e),-1!==la&&(na=--e[la].uD,0===na&&e.splice(la,1))}};ja.prototype.$S=function(){return{start:-fa.a}};ja.prototype.bca=
|
|
9
|
+
function(){var aa=-(fa.a+fa.e);return{start:aa-fa.d,end:aa}};ja.prototype.bt=function(aa){var ca=this;this.ZA=!0;var ia=fa.a;this.ao(this.url,this.$S(),function(ha,la,na){function qa(){var ra=ca.Xd.WS();ca.ao(ca.url,ra,function(ta,va){if(ta)return Object(ma.j)("Error loading central directory: "+ta),aa(ta);va=Object(z.a)(va);if(va.length!==ra.stop-ra.start)return aa("Invalid XOD file: Zip central directory data is wrong size! Should be "+(ra.stop-ra.start)+" but is "+va.length);ca.Xd.QW(va);ca.rH=
|
|
10
|
+
!0;ca.ZA=!1;return aa(!1)})}if(ha)return Object(ma.j)("Error loading end header: "+ha),aa(ha,la,na);la=Object(z.a)(la);if(la.length!==ia)return aa("Invalid XOD file: Zip end header data is wrong size!");try{ca.Xd=new da.a(la)}catch(ra){return aa(ra)}ca.Xd.Gda?ca.ao(ca.url,ca.bca(),function(ra,ta){if(ra)return Object(ma.j)("Error loading zip64 header: "+ra),aa(ra);ta=Object(z.a)(ta);ca.Xd.Zda(ta);qa()}):qa()})};ja.prototype.sT=function(aa){aa(Object.keys(this.Xd.An))};ja.prototype.lL=function(aa,ca){var ia=
|
|
11
|
+
this;if(this.Xd.mR(aa)){var ha=this.Xd.jC(aa);if(ha in this.hm){var la=this.Th[aa];la.Pr=this.hm[ha];la.Pr.em++;la.cancel=la.Pr.cancel}else{var na=this.Xd.paa(aa),qa=this.ao(this.url,na,function(ta,va){ta?(Object(ma.j)('Error loading part "'+aa+'": '+ta),ia.ao(ia.url,na,function(oa,wa){if(oa)return ca(oa,aa);ia.UW(wa,na,ha,aa,ca)})):ia.UW(va,na,ha,aa,ca)}),ra=this.Th[aa];ra&&(ra.$Y=!0,ra.cancel=function(){ra.Pr.em--;0===ra.Pr.em&&(qa(),delete ia.hm[ha])},this.hm[ha]=new h(ha),ra.Pr=this.hm[ha],ra.Pr.cancel=
|
|
12
|
+
ra.cancel)}}else delete this.Th[aa],ca(Error('File not found: "'+aa+'"'),aa)};ja.prototype.UW=function(aa,ca,ia,ha,la){if(aa.length!==ca.stop-ca.start)la(Error("Part data is wrong size!"),ha);else{do{if(!this.hm[ia])return;ha=this.hm[ia].em;for(var na=ca.Cq.length,qa=0;qa<na;++qa){var ra=ca.Cq[qa];la(!1,ra.yq,aa["string"===typeof aa?"substring":"subarray"](ra.start,ra.stop),this.Xd.wU(ra.yq));ra.yq in this.Th&&delete this.Th[ra.yq]}}while(ha!==this.hm[ia].em);delete this.hm[ia]}};ja.DISABLE_RANGE_HEADER=
|
|
13
|
+
!1;ja.BN=3;return ja}(Ba.a);(function(ea){function ja(aa,ca,ia){var ha=ea.call(this)||this,la;for(la in aa)ha[la]=aa[la];ha.$oa=aa;ha.startOffset=ca;ha.endOffset=ia;ha.uR=function(na,qa,ra,ta){Object(ka.isUndefined)(qa.stop)?(qa.start+=ha.endOffset,qa.stop=ha.endOffset):(qa.start+=ha.startOffset,qa.stop+=ha.startOffset);na=ha.Ev(ha.url,qa,ha.TA);return new aa.Kx(na,qa,ra,ta)};return ha}Object(pa.c)(ja,ea);return ja})(w);Object(r.a)(w);Object(r.b)(w);ua["default"]=w}}]);}).call(this || window)
|
|
@@ -1,3 +1,3 @@
|
|
|
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([[9],{
|
|
3
|
-
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[9],{441:function(Ba,ua,r){r.r(ua);var pa=r(1),ka=r(245);Ba=r(433);r(34);r=r(375);var ma=function(fa){function da(z,x){var y=fa.call(this,z,x)||this;y.url=z;y.range=x;y.status=ka.a.NOT_STARTED;return y}Object(pa.c)(da,fa);da.prototype.start=function(){var z=document.createElement("IFRAME");z.setAttribute("src",this.url);document.documentElement.appendChild(z);z.parentNode.removeChild(z);this.status=ka.a.STARTED;this.pC()};return da}(Ba.ByteRangeRequest);
|
|
3
|
+
Ba=function(fa){function da(z,x,y,f){z=fa.call(this,z,x,y,f)||this;z.Kx=ma;return z}Object(pa.c)(da,fa);da.prototype.Ev=function(z,x){return z+"#"+x.start+"&"+(x.stop?x.stop:"")};return da}(Ba["default"]);Object(r.a)(Ba);Object(r.b)(Ba);ua["default"]=Ba}}]);}).call(this || window)
|
|
@@ -1,5 +1,5 @@
|
|
|
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([[10],{
|
|
3
|
-
|
|
4
|
-
a.
|
|
5
|
-
f.
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[10],{435:function(Ba,ua,r){r.r(ua);var pa=r(1),ka=r(2),ma=r(147);Ba=r(94);var fa=r(246);r=r(375);var da=window;Ba=function(z){function x(y,f,e){f=z.call(this,y,f,e)||this;if(y.name&&"xod"!==y.name.toLowerCase().split(".").pop())throw Error("Not an XOD file");if(!da.FileReader||!da.File||!da.Blob)throw Error("File API is not supported in this browser");f.file=y;f.cB=[];f.EH=0;return f}Object(pa.c)(x,z);x.prototype.oK=function(y,f,
|
|
3
|
+
e){var a=this,b=new FileReader;b.onloadend=function(h){if(0<a.cB.length){var n=a.cB.shift();n.Hga.readAsBinaryString(n.file)}else a.EH--;if(b.error){h=b.error;if(h.code===h.ABORT_ERR){Object(ka.j)("Request for chunk "+f.start+"-"+f.stop+" was aborted");return}return e(h)}if(h=b.content||h.target.result)return e(!1,h);Object(ka.j)("No data was returned from FileReader.")};f&&(y=(y.slice||y.webkitSlice||y.mozSlice||y.boa).call(y,f.start,f.stop));0===a.cB.length&&50>a.EH?(b.readAsBinaryString(y),a.EH++):
|
|
4
|
+
a.cB.push({Hga:b,file:y});return function(){b.abort()}};x.prototype.bt=function(y){var f=this;f.ZA=!0;var e=ma.a;f.oK(f.file,{start:-e,stop:f.file.size},function(a,b){if(a)return Object(ka.j)("Error loading end header: %s "+a),y(a);if(b.length!==e)throw Error("Zip end header data is wrong size!");f.Xd=new fa.a(b);var h=f.Xd.WS();f.oK(f.file,h,function(n,ba){if(n)return Object(ka.j)("Error loading central directory: %s "+n),y(n);if(ba.length!==h.stop-h.start)throw Error("Zip central directory data is wrong size!");
|
|
5
|
+
f.Xd.QW(ba);f.rH=!0;f.ZA=!1;return y(!1)})})};x.prototype.lL=function(y,f){var e=this,a=e.Th[y];if(e.Xd.mR(y)){var b=e.Xd.kw(y),h=e.oK(e.file,b,function(n,ba){delete e.Th[y];if(n)return Object(ka.j)('Error loading part "%s": %s, '+y+", "+n),f(n);if(ba.length!==b.stop-b.start)throw Error("Part data is wrong size!");f(!1,y,ba,e.Xd.wU(y))});a.$Y=!0;a.cancel=h}else f(Error('File not found: "'+y+'"'),y)};return x}(Ba.a);Object(r.a)(Ba);Object(r.b)(Ba);ua["default"]=Ba}}]);}).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([[11],{
|
|
3
|
-
[4,Object(ma.b)(x)]:[3,2];case 1:
|
|
4
|
-
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[11],{436:function(Ba,ua,r){r.r(ua);var pa=r(1);Ba=r(51);var ka=r(375),ma=r(229),fa=r(19),da=window;r=function(){function z(x){var y=this;this.fda=function(f){return f&&("image"===f.type.split("/")[0].toLowerCase()||f.name&&!!f.name.match(/.(jpg|jpeg|png|gif)$/i))};this.file=x;this.sda=new Promise(function(f){return Object(pa.b)(y,void 0,void 0,function(){var e;return Object(pa.d)(this,function(a){switch(a.label){case 0:return this.fda(this.file)?
|
|
3
|
+
[4,Object(ma.b)(x)]:[3,2];case 1:e=a.ea(),this.file=fa.p?new Blob([e],{type:x.type}):new File([e],null===x||void 0===x?void 0:x.name,{type:x.type}),a.label=2;case 2:return f(!0),[2]}})})})}z.prototype.getFileData=function(x){var y=this,f=new FileReader;f.onload=function(e){y.trigger(z.Events.DOCUMENT_LOADING_PROGRESS,[e.loaded,e.loaded]);x(new Uint8Array(e.target.result))};f.onprogress=function(e){e.lengthComputable&&y.trigger(z.Events.DOCUMENT_LOADING_PROGRESS,[e.loaded,0<e.total?e.total:0])};f.readAsArrayBuffer(this.file)};
|
|
4
|
+
z.prototype.getFile=function(){return Object(pa.b)(this,void 0,Promise,function(){return Object(pa.d)(this,function(x){switch(x.label){case 0:return[4,this.sda];case 1:return x.ea(),da.utils.isJSWorker?[2,this.file.path]:[2,this.file]}})})};z.Events={DOCUMENT_LOADING_PROGRESS:"documentLoadingProgress"};return z}();Object(Ba.a)(r);Object(ka.a)(r);Object(ka.b)(r);ua["default"]=r}}]);}).call(this || window)
|