{"version":3,"sources":["../../../../src/experimental/testmode/playwright/msw.ts"],"names":["defineConfig","test","base","extend","mswHandlers","option","msw","next","use","handlers","emitter","Emitter","onFetch","request","body","method","headers","credentials","cache","redirect","integrity","keepalive","mode","destination","referrer","referrerPolicy","mockedRequest","MockedRequest","URL","url","arrayBuffer","undefined","Object","fromEntries","isUnhandled","isPassthrough","mockedResponse","handleRequest","slice","onUnhandledRequest","onPassthroughResponse","onMockedResponse","r","status","responseHeaders","responseBody","delay","Promise","resolve","setTimeout","Response","Headers","newHandlers","unshift","length","auto"],"mappings":";;;;;;;;;;;;;;;;IAiBSA,YAAY;eAAZA,mBAAY;;IAMRC,IAAI;eAAJA;;IAoGb,OAAmB;eAAnB;;;;uBA3H2C;kCAQpC;oCAEiB;qBAKV;;;;;;;;;;;;;;AAQP,MAAMA,OAAOC,WAAI,CAACC,MAAM,CAG5B;IACDC,aAAa;QAAC,EAAE;QAAE;YAAEC,QAAQ;QAAK;KAAE;IAEnCC,KAAK;QACH,OAAO,EAAEC,IAAI,EAAEH,WAAW,EAAE,EAAEI;YAC5B,MAAMC,WAA6B;mBAAIL;aAAY;YACnD,MAAMM,UAAU,IAAIC,2BAAO;YAE3BJ,KAAKK,OAAO,CAAC,OAAOC;gBAClB,MAAM,EACJC,IAAI,EACJC,MAAM,EACNC,OAAO,EACPC,WAAW,EACXC,KAAK,EACLC,QAAQ,EACRC,SAAS,EACTC,SAAS,EACTC,IAAI,EACJC,WAAW,EACXC,QAAQ,EACRC,cAAc,EACf,GAAGZ;gBACJ,MAAMa,gBAAgB,IAAIC,kBAAa,CAAC,IAAIC,IAAIf,QAAQgB,GAAG,GAAG;oBAC5Df,MAAMA,OAAO,MAAMD,QAAQiB,WAAW,KAAKC;oBAC3ChB;oBACAC,SAASgB,OAAOC,WAAW,CAACjB;oBAC5BC;oBACAC;oBACAC;oBACAC;oBACAC;oBACAC;oBACAC;oBACAC;oBACAC;gBACF;gBACA,IAAIS,cAAc;gBAClB,IAAIC,gBAA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