PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.5
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.5
16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 All 506 releases
← All changes | build/scripts/init/index.min.js +1 -1 16.3-a.3 → 16.3-a.5 View file →
@@ -1 +1 @@
1 -(function(){(()=>{var h=/^[^/]+\/widgets\//,u;function p(){return{manifests:new Map(),downloads:new Map(),active:0,queue:[]};}function y(e){let t=e;return!!t&&t.manifests instanceof Map&&t.downloads instanceof Map&&typeof t.active=="number"&&Array.isArray(t.queue);}function C(){let e=window,t=e.__jetpackWpBuildI18nCatalogs;if(t===void 0){let n=p();return e.__jetpackWpBuildI18nCatalogs=n,n;}return y(t)?t:(u||(d("Shared catalog state on window has an unrecognized shape; downloads will not be deduped across module copies."),u=p()),u);}function _(e,t,n){return new Promise(a=>{let o=()=>{e.active++;let r=!1,l=()=>{r||(r=!0,clearTimeout(s),I(e));},s=setTimeout(()=>{d(`Catalog download for ${t} has held a slot for 30000ms; releasing it so queued downloads can proceed.`),l();},3e4);s.unref?.(),a(n().finally(l));};e.active<6?o():e.queue.push(o);});}function I(e){e.active--;let t=e.queue.shift();t&&t();}function v(e,t,n,a){let o=`${n}|${a}`,r=t.downloads.get(o);return r||(r=_(t,a,()=>e.downloadI18n(a,n,"plugin")).catch(l=>{let s=f(l);m(s)||d(`Failed to load "${n}" catalog (${a}): ${s}`);}),t.downloads.set(o,r)),r;}function d(e){console.warn(`[jetpack-i18n] ${e}`);}function f(e){return e instanceof Error?e.message:String(e);}function m(e){let t=/^HTTP request failed: (\d+)\b/.exec(e);return t!==null&&t[1]==="404";}async function $(e){let t=new URL("../../i18n-manifest.json",e);t.search=new URL(e).search;let n=await fetch(t,{cache:"no-cache"});if(!n.ok)throw new Error(`HTTP request failed: ${n.status} ${n.statusText}`);let a=await n.json();return Array.isArray(a?.bundles)?a.bundles.filter(o=>typeof o=="string"):[];}async function S(e,t,n=5e3){let a=window.wp?.jpI18nLoader;if(!a||typeof a.downloadI18n!="function"){d(`wp.jpI18nLoader unavailable; "${e}" strings will render untranslated.`);return;}if(a.state?.locale==="en_US")return;let o=C(),r=async()=>{let i=o.manifests.get(e);i||(i=$(t).catch(c=>{let w=f(c);return m(w)||d(`Failed to load the i18n manifest for "${e}": ${w}`),[];}).then(c=>new Set(c)),o.manifests.set(e,i));let g=[];for(let c of await i)h.test(c)||g.push(v(a,o,e,c));await Promise.all(g);},l,s=!1;try{await Promise.race([r().finally(()=>{s=!0;}),new Promise(i=>{l=setTimeout(i,n);})]);}catch(i){d(`Unexpected failure loading "${e}" catalogs: ${f(i)}`);return;}finally{clearTimeout(l);}s||d(`"${e}" catalog downloads still pending after ${n}ms; rendering may start untranslated.`);}function T(){globalThis.jetpackConfig={consumer_slug:"jetpack"};}var M={};async function A(){T(),await S("jetpack",M.url);}})();})();//# sourceMappingURL=index.min.js.map
1 +(function(){(()=>{var h=/^[^/]+\/widgets\//,c;function w(){return{manifests:new Map(),downloads:new Map(),active:0,queue:[]};}function T(e){let t=e;return!!t&&t.manifests instanceof Map&&t.downloads instanceof Map&&typeof t.active=="number"&&Array.isArray(t.queue);}function y(){let e=window,t=e.__jetpackWpBuildI18nCatalogs;if(t===void 0){let a=w();return e.__jetpackWpBuildI18nCatalogs=a,a;}return T(t)?t:(c||(l("Shared catalog state on window has an unrecognized shape; downloads will not be deduped across module copies."),c=w()),c);}function I(e,t,a){return new Promise(n=>{let o=()=>{e.active++;let r=!1,s=()=>{r||(r=!0,clearTimeout(i),C(e));},i=setTimeout(()=>{l(`Catalog download for ${t} has held a slot for 30000ms; releasing it so queued downloads can proceed.`),s();},3e4);i.unref?.(),n(a().finally(s));};e.active<6?o():e.queue.push(o);});}function C(e){e.active--;let t=e.queue.shift();t&&t();}function v(e,t,a,n){let o=`${a}|${n}`,r=t.downloads.get(o);return r||(r=I(t,n,()=>e.downloadI18n(n,a,"plugin")).catch(s=>{let i=u(s);p(i)||l(`Failed to load "${a}" catalog (${n}): ${i}`);}),t.downloads.set(o,r)),r;}function l(e){console.warn(`[jetpack-i18n] ${e}`);}function u(e){return e instanceof Error?e.message:String(e);}function p(e){let t=/^HTTP request failed: (\d+)\b/.exec(e);return t!==null&&t[1]==="404";}async function L(e){let t=await fetch(e,{cache:"no-cache"});if(!t.ok)throw new Error(`HTTP request failed: ${t.status} ${t.statusText}`);let a=await t.json();return Array.isArray(a?.bundles)?a.bundles.filter(n=>typeof n=="string"):[];}function _(e){let t=new URL("../../i18n-manifest.json",e);return t.search=new URL(e).search,t;}function $(e,t,a){let n=e.manifests.get(t);return n||(n=L(a).catch(o=>{let r=u(o);return p(r)||l(`Failed to load the i18n manifest for "${t}": ${r}`),[];}).then(o=>new Set(o)),e.manifests.set(t,n)),n;}async function m(e,t,a=5e3){let n=window.wp?.jpI18nLoader;if(!n||typeof n.downloadI18n!="function"){l(`wp.jpI18nLoader unavailable; "${e}" strings will render untranslated.`);return;}if(n.state?.locale==="en_US")return;let o=y(),r=async()=>{let d=$(o,e,_(t)),f=[];for(let g of await d)h.test(g)||f.push(v(n,o,e,g));await Promise.all(f);},s,i=!1;try{await Promise.race([r().finally(()=>{i=!0;}),new Promise(d=>{s=setTimeout(d,a);})]);}catch(d){l(`Unexpected failure loading "${e}" catalogs: ${u(d)}`);return;}finally{clearTimeout(s);}i||l(`"${e}" catalog downloads still pending after ${a}ms; rendering may start untranslated.`);}function S(){globalThis.jetpackConfig={consumer_slug:"jetpack"};}var M={};async function j(){S(),await m("jetpack",M.url);}})();})();//# sourceMappingURL=index.min.js.map