/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@hackylabs/deep-redact@3.0.5/dist/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";var __rest=this&&this.__rest||function(e,r){var t={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&r.indexOf(s)<0&&(t[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)r.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(t[s[n]]=e[s[n]])}return t},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.organisedStandardTransformers=exports.standardTransformers=exports.default=exports.DeepRedact=void 0;const index_js_1=require("./utils/standardTransformers/index.js");Object.defineProperty(exports,"organisedStandardTransformers",{enumerable:!0,get:function(){return index_js_1.organisedStandardTransformers}}),Object.defineProperty(exports,"standardTransformers",{enumerable:!0,get:function(){return index_js_1.standardTransformers}});const index_js_2=__importDefault(require("./utils/index.js"));class DeepRedact{constructor(e){this.config={serialise:!1},this.redact=e=>{const r=this.redactorUtils.traverse(e);return this.config.serialise?JSON.stringify(r):r};const{serialise:r,serialize:t}=e,s=__rest(e,["serialise","serialize"]),n=null!=r?r:t;"boolean"==typeof n&&(this.config.serialise=n),this.redactorUtils=new index_js_2.default(Object.assign({},s))}}exports.DeepRedact=DeepRedact,exports.default=DeepRedact;
//# sourceMappingURL=/sm/18bc07c08a82cad859e7055b2b63bf8453b980d60642a00bf39cd5dfa7e5cc99.map