index.js 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774
  1. module.exports = (function() {
  2. var __MODS__ = {};
  3. var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexports: {} }; __MODS__[modId] = { status: 0, func: func, req: req, m: m }; };
  4. var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
  5. var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
  6. var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
  7. __DEFINE__(1679043784331, function(require, module, exports) {
  8. /**
  9. * Copyright (c) 2014-present, Facebook, Inc.
  10. *
  11. * This source code is licensed under the MIT license found in the
  12. * LICENSE file in the root directory of this source tree.
  13. */
  14. var runtime = (function (exports) {
  15. var Op = Object.prototype;
  16. var hasOwn = Op.hasOwnProperty;
  17. var defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; };
  18. var undefined; // More compressible than void 0.
  19. var $Symbol = typeof Symbol === "function" ? Symbol : {};
  20. var iteratorSymbol = $Symbol.iterator || "@@iterator";
  21. var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  22. var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  23. function define(obj, key, value) {
  24. Object.defineProperty(obj, key, {
  25. value: value,
  26. enumerable: true,
  27. configurable: true,
  28. writable: true
  29. });
  30. return obj[key];
  31. }
  32. try {
  33. // IE 8 has a broken Object.defineProperty that only works on DOM objects.
  34. define({}, "");
  35. } catch (err) {
  36. define = function(obj, key, value) {
  37. return obj[key] = value;
  38. };
  39. }
  40. function wrap(innerFn, outerFn, self, tryLocsList) {
  41. // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
  42. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
  43. var generator = Object.create(protoGenerator.prototype);
  44. var context = new Context(tryLocsList || []);
  45. // The ._invoke method unifies the implementations of the .next,
  46. // .throw, and .return methods.
  47. defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) });
  48. return generator;
  49. }
  50. exports.wrap = wrap;
  51. // Try/catch helper to minimize deoptimizations. Returns a completion
  52. // record like context.tryEntries[i].completion. This interface could
  53. // have been (and was previously) designed to take a closure to be
  54. // invoked without arguments, but in all the cases we care about we
  55. // already have an existing method we want to call, so there's no need
  56. // to create a new function object. We can even get away with assuming
  57. // the method takes exactly one argument, since that happens to be true
  58. // in every case, so we don't have to touch the arguments object. The
  59. // only additional allocation required is the completion record, which
  60. // has a stable shape and so hopefully should be cheap to allocate.
  61. function tryCatch(fn, obj, arg) {
  62. try {
  63. return { type: "normal", arg: fn.call(obj, arg) };
  64. } catch (err) {
  65. return { type: "throw", arg: err };
  66. }
  67. }
  68. var GenStateSuspendedStart = "suspendedStart";
  69. var GenStateSuspendedYield = "suspendedYield";
  70. var GenStateExecuting = "executing";
  71. var GenStateCompleted = "completed";
  72. // Returning this object from the innerFn has the same effect as
  73. // breaking out of the dispatch switch statement.
  74. var ContinueSentinel = {};
  75. // Dummy constructor functions that we use as the .constructor and
  76. // .constructor.prototype properties for functions that return Generator
  77. // objects. For full spec compliance, you may wish to configure your
  78. // minifier not to mangle the names of these two functions.
  79. function Generator() {}
  80. function GeneratorFunction() {}
  81. function GeneratorFunctionPrototype() {}
  82. // This is a polyfill for %IteratorPrototype% for environments that
  83. // don't natively support it.
  84. var IteratorPrototype = {};
  85. define(IteratorPrototype, iteratorSymbol, function () {
  86. return this;
  87. });
  88. var getProto = Object.getPrototypeOf;
  89. var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  90. if (NativeIteratorPrototype &&
  91. NativeIteratorPrototype !== Op &&
  92. hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
  93. // This environment has a native %IteratorPrototype%; use it instead
  94. // of the polyfill.
  95. IteratorPrototype = NativeIteratorPrototype;
  96. }
  97. var Gp = GeneratorFunctionPrototype.prototype =
  98. Generator.prototype = Object.create(IteratorPrototype);
  99. GeneratorFunction.prototype = GeneratorFunctionPrototype;
  100. defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: true });
  101. defineProperty(
  102. GeneratorFunctionPrototype,
  103. "constructor",
  104. { value: GeneratorFunction, configurable: true }
  105. );
  106. GeneratorFunction.displayName = define(
  107. GeneratorFunctionPrototype,
  108. toStringTagSymbol,
  109. "GeneratorFunction"
  110. );
  111. // Helper for defining the .next, .throw, and .return methods of the
  112. // Iterator interface in terms of a single ._invoke method.
  113. function defineIteratorMethods(prototype) {
  114. ["next", "throw", "return"].forEach(function(method) {
  115. define(prototype, method, function(arg) {
  116. return this._invoke(method, arg);
  117. });
  118. });
  119. }
  120. exports.isGeneratorFunction = function(genFun) {
  121. var ctor = typeof genFun === "function" && genFun.constructor;
  122. return ctor
  123. ? ctor === GeneratorFunction ||
  124. // For the native GeneratorFunction constructor, the best we can
  125. // do is to check its .name property.
  126. (ctor.displayName || ctor.name) === "GeneratorFunction"
  127. : false;
  128. };
  129. exports.mark = function(genFun) {
  130. if (Object.setPrototypeOf) {
  131. Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
  132. } else {
  133. genFun.__proto__ = GeneratorFunctionPrototype;
  134. define(genFun, toStringTagSymbol, "GeneratorFunction");
  135. }
  136. genFun.prototype = Object.create(Gp);
  137. return genFun;
  138. };
  139. // Within the body of any async function, `await x` is transformed to
  140. // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
  141. // `hasOwn.call(value, "__await")` to determine if the yielded value is
  142. // meant to be awaited.
  143. exports.awrap = function(arg) {
  144. return { __await: arg };
  145. };
  146. function AsyncIterator(generator, PromiseImpl) {
  147. function invoke(method, arg, resolve, reject) {
  148. var record = tryCatch(generator[method], generator, arg);
  149. if (record.type === "throw") {
  150. reject(record.arg);
  151. } else {
  152. var result = record.arg;
  153. var value = result.value;
  154. if (value &&
  155. typeof value === "object" &&
  156. hasOwn.call(value, "__await")) {
  157. return PromiseImpl.resolve(value.__await).then(function(value) {
  158. invoke("next", value, resolve, reject);
  159. }, function(err) {
  160. invoke("throw", err, resolve, reject);
  161. });
  162. }
  163. return PromiseImpl.resolve(value).then(function(unwrapped) {
  164. // When a yielded Promise is resolved, its final value becomes
  165. // the .value of the Promise<{value,done}> result for the
  166. // current iteration.
  167. result.value = unwrapped;
  168. resolve(result);
  169. }, function(error) {
  170. // If a rejected Promise was yielded, throw the rejection back
  171. // into the async generator function so it can be handled there.
  172. return invoke("throw", error, resolve, reject);
  173. });
  174. }
  175. }
  176. var previousPromise;
  177. function enqueue(method, arg) {
  178. function callInvokeWithMethodAndArg() {
  179. return new PromiseImpl(function(resolve, reject) {
  180. invoke(method, arg, resolve, reject);
  181. });
  182. }
  183. return previousPromise =
  184. // If enqueue has been called before, then we want to wait until
  185. // all previous Promises have been resolved before calling invoke,
  186. // so that results are always delivered in the correct order. If
  187. // enqueue has not been called before, then it is important to
  188. // call invoke immediately, without waiting on a callback to fire,
  189. // so that the async generator function has the opportunity to do
  190. // any necessary setup in a predictable way. This predictability
  191. // is why the Promise constructor synchronously invokes its
  192. // executor callback, and why async functions synchronously
  193. // execute code before the first await. Since we implement simple
  194. // async functions in terms of async generators, it is especially
  195. // important to get this right, even though it requires care.
  196. previousPromise ? previousPromise.then(
  197. callInvokeWithMethodAndArg,
  198. // Avoid propagating failures to Promises returned by later
  199. // invocations of the iterator.
  200. callInvokeWithMethodAndArg
  201. ) : callInvokeWithMethodAndArg();
  202. }
  203. // Define the unified helper method that is used to implement .next,
  204. // .throw, and .return (see defineIteratorMethods).
  205. defineProperty(this, "_invoke", { value: enqueue });
  206. }
  207. defineIteratorMethods(AsyncIterator.prototype);
  208. define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  209. return this;
  210. });
  211. exports.AsyncIterator = AsyncIterator;
  212. // Note that simple async functions are implemented on top of
  213. // AsyncIterator objects; they just return a Promise for the value of
  214. // the final result produced by the iterator.
  215. exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  216. if (PromiseImpl === void 0) PromiseImpl = Promise;
  217. var iter = new AsyncIterator(
  218. wrap(innerFn, outerFn, self, tryLocsList),
  219. PromiseImpl
  220. );
  221. return exports.isGeneratorFunction(outerFn)
  222. ? iter // If outerFn is a generator, return the full iterator.
  223. : iter.next().then(function(result) {
  224. return result.done ? result.value : iter.next();
  225. });
  226. };
  227. function makeInvokeMethod(innerFn, self, context) {
  228. var state = GenStateSuspendedStart;
  229. return function invoke(method, arg) {
  230. if (state === GenStateExecuting) {
  231. throw new Error("Generator is already running");
  232. }
  233. if (state === GenStateCompleted) {
  234. if (method === "throw") {
  235. throw arg;
  236. }
  237. // Be forgiving, per 25.3.3.3.3 of the spec:
  238. // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
  239. return doneResult();
  240. }
  241. context.method = method;
  242. context.arg = arg;
  243. while (true) {
  244. var delegate = context.delegate;
  245. if (delegate) {
  246. var delegateResult = maybeInvokeDelegate(delegate, context);
  247. if (delegateResult) {
  248. if (delegateResult === ContinueSentinel) continue;
  249. return delegateResult;
  250. }
  251. }
  252. if (context.method === "next") {
  253. // Setting context._sent for legacy support of Babel's
  254. // function.sent implementation.
  255. context.sent = context._sent = context.arg;
  256. } else if (context.method === "throw") {
  257. if (state === GenStateSuspendedStart) {
  258. state = GenStateCompleted;
  259. throw context.arg;
  260. }
  261. context.dispatchException(context.arg);
  262. } else if (context.method === "return") {
  263. context.abrupt("return", context.arg);
  264. }
  265. state = GenStateExecuting;
  266. var record = tryCatch(innerFn, self, context);
  267. if (record.type === "normal") {
  268. // If an exception is thrown from innerFn, we leave state ===
  269. // GenStateExecuting and loop back for another invocation.
  270. state = context.done
  271. ? GenStateCompleted
  272. : GenStateSuspendedYield;
  273. if (record.arg === ContinueSentinel) {
  274. continue;
  275. }
  276. return {
  277. value: record.arg,
  278. done: context.done
  279. };
  280. } else if (record.type === "throw") {
  281. state = GenStateCompleted;
  282. // Dispatch the exception by looping back around to the
  283. // context.dispatchException(context.arg) call above.
  284. context.method = "throw";
  285. context.arg = record.arg;
  286. }
  287. }
  288. };
  289. }
  290. // Call delegate.iterator[context.method](context.arg) and handle the
  291. // result, either by returning a { value, done } result from the
  292. // delegate iterator, or by modifying context.method and context.arg,
  293. // setting context.delegate to null, and returning the ContinueSentinel.
  294. function maybeInvokeDelegate(delegate, context) {
  295. var methodName = context.method;
  296. var method = delegate.iterator[methodName];
  297. if (method === undefined) {
  298. // A .throw or .return when the delegate iterator has no .throw
  299. // method, or a missing .next mehtod, always terminate the
  300. // yield* loop.
  301. context.delegate = null;
  302. // Note: ["return"] must be used for ES3 parsing compatibility.
  303. if (methodName === "throw" && delegate.iterator["return"]) {
  304. // If the delegate iterator has a return method, give it a
  305. // chance to clean up.
  306. context.method = "return";
  307. context.arg = undefined;
  308. maybeInvokeDelegate(delegate, context);
  309. if (context.method === "throw") {
  310. // If maybeInvokeDelegate(context) changed context.method from
  311. // "return" to "throw", let that override the TypeError below.
  312. return ContinueSentinel;
  313. }
  314. }
  315. if (methodName !== "return") {
  316. context.method = "throw";
  317. context.arg = new TypeError(
  318. "The iterator does not provide a '" + methodName + "' method");
  319. }
  320. return ContinueSentinel;
  321. }
  322. var record = tryCatch(method, delegate.iterator, context.arg);
  323. if (record.type === "throw") {
  324. context.method = "throw";
  325. context.arg = record.arg;
  326. context.delegate = null;
  327. return ContinueSentinel;
  328. }
  329. var info = record.arg;
  330. if (! info) {
  331. context.method = "throw";
  332. context.arg = new TypeError("iterator result is not an object");
  333. context.delegate = null;
  334. return ContinueSentinel;
  335. }
  336. if (info.done) {
  337. // Assign the result of the finished delegate to the temporary
  338. // variable specified by delegate.resultName (see delegateYield).
  339. context[delegate.resultName] = info.value;
  340. // Resume execution at the desired location (see delegateYield).
  341. context.next = delegate.nextLoc;
  342. // If context.method was "throw" but the delegate handled the
  343. // exception, let the outer generator proceed normally. If
  344. // context.method was "next", forget context.arg since it has been
  345. // "consumed" by the delegate iterator. If context.method was
  346. // "return", allow the original .return call to continue in the
  347. // outer generator.
  348. if (context.method !== "return") {
  349. context.method = "next";
  350. context.arg = undefined;
  351. }
  352. } else {
  353. // Re-yield the result returned by the delegate method.
  354. return info;
  355. }
  356. // The delegate iterator is finished, so forget it and continue with
  357. // the outer generator.
  358. context.delegate = null;
  359. return ContinueSentinel;
  360. }
  361. // Define Generator.prototype.{next,throw,return} in terms of the
  362. // unified ._invoke helper method.
  363. defineIteratorMethods(Gp);
  364. define(Gp, toStringTagSymbol, "Generator");
  365. // A Generator should always return itself as the iterator object when the
  366. // @@iterator function is called on it. Some browsers' implementations of the
  367. // iterator prototype chain incorrectly implement this, causing the Generator
  368. // object to not be returned from this call. This ensures that doesn't happen.
  369. // See https://github.com/facebook/regenerator/issues/274 for more details.
  370. define(Gp, iteratorSymbol, function() {
  371. return this;
  372. });
  373. define(Gp, "toString", function() {
  374. return "[object Generator]";
  375. });
  376. function pushTryEntry(locs) {
  377. var entry = { tryLoc: locs[0] };
  378. if (1 in locs) {
  379. entry.catchLoc = locs[1];
  380. }
  381. if (2 in locs) {
  382. entry.finallyLoc = locs[2];
  383. entry.afterLoc = locs[3];
  384. }
  385. this.tryEntries.push(entry);
  386. }
  387. function resetTryEntry(entry) {
  388. var record = entry.completion || {};
  389. record.type = "normal";
  390. delete record.arg;
  391. entry.completion = record;
  392. }
  393. function Context(tryLocsList) {
  394. // The root entry object (effectively a try statement without a catch
  395. // or a finally block) gives us a place to store values thrown from
  396. // locations where there is no enclosing try statement.
  397. this.tryEntries = [{ tryLoc: "root" }];
  398. tryLocsList.forEach(pushTryEntry, this);
  399. this.reset(true);
  400. }
  401. exports.keys = function(val) {
  402. var object = Object(val);
  403. var keys = [];
  404. for (var key in object) {
  405. keys.push(key);
  406. }
  407. keys.reverse();
  408. // Rather than returning an object with a next method, we keep
  409. // things simple and return the next function itself.
  410. return function next() {
  411. while (keys.length) {
  412. var key = keys.pop();
  413. if (key in object) {
  414. next.value = key;
  415. next.done = false;
  416. return next;
  417. }
  418. }
  419. // To avoid creating an additional object, we just hang the .value
  420. // and .done properties off the next function object itself. This
  421. // also ensures that the minifier will not anonymize the function.
  422. next.done = true;
  423. return next;
  424. };
  425. };
  426. function values(iterable) {
  427. if (iterable) {
  428. var iteratorMethod = iterable[iteratorSymbol];
  429. if (iteratorMethod) {
  430. return iteratorMethod.call(iterable);
  431. }
  432. if (typeof iterable.next === "function") {
  433. return iterable;
  434. }
  435. if (!isNaN(iterable.length)) {
  436. var i = -1, next = function next() {
  437. while (++i < iterable.length) {
  438. if (hasOwn.call(iterable, i)) {
  439. next.value = iterable[i];
  440. next.done = false;
  441. return next;
  442. }
  443. }
  444. next.value = undefined;
  445. next.done = true;
  446. return next;
  447. };
  448. return next.next = next;
  449. }
  450. }
  451. // Return an iterator with no values.
  452. return { next: doneResult };
  453. }
  454. exports.values = values;
  455. function doneResult() {
  456. return { value: undefined, done: true };
  457. }
  458. Context.prototype = {
  459. constructor: Context,
  460. reset: function(skipTempReset) {
  461. this.prev = 0;
  462. this.next = 0;
  463. // Resetting context._sent for legacy support of Babel's
  464. // function.sent implementation.
  465. this.sent = this._sent = undefined;
  466. this.done = false;
  467. this.delegate = null;
  468. this.method = "next";
  469. this.arg = undefined;
  470. this.tryEntries.forEach(resetTryEntry);
  471. if (!skipTempReset) {
  472. for (var name in this) {
  473. // Not sure about the optimal order of these conditions:
  474. if (name.charAt(0) === "t" &&
  475. hasOwn.call(this, name) &&
  476. !isNaN(+name.slice(1))) {
  477. this[name] = undefined;
  478. }
  479. }
  480. }
  481. },
  482. stop: function() {
  483. this.done = true;
  484. var rootEntry = this.tryEntries[0];
  485. var rootRecord = rootEntry.completion;
  486. if (rootRecord.type === "throw") {
  487. throw rootRecord.arg;
  488. }
  489. return this.rval;
  490. },
  491. dispatchException: function(exception) {
  492. if (this.done) {
  493. throw exception;
  494. }
  495. var context = this;
  496. function handle(loc, caught) {
  497. record.type = "throw";
  498. record.arg = exception;
  499. context.next = loc;
  500. if (caught) {
  501. // If the dispatched exception was caught by a catch block,
  502. // then let that catch block handle the exception normally.
  503. context.method = "next";
  504. context.arg = undefined;
  505. }
  506. return !! caught;
  507. }
  508. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  509. var entry = this.tryEntries[i];
  510. var record = entry.completion;
  511. if (entry.tryLoc === "root") {
  512. // Exception thrown outside of any try block that could handle
  513. // it, so set the completion value of the entire function to
  514. // throw the exception.
  515. return handle("end");
  516. }
  517. if (entry.tryLoc <= this.prev) {
  518. var hasCatch = hasOwn.call(entry, "catchLoc");
  519. var hasFinally = hasOwn.call(entry, "finallyLoc");
  520. if (hasCatch && hasFinally) {
  521. if (this.prev < entry.catchLoc) {
  522. return handle(entry.catchLoc, true);
  523. } else if (this.prev < entry.finallyLoc) {
  524. return handle(entry.finallyLoc);
  525. }
  526. } else if (hasCatch) {
  527. if (this.prev < entry.catchLoc) {
  528. return handle(entry.catchLoc, true);
  529. }
  530. } else if (hasFinally) {
  531. if (this.prev < entry.finallyLoc) {
  532. return handle(entry.finallyLoc);
  533. }
  534. } else {
  535. throw new Error("try statement without catch or finally");
  536. }
  537. }
  538. }
  539. },
  540. abrupt: function(type, arg) {
  541. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  542. var entry = this.tryEntries[i];
  543. if (entry.tryLoc <= this.prev &&
  544. hasOwn.call(entry, "finallyLoc") &&
  545. this.prev < entry.finallyLoc) {
  546. var finallyEntry = entry;
  547. break;
  548. }
  549. }
  550. if (finallyEntry &&
  551. (type === "break" ||
  552. type === "continue") &&
  553. finallyEntry.tryLoc <= arg &&
  554. arg <= finallyEntry.finallyLoc) {
  555. // Ignore the finally entry if control is not jumping to a
  556. // location outside the try/catch block.
  557. finallyEntry = null;
  558. }
  559. var record = finallyEntry ? finallyEntry.completion : {};
  560. record.type = type;
  561. record.arg = arg;
  562. if (finallyEntry) {
  563. this.method = "next";
  564. this.next = finallyEntry.finallyLoc;
  565. return ContinueSentinel;
  566. }
  567. return this.complete(record);
  568. },
  569. complete: function(record, afterLoc) {
  570. if (record.type === "throw") {
  571. throw record.arg;
  572. }
  573. if (record.type === "break" ||
  574. record.type === "continue") {
  575. this.next = record.arg;
  576. } else if (record.type === "return") {
  577. this.rval = this.arg = record.arg;
  578. this.method = "return";
  579. this.next = "end";
  580. } else if (record.type === "normal" && afterLoc) {
  581. this.next = afterLoc;
  582. }
  583. return ContinueSentinel;
  584. },
  585. finish: function(finallyLoc) {
  586. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  587. var entry = this.tryEntries[i];
  588. if (entry.finallyLoc === finallyLoc) {
  589. this.complete(entry.completion, entry.afterLoc);
  590. resetTryEntry(entry);
  591. return ContinueSentinel;
  592. }
  593. }
  594. },
  595. "catch": function(tryLoc) {
  596. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  597. var entry = this.tryEntries[i];
  598. if (entry.tryLoc === tryLoc) {
  599. var record = entry.completion;
  600. if (record.type === "throw") {
  601. var thrown = record.arg;
  602. resetTryEntry(entry);
  603. }
  604. return thrown;
  605. }
  606. }
  607. // The context.catch method must only be called with a location
  608. // argument that corresponds to a known catch block.
  609. throw new Error("illegal catch attempt");
  610. },
  611. delegateYield: function(iterable, resultName, nextLoc) {
  612. this.delegate = {
  613. iterator: values(iterable),
  614. resultName: resultName,
  615. nextLoc: nextLoc
  616. };
  617. if (this.method === "next") {
  618. // Deliberately forget the last sent value so that we don't
  619. // accidentally pass it on to the delegate.
  620. this.arg = undefined;
  621. }
  622. return ContinueSentinel;
  623. }
  624. };
  625. // Regardless of whether this script is executing as a CommonJS module
  626. // or not, return the runtime object so that we can declare the variable
  627. // regeneratorRuntime in the outer scope, which allows this module to be
  628. // injected easily by `bin/regenerator --include-runtime script.js`.
  629. return exports;
  630. }(
  631. // If this script is executing as a CommonJS module, use module.exports
  632. // as the regeneratorRuntime namespace. Otherwise create a new empty
  633. // object. Either way, the resulting object will be used to initialize
  634. // the regeneratorRuntime variable at the top of this file.
  635. typeof module === "object" ? module.exports : {}
  636. ));
  637. try {
  638. regeneratorRuntime = runtime;
  639. } catch (accidentalStrictMode) {
  640. // This module should not be running in strict mode, so the above
  641. // assignment should always work unless something is misconfigured. Just
  642. // in case runtime.js accidentally runs in strict mode, in modern engines
  643. // we can explicitly access globalThis. In older engines we can escape
  644. // strict mode using a global Function call. This could conceivably fail
  645. // if a Content Security Policy forbids using Function, but in that case
  646. // the proper solution is to fix the accidental strict mode problem. If
  647. // you've misconfigured your bundler to force strict mode and applied a
  648. // CSP to forbid Function, and you're not willing to fix either of those
  649. // problems, please detail your unique predicament in a GitHub issue.
  650. if (typeof globalThis === "object") {
  651. globalThis.regeneratorRuntime = runtime;
  652. } else {
  653. Function("r", "regeneratorRuntime = r")(runtime);
  654. }
  655. }
  656. }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
  657. return __REQUIRE__(1679043784331);
  658. })()
  659. //miniprogram-npm-outsideDeps=[]
  660. //# sourceMappingURL=index.js.map