// コンパイル+整形後
function access(c, a, d, e, h, i, f) {
var b = 0,
j = c.length,
g = null == d;
if ("object" === jQuery.type(d))
for (b in h = !0, d) jQuery.access(c, a, b, d[b], !0, i, f);
else if (void 0 !== e && (h = !0, jQuery.isFunction(e) || (f = !0), g && (f ? (a.call(c, e), a = null) : (g = a, a = function (a, c, b) {
return g.call(jQuery(a), b)
})), a))
for (; b < j; b++) a(c[b], d, f ? e : e.call(c[b], b, a(c[b], d)));
return h ? c : g ? a.call(c) : j ? a(c[0], d) : i
};
// コンパイル前
function access( elems, fn, key, value, chainable, emptyGet, raw ) {
var i = 0,
length = elems.length;
bulk = key == null;
// Sets many values
if ( jQuery.type( key ) === "object" ) {
chainable = true;
for ( i in key ) {
jQuery.access( elems, fn, i, key[i], true, emptyGet, raw );
}
// Sets one value
} else if ( value !== undefined ) {
chainable = true;
if ( !jQuery.isFunction( value ) ) {
raw = true;
}
if ( bulk ) {
// Bulk operations run against the entire set
if ( raw ) {
fn.call( elems, value );
fn = null;
// ...except when executing function values
} else {
bulk = fn;
fn = function( elem, key, value ) {
return bulk.call( jQuery( elem ), value );
};
}
}
if ( fn ) {
for ( ; i < length; i++ ) {
fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) );
}
}
}
if( chainable ){
return elems;
}
else if( bulk ){
return fn.call( elems );
}
else if ( length ){
return fn( elems[0], key );
}
else {
return emptyGet;
}
}
Ly8g44Kz44Oz44OR44Kk44Or77yL5pW05b2i5b6MCmZ1bmN0aW9uIGFjY2VzcyhjLCBhLCBkLCBlLCBoLCBpLCBmKSB7CiAgICB2YXIgYiA9IDAsCiAgICAgICAgaiA9IGMubGVuZ3RoLAogICAgICAgIGcgPSBudWxsID09IGQ7CiAgICBpZiAoIm9iamVjdCIgPT09IGpRdWVyeS50eXBlKGQpKQogICAgICAgIGZvciAoYiBpbiBoID0gITAsIGQpIGpRdWVyeS5hY2Nlc3MoYywgYSwgYiwgZFtiXSwgITAsIGksIGYpOwogICAgZW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7CiAgICAgICAgICAgIHJhdyA9IHRydWU7CiAgICAgICAgfQoKICAgICAgICBpZiAoIGJ1bGsgKSB7CiAgICAgICAgICAgIC8vIEJ1bGsgb3BlcmF0aW9ucyBydW4gYWdhaW5zdCB0aGUgZW50aXJlIHNldAogICAgICAgICAgICBpZiAoIHJhdyApIHsKICAgICAgICAgICAgICAgIGZuLmNhbGwoIGVsZW1zLCB2YWx1ZSApOwogICAgICAgICAgICAgICAgZm4gPSBudWxsOwoKICAgICAgICAgICAgLy8gLi4uZXhjZXB0IHdoZW4gZXhlY3V0aW5nIGZ1bmN0aW9uIHZhbHVlcwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgYnVsayA9IGZuOwogICAgICAgICAgICAgICAgZm4gPSBmdW5jdGlvbiggZWxlbSwga2V5LCB2YWx1ZSApIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gYnVsay5jYWxsKCBqUXVlcnkoIGVsZW0gKSwgdmFsdWUgKTsKICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIGlmICggZm4gKSB7CiAgICAgICAgICAgIGZvciAoIDsgaSA8IGxlbmd0aDsgaSsrICkgewogICAgICAgICAgICAgICAgZm4oIGVsZW1zW2ldLCBrZXksIHJhdyA/IHZhbHVlIDogdmFsdWUuY2FsbCggZWxlbXNbaV0sIGksIGZuKCBlbGVtc1tpXSwga2V5ICkgKSApOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgfQogICAgaWYoIGNoYWluYWJsZSApewogICAgICAgIHJldHVybiBlbGVtczsKICAgIH0gCiAgICAKICAgIGVsc2UgaWYoIGJ1bGsgKXsKICAgICAgICByZXR1cm4gZm4uY2FsbCggZWxlbXMgKTsKICAgIH0KIAogICAgZWxzZSBpZiAoIGxlbmd0aCApewogICAgICAgIHJldHVybiBmbiggZWxlbXNbMF0sIGtleSApOwogICAgfQogICAgZWxzZSB7CiAgICAgICAgcmV0dXJuIGVtcHR5R2V0OwogICAgfQp9Cgo=