Init
This commit is contained in:
3495
themes/agico-hugo/assets/plugins/aos/aos.css
Normal file
3495
themes/agico-hugo/assets/plugins/aos/aos.css
Normal file
File diff suppressed because one or more lines are too long
654
themes/agico-hugo/assets/plugins/aos/aos.js
Normal file
654
themes/agico-hugo/assets/plugins/aos/aos.js
Normal file
@@ -0,0 +1,654 @@
|
||||
!(function (e, t) {
|
||||
'object' == typeof exports && 'object' == typeof module
|
||||
? (module.exports = t())
|
||||
: 'function' == typeof define && define.amd
|
||||
? define([], t)
|
||||
: 'object' == typeof exports
|
||||
? (exports.AOS = t())
|
||||
: (e.AOS = t());
|
||||
})(this, function () {
|
||||
return (function (e) {
|
||||
function t(o) {
|
||||
if (n[o]) return n[o].exports;
|
||||
var i = (n[o] = { exports: {}, id: o, loaded: !1 });
|
||||
return e[o].call(i.exports, i, i.exports, t), (i.loaded = !0), i.exports;
|
||||
}
|
||||
var n = {};
|
||||
return (t.m = e), (t.c = n), (t.p = 'dist/'), t(0);
|
||||
})([
|
||||
function (e, t, n) {
|
||||
'use strict';
|
||||
function o(e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
}
|
||||
var i =
|
||||
Object.assign ||
|
||||
function (e) {
|
||||
for (var t = 1; t < arguments.length; t++) {
|
||||
var n = arguments[t];
|
||||
for (var o in n)
|
||||
Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
||||
}
|
||||
return e;
|
||||
},
|
||||
r = n(1),
|
||||
a = (o(r), n(6)),
|
||||
u = o(a),
|
||||
c = n(7),
|
||||
f = o(c),
|
||||
s = n(8),
|
||||
d = o(s),
|
||||
l = n(9),
|
||||
p = o(l),
|
||||
m = n(10),
|
||||
b = o(m),
|
||||
v = n(11),
|
||||
y = o(v),
|
||||
g = n(14),
|
||||
h = o(g),
|
||||
w = [],
|
||||
k = !1,
|
||||
x = document.all && !window.atob,
|
||||
j = {
|
||||
offset: 120,
|
||||
delay: 0,
|
||||
easing: 'ease',
|
||||
duration: 400,
|
||||
disable: !1,
|
||||
once: !1,
|
||||
startEvent: 'DOMContentLoaded',
|
||||
throttleDelay: 99,
|
||||
debounceDelay: 50,
|
||||
disableMutationObserver: !1,
|
||||
},
|
||||
O = function () {
|
||||
var e =
|
||||
arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
|
||||
if ((e && (k = !0), k))
|
||||
return (w = (0, y.default)(w, j)), (0, b.default)(w, j.once), w;
|
||||
},
|
||||
_ = function () {
|
||||
(w = (0, h.default)()), O();
|
||||
},
|
||||
S = function () {
|
||||
w.forEach(function (e, t) {
|
||||
e.node.removeAttribute('data-aos'),
|
||||
e.node.removeAttribute('data-aos-easing'),
|
||||
e.node.removeAttribute('data-aos-duration'),
|
||||
e.node.removeAttribute('data-aos-delay');
|
||||
});
|
||||
},
|
||||
z = function (e) {
|
||||
return (
|
||||
e === !0 ||
|
||||
('mobile' === e && p.default.mobile()) ||
|
||||
('phone' === e && p.default.phone()) ||
|
||||
('tablet' === e && p.default.tablet()) ||
|
||||
('function' == typeof e && e() === !0)
|
||||
);
|
||||
},
|
||||
A = function (e) {
|
||||
return (
|
||||
(j = i(j, e)),
|
||||
(w = (0, h.default)()),
|
||||
z(j.disable) || x
|
||||
? S()
|
||||
: (document
|
||||
.querySelector('body')
|
||||
.setAttribute('data-aos-easing', j.easing),
|
||||
document
|
||||
.querySelector('body')
|
||||
.setAttribute('data-aos-duration', j.duration),
|
||||
document
|
||||
.querySelector('body')
|
||||
.setAttribute('data-aos-delay', j.delay),
|
||||
'DOMContentLoaded' === j.startEvent &&
|
||||
['complete', 'interactive'].indexOf(document.readyState) > -1
|
||||
? O(!0)
|
||||
: 'load' === j.startEvent
|
||||
? window.addEventListener(j.startEvent, function () {
|
||||
O(!0);
|
||||
})
|
||||
: document.addEventListener(j.startEvent, function () {
|
||||
O(!0);
|
||||
}),
|
||||
window.addEventListener(
|
||||
'resize',
|
||||
(0, f.default)(O, j.debounceDelay, !0)
|
||||
),
|
||||
window.addEventListener(
|
||||
'orientationchange',
|
||||
(0, f.default)(O, j.debounceDelay, !0)
|
||||
),
|
||||
window.addEventListener(
|
||||
'scroll',
|
||||
(0, u.default)(function () {
|
||||
(0, b.default)(w, j.once);
|
||||
}, j.throttleDelay)
|
||||
),
|
||||
j.disableMutationObserver || (0, d.default)('[data-aos]', _),
|
||||
w)
|
||||
);
|
||||
};
|
||||
e.exports = { init: A, refresh: O, refreshHard: _ };
|
||||
},
|
||||
function (e, t) {},
|
||||
,
|
||||
,
|
||||
,
|
||||
,
|
||||
function (e, t) {
|
||||
(function (t) {
|
||||
'use strict';
|
||||
function n(e, t, n) {
|
||||
function o(t) {
|
||||
var n = b,
|
||||
o = v;
|
||||
return (b = v = void 0), (k = t), (g = e.apply(o, n));
|
||||
}
|
||||
function r(e) {
|
||||
return (k = e), (h = setTimeout(s, t)), _ ? o(e) : g;
|
||||
}
|
||||
function a(e) {
|
||||
var n = e - w,
|
||||
o = e - k,
|
||||
i = t - n;
|
||||
return S ? j(i, y - o) : i;
|
||||
}
|
||||
function c(e) {
|
||||
var n = e - w,
|
||||
o = e - k;
|
||||
return void 0 === w || n >= t || n < 0 || (S && o >= y);
|
||||
}
|
||||
function s() {
|
||||
var e = O();
|
||||
return c(e) ? d(e) : void (h = setTimeout(s, a(e)));
|
||||
}
|
||||
function d(e) {
|
||||
return (h = void 0), z && b ? o(e) : ((b = v = void 0), g);
|
||||
}
|
||||
function l() {
|
||||
void 0 !== h && clearTimeout(h), (k = 0), (b = w = v = h = void 0);
|
||||
}
|
||||
function p() {
|
||||
return void 0 === h ? g : d(O());
|
||||
}
|
||||
function m() {
|
||||
var e = O(),
|
||||
n = c(e);
|
||||
if (((b = arguments), (v = this), (w = e), n)) {
|
||||
if (void 0 === h) return r(w);
|
||||
if (S) return (h = setTimeout(s, t)), o(w);
|
||||
}
|
||||
return void 0 === h && (h = setTimeout(s, t)), g;
|
||||
}
|
||||
var b,
|
||||
v,
|
||||
y,
|
||||
g,
|
||||
h,
|
||||
w,
|
||||
k = 0,
|
||||
_ = !1,
|
||||
S = !1,
|
||||
z = !0;
|
||||
if ('function' != typeof e) throw new TypeError(f);
|
||||
return (
|
||||
(t = u(t) || 0),
|
||||
i(n) &&
|
||||
((_ = !!n.leading),
|
||||
(S = 'maxWait' in n),
|
||||
(y = S ? x(u(n.maxWait) || 0, t) : y),
|
||||
(z = 'trailing' in n ? !!n.trailing : z)),
|
||||
(m.cancel = l),
|
||||
(m.flush = p),
|
||||
m
|
||||
);
|
||||
}
|
||||
function o(e, t, o) {
|
||||
var r = !0,
|
||||
a = !0;
|
||||
if ('function' != typeof e) throw new TypeError(f);
|
||||
return (
|
||||
i(o) &&
|
||||
((r = 'leading' in o ? !!o.leading : r),
|
||||
(a = 'trailing' in o ? !!o.trailing : a)),
|
||||
n(e, t, { leading: r, maxWait: t, trailing: a })
|
||||
);
|
||||
}
|
||||
function i(e) {
|
||||
var t = 'undefined' == typeof e ? 'undefined' : c(e);
|
||||
return !!e && ('object' == t || 'function' == t);
|
||||
}
|
||||
function r(e) {
|
||||
return (
|
||||
!!e && 'object' == ('undefined' == typeof e ? 'undefined' : c(e))
|
||||
);
|
||||
}
|
||||
function a(e) {
|
||||
return (
|
||||
'symbol' == ('undefined' == typeof e ? 'undefined' : c(e)) ||
|
||||
(r(e) && k.call(e) == d)
|
||||
);
|
||||
}
|
||||
function u(e) {
|
||||
if ('number' == typeof e) return e;
|
||||
if (a(e)) return s;
|
||||
if (i(e)) {
|
||||
var t = 'function' == typeof e.valueOf ? e.valueOf() : e;
|
||||
e = i(t) ? t + '' : t;
|
||||
}
|
||||
if ('string' != typeof e) return 0 === e ? e : +e;
|
||||
e = e.replace(l, '');
|
||||
var n = m.test(e);
|
||||
return n || b.test(e) ? v(e.slice(2), n ? 2 : 8) : p.test(e) ? s : +e;
|
||||
}
|
||||
var c =
|
||||
'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
|
||||
? function (e) {
|
||||
return typeof e;
|
||||
}
|
||||
: function (e) {
|
||||
return e &&
|
||||
'function' == typeof Symbol &&
|
||||
e.constructor === Symbol &&
|
||||
e !== Symbol.prototype
|
||||
? 'symbol'
|
||||
: typeof e;
|
||||
},
|
||||
f = 'Expected a function',
|
||||
s = NaN,
|
||||
d = '[object Symbol]',
|
||||
l = /^\s+|\s+$/g,
|
||||
p = /^[-+]0x[0-9a-f]+$/i,
|
||||
m = /^0b[01]+$/i,
|
||||
b = /^0o[0-7]+$/i,
|
||||
v = parseInt,
|
||||
y =
|
||||
'object' == ('undefined' == typeof t ? 'undefined' : c(t)) &&
|
||||
t &&
|
||||
t.Object === Object &&
|
||||
t,
|
||||
g =
|
||||
'object' == ('undefined' == typeof self ? 'undefined' : c(self)) &&
|
||||
self &&
|
||||
self.Object === Object &&
|
||||
self,
|
||||
h = y || g || Function('return this')(),
|
||||
w = Object.prototype,
|
||||
k = w.toString,
|
||||
x = Math.max,
|
||||
j = Math.min,
|
||||
O = function () {
|
||||
return h.Date.now();
|
||||
};
|
||||
e.exports = o;
|
||||
}.call(
|
||||
t,
|
||||
(function () {
|
||||
return this;
|
||||
})()
|
||||
));
|
||||
},
|
||||
function (e, t) {
|
||||
(function (t) {
|
||||
'use strict';
|
||||
function n(e, t, n) {
|
||||
function i(t) {
|
||||
var n = b,
|
||||
o = v;
|
||||
return (b = v = void 0), (O = t), (g = e.apply(o, n));
|
||||
}
|
||||
function r(e) {
|
||||
return (O = e), (h = setTimeout(s, t)), _ ? i(e) : g;
|
||||
}
|
||||
function u(e) {
|
||||
var n = e - w,
|
||||
o = e - O,
|
||||
i = t - n;
|
||||
return S ? x(i, y - o) : i;
|
||||
}
|
||||
function f(e) {
|
||||
var n = e - w,
|
||||
o = e - O;
|
||||
return void 0 === w || n >= t || n < 0 || (S && o >= y);
|
||||
}
|
||||
function s() {
|
||||
var e = j();
|
||||
return f(e) ? d(e) : void (h = setTimeout(s, u(e)));
|
||||
}
|
||||
function d(e) {
|
||||
return (h = void 0), z && b ? i(e) : ((b = v = void 0), g);
|
||||
}
|
||||
function l() {
|
||||
void 0 !== h && clearTimeout(h), (O = 0), (b = w = v = h = void 0);
|
||||
}
|
||||
function p() {
|
||||
return void 0 === h ? g : d(j());
|
||||
}
|
||||
function m() {
|
||||
var e = j(),
|
||||
n = f(e);
|
||||
if (((b = arguments), (v = this), (w = e), n)) {
|
||||
if (void 0 === h) return r(w);
|
||||
if (S) return (h = setTimeout(s, t)), i(w);
|
||||
}
|
||||
return void 0 === h && (h = setTimeout(s, t)), g;
|
||||
}
|
||||
var b,
|
||||
v,
|
||||
y,
|
||||
g,
|
||||
h,
|
||||
w,
|
||||
O = 0,
|
||||
_ = !1,
|
||||
S = !1,
|
||||
z = !0;
|
||||
if ('function' != typeof e) throw new TypeError(c);
|
||||
return (
|
||||
(t = a(t) || 0),
|
||||
o(n) &&
|
||||
((_ = !!n.leading),
|
||||
(S = 'maxWait' in n),
|
||||
(y = S ? k(a(n.maxWait) || 0, t) : y),
|
||||
(z = 'trailing' in n ? !!n.trailing : z)),
|
||||
(m.cancel = l),
|
||||
(m.flush = p),
|
||||
m
|
||||
);
|
||||
}
|
||||
function o(e) {
|
||||
var t = 'undefined' == typeof e ? 'undefined' : u(e);
|
||||
return !!e && ('object' == t || 'function' == t);
|
||||
}
|
||||
function i(e) {
|
||||
return (
|
||||
!!e && 'object' == ('undefined' == typeof e ? 'undefined' : u(e))
|
||||
);
|
||||
}
|
||||
function r(e) {
|
||||
return (
|
||||
'symbol' == ('undefined' == typeof e ? 'undefined' : u(e)) ||
|
||||
(i(e) && w.call(e) == s)
|
||||
);
|
||||
}
|
||||
function a(e) {
|
||||
if ('number' == typeof e) return e;
|
||||
if (r(e)) return f;
|
||||
if (o(e)) {
|
||||
var t = 'function' == typeof e.valueOf ? e.valueOf() : e;
|
||||
e = o(t) ? t + '' : t;
|
||||
}
|
||||
if ('string' != typeof e) return 0 === e ? e : +e;
|
||||
e = e.replace(d, '');
|
||||
var n = p.test(e);
|
||||
return n || m.test(e) ? b(e.slice(2), n ? 2 : 8) : l.test(e) ? f : +e;
|
||||
}
|
||||
var u =
|
||||
'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
|
||||
? function (e) {
|
||||
return typeof e;
|
||||
}
|
||||
: function (e) {
|
||||
return e &&
|
||||
'function' == typeof Symbol &&
|
||||
e.constructor === Symbol &&
|
||||
e !== Symbol.prototype
|
||||
? 'symbol'
|
||||
: typeof e;
|
||||
},
|
||||
c = 'Expected a function',
|
||||
f = NaN,
|
||||
s = '[object Symbol]',
|
||||
d = /^\s+|\s+$/g,
|
||||
l = /^[-+]0x[0-9a-f]+$/i,
|
||||
p = /^0b[01]+$/i,
|
||||
m = /^0o[0-7]+$/i,
|
||||
b = parseInt,
|
||||
v =
|
||||
'object' == ('undefined' == typeof t ? 'undefined' : u(t)) &&
|
||||
t &&
|
||||
t.Object === Object &&
|
||||
t,
|
||||
y =
|
||||
'object' == ('undefined' == typeof self ? 'undefined' : u(self)) &&
|
||||
self &&
|
||||
self.Object === Object &&
|
||||
self,
|
||||
g = v || y || Function('return this')(),
|
||||
h = Object.prototype,
|
||||
w = h.toString,
|
||||
k = Math.max,
|
||||
x = Math.min,
|
||||
j = function () {
|
||||
return g.Date.now();
|
||||
};
|
||||
e.exports = n;
|
||||
}.call(
|
||||
t,
|
||||
(function () {
|
||||
return this;
|
||||
})()
|
||||
));
|
||||
},
|
||||
function (e, t) {
|
||||
'use strict';
|
||||
function n(e, t) {
|
||||
var n = new r(o);
|
||||
(a = t),
|
||||
n.observe(i.documentElement, {
|
||||
childList: !0,
|
||||
subtree: !0,
|
||||
removedNodes: !0,
|
||||
});
|
||||
}
|
||||
function o(e) {
|
||||
e &&
|
||||
e.forEach(function (e) {
|
||||
var t = Array.prototype.slice.call(e.addedNodes),
|
||||
n = Array.prototype.slice.call(e.removedNodes),
|
||||
o = t.concat(n).filter(function (e) {
|
||||
return e.hasAttribute && e.hasAttribute('data-aos');
|
||||
}).length;
|
||||
o && a();
|
||||
});
|
||||
}
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var i = window.document,
|
||||
r =
|
||||
window.MutationObserver ||
|
||||
window.WebKitMutationObserver ||
|
||||
window.MozMutationObserver,
|
||||
a = function () {};
|
||||
t.default = n;
|
||||
},
|
||||
function (e, t) {
|
||||
'use strict';
|
||||
function n(e, t) {
|
||||
if (!(e instanceof t))
|
||||
throw new TypeError('Cannot call a class as a function');
|
||||
}
|
||||
function o() {
|
||||
return navigator.userAgent || navigator.vendor || window.opera || '';
|
||||
}
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var i = (function () {
|
||||
function e(e, t) {
|
||||
for (var n = 0; n < t.length; n++) {
|
||||
var o = t[n];
|
||||
(o.enumerable = o.enumerable || !1),
|
||||
(o.configurable = !0),
|
||||
'value' in o && (o.writable = !0),
|
||||
Object.defineProperty(e, o.key, o);
|
||||
}
|
||||
}
|
||||
return function (t, n, o) {
|
||||
return n && e(t.prototype, n), o && e(t, o), t;
|
||||
};
|
||||
})(),
|
||||
r =
|
||||
/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,
|
||||
a =
|
||||
/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,
|
||||
u =
|
||||
/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,
|
||||
c =
|
||||
/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,
|
||||
f = (function () {
|
||||
function e() {
|
||||
n(this, e);
|
||||
}
|
||||
return (
|
||||
i(e, [
|
||||
{
|
||||
key: 'phone',
|
||||
value: function () {
|
||||
var e = o();
|
||||
return !(!r.test(e) && !a.test(e.substr(0, 4)));
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'mobile',
|
||||
value: function () {
|
||||
var e = o();
|
||||
return !(!u.test(e) && !c.test(e.substr(0, 4)));
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'tablet',
|
||||
value: function () {
|
||||
return this.mobile() && !this.phone();
|
||||
},
|
||||
},
|
||||
]),
|
||||
e
|
||||
);
|
||||
})();
|
||||
t.default = new f();
|
||||
},
|
||||
function (e, t) {
|
||||
'use strict';
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var n = function (e, t, n) {
|
||||
var o = e.node.getAttribute('data-aos-once');
|
||||
t > e.position
|
||||
? e.node.classList.add('aos-animate')
|
||||
: 'undefined' != typeof o &&
|
||||
('false' === o || (!n && 'true' !== o)) &&
|
||||
e.node.classList.remove('aos-animate');
|
||||
},
|
||||
o = function (e, t) {
|
||||
var o = window.pageYOffset,
|
||||
i = window.innerHeight;
|
||||
e.forEach(function (e, r) {
|
||||
n(e, i + o, t);
|
||||
});
|
||||
};
|
||||
t.default = o;
|
||||
},
|
||||
function (e, t, n) {
|
||||
'use strict';
|
||||
function o(e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
}
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var i = n(12),
|
||||
r = o(i),
|
||||
a = function (e, t) {
|
||||
return (
|
||||
e.forEach(function (e, n) {
|
||||
e.node.classList.add('aos-init'),
|
||||
(e.position = (0, r.default)(e.node, t.offset));
|
||||
}),
|
||||
e
|
||||
);
|
||||
};
|
||||
t.default = a;
|
||||
},
|
||||
function (e, t, n) {
|
||||
'use strict';
|
||||
function o(e) {
|
||||
return e && e.__esModule ? e : { default: e };
|
||||
}
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var i = n(13),
|
||||
r = o(i),
|
||||
a = function (e, t) {
|
||||
var n = 0,
|
||||
o = 0,
|
||||
i = window.innerHeight,
|
||||
a = {
|
||||
offset: e.getAttribute('data-aos-offset'),
|
||||
anchor: e.getAttribute('data-aos-anchor'),
|
||||
anchorPlacement: e.getAttribute('data-aos-anchor-placement'),
|
||||
};
|
||||
switch (
|
||||
(a.offset && !isNaN(a.offset) && (o = parseInt(a.offset)),
|
||||
a.anchor &&
|
||||
document.querySelectorAll(a.anchor) &&
|
||||
(e = document.querySelectorAll(a.anchor)[0]),
|
||||
(n = (0, r.default)(e).top),
|
||||
a.anchorPlacement)
|
||||
) {
|
||||
case 'top-bottom':
|
||||
break;
|
||||
case 'center-bottom':
|
||||
n += e.offsetHeight / 2;
|
||||
break;
|
||||
case 'bottom-bottom':
|
||||
n += e.offsetHeight;
|
||||
break;
|
||||
case 'top-center':
|
||||
n += i / 2;
|
||||
break;
|
||||
case 'bottom-center':
|
||||
n += i / 2 + e.offsetHeight;
|
||||
break;
|
||||
case 'center-center':
|
||||
n += i / 2 + e.offsetHeight / 2;
|
||||
break;
|
||||
case 'top-top':
|
||||
n += i;
|
||||
break;
|
||||
case 'bottom-top':
|
||||
n += e.offsetHeight + i;
|
||||
break;
|
||||
case 'center-top':
|
||||
n += e.offsetHeight / 2 + i;
|
||||
}
|
||||
return a.anchorPlacement || a.offset || isNaN(t) || (o = t), n + o;
|
||||
};
|
||||
t.default = a;
|
||||
},
|
||||
function (e, t) {
|
||||
'use strict';
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var n = function (e) {
|
||||
for (
|
||||
var t = 0, n = 0;
|
||||
e && !isNaN(e.offsetLeft) && !isNaN(e.offsetTop);
|
||||
|
||||
)
|
||||
(t += e.offsetLeft - ('BODY' != e.tagName ? e.scrollLeft : 0)),
|
||||
(n += e.offsetTop - ('BODY' != e.tagName ? e.scrollTop : 0)),
|
||||
(e = e.offsetParent);
|
||||
return { top: n, left: t };
|
||||
};
|
||||
t.default = n;
|
||||
},
|
||||
function (e, t) {
|
||||
'use strict';
|
||||
Object.defineProperty(t, '__esModule', { value: !0 });
|
||||
var n = function (e) {
|
||||
return (
|
||||
(e = e || document.querySelectorAll('[data-aos]')),
|
||||
Array.prototype.map.call(e, function (e) {
|
||||
return { node: e };
|
||||
})
|
||||
);
|
||||
};
|
||||
t.default = n;
|
||||
},
|
||||
]);
|
||||
});
|
||||
794
themes/agico-hugo/assets/plugins/search/fuse.min.js
vendored
Normal file
794
themes/agico-hugo/assets/plugins/search/fuse.min.js
vendored
Normal file
@@ -0,0 +1,794 @@
|
||||
/*!
|
||||
* Fuse.js v3.4.6 - Lightweight fuzzy-search (http://fusejs.io)
|
||||
*
|
||||
* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
|
||||
* All Rights Reserved. Apache Software License 2.0
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
!(function (e, t) {
|
||||
'object' == typeof exports && 'object' == typeof module
|
||||
? (module.exports = t())
|
||||
: 'function' == typeof define && define.amd
|
||||
? define('Fuse', [], t)
|
||||
: 'object' == typeof exports
|
||||
? (exports.Fuse = t())
|
||||
: (e.Fuse = t());
|
||||
})(this, function () {
|
||||
return (function (e) {
|
||||
var t = {};
|
||||
function n(r) {
|
||||
if (t[r]) return t[r].exports;
|
||||
var o = (t[r] = { i: r, l: !1, exports: {} });
|
||||
return e[r].call(o.exports, o, o.exports, n), (o.l = !0), o.exports;
|
||||
}
|
||||
return (
|
||||
(n.m = e),
|
||||
(n.c = t),
|
||||
(n.d = function (e, t, r) {
|
||||
n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: r });
|
||||
}),
|
||||
(n.r = function (e) {
|
||||
'undefined' != typeof Symbol &&
|
||||
Symbol.toStringTag &&
|
||||
Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' }),
|
||||
Object.defineProperty(e, '__esModule', { value: !0 });
|
||||
}),
|
||||
(n.t = function (e, t) {
|
||||
if ((1 & t && (e = n(e)), 8 & t)) return e;
|
||||
if (4 & t && 'object' == typeof e && e && e.__esModule) return e;
|
||||
var r = Object.create(null);
|
||||
if (
|
||||
(n.r(r),
|
||||
Object.defineProperty(r, 'default', { enumerable: !0, value: e }),
|
||||
2 & t && 'string' != typeof e)
|
||||
)
|
||||
for (var o in e)
|
||||
n.d(
|
||||
r,
|
||||
o,
|
||||
function (t) {
|
||||
return e[t];
|
||||
}.bind(null, o)
|
||||
);
|
||||
return r;
|
||||
}),
|
||||
(n.n = function (e) {
|
||||
var t =
|
||||
e && e.__esModule
|
||||
? function () {
|
||||
return e.default;
|
||||
}
|
||||
: function () {
|
||||
return e;
|
||||
};
|
||||
return n.d(t, 'a', t), t;
|
||||
}),
|
||||
(n.o = function (e, t) {
|
||||
return Object.prototype.hasOwnProperty.call(e, t);
|
||||
}),
|
||||
(n.p = ''),
|
||||
n((n.s = 1))
|
||||
);
|
||||
})([
|
||||
function (e, t) {
|
||||
e.exports = function (e) {
|
||||
return Array.isArray
|
||||
? Array.isArray(e)
|
||||
: '[object Array]' === Object.prototype.toString.call(e);
|
||||
};
|
||||
},
|
||||
function (e, t, n) {
|
||||
function r(e) {
|
||||
return (r =
|
||||
'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
|
||||
? function (e) {
|
||||
return typeof e;
|
||||
}
|
||||
: function (e) {
|
||||
return e &&
|
||||
'function' == typeof Symbol &&
|
||||
e.constructor === Symbol &&
|
||||
e !== Symbol.prototype
|
||||
? 'symbol'
|
||||
: typeof e;
|
||||
})(e);
|
||||
}
|
||||
function o(e, t) {
|
||||
for (var n = 0; n < t.length; n++) {
|
||||
var r = t[n];
|
||||
(r.enumerable = r.enumerable || !1),
|
||||
(r.configurable = !0),
|
||||
'value' in r && (r.writable = !0),
|
||||
Object.defineProperty(e, r.key, r);
|
||||
}
|
||||
}
|
||||
var i = n(2),
|
||||
a = n(8),
|
||||
s = n(0),
|
||||
c = (function () {
|
||||
function e(t, n) {
|
||||
var r = n.location,
|
||||
o = void 0 === r ? 0 : r,
|
||||
i = n.distance,
|
||||
s = void 0 === i ? 100 : i,
|
||||
c = n.threshold,
|
||||
h = void 0 === c ? 0.6 : c,
|
||||
l = n.maxPatternLength,
|
||||
u = void 0 === l ? 32 : l,
|
||||
f = n.caseSensitive,
|
||||
d = void 0 !== f && f,
|
||||
v = n.tokenSeparator,
|
||||
p = void 0 === v ? / +/g : v,
|
||||
g = n.findAllMatches,
|
||||
y = void 0 !== g && g,
|
||||
m = n.minMatchCharLength,
|
||||
k = void 0 === m ? 1 : m,
|
||||
S = n.id,
|
||||
x = void 0 === S ? null : S,
|
||||
b = n.keys,
|
||||
M = void 0 === b ? [] : b,
|
||||
_ = n.shouldSort,
|
||||
L = void 0 === _ || _,
|
||||
w = n.getFn,
|
||||
A = void 0 === w ? a : w,
|
||||
C = n.sortFn,
|
||||
I =
|
||||
void 0 === C
|
||||
? function (e, t) {
|
||||
return e.score - t.score;
|
||||
}
|
||||
: C,
|
||||
O = n.tokenize,
|
||||
j = void 0 !== O && O,
|
||||
P = n.matchAllTokens,
|
||||
F = void 0 !== P && P,
|
||||
T = n.includeMatches,
|
||||
z = void 0 !== T && T,
|
||||
E = n.includeScore,
|
||||
K = void 0 !== E && E,
|
||||
$ = n.verbose,
|
||||
J = void 0 !== $ && $;
|
||||
!(function (e, t) {
|
||||
if (!(e instanceof t))
|
||||
throw new TypeError('Cannot call a class as a function');
|
||||
})(this, e),
|
||||
(this.options = {
|
||||
location: o,
|
||||
distance: s,
|
||||
threshold: h,
|
||||
maxPatternLength: u,
|
||||
isCaseSensitive: d,
|
||||
tokenSeparator: p,
|
||||
findAllMatches: y,
|
||||
minMatchCharLength: k,
|
||||
id: x,
|
||||
keys: M,
|
||||
includeMatches: z,
|
||||
includeScore: K,
|
||||
shouldSort: L,
|
||||
getFn: A,
|
||||
sortFn: I,
|
||||
verbose: J,
|
||||
tokenize: j,
|
||||
matchAllTokens: F,
|
||||
}),
|
||||
this.setCollection(t);
|
||||
}
|
||||
var t, n, c;
|
||||
return (
|
||||
(t = e),
|
||||
(n = [
|
||||
{
|
||||
key: 'setCollection',
|
||||
value: function (e) {
|
||||
return (this.list = e), e;
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'search',
|
||||
value: function (e) {
|
||||
var t =
|
||||
arguments.length > 1 && void 0 !== arguments[1]
|
||||
? arguments[1]
|
||||
: { limit: !1 };
|
||||
this._log('---------\nSearch pattern: "'.concat(e, '"'));
|
||||
var n = this._prepareSearchers(e),
|
||||
r = n.tokenSearchers,
|
||||
o = n.fullSearcher,
|
||||
i = this._search(r, o),
|
||||
a = i.weights,
|
||||
s = i.results;
|
||||
return (
|
||||
this._computeScore(a, s),
|
||||
this.options.shouldSort && this._sort(s),
|
||||
t.limit &&
|
||||
'number' == typeof t.limit &&
|
||||
(s = s.slice(0, t.limit)),
|
||||
this._format(s)
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
key: '_prepareSearchers',
|
||||
value: function () {
|
||||
var e =
|
||||
arguments.length > 0 && void 0 !== arguments[0]
|
||||
? arguments[0]
|
||||
: '',
|
||||
t = [];
|
||||
if (this.options.tokenize)
|
||||
for (
|
||||
var n = e.split(this.options.tokenSeparator),
|
||||
r = 0,
|
||||
o = n.length;
|
||||
r < o;
|
||||
r += 1
|
||||
)
|
||||
t.push(new i(n[r], this.options));
|
||||
return {
|
||||
tokenSearchers: t,
|
||||
fullSearcher: new i(e, this.options),
|
||||
};
|
||||
},
|
||||
},
|
||||
{
|
||||
key: '_search',
|
||||
value: function () {
|
||||
var e =
|
||||
arguments.length > 0 && void 0 !== arguments[0]
|
||||
? arguments[0]
|
||||
: [],
|
||||
t = arguments.length > 1 ? arguments[1] : void 0,
|
||||
n = this.list,
|
||||
r = {},
|
||||
o = [];
|
||||
if ('string' == typeof n[0]) {
|
||||
for (var i = 0, a = n.length; i < a; i += 1)
|
||||
this._analyze(
|
||||
{ key: '', value: n[i], record: i, index: i },
|
||||
{
|
||||
resultMap: r,
|
||||
results: o,
|
||||
tokenSearchers: e,
|
||||
fullSearcher: t,
|
||||
}
|
||||
);
|
||||
return { weights: null, results: o };
|
||||
}
|
||||
for (var s = {}, c = 0, h = n.length; c < h; c += 1)
|
||||
for (
|
||||
var l = n[c], u = 0, f = this.options.keys.length;
|
||||
u < f;
|
||||
u += 1
|
||||
) {
|
||||
var d = this.options.keys[u];
|
||||
if ('string' != typeof d) {
|
||||
if (
|
||||
((s[d.name] = { weight: 1 - d.weight || 1 }),
|
||||
d.weight <= 0 || d.weight > 1)
|
||||
)
|
||||
throw new Error('Key weight has to be > 0 and <= 1');
|
||||
d = d.name;
|
||||
} else s[d] = { weight: 1 };
|
||||
this._analyze(
|
||||
{
|
||||
key: d,
|
||||
value: this.options.getFn(l, d),
|
||||
record: l,
|
||||
index: c,
|
||||
},
|
||||
{
|
||||
resultMap: r,
|
||||
results: o,
|
||||
tokenSearchers: e,
|
||||
fullSearcher: t,
|
||||
}
|
||||
);
|
||||
}
|
||||
return { weights: s, results: o };
|
||||
},
|
||||
},
|
||||
{
|
||||
key: '_analyze',
|
||||
value: function (e, t) {
|
||||
var n = e.key,
|
||||
r = e.arrayIndex,
|
||||
o = void 0 === r ? -1 : r,
|
||||
i = e.value,
|
||||
a = e.record,
|
||||
c = e.index,
|
||||
h = t.tokenSearchers,
|
||||
l = void 0 === h ? [] : h,
|
||||
u = t.fullSearcher,
|
||||
f = void 0 === u ? [] : u,
|
||||
d = t.resultMap,
|
||||
v = void 0 === d ? {} : d,
|
||||
p = t.results,
|
||||
g = void 0 === p ? [] : p;
|
||||
if (null != i) {
|
||||
var y = !1,
|
||||
m = -1,
|
||||
k = 0;
|
||||
if ('string' == typeof i) {
|
||||
this._log('\nKey: '.concat('' === n ? '-' : n));
|
||||
var S = f.search(i);
|
||||
if (
|
||||
(this._log(
|
||||
'Full text: "'.concat(i, '", score: ').concat(S.score)
|
||||
),
|
||||
this.options.tokenize)
|
||||
) {
|
||||
for (
|
||||
var x = i.split(this.options.tokenSeparator),
|
||||
b = [],
|
||||
M = 0;
|
||||
M < l.length;
|
||||
M += 1
|
||||
) {
|
||||
var _ = l[M];
|
||||
this._log('\nPattern: "'.concat(_.pattern, '"'));
|
||||
for (var L = !1, w = 0; w < x.length; w += 1) {
|
||||
var A = x[w],
|
||||
C = _.search(A),
|
||||
I = {};
|
||||
C.isMatch
|
||||
? ((I[A] = C.score),
|
||||
(y = !0),
|
||||
(L = !0),
|
||||
b.push(C.score))
|
||||
: ((I[A] = 1),
|
||||
this.options.matchAllTokens || b.push(1)),
|
||||
this._log(
|
||||
'Token: "'.concat(A, '", score: ').concat(I[A])
|
||||
);
|
||||
}
|
||||
L && (k += 1);
|
||||
}
|
||||
m = b[0];
|
||||
for (var O = b.length, j = 1; j < O; j += 1) m += b[j];
|
||||
(m /= O), this._log('Token score average:', m);
|
||||
}
|
||||
var P = S.score;
|
||||
m > -1 && (P = (P + m) / 2),
|
||||
this._log('Score average:', P);
|
||||
var F =
|
||||
!this.options.tokenize ||
|
||||
!this.options.matchAllTokens ||
|
||||
k >= l.length;
|
||||
if (
|
||||
(this._log('\nCheck Matches: '.concat(F)),
|
||||
(y || S.isMatch) && F)
|
||||
) {
|
||||
var T = v[c];
|
||||
T
|
||||
? T.output.push({
|
||||
key: n,
|
||||
arrayIndex: o,
|
||||
value: i,
|
||||
score: P,
|
||||
matchedIndices: S.matchedIndices,
|
||||
})
|
||||
: ((v[c] = {
|
||||
item: a,
|
||||
output: [
|
||||
{
|
||||
key: n,
|
||||
arrayIndex: o,
|
||||
value: i,
|
||||
score: P,
|
||||
matchedIndices: S.matchedIndices,
|
||||
},
|
||||
],
|
||||
}),
|
||||
g.push(v[c]));
|
||||
}
|
||||
} else if (s(i))
|
||||
for (var z = 0, E = i.length; z < E; z += 1)
|
||||
this._analyze(
|
||||
{
|
||||
key: n,
|
||||
arrayIndex: z,
|
||||
value: i[z],
|
||||
record: a,
|
||||
index: c,
|
||||
},
|
||||
{
|
||||
resultMap: v,
|
||||
results: g,
|
||||
tokenSearchers: l,
|
||||
fullSearcher: f,
|
||||
}
|
||||
);
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
key: '_computeScore',
|
||||
value: function (e, t) {
|
||||
this._log('\n\nComputing score:\n');
|
||||
for (var n = 0, r = t.length; n < r; n += 1) {
|
||||
for (
|
||||
var o = t[n].output, i = o.length, a = 1, s = 1, c = 0;
|
||||
c < i;
|
||||
c += 1
|
||||
) {
|
||||
var h = e ? e[o[c].key].weight : 1,
|
||||
l = (1 === h ? o[c].score : o[c].score || 0.001) * h;
|
||||
1 !== h
|
||||
? (s = Math.min(s, l))
|
||||
: ((o[c].nScore = l), (a *= l));
|
||||
}
|
||||
(t[n].score = 1 === s ? a : s), this._log(t[n]);
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
key: '_sort',
|
||||
value: function (e) {
|
||||
this._log('\n\nSorting....'), e.sort(this.options.sortFn);
|
||||
},
|
||||
},
|
||||
{
|
||||
key: '_format',
|
||||
value: function (e) {
|
||||
var t = [];
|
||||
if (this.options.verbose) {
|
||||
var n = [];
|
||||
this._log(
|
||||
'\n\nOutput:\n\n',
|
||||
JSON.stringify(e, function (e, t) {
|
||||
if ('object' === r(t) && null !== t) {
|
||||
if (-1 !== n.indexOf(t)) return;
|
||||
n.push(t);
|
||||
}
|
||||
return t;
|
||||
})
|
||||
),
|
||||
(n = null);
|
||||
}
|
||||
var o = [];
|
||||
this.options.includeMatches &&
|
||||
o.push(function (e, t) {
|
||||
var n = e.output;
|
||||
t.matches = [];
|
||||
for (var r = 0, o = n.length; r < o; r += 1) {
|
||||
var i = n[r];
|
||||
if (0 !== i.matchedIndices.length) {
|
||||
var a = { indices: i.matchedIndices, value: i.value };
|
||||
i.key && (a.key = i.key),
|
||||
i.hasOwnProperty('arrayIndex') &&
|
||||
i.arrayIndex > -1 &&
|
||||
(a.arrayIndex = i.arrayIndex),
|
||||
t.matches.push(a);
|
||||
}
|
||||
}
|
||||
}),
|
||||
this.options.includeScore &&
|
||||
o.push(function (e, t) {
|
||||
t.score = e.score;
|
||||
});
|
||||
for (var i = 0, a = e.length; i < a; i += 1) {
|
||||
var s = e[i];
|
||||
if (
|
||||
(this.options.id &&
|
||||
(s.item = this.options.getFn(
|
||||
s.item,
|
||||
this.options.id
|
||||
)[0]),
|
||||
o.length)
|
||||
) {
|
||||
for (
|
||||
var c = { item: s.item }, h = 0, l = o.length;
|
||||
h < l;
|
||||
h += 1
|
||||
)
|
||||
o[h](s, c);
|
||||
t.push(c);
|
||||
} else t.push(s.item);
|
||||
}
|
||||
return t;
|
||||
},
|
||||
},
|
||||
{
|
||||
key: '_log',
|
||||
value: function () {
|
||||
var e;
|
||||
this.options.verbose && (e = console).log.apply(e, arguments);
|
||||
},
|
||||
},
|
||||
]) && o(t.prototype, n),
|
||||
c && o(t, c),
|
||||
e
|
||||
);
|
||||
})();
|
||||
e.exports = c;
|
||||
},
|
||||
function (e, t, n) {
|
||||
function r(e, t) {
|
||||
for (var n = 0; n < t.length; n++) {
|
||||
var r = t[n];
|
||||
(r.enumerable = r.enumerable || !1),
|
||||
(r.configurable = !0),
|
||||
'value' in r && (r.writable = !0),
|
||||
Object.defineProperty(e, r.key, r);
|
||||
}
|
||||
}
|
||||
var o = n(3),
|
||||
i = n(4),
|
||||
a = n(7),
|
||||
s = (function () {
|
||||
function e(t, n) {
|
||||
var r = n.location,
|
||||
o = void 0 === r ? 0 : r,
|
||||
i = n.distance,
|
||||
s = void 0 === i ? 100 : i,
|
||||
c = n.threshold,
|
||||
h = void 0 === c ? 0.6 : c,
|
||||
l = n.maxPatternLength,
|
||||
u = void 0 === l ? 32 : l,
|
||||
f = n.isCaseSensitive,
|
||||
d = void 0 !== f && f,
|
||||
v = n.tokenSeparator,
|
||||
p = void 0 === v ? / +/g : v,
|
||||
g = n.findAllMatches,
|
||||
y = void 0 !== g && g,
|
||||
m = n.minMatchCharLength,
|
||||
k = void 0 === m ? 1 : m;
|
||||
!(function (e, t) {
|
||||
if (!(e instanceof t))
|
||||
throw new TypeError('Cannot call a class as a function');
|
||||
})(this, e),
|
||||
(this.options = {
|
||||
location: o,
|
||||
distance: s,
|
||||
threshold: h,
|
||||
maxPatternLength: u,
|
||||
isCaseSensitive: d,
|
||||
tokenSeparator: p,
|
||||
findAllMatches: y,
|
||||
minMatchCharLength: k,
|
||||
}),
|
||||
(this.pattern = this.options.isCaseSensitive
|
||||
? t
|
||||
: t.toLowerCase()),
|
||||
this.pattern.length <= u &&
|
||||
(this.patternAlphabet = a(this.pattern));
|
||||
}
|
||||
var t, n, s;
|
||||
return (
|
||||
(t = e),
|
||||
(n = [
|
||||
{
|
||||
key: 'search',
|
||||
value: function (e) {
|
||||
if (
|
||||
(this.options.isCaseSensitive || (e = e.toLowerCase()),
|
||||
this.pattern === e)
|
||||
)
|
||||
return {
|
||||
isMatch: !0,
|
||||
score: 0,
|
||||
matchedIndices: [[0, e.length - 1]],
|
||||
};
|
||||
var t = this.options,
|
||||
n = t.maxPatternLength,
|
||||
r = t.tokenSeparator;
|
||||
if (this.pattern.length > n) return o(e, this.pattern, r);
|
||||
var a = this.options,
|
||||
s = a.location,
|
||||
c = a.distance,
|
||||
h = a.threshold,
|
||||
l = a.findAllMatches,
|
||||
u = a.minMatchCharLength;
|
||||
return i(e, this.pattern, this.patternAlphabet, {
|
||||
location: s,
|
||||
distance: c,
|
||||
threshold: h,
|
||||
findAllMatches: l,
|
||||
minMatchCharLength: u,
|
||||
});
|
||||
},
|
||||
},
|
||||
]) && r(t.prototype, n),
|
||||
s && r(t, s),
|
||||
e
|
||||
);
|
||||
})();
|
||||
e.exports = s;
|
||||
},
|
||||
function (e, t) {
|
||||
var n = /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;
|
||||
e.exports = function (e, t) {
|
||||
var r =
|
||||
arguments.length > 2 && void 0 !== arguments[2]
|
||||
? arguments[2]
|
||||
: / +/g,
|
||||
o = new RegExp(t.replace(n, '\\$&').replace(r, '|')),
|
||||
i = e.match(o),
|
||||
a = !!i,
|
||||
s = [];
|
||||
if (a)
|
||||
for (var c = 0, h = i.length; c < h; c += 1) {
|
||||
var l = i[c];
|
||||
s.push([e.indexOf(l), l.length - 1]);
|
||||
}
|
||||
return { score: a ? 0.5 : 1, isMatch: a, matchedIndices: s };
|
||||
};
|
||||
},
|
||||
function (e, t, n) {
|
||||
var r = n(5),
|
||||
o = n(6);
|
||||
e.exports = function (e, t, n, i) {
|
||||
for (
|
||||
var a = i.location,
|
||||
s = void 0 === a ? 0 : a,
|
||||
c = i.distance,
|
||||
h = void 0 === c ? 100 : c,
|
||||
l = i.threshold,
|
||||
u = void 0 === l ? 0.6 : l,
|
||||
f = i.findAllMatches,
|
||||
d = void 0 !== f && f,
|
||||
v = i.minMatchCharLength,
|
||||
p = void 0 === v ? 1 : v,
|
||||
g = s,
|
||||
y = e.length,
|
||||
m = u,
|
||||
k = e.indexOf(t, g),
|
||||
S = t.length,
|
||||
x = [],
|
||||
b = 0;
|
||||
b < y;
|
||||
b += 1
|
||||
)
|
||||
x[b] = 0;
|
||||
if (-1 !== k) {
|
||||
var M = r(t, {
|
||||
errors: 0,
|
||||
currentLocation: k,
|
||||
expectedLocation: g,
|
||||
distance: h,
|
||||
});
|
||||
if (((m = Math.min(M, m)), -1 !== (k = e.lastIndexOf(t, g + S)))) {
|
||||
var _ = r(t, {
|
||||
errors: 0,
|
||||
currentLocation: k,
|
||||
expectedLocation: g,
|
||||
distance: h,
|
||||
});
|
||||
m = Math.min(_, m);
|
||||
}
|
||||
}
|
||||
k = -1;
|
||||
for (
|
||||
var L = [], w = 1, A = S + y, C = 1 << (S <= 31 ? S - 1 : 30), I = 0;
|
||||
I < S;
|
||||
I += 1
|
||||
) {
|
||||
for (var O = 0, j = A; O < j; ) {
|
||||
r(t, {
|
||||
errors: I,
|
||||
currentLocation: g + j,
|
||||
expectedLocation: g,
|
||||
distance: h,
|
||||
}) <= m
|
||||
? (O = j)
|
||||
: (A = j),
|
||||
(j = Math.floor((A - O) / 2 + O));
|
||||
}
|
||||
A = j;
|
||||
var P = Math.max(1, g - j + 1),
|
||||
F = d ? y : Math.min(g + j, y) + S,
|
||||
T = Array(F + 2);
|
||||
T[F + 1] = (1 << I) - 1;
|
||||
for (var z = F; z >= P; z -= 1) {
|
||||
var E = z - 1,
|
||||
K = n[e.charAt(E)];
|
||||
if (
|
||||
(K && (x[E] = 1),
|
||||
(T[z] = ((T[z + 1] << 1) | 1) & K),
|
||||
0 !== I && (T[z] |= ((L[z + 1] | L[z]) << 1) | 1 | L[z + 1]),
|
||||
T[z] & C &&
|
||||
(w = r(t, {
|
||||
errors: I,
|
||||
currentLocation: E,
|
||||
expectedLocation: g,
|
||||
distance: h,
|
||||
})) <= m)
|
||||
) {
|
||||
if (((m = w), (k = E) <= g)) break;
|
||||
P = Math.max(1, 2 * g - k);
|
||||
}
|
||||
}
|
||||
if (
|
||||
r(t, {
|
||||
errors: I + 1,
|
||||
currentLocation: g,
|
||||
expectedLocation: g,
|
||||
distance: h,
|
||||
}) > m
|
||||
)
|
||||
break;
|
||||
L = T;
|
||||
}
|
||||
return {
|
||||
isMatch: k >= 0,
|
||||
score: 0 === w ? 0.001 : w,
|
||||
matchedIndices: o(x, p),
|
||||
};
|
||||
};
|
||||
},
|
||||
function (e, t) {
|
||||
e.exports = function (e, t) {
|
||||
var n = t.errors,
|
||||
r = void 0 === n ? 0 : n,
|
||||
o = t.currentLocation,
|
||||
i = void 0 === o ? 0 : o,
|
||||
a = t.expectedLocation,
|
||||
s = void 0 === a ? 0 : a,
|
||||
c = t.distance,
|
||||
h = void 0 === c ? 100 : c,
|
||||
l = r / e.length,
|
||||
u = Math.abs(s - i);
|
||||
return h ? l + u / h : u ? 1 : l;
|
||||
};
|
||||
},
|
||||
function (e, t) {
|
||||
e.exports = function () {
|
||||
for (
|
||||
var e =
|
||||
arguments.length > 0 && void 0 !== arguments[0]
|
||||
? arguments[0]
|
||||
: [],
|
||||
t =
|
||||
arguments.length > 1 && void 0 !== arguments[1]
|
||||
? arguments[1]
|
||||
: 1,
|
||||
n = [],
|
||||
r = -1,
|
||||
o = -1,
|
||||
i = 0,
|
||||
a = e.length;
|
||||
i < a;
|
||||
i += 1
|
||||
) {
|
||||
var s = e[i];
|
||||
s && -1 === r
|
||||
? (r = i)
|
||||
: s ||
|
||||
-1 === r ||
|
||||
((o = i - 1) - r + 1 >= t && n.push([r, o]), (r = -1));
|
||||
}
|
||||
return e[i - 1] && i - r >= t && n.push([r, i - 1]), n;
|
||||
};
|
||||
},
|
||||
function (e, t) {
|
||||
e.exports = function (e) {
|
||||
for (var t = {}, n = e.length, r = 0; r < n; r += 1) t[e.charAt(r)] = 0;
|
||||
for (var o = 0; o < n; o += 1) t[e.charAt(o)] |= 1 << (n - o - 1);
|
||||
return t;
|
||||
};
|
||||
},
|
||||
function (e, t, n) {
|
||||
var r = n(0);
|
||||
e.exports = function (e, t) {
|
||||
return (function e(t, n, o) {
|
||||
if (n) {
|
||||
var i = n.indexOf('.'),
|
||||
a = n,
|
||||
s = null;
|
||||
-1 !== i && ((a = n.slice(0, i)), (s = n.slice(i + 1)));
|
||||
var c = t[a];
|
||||
if (null != c)
|
||||
if (s || ('string' != typeof c && 'number' != typeof c))
|
||||
if (r(c))
|
||||
for (var h = 0, l = c.length; h < l; h += 1) e(c[h], s, o);
|
||||
else s && e(c, s, o);
|
||||
else o.push(c.toString());
|
||||
} else o.push(t);
|
||||
return o;
|
||||
})(e, t, []);
|
||||
};
|
||||
},
|
||||
]);
|
||||
});
|
||||
136
themes/agico-hugo/assets/plugins/search/search.js
Normal file
136
themes/agico-hugo/assets/plugins/search/search.js
Normal file
@@ -0,0 +1,136 @@
|
||||
summaryInclude = 100;
|
||||
var fuseOptions = {
|
||||
isCaseSensitive: false,
|
||||
includeScore: false,
|
||||
shouldSort: true,
|
||||
includeMatches: true,
|
||||
findAllMatches: false,
|
||||
minMatchCharLength: 3,
|
||||
location: 0,
|
||||
threshold: 0.5,
|
||||
distance: 50,
|
||||
useExtendedSearch: false,
|
||||
ignoreLocation: false,
|
||||
ignoreFieldNorm: false,
|
||||
keys: [{
|
||||
name: "title",
|
||||
weight: 0.8
|
||||
},
|
||||
{
|
||||
name: "tags",
|
||||
weight: 0.5
|
||||
},
|
||||
{
|
||||
name: "categories",
|
||||
weight: 0.5
|
||||
},
|
||||
{
|
||||
name: "contents",
|
||||
weight: 0.3
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
var searchQuery = param("s");
|
||||
if (searchQuery) {
|
||||
document.querySelector("#search-query").value = searchQuery
|
||||
executeSearch(searchQuery);
|
||||
}
|
||||
|
||||
function executeSearch(searchQuery) {
|
||||
fetch(indexURL)
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
var pages = data;
|
||||
var fuse = new Fuse(pages, fuseOptions);
|
||||
var result = fuse.search(searchQuery);
|
||||
if (result.length > 0) {
|
||||
populateResults(result);
|
||||
} else {
|
||||
document.querySelector('#search-results').innerHTML = '<div class=\"text-center\"><img class=\"img-fluid mb-5\" src=\"https://user-images.githubusercontent.com/37659754/64060567-7cece400-cbf0-11e9-9cf9-abac3543ec1f.png" width=\"300\"><h3>No Search Found</h3></div>'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function populateResults(result) {
|
||||
result.forEach((value, key) => {
|
||||
var contents = value.item.contents;
|
||||
var snippet = "";
|
||||
var snippetHighlights = [];
|
||||
const matchValue = value.matches
|
||||
|
||||
matchValue.forEach((mvalue, matchKey) => {
|
||||
if (mvalue.key === "tags" || mvalue.key === "categories") {
|
||||
snippetHighlights.push(mvalue.value);
|
||||
} else if (mvalue.key == "contents") {
|
||||
start = mvalue.indices[0][0] - summaryInclude > 0 ? mvalue.indices[0][0] - summaryInclude : 0;
|
||||
end = mvalue.indices[0][1] + summaryInclude < contents.length ? mvalue.indices[0][1] + summaryInclude : contents.length;
|
||||
snippet += contents.substring(start, end);
|
||||
snippetHighlights.push(mvalue.value.substring(mvalue.indices[0][0], mvalue.indices[0][1] - mvalue.indices[0][0] + 1));
|
||||
}
|
||||
});
|
||||
|
||||
if (snippet.length < 1) {
|
||||
snippet += contents.substring(0, summaryInclude * 2);
|
||||
}
|
||||
//pull template from hugo templarte definition
|
||||
var templateDefinition = document.querySelector('#search-result-template').innerHTML;
|
||||
//replace values
|
||||
var output = render(templateDefinition, {
|
||||
key: key,
|
||||
title: value.item.title,
|
||||
image: value.item.image,
|
||||
date: value.item.date,
|
||||
link: value.item.permalink,
|
||||
tags: value.item.tags,
|
||||
categories: value.item.categories,
|
||||
snippet: snippet
|
||||
});
|
||||
// $('#search-results').append(output);
|
||||
const searchResults = document.querySelector('#search-results');
|
||||
searchResults.insertAdjacentHTML('beforeend', output);
|
||||
});
|
||||
}
|
||||
|
||||
function param(name) {
|
||||
return decodeURIComponent((location.search.split(name + '=')[1] || '').split('&')[0]).replace(/\+/g, ' ');
|
||||
}
|
||||
|
||||
function render(templateString, data) {
|
||||
var conditionalMatches, conditionalPattern, copy;
|
||||
conditionalPattern = /\$\{\s*isset ([a-zA-Z]*) \s*\}(.*)\$\{\s*end\s*}/g;
|
||||
//since loop below depends on re.lastInxdex, we use a copy to capture any manipulations whilst inside the loop
|
||||
copy = templateString;
|
||||
while ((conditionalMatches = conditionalPattern.exec(templateString)) !== null) {
|
||||
if (data[conditionalMatches[1]]) {
|
||||
//valid key, remove conditionals, leave contents.
|
||||
copy = copy.replace(conditionalMatches[0], conditionalMatches[2]);
|
||||
} else {
|
||||
//not valid, remove entire section
|
||||
copy = copy.replace(conditionalMatches[0], '');
|
||||
}
|
||||
}
|
||||
templateString = copy;
|
||||
//now any conditionals removed we can do simple substitution
|
||||
var key, find, re;
|
||||
for (key in data) {
|
||||
find = '\\$\\{\\s*' + key + '\\s*\\}';
|
||||
re = new RegExp(find, 'g');
|
||||
templateString = templateString.replace(re, data[key]);
|
||||
}
|
||||
return templateString;
|
||||
}
|
||||
|
||||
|
||||
// // Search Form Open
|
||||
// document.querySelector('#searchOpen').addEventListener('click', function () {
|
||||
// document.querySelector('.search-wrapper').classList.add('open')
|
||||
// setTimeout(function () {
|
||||
// document.querySelector('.search-box').focus();
|
||||
// }, 400);
|
||||
// });
|
||||
|
||||
// // Search Form close
|
||||
// document.querySelector('#searchClose').addEventListener('click', function () {
|
||||
// document.querySelector('.search-wrapper').classList.remove('open');
|
||||
// });
|
||||
624
themes/agico-hugo/assets/plugins/swiper/swiper.css
Normal file
624
themes/agico-hugo/assets/plugins/swiper/swiper.css
Normal file
@@ -0,0 +1,624 @@
|
||||
/**
|
||||
* Swiper 8.0.7
|
||||
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
||||
* https://swiperjs.com
|
||||
*
|
||||
* Copyright 2014-2022 Vladimir Kharlampidi
|
||||
*
|
||||
* Released under the MIT License
|
||||
*
|
||||
* Released on: March 4, 2022
|
||||
*/
|
||||
|
||||
@font-face {
|
||||
font-family: 'swiper-icons';
|
||||
src: url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
:root {
|
||||
--swiper-theme-color: #007aff;
|
||||
}
|
||||
.swiper {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
/* Fix of Webkit flickering */
|
||||
z-index: 1;
|
||||
}
|
||||
.swiper-vertical > .swiper-wrapper {
|
||||
flex-direction: column;
|
||||
}
|
||||
.swiper-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
transition-property: transform;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
.swiper-android .swiper-slide,
|
||||
.swiper-wrapper {
|
||||
transform: translate3d(0px, 0, 0);
|
||||
}
|
||||
.swiper-pointer-events {
|
||||
touch-action: pan-y;
|
||||
}
|
||||
.swiper-pointer-events.swiper-vertical {
|
||||
touch-action: pan-x;
|
||||
}
|
||||
.swiper-slide {
|
||||
flex-shrink: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
transition-property: transform;
|
||||
}
|
||||
.swiper-slide-invisible-blank {
|
||||
visibility: hidden;
|
||||
}
|
||||
/* Auto Height */
|
||||
.swiper-autoheight,
|
||||
.swiper-autoheight .swiper-slide {
|
||||
height: auto;
|
||||
}
|
||||
.swiper-autoheight .swiper-wrapper {
|
||||
align-items: flex-start;
|
||||
transition-property: transform, height;
|
||||
}
|
||||
.swiper-backface-hidden .swiper-slide {
|
||||
transform: translateZ(0);
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
/* 3D Effects */
|
||||
.swiper-3d,
|
||||
.swiper-3d.swiper-css-mode .swiper-wrapper {
|
||||
perspective: 1200px;
|
||||
}
|
||||
.swiper-3d .swiper-wrapper,
|
||||
.swiper-3d .swiper-slide,
|
||||
.swiper-3d .swiper-slide-shadow,
|
||||
.swiper-3d .swiper-slide-shadow-left,
|
||||
.swiper-3d .swiper-slide-shadow-right,
|
||||
.swiper-3d .swiper-slide-shadow-top,
|
||||
.swiper-3d .swiper-slide-shadow-bottom,
|
||||
.swiper-3d .swiper-cube-shadow {
|
||||
transform-style: preserve-3d;
|
||||
}
|
||||
.swiper-3d .swiper-slide-shadow,
|
||||
.swiper-3d .swiper-slide-shadow-left,
|
||||
.swiper-3d .swiper-slide-shadow-right,
|
||||
.swiper-3d .swiper-slide-shadow-top,
|
||||
.swiper-3d .swiper-slide-shadow-bottom {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
z-index: 10;
|
||||
}
|
||||
.swiper-3d .swiper-slide-shadow {
|
||||
background: rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
.swiper-3d .swiper-slide-shadow-left {
|
||||
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
||||
}
|
||||
.swiper-3d .swiper-slide-shadow-right {
|
||||
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
||||
}
|
||||
.swiper-3d .swiper-slide-shadow-top {
|
||||
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
||||
}
|
||||
.swiper-3d .swiper-slide-shadow-bottom {
|
||||
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
||||
}
|
||||
/* CSS Mode */
|
||||
.swiper-css-mode > .swiper-wrapper {
|
||||
overflow: auto;
|
||||
scrollbar-width: none;
|
||||
/* For Firefox */
|
||||
-ms-overflow-style: none;
|
||||
/* For Internet Explorer and Edge */
|
||||
}
|
||||
.swiper-css-mode > .swiper-wrapper::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.swiper-css-mode > .swiper-wrapper > .swiper-slide {
|
||||
scroll-snap-align: start start;
|
||||
}
|
||||
.swiper-horizontal.swiper-css-mode > .swiper-wrapper {
|
||||
scroll-snap-type: x mandatory;
|
||||
}
|
||||
.swiper-vertical.swiper-css-mode > .swiper-wrapper {
|
||||
scroll-snap-type: y mandatory;
|
||||
}
|
||||
.swiper-centered > .swiper-wrapper::before {
|
||||
content: '';
|
||||
flex-shrink: 0;
|
||||
order: 9999;
|
||||
}
|
||||
.swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {
|
||||
margin-inline-start: var(--swiper-centered-offset-before);
|
||||
}
|
||||
.swiper-centered.swiper-horizontal > .swiper-wrapper::before {
|
||||
height: 100%;
|
||||
min-height: 1px;
|
||||
width: var(--swiper-centered-offset-after);
|
||||
}
|
||||
.swiper-centered.swiper-vertical > .swiper-wrapper > .swiper-slide:first-child {
|
||||
margin-block-start: var(--swiper-centered-offset-before);
|
||||
}
|
||||
.swiper-centered.swiper-vertical > .swiper-wrapper::before {
|
||||
width: 100%;
|
||||
min-width: 1px;
|
||||
height: var(--swiper-centered-offset-after);
|
||||
}
|
||||
.swiper-centered > .swiper-wrapper > .swiper-slide {
|
||||
scroll-snap-align: center center;
|
||||
}
|
||||
.swiper-virtual .swiper-slide {
|
||||
-webkit-backface-visibility: hidden;
|
||||
transform: translateZ(0);
|
||||
}
|
||||
.swiper-virtual.swiper-css-mode .swiper-wrapper::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after {
|
||||
height: 1px;
|
||||
width: var(--swiper-virtual-size);
|
||||
}
|
||||
.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after {
|
||||
width: 1px;
|
||||
height: var(--swiper-virtual-size);
|
||||
}
|
||||
:root {
|
||||
--swiper-navigation-size: 44px;
|
||||
/*
|
||||
--swiper-navigation-color: var(--swiper-theme-color);
|
||||
*/
|
||||
}
|
||||
.swiper-button-prev,
|
||||
.swiper-button-next {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: calc(var(--swiper-navigation-size) / 44 * 27);
|
||||
height: var(--swiper-navigation-size);
|
||||
margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
|
||||
z-index: 10;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--swiper-navigation-color, var(--swiper-theme-color));
|
||||
}
|
||||
.swiper-button-prev.swiper-button-disabled,
|
||||
.swiper-button-next.swiper-button-disabled {
|
||||
opacity: 0.35;
|
||||
cursor: auto;
|
||||
pointer-events: none;
|
||||
}
|
||||
.swiper-button-prev:after,
|
||||
.swiper-button-next:after {
|
||||
font-family: swiper-icons;
|
||||
font-size: var(--swiper-navigation-size);
|
||||
text-transform: none !important;
|
||||
letter-spacing: 0;
|
||||
text-transform: none;
|
||||
font-variant: initial;
|
||||
line-height: 1;
|
||||
}
|
||||
.swiper-button-prev,
|
||||
.swiper-rtl .swiper-button-next {
|
||||
left: 10px;
|
||||
right: auto;
|
||||
}
|
||||
.swiper-button-prev:after,
|
||||
.swiper-rtl .swiper-button-next:after {
|
||||
content: 'prev';
|
||||
}
|
||||
.swiper-button-next,
|
||||
.swiper-rtl .swiper-button-prev {
|
||||
right: 10px;
|
||||
left: auto;
|
||||
}
|
||||
.swiper-button-next:after,
|
||||
.swiper-rtl .swiper-button-prev:after {
|
||||
content: 'next';
|
||||
}
|
||||
.swiper-button-lock {
|
||||
display: none;
|
||||
}
|
||||
:root {
|
||||
/*
|
||||
--swiper-pagination-color: var(--swiper-theme-color);
|
||||
--swiper-pagination-bullet-size: 8px;
|
||||
--swiper-pagination-bullet-width: 8px;
|
||||
--swiper-pagination-bullet-height: 8px;
|
||||
--swiper-pagination-bullet-inactive-color: #000;
|
||||
--swiper-pagination-bullet-inactive-opacity: 0.2;
|
||||
--swiper-pagination-bullet-opacity: 1;
|
||||
--swiper-pagination-bullet-horizontal-gap: 4px;
|
||||
--swiper-pagination-bullet-vertical-gap: 6px;
|
||||
*/
|
||||
}
|
||||
.swiper-pagination {
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
transition: 300ms opacity;
|
||||
transform: translate3d(0, 0, 0);
|
||||
z-index: 10;
|
||||
}
|
||||
.swiper-pagination.swiper-pagination-hidden {
|
||||
opacity: 0;
|
||||
}
|
||||
/* Common Styles */
|
||||
.swiper-pagination-fraction,
|
||||
.swiper-pagination-custom,
|
||||
.swiper-horizontal > .swiper-pagination-bullets,
|
||||
.swiper-pagination-bullets.swiper-pagination-horizontal {
|
||||
bottom: 10px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
/* Bullets */
|
||||
.swiper-pagination-bullets-dynamic {
|
||||
overflow: hidden;
|
||||
font-size: 0;
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
|
||||
transform: scale(0.33);
|
||||
position: relative;
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active {
|
||||
transform: scale(1);
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {
|
||||
transform: scale(1);
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev {
|
||||
transform: scale(0.66);
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {
|
||||
transform: scale(0.33);
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {
|
||||
transform: scale(0.66);
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {
|
||||
transform: scale(0.33);
|
||||
}
|
||||
.swiper-pagination-bullet {
|
||||
width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));
|
||||
height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));
|
||||
display: inline-block;
|
||||
border-radius: 50%;
|
||||
background: var(--swiper-pagination-bullet-inactive-color, #000);
|
||||
opacity: var(--swiper-pagination-bullet-inactive-opacity, 0.2);
|
||||
}
|
||||
button.swiper-pagination-bullet {
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-shadow: none;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
.swiper-pagination-clickable .swiper-pagination-bullet {
|
||||
cursor: pointer;
|
||||
}
|
||||
.swiper-pagination-bullet:only-child {
|
||||
display: none !important;
|
||||
}
|
||||
.swiper-pagination-bullet-active {
|
||||
opacity: var(--swiper-pagination-bullet-opacity, 1);
|
||||
background: var(--swiper-pagination-color, var(--swiper-theme-color));
|
||||
}
|
||||
.swiper-vertical > .swiper-pagination-bullets,
|
||||
.swiper-pagination-vertical.swiper-pagination-bullets {
|
||||
right: 10px;
|
||||
top: 50%;
|
||||
transform: translate3d(0px, -50%, 0);
|
||||
}
|
||||
.swiper-vertical > .swiper-pagination-bullets .swiper-pagination-bullet,
|
||||
.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet {
|
||||
margin: var(--swiper-pagination-bullet-vertical-gap, 6px) 0;
|
||||
display: block;
|
||||
}
|
||||
.swiper-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic,
|
||||
.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 8px;
|
||||
}
|
||||
.swiper-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,
|
||||
.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
|
||||
display: inline-block;
|
||||
transition: 200ms transform, 200ms top;
|
||||
}
|
||||
.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
|
||||
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
|
||||
margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px);
|
||||
}
|
||||
.swiper-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic,
|
||||
.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.swiper-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,
|
||||
.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
|
||||
transition: 200ms transform, 200ms left;
|
||||
}
|
||||
.swiper-horizontal.swiper-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
|
||||
transition: 200ms transform, 200ms right;
|
||||
}
|
||||
/* Progress */
|
||||
.swiper-pagination-progressbar {
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
position: absolute;
|
||||
}
|
||||
.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
|
||||
background: var(--swiper-pagination-color, var(--swiper-theme-color));
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transform: scale(0);
|
||||
transform-origin: left top;
|
||||
}
|
||||
.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
|
||||
transform-origin: right top;
|
||||
}
|
||||
.swiper-horizontal > .swiper-pagination-progressbar,
|
||||
.swiper-pagination-progressbar.swiper-pagination-horizontal,
|
||||
.swiper-vertical > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,
|
||||
.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite {
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.swiper-vertical > .swiper-pagination-progressbar,
|
||||
.swiper-pagination-progressbar.swiper-pagination-vertical,
|
||||
.swiper-horizontal > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,
|
||||
.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite {
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.swiper-pagination-lock {
|
||||
display: none;
|
||||
}
|
||||
/* Scrollbar */
|
||||
.swiper-scrollbar {
|
||||
border-radius: 10px;
|
||||
position: relative;
|
||||
-ms-touch-action: none;
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.swiper-horizontal > .swiper-scrollbar {
|
||||
position: absolute;
|
||||
left: 1%;
|
||||
bottom: 3px;
|
||||
z-index: 50;
|
||||
height: 5px;
|
||||
width: 98%;
|
||||
}
|
||||
.swiper-vertical > .swiper-scrollbar {
|
||||
position: absolute;
|
||||
right: 3px;
|
||||
top: 1%;
|
||||
z-index: 50;
|
||||
width: 5px;
|
||||
height: 98%;
|
||||
}
|
||||
.swiper-scrollbar-drag {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 10px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.swiper-scrollbar-cursor-drag {
|
||||
cursor: move;
|
||||
}
|
||||
.swiper-scrollbar-lock {
|
||||
display: none;
|
||||
}
|
||||
.swiper-zoom-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
.swiper-zoom-container > img,
|
||||
.swiper-zoom-container > svg,
|
||||
.swiper-zoom-container > canvas {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
.swiper-slide-zoomed {
|
||||
cursor: move;
|
||||
}
|
||||
/* Preloader */
|
||||
:root {
|
||||
/*
|
||||
--swiper-preloader-color: var(--swiper-theme-color);
|
||||
*/
|
||||
}
|
||||
.swiper-lazy-preloader {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -21px;
|
||||
margin-top: -21px;
|
||||
z-index: 10;
|
||||
transform-origin: 50%;
|
||||
box-sizing: border-box;
|
||||
border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));
|
||||
border-radius: 50%;
|
||||
border-top-color: transparent;
|
||||
}
|
||||
.swiper-slide-visible .swiper-lazy-preloader {
|
||||
animation: swiper-preloader-spin 1s infinite linear;
|
||||
}
|
||||
.swiper-lazy-preloader-white {
|
||||
--swiper-preloader-color: #fff;
|
||||
}
|
||||
.swiper-lazy-preloader-black {
|
||||
--swiper-preloader-color: #000;
|
||||
}
|
||||
@keyframes swiper-preloader-spin {
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
/* a11y */
|
||||
.swiper .swiper-notification {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
z-index: -1000;
|
||||
}
|
||||
.swiper-free-mode > .swiper-wrapper {
|
||||
transition-timing-function: ease-out;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.swiper-grid > .swiper-wrapper {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.swiper-grid-column > .swiper-wrapper {
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
}
|
||||
.swiper-fade.swiper-free-mode .swiper-slide {
|
||||
transition-timing-function: ease-out;
|
||||
}
|
||||
.swiper-fade .swiper-slide {
|
||||
pointer-events: none;
|
||||
transition-property: opacity;
|
||||
}
|
||||
.swiper-fade .swiper-slide .swiper-slide {
|
||||
pointer-events: none;
|
||||
}
|
||||
.swiper-fade .swiper-slide-active,
|
||||
.swiper-fade .swiper-slide-active .swiper-slide-active {
|
||||
pointer-events: auto;
|
||||
}
|
||||
.swiper-cube {
|
||||
overflow: visible;
|
||||
}
|
||||
.swiper-cube .swiper-slide {
|
||||
pointer-events: none;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
z-index: 1;
|
||||
visibility: hidden;
|
||||
transform-origin: 0 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.swiper-cube .swiper-slide .swiper-slide {
|
||||
pointer-events: none;
|
||||
}
|
||||
.swiper-cube.swiper-rtl .swiper-slide {
|
||||
transform-origin: 100% 0;
|
||||
}
|
||||
.swiper-cube .swiper-slide-active,
|
||||
.swiper-cube .swiper-slide-active .swiper-slide-active {
|
||||
pointer-events: auto;
|
||||
}
|
||||
.swiper-cube .swiper-slide-active,
|
||||
.swiper-cube .swiper-slide-next,
|
||||
.swiper-cube .swiper-slide-prev,
|
||||
.swiper-cube .swiper-slide-next + .swiper-slide {
|
||||
pointer-events: auto;
|
||||
visibility: visible;
|
||||
}
|
||||
.swiper-cube .swiper-slide-shadow-top,
|
||||
.swiper-cube .swiper-slide-shadow-bottom,
|
||||
.swiper-cube .swiper-slide-shadow-left,
|
||||
.swiper-cube .swiper-slide-shadow-right {
|
||||
z-index: 0;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
.swiper-cube .swiper-cube-shadow {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 0.6;
|
||||
z-index: 0;
|
||||
}
|
||||
.swiper-cube .swiper-cube-shadow:before {
|
||||
content: '';
|
||||
background: #000;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
filter: blur(50px);
|
||||
}
|
||||
.swiper-flip {
|
||||
overflow: visible;
|
||||
}
|
||||
.swiper-flip .swiper-slide {
|
||||
pointer-events: none;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
z-index: 1;
|
||||
}
|
||||
.swiper-flip .swiper-slide .swiper-slide {
|
||||
pointer-events: none;
|
||||
}
|
||||
.swiper-flip .swiper-slide-active,
|
||||
.swiper-flip .swiper-slide-active .swiper-slide-active {
|
||||
pointer-events: auto;
|
||||
}
|
||||
.swiper-flip .swiper-slide-shadow-top,
|
||||
.swiper-flip .swiper-slide-shadow-bottom,
|
||||
.swiper-flip .swiper-slide-shadow-left,
|
||||
.swiper-flip .swiper-slide-shadow-right {
|
||||
z-index: 0;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
.swiper-creative .swiper-slide {
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
overflow: hidden;
|
||||
transition-property: transform, opacity, height;
|
||||
}
|
||||
.swiper-cards {
|
||||
overflow: visible;
|
||||
}
|
||||
.swiper-cards .swiper-slide {
|
||||
transform-origin: center bottom;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
overflow: hidden;
|
||||
}
|
||||
14
themes/agico-hugo/assets/plugins/swiper/swiper.min.js
vendored
Normal file
14
themes/agico-hugo/assets/plugins/swiper/swiper.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
735
themes/agico-hugo/assets/plugins/webfont/webfont-loader-2.js
Normal file
735
themes/agico-hugo/assets/plugins/webfont/webfont-loader-2.js
Normal file
@@ -0,0 +1,735 @@
|
||||
/* Web Font Loader v1.6.28 - (c) Adobe Systems, Google. License: Apache 2.0 */
|
||||
(function () {
|
||||
function aa(a, b, c) {
|
||||
return a.call.apply(a.bind, arguments)
|
||||
}
|
||||
|
||||
function ba(a, b, c) {
|
||||
if (!a) throw Error();
|
||||
if (2 < arguments.length) {
|
||||
var d = Array.prototype.slice.call(arguments, 2);
|
||||
return function () {
|
||||
var c = Array.prototype.slice.call(arguments);
|
||||
Array.prototype.unshift.apply(c, d);
|
||||
return a.apply(b, c)
|
||||
}
|
||||
}
|
||||
return function () {
|
||||
return a.apply(b, arguments)
|
||||
}
|
||||
}
|
||||
|
||||
function p(a, b, c) {
|
||||
p = Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? aa : ba;
|
||||
return p.apply(null, arguments)
|
||||
}
|
||||
var q = Date.now || function () {
|
||||
return +new Date
|
||||
};
|
||||
|
||||
function ca(a, b) {
|
||||
this.a = a;
|
||||
this.s = b || a;
|
||||
this.c = this.s.document
|
||||
}
|
||||
var da = !!window.FontFace;
|
||||
|
||||
function t(a, b, c, d) {
|
||||
b = a.c.createElement(b);
|
||||
if (c)
|
||||
for (var e in c) c.hasOwnProperty(e) && ("style" == e ? b.style.cssText = c[e] : b.setAttribute(e, c[e]));
|
||||
d && b.appendChild(a.c.createTextNode(d));
|
||||
return b
|
||||
}
|
||||
|
||||
function u(a, b, c) {
|
||||
a = a.c.getElementsByTagName(b)[0];
|
||||
a || (a = document.documentElement);
|
||||
a.insertBefore(c, a.lastChild)
|
||||
}
|
||||
|
||||
function v(a) {
|
||||
a.parentNode && a.parentNode.removeChild(a)
|
||||
}
|
||||
|
||||
function w(a, b, c) {
|
||||
b = b || [];
|
||||
c = c || [];
|
||||
for (var d = a.className.split(/\s+/), e = 0; e < b.length; e += 1) {
|
||||
for (var f = !1, g = 0; g < d.length; g += 1)
|
||||
if (b[e] === d[g]) {
|
||||
f = !0;
|
||||
break
|
||||
} f || d.push(b[e])
|
||||
}
|
||||
b = [];
|
||||
for (e = 0; e < d.length; e += 1) {
|
||||
f = !1;
|
||||
for (g = 0; g < c.length; g += 1)
|
||||
if (d[e] === c[g]) {
|
||||
f = !0;
|
||||
break
|
||||
} f || b.push(d[e])
|
||||
}
|
||||
a.className = b.join(" ").replace(/\s+/g, " ").replace(/^\s+|\s+$/, "")
|
||||
}
|
||||
|
||||
function y(a, b) {
|
||||
for (var c = a.className.split(/\s+/), d = 0, e = c.length; d < e; d++)
|
||||
if (c[d] == b) return !0;
|
||||
return !1
|
||||
}
|
||||
|
||||
function ea(a) {
|
||||
return a.s.location.hostname || a.a.location.hostname
|
||||
}
|
||||
|
||||
function z(a, b, c) {
|
||||
function d() {
|
||||
m && e && f && (m(g), m = null)
|
||||
}
|
||||
b = t(a, "link", {
|
||||
rel: "stylesheet",
|
||||
href: b,
|
||||
media: "all"
|
||||
});
|
||||
var e = !1,
|
||||
f = !0,
|
||||
g = null,
|
||||
m = c || null;
|
||||
da ? (b.onload = function () {
|
||||
e = !0;
|
||||
d()
|
||||
}, b.onerror = function () {
|
||||
e = !0;
|
||||
g = Error("Stylesheet failed to load");
|
||||
d()
|
||||
}) : setTimeout(function () {
|
||||
e = !0;
|
||||
d()
|
||||
}, 0);
|
||||
u(a, "head", b)
|
||||
}
|
||||
|
||||
function A(a, b, c, d) {
|
||||
var e = a.c.getElementsByTagName("head")[0];
|
||||
if (e) {
|
||||
var f = t(a, "script", {
|
||||
src: b
|
||||
}),
|
||||
g = !1;
|
||||
f.onload = f.onreadystatechange = function () {
|
||||
g || this.readyState && "loaded" != this.readyState && "complete" != this.readyState || (g = !0, c && c(null), f.onload = f.onreadystatechange = null, "HEAD" == f.parentNode.tagName && e.removeChild(f))
|
||||
};
|
||||
e.appendChild(f);
|
||||
setTimeout(function () {
|
||||
g || (g = !0, c && c(Error("Script load timeout")))
|
||||
}, d || 5E3);
|
||||
return f
|
||||
}
|
||||
return null
|
||||
};
|
||||
|
||||
function B() {
|
||||
this.a = 0;
|
||||
this.c = null
|
||||
}
|
||||
|
||||
function C(a) {
|
||||
a.a++;
|
||||
return function () {
|
||||
a.a--;
|
||||
D(a)
|
||||
}
|
||||
}
|
||||
|
||||
function E(a, b) {
|
||||
a.c = b;
|
||||
D(a)
|
||||
}
|
||||
|
||||
function D(a) {
|
||||
0 == a.a && a.c && (a.c(), a.c = null)
|
||||
};
|
||||
|
||||
function F(a) {
|
||||
this.a = a || "-"
|
||||
}
|
||||
F.prototype.c = function (a) {
|
||||
for (var b = [], c = 0; c < arguments.length; c++) b.push(arguments[c].replace(/[\W_]+/g, "").toLowerCase());
|
||||
return b.join(this.a)
|
||||
};
|
||||
|
||||
function G(a, b) {
|
||||
this.c = a;
|
||||
this.f = 4;
|
||||
this.a = "n";
|
||||
var c = (b || "n4").match(/^([nio])([1-9])$/i);
|
||||
c && (this.a = c[1], this.f = parseInt(c[2], 10))
|
||||
}
|
||||
|
||||
function fa(a) {
|
||||
return H(a) + " " + (a.f + "00") + " 300px " + I(a.c)
|
||||
}
|
||||
|
||||
function I(a) {
|
||||
var b = [];
|
||||
a = a.split(/,\s*/);
|
||||
for (var c = 0; c < a.length; c++) {
|
||||
var d = a[c].replace(/['"]/g, ""); - 1 != d.indexOf(" ") || /^\d/.test(d) ? b.push("'" + d + "'") : b.push(d)
|
||||
}
|
||||
return b.join(",")
|
||||
}
|
||||
|
||||
function J(a) {
|
||||
return a.a + a.f
|
||||
}
|
||||
|
||||
function H(a) {
|
||||
var b = "normal";
|
||||
"o" === a.a ? b = "oblique" : "i" === a.a && (b = "italic");
|
||||
return b
|
||||
}
|
||||
|
||||
function ga(a) {
|
||||
var b = 4,
|
||||
c = "n",
|
||||
d = null;
|
||||
a && ((d = a.match(/(normal|oblique|italic)/i)) && d[1] && (c = d[1].substr(0, 1).toLowerCase()), (d = a.match(/([1-9]00|normal|bold)/i)) && d[1] && (/bold/i.test(d[1]) ? b = 7 : /[1-9]00/.test(d[1]) && (b = parseInt(d[1].substr(0, 1), 10))));
|
||||
return c + b
|
||||
};
|
||||
|
||||
function ha(a, b) {
|
||||
this.c = a;
|
||||
this.f = a.s.document.documentElement;
|
||||
this.h = b;
|
||||
this.a = new F("-");
|
||||
this.j = !1 !== b.events;
|
||||
this.g = !1 !== b.classes
|
||||
}
|
||||
|
||||
function ia(a) {
|
||||
a.g && w(a.f, [a.a.c("wf", "loading")]);
|
||||
K(a, "loading")
|
||||
}
|
||||
|
||||
function L(a) {
|
||||
if (a.g) {
|
||||
var b = y(a.f, a.a.c("wf", "active")),
|
||||
c = [],
|
||||
d = [a.a.c("wf", "loading")];
|
||||
b || c.push(a.a.c("wf", "inactive"));
|
||||
w(a.f, c, d)
|
||||
}
|
||||
K(a, "inactive")
|
||||
}
|
||||
|
||||
function K(a, b, c) {
|
||||
if (a.j && a.h[b])
|
||||
if (c) a.h[b](c.c, J(c));
|
||||
else a.h[b]()
|
||||
};
|
||||
|
||||
function ja() {
|
||||
this.c = {}
|
||||
}
|
||||
|
||||
function ka(a, b, c) {
|
||||
var d = [],
|
||||
e;
|
||||
for (e in b)
|
||||
if (b.hasOwnProperty(e)) {
|
||||
var f = a.c[e];
|
||||
f && d.push(f(b[e], c))
|
||||
} return d
|
||||
};
|
||||
|
||||
function M(a, b) {
|
||||
this.c = a;
|
||||
this.f = b;
|
||||
this.a = t(this.c, "span", {
|
||||
"aria-hidden": "true"
|
||||
}, this.f)
|
||||
}
|
||||
|
||||
function N(a) {
|
||||
u(a.c, "body", a.a)
|
||||
}
|
||||
|
||||
function O(a) {
|
||||
return "display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:" + I(a.c) + ";" + ("font-style:" + H(a) + ";font-weight:" + (a.f + "00") + ";")
|
||||
};
|
||||
|
||||
function P(a, b, c, d, e, f) {
|
||||
this.g = a;
|
||||
this.j = b;
|
||||
this.a = d;
|
||||
this.c = c;
|
||||
this.f = e || 3E3;
|
||||
this.h = f || void 0
|
||||
}
|
||||
P.prototype.start = function () {
|
||||
var a = this.c.s.document,
|
||||
b = this,
|
||||
c = q(),
|
||||
d = new Promise(function (d, e) {
|
||||
function f() {
|
||||
q() - c >= b.f ? e() : a.fonts.load(fa(b.a), b.h).then(function (a) {
|
||||
1 <= a.length ? d() : setTimeout(f, 25)
|
||||
}, function () {
|
||||
e()
|
||||
})
|
||||
}
|
||||
f()
|
||||
}),
|
||||
e = null,
|
||||
f = new Promise(function (a, d) {
|
||||
e = setTimeout(d, b.f)
|
||||
});
|
||||
Promise.race([f, d]).then(function () {
|
||||
e && (clearTimeout(e), e = null);
|
||||
b.g(b.a)
|
||||
}, function () {
|
||||
b.j(b.a)
|
||||
})
|
||||
};
|
||||
|
||||
function Q(a, b, c, d, e, f, g) {
|
||||
this.v = a;
|
||||
this.B = b;
|
||||
this.c = c;
|
||||
this.a = d;
|
||||
this.o = g || "BESbswy";
|
||||
this.f = {};
|
||||
this.w = e || 3E3;
|
||||
this.u = f || null;
|
||||
this.m = this.j = this.h = this.g = null;
|
||||
this.g = new M(this.c, this.o);
|
||||
this.h = new M(this.c, this.o);
|
||||
this.j = new M(this.c, this.o);
|
||||
this.m = new M(this.c, this.o);
|
||||
a = new G(this.a.c + ",serif", J(this.a));
|
||||
a = O(a);
|
||||
this.g.a.style.cssText = a;
|
||||
a = new G(this.a.c + ",sans-serif", J(this.a));
|
||||
a = O(a);
|
||||
this.h.a.style.cssText = a;
|
||||
a = new G("serif", J(this.a));
|
||||
a = O(a);
|
||||
this.j.a.style.cssText = a;
|
||||
a = new G("sans-serif", J(this.a));
|
||||
a =
|
||||
O(a);
|
||||
this.m.a.style.cssText = a;
|
||||
N(this.g);
|
||||
N(this.h);
|
||||
N(this.j);
|
||||
N(this.m)
|
||||
}
|
||||
var R = {
|
||||
D: "serif",
|
||||
C: "sans-serif"
|
||||
},
|
||||
S = null;
|
||||
|
||||
function T() {
|
||||
if (null === S) {
|
||||
var a = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgentData);
|
||||
S = !!a && (536 > parseInt(a[1], 10) || 536 === parseInt(a[1], 10) && 11 >= parseInt(a[2], 10))
|
||||
}
|
||||
return S
|
||||
}
|
||||
Q.prototype.start = function () {
|
||||
this.f.serif = this.j.a.offsetWidth;
|
||||
this.f["sans-serif"] = this.m.a.offsetWidth;
|
||||
this.A = q();
|
||||
U(this)
|
||||
};
|
||||
|
||||
function la(a, b, c) {
|
||||
for (var d in R)
|
||||
if (R.hasOwnProperty(d) && b === a.f[R[d]] && c === a.f[R[d]]) return !0;
|
||||
return !1
|
||||
}
|
||||
|
||||
function U(a) {
|
||||
var b = a.g.a.offsetWidth,
|
||||
c = a.h.a.offsetWidth,
|
||||
d;
|
||||
(d = b === a.f.serif && c === a.f["sans-serif"]) || (d = T() && la(a, b, c));
|
||||
d ? q() - a.A >= a.w ? T() && la(a, b, c) && (null === a.u || a.u.hasOwnProperty(a.a.c)) ? V(a, a.v) : V(a, a.B) : ma(a) : V(a, a.v)
|
||||
}
|
||||
|
||||
function ma(a) {
|
||||
setTimeout(p(function () {
|
||||
U(this)
|
||||
}, a), 50)
|
||||
}
|
||||
|
||||
function V(a, b) {
|
||||
setTimeout(p(function () {
|
||||
v(this.g.a);
|
||||
v(this.h.a);
|
||||
v(this.j.a);
|
||||
v(this.m.a);
|
||||
b(this.a)
|
||||
}, a), 0)
|
||||
};
|
||||
|
||||
function W(a, b, c) {
|
||||
this.c = a;
|
||||
this.a = b;
|
||||
this.f = 0;
|
||||
this.m = this.j = !1;
|
||||
this.o = c
|
||||
}
|
||||
var X = null;
|
||||
W.prototype.g = function (a) {
|
||||
var b = this.a;
|
||||
b.g && w(b.f, [b.a.c("wf", a.c, J(a).toString(), "active")], [b.a.c("wf", a.c, J(a).toString(), "loading"), b.a.c("wf", a.c, J(a).toString(), "inactive")]);
|
||||
K(b, "fontactive", a);
|
||||
this.m = !0;
|
||||
na(this)
|
||||
};
|
||||
W.prototype.h = function (a) {
|
||||
var b = this.a;
|
||||
if (b.g) {
|
||||
var c = y(b.f, b.a.c("wf", a.c, J(a).toString(), "active")),
|
||||
d = [],
|
||||
e = [b.a.c("wf", a.c, J(a).toString(), "loading")];
|
||||
c || d.push(b.a.c("wf", a.c, J(a).toString(), "inactive"));
|
||||
w(b.f, d, e)
|
||||
}
|
||||
K(b, "fontinactive", a);
|
||||
na(this)
|
||||
};
|
||||
|
||||
function na(a) {
|
||||
0 == --a.f && a.j && (a.m ? (a = a.a, a.g && w(a.f, [a.a.c("wf", "active")], [a.a.c("wf", "loading"), a.a.c("wf", "inactive")]), K(a, "active")) : L(a.a))
|
||||
};
|
||||
|
||||
function oa(a) {
|
||||
this.j = a;
|
||||
this.a = new ja;
|
||||
this.h = 0;
|
||||
this.f = this.g = !0
|
||||
}
|
||||
oa.prototype.load = function (a) {
|
||||
this.c = new ca(this.j, a.context || this.j);
|
||||
this.g = !1 !== a.events;
|
||||
this.f = !1 !== a.classes;
|
||||
pa(this, new ha(this.c, a), a)
|
||||
};
|
||||
|
||||
function qa(a, b, c, d, e) {
|
||||
var f = 0 == --a.h;
|
||||
(a.f || a.g) && setTimeout(function () {
|
||||
var a = e || null,
|
||||
m = d || null || {};
|
||||
if (0 === c.length && f) L(b.a);
|
||||
else {
|
||||
b.f += c.length;
|
||||
f && (b.j = f);
|
||||
var h, l = [];
|
||||
for (h = 0; h < c.length; h++) {
|
||||
var k = c[h],
|
||||
n = m[k.c],
|
||||
r = b.a,
|
||||
x = k;
|
||||
r.g && w(r.f, [r.a.c("wf", x.c, J(x).toString(), "loading")]);
|
||||
K(r, "fontloading", x);
|
||||
r = null;
|
||||
if (null === X)
|
||||
if (window.FontFace) {
|
||||
var x = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgentData),
|
||||
xa = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgentData) && /Apple/.exec(window.navigator.vendor);
|
||||
X = x ? 42 < parseInt(x[1], 10) : xa ? !1 : !0
|
||||
} else X = !1;
|
||||
X ? r = new P(p(b.g, b), p(b.h, b), b.c, k, b.o, n) : r = new Q(p(b.g, b), p(b.h, b), b.c, k, b.o, a, n);
|
||||
l.push(r)
|
||||
}
|
||||
for (h = 0; h < l.length; h++) l[h].start()
|
||||
}
|
||||
}, 0)
|
||||
}
|
||||
|
||||
function pa(a, b, c) {
|
||||
var d = [],
|
||||
e = c.timeout;
|
||||
ia(b);
|
||||
var d = ka(a.a, c, a.c),
|
||||
f = new W(a.c, b, e);
|
||||
a.h = d.length;
|
||||
b = 0;
|
||||
for (c = d.length; b < c; b++) d[b].load(function (b, d, c) {
|
||||
qa(a, f, b, d, c)
|
||||
})
|
||||
};
|
||||
|
||||
function ra(a, b) {
|
||||
this.c = a;
|
||||
this.a = b
|
||||
}
|
||||
ra.prototype.load = function (a) {
|
||||
function b() {
|
||||
if (f["__mti_fntLst" + d]) {
|
||||
var c = f["__mti_fntLst" + d](),
|
||||
e = [],
|
||||
h;
|
||||
if (c)
|
||||
for (var l = 0; l < c.length; l++) {
|
||||
var k = c[l].fontfamily;
|
||||
void 0 != c[l].fontStyle && void 0 != c[l].fontWeight ? (h = c[l].fontStyle + c[l].fontWeight, e.push(new G(k, h))) : e.push(new G(k))
|
||||
}
|
||||
a(e)
|
||||
} else setTimeout(function () {
|
||||
b()
|
||||
}, 50)
|
||||
}
|
||||
var c = this,
|
||||
d = c.a.projectId,
|
||||
e = c.a.version;
|
||||
if (d) {
|
||||
var f = c.c.s;
|
||||
A(this.c, (c.a.api || "https://fast.fonts.net/jsapi") + "/" + d + ".js" + (e ? "?v=" + e : ""), function (e) {
|
||||
e ? a([]) : (f["__MonotypeConfiguration__" +
|
||||
d] = function () {
|
||||
return c.a
|
||||
}, b())
|
||||
}).id = "__MonotypeAPIScript__" + d
|
||||
} else a([])
|
||||
};
|
||||
|
||||
function sa(a, b) {
|
||||
this.c = a;
|
||||
this.a = b
|
||||
}
|
||||
sa.prototype.load = function (a) {
|
||||
var b, c, d = this.a.urls || [],
|
||||
e = this.a.families || [],
|
||||
f = this.a.testStrings || {},
|
||||
g = new B;
|
||||
b = 0;
|
||||
for (c = d.length; b < c; b++) z(this.c, d[b], C(g));
|
||||
var m = [];
|
||||
b = 0;
|
||||
for (c = e.length; b < c; b++)
|
||||
if (d = e[b].split(":"), d[1])
|
||||
for (var h = d[1].split(","), l = 0; l < h.length; l += 1) m.push(new G(d[0], h[l]));
|
||||
else m.push(new G(d[0]));
|
||||
E(g, function () {
|
||||
a(m, f)
|
||||
})
|
||||
};
|
||||
|
||||
function ta(a, b, c, d, e) {
|
||||
this.o = 2 === e ? 2 : 1;
|
||||
e = ua[this.o - 1];
|
||||
a ? this.c = a : this.c = e[0];
|
||||
this.m = e[1];
|
||||
this.a = [];
|
||||
this.f = [];
|
||||
this.j = b || "";
|
||||
this.g = c || "";
|
||||
this.h = d || ""
|
||||
}
|
||||
var ua = [
|
||||
["https://fonts.googleapis.com/css", "%7C"],
|
||||
["https://fonts.googleapis.com/css2", "&family="]
|
||||
];
|
||||
|
||||
function va(a, b) {
|
||||
for (var c = b.length, d = 0; d < c; d++) {
|
||||
var e = b[d].split(":");
|
||||
3 == e.length && a.f.push(e.pop());
|
||||
var f = "";
|
||||
2 == e.length && "" != e[1] && (f = ":");
|
||||
a.a.push(e.join(f))
|
||||
}
|
||||
}
|
||||
|
||||
function wa(a) {
|
||||
if (0 == a.a.length) throw Error("No fonts to load!");
|
||||
if (-1 != a.c.indexOf("kit=")) return a.c;
|
||||
for (var b = a.a.length, c = [], d = 0; d < b; d++) c.push(a.a[d].replace(/ /g, "+"));
|
||||
b = a.c + "?family=" + c.join(a.m);
|
||||
0 < a.f.length && (b += "&subset=" + a.f.join(","));
|
||||
0 < a.j.length && (b += "&text=" + encodeURIComponent(a.j));
|
||||
0 < a.g.length && (b += "&display=" + encodeURIComponent(a.g));
|
||||
0 < a.h.length && (b += "&effect=" + encodeURIComponent(a.h));
|
||||
return b
|
||||
};
|
||||
|
||||
function ya(a) {
|
||||
this.f = a;
|
||||
this.a = [];
|
||||
this.c = {}
|
||||
}
|
||||
var za = {
|
||||
latin: "BESbswy",
|
||||
"latin-ext": "\u00e7\u00f6\u00fc\u011f\u015f",
|
||||
cyrillic: "\u0439\u044f\u0416",
|
||||
greek: "\u03b1\u03b2\u03a3",
|
||||
khmer: "\u1780\u1781\u1782",
|
||||
Hanuman: "\u1780\u1781\u1782"
|
||||
},
|
||||
Aa = {
|
||||
thin: "1",
|
||||
extralight: "2",
|
||||
"extra-light": "2",
|
||||
ultralight: "2",
|
||||
"ultra-light": "2",
|
||||
light: "3",
|
||||
regular: "4",
|
||||
book: "4",
|
||||
medium: "5",
|
||||
"semi-bold": "6",
|
||||
semibold: "6",
|
||||
"demi-bold": "6",
|
||||
demibold: "6",
|
||||
bold: "7",
|
||||
"extra-bold": "8",
|
||||
extrabold: "8",
|
||||
"ultra-bold": "8",
|
||||
ultrabold: "8",
|
||||
black: "9",
|
||||
heavy: "9",
|
||||
l: "3",
|
||||
r: "4",
|
||||
b: "7"
|
||||
},
|
||||
Ba = {
|
||||
i: "i",
|
||||
italic: "i",
|
||||
n: "n",
|
||||
normal: "n"
|
||||
},
|
||||
Ca = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;
|
||||
|
||||
function Da(a) {
|
||||
for (var b = a.f.length, c = 0; c < b; c++) {
|
||||
var d = a.f[c].split(":"),
|
||||
e = d[0].replace(/\+/g, " "),
|
||||
f = ["n4"];
|
||||
if (2 <= d.length) {
|
||||
var g;
|
||||
var m = d[1];
|
||||
g = [];
|
||||
if (m)
|
||||
for (var m = m.split(","), h = m.length, l = 0; l < h; l++) {
|
||||
var k;
|
||||
k = m[l];
|
||||
if (k.match(/^[\w-]+$/)) {
|
||||
var n = Ca.exec(k.toLowerCase());
|
||||
if (null == n) k = "";
|
||||
else {
|
||||
k = n[2];
|
||||
k = null == k || "" == k ? "n" : Ba[k];
|
||||
n = n[1];
|
||||
if (null == n || "" == n) n = "4";
|
||||
else var r = Aa[n],
|
||||
n = r ? r : isNaN(n) ? "4" : n.substr(0, 1);
|
||||
k = [k, n].join("")
|
||||
}
|
||||
} else k = "";
|
||||
k && g.push(k)
|
||||
}
|
||||
0 < g.length && (f = g);
|
||||
3 == d.length && (d = d[2], g = [], d = d ? d.split(",") :
|
||||
g, 0 < d.length && (d = za[d[0]]) && (a.c[e] = d))
|
||||
}
|
||||
a.c[e] || (d = za[e]) && (a.c[e] = d);
|
||||
for (d = 0; d < f.length; d += 1) a.a.push(new G(e, f[d]))
|
||||
}
|
||||
};
|
||||
|
||||
function Ea(a, b) {
|
||||
this.c = a;
|
||||
this.a = b
|
||||
}
|
||||
var Fa = {
|
||||
Arimo: !0,
|
||||
Cousine: !0,
|
||||
Tinos: !0
|
||||
};
|
||||
Ea.prototype.load = function (a) {
|
||||
var b = new B,
|
||||
c = this.c,
|
||||
d = new ta(this.a.api, this.a.text, this.a.display, this.a.effect, this.a.version),
|
||||
e = this.a.families;
|
||||
va(d, e);
|
||||
var f = new ya(e);
|
||||
Da(f);
|
||||
z(c, wa(d), C(b));
|
||||
E(b, function () {
|
||||
a(f.a, f.c, Fa)
|
||||
})
|
||||
};
|
||||
|
||||
function Ga(a, b) {
|
||||
this.c = a;
|
||||
this.a = b
|
||||
}
|
||||
Ga.prototype.load = function (a) {
|
||||
var b = this.a.id,
|
||||
c = this.c.s;
|
||||
b ? A(this.c, (this.a.api || "https://use.typekit.net") + "/" + b + ".js", function (b) {
|
||||
if (b) a([]);
|
||||
else if (c.Typekit && c.Typekit.config && c.Typekit.config.fn) {
|
||||
b = c.Typekit.config.fn;
|
||||
for (var e = [], f = 0; f < b.length; f += 2)
|
||||
for (var g = b[f], m = b[f + 1], h = 0; h < m.length; h++) e.push(new G(g, m[h]));
|
||||
try {
|
||||
c.Typekit.load({
|
||||
events: !1,
|
||||
classes: !1,
|
||||
async: !0
|
||||
})
|
||||
} catch (l) {}
|
||||
a(e)
|
||||
}
|
||||
}, 2E3) : a([])
|
||||
};
|
||||
|
||||
function Ha(a, b) {
|
||||
this.c = a;
|
||||
this.f = b;
|
||||
this.a = []
|
||||
}
|
||||
Ha.prototype.load = function (a) {
|
||||
var b = this.f.id,
|
||||
c = this.c.s,
|
||||
d = this;
|
||||
b ? (c.__webfontfontdeckmodule__ || (c.__webfontfontdeckmodule__ = {}), c.__webfontfontdeckmodule__[b] = function (b, c) {
|
||||
for (var g = 0, m = c.fonts.length; g < m; ++g) {
|
||||
var h = c.fonts[g];
|
||||
d.a.push(new G(h.name, ga("font-weight:" + h.weight + ";font-style:" + h.style)))
|
||||
}
|
||||
a(d.a)
|
||||
}, A(this.c, (this.f.api || "https://f.fontdeck.com/s/css/js/") + ea(this.c) + "/" + b + ".js", function (b) {
|
||||
b && a([])
|
||||
})) : a([])
|
||||
};
|
||||
var Y = new oa(window);
|
||||
Y.a.c.custom = function (a, b) {
|
||||
return new sa(b, a)
|
||||
};
|
||||
Y.a.c.fontdeck = function (a, b) {
|
||||
return new Ha(b, a)
|
||||
};
|
||||
Y.a.c.monotype = function (a, b) {
|
||||
return new ra(b, a)
|
||||
};
|
||||
Y.a.c.typekit = function (a, b) {
|
||||
return new Ga(b, a)
|
||||
};
|
||||
Y.a.c.google = function (a, b) {
|
||||
return new Ea(b, a)
|
||||
};
|
||||
var Z = {
|
||||
load: p(Y.load, Y)
|
||||
};
|
||||
"function" === typeof define && define.amd ? define(function () {
|
||||
return Z
|
||||
}) : "undefined" !== typeof module && module.exports ? module.exports = Z : (window.WebFont = Z, window.WebFontConfig && Y.load(window.WebFontConfig));
|
||||
}());
|
||||
Reference in New Issue
Block a user