1function e(){if(typeof navigator>`u`)return!1;let e=navigator.mediaDevices;return!!(e&&typeof e.getUserMedia==`function`)}function t(e,t,n,r){if(!e||!t||!n||!r)return{sx:0,sy:0,sw:e||0,sh:t||0};let i=n/r;if(e/t>i){let n=Math.round(t*i);return{sx:Math.round((e-n)/2),sy:0,sw:n,sh:t}}let a=Math.round(e/i);return{sx:0,sy:Math.round((t-a)/2),sw:e,sh:a}}function n(e){if(!e||typeof e.getTracks!=`function`)return 0;let t=0;for(let n of e.getTracks())try{n.stop(),t++}catch{}return t}function r(e){let t=/^(\d+):(\d+)$/.exec(String(e||``).trim());return t?{w:parseInt(t[1],10)||1,h:parseInt(t[2],10)||1}:{w:1,h:1}}export{n as i,e as n,r,t}; 2//# sourceMappingURL=cameraHelpers-Dl2SlCUo.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.