合伙人运营小程序
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  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__(1758867032942, function(require, module, exports) {
  8. var undefined;
  9. var $Error = require('es-errors');
  10. var $EvalError = require('es-errors/eval');
  11. var $RangeError = require('es-errors/range');
  12. var $ReferenceError = require('es-errors/ref');
  13. var $SyntaxError = require('es-errors/syntax');
  14. var $TypeError = require('es-errors/type');
  15. var $URIError = require('es-errors/uri');
  16. var $Function = Function;
  17. // eslint-disable-next-line consistent-return
  18. var getEvalledConstructor = function (expressionSyntax) {
  19. try {
  20. return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
  21. } catch (e) {}
  22. };
  23. var $gOPD = Object.getOwnPropertyDescriptor;
  24. if ($gOPD) {
  25. try {
  26. $gOPD({}, '');
  27. } catch (e) {
  28. $gOPD = null; // this is IE 8, which has a broken gOPD
  29. }
  30. }
  31. var throwTypeError = function () {
  32. throw new $TypeError();
  33. };
  34. var ThrowTypeError = $gOPD
  35. ? (function () {
  36. try {
  37. // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
  38. arguments.callee; // IE 8 does not throw here
  39. return throwTypeError;
  40. } catch (calleeThrows) {
  41. try {
  42. // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
  43. return $gOPD(arguments, 'callee').get;
  44. } catch (gOPDthrows) {
  45. return throwTypeError;
  46. }
  47. }
  48. }())
  49. : throwTypeError;
  50. var hasSymbols = require('has-symbols')();
  51. var hasProto = require('has-proto')();
  52. var getProto = Object.getPrototypeOf || (
  53. hasProto
  54. ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
  55. : null
  56. );
  57. var needsEval = {};
  58. var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
  59. var INTRINSICS = {
  60. __proto__: null,
  61. '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
  62. '%Array%': Array,
  63. '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
  64. '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
  65. '%AsyncFromSyncIteratorPrototype%': undefined,
  66. '%AsyncFunction%': needsEval,
  67. '%AsyncGenerator%': needsEval,
  68. '%AsyncGeneratorFunction%': needsEval,
  69. '%AsyncIteratorPrototype%': needsEval,
  70. '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
  71. '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
  72. '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
  73. '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
  74. '%Boolean%': Boolean,
  75. '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
  76. '%Date%': Date,
  77. '%decodeURI%': decodeURI,
  78. '%decodeURIComponent%': decodeURIComponent,
  79. '%encodeURI%': encodeURI,
  80. '%encodeURIComponent%': encodeURIComponent,
  81. '%Error%': $Error,
  82. '%eval%': eval, // eslint-disable-line no-eval
  83. '%EvalError%': $EvalError,
  84. '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
  85. '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
  86. '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
  87. '%Function%': $Function,
  88. '%GeneratorFunction%': needsEval,
  89. '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
  90. '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
  91. '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
  92. '%isFinite%': isFinite,
  93. '%isNaN%': isNaN,
  94. '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
  95. '%JSON%': typeof JSON === 'object' ? JSON : undefined,
  96. '%Map%': typeof Map === 'undefined' ? undefined : Map,
  97. '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
  98. '%Math%': Math,
  99. '%Number%': Number,
  100. '%Object%': Object,
  101. '%parseFloat%': parseFloat,
  102. '%parseInt%': parseInt,
  103. '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
  104. '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
  105. '%RangeError%': $RangeError,
  106. '%ReferenceError%': $ReferenceError,
  107. '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
  108. '%RegExp%': RegExp,
  109. '%Set%': typeof Set === 'undefined' ? undefined : Set,
  110. '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
  111. '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
  112. '%String%': String,
  113. '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
  114. '%Symbol%': hasSymbols ? Symbol : undefined,
  115. '%SyntaxError%': $SyntaxError,
  116. '%ThrowTypeError%': ThrowTypeError,
  117. '%TypedArray%': TypedArray,
  118. '%TypeError%': $TypeError,
  119. '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
  120. '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
  121. '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
  122. '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
  123. '%URIError%': $URIError,
  124. '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
  125. '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
  126. '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
  127. };
  128. if (getProto) {
  129. try {
  130. null.error; // eslint-disable-line no-unused-expressions
  131. } catch (e) {
  132. // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
  133. var errorProto = getProto(getProto(e));
  134. INTRINSICS['%Error.prototype%'] = errorProto;
  135. }
  136. }
  137. var doEval = function doEval(name) {
  138. var value;
  139. if (name === '%AsyncFunction%') {
  140. value = getEvalledConstructor('async function () {}');
  141. } else if (name === '%GeneratorFunction%') {
  142. value = getEvalledConstructor('function* () {}');
  143. } else if (name === '%AsyncGeneratorFunction%') {
  144. value = getEvalledConstructor('async function* () {}');
  145. } else if (name === '%AsyncGenerator%') {
  146. var fn = doEval('%AsyncGeneratorFunction%');
  147. if (fn) {
  148. value = fn.prototype;
  149. }
  150. } else if (name === '%AsyncIteratorPrototype%') {
  151. var gen = doEval('%AsyncGenerator%');
  152. if (gen && getProto) {
  153. value = getProto(gen.prototype);
  154. }
  155. }
  156. INTRINSICS[name] = value;
  157. return value;
  158. };
  159. var LEGACY_ALIASES = {
  160. __proto__: null,
  161. '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
  162. '%ArrayPrototype%': ['Array', 'prototype'],
  163. '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
  164. '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
  165. '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
  166. '%ArrayProto_values%': ['Array', 'prototype', 'values'],
  167. '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
  168. '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
  169. '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
  170. '%BooleanPrototype%': ['Boolean', 'prototype'],
  171. '%DataViewPrototype%': ['DataView', 'prototype'],
  172. '%DatePrototype%': ['Date', 'prototype'],
  173. '%ErrorPrototype%': ['Error', 'prototype'],
  174. '%EvalErrorPrototype%': ['EvalError', 'prototype'],
  175. '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
  176. '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
  177. '%FunctionPrototype%': ['Function', 'prototype'],
  178. '%Generator%': ['GeneratorFunction', 'prototype'],
  179. '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
  180. '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
  181. '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
  182. '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
  183. '%JSONParse%': ['JSON', 'parse'],
  184. '%JSONStringify%': ['JSON', 'stringify'],
  185. '%MapPrototype%': ['Map', 'prototype'],
  186. '%NumberPrototype%': ['Number', 'prototype'],
  187. '%ObjectPrototype%': ['Object', 'prototype'],
  188. '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
  189. '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
  190. '%PromisePrototype%': ['Promise', 'prototype'],
  191. '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
  192. '%Promise_all%': ['Promise', 'all'],
  193. '%Promise_reject%': ['Promise', 'reject'],
  194. '%Promise_resolve%': ['Promise', 'resolve'],
  195. '%RangeErrorPrototype%': ['RangeError', 'prototype'],
  196. '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
  197. '%RegExpPrototype%': ['RegExp', 'prototype'],
  198. '%SetPrototype%': ['Set', 'prototype'],
  199. '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
  200. '%StringPrototype%': ['String', 'prototype'],
  201. '%SymbolPrototype%': ['Symbol', 'prototype'],
  202. '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
  203. '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
  204. '%TypeErrorPrototype%': ['TypeError', 'prototype'],
  205. '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
  206. '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
  207. '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
  208. '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
  209. '%URIErrorPrototype%': ['URIError', 'prototype'],
  210. '%WeakMapPrototype%': ['WeakMap', 'prototype'],
  211. '%WeakSetPrototype%': ['WeakSet', 'prototype']
  212. };
  213. var bind = require('function-bind');
  214. var hasOwn = require('hasown');
  215. var $concat = bind.call(Function.call, Array.prototype.concat);
  216. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  217. var $replace = bind.call(Function.call, String.prototype.replace);
  218. var $strSlice = bind.call(Function.call, String.prototype.slice);
  219. var $exec = bind.call(Function.call, RegExp.prototype.exec);
  220. /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
  221. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  222. var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
  223. var stringToPath = function stringToPath(string) {
  224. var first = $strSlice(string, 0, 1);
  225. var last = $strSlice(string, -1);
  226. if (first === '%' && last !== '%') {
  227. throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
  228. } else if (last === '%' && first !== '%') {
  229. throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
  230. }
  231. var result = [];
  232. $replace(string, rePropName, function (match, number, quote, subString) {
  233. result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
  234. });
  235. return result;
  236. };
  237. /* end adaptation */
  238. var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
  239. var intrinsicName = name;
  240. var alias;
  241. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  242. alias = LEGACY_ALIASES[intrinsicName];
  243. intrinsicName = '%' + alias[0] + '%';
  244. }
  245. if (hasOwn(INTRINSICS, intrinsicName)) {
  246. var value = INTRINSICS[intrinsicName];
  247. if (value === needsEval) {
  248. value = doEval(intrinsicName);
  249. }
  250. if (typeof value === 'undefined' && !allowMissing) {
  251. throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
  252. }
  253. return {
  254. alias: alias,
  255. name: intrinsicName,
  256. value: value
  257. };
  258. }
  259. throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
  260. };
  261. module.exports = function GetIntrinsic(name, allowMissing) {
  262. if (typeof name !== 'string' || name.length === 0) {
  263. throw new $TypeError('intrinsic name must be a non-empty string');
  264. }
  265. if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
  266. throw new $TypeError('"allowMissing" argument must be a boolean');
  267. }
  268. if ($exec(/^%?[^%]*%?$/, name) === null) {
  269. throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
  270. }
  271. var parts = stringToPath(name);
  272. var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
  273. var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
  274. var intrinsicRealName = intrinsic.name;
  275. var value = intrinsic.value;
  276. var skipFurtherCaching = false;
  277. var alias = intrinsic.alias;
  278. if (alias) {
  279. intrinsicBaseName = alias[0];
  280. $spliceApply(parts, $concat([0, 1], alias));
  281. }
  282. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  283. var part = parts[i];
  284. var first = $strSlice(part, 0, 1);
  285. var last = $strSlice(part, -1);
  286. if (
  287. (
  288. (first === '"' || first === "'" || first === '`')
  289. || (last === '"' || last === "'" || last === '`')
  290. )
  291. && first !== last
  292. ) {
  293. throw new $SyntaxError('property names with quotes must have matching quotes');
  294. }
  295. if (part === 'constructor' || !isOwn) {
  296. skipFurtherCaching = true;
  297. }
  298. intrinsicBaseName += '.' + part;
  299. intrinsicRealName = '%' + intrinsicBaseName + '%';
  300. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  301. value = INTRINSICS[intrinsicRealName];
  302. } else if (value != null) {
  303. if (!(part in value)) {
  304. if (!allowMissing) {
  305. throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
  306. }
  307. return void undefined;
  308. }
  309. if ($gOPD && (i + 1) >= parts.length) {
  310. var desc = $gOPD(value, part);
  311. isOwn = !!desc;
  312. // By convention, when a data property is converted to an accessor
  313. // property to emulate a data property that does not suffer from
  314. // the override mistake, that accessor's getter is marked with
  315. // an `originalValue` property. Here, when we detect this, we
  316. // uphold the illusion by pretending to see that original data
  317. // property, i.e., returning the value rather than the getter
  318. // itself.
  319. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
  320. value = desc.get;
  321. } else {
  322. value = value[part];
  323. }
  324. } else {
  325. isOwn = hasOwn(value, part);
  326. value = value[part];
  327. }
  328. if (isOwn && !skipFurtherCaching) {
  329. INTRINSICS[intrinsicRealName] = value;
  330. }
  331. }
  332. }
  333. return value;
  334. };
  335. }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
  336. return __REQUIRE__(1758867032942);
  337. })()
  338. //miniprogram-npm-outsideDeps=["es-errors","es-errors/eval","es-errors/range","es-errors/ref","es-errors/syntax","es-errors/type","es-errors/uri","has-symbols","has-proto","function-bind","hasown"]
  339. //# sourceMappingURL=index.js.map