PageSourceSearch

https://zamek-steknik.cz/cache-buster-1698399558/static/js/lib/svg4everybody.min.js

js zamek-steknik.cz collected 2026-10-02 19:09:55 UTC 2,909 bytes, 64 lines download raw bytes

vendor: 2,909 bytes, lines 1-64
1!function(a,b){"function"==typeof define&&define.amd?
2// AMD. Register as an anonymous module unless amdModuleId is set
3define([],function(){return a.svg4everybody=b()}):"object"==typeof exports?module.exports=b():a.svg4everybody=b()}(this,function(){/*! svg4everybody v2.0.3 | github.com/jonathantneal/svg4everybody */
4function a(a,b){
5// if the target exists
6if(b){
7// create a document fragment to hold the contents of the target
8var c=document.createDocumentFragment(),d=!a.getAttribute("viewBox")&&b.getAttribute("viewBox");
9// conditionally set the viewBox on the svg
10d&&a.setAttribute("viewBox",d);
11// copy the contents of the clone into the fragment
12for(
13// clone the target
14var e=b.cloneNode(!0);e.childNodes.length;)c.appendChild(e.firstChild);
15// append the fragment into the svg
16a.appendChild(c)}}function b(b){
17// listen to changes in the request
18b.onreadystatechange=function(){
19// if the request is ready
20if(4===b.readyState){
21// get the cached html document
22var c=b._cachedDocument;
23// ensure the cached html document based on the xhr response
24c||(c=b._cachedDocument=document.implementation.createHTMLDocument(""),c.body.innerHTML=b.responseText,b._cachedTarget={}),
25// clear the xhr embeds list and embed each item
26b._embeds.splice(0).map(function(d){
27// get the cached target
28var e=b._cachedTarget[d.id];
29// ensure the cached target
30e||(e=b._cachedTarget[d.id]=c.getElementById(d.id)),
31// embed the target into the svg
32a(d.svg,e)})}},
33// test the ready state change immediately
34b.onreadystatechange()}function c(c){function d(){
35// while the index exists in the live <use> collection
36for(
37// get the cached <use> index
38var c=0;c<l.length;){
39// get the current <use>
40var g=l[c],h=g.parentNode;if(h&&/svg/i.test(h.nodeName)){var i=g.getAttribute("xlink:href");if(e&&(!f.validate||f.validate(i,h,g))){
41// remove the <use> element
42h.removeChild(g);
43// parse the src and get the url and id
44var m=i.split("#"),n=m.shift(),o=m.join("#");
45// if the link is external
46if(n.length){
47// get the cached xhr request
48var p=j[n];
49// ensure the xhr request exists
50p||(p=j[n]=new XMLHttpRequest,p.open("GET",n),p.send(),p._embeds=[]),
51// add the svg and id as an item to the xhr embeds list
52p._embeds.push({svg:h,id:o}),
53// prepare the xhr ready state change event
54b(p)}else
55// embed the local id into the svg
56a(h,document.getElementById(o))}}else
57// increase the index when the previous value was not "valid"
58++c}
59// continue the interval
60k(d,67)}var e,f=Object(c),g=/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/,h=/\bAppleWebKit\/(\d+)\b/,i=/\bEdge\/12\.(\d+)\b/;e="polyfill"in f?f.polyfill:g.test(navigator.userAgent)||(navigator.userAgent.match(i)||[])[1]<10547||(navigator.userAgent.match(h)||[])[1]<537;
61// create xhr requests object
62var j={},k=window.requestAnimationFrame||setTimeout,l=document.getElementsByTagName("use");
63// conditionally start the interval if the polyfill is active
64e&&d()}return c});

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.