/** 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([[7],{449:function(ia,ba,e){e.r(ba);var ea=e(1),x=e(476),ha=e(477),ca;(function(e){e[e.EXTERNAL_XFDF_NOT_REQUESTED=0]="EXTERNAL_XFDF_NOT_REQUESTED";e[e.EXTERNAL_XFDF_NOT_AVAILABLE=1]="EXTERNAL_XFDF_NOT_AVAILABLE";e[e.EXTERNAL_XFDF_AVAILABLE=2]="EXTERNAL_XFDF_AVAILABLE"})(ca||(ca={}));ia=function(){function e(e){this.aa=e;this.state=ca.EXTERNAL_XFDF_NOT_REQUESTED}e.prototype.mca=function(){var e=this;return function(w,x,n){return Object(ea.b)(e, void 0,void 0,function(){var e,f,r,y,aa,ba,da,ha=this,ia;return Object(ea.d)(this,function(h){switch(h.label){case 0:if(this.state!==ca.EXTERNAL_XFDF_NOT_REQUESTED)return[3,2];e=this.aa.getDocument().Bs();return[4,this.Iaa(e)];case 1:f=h.ea(),r=this.H6(f),this.nI=null!==(ia=null===r||void 0===r?void 0:r.parse())&&void 0!==ia?ia:null,this.state=null===this.nI?ca.EXTERNAL_XFDF_NOT_AVAILABLE:ca.EXTERNAL_XFDF_AVAILABLE,h.label=2;case 2:if(this.state===ca.EXTERNAL_XFDF_NOT_AVAILABLE)return n(w),[2];y= new DOMParser;aa=y.parseFromString(w,"text/xml");x.forEach(function(e){ha.merge(aa,ha.nI,e-1)});ba=new XMLSerializer;da=ba.serializeToString(aa);n(da);return[2]}})})}};e.prototype.hM=function(e){this.Iaa=e};e.prototype.se=function(){this.nI=void 0;this.state=ca.EXTERNAL_XFDF_NOT_REQUESTED};e.prototype.H6=function(e){return e?Array.isArray(e)?new x.a(e):"string"!==typeof e?null:(new DOMParser).parseFromString(e,"text/xml").querySelector("xfdf > add")?new x.a(e):new ha.a(e):null};e.prototype.merge= function(e,w,x){var n=this;0===x&&(this.Hea(e,w.wp),this.Jea(e,w.VH));var h=w.ca[x];h&&(this.Kea(e,h.wn),this.Mea(e,h.n_,w.kw),this.Lea(e,h.page,x),this.Iea(e,h.UR));h=this.aa.Wb();if(x===h-1){var f=w.kw;Object.keys(f).forEach(function(h){f[h].FJ||n.LV(e,h,f[h])})}};e.prototype.Hea=function(e,w){null!==w&&(e=this.yv(e),this.Mq(e,"calculation-order",w))};e.prototype.Jea=function(e,w){null!==w&&(e=this.yv(e),this.Mq(e,"document-actions",w))};e.prototype.Kea=function(e,w){var x=this,n=this.xv(e.querySelector("xfdf"), "annots");Object.keys(w).forEach(function(e){x.Mq(n,'[name="'+e+'"]',w[e])})};e.prototype.Mea=function(e,w,x){var n=this;if(0!==w.length){var h=this.yv(e);w.forEach(function(f){var r=f.getAttribute("field"),w=x[r];w&&(n.LV(e,r,w),n.Mq(h,"null",f))})}};e.prototype.LV=function(e,w,x){var n=this.yv(e);null!==x.TB&&this.Mq(n,'ffield [name="'+w+'"]',x.TB);e=this.xv(e.querySelector("xfdf"),"fields");w=w.split(".");this.rL(e,w,0,x.value);x.FJ=!0};e.prototype.Lea=function(e,w,x){null!==w&&(e=this.yv(e),e= this.xv(e,"pages"),this.Mq(e,'[number="'+(x+1)+'"]',w))};e.prototype.Iea=function(e,w){Object.keys(w).forEach(function(w){(w=e.querySelector('annots [name="'+w+'"]'))&&w.parentElement.removeChild(w)})};e.prototype.rL=function(e,w,x,n){if(x===w.length)w=document.createElementNS("","value"),w.textContent=n,this.Mq(e,"value",w);else{var h=w[x];this.xv(e,'[name="'+h+'"]',"field").setAttribute("name",h);e=e.querySelectorAll('[name="'+h+'"]');1===e.length?this.rL(e[0],w,x+1,n):(h=this.t$(e),this.rL(x=== w.length-1?h:this.ula(e,h),w,x+1,n))}};e.prototype.t$=function(e){for(var w=null,x=0;x ffield");if(null===x&&null===e)return{};var ba={};this.r4(ba,x);this.p4(ba,e);return ba};e.prototype.r4=function(e,x){if(null!==x&&x.children){for(var ba=[],ca=0;ca *").forEach(function(e){x.push(e)});e.querySelectorAll("modify > *").forEach(function(e){x.push(e)});return x};ba.prototype.kT=function(e){return e.querySelectorAll("delete > *")};return ba}(e(461).a);ba.a=ia},477:function(ia, ba,e){var ea=e(1);ia=function(e){function x(x){var ba=e.call(this)||this;ba.h$=x;return ba}Object(ea.c)(x,e);x.prototype.parse=function(){return this.wA(this.h$)};x.prototype.yT=function(e){return e.querySelectorAll("annots > *")};x.prototype.kT=function(){return[]};return x}(e(461).a);ba.a=ia}}]);}).call(this || window)