/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[5],{471:function(Ba,wa,r){r.r(wa);var oa=r(0),na=r(493),ma=r(494),fa;(function(ea){ea[ea.EXTERNAL_XFDF_NOT_REQUESTED=0]="EXTERNAL_XFDF_NOT_REQUESTED";ea[ea.EXTERNAL_XFDF_NOT_AVAILABLE=1]="EXTERNAL_XFDF_NOT_AVAILABLE";ea[ea.EXTERNAL_XFDF_AVAILABLE=2]="EXTERNAL_XFDF_AVAILABLE"})(fa||(fa={}));Ba=function(){function ea(aa){this.aa=aa;this.state=fa.EXTERNAL_XFDF_NOT_REQUESTED}ea.prototype.Ufa=function(){var aa=this;return function(w,
x,h){return Object(oa.b)(aa,void 0,void 0,function(){var e,a,b,f,n,z,y,da=this,ia;return Object(oa.d)(this,function(ca){switch(ca.label){case 0:if(this.state!==fa.EXTERNAL_XFDF_NOT_REQUESTED)return[3,2];e=this.aa.getDocument().et();return[4,this.dea(e)];case 1:a=ca.ca(),b=this.T9(a),this.GJ=null!==(ia=null===b||void 0===b?void 0:b.parse())&&void 0!==ia?ia:null,this.state=null===this.GJ?fa.EXTERNAL_XFDF_NOT_AVAILABLE:fa.EXTERNAL_XFDF_AVAILABLE,ca.label=2;case 2:if(this.state===fa.EXTERNAL_XFDF_NOT_AVAILABLE)return h(w),
[2];f=new DOMParser;n=f.parseFromString(w,"text/xml");x.forEach(function(ba){da.merge(n,da.GJ,ba-1)});z=new XMLSerializer;y=z.serializeToString(n);h(y);return[2]}})})}};ea.prototype.JN=function(aa){this.dea=aa};ea.prototype.ye=function(){this.GJ=void 0;this.state=fa.EXTERNAL_XFDF_NOT_REQUESTED};ea.prototype.T9=function(aa){return aa?Array.isArray(aa)?new na.a(aa):"string"!==typeof aa?null:(new DOMParser).parseFromString(aa,"text/xml").querySelector("xfdf > add")?new na.a(aa):new ma.a(aa):null};ea.prototype.merge=
function(aa,w,x){var h=this;0===x&&(this.oia(aa,w.Op),this.qia(aa,w.nJ));var e=w.da[x];e&&(this.ria(aa,e.Nn),this.tia(aa,e.L1,w.Qw),this.sia(aa,e.page,x),this.pia(aa,e.eU));e=this.aa.Qb();if(x===e-1){var a=w.Qw;Object.keys(a).forEach(function(b){a[b].WK||h.eY(aa,b,a[b])})}};ea.prototype.oia=function(aa,w){null!==w&&(aa=this.bw(aa),this.er(aa,"calculation-order",w))};ea.prototype.qia=function(aa,w){null!==w&&(aa=this.bw(aa),this.er(aa,"document-actions",w))};ea.prototype.ria=function(aa,w){var x=this,
h=this.aw(aa.querySelector("xfdf"),"annots");Object.keys(w).forEach(function(e){x.er(h,'[name="'+e+'"]',w[e])})};ea.prototype.tia=function(aa,w,x){var h=this;if(0!==w.length){var e=this.bw(aa);w.forEach(function(a){var b=a.getAttribute("field"),f=x[b];f&&(h.eY(aa,b,f),h.er(e,"null",a))})}};ea.prototype.eY=function(aa,w,x){var h=this.bw(aa);null!==x.OC&&this.er(h,'ffield [name="'+w+'"]',x.OC);aa=this.aw(aa.querySelector("xfdf"),"fields");w=w.split(".");this.RM(aa,w,0,x.value);x.WK=!0};ea.prototype.sia=
function(aa,w,x){null!==w&&(aa=this.bw(aa),aa=this.aw(aa,"pages"),this.er(aa,'[number="'+(x+1)+'"]',w))};ea.prototype.pia=function(aa,w){Object.keys(w).forEach(function(x){(x=aa.querySelector('annots [name="'+x+'"]'))&&x.parentElement.removeChild(x)})};ea.prototype.RM=function(aa,w,x,h){if(x===w.length)w=document.createElementNS("","value"),w.textContent=h,this.er(aa,"value",w);else{var e=w[x];this.aw(aa,'[name="'+e+'"]',"field").setAttribute("name",e);aa=aa.querySelectorAll('[name="'+e+'"]');1===
aa.length?this.RM(aa[0],w,x+1,h):(e=this.Mca(aa),this.RM(x===w.length-1?e:this.Mpa(aa,e),w,x+1,h))}};ea.prototype.Mca=function(aa){for(var w=null,x=0;x<aa.length;x++){var h=aa[x];if(0===h.childElementCount||1===h.childElementCount&&"value"===h.children[0].tagName){w=h;break}}return w};ea.prototype.Mpa=function(aa,w){for(var x=0;x<aa.length;x++)if(aa[x]!==w)return aa[x];return null};ea.prototype.er=function(aa,w,x){w=aa.querySelector(w);null!==w&&aa.removeChild(w);aa.appendChild(x)};ea.prototype.bw=
function(aa){var w=aa.querySelector("pdf-info");if(null!==w)return w;w=this.aw(aa.querySelector("xfdf"),"pdf-info");w.setAttribute("xmlns","http://www.pdftron.com/pdfinfo");w.setAttribute("version","2");w.setAttribute("import-version","4");return w};ea.prototype.aw=function(aa,w,x){var h=aa.querySelector(w);if(null!==h)return h;h=document.createElementNS("",x||w);aa.appendChild(h);return h};return ea}();wa["default"]=Ba},482:function(Ba,wa){Ba=function(){function r(){}r.prototype.sB=function(oa){var na=
{Op:null,nJ:null,Qw:{},da:{}};oa=(new DOMParser).parseFromString(oa,"text/xml");na.Op=oa.querySelector("pdf-info calculation-order");na.nJ=oa.querySelector("pdf-info document-actions");na.Qw=this.nja(oa);na.da=this.zja(oa);return na};r.prototype.nja=function(oa){var na=oa.querySelector("fields");oa=oa.querySelectorAll("pdf-info > ffield");if(null===na&&null===oa)return{};var ma={};this.g7(ma,na);this.e7(ma,oa);return ma};r.prototype.g7=function(oa,na){if(null!==na&&na.children){for(var ma=[],fa=0;fa<
na.children.length;fa++){var ea=na.children[fa];ma.push({name:ea.getAttribute("name"),element:ea})}for(;0!==ma.length;)for(na=ma.shift(),fa=0;fa<na.element.children.length;fa++)ea=na.element.children[fa],"value"===ea.tagName?oa[na.name]={value:ea.textContent,OC:null,WK:!1}:ea.children&&ma.push({name:na.name+"."+ea.getAttribute("name"),element:ea})}};r.prototype.e7=function(oa,na){na.forEach(function(ma){var fa=ma.getAttribute("name");oa[fa]?oa[fa].OC=ma:oa[fa]={value:null,OC:ma,WK:!1}})};r.prototype.zja=
function(oa){var na=this,ma={};oa.querySelectorAll("pdf-info widget").forEach(function(fa){var ea=parseInt(fa.getAttribute("page"),10)-1;na.SD(ma,ea);ma[ea].L1.push(fa)});oa.querySelectorAll("pdf-info page").forEach(function(fa){var ea=parseInt(fa.getAttribute("number"),10)-1;na.SD(ma,ea);ma[ea].page=fa});this.MV(oa).forEach(function(fa){var ea=parseInt(fa.getAttribute("page"),10),aa=fa.getAttribute("name");na.SD(ma,ea);ma[ea].Nn[aa]=fa});this.xV(oa).forEach(function(fa){var ea=parseInt(fa.getAttribute("page"),
10);fa=fa.textContent;na.SD(ma,ea);ma[ea].eU[fa]=!0});return ma};r.prototype.SD=function(oa,na){oa[na]||(oa[na]={Nn:{},eU:{},L1:[],page:null})};return r}();wa.a=Ba},493:function(Ba,wa,r){var oa=r(0),na=r(1);r.n(na);Ba=function(ma){function fa(ea){var aa=ma.call(this)||this;aa.xca=Array.isArray(ea)?ea:[ea];return aa}Object(oa.c)(fa,ma);fa.prototype.parse=function(){var ea=this,aa={Op:null,nJ:null,Qw:{},da:{}};this.xca.forEach(function(w){aa=Object(na.merge)(aa,ea.sB(w))});return aa};fa.prototype.MV=
function(ea){var aa=[];ea.querySelectorAll("add > *").forEach(function(w){aa.push(w)});ea.querySelectorAll("modify > *").forEach(function(w){aa.push(w)});return aa};fa.prototype.xV=function(ea){return ea.querySelectorAll("delete > *")};return fa}(r(482).a);wa.a=Ba},494:function(Ba,wa,r){var oa=r(0);Ba=function(na){function ma(fa){var ea=na.call(this)||this;ea.yca=fa;return ea}Object(oa.c)(ma,na);ma.prototype.parse=function(){return this.sB(this.yca)};ma.prototype.MV=function(fa){return fa.querySelectorAll("annots > *")};
ma.prototype.xV=function(){return[]};return ma}(r(482).a);wa.a=Ba}}]);}).call(this || window)
