PageSourceSearch

https://www.utep.edu/_colleges-cascade-files/js/uta.js

js utep.edu collected 2026-09-24 08:37:06 UTC 3,671 bytes, 34 lines download raw bytes

1/*! js-cookie v3.0.1 | https://github.com/js-cookie/js-cookie | Copyright 2018 Klaus Hartl, Fagner Brack, GitHub Contributors | @licence MIT */
2!function (e, t) { "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = e || self, function () { var n = e.Cookies, o = e.Cookies = t(); o.noConflict = function () { return e.Cookies = n, o } }()) }(this, (function () { "use strict"; function e(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var o in n) e[o] = n[o] } return e } return function t(n, o) { function r(t, r, i) { if ("undefined" != typeof document) { "number" == typeof (i = e({}, o, i)).expires && (i.expires = new Date(Date.now() + 864e5 * i.expires)), i.expires && (i.expires = i.expires.toUTCString()), t = encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape); var c = ""; for (var u in i) i[u] && (c += "; " + u, !0 !== i[u] && (c += "=" + i[u].split(";")[0])); return document.cookie = t + "=" + n.write(r, t) + c } } return Object.create({ set: r, get: function (e) { if ("undefined" != typeof document && (!arguments.length || e)) { for (var t = document.cookie ? document.cookie.split("; ") : [], o = {}, r = 0; r < t.length; r++) { var i = t[r].split("="), c = i.slice(1).join("="); try { var u = decodeURIComponent(i[0]); if (o[u] = n.read(c, u), e === u) break } catch (e) { } } return e ? o[e] : o } }, remove: function (t, n) { r(t, "", e({}, n, { expires: -1 })) }, withAttributes: function (n) { return t(this.converter, e({}, this.attributes, n)) }, withConverter: function (n) { return t(e({}, this.converter, n), this.attributes) } }, { attributes: { value: Object.freeze(o) }, converter: { value: Object.freeze(n) } }) }({ read: function (e) { return '"' === e[0] && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent) }, write: function (e) { return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent) } }, { path: "/" }) }));
3var UtepCk = function () { return { get: function (e) { return Cookies.get(e) }, set: function (e, o, t) { Cookies.set(e, o, t) }, remove: function (e, o) { Cookies.remove(e, o) } } }; // UTEP WRAPPER
4
5// GLOBAL CONSTANTS
6const UTM_MEDIUM_KEY = "utm_medium";
7const UTM_SOURCE_KEY = "utm_source";
8const UTM_ID_KEY = "utm_id";
9const UTM_CONTENT_KEY = "utm_content";
10const UTM_CAMPAIGN_KEY = "utm_campaign";
11const UTEP_ACQ_URL_KEY = "uta-url";
12const UTEP_ACQ_VG_KEY = "uta-vg";
13const UTEP_CK_DEFAULT_ATTRS = { sameSite: "strict", secure: true, expires: 365, domain: ".utep.edu" };
14
15(function (window, undefined) {
16	"use strict";
17
18	if ("URLSearchParams" in window) {
19		let queries = new URLSearchParams(window.location.search);
20		if (queries.has(UTM_MEDIUM_KEY) || queries.has(UTM_SOURCE_KEY) || queries.has(UTM_ID_KEY) || queries.has(UTM_CONTENT_KEY) || queries.has(UTM_CAMPAIGN_KEY))
21			UtepCk().set(UTEP_ACQ_URL_KEY, document.URL, UTEP_CK_DEFAULT_ATTRS);
22	}
23
24	if (UtepCk().get(UTEP_ACQ_VG_KEY) === undefined) {
25		let vg = (new Date()).getTime().toString() + "." + GetNewGuid();
26		UtepCk().set(UTEP_ACQ_VG_KEY, vg, UTEP_CK_DEFAULT_ATTRS);
27	}
28
29	function GetNewGuid() {
30		if ("crypto" in window && "getRandomValues" in crypto) { return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c => (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)); }
31		return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (x) { var n = 16 * Math.random() | 0; return ("x" == x ? n : 3 & n | 8).toString(16) });
32	}
33
34})(window);

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.