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T,EAC9B,MAAM,IAAI,EAAe,iBAAmB,EAAO,KAErD,IAAI,EAAK,EAAW,oBAAoB,YAAY,IAAI,EAAK,MAC7D,IAAK,EACH,MAAM,IAAI,EACR,kCACE,EAAK,KADP,4CAGa,EAAK,KAHlB,yDAOJ,OAAO,EAAG,EAAM,EAClB,EAcA,EAAQ,eAAiB,EACzB,EAAQ,mBAAqB,EAC7B,EAAQ,yBANR,SAAkC,EAAM,GACtC,EAAW,oBAAoB,YAAY,IAAI,EAAM,EACvD,EAKA,EAAQ,oBAhBR,SAA6B,EAAK,EAAM,GACjC,EAAI,QACQ,IAAb,EAAI,KACN,EAAK,KAAO,EAAI,KAEhB,EAAK,KAAO,EAAI,KAAK,QAEL,IAAd,EAAK,aAA2B,EAAK,KAC3C,EAUA,OAAO,eAAe,EAAS,aAAc,CAAE,OAAO,GACxD","file":"/npm/@rschedule/json-tools@1.5.0/umd/main.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.19.2.\n * Original file: /npm/@rschedule/json-tools@1.5.0/umd/main.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","(function(global, factory) {\n  typeof exports === 'object' && typeof module !== 'undefined'\n    ? factory(exports, require('@rschedule/core/generators'))\n    : typeof define === 'function' && define.amd\n    ? define(['exports', '@rschedule/core/generators'], factory)\n    : ((global = global || self),\n      factory((global.rScheduleJSONTools = {}), global.rScheduleGenerators));\n})(this, function(exports, generators) {\n  'use strict';\n\n  /*! *****************************************************************************\n    Copyright (c) Microsoft Corporation. All rights reserved.\n    Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\n    this file except in compliance with the License. You may obtain a copy of the\n    License at http://www.apache.org/licenses/LICENSE-2.0\n\n    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\n    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\n    MERCHANTABLITY OR NON-INFRINGEMENT.\n\n    See the Apache Version 2.0 License for specific language governing permissions\n    and limitations under the License.\n    ***************************************************************************** */\n  /* global Reflect, Promise */\n\n  var extendStatics = function(d, b) {\n    extendStatics =\n      Object.setPrototypeOf ||\n      ({ __proto__: [] } instanceof Array &&\n        function(d, b) {\n          d.__proto__ = b;\n        }) ||\n      function(d, b) {\n        for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n      };\n    return extendStatics(d, b);\n  };\n\n  function __extends(d, b) {\n    extendStatics(d, b);\n    function __() {\n      this.constructor = d;\n    }\n    d.prototype = b === null ? Object.create(b) : ((__.prototype = b.prototype), new __());\n  }\n\n  var ParseJSONError = /** @class */ (function(_super) {\n    __extends(ParseJSONError, _super);\n    function ParseJSONError() {\n      return (_super !== null && _super.apply(this, arguments)) || this;\n    }\n    return ParseJSONError;\n  })(Error);\n  var SerializeJSONError = /** @class */ (function(_super) {\n    __extends(SerializeJSONError, _super);\n    function SerializeJSONError() {\n      return (_super !== null && _super.apply(this, arguments)) || this;\n    }\n    return SerializeJSONError;\n  })(Error);\n  generators.OccurrenceGenerator.JSON_FN_MAP = new Map();\n  generators.OccurrenceGenerator.prototype.toJSON = function serialize(opts) {\n    throw new SerializeJSONError(\n      'To support smaller bundles, ' +\n        this.constructor.name +\n        '#toJSON() ' +\n        'must be manually added. See \"@rschedule/json-tools\" in the rSchedule docs.',\n    );\n  };\n  generators.OccurrenceGenerator.fromJSON = function parse(json, options) {\n    if (typeof json !== 'object' || json === null) {\n      throw new ParseJSONError('Invalid json \"' + json + '\"');\n    }\n    var fn = generators.OccurrenceGenerator.JSON_FN_MAP.get(json.type);\n    if (!fn) {\n      throw new ParseJSONError(\n        'Unknown rSchedule object type \"' +\n          json.type +\n          '\". Have you added a json serializer ' +\n          ('for \"' + json.type + '\"? ') +\n          'See \"@rschedule/json-tools\" in the rSchedule docs.',\n      );\n    }\n    return fn(json, options);\n  };\n  function serializeDataToJSON(gen, json, opt) {\n    if (!opt.data) return;\n    if (opt.data === true) {\n      json.data = gen.data;\n    } else {\n      json.data = opt.data(gen);\n    }\n    if (json.data === undefined) delete json.data;\n  }\n  function registerJSONSerializerFn(name, fn) {\n    generators.OccurrenceGenerator.JSON_FN_MAP.set(name, fn);\n  }\n\n  exports.ParseJSONError = ParseJSONError;\n  exports.SerializeJSONError = SerializeJSONError;\n  exports.registerJSONSerializerFn = registerJSONSerializerFn;\n  exports.serializeDataToJSON = serializeDataToJSON;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n});\n"]}