var data = ["<div id=\"newopt \"></div>",
"append",
"ul.shop-options:eq(1)",
"<div class=\"ekopt\">",
"</div>",
"#newopt",
"text",
".shop-options-s:first option",
"name",
"attr",
"class",
"ekopt selected",
".ekopt:first",
"selected",
".shop-options-s:first option[name=\"",
"\"]",
"change",
".shop-options-s:first",
"ekopt",
".ekopt",
"click",
"ready"
]
$(document)[data[21]](function() {
$(data[2])[data[1]](data[0]);
$(data[7])[data[6]](function(_0xb109x1, _0xb109x2) {
$(data[5])[data[1]](data[3] + _0xb109x2 + data[4]);
});
$(data[7])[data[9]](data[8], function(_0xb109x3) {
return $(this)[data[6]]();
});
$(data[12])[data[9]](data[10], data[11]);
$(data[19])[data[20]](function(_0xb109x1) {
$(data[14] + $(this)[data[6]]() + data[15])[data[9]](data[13], data[13]);
$(data[17])[data[16]]();
$(data[19])[data[9]](data[10], data[18]);
$(this)[data[9]](data[10], data[11]);
});
});
var HashMap = function() {
var obj = [];
obj.size = function () {
return this.length;
};
obj.isEmpty = function () {
return this.length === 0;
};
obj.containsValue = function (value) {
for (var i = 0; i < this.length; i++) {
if (this[i].value === value) {
return true;
}
}
return false;
};
obj.getIndexKey = function (key) {
for (var i = 0; i < this.length; i++) {
if (this[i].key === key) {
return i;
}
}
return -1;
};
obj.values = function () {
var values = [];
for (var i = 0; i < this.length; i++) {
values.push(this[i].value);
}
return values;
};
obj.keySet = function () {
var keys = [];
for (var i = 0; i < this.length; i++) {
keys.push(this[i].key);
}
return keys;
};
obj.containsKey = function (key) {
for (var i = 0; i < this.length; i++) {
if (this[i].key === key) {
return true;
}
}
return false;
};
obj.get = function (key) {
var index = this.getIndexKey(key);
if (index > -1) {
return this[index].value;
}
return null;
};
obj.put = function (key, value) {
var i = this.getIndexKey(key);
if ( i !== -1) {
var prevValue = this[i].value;
this[i] = {'key': key, 'value': value};
return prevValue;
}
this.push({'key': key, 'value': value});
return null;
};
obj.clear = function () {
this.splice(0, this.length);
};
return obj;
}
var tetst = new HashMap();