mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-23 20:26:28 +00:00
47 lines
1.5 KiB
JavaScript
47 lines
1.5 KiB
JavaScript
|
var __defProp = Object.defineProperty;
|
||
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
||
|
var __publicField = (obj, key, value) => {
|
||
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
||
|
return value;
|
||
|
};
|
||
|
var __accessCheck = (obj, member, msg) => {
|
||
|
if (!member.has(obj))
|
||
|
throw TypeError("Cannot " + msg);
|
||
|
};
|
||
|
var __privateGet = (obj, member, getter) => {
|
||
|
__accessCheck(obj, member, "read from private field");
|
||
|
return getter ? getter.call(obj) : member.get(obj);
|
||
|
};
|
||
|
var __privateAdd = (obj, member, value) => {
|
||
|
if (member.has(obj))
|
||
|
throw TypeError("Cannot add the same private member more than once");
|
||
|
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
||
|
};
|
||
|
var __privateSet = (obj, member, value, setter) => {
|
||
|
__accessCheck(obj, member, "write to private field");
|
||
|
setter ? setter.call(obj, value) : member.set(obj, value);
|
||
|
return value;
|
||
|
};
|
||
|
var __privateWrapper = (obj, member, setter, getter) => ({
|
||
|
set _(value) {
|
||
|
__privateSet(obj, member, value, setter);
|
||
|
},
|
||
|
get _() {
|
||
|
return __privateGet(obj, member, getter);
|
||
|
}
|
||
|
});
|
||
|
var __privateMethod = (obj, member, method) => {
|
||
|
__accessCheck(obj, member, "access private method");
|
||
|
return method;
|
||
|
};
|
||
|
|
||
|
export {
|
||
|
__publicField,
|
||
|
__privateGet,
|
||
|
__privateAdd,
|
||
|
__privateSet,
|
||
|
__privateWrapper,
|
||
|
__privateMethod
|
||
|
};
|
||
|
//# sourceMappingURL=chunk-O5YE6VVP.js.map
|