puppeteer-core
Version:
A high-level API to control headless Chrome over the DevTools Protocol
1 lines • 8.06 kB
Source Map (JSON)
{"version":3,"file":"BrowserContext.js","sourceRoot":"","sources":["../../../../src/bidi/BrowserContext.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKH,kDAAwE;AAExE,gEAA6E;AAI7E,+DAAuD;AACvD,+CAA6C;AAE7C,iDAAyC;AACzC,yDAA6C;AAI7C,0DAAkD;AAElD,uCAOmB;AACnB,2CAA6C;AAC7C,2CAA4D;AAU5D;;GAEG;IACU,kBAAkB;sBAAS,kCAAc;;;;iBAAzC,kBAAmB,SAAQ,WAAc;;;0CAWnD,IAAA,sBAAM,GAAE;YACT,+LAAS,cAAc,6BAAd,cAAc,uGAA4C;;;QAXnE,MAAM,CAAC,IAAI,CACT,OAAoB,EACpB,WAAwB,EACxB,OAAkC;YAElC,MAAM,OAAO,GAAG,IAAI,kBAAkB,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;YACtE,OAAO,CAAC,WAAW,EAAE,CAAC;YACtB,OAAO,OAAO,CAAC;QACjB,CAAC;QAGD,yFAA0B,IAAI,8BAAY,EAAwB,EAAC;QAAnE,IAAS,cAAc,oDAA4C;QAAnE,IAAS,cAAc,0DAA4C;QAE1D,QAAQ,8DAAc;QACtB,gBAAgB,CAAkB;QAC3C,qCAAqC;QAC5B,WAAW,CAAc;QACzB,MAAM,GAAG,IAAI,OAAO,EAA6B,CAAC;QAClD,QAAQ,GAAG,IAAI,GAAG,EAMxB,CAAC;QAEJ,UAAU,GAAoD,EAAE,CAAC;QAEjE,YACE,OAAoB,EACpB,WAAwB,EACxB,OAAkC;YAElC,KAAK,EAAE,CAAC;YACR,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;YACxB,IAAI,CAAC,WAAW,GAAG,WAAW,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