All Downloads are FREE. Search and download functionalities are using the official Maven repository.

browser.preview.assets.index-eVvBwILY.js Maven / Gradle / Ivy

There is a newer version: 5.24.0
Show newest version
import{db as v,dc as w,dn as g,de as M,dd as N}from"./index-DC3IUagG.js";function j(s,p,h){var i;return v(this,void 0,void 0,function(){var o,c,d,l,n,b=this;return w(this,function(u){switch(u.label){case 0:return g()?[2,[]]:(o=M(),c=(i=p.enabledMiddleware)!==null&&i!==void 0?i:{},d=Object.entries(c).filter(function(r){r[0];var e=r[1];return e}).map(function(r){var e=r[0];return e}),l=d.map(function(r){return v(b,void 0,void 0,function(){var e,a,m,f;return w(this,function(t){switch(t.label){case 0:e=r.replace("@segment/",""),a=e,h&&(a=btoa(e).replace(/=/g,"")),m="".concat(o,"/middleware/").concat(a,"/latest/").concat(a,".js.gz"),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,N(m)];case 2:return t.sent(),[2,window["".concat(e,"Middleware")]];case 3:return f=t.sent(),s.log("error",f),s.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}})})}),[4,Promise.all(l)]);case 1:return n=u.sent(),n=n.filter(Boolean),[2,n]}})})}export{j as remoteMiddlewares};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy