puppeteer-core
Version:
A high-level API to control headless Chrome over the DevTools Protocol
1 lines • 8.65 kB
Source Map (JSON)
{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../src/cdp/Browser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,EACL,OAAO,IAAI,WAAW,GAMvB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAMrD,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,UAAU,EACV,YAAY,GAEb,MAAM,aAAa,CAAC;AAErB,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEjD;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IAChC,QAAQ,GAAG,KAAK,CAAC;IAE1B,MAAM,CAAC,KAAK,CAAC,OAAO,CAClB,UAAsB,EACtB,UAAoB,EACpB,mBAA4B,EAC5B,eAAiC,EACjC,gBAAmC,EACnC,OAAsB,EACtB,aAAoC,EACpC,oBAA2C,EAC3C,oBAA2C,EAC3C,iCAAiC,GAAG,IAAI;QAExC,MAAM,OAAO,GAAG,IAAI,UAAU,CAC5B,UAAU,EACV,UAAU,EACV,eAAe,EACf,OAAO,EACP,aAAa,EACb,oBAAoB,EACpB,oBAAoB,EACpB,iCAAiC,CAClC,CAAC;QACF,IAAI,mBAAmB,EAAE,CAAC;YACxB,MAAM,UAAU,CAAC,IAAI,CAAC,qCAAqC,EAAE;gBAC3D,MAAM,EAAE,IAAI;aACb,CAAC,CAAC;QACL,CAAC;QACD,MAAM,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;QACxC,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,gBAAgB,CAAmB;IACnC,QAAQ,CAAgB;IACxB,WAAW,CAAa;IACxB,cAAc,CAAuB;IACrC,qBAAqB,CAAuB;IAC5C,qBAAqB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