(function (_, kotlin_kotlin) {
  'use strict';
  //region block: imports
  var Unit_instance = kotlin_kotlin.$_$.m5;
  var VOID = kotlin_kotlin.$_$.f;
  var protoOf = kotlin_kotlin.$_$.wc;
  var toInt = kotlin_kotlin.$_$.ug;
  var toBoolean = kotlin_kotlin.$_$.ng;
  var classMeta = kotlin_kotlin.$_$.lb;
  var setMetadataFor = kotlin_kotlin.$_$.xc;
  var interfaceMeta = kotlin_kotlin.$_$.xb;
  //endregion
  //region block: pre-declaration
  setMetadataFor(Settings, 'Settings', interfaceMeta);
  setMetadataFor(StorageSettings, 'StorageSettings', classMeta, VOID, [Settings], StorageSettings);
  //endregion
  function StorageSettings(delegate) {
    var tmp;
    if (delegate === VOID) {
      // Inline function 'com.russhwolf.settings.localStorage' call
      tmp = localStorage;
    } else {
      tmp = delegate;
    }
    delegate = tmp;
    this.xm6_1 = delegate;
  }
  protoOf(StorageSettings).a2o = function (key) {
    return this.xm6_1.removeItem(key);
  };
  protoOf(StorageSettings).ym6 = function (key, defaultValue) {
    // Inline function 'com.russhwolf.settings.get' call
    var tmp0_safe_receiver = this.xm6_1.getItem(key);
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toInt(tmp0_safe_receiver);
    return tmp1_elvis_lhs == null ? defaultValue : tmp1_elvis_lhs;
  };
  protoOf(StorageSettings).zm6 = function (key, value) {
    // Inline function 'com.russhwolf.settings.set' call
    this.xm6_1.setItem(key, value);
  };
  protoOf(StorageSettings).am7 = function (key) {
    // Inline function 'com.russhwolf.settings.get' call
    return this.xm6_1.getItem(key);
  };
  protoOf(StorageSettings).bm7 = function (key, value) {
    // Inline function 'com.russhwolf.settings.set' call
    var this_0 = this.xm6_1;
    var value_0 = value.toString();
    this_0.setItem(key, value_0);
  };
  protoOf(StorageSettings).cm7 = function (key, defaultValue) {
    // Inline function 'com.russhwolf.settings.get' call
    var tmp0_safe_receiver = this.xm6_1.getItem(key);
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toBoolean(tmp0_safe_receiver);
    return tmp1_elvis_lhs == null ? defaultValue : tmp1_elvis_lhs;
  };
  function Settings() {
  }
  //region block: exports
  _.$_$ = _.$_$ || {};
  _.$_$.a = Settings;
  _.$_$.b = StorageSettings;
  //endregion
  return _;
}(module.exports, require('./kotlin-kotlin-stdlib.js')));

//# sourceMappingURL=MultiplatformSettings-multiplatform-settings.js.map
