mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2 lines
869 KiB
JavaScript
2 lines
869 KiB
JavaScript
|
/*! For license information please see main.a43a69d4.js.LICENSE.txt */
|
||
|
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[40179],{20830:(e,t,p)=>{"use strict";p.d(t,{W:()=>r});var a=p(67294);function r(){return a.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20"},a.createElement("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}},86010:(e,t,p)=>{"use strict";function a(e){var t,p,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(p=a(e[t]))&&(r&&(r+=" "),r+=p);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}p.d(t,{Z:()=>r});const r=function(){for(var e,t,p=0,r="";p<arguments.length;)(e=arguments[p++])&&(t=a(e))&&(r&&(r+=" "),r+=t);return r}},99318:(e,t,p)=>{"use strict";p.d(t,{lX:()=>w,q_:()=>O,ob:()=>m,PP:()=>T,Ep:()=>l});var a=p(87462);function r(e){return"/"===e.charAt(0)}function n(e,t){for(var p=t,a=p+1,r=e.length;a<r;p+=1,a+=1)e[p]=e[a];e.pop()}const i=function(e,t){void 0===t&&(t="");var p,a=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&r(e),s=t&&r(t),c=o||s;if(e&&r(e)?i=a:a.length&&(i.pop(),i=i.concat(a)),!i.length)return"/";if(i.length){var u=i[i.length-1];p="."===u||".."===u||""===u}else p=!1;for(var d=0,l=i.length;l>=0;l--){var m=i[l];"."===m?n(i,l):".."===m?(n(i,l),d++):d&&(n(i,l),d--)}if(!c)for(;d--;d)i.unshift("..");!c||""===i[0]||i[0]&&r(i[0])||i.unshift("");var b=i.join("/");return p&&"/"!==b.substr(-1)&&(b+="/"),b};var o=p(2177);function s(e){return"/"===e.charAt(0)?e:"/"+e}function c(e){return"/"===e.charAt(0)?e.substr(1):e}function u(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function l(e){var t=e.pathname,p=e.search,a=e.hash,r=t||"/";return p&&"?"!==p&&(r+="?"===p.charAt(0)?p:"?"+p),a&&"#"!==a&&(r+="#"===a.charAt(0)?a:"#"+a),r}function m(e,t,p,r){var n;"string"==typeof e?(n=function(e){var t=e||"/",p="",a="",r=t.indexOf("#");-1!==r&&(a=t.substr(r),t=t.substr(0,r));var n=t.indexOf("?");return-1!==n&&(p=t.substr(n),t=t.substr(0,n)),{pathname:t,search:"?"===p?"":p,hash:"#"===a?"":a}}(e),n.state=t):(void 0===(n=(0,a.Z)({},e)).pathname&&(n.pathname=""),n.search?"?"!==n.search.charAt(0)&&(n.search="?"+n.search):n.search="",n.hash?"#"!==n.hash.charAt(0)&&(n.hash="#"+n.hash):n.hash="",void 0!==t&&void 0===n.state&&(n.state=t));try{n.pathname=decodeURI(n.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+n.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return p&&(n.key=p),r?n.pathname?"/"!==n.pathname.charAt(0)&&(n.pathname=i(n.pathname,r.pathname)):n.pathname=r.pathname:n.pathname||(n.pathname="/"),n}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,p,a,r){if(null!=e){var n="function"==typeof e?e(t,p):e;"string"==typeof n?"function"==typeof a?a(n,r):r(!0):r(!1!==n)}else r(!0)},appendListener:function(e){var p=!0;function a(){p&&e.apply(void 0,arguments)}return t.push(a),function(){p=!1,t=t.filter((function(e){return e!==a}))}},notifyListeners:function(){for(var e=arguments.length,p=new Array(e),a=0;a<e;a++)p[a]=arguments[a];t.forEach((function(e){return e.apply(void 0,p)}))}}}var h=!("undefined"==typeof window||!window.document||!window.document.createElement);function f(e,t){t(window.confirm(e))}var g="popstate",v="hashchange";function x(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),h||(0,o.Z)(!1);var t,p=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in
|