PageSourceSearch

https://www.picdrop.com/static/1790859059/frontend/assets/FileUtils.js

js picdrop.com collected 2026-10-02 02:13:30 UTC 1,321 bytes, 1 lines download raw bytes

1import{K as e}from"./MockDataRepository.js";function t(e){return n(e)||r(e)||i(e)}function n(t){return t.type===e.VIDEO&&!!t.streaming?.isStreamable&&!t.streaming?.isProcessing}function r(t){return t.type===e.IMAGE&&!(t.thumbnails?.isEmpty()??!0)}function i(t){return t.type===e.FILE&&!(t.thumbnails?.isEmpty()??!0)}function a(e){let t=e.lastIndexOf(`.`);return t===-1?null:e.substr(t+1)}function o(e){let t=a(e),n=t?`.${t}`:``;return t?e.slice(0,-n.length):e}function s(e,t,n,r,i,a){let s=o(e);if(!n&&!r)return s;let c;if(r){let e=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),`g`);c=s.replace(e,n),c=c.replace(/\$c+/g,s)}else c=n,c=c.replace(/\$c+/g,s);if(c.length===0)return s;let l=i+t,u=a-t;return c=c.replace(/\$n+/g,e=>{if(isNaN(l))return``;let t=e.length-1;return String(l).padStart(t,`0`)}),c=c.replace(/\$-n+/g,e=>{if(isNaN(u))return``;let t=e.length-2;return String(u).padStart(t,`0`)}),c=c.replace(/\$d+/g,e=>{if(isNaN(u))return``;let t=e.length-1;return String(u).padStart(t,`0`)}),c}function c(e,t,n,r){let i;if(t===`current`)i=`$c`;else{let e=r?Math.max(1,Math.ceil(Math.log10(r+1))):1;i=t===`numberAsc`?`$`+`n`.repeat(e):`$-`+`n`.repeat(e)}return[e.slice(0,n)+i+e.slice(n),n+i.length]}function l(e){return/image\/(png|jpe?g)/.test(e)}export{t as a,n as c,c as i,l,a as n,i as o,o as r,r as s,s as t};

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.