a zip code crypto-currency system good for red ONLY

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. 'use strict';
  2. exports.__esModule = true;
  3. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  4. var _container = require('./container');
  5. var _container2 = _interopRequireDefault(_container);
  6. var _list = require('./list');
  7. var _list2 = _interopRequireDefault(_list);
  8. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  10. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  11. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  12. /**
  13. * Represents a CSS rule: a selector followed by a declaration block.
  14. *
  15. * @extends Container
  16. *
  17. * @example
  18. * const root = postcss.parse('a{}');
  19. * const rule = root.first;
  20. * rule.type //=> 'rule'
  21. * rule.toString() //=> 'a{}'
  22. */
  23. var Rule = function (_Container) {
  24. _inherits(Rule, _Container);
  25. function Rule(defaults) {
  26. _classCallCheck(this, Rule);
  27. var _this = _possibleConstructorReturn(this, _Container.call(this, defaults));
  28. _this.type = 'rule';
  29. if (!_this.nodes) _this.nodes = [];
  30. return _this;
  31. }
  32. /**
  33. * An array containing the rule’s individual selectors.
  34. * Groups of selectors are split at commas.
  35. *
  36. * @type {string[]}
  37. *
  38. * @example
  39. * const root = postcss.parse('a, b { }');
  40. * const rule = root.first;
  41. *
  42. * rule.selector //=> 'a, b'
  43. * rule.selectors //=> ['a', 'b']
  44. *
  45. * rule.selectors = ['a', 'strong'];
  46. * rule.selector //=> 'a, strong'
  47. */
  48. _createClass(Rule, [{
  49. key: 'selectors',
  50. get: function get() {
  51. return _list2.default.comma(this.selector);
  52. },
  53. set: function set(values) {
  54. var match = this.selector ? this.selector.match(/,\s*/) : null;
  55. var sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen');
  56. this.selector = values.join(sep);
  57. }
  58. /**
  59. * @memberof Rule#
  60. * @member {string} selector - the rule’s full selector represented
  61. * as a string
  62. *
  63. * @example
  64. * const root = postcss.parse('a, b { }');
  65. * const rule = root.first;
  66. * rule.selector //=> 'a, b'
  67. */
  68. /**
  69. * @memberof Rule#
  70. * @member {object} raws - Information to generate byte-to-byte equal
  71. * node string as it was in the origin input.
  72. *
  73. * Every parser saves its own properties,
  74. * but the default CSS parser uses:
  75. *
  76. * * `before`: the space symbols before the node. It also stores `*`
  77. * and `_` symbols before the declaration (IE hack).
  78. * * `after`: the space symbols after the last child of the node
  79. * to the end of the node.
  80. * * `between`: the symbols between the property and value
  81. * for declarations, selector and `{` for rules, or last parameter
  82. * and `{` for at-rules.
  83. * * `semicolon`: contains `true` if the last child has
  84. * an (optional) semicolon.
  85. * * `ownSemicolon`: contains `true` if there is semicolon after rule.
  86. *
  87. * PostCSS cleans selectors from comments and extra spaces,
  88. * but it stores origin content in raws properties.
  89. * As such, if you don’t change a declaration’s value,
  90. * PostCSS will use the raw value with comments.
  91. *
  92. * @example
  93. * const root = postcss.parse('a {\n color:black\n}')
  94. * root.first.first.raws //=> { before: '', between: ' ', after: '\n' }
  95. */
  96. }]);
  97. return Rule;
  98. }(_container2.default);
  99. exports.default = Rule;
  100. module.exports = exports['default'];
  101. //# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGUuZXM2Il0sIm5hbWVzIjpbIlJ1bGUiLCJkZWZhdWx0cyIsInR5cGUiLCJub2RlcyIsImxpc3QiLCJjb21tYSIsInNlbGVjdG9yIiwidmFsdWVzIiwibWF0Y2giLCJzZXAiLCJyYXciLCJqb2luIiwiQ29udGFpbmVyIl0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7OztBQUNBOzs7Ozs7Ozs7Ozs7QUFFQTs7Ozs7Ozs7Ozs7SUFXTUEsSTs7O0FBRUYsZ0JBQVlDLFFBQVosRUFBc0I7QUFBQTs7QUFBQSxpREFDbEIsc0JBQU1BLFFBQU4sQ0FEa0I7O0FBRWxCLFVBQUtDLElBQUwsR0FBWSxNQUFaO0FBQ0EsUUFBSyxDQUFDLE1BQUtDLEtBQVgsRUFBbUIsTUFBS0EsS0FBTCxHQUFhLEVBQWI7QUFIRDtBQUlyQjs7QUFFRDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7d0JBZ0JnQjtBQUNaLGFBQU9DLGVBQUtDLEtBQUwsQ0FBVyxLQUFLQyxRQUFoQixDQUFQO0FBQ0gsSztzQkFFYUMsTSxFQUFRO0FBQ2xCLFVBQUlDLFFBQVEsS0FBS0YsUUFBTCxHQUFnQixLQUFLQSxRQUFMLENBQWNFLEtBQWQsQ0FBb0IsTUFBcEIsQ0FBaEIsR0FBOEMsSUFBMUQ7QUFDQSxVQUFJQyxNQUFRRCxRQUFRQSxNQUFNLENBQU4sQ0FBUixHQUFtQixNQUFNLEtBQUtFLEdBQUwsQ0FBUyxTQUFULEVBQW9CLFlBQXBCLENBQXJDO0FBQ0EsV0FBS0osUUFBTCxHQUFnQkMsT0FBT0ksSUFBUCxDQUFZRixHQUFaLENBQWhCO0FBQ0g7O0FBRUQ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