clas g{constructor(e){thisfonts=[],thisdocManager=e,this_cssRuleQueue=[],this_fontLoadQueue=[]}addCSSRuleToQueue(e,t=!1){this_cssRuleQueupush(e),t&&this_flushCSSRuleQueue()}addFont(e,t,i,s,n,a){const r=this_fontUrl(i,e),o=new d({url:r,id:e,shortstyle:t,family:i,fallback:s,weight:n,style:a});return thisfonts[e]=o,o}addFontToQueue(e){const t=thisfonts[e];t_loadQueued||(t_loadQueued=!0,this_fontLoadQueupush(t))}flushFontQueue(){if(0===this_fontLoadQueulength)return;if(thisdocManagerdisplayType===t)return;const e=this_fontLoadQueue;return this_fontLoadQueue=[],new Promise(requestAnimationFrame)then((()=>this_loadFonts(e)))}initStyles(){thisdocManagerdisplayType!==t&&(this_initFamilyCSS(),this_initHidersCSS(),this_flushCSSRuleQueue("preload_styler"))}setupTestElements(){}maxFontsLoading(){return 10}_appendNewStyleBlock(){const e=documentcreateElement("style");return documentgetElementsByTagName("head")[0]appendChild(e),e}_flushCSSRuleQueue(e){if(this_cssRuleQueulength>0){const t=e&&documentgetElementById(e)||this_appendNewStyleBlock(),i=this_cssRuleQueujoin("\n");tappendChild(documentcreateTextNode(i)),this_cssRuleQueue=[]}}_loadFonts(e,t=0,i=10){const s=[],n=[],a=Mathmin(t+i,length);for(let i=t;i{tload()then((t=>{e(t)}))catch((t=>{e(t)}))}));spush(a),npush(`${tfamily}`)}return Promiall(s)then((s=>{if(sforEach((e=>{e instanceof FontFace&&documentfontsadd(e)})),thisaddCSSRuleToQueue(`${njoin(", ")} { display: unset; }`,!

class g{constructor(e){this.fonts=[],this.docManager=e,this._cssRuleQueue=[],this._fontLoadQueue=[]}addCSSRuleToQueue(e,t=!1){this._cssRuleQueue.push(e),t&&this._flushCSSRuleQueue()}addFont(e,t,i,s,n,a){const r=this._fontUrl(i,e),o=new d({url:r,id:e,shortstyle:t,family:i,fallback:s,weight:n,style:a});return this.fonts[e]=o,o}addFontToQueue(e){const t=this.fonts[e];t._loadQueued||(t._loadQueued=!0,this._fontLoadQueue.push(t))}flushFontQueue(){if(0===this._fontLoadQueue.length)return;if(this.docManager.displayType===t)return;const e=this._fontLoadQueue;return this._fontLoadQueue=[],new Promise(requestAnimationFrame).then((()=>this._loadFonts(e)))}initStyles(){this.docManager.displayType!==t&&(this._initFamilyCSS(),this._initHidersCSS(),this._flushCSSRuleQueue("preload_styler"))}setupTestElements(){}maxFontsLoading(){return 10}_appendNewStyleBlock(){const e=document.createElement("style");return document.getElementsByTagName("head")[0].appendChild(e),e}_flushCSSRuleQueue(e){if(this._cssRuleQueue.length>0){const t=e&&document.getElementById(e)||this._appendNewStyleBlock(),i=this._cssRuleQueue.join("\n");t.appendChild(document.createTextNode(i)),this._cssRuleQueue=[]}}_loadFonts(e,t=0,i=10){const s=[],n=[],a=Math.min(t+i,e.length);for(let i=t;i{t.load().then((t=>{e(t)})).catch((t=>{e(t)}))}));s.push(a),n.push(`.${t.family}`)}return Promise.all(s).then((s=>{if(s.forEach((e=>{e instanceof FontFace&&document.fonts.add(e)})),this.addCSSRuleToQueue(`${n.join(", ")} { display: unset; }`,!