@teambit/env 1.0.484 → 1.0.485
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/env-template/public/15.409cbc5efc0d1475b820.js +207 -0
- package/artifacts/env-template/public/{182.00303d3d4ada5ae3efc6.js → 182.ec8db02652bda79cc9c3.js} +105 -24
- package/artifacts/env-template/public/250.c98b0e1bd00c7d149461.js +12 -0
- package/artifacts/env-template/public/assets-manifest.json +20 -20
- package/artifacts/env-template/public/compositions.a2fe73e01d28e12ad780.js +1 -0
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/overview.7d2af2b774ef7352a041.js +1 -0
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/{peers.b81837ccb04689f452ae.js → peers.e1d53af61c804326e3c0.js} +1 -1
- package/artifacts/env-template/public/{preview-root.bbfaecea35f2d3b6c872.js → preview-root.5fec25fc1489c881af44.js} +1 -1
- package/artifacts/env-template/public/static/css/{182.2ce9a681.css → 182.2b95da0c.css} +1 -1
- package/artifacts/env-template/public/static/css/preview-root.cd64aba9.css +1 -0
- package/artifacts/preview/teambit_envs_env-preview.js +1 -1
- package/artifacts/schema.json +1 -1
- package/{compositions-1733282408194.js → compositions-1733455199677.js} +1 -1
- package/dist/{preview-1733282408194.js → preview-1733455199677.js} +2 -2
- package/{overview-1733282408194.js → overview-1733455199677.js} +1 -1
- package/package.json +10 -10
- package/artifacts/env-template/public/683.1f29c9b2c6c82b51ebc4.js +0 -255
- package/artifacts/env-template/public/929.9d1e7472ce0d3cb1311f.js +0 -234
- package/artifacts/env-template/public/compositions.a7ee8d92d86d564c2d92.js +0 -1
- package/artifacts/env-template/public/overview.ed72e59104b09c03cc6b.js +0 -1
- package/artifacts/env-template/public/static/css/preview-root.648c0703.css +0 -1
- /package/artifacts/env-template/public/{782.6846c9229b6334dc991f.js → 782.23c6f0abfb2c20e0df14.js} +0 -0
@@ -1,234 +0,0 @@
|
|
1
|
-
(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[929],{89214:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;class BitError extends Error{constructor(msg){super(msg||"");this.isUserError=!0,this.name=this.constructor.name}report(){return this.message}}exports.BitError=BitError},39567:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;var bit_error_1=__webpack_require__(89214);Object.defineProperty(exports,"BitError",{enumerable:!0,get:function(){return bit_error_1.BitError}})},66434:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentIdList=void 0;const lodash_1=__webpack_require__(34776),component_version_1=__webpack_require__(32454),component_id_1=__webpack_require__(69086);class ComponentIdList extends Array{toStringArray(){return this.map(componentId=>componentId.toString())}has(componentId){return Boolean(this.search(componentId))}hasWithoutVersion(componentId){return Boolean(this.searchWithoutVersion(componentId))}hasWithoutScopeAndVersion(componentId){return Boolean(this.searchWithoutScopeAndVersion(componentId))}search(componentId){return this.find(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope&&id._legacy.hasSameVersion(componentId._legacy))}searchWithoutVersion(componentId){return this.find(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope)}searchWithoutScopeAndVersion(componentId){return this.find(id=>id.fullName===componentId.fullName)}searchStrWithoutVersion(idStr){return this.find(id=>id.toStringWithoutVersion()===idStr)}filterExact(componentId){return this.filter(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope&&id.hasSameVersion(componentId))}filterWithoutVersion(componentId){return this.filter(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope)}removeIfExist(componentId){return ComponentIdList.fromArray(this.filter(id=>!id.isEqual(componentId)))}toObject(){return this.reduce((acc,componentId)=>(acc[componentId.toString()]=componentId,acc),{})}toString(){return this.map(id=>id.toString()).join(", ")}toGroupByIdWithoutVersion(){return this.reduce((acc,current)=>{const idStrWithoutVer=current.toStringWithoutVersion();return acc[idStrWithoutVer]?acc[idStrWithoutVer].push(current):acc[idStrWithoutVer]=new ComponentIdList(current),acc},{})}toGroupByScopeName(){return this.reduce((acc,current)=>{const scopeName=current.scope;return acc[scopeName]?acc[scopeName].push(current):acc[scopeName]=new ComponentIdList(current),acc},{})}findDuplicationsIgnoreVersion(){const duplications={};return this.forEach(id=>{const sameIds=this.filterWithoutVersion(id);sameIds.length>1&&(duplications[id.toStringWithoutVersion()]=sameIds)}),duplications}add(componentIds){componentIds.forEach(componentId=>{this.search(componentId)||this.push(componentId)})}static fromArray(ids){const componentIds=new ComponentIdList;return ids.forEach(id=>componentIds.push(id)),componentIds}static uniqFromArray(componentIds){const uniq=(0,lodash_1.uniqBy)(componentIds,id=>id.toString());return ComponentIdList.fromArray(uniq)}static fromStringArray(idsStr=[]){return ComponentIdList.fromArray(idsStr.map(id=>component_id_1.ComponentID.fromString(id)))}throwForDuplicationIgnoreVersion(){this.forEach(componentId=>{const found=this.filterWithoutVersion(componentId);if(found.length>1)throw new Error(`componentIds has "${componentId.toStringWithoutVersion()}" duplicated as following:
|
2
|
-
${found.map(id=>id.toString()).join(`
|
3
|
-
`)}`)})}toVersionLatest(){return ComponentIdList.uniqFromArray(this.map(id=>id.changeVersion(component_version_1.LATEST_VERSION)))}clone(){return ComponentIdList.fromArray(this.map(id=>id.clone()))}}exports.ComponentIdList=ComponentIdList},69086:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentID=void 0;const legacy_bit_id_1=__webpack_require__(9017),exceptions_1=__webpack_require__(44043);class ComponentID{constructor(_legacy,_scope){if(this._legacy=_legacy,this._scope=_scope,!_legacy.name)throw new Error(`ComponentID expects to get an object with "name" prop. got ${_legacy}`);if(!_scope&&!_legacy.scope)throw new exceptions_1.MissingScope(_legacy)}hasVersion(){return this._legacy.hasVersion()}get version(){return this._legacy.version}get namespace(){return this._legacy.name.split("/").slice(0,-1).join("/")}get fullName(){return this._legacy.name}get name(){const arr=this._legacy.name.split("/");return arr[arr.length-1]}get scope(){const scope=this._legacy.scope;if(scope)return scope;if(!this._scope)throw new Error("scope cannot be undefined");return this._scope}changeScope(scopeName){const legacyId=this._legacy.changeScope(scopeName);return ComponentID.fromLegacy(legacyId,this.scope)}changeDefaultScope(scopeName){return ComponentID.fromLegacy(this._legacy,scopeName)}changeVersion(version){const legacyId=this._legacy.changeVersion(version);return ComponentID.fromLegacy(legacyId,this.scope)}isEqual(id,opts){return ComponentID.isEqual(this,id,opts)}isEqualWithoutVersion(id){return this.isEqual(id,{ignoreVersion:!0})}isLocal(scopeName){return this._legacy.isLocal(scopeName)}hasScope(){return this._legacy.hasScope()}serialize(){return this.toObject()}static deserialize(id){return ComponentID.fromObject(id)}static isValidVersion(version){return legacy_bit_id_1.BitId.isValidVersion(version)}static getVersionFromString(id){return id.split(legacy_bit_id_1.VERSION_DELIMITER)[1]}static getStringWithoutVersion(id){return id.split(legacy_bit_id_1.VERSION_DELIMITER)[0]}getVersionPreReleaseData(){return this._legacy.getVersionPreReleaseData()}toStringWithoutVersion(){let id=this._legacy;return this._scope&&!this._legacy.scope&&(id=id.changeScope(this._scope)),id.toStringWithoutVersion()}hasSameVersion(id){return this._legacy.hasSameVersion(id._legacy)}toString(opts={}){let id=this._legacy;this._scope&&!this._legacy.scope&&(id=id.changeScope(this._scope));const idStr=id.toString(!1,opts.ignoreVersion);return opts.fsCompatible?idStr.replace(/\//g,"_").replace(/\./g,"_").replace(/-/g,"_"):idStr}toObject(){const object=this._legacy.serialize();return object.scope||(object.scope=this.scope),object}clone(){return ComponentID.fromLegacy(this._legacy.clone(),this._scope)}static tryFromString(idStr,scope){try{return ComponentID.fromString(idStr,scope)}catch{return}}static isValidCompIdStr(idStr){return Boolean(ComponentID.tryFromString(idStr))}static fromString(idStr,scope){const legacyId=legacy_bit_id_1.BitId.parse(idStr,!0);if(!scope&&!legacyId.scope)throw new exceptions_1.MissingScope(idStr);return new ComponentID(legacyId,scope)}static fromLegacyString(idStr,scope){const legacyId=legacy_bit_id_1.BitId.parse(idStr,!1);return new ComponentID(legacyId,scope)}static fromObject(object,scope){if(object instanceof ComponentID)throw new Error(`ComponentID.fromObject expect to get an object, got an instance of ComponentID: ${object.toString()}`);return ComponentID.fromLegacy(new legacy_bit_id_1.BitId(object),scope)}static isValidObject(o){return typeof o=="object"&&typeof o.name=="string"&&typeof o.scope=="string"}static isEqual(a,b,opts={}){if(!a&&!b)return!0;if(!a||!b)return!1;const result=a.scope===b.scope&&a.toString({ignoreVersion:opts.ignoreVersion})===b.toString({ignoreVersion:opts.ignoreVersion});return opts.ignoreVersion?result:result&&a.hasSameVersion(b)}static isEqualObj(a,b,opts={}){if(!a&&!b)return!0;if(!a||!b)return!1;let result=a.scope===b.scope&&a.name===b.name;return opts.ignoreVersion||(result=result&&a.version===b.version),result}static fromLegacy(legacyId,scope){if(!scope&&!legacyId.scope)throw new exceptions_1.MissingScope(legacyId);return new ComponentID(legacyId,scope)}static sortIds(ids){return ids.sort((a,b)=>a.toString().localeCompare(b.toString()))}}exports.ComponentID=ComponentID},44043:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingScope=void 0;const missing_scope_1=__webpack_require__(38863);Object.defineProperty(exports,"MissingScope",{enumerable:!0,get:function(){return missing_scope_1.MissingScope}})},38863:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingScope=void 0;class MissingScope extends Error{constructor(src){super(`scope is missing from a component-id "${src.toString()}".
|
4
|
-
in case you just upgraded bit version to >= 1.2.10 and you're getting this error, please run "bit cc" and then "bit status" to fix it.
|
5
|
-
if you're still getting the same error, run "bit reset --never-exported"`)}report(){return this.message}}exports.MissingScope=MissingScope},45882:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentIdList=exports.ComponentID=void 0;var component_id_1=__webpack_require__(69086);Object.defineProperty(exports,"ComponentID",{enumerable:!0,get:function(){return component_id_1.ComponentID}});var component_id_list_1=__webpack_require__(66434);Object.defineProperty(exports,"ComponentIdList",{enumerable:!0,get:function(){return component_id_list_1.ComponentIdList}})},78049:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidVersion=void 0;const invalid_version_1=__importDefault(__webpack_require__(17653));exports.InvalidVersion=invalid_version_1.default},17653:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(39567);class InvalidVersion extends bit_error_1.BitError{constructor(version){super(`error: version ${version||"(empty)"} is not a valid semantic version. learn more: https://semver.org`)}}exports.default=InvalidVersion},32454:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SHORT_HASH_MINIMUM_SIZE=exports.HASH_SIZE=exports.InvalidVersion=exports.isTag=exports.isSnap=exports.isHash=exports.versionParser=exports.LATEST_VERSION=exports.Version=void 0;const version_1=__webpack_require__(14498);Object.defineProperty(exports,"Version",{enumerable:!0,get:function(){return version_1.Version}}),Object.defineProperty(exports,"LATEST_VERSION",{enumerable:!0,get:function(){return version_1.LATEST_VERSION}});const version_parser_1=__importStar(__webpack_require__(51420));exports.versionParser=version_parser_1.default,Object.defineProperty(exports,"isHash",{enumerable:!0,get:function(){return version_parser_1.isHash}}),Object.defineProperty(exports,"isSnap",{enumerable:!0,get:function(){return version_parser_1.isSnap}}),Object.defineProperty(exports,"isTag",{enumerable:!0,get:function(){return version_parser_1.isTag}}),Object.defineProperty(exports,"HASH_SIZE",{enumerable:!0,get:function(){return version_parser_1.HASH_SIZE}}),Object.defineProperty(exports,"SHORT_HASH_MINIMUM_SIZE",{enumerable:!0,get:function(){return version_parser_1.SHORT_HASH_MINIMUM_SIZE}});const exceptions_1=__webpack_require__(78049);Object.defineProperty(exports,"InvalidVersion",{enumerable:!0,get:function(){return exceptions_1.InvalidVersion}})},51420:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.isSnap=exports.isTag=exports.isHash=exports.SHORT_HASH_MINIMUM_SIZE=exports.HASH_SIZE=void 0;const semver_1=__importDefault(__webpack_require__(24501)),exceptions_1=__webpack_require__(78049),version_1=__webpack_require__(14498);exports.HASH_SIZE=40,exports.SHORT_HASH_MINIMUM_SIZE=3;function isLatest(versionStr){return versionStr===version_1.LATEST_VERSION}function isSemverValid(versionStr){return Boolean(semver_1.default.valid(versionStr))}function returnSemver(versionStr){return new version_1.Version(versionStr,!1)}function returnLatest(){return new version_1.Version(null,!0)}function returnSnap(hash){return new version_1.Version(hash,!1)}function isHash(str){return typeof str=="string"&&isHex(str)&&str.length>=exports.SHORT_HASH_MINIMUM_SIZE&&str.length<=exports.HASH_SIZE}exports.isHash=isHash;function isTag(str){return typeof str=="string"&&isSemverValid(str)}exports.isTag=isTag;function isSnap(str){return isHash(str)&&typeof str=="string"&&str.length===exports.HASH_SIZE}exports.isSnap=isSnap;function versionParser(versionStr){if(!versionStr||isLatest(versionStr))return returnLatest();if(isSemverValid(versionStr))return returnSemver(versionStr);if(isHash(versionStr))return returnSnap(versionStr);throw new exceptions_1.InvalidVersion(versionStr.toString())}exports.default=versionParser;function isHex(str){return/^[0-9a-fA-F]+$/.test(str)}},14498:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Version=exports.LATEST_VERSION=void 0;const semver_1=__importDefault(__webpack_require__(24501)),exceptions_1=__webpack_require__(78049);exports.LATEST_VERSION="latest";class Version{constructor(versionNum,latest){if(this.versionNum=versionNum,this.latest=latest,versionNum&&latest)throw new Error('a component version cannot have both: version and "latest"')}toString(){if(!this.versionNum&&this.latest)return"latest";if(this.versionNum&&!this.latest)return this.versionNum.toString();throw new exceptions_1.InvalidVersion(this.versionNum)}isLaterThan(otherVersion){return!this.versionNum||this.versionNum===exports.LATEST_VERSION?!0:!otherVersion.versionNum||otherVersion.versionNum===exports.LATEST_VERSION?!1:semver_1.default.gt(this.versionNum,otherVersion.versionNum)}}exports.Version=Version},39165:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Aspect=void 0;class Aspect{constructor(id,dependencies,slots,defaultConfig={},declareRuntime,files){this.id=id,this.dependencies=dependencies,this.slots=slots,this.defaultConfig=defaultConfig,this.declareRuntime=declareRuntime,this.files=files,this._runtimes=[]}addRuntime(runtimeManifest){return this._runtimes.push(runtimeManifest),this}getRuntime(runtimeDef){return this._runtimes.find(runtime=>typeof runtime.runtime=="string"?runtime.runtime===runtimeDef.name:runtime.runtime.name===runtimeDef.name)}getRuntimes(){return this._runtimes}static create(manifest){return new Aspect(manifest.id,manifest.dependencies||[],manifest.slots||[],manifest.defaultConfig,manifest.declareRuntime,manifest.files||[])}}exports.Aspect=Aspect},46793:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Config=void 0;class Config{constructor(raw){this.raw=raw}toObject(){return Array.from(this.raw.entries()).reduce((acc,[id,config])=>(acc[id]=config,acc),{})}set(id,config){this.raw.set(id,config)}get(id){return this.raw.get(id)}static from(raw){return new Config(new Map(Object.entries(raw)))}}exports.Config=Config},48890:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Config=void 0;var config_1=__webpack_require__(46793);Object.defineProperty(exports,"Config",{enumerable:!0,get:function(){return config_1.Config}})},71422:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExtensionInstantiationException=void 0;class ExtensionInstantiationException extends Error{}exports.ExtensionInstantiationException=ExtensionInstantiationException},61601:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class ExtensionLoadError extends Error{constructor(extension,originalError,msg){super();this.extension=extension,this.originalError=originalError,this.msg=msg}toString(){return`failed to load extension: ${this.extension.name} with error:
|
6
|
-
|
7
|
-
${this.msg||this.originalError.stack}`}}exports.default=ExtensionLoadError},4461:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const harmony_error_1=__webpack_require__(9772);class ExtensionPotentialCircular extends harmony_error_1.HarmonyError{constructor(extension,validDeps){super();this.extension=extension,this.validDeps=validDeps}toString(){return`Failed to load the dependencies for extension .
|
8
|
-
This may result from a wrong import or from circular dependencies in imports.
|
9
|
-
The following dependencies succeeded loading:`}}exports.default=ExtensionPotentialCircular},64681:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HarmonyAlreadyRunning=void 0;class HarmonyAlreadyRunning extends Error{}exports.HarmonyAlreadyRunning=HarmonyAlreadyRunning},9772:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HarmonyError=void 0;class HarmonyError extends Error{}exports.HarmonyError=HarmonyError},33917:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HookNotFound=void 0;class HookNotFound extends Error{}exports.HookNotFound=HookNotFound},18302:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExtensionInstantiationException=exports.HookNotFound=exports.HarmonyAlreadyRunning=exports.ExtensionPotentialCircular=exports.ExtensionLoadError=void 0;var extension_load_error_1=__webpack_require__(61601);Object.defineProperty(exports,"ExtensionLoadError",{enumerable:!0,get:function(){return __importDefault(extension_load_error_1).default}});var extension_potential_circular_1=__webpack_require__(4461);Object.defineProperty(exports,"ExtensionPotentialCircular",{enumerable:!0,get:function(){return __importDefault(extension_potential_circular_1).default}});var harmony_already_running_1=__webpack_require__(64681);Object.defineProperty(exports,"HarmonyAlreadyRunning",{enumerable:!0,get:function(){return harmony_already_running_1.HarmonyAlreadyRunning}});var hook_not_found_1=__webpack_require__(33917);Object.defineProperty(exports,"HookNotFound",{enumerable:!0,get:function(){return hook_not_found_1.HookNotFound}});var extension_init_error_1=__webpack_require__(71422);Object.defineProperty(exports,"ExtensionInstantiationException",{enumerable:!0,get:function(){return extension_init_error_1.ExtensionInstantiationException}})},30501:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0});const cleargraph_1=__webpack_require__(97492),from_extension_1=__webpack_require__(66584);function getName(manifest){return Reflect.getMetadata("harmony:name",manifest)||manifest.id||manifest.name}class DependencyGraph extends cleargraph_1.Graph{constructor(){super(...arguments);this.cache=new Map}getRuntimeDependencies(aspect,runtime,options={}){const dependencies=this.successors(aspect.name),runtimeDeps=this.successors(aspect.name,edge=>edge.runtime?edge.runtime===runtime.name:!1),runtimeManifest=aspect.getRuntime(runtime);return runtimeManifest?runtimeDeps&&runtimeDeps.size?this.sortDeps(runtimeManifest.dependencies,Array.from(runtimeDeps.values()),options):this.sortDeps(runtimeManifest.dependencies,Array.from(dependencies.values()),options):Array.from(dependencies.values())}sortDeps(originalDependencies,targetDependencies,options={}){const _originalDependencies=options.getName?originalDependencies?.map(aspect=>(options.getName&&(aspect.id=options.getName(aspect)),aspect))||[]:originalDependencies;return targetDependencies.sort((a,b)=>_originalDependencies.findIndex(item=>item.id===a.id)-_originalDependencies.findIndex(item=>item.id===b.id))}byExecutionOrder(){return this.toposort(!0)}enrichRuntimeExtension(id,aspect,runtime,runtimes,requireFn,options={}){return __awaiter(this,void 0,void 0,function*(){yield requireFn(aspect,runtime);const runtimeManifest=aspect.getRuntime(runtime);if(!runtimeManifest)return;const deps=runtimeManifest.dependencies;if(!deps)return;const promises=deps.map(dep=>__awaiter(this,void 0,void 0,function*(){const depId=options.getName?options.getName(dep):dep.id;if(!this.hasNode(depId)){this.add(dep),dep.declareRuntime&&runtimes.add(dep.declareRuntime);const node=this.get(depId);if(!node)return;yield requireFn(node,runtime),yield this.enrichRuntimeExtension(depId,this.get(depId),runtime,runtimes,requireFn)}this.setEdge(id,depId,{runtime:runtime.name,type:"runtime-dependency"})}));return Promise.all(promises)})}enrichRuntime(runtime,runtimes,requireFn,options={}){return __awaiter(this,void 0,void 0,function*(){const promises=Array.from(this.nodes.entries()).map(([id,aspect])=>__awaiter(this,void 0,void 0,function*(){return this.enrichRuntimeExtension(id,aspect,runtime,runtimes,requireFn,options)}));return Promise.all(promises)})}add(manifest){const{vertices,edges}=(0,from_extension_1.fromExtension)(manifest);return this.setNodes(vertices),this.setEdges(edges),this}load(extensions){const newExtensions=extensions.filter(extension=>extension.id?!this.get(extension.id):!1),{vertices,edges}=(0,from_extension_1.fromExtensions)(newExtensions);return this.setNodes(vertices,!1),this.setEdges(edges),this}getExtension(manifest){const id=getName(manifest),cachedVertex=this.cache.get(id);if(cachedVertex)return cachedVertex;const res=this.node(id);return res?(this.cache.set(res.name,res),res):null}get extensions(){return Array.from(this.nodes.values())}get aspects(){return this.extensions}get(id){const cachedVertex=this.cache.get(id);if(cachedVertex)return cachedVertex;const res=this.node(id);return res?(this.cache.set(res.name,res),res):null}static fromRoot(extension){const{vertices,edges}=(0,from_extension_1.fromExtension)(extension);return new DependencyGraph(vertices,edges)}static from(extensions,options={}){const{vertices,edges}=(0,from_extension_1.fromExtensions)(extensions,options);return new DependencyGraph(vertices,edges)}}exports.default=DependencyGraph},66584:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.fromExtensions=exports.fromExtension=void 0;const factory_1=__webpack_require__(66224),extension_potential_circular_1=__importDefault(__webpack_require__(4461));function getName(manifest){return Reflect.getMetadata("harmony:name",manifest)||manifest.id||manifest.name}function fromExtension(extension,options={}){const vertices={};let edges=[];function iterate(root){const id=options.getName?options.getName(root):getName(root);if(vertices[id])return;const instance=(0,factory_1.extensionFactory)(root),validDeps=instance.dependencies.filter(dep=>dep).map(dep=>(0,factory_1.extensionFactory)(dep));if(instance.dependencies.length>validDeps.length)throw new extension_potential_circular_1.default(instance,validDeps);vertices[id]=instance;const newEdges=validDeps.map(dep=>({sourceId:id,targetId:dep.name,edge:{type:"dependency"}}));edges=edges.concat(newEdges),instance.dependencies.forEach(dep=>iterate(dep))}iterate(extension);let vertexArray=[];for(let[key,value]of Object.entries(vertices))vertexArray.push({id:key,node:value});return{vertices:vertexArray,edges}}exports.fromExtension=fromExtension;function fromExtensions(extensions,options={}){return extensions.map(ext=>fromExtension(ext,options)).reduce((acc,subgraph)=>(acc.edges=acc.edges.concat(subgraph.edges),acc.vertices=acc.vertices.concat(subgraph.vertices),acc),{vertices:[],edges:[]})}exports.fromExtensions=fromExtensions},94157:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HookRegistry=exports.hook=exports.createHook=exports.register=exports.provider=exports.ExtensionDecorator=void 0;const map={};function ExtensionDecorator({name,dependencies}={}){function classDecorator(constructor){Reflect.defineMetadata("harmony:name",name||constructor.name,constructor),Reflect.defineMetadata("harmony:dependencies",calculateDependnecies(constructor,dependencies),constructor)}return classDecorator}exports.ExtensionDecorator=ExtensionDecorator;function provider(){return function(target,propertyKey,descriptor){const keys=Reflect.getMetadata("design:paramtypes",descriptor)}}exports.provider=provider;function providerFn(classExtension){return classExtension.provide?classExtension.provide:classExtension.provider}function calculateDependnecies(classExtension,deps){function fromMetadata(){return providerFn(classExtension)?[]:Reflect.getMetadata("design:paramtypes",classExtension)}const dependnecies=deps||fromMetadata()||[],hookDeps=classExtension.__hookDeps?classExtension.__hookDeps:[];return dependnecies.concat(hookDeps)||[]}function register(extension,name){return function(target,propertyKey,descriptor){const extensionName=Reflect.getMetadata("harmony:name",extension);map[extensionName]||(map[extensionName]={});const hook2=map[extensionName][name||propertyKey];!hook2||hook2.register(target[propertyKey])}}exports.register=register;function createHook(){const randomId=Math.random().toString(36).substring(2);map[randomId]=HookRegistry.create();const decorator=function(target,propertyKey,descriptor){map[randomId].register(descriptor.value)};return decorator.hash=randomId,decorator}exports.createHook=createHook;function hook(name){return function(target,propertyKey){let instance=HookRegistry.create();const extensionName=Reflect.getMetadata("harmony:name",target.constructor),hookName=name||propertyKey;map[extensionName]?map[extensionName][hookName]=instance:map[extensionName]={[hookName]:instance},Object.defineProperty(target,propertyKey,{get:()=>instance,set:value=>{instance=value}})}}exports.hook=hook;class HookRegistry{constructor(fillers,hash){this.fillers=fillers,this.hash=hash}register(filler){this.fillers.push(filler)}list(){return this.fillers}static of(hook2){return map[hook2.hash]}static create(){return new HookRegistry([])}}exports.HookRegistry=HookRegistry},64628:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Extension=void 0;const extension_init_error_1=__webpack_require__(71422);class Extension{constructor(manifest){this.manifest=manifest,this._instance=null,this._loaded=!1}get instance(){return this._instance}get name(){return Reflect.getMetadata("harmony:name",this.manifest)||this.manifest.id||this.manifest.name}get id(){return this.name}get dependencies(){return Reflect.getMetadata("harmony:dependencies",this.manifest)||this.manifest.dependencies||[]}get provider(){return Reflect.getMetadata("harmony:provider",this.manifest)||this.manifest.provider}get files(){return this.manifest.files}get loaded(){return this._loaded}toString(){return JSON.stringify(this.name)}buildSlotRegistries(slots,context){return slots.map(slot=>slot(()=>context.current))}get declareRuntime(){return this.manifest.declareRuntime}getRuntime(runtime){return this.manifest.getRuntime(runtime)}getRuntimes(){return this.manifest.getRuntimes()}getSlots(extensionRuntime){return extensionRuntime.slots&&extensionRuntime.slots.length?extensionRuntime.slots:this.manifest.slots||[]}getConfig(context,extensionRuntime){const defaultConfig=extensionRuntime.defaultConfig||this.manifest.defaultConfig||{},config=context.config.get(this.name)||{};return Object.assign({},defaultConfig,config)}__run(dependencies,context,runtime){return __awaiter(this,void 0,void 0,function*(){const name=this.name;context.initExtension(name);const extensionRuntime=this.getRuntime(runtime);if(!extensionRuntime)return;const registries=this.buildSlotRegistries(this.getSlots(extensionRuntime),context),config=this.getConfig(context,extensionRuntime);if(!this.loaded){if(extensionRuntime.provider)this._instance=yield extensionRuntime.provider(dependencies,config,registries,context);else try{this._instance=new extensionRuntime.manifest(...dependencies)}catch(err){throw new extension_init_error_1.ExtensionInstantiationException(err.toString())}return this._loaded=!0,this._instance}return context.endExtension(),Promise.resolve(this.instance)})}}exports.Extension=Extension},1363:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createHook=exports.provider=exports.HookRegistry=exports.hook=exports.register=exports.ExtensionDecorator=exports.Extension=void 0;var extension_1=__webpack_require__(64628);Object.defineProperty(exports,"Extension",{enumerable:!0,get:function(){return extension_1.Extension}});var decorator_1=__webpack_require__(94157);Object.defineProperty(exports,"ExtensionDecorator",{enumerable:!0,get:function(){return decorator_1.ExtensionDecorator}}),Object.defineProperty(exports,"register",{enumerable:!0,get:function(){return decorator_1.register}}),Object.defineProperty(exports,"hook",{enumerable:!0,get:function(){return decorator_1.hook}}),Object.defineProperty(exports,"HookRegistry",{enumerable:!0,get:function(){return decorator_1.HookRegistry}}),Object.defineProperty(exports,"provider",{enumerable:!0,get:function(){return decorator_1.provider}}),Object.defineProperty(exports,"createHook",{enumerable:!0,get:function(){return decorator_1.createHook}})},52856:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.extensionFactory=void 0;const extension_1=__webpack_require__(64628);function extensionFactory(manifest){return manifest.provide&&(manifest.provider=manifest.provide),new extension_1.Extension(manifest)}exports.extensionFactory=extensionFactory},66224:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.extensionFactory=void 0;var extension_factory_1=__webpack_require__(52856);Object.defineProperty(exports,"extensionFactory",{enumerable:!0,get:function(){return extension_factory_1.extensionFactory}})},93020:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Harmony=void 0,__webpack_require__(74170);const extension_graph_1=__importDefault(__webpack_require__(30501)),exceptions_1=__webpack_require__(18302),utils_1=__webpack_require__(54222),config_1=__webpack_require__(48890),runtimes_1=__webpack_require__(32550),exceptions_2=__webpack_require__(26603);class Harmony{constructor(graph,config,runtimes,activeRuntime,depOptions){this.graph=graph,this.config=config,this.runtimes=runtimes,this.activeRuntime=activeRuntime,this.depOptions=depOptions,this.current=null}get extensions(){return this.graph.nodes}get extensionsIds(){return[...this.graph.nodes.keys()]}load(extensions){return __awaiter(this,void 0,void 0,function*(){return this.set(extensions)})}set(extensions){return __awaiter(this,void 0,void 0,function*(){this.graph.load(extensions);const extensionsToLoad=extensions.map(ext=>Reflect.getMetadata("harmony:name",ext)||ext.id||ext.name);yield this.graph.enrichRuntime(this.runtime,this.runtimes,()=>{});const subgraphs=this.graph.successorsSubgraph(extensionsToLoad);if(subgraphs){const executionOrder=subgraphs.toposort(!0);yield(0,utils_1.asyncForEach)(executionOrder,ext=>__awaiter(this,void 0,void 0,function*(){if(!this.runtime)throw new exceptions_2.RuntimeNotDefined(this.activeRuntime);yield this.runOne(ext,this.runtime)}))}})}runOne(extension,runtime){return __awaiter(this,void 0,void 0,function*(){if(extension.loaded)return;const instances=this.graph.getRuntimeDependencies(extension,runtime,this.depOptions).map(extension2=>extension2.instance);try{return extension.__run(instances,this,runtime)}catch(err){throw new exceptions_1.ExtensionLoadError(extension,err)}})}getDependencies(aspect){if(!this.runtime)throw new exceptions_2.RuntimeNotDefined(this.activeRuntime);return this.graph.getRuntimeDependencies(aspect,this.runtime,this.depOptions)}initExtension(id){this.current=id}endExtension(){this.current=null}get(id){const extension=this.graph.get(id);if(!extension||!extension.instance)throw new Error(`failed loading extension ${id}`);return extension.instance}resolveRuntime(name){return this.runtimes.get(name)}run(requireFn){return __awaiter(this,void 0,void 0,function*(){const runtime=this.resolveRuntime(this.activeRuntime);this.runtime=runtime;const defaultRequireFn=(aspect,runtime2)=>__awaiter(this,void 0,void 0,function*(){runtime2.getRuntimeFile(aspect.files)});yield this.graph.enrichRuntime(runtime,this.runtimes,requireFn||defaultRequireFn,this.depOptions);const executionOrder=this.graph.byExecutionOrder();yield(0,utils_1.asyncForEach)(executionOrder,ext=>__awaiter(this,void 0,void 0,function*(){yield this.runOne(ext,runtime)}))})}static load(aspects,runtime,globalConfig,options={}){return __awaiter(this,void 0,void 0,function*(){const aspectGraph=extension_graph_1.default.from(aspects,options),runtimes=yield runtimes_1.Runtimes.load(aspectGraph);return new Harmony(aspectGraph,config_1.Config.from(globalConfig),runtimes,runtime,options)})}}exports.Harmony=Harmony},70650:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AspectGraph=exports.RuntimeDefinition=exports.Aspect=exports.HarmonyError=exports.SlotRegistry=exports.Slot=exports.Harmony=exports.createHook=exports.provider=exports.hook=exports.HookRegistry=exports.register=exports.Extension=exports.ExtensionDecorator=void 0;var extension_1=__webpack_require__(1363);Object.defineProperty(exports,"ExtensionDecorator",{enumerable:!0,get:function(){return extension_1.ExtensionDecorator}}),Object.defineProperty(exports,"Extension",{enumerable:!0,get:function(){return extension_1.Extension}}),Object.defineProperty(exports,"register",{enumerable:!0,get:function(){return extension_1.register}}),Object.defineProperty(exports,"HookRegistry",{enumerable:!0,get:function(){return extension_1.HookRegistry}}),Object.defineProperty(exports,"hook",{enumerable:!0,get:function(){return extension_1.hook}}),Object.defineProperty(exports,"provider",{enumerable:!0,get:function(){return extension_1.provider}}),Object.defineProperty(exports,"createHook",{enumerable:!0,get:function(){return extension_1.createHook}});var harmony_1=__webpack_require__(93020);Object.defineProperty(exports,"Harmony",{enumerable:!0,get:function(){return harmony_1.Harmony}});var slots_1=__webpack_require__(82069);Object.defineProperty(exports,"Slot",{enumerable:!0,get:function(){return slots_1.Slot}}),Object.defineProperty(exports,"SlotRegistry",{enumerable:!0,get:function(){return slots_1.SlotRegistry}});var harmony_error_1=__webpack_require__(9772);Object.defineProperty(exports,"HarmonyError",{enumerable:!0,get:function(){return harmony_error_1.HarmonyError}});var aspect_1=__webpack_require__(39165);Object.defineProperty(exports,"Aspect",{enumerable:!0,get:function(){return aspect_1.Aspect}});var runtimes_1=__webpack_require__(9312);Object.defineProperty(exports,"RuntimeDefinition",{enumerable:!0,get:function(){return runtimes_1.RuntimeDefinition}});var extension_graph_1=__webpack_require__(30501);Object.defineProperty(exports,"AspectGraph",{enumerable:!0,get:function(){return __importDefault(extension_graph_1).default}})},26603:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RuntimeModuleError=exports.RuntimeNotDefined=void 0;var runtime_not_defined_1=__webpack_require__(25232);Object.defineProperty(exports,"RuntimeNotDefined",{enumerable:!0,get:function(){return runtime_not_defined_1.RuntimeNotDefined}});var runtime_module_error_1=__webpack_require__(40690);Object.defineProperty(exports,"RuntimeModuleError",{enumerable:!0,get:function(){return runtime_module_error_1.RuntimeModuleError}})},40690:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RuntimeModuleError=void 0;class RuntimeModuleError extends Error{constructor(err){super(`failed to load Harmony aspect with error message: ${err.message}`);this.err=err}get stack(){return this.err.stack}}exports.RuntimeModuleError=RuntimeModuleError},25232:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RuntimeNotDefined=void 0;class RuntimeNotDefined extends Error{constructor(name){super(`runtime: '${name}' was not defined by any aspect`)}}exports.RuntimeNotDefined=RuntimeNotDefined},9312:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RuntimeDefinition=exports.Runtimes=void 0;var runtimes_1=__webpack_require__(32550);Object.defineProperty(exports,"Runtimes",{enumerable:!0,get:function(){return runtimes_1.Runtimes}});var runtime_definition_1=__webpack_require__(19716);Object.defineProperty(exports,"RuntimeDefinition",{enumerable:!0,get:function(){return runtime_definition_1.RuntimeDefinition}})},19716:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RuntimeDefinition=void 0;const DEFAULT_PREDICATE=(filePath,name)=>filePath.includes(`.${name}.`);class RuntimeDefinition{constructor(name,filePredicate=DEFAULT_PREDICATE){this.name=name,this.filePredicate=filePredicate}getRuntimeFile(paths){return paths.find(path=>this.filePredicate(path,this.name))}require(file){}static create(def){return new RuntimeDefinition(def.name)}}exports.RuntimeDefinition=RuntimeDefinition},32550:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Runtimes=void 0;const exceptions_1=__webpack_require__(26603);class Runtimes{constructor(runtimeDefinition){this.runtimeDefinition=runtimeDefinition}add(runtime){return this.runtimeDefinition[runtime.name]=runtime,this}get(name){if(!this.runtimeDefinition[name])throw new exceptions_1.RuntimeNotDefined(name);return this.runtimeDefinition[name]}dispose(){}static load(graph){return __awaiter(this,void 0,void 0,function*(){const runtimes={};return graph.extensions.forEach(manifest=>{!manifest.declareRuntime||(runtimes[manifest.declareRuntime.name]=manifest.declareRuntime)}),new Runtimes(runtimes)})}}exports.Runtimes=Runtimes},82069:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SlotRegistry=exports.Slot=void 0;var slot_1=__webpack_require__(23398);Object.defineProperty(exports,"Slot",{enumerable:!0,get:function(){return slot_1.Slot}});var registry_1=__webpack_require__(44169);Object.defineProperty(exports,"SlotRegistry",{enumerable:!0,get:function(){return registry_1.SlotRegistry}})},44169:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SlotRegistry=void 0;class SlotRegistry{constructor(registerFn,map=new Map){this.registerFn=registerFn,this.map=map}get(id){return this.map.get(id)}toArray(){return Array.from(this.map.entries())}values(){return Array.from(this.map.values())}register(value){const id=this.registerFn();this.map.set(id,value)}}exports.SlotRegistry=SlotRegistry},23398:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Slot=void 0;const registry_1=__webpack_require__(44169);class Slot{static withType(){return registerFn=>new registry_1.SlotRegistry(registerFn)}}exports.Slot=Slot},99601:function(__unused_webpack_module,exports){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.asyncForEach=void 0;function asyncForEach(array,callback){return __awaiter(this,void 0,void 0,function*(){for(let index=0;index<array.length;index+=1)yield callback(array[index],index,array)})}exports.asyncForEach=asyncForEach},54222:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.asyncForEach=void 0;var async_for_each_1=__webpack_require__(99601);Object.defineProperty(exports,"asyncForEach",{enumerable:!0,get:function(){return async_for_each_1.asyncForEach}})},87416:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.VERSION_DELIMITER=void 0;const decamelize_1=__importDefault(__webpack_require__(121)),path=__importStar(__webpack_require__(62005)),semver=__importStar(__webpack_require__(24501)),lodash_1=__webpack_require__(34776),component_version_1=__webpack_require__(32454),is_valid_id_chunk_1=__importDefault(__webpack_require__(13353)),is_valid_scope_name_1=__importDefault(__webpack_require__(70559)),exceptions_1=__webpack_require__(5836);exports.VERSION_DELIMITER="@";class BitId{constructor({scope,box,name,version}){if(!name)throw new exceptions_1.InvalidName(name);this.scope=scope||null,this.box=void 0,this.name=box?`${box}/${name}`:name,this.version=version||void 0,Object.freeze(this)}clone(){return new BitId(this)}changeScope(newScope){return new BitId({scope:newScope,name:this.name,version:this.version})}changeVersion(newVersion){return new BitId({scope:this.scope,name:this.name,version:newVersion})}isLocal(scopeName){return!this.scope||Boolean(scopeName&&scopeName===this.scope)}getVersion(){return(0,component_version_1.versionParser)(this.version)}hasVersion(){return Boolean(this.version&&this.version!==component_version_1.LATEST_VERSION)}hasScope(){return Boolean(this.scope)}hasSameName(id){return this.name===id.name}hasSameScope(id){return this.hasScope()&&id.hasScope()?this.scope===id.scope:!this.hasScope()&&!id.hasScope()}hasSameVersion(id){return this.hasVersion()&&id.hasVersion()?this.version===id.version:!this.hasVersion()&&!id.hasVersion()}toString(ignoreScope=!1,ignoreVersion=!1){const{name,version}=this,scope=this.scope,componentStr=ignoreScope||!scope?name:[scope,name].join("/");return ignoreVersion||!this.hasVersion()?componentStr:componentStr.concat(`${exports.VERSION_DELIMITER}${version}`)}toStringWithoutScope(){return this.toString(!0)}toStringWithoutVersion(){return this.toString(!1,!0)}toStringWithoutScopeAndVersion(){return this.toString(!0,!0)}isEqual(bitId){return this.hasSameName(bitId)&&this.hasSameScope(bitId)&&this.hasSameVersion(bitId)}isEqualWithoutVersion(bitId){return this.hasSameName(bitId)&&this.hasSameScope(bitId)}isEqualWithoutScopeAndVersion(bitId){return this.hasSameName(bitId)}serialize(){const obj={scope:this.scope,name:this.name,version:this.version};return this.hasVersion()||delete obj.version,this.hasScope()||delete obj.scope,obj}toFullPath(){if(!this.scope||!this.version)throw new Error("BitId.toFullPath is unable to generate a path without a scope or a version");return path.join(this.name,this.scope,this.version)}isVersionSnap(){return!(0,component_version_1.isTag)(this.version)}getVersionPreReleaseData(){return this.version?semver.prerelease(this.version):null}static getStringWithoutVersion(id){const splitted=id.split(exports.VERSION_DELIMITER);let res=splitted[0];return id.startsWith(exports.VERSION_DELIMITER)&&(res=`${exports.VERSION_DELIMITER}${splitted[1]}`),res}static getVersionOnlyFromString(id){return id.split(exports.VERSION_DELIMITER)[1]}static parse(id,hasScope=!0,version=component_version_1.LATEST_VERSION){if(typeof id!="string")throw new TypeError(`BitId.parse expects to get "id" as a string, instead, got ${typeof id}`);if(id.includes(exports.VERSION_DELIMITER)&&id.lastIndexOf(exports.VERSION_DELIMITER)>0){const[newId,newVersion]=id.split(exports.VERSION_DELIMITER);id=newId,version=newVersion}const getScopeAndName=()=>hasScope?BitId.getScopeAndName(id):{scope:void 0,name:id},{scope,name}=getScopeAndName();if(!(0,is_valid_id_chunk_1.default)(name))throw new exceptions_1.InvalidName(name);if(scope&&!(0,is_valid_scope_name_1.default)(scope))throw new exceptions_1.InvalidScopeName(scope,id);return new BitId({scope,name,version})}static getScopeAndName(id){const delimiterIndex=id.indexOf("/");if(delimiterIndex<0)throw new exceptions_1.InvalidBitId(id);const scope=id.substring(0,delimiterIndex),name=id.substring(delimiterIndex+1);return{scope,name}}static parseObsolete(id,version=component_version_1.LATEST_VERSION){if(id.includes(exports.VERSION_DELIMITER)){const[newId,newVersion]=id.split(exports.VERSION_DELIMITER);id=newId,version=newVersion}const idSplit=id.split("/");if(idSplit.length===3){const[scope,box,name]=idSplit;if(!(0,is_valid_id_chunk_1.default)(name,!1)||!(0,is_valid_id_chunk_1.default)(box,!1)||!(0,is_valid_scope_name_1.default)(scope))throw new exceptions_1.InvalidIdChunk(`${scope}/${box}/${name}`);return new BitId({scope,box,name,version})}if(idSplit.length===2){const[box,name]=idSplit;if(!(0,is_valid_id_chunk_1.default)(name,!1)||!(0,is_valid_id_chunk_1.default)(box,!1))throw new exceptions_1.InvalidIdChunk(`${box}/${name}`);return new BitId({box,name,version})}if(idSplit.length===1){const[name]=idSplit;if(!(0,is_valid_id_chunk_1.default)(name))throw new exceptions_1.InvalidIdChunk(name);return new BitId({name,version})}throw new exceptions_1.InvalidBitId(id)}static parseBackwardCompatible(id){return typeof id=="string"?BitId.parseObsolete(id):new BitId(id)}static getValidScopeName(scope){let cleanName=scope.toLowerCase().split("").map(char=>/^[$\-_!.a-z0-9]+$/.test(char)?char:"").join("");const nameSplitByDot=cleanName.split(".");if(nameSplitByDot.length>1&&(cleanName=`${(0,lodash_1.head)(nameSplitByDot)}.${(0,lodash_1.tail)(nameSplitByDot).join("")}`),!cleanName)throw new Error("scope name created by directory name have to contains at least one character or number");return cleanName}static getValidIdChunk(chunk){return(0,is_valid_id_chunk_1.default)(chunk)||(chunk=chunk.replace(/\./g,""),chunk=chunk.replace(/ /g,"-"),chunk=(0,decamelize_1.default)(chunk,"-")),chunk}static getValidBitId(box,name){return new BitId({name:BitId.getValidIdChunk(name),box:box?BitId.getValidIdChunk(box):void 0})}static isValidVersion(version){return(0,component_version_1.isTag)(version)||(0,component_version_1.isHash)(version)}static isValidSemver(version){return Boolean(semver.valid(version))}}exports.default=BitId},989:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const lodash_1=__webpack_require__(34776),component_version_1=__webpack_require__(32454),bit_id_1=__importDefault(__webpack_require__(87416));class BitIds extends Array{serialize(){return this.map(bitId=>bitId.toString())}has(bitId){return Boolean(this.search(bitId))}hasWithoutVersion(bitId){return Boolean(this.searchWithoutVersion(bitId))}hasWithoutScope(bitId){return Boolean(this.searchWithoutScope(bitId))}hasWithoutScopeAndVersion(bitId){return Boolean(this.searchWithoutScopeAndVersion(bitId))}hasWithoutScopeAndVersionAsString(bitIdStr){return Boolean(this.find(id=>id.name===bitIdStr))}search(bitId){return this.find(id=>id.hasSameName(bitId)&&id.hasSameScope(bitId)&&id.hasSameVersion(bitId))}searchWithoutVersion(bitId){return this.find(id=>id.hasSameName(bitId)&&id.hasSameScope(bitId))}searchWithoutScopeAndVersion(bitId){return this.find(id=>id.hasSameName(bitId))}searchWithoutScope(bitId){return this.find(id=>id.hasSameName(bitId)&&id.hasSameVersion(bitId))}searchStrWithoutVersion(idStr){return this.find(id=>id.toStringWithoutVersion()===idStr)}searchStrWithoutScopeAndVersion(idStr){return this.find(id=>id.toStringWithoutScopeAndVersion()===idStr)}filterExact(bitId){return this.filter(id=>id.hasSameName(bitId)&&id.hasSameScope(bitId)&&id.hasSameVersion(bitId))}filterWithoutVersion(bitId){return this.filter(id=>id.hasSameName(bitId)&&id.hasSameScope(bitId))}filterWithoutScopeAndVersion(bitId){return this.filter(id=>id.hasSameName(bitId))}removeIfExist(bitId){return BitIds.fromArray(this.filter(id=>!id.isEqual(bitId)))}difference(bitIds){return BitIds.fromArray(this.filter(id=>!bitIds.search(id)))}removeIfExistWithoutVersion(bitId){return BitIds.fromArray(this.filter(id=>!id.isEqualWithoutVersion(bitId)))}removeMultipleIfExistWithoutVersion(bitIds){return BitIds.fromArray(this.filter(id=>!bitIds.hasWithoutVersion(id)))}toObject(){return this.reduce((acc,bitId)=>(acc[bitId.toString()]=bitId,acc),{})}static deserialize(array=[]){return new BitIds(...array.map(id=>bit_id_1.default.parse(id,!0)))}static deserializeObsolete(array=[]){return new BitIds(...array.map(id=>bit_id_1.default.parseObsolete(id)))}toString(){return this.map(id=>id.toString()).join(", ")}toGroupByIdWithoutVersion(){return this.reduce((acc,current)=>{const idStrWithoutVer=current.toStringWithoutVersion();return acc[idStrWithoutVer]?acc[idStrWithoutVer].push(current):acc[idStrWithoutVer]=new BitIds(current),acc},{})}toGroupByScopeName(idsWithDefaultScope){return this.reduce((acc,current)=>{const scopeName=(()=>{if(current.scope)return current.scope;const idWithDefaultScope=idsWithDefaultScope.searchWithoutScopeAndVersion(current);return idWithDefaultScope?idWithDefaultScope.scope:null})();if(!scopeName)throw new Error(`toGroupByScopeName() expect ids to have a scope name, got ${current.toString()}`);return acc[scopeName]?acc[scopeName].push(current):acc[scopeName]=new BitIds(current),acc},{})}findDuplicationsIgnoreVersion(){const duplications={};return this.forEach(id=>{const sameIds=this.filterWithoutVersion(id);sameIds.length>1&&(duplications[id.toStringWithoutVersion()]=sameIds)}),duplications}add(bitIds){bitIds.forEach(bitId=>{this.search(bitId)||this.push(bitId)})}static fromObject(dependencies){const array=[];return(0,lodash_1.forEach)(dependencies,(version,id)=>{array.push(bit_id_1.default.parse(id,!0,version))}),new BitIds(...array)}static fromArray(ids){const bitIds=new BitIds;return ids.forEach(id=>bitIds.push(id)),bitIds}static uniqFromArray(bitIds){const uniq=(0,lodash_1.uniqBy)(bitIds,id=>id.toString());return BitIds.fromArray(uniq)}throwForDuplicationIgnoreVersion(){this.forEach(bitId=>{const found=this.filterWithoutVersion(bitId);if(found.length>1)throw new Error(`bitIds has "${bitId.toStringWithoutVersion()}" duplicated as following:
|
10
|
-
${found.map(id=>id.toString()).join(`
|
11
|
-
`)}`)})}toVersionLatest(){return BitIds.uniqFromArray(this.map(id=>id.changeVersion(component_version_1.LATEST_VERSION)))}clone(){const cloneIds=this.map(id=>id.clone());return new BitIds(...cloneIds)}}exports.default=BitIds},5836:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidScopeNameFromRemote=exports.InvalidScopeName=exports.InvalidName=exports.InvalidIdChunk=exports.InvalidBitId=void 0;const invalid_bit_id_1=__importDefault(__webpack_require__(60809));exports.InvalidBitId=invalid_bit_id_1.default;const invalid_id_chunk_1=__importDefault(__webpack_require__(64288));exports.InvalidIdChunk=invalid_id_chunk_1.default;const invalid_name_1=__importDefault(__webpack_require__(86394));exports.InvalidName=invalid_name_1.default;const invalid_scope_name_1=__importDefault(__webpack_require__(71191));exports.InvalidScopeName=invalid_scope_name_1.default;const invalid_scope_name_from_remote_1=__importDefault(__webpack_require__(20350));exports.InvalidScopeNameFromRemote=invalid_scope_name_from_remote_1.default},60809:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(39567);class InvalidBitId extends bit_error_1.BitError{constructor(id){super(`error: component ID "${id}" is invalid, please use the following format: [scope]/<name>`)}}exports.default=InvalidBitId},64288:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(39567);class InvalidIdChunk extends bit_error_1.BitError{constructor(id){super(`error: "${id}" is invalid, component IDs can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!"]`)}}exports.default=InvalidIdChunk},86394:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(39567);class InvalidName extends bit_error_1.BitError{constructor(componentName){super(`error: "${componentName}" is invalid, component names can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!", "/"]`)}}exports.default=InvalidName},20350:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(39567);class InvalidScopeNameFromRemote extends bit_error_1.BitError{constructor(scopeName){super(`cannot find scope '${scopeName}'.
|
12
|
-
if you are targeting a self-hosted scope, please ensure the scope is configured in your remotes (via "bit remote" command) and that the scope name is correct.
|
13
|
-
if this is a scope on bit.cloud please add the organization name before the scope (yourOrg.some-scope-name)`);this.scopeName=scopeName}}exports.default=InvalidScopeNameFromRemote},71191:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(39567);class InvalidScopeName extends bit_error_1.BitError{constructor(scopeName,id,variant){const variantStr=variant?`configured in variant "${variant}" `:"";super(`error: "${id||scopeName}" ${variantStr}is invalid, component scope names can only contain alphanumeric, lowercase characters, and the following ["-", "_", "$", "!"]`)}}exports.default=InvalidScopeName},9017:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.InvalidScopeNameFromRemote=exports.InvalidScopeName=exports.InvalidName=exports.isValidIdChunk=exports.isValidScopeName=exports.VERSION_DELIMITER=exports.BitIds=exports.BitId=void 0;const bit_id_1=__importStar(__webpack_require__(87416));exports.BitId=bit_id_1.default,Object.defineProperty(exports,"VERSION_DELIMITER",{enumerable:!0,get:function(){return bit_id_1.VERSION_DELIMITER}});const bit_ids_1=__importDefault(__webpack_require__(989));exports.BitIds=bit_ids_1.default;const exceptions_1=__webpack_require__(5836);Object.defineProperty(exports,"InvalidName",{enumerable:!0,get:function(){return exceptions_1.InvalidName}}),Object.defineProperty(exports,"InvalidScopeName",{enumerable:!0,get:function(){return exceptions_1.InvalidScopeName}}),Object.defineProperty(exports,"InvalidScopeNameFromRemote",{enumerable:!0,get:function(){return exceptions_1.InvalidScopeNameFromRemote}});const is_valid_scope_name_1=__importDefault(__webpack_require__(70559));exports.isValidScopeName=is_valid_scope_name_1.default;const is_valid_id_chunk_1=__importDefault(__webpack_require__(13353));exports.isValidIdChunk=is_valid_id_chunk_1.default},13353:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const validationRegExp=/^[-_a-z0-9/]+$/,validationRegExpDisallowSlash=/^[-_a-z0-9]+$/;function isValidIdChunk(val,allowSlash=!0){return typeof val!="string"||val.includes("//")?!1:(allowSlash?validationRegExp:validationRegExpDisallowSlash).test(val)}exports.default=isValidIdChunk},70559:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const validationRegExp=/^[$\-_!a-z0-9]+[.]?[$\-_!a-z0-9]+$/;function isValidScopeName(val){return typeof val!="string"?!1:validationRegExp.test(val)}exports.default=isValidScopeName},26551:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkModules=exports.PreviewModules=exports.PREVIEW_MODULES=void 0;var preview_modules_1=__webpack_require__(12236);Object.defineProperty(exports,"PREVIEW_MODULES",{enumerable:!0,get:function(){return preview_modules_1.PREVIEW_MODULES}}),Object.defineProperty(exports,"PreviewModules",{enumerable:!0,get:function(){return preview_modules_1.PreviewModules}}),Object.defineProperty(exports,"linkModules",{enumerable:!0,get:function(){return preview_modules_1.linkModules}})},12236:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkModules=exports.PREVIEW_MODULES=exports.PreviewModules=void 0;class PreviewModules extends Map{constructor(){super(...arguments);this.onSet=new Set}set(id,preview){return super.set(id,preview),this.onSet.forEach(callback=>callback()),this}loadComponentPreviews(compId,previews){Object.entries(previews).forEach(([previewName,moduleFile])=>{const preview=this.get(previewName);!preview||(preview.componentMap[compId]=moduleFile)})}}exports.PreviewModules=PreviewModules;function getPreviewModules(){return typeof window<"u"?(window.__bit_preview_modules||(window.__bit_preview_modules=new PreviewModules),window.__bit_preview_modules):new PreviewModules}exports.PREVIEW_MODULES=getPreviewModules();function linkModules(previewName,previewModule){exports.PREVIEW_MODULES.set(previewName,previewModule)}exports.linkModules=linkModules},56715:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClickInsideAnIframeEvent=void 0;function _pubsub(){const data=__webpack_require__(18430);return _pubsub=function(){return data},data}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class ClickInsideAnIframeEventData{constructor(clickEvent){this.clickEvent=clickEvent}}class ClickInsideAnIframeEvent extends _pubsub().BitBaseEvent{constructor(timestamp=Date.now(),clickEvent){super(ClickInsideAnIframeEvent.TYPE,"0.0.1",timestamp,new ClickInsideAnIframeEventData(clickEvent));this.timestamp=timestamp,this.clickEvent=clickEvent}}exports.ClickInsideAnIframeEvent=ClickInsideAnIframeEvent,_defineProperty(ClickInsideAnIframeEvent,"TYPE","click-inside-an-iframe")},15618:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _clickInsideAnIframe=__webpack_require__(56715);Object.keys(_clickInsideAnIframe).forEach(function(key){key==="default"||key==="__esModule"||key in exports&&exports[key]===_clickInsideAnIframe[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function(){return _clickInsideAnIframe[key]}})})},98719:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BundlingStrategyNotFound=void 0;class BundlingStrategyNotFound extends Error{constructor(strategyName){super(`bundling strategy with name ${strategyName} was not found`);this.strategyName=strategyName}}exports.BundlingStrategyNotFound=BundlingStrategyNotFound},60722:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BundlingStrategyNotFound",{enumerable:!0,get:function(){return _bundlingStrategyNotFound().BundlingStrategyNotFound}}),Object.defineProperty(exports,"PreviewArtifactNotFound",{enumerable:!0,get:function(){return _previewArtifactNotFound().PreviewArtifactNotFound}}),Object.defineProperty(exports,"PreviewNotFound",{enumerable:!0,get:function(){return _previewNotFound().PreviewNotFound}}),Object.defineProperty(exports,"PreviewOutputFileNotFound",{enumerable:!0,get:function(){return _previewOutputFileNotFound().PreviewOutputFileNotFound}});function _previewNotFound(){const data=__webpack_require__(86789);return _previewNotFound=function(){return data},data}function _previewArtifactNotFound(){const data=__webpack_require__(58200);return _previewArtifactNotFound=function(){return data},data}function _bundlingStrategyNotFound(){const data=__webpack_require__(98719);return _bundlingStrategyNotFound=function(){return data},data}function _previewOutputFileNotFound(){const data=__webpack_require__(85183);return _previewOutputFileNotFound=function(){return data},data}},58200:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreviewArtifactNotFound=void 0;function _bitError(){const data=__webpack_require__(39567);return _bitError=function(){return data},data}class PreviewArtifactNotFound extends _bitError().BitError{constructor(componentId){super(`preview for component ${componentId.toString()} was not found`)}}exports.PreviewArtifactNotFound=PreviewArtifactNotFound},86789:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreviewNotFound=void 0;class PreviewNotFound extends Error{constructor(name){super(`Preview for name: ${name} was not found`)}}exports.PreviewNotFound=PreviewNotFound},85183:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreviewOutputFileNotFound=void 0;function _bitError(){const data=__webpack_require__(39567);return _bitError=function(){return data},data}class PreviewOutputFileNotFound extends _bitError().BitError{constructor(componentId,filePath){super(`preview output file for component: "${componentId.toString()}" was not found in the path: "${filePath}".
|
14
|
-
|
15
|
-
This is usually a result of an error during the bundling process.
|
16
|
-
The error might be an error of another component that uses the same env.
|
17
|
-
Run "bit build" with "--dev" to see more info.
|
18
|
-
Run "bit envs" to see other components that uses the same env`)}}exports.PreviewOutputFileNotFound=PreviewOutputFileNotFound},10374:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fetchComponentAspects=fetchComponentAspects;function _graphqlRequest(){const data=__webpack_require__(1238);return _graphqlRequest=function(){return data},data}const GQL_SERVER="/graphql",GET_COMPONENT_ASPECTS=(0,_graphqlRequest().gql)`
|
19
|
-
query getComponentAspects($id: String!) {
|
20
|
-
getHost {
|
21
|
-
id
|
22
|
-
get(id: $id) {
|
23
|
-
aspects {
|
24
|
-
id
|
25
|
-
}
|
26
|
-
}
|
27
|
-
}
|
28
|
-
}
|
29
|
-
`;async function fetchComponentAspects(componentId){try{return(await(0,_graphqlRequest().request)(GQL_SERVER,GET_COMPONENT_ASPECTS,{id:componentId.toString()})).getHost.get.aspects.map(x=>x.id)}catch(err){console.error(`[gql] error on "getComponentAspects" - "${err.toString()}"`);return}}},64770:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadLink=loadLink,exports.loadScript=loadScript;function loadScript({src}){return new Promise((resolve,reject)=>{const script=document.createElement("script");script.setAttribute("defer","defer"),script.src=src,script.onload=()=>resolve(),script.onerror=(message,_,_1,_2,error)=>reject(error||new Error(`[preview.preview] failed to load script: ${message}`)),document.head.appendChild(script)})}function loadLink({href}){return new Promise((resolve,reject)=>{const link=document.createElement("link");href.endsWith(".css")&&link.setAttribute("rel","stylesheet"),link.setAttribute("href",href),link.onload=()=>resolve(),link.onerror=(message,_,_1,_2,error)=>reject(error||new Error(`[preview.preview] failed to load link: ${message}`)),document.head.appendChild(link)})}},45190:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"PREVIEW_MODULES",{enumerable:!0,get:function(){return _previewModules().PREVIEW_MODULES}}),Object.defineProperty(exports,"PreviewModules",{enumerable:!0,get:function(){return _previewModules().PreviewModules}}),Object.defineProperty(exports,"linkModules",{enumerable:!0,get:function(){return _previewModules().linkModules}});function _previewModules(){const data=__webpack_require__(26551);return _previewModules=function(){return data},data}},99192:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.PreviewRuntime=exports.PreviewAspect=void 0;function _harmony(){const data=__webpack_require__(70650);return _harmony=function(){return data},data}const PreviewRuntime=exports.PreviewRuntime=new(_harmony()).RuntimeDefinition("preview"),PreviewAspect=exports.PreviewAspect=_harmony().Aspect.create({id:"teambit.preview/preview",dependencies:[],defaultConfig:{},declareRuntime:PreviewRuntime});var _default=exports.default=PreviewAspect},16634:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__=void 0,Object.defineProperty(exports,"Bu",{enumerable:!0,get:function(){return _previewModules().linkModules}});function _pubsub(){const data=__webpack_require__(18430);return _pubsub=function(){return data},data}function _harmony(){const data=__webpack_require__(70650);return _harmony=function(){return data},data}function _componentId(){const data=__webpack_require__(45882);return _componentId=function(){return data},data}function _crossFetch(){const data=_interopRequireDefault(__webpack_require__(77699));return _crossFetch=function(){return data},data}function _memoizee(){const data=_interopRequireDefault(__webpack_require__(56520));return _memoizee=function(){return data},data}function _lodash(){const data=__webpack_require__(34776);return _lodash=function(){return data},data}function _exceptions(){const data=__webpack_require__(60722);return _exceptions=function(){return data},data}function _preview(){const data=__webpack_require__(99192);return _preview=function(){return data},data}function _events(){const data=__webpack_require__(15618);return _events=function(){return data},data}function _renderingContext(){const data=__webpack_require__(74668);return _renderingContext=function(){return data},data}function _fetchComponentAspects(){const data=__webpack_require__(10374);return _fetchComponentAspects=function(){return data},data}function _previewModules(){const data=__webpack_require__(45190);return _previewModules=function(){return data},data}function _htmlUtils(){const data=__webpack_require__(64770);return _htmlUtils=function(){return data},data}function _sizeEvent(){const data=__webpack_require__(47140);return _sizeEvent=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class PreviewPreview{constructor(pubsub,previewSlot,renderingContextSlot){this.pubsub=pubsub,this.previewSlot=previewSlot,this.renderingContextSlot=renderingContextSlot,_defineProperty(this,"isDev",!1),_defineProperty(this,"_setupPromise",void 0),_defineProperty(this,"setup",()=>this.isReady()?Promise.resolve():(this._setupPromise??=new Promise(resolve=>{_previewModules().PREVIEW_MODULES.onSet.add(()=>{this.isReady()&&resolve()})}),this._setupPromise)),_defineProperty(this,"render",async rootExt=>{window.document.body.style.width="fit-content";const{previewName,componentId,envId}=this.getLocation(),name=previewName||this.getDefault();rootExt&&(this.isDev=rootExt==="teambit.workspace/workspace");const preview=this.getPreview(name);if(!preview||!componentId)throw new(_exceptions()).PreviewNotFound(previewName);const includesAll=await Promise.all((preview.include||[]).map(async inclPreviewName=>{const includedPreview=this.getPreview(inclPreviewName);if(!includedPreview)return;const inclPreviewModule=await this.getPreviewModule(inclPreviewName,componentId);return includedPreview.selectPreviewModel?.(componentId.fullName,inclPreviewModule)})),query=this.getQuery(),includes=this.getParam(query,"onlyOverview")==="true"?[]:includesAll.filter(module=>!!module).map(module=>{if(!module.default||!(0,_lodash().isObject)(module.default))return module;const keysWithoutDefault=Object.keys(module).filter(key=>key!=="default"),defaultKeys=Object.keys(module.default);return(0,_lodash().intersection)(keysWithoutDefault,defaultKeys).length===defaultKeys.length?module.default:module}),componentAspects=this.isDev?await this.getComponentAspects(componentId.toString()):void 0,previewModule=await this.getPreviewModule(name,componentId),render=preview.render(componentId,envId||"",previewModule,includes,this.getRenderingContext(componentAspects));return this.reportSize(),this.setViewport(),this.setFullScreen(),render}),_defineProperty(this,"getComponentAspects",(0,_memoizee().default)(_fetchComponentAspects().fetchComponentAspects,{max:100,maxAge:12*60*60*1e3})),this.registerClickPubSub()}registerClickPubSub(){window.addEventListener("click",e=>{const timestamp=Date.now(),clickEvent=Object.assign({},e);this.pubsub.pub(_preview().PreviewAspect.id,new(_events()).ClickInsideAnIframeEvent(timestamp,clickEvent))})}isReady(){const{previewName}=this.getLocation(),name=previewName||this.getDefault();if(!_previewModules().PREVIEW_MODULES.has(name))return!1;const preview=this.getPreview(name);return!(!preview||!(preview.include?.every(included=>_previewModules().PREVIEW_MODULES.has(included))??!0))}setFullScreen(){const query=this.getQuery();if(!this.getParam(query,"fullscreen"))return;const root=window.document.getElementById("root");root&&(root.style.height="100vh")}setViewport(){const query=this.getQuery(),viewPort=this.getParam(query,"viewport");if(!viewPort){window.document.body.style.width="100%";return}window.document.body.style.maxWidth=`${viewPort}px`}reportSize(){if(!window?.parent||!window?.document)return;const sendPubsubEvent=()=>{this.pubsub.pub(_preview().PreviewAspect.id,new(_sizeEvent()).SizeEvent({width:window.document.body.offsetWidth,height:window.document.body.offsetHeight}))};window.document.body.addEventListener("resize",(0,_lodash().debounce)(sendPubsubEvent,300));let counter=0;const interval=setInterval(()=>{if(counter+=1,counter>10){clearInterval(interval);return}this.pubsub.pub(_preview().PreviewAspect.id,new(_sizeEvent()).SizeEvent({width:window.document.body.offsetWidth,height:window.document.body.offsetHeight}))},200)}async getPreviewModule(previewName,id){const compShortId=id.fullName,relevantModel=_previewModules().PREVIEW_MODULES.get(previewName);if(!relevantModel)throw new Error(`[preview.preview] missing preview "${previewName}"`);if(relevantModel.componentMap[compShortId])return relevantModel;const componentPreviews=await this.fetchComponentPreview(id,previewName);_previewModules().PREVIEW_MODULES.loadComponentPreviews(compShortId,componentPreviews);const component=componentPreviews[previewName],metadata=componentPreviews[`${previewName}_metadata`];return{modulesMap:relevantModel.modulesMap,componentMap:{[id.fullName]:component},componentMapMetadata:{[id.fullName]:metadata}}}async fetchComponentPreview(id,name){let previewFile;const allFiles=await this.fetchComponentPreviewFiles(id,name);return allFiles===null?{}:(await Promise.all(allFiles.map(file=>{if(file.endsWith("-preview.js")){previewFile=file;return}return this.addComponentFileElement(id,file)})),previewFile?this.loadPreviewScript(id,name,previewFile):{})}addComponentFileElement(id,previewBundleFileName){if(previewBundleFileName.endsWith(".js"))return this.addComponentFileScriptElement(id,previewBundleFileName);this.addComponentFileLinkElement(id,previewBundleFileName).catch(err=>{throw new Error(`[preview.preview] failed loading asset "${previewBundleFileName}". Error - "${err?.toString()}"`)})}async fetchComponentPreviewFiles(id,previewName){const previewAssetsRoute="~aspect/preview-assets",url=`/api/${id.toString()}/${previewAssetsRoute}`,res=await(0,_crossFetch().default)(url);if(res.status>=400)throw new(_exceptions()).PreviewNotFound(previewName);const parsed=await res.json();if(parsed.isBundledWithEnv)return null;if(!parsed.files||!parsed.files.length)throw new(_exceptions()).PreviewNotFound(previewName);return parsed.files}addComponentFileScriptElement(id,previewBundleFileName){const previewRoute="~aspect/component-preview",src=`/api/${id.toString()}/${previewRoute}/${previewBundleFileName}`;return(0,_htmlUtils().loadScript)({src})}addComponentFileLinkElement(id,previewBundleFileName){const href=`/api/${id.toString()}/~aspect/component-preview/${previewBundleFileName}`;return(0,_htmlUtils().loadLink)({href})}async loadPreviewScript(id,previewName,previewBundleFileName){const previewRoute="~aspect/component-preview",src=`/api/${id.toString()}/${previewRoute}/${previewBundleFileName}`;await(0,_htmlUtils().loadScript)({src});const globalId=`${id.toStringWithoutVersion()}-preview`,componentPreview=window[globalId];if(!componentPreview)throw new(_exceptions()).PreviewNotFound(previewName);return componentPreview}registerPreview(preview){return this.previewSlot.register(preview),this}getRenderingContext(aspectsFilter){return new(_renderingContext()).RenderingContext(this.renderingContextSlot,{aspectsFilter})}registerRenderContext(renderContext){return this.renderingContextSlot.register(renderContext),this}getDefault(){const previews=this.previewSlot.values();return previews.find(previewCandidate=>previewCandidate.default)?.name||previews[0].name}getPreview(previewName){return this.previewSlot.values().find(previewCandidate=>previewCandidate.name===previewName)}getParam(query,param){return new URLSearchParams(query).get(param)}getQuery(){const withoutHash=window.location.hash.substring(1),[,after]=withoutHash.split("?");return after}getLocation(){const withoutHash=window.location.hash.substring(1),[before,after]=withoutHash.split("?");return{previewName:this.getParam(after,"preview"),envId:this.getParam(after,"env"),componentId:_componentId().ComponentID.tryFromString(before)}}static async provider([pubsub],config,[previewSlot,renderingContextSlot]){const preview=new PreviewPreview(pubsub,previewSlot,renderingContextSlot);return window.addEventListener("hashchange",()=>{preview.render()}),preview}}__webpack_unused_export__=PreviewPreview,_defineProperty(PreviewPreview,"runtime",_preview().PreviewRuntime),_defineProperty(PreviewPreview,"dependencies",[_pubsub().PubsubAspect]),_defineProperty(PreviewPreview,"slots",[_harmony().Slot.withType(),_harmony().Slot.withType()]),_preview().PreviewAspect.addRuntime(PreviewPreview)},74668:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderingContext=void 0;class RenderingContext{constructor(contexts,options={}){this.contexts=contexts,this.options=options}get(aspectId){return this.contexts.get(aspectId)?.(this.options)}}exports.RenderingContext=RenderingContext},47140:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SizeEvent=void 0;function _pubsub(){const data=__webpack_require__(18430);return _pubsub=function(){return data},data}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return typeof i=="symbol"?i:i+""}function _toPrimitive(t,r){if(typeof t!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var i=e.call(t,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class SizeEvent extends _pubsub().BitBaseEvent{constructor(sizeEvent){super(SizeEvent.TYPE,"0.0.1",new Date().getTime(),sizeEvent)}}exports.SizeEvent=SizeEvent,_defineProperty(SizeEvent,"TYPE","preview-size")},68325:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitBaseEvent=void 0;class BitBaseEvent{constructor(type,version,timestamp,data){this.type=type,this.version=version,this.timestamp=timestamp,this.data=data}}exports.BitBaseEvent=BitBaseEvent},18430:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BitBaseEvent",{enumerable:!0,get:function(){return _bitBaseEvent().BitBaseEvent}}),Object.defineProperty(exports,"PubsubAspect",{enumerable:!0,get:function(){return _pubsub().PubsubAspect}}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _pubsub().PubsubAspect}}),Object.defineProperty(exports,"usePubSub",{enumerable:!0,get:function(){return _pubsubContext().usePubSub}}),Object.defineProperty(exports,"usePubSubIframe",{enumerable:!0,get:function(){return _pubsubContext().usePubSubIframe}});function _pubsub(){const data=__webpack_require__(78629);return _pubsub=function(){return data},data}function _bitBaseEvent(){const data=__webpack_require__(68325);return _bitBaseEvent=function(){return data},data}function _pubsubContext(){const data=__webpack_require__(60221);return _pubsubContext=function(){return data},data}},60221:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createProvider=createProvider,exports.pubsubRegistry=void 0,exports.usePubSub=usePubSub,exports.usePubSubIframe=usePubSubIframe;function _react(){const data=_interopRequireWildcard(__webpack_require__(59496));return _react=function(){return data},data}function _getRequireWildcardCache(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e2){return e2?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}const pubsubRegistry=exports.pubsubRegistry=(0,_react().createContext)(void 0);function createProvider(pubSubContext){return({children})=>_react().default.createElement(pubsubRegistry.Provider,{value:pubSubContext},children)}function usePubSub(){return(0,_react().useContext)(pubsubRegistry)}function usePubSubIframe(ref){const pubSub=usePubSub();(0,_react().useEffect)(()=>{if(!ref?.current||!pubSub)return()=>{};const destroyConnection=pubSub.connect(ref.current);return()=>destroyConnection()},[ref?.current,pubSub])}},78629:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.PubsubAspect=void 0;function _harmony(){const data=__webpack_require__(70650);return _harmony=function(){return data},data}const PubsubAspect=exports.PubsubAspect=_harmony().Aspect.create({id:"teambit.harmony/pubsub",dependencies:[]});var _default=exports.default=PubsubAspect},42079:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tarjan_1=__webpack_require__(86492);exports.tarjan=tarjan_1.tarjan},86492:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const lodash_1=__importDefault(__webpack_require__(34776));function tarjan(g){var index=0,stack=[],visited={},results=[];function dfs(v){var entry=visited[v]={onStack:!0,lowlink:index,index:index++};if(stack.push(v),[...g.successors(v).keys()].forEach(function(w2){lodash_1.default.has(visited,w2)?visited[w2].onStack&&(entry.lowlink=Math.min(entry.lowlink,visited[w2].index)):(dfs(w2),entry.lowlink=Math.min(entry.lowlink,visited[w2].lowlink))}),entry.lowlink===entry.index){var cmpt=[],w;do w=stack.pop(),visited[w].onStack=!1,cmpt.push(w);while(v!==w);results.push(cmpt)}}return[...g.nodes.keys()].forEach(function(v){lodash_1.default.has(visited,v)||dfs(v)}),results}exports.tarjan=tarjan},55094:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class GraphEdge{constructor(sourceId,targetId,attr){this.sourceId=sourceId,this.targetId=targetId,this.sourceId=sourceId,this.targetId=targetId,this.attr=attr}stringify(){let attrStr="";return!!this.attr.stringify&&typeof this.attr.stringify=="function"?attrStr=this.attr.stringify():attrStr=JSON.stringify(this.attr),attrStr}static fromObject(obj,parseEdge){if(!obj.hasOwnProperty("sourceId"))throw Error("missing source id");if(!obj.hasOwnProperty("targetId"))throw Error("missing target id");return{sourceId:obj.sourceId,targetId:obj.targetId,edge:parseEdge(obj.edge)}}static edgeId(sourceId,targetId){return`${sourceId}->${targetId}`}static parseEdgeId(id){const spl=id.split("->");return spl.length===2?{sourceId:spl[0],targetId:spl[1]}:{sourceId:"",targetId:""}}get nodes(){return[this.sourceId,this.targetId]}}exports.GraphEdge=GraphEdge;function genericParseEdge(edge){return Object.keys(edge).length===0&&edge.constructor===Object||typeof edge!="object"?edge:JSON.parse(edge)}exports.genericParseEdge=genericParseEdge;function genericEdgeToJson(edge){return edge}exports.genericEdgeToJson=genericEdgeToJson},90330:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class CyclicError extends Error{constructor(message){super(message);Object.setPrototypeOf(this,new.target.prototype)}}exports.CyclicError=CyclicError;class NodeDoesntExist extends Error{constructor(message){super(message);Object.setPrototypeOf(this,new.target.prototype)}}exports.NodeDoesntExist=NodeDoesntExist},44401:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const index_1=__webpack_require__(97492),index_2=__webpack_require__(97492),index_3=__webpack_require__(97492),lodash_1=__importDefault(__webpack_require__(34776)),algorithms_1=__webpack_require__(42079),node_1=__webpack_require__(2080),edge_1=__webpack_require__(55094);class Graph{constructor(nodes=[],edges=[]){this._nodes=new Map,this._edges=new Map,nodes.forEach(elem=>this.setNode(elem.id,elem.node)),edges.forEach(elem=>this.setEdge(elem.sourceId,elem.targetId,elem.edge))}create(nodes=[],edges=[]){return new Graph(nodes,edges)}get _userNodes(){return this._transformToUserNodeMap(this._nodes)}get _userEdges(){return this._transformToUserEdgeMap(this._edges)}_transformToUserNodeMap(map){let newMap=new Map;for(const[key,value]of map.entries())newMap.set(key,value.attr);return newMap}_transformToUserEdgeMap(map){let newMap=new Map;for(const[key,value]of map.entries())newMap.set(key,value.attr);return newMap}setNode(id,node,overrideExisting=!0){if(this.hasNode(id)){if(overrideExisting){let existingNode=this._node(id);existingNode&&(existingNode.attr=node)}}else{let graphNode=new index_1.GraphNode(id,node);this._nodes.set(id,graphNode)}return this}setEdge(sourceId,targetId,edge,overrideExisting=!0){if(this.hasEdge(sourceId,targetId))if(overrideExisting){let existingEdge=this._edge(sourceId,targetId);return existingEdge&&(existingEdge.attr=edge),this}else return this;const id=index_2.GraphEdge.edgeId(sourceId,targetId);let graphEdge=new index_2.GraphEdge(sourceId,targetId,edge);if(this._edges.set(id,graphEdge),this._nodes.has(sourceId)){let sourceNode=this._nodes.get(sourceId);sourceNode!==void 0&&sourceNode.setOutEdge(id)}else throw Error("source node does not exist");if(this._nodes.has(targetId)){let targetNode=this._nodes.get(targetId);targetNode!==void 0&&targetNode.setInEdge(id)}else throw Error("target node does not exist");return this}setNodes(nodes,overrideExisting=!0){return nodes.forEach(elem=>{if(!this.hasNode(elem.id))this.setNode(elem.id,elem.node);else if(overrideExisting){let existingNode=this._node(elem.id);existingNode&&(existingNode.attr=elem.node)}}),this}setEdges(edges,overrideExisting=!0){return edges.forEach(elem=>{if(!this.hasEdge(elem.sourceId,elem.targetId))this.setEdge(elem.sourceId,elem.targetId,elem.edge);else if(overrideExisting){let existingEdge=this._edge(elem.sourceId,elem.targetId);existingEdge&&(existingEdge.attr=elem.edge)}}),this}hasNode(id){return this._nodes.has(id)}hasEdge(sourceId,targetId){return this._edges.has(index_2.GraphEdge.edgeId(sourceId,targetId))}node(id){var _a;return(_a=this._nodes.get(id))===null||_a===void 0?void 0:_a.attr}edge(sourceId,targetId){var _a;return(_a=this._edges.get(index_2.GraphEdge.edgeId(sourceId,targetId)))===null||_a===void 0?void 0:_a.attr}_node(id){return this._nodes.get(id)}_edge(sourceId,targetId){return this._edges.get(index_2.GraphEdge.edgeId(sourceId,targetId))}_edgeById(edgeId){return this._edges.get(edgeId)}edgeNodesById(edgeId){var _a,_b;return{sourceId:(_a=this._edges.get(edgeId))===null||_a===void 0?void 0:_a.sourceId,targetId:(_b=this._edges.get(edgeId))===null||_b===void 0?void 0:_b.targetId}}get nodes(){return this._userNodes}get graphNodes(){return this._nodes}get edges(){return this._userEdges}get graphEdges(){return this._edges}nodeCount(){return[...this._nodes.keys()].length}edgeCount(){return[...this._edges.keys()].length}sources(){return[...this._nodes.values()].filter(node=>node.isSource()).map(elem=>elem.attr)}sinks(){return[...this._nodes.values()].filter(node=>node.isSink()).map(elem=>elem.attr)}deleteNode(id){const node=this._node(id);typeof node>"u"||(node.nodeEdges.forEach(edgeId=>{const{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId);this.deleteEdge(sourceId,targetId)}),this._nodes.delete(id))}deleteEdge(sourceId,targetId){const edgeId=index_2.GraphEdge.edgeId(sourceId,targetId);if(this._edges.get(edgeId)!==void 0){let sourceNode=this._nodes.get(sourceId);sourceNode!==void 0&&sourceNode.deleteEdge(edgeId);let targetNode=this._nodes.get(targetId);targetNode!==void 0&&targetNode.deleteEdge(edgeId)}this._edges.delete(edgeId)}inEdges(nodeId){return this._transformToUserEdgeMap(this._inEdges(nodeId))}outEdges(nodeId){return this._transformToUserEdgeMap(this._outEdges(nodeId))}nodeEdges(nodeId){return this._transformToUserEdgeMap(this._nodeEdges(nodeId))}_inEdges(nodeId){let newEdges=new Map;const node=this._node(nodeId);return node===void 0||node.inEdges.forEach(edgeId=>{let{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),edge=this._edge(sourceId,targetId);edge!==void 0&&newEdges.set(edgeId,edge)}),newEdges}_outEdges(nodeId){let newEdges=new Map;const node=this._node(nodeId);return node===void 0||node.outEdges.forEach(edgeId=>{let{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),edge=this._edge(sourceId,targetId);edge!==void 0&&newEdges.set(edgeId,edge)}),newEdges}_nodeEdges(nodeId){let newEdges=new Map;const node=this._node(nodeId);return node===void 0||node.nodeEdges.forEach(edgeId=>{let{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),edge=this._edge(sourceId,targetId);edge!==void 0&&newEdges.set(edgeId,edge)}),newEdges}successors(nodeId,filterPredicate=returnTrue){return this._transformToUserNodeMap(this._successors(nodeId,filterPredicate))}predecessors(nodeId,filterPredicate=returnTrue){return this._transformToUserNodeMap(this._predecessors(nodeId,filterPredicate))}neighbors(nodeId,filterPredicate=returnTrue){return this._transformToUserNodeMap(this._neighbors(nodeId,filterPredicate))}_successors(nodeId,filterPredicate=returnTrue){let successors=new Map;const node=this._node(nodeId);return node===void 0||node.outEdges.forEach(edgeId=>{var _a;const edge=(_a=this._edges.get(edgeId))===null||_a===void 0?void 0:_a.attr;if(edge!=null&&filterPredicate(edge)){const{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),targetNode=this._node(targetId);!!targetId&&targetNode!==void 0&&successors.set(targetId,targetNode)}}),successors}_predecessors(nodeId,filterPredicate=returnTrue){let predecessors=new Map;const node=this._node(nodeId);return node===void 0||node.inEdges.forEach(edgeId=>{var _a;const edge=(_a=this._edges.get(edgeId))===null||_a===void 0?void 0:_a.attr;if(edge!=null&&filterPredicate(edge)){const{sourceId,targetId}=index_2.GraphEdge.parseEdgeId(edgeId),sourceNode=this._node(sourceId);!!sourceId&&sourceNode!==void 0&&predecessors.set(sourceId,sourceNode)}}),predecessors}_neighbors(nodeId,filterPredicate=returnTrue){return new Map([...this._predecessors(nodeId,filterPredicate),...this._successors(nodeId,filterPredicate)])}successorsSubgraph(nodeIds,filterPredicate=returnTrue){return this._buildSubgraphs(nodeIds,filterPredicate,"successors")}_alreadyProcessed(nodeId,subgraphs){for(const graph of subgraphs)if(graph.hasNode(nodeId))return!0;return!1}_buildSubgraphs(nodeIds,filterPredicate,order){let subgraphs=[];if(!Array.isArray(nodeIds))return this._buildSubgraph(nodeIds,filterPredicate,order);if(nodeIds.forEach(nodeId=>{this._alreadyProcessed(nodeId,subgraphs)||subgraphs.push(this._buildSubgraph(nodeId,filterPredicate,order))}),subgraphs.length===1)return subgraphs[0];let mergedGraphs=this.create();return subgraphs.length&&(mergedGraphs=subgraphs[0].merge(subgraphs)),mergedGraphs}_buildSubgraph(nodeId,filterPredicate,order){let g=this.create(),graphNode=this._node(nodeId);if(graphNode)g.setNode(nodeId,graphNode.attr);else throw new Error("Node does not exist on graph");return order==="successors"?this._successorsSubgraphUtil(nodeId,g,{},filterPredicate):this._predecessorsSubgraphUtil(nodeId,g,{},filterPredicate)}_successorsSubgraphUtil(nodeId,successorsGraph,visited={},filterPredicate){const successors=[...this._successors(nodeId,filterPredicate).keys()];return successors.length>0&&!visited[nodeId]&&successors.forEach(successor=>{visited[nodeId]=!0;const newNode=this._nodes.get(successor),newEdge=this._edges.get(index_2.GraphEdge.edgeId(nodeId,successor));if(newNode!==void 0&&newEdge!=null)return successorsGraph.setNode(successor,newNode.attr),successorsGraph.setEdge(nodeId,successor,newEdge.attr),this._successorsSubgraphUtil(successor,successorsGraph,visited,filterPredicate)}),successorsGraph}successorsArray(nodeId,filterPredicate=returnTrue){const successorIds=lodash_1.default.uniq(this._successorsArrayUtil(nodeId,[],{},filterPredicate));let successors=[];return successorIds.forEach(id=>{let node=this.node(id);node!=null&&successors.push(node)}),successors}_successorsArrayUtil(nodeId,successorsList=[],visited={},filterPredicate=returnTrue){const successors=[...this._successors(nodeId,filterPredicate).keys()];return successors.length>0&&!visited[nodeId]&&successors.forEach(successor=>(visited[nodeId]=!0,successorsList.push(successor),this._successorsArrayUtil(successor,successorsList,visited,filterPredicate))),successorsList}successorsLayers(nodeKey,filterPredicate=returnTrue,order="fromSource"){let successorsGraph=this.successorsSubgraph(nodeKey,filterPredicate);if(this.isCyclic(successorsGraph))throw new Error("cyclic dependency");let layers=[];layers[0]=[nodeKey];let floor=0,rawLayers=this._successorsLayersUtil([nodeKey],layers,floor,filterPredicate);return arrangeLayers(rawLayers,order)}_successorsLayersUtil(nodeKeys,layers,floor,filterPredicate=returnTrue){if(nodeKeys.length>0){let nextFloor=floor+1;return layers.push([]),layers[floor].forEach(successor=>{const successors=[...this.successors(successor,filterPredicate).keys()];layers[nextFloor]=layers[nextFloor].concat(successors)}),this._successorsLayersUtil(layers[nextFloor],layers,nextFloor,filterPredicate)}return layers}predecessorsSubgraph(nodeIds,filterPredicate=returnTrue){return this._buildSubgraphs(nodeIds,filterPredicate,"predecessors")}_predecessorsSubgraphUtil(nodeId,predecessorsGraph,visited={},filterPredicate=returnTrue){const predecessors=[...this._predecessors(nodeId,filterPredicate).keys()];return predecessors.length>0&&!visited[nodeId]&&predecessors.forEach(predecessor=>{visited[nodeId]=!0;const newNode=this._nodes.get(predecessor),newEdge=this._edges.get(index_2.GraphEdge.edgeId(predecessor,nodeId));if(newNode!==void 0&&newEdge!=null)return predecessorsGraph.setNode(predecessor,newNode.attr),predecessorsGraph.setEdge(predecessor,nodeId,newEdge.attr),this._predecessorsSubgraphUtil(predecessor,predecessorsGraph,visited,filterPredicate)}),predecessorsGraph}predecessorsArray(nodeId,filterPredicate=returnTrue){const predecessorIds=lodash_1.default.uniq(this._predecessorsArrayUtil(nodeId,[],{},filterPredicate));let predecessors=[];return predecessorIds.forEach(id=>{let node=this.node(id);node!=null&&predecessors.push(node)}),predecessors}_predecessorsArrayUtil(nodeId,predecessorsList=[],visited={},filterPredicate=returnTrue){const predecessors=[...this._predecessors(nodeId,filterPredicate).keys()];return predecessors.length>0&&!visited[nodeId]&&predecessors.forEach(predecessor=>(visited[nodeId]=!0,predecessorsList.push(predecessor),this._predecessorsArrayUtil(predecessor,predecessorsList,visited,filterPredicate))),predecessorsList}predecessorsLayers(nodeKey,filterPredicate=returnTrue,order="fromSource"){let successorsGraph=this.predecessorsSubgraph(nodeKey,filterPredicate);if(this.isCyclic(successorsGraph))throw new Error("cyclic sub-graph");let layers=[];layers[0]=[nodeKey];let floor=0,rawLayers=this._predecessorsLayersUtil([nodeKey],layers,floor,filterPredicate);return arrangeLayers(rawLayers,order)}_predecessorsLayersUtil(nodeKeys,layers,floor,filterPredicate=returnTrue){if(nodeKeys.length>0){let nextFloor=floor+1;return layers.push([]),layers[floor].forEach(predecessor=>{const predecessors=[...this.predecessors(predecessor,filterPredicate).keys()];layers[nextFloor]=layers[nextFloor].concat(predecessors)}),this._predecessorsLayersUtil(layers[nextFloor],layers,nextFloor,filterPredicate)}return layers}toposort(reverse=!1){let nodes=this._toposort().map(nodeId=>this.node(nodeId));return nodes=lodash_1.default.compact(nodes),reverse?nodes.reverse():nodes}_transformEdges(){let edges=[];return this._edges.forEach(originalEdge=>{edges.push([originalEdge.sourceId,originalEdge.targetId])}),edges}_toposort(){const nodes=[...this._nodes.keys()],edges=this._transformEdges();var cursor=nodes.length,sorted=new Array(cursor),visited={},i=cursor,outgoingEdges=makeOutgoingEdges(edges),nodesHash=makeNodesHash(nodes);for(edges.forEach(function(edge){if(!nodesHash.has(edge[0])||!nodesHash.has(edge[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)visited[i]||visit(nodes[i],i,new Set);return sorted;function visit(node,i2,predecessors){if(predecessors.has(node)){var nodeRep;try{nodeRep=", node was:"+JSON.stringify(node)}catch{nodeRep=""}throw new index_3.CyclicError("Cyclic dependency"+nodeRep)}if(!nodesHash.has(node))throw new Error("Found unknown node. Make sure to provide all involved nodes. Unknown node: "+JSON.stringify(node));if(!visited[i2]){visited[i2]=!0;var outgoing=outgoingEdges.get(node)||new Set;if(outgoing=Array.from(outgoing),i2=outgoing.length){predecessors.add(node);do{var child=outgoing[--i2];visit(child,nodesHash.get(child),predecessors)}while(i2);predecessors.delete(node)}sorted[--cursor]=node}}}isCyclic(graph=this){try{graph.toposort()}catch(e){if(e instanceof index_3.CyclicError)return!0;throw e}return!1}findCycles(graph=this){return findCycles(graph)}merge(graphs){let mergedGraph=this;return graphs.forEach(incomingGraph=>{var _a,_b;for(let[nodeId,nodeData]of incomingGraph.nodes)mergedGraph.setNode(nodeId,nodeData);for(let[edgeId,edgeData]of incomingGraph.edges){const sourceId=(_a=incomingGraph._edges.get(edgeId))===null||_a===void 0?void 0:_a.sourceId,targetId=(_b=incomingGraph._edges.get(edgeId))===null||_b===void 0?void 0:_b.targetId;if(mergedGraph.edges.has(edgeId)&&!!sourceId&&!!targetId)mergedGraph.setEdge(sourceId,targetId,edgeData);else if(!!sourceId&&!!targetId&&mergedGraph.hasNode(sourceId)&&mergedGraph.hasNode(targetId))mergedGraph.setEdge(sourceId,targetId,edgeData);else throw index_3.NodeDoesntExist}}),mergedGraph}allPaths(sourceId,targetId){return this._allPaths(sourceId,targetId,[],[])}_allPaths(source,target,currPath,paths,visited={}){return visited[source]=!0,currPath.push(source),source===target?paths.push(lodash_1.default.cloneDeep(currPath)):[...this._successors(source).keys()].forEach(nodeId=>{visited[nodeId]||this._allPaths(nodeId,target,currPath,paths,visited)}),currPath.pop(),visited[source]=!1,paths}toJson(graph){return graph?this._toJson(graph,"object"):this._toJson(this,"object")}stringify(graph){return graph?this._toJson(graph,"string"):this._toJson(this,"string")}static parse(json,parseNode=node_1.genericParseNode,parseEdge=edge_1.genericParseEdge){return this._fromJson(json,parseNode,parseEdge)}_toJson(graph,returnType){let nodeArray=[];for(let[nodeId,nodeData]of graph.nodes.entries()){const graphNode=graph._node(nodeId);if(graphNode){let convertedNode;returnType==="object"?!!graphNode.attr.toJson&&typeof graphNode.attr.toJson=="function"?convertedNode=graphNode.attr.toJson():convertedNode=node_1.genericNodeToJson(graphNode.attr):convertedNode=graphNode.stringify(),nodeArray.push({id:nodeId,node:convertedNode})}}let edgeArray=[];for(let[edgeId,edgeData]of graph.edges.entries()){const graphEdge=graph._edgeById(edgeId);if(graphEdge){let convertedEdge;returnType==="object"?!!graphEdge.attr.toJson&&typeof graphEdge.attr.toJson=="function"?convertedEdge=graphEdge.attr.toJson():convertedEdge=node_1.genericNodeToJson(graphEdge.attr):convertedEdge=graphEdge.stringify(),edgeArray.push({sourceId:graphEdge.sourceId,targetId:graphEdge.targetId,edge:convertedEdge})}}let json={nodes:nodeArray,edges:edgeArray};return returnType==="object"?json:JSON.stringify(json)}static _fromJson(json,parseNode,parseEdge){const obj=typeof json=="string"?JSON.parse(json):json;let graph=new Graph;if(!obj.hasOwnProperty("nodes")||!obj.hasOwnProperty("edges"))throw Error("missing properties on JSON. Should contain nodes: {id: string, node: N}[], and edges: {sourceId: string, targetId: string, edge:E}[]");return obj.nodes.forEach(nodeObj=>{const res=index_1.GraphNode.fromObject(nodeObj,parseNode);graph.setNode(res.id,res.node)}),obj.edges.forEach(edgeObj=>{const res=index_2.GraphEdge.fromObject(edgeObj,parseEdge);graph.setEdge(res.sourceId,res.targetId,res.edge)}),graph}bfs(){}dfs(){}}exports.Graph=Graph;function returnTrue(){return!0}function makeOutgoingEdges(arr){for(var edges=new Map,i=0,len=arr.length;i<len;i++){var edge=arr[i];edges.has(edge[0])||edges.set(edge[0],new Set),edges.has(edge[1])||edges.set(edge[1],new Set),edges.get(edge[0]).add(edge[1])}return edges}function makeNodesHash(arr){for(var res=new Map,i=0,len=arr.length;i<len;i++)res.set(arr[i],i);return res}function findCycles(g){return lodash_1.default.filter(algorithms_1.tarjan(g),function(cmpt){return cmpt.length>1||cmpt.length===1&&g.hasEdge(cmpt[0],cmpt[0])})}function arrangeLayers(layers,order){let finalLayers=[],seenNodes=[];layers=layers.reverse();let i=0;return layers.forEach(layer=>{layer.length>0&&(finalLayers.push([]),layer.forEach(node=>{seenNodes.indexOf(node)==-1&&(seenNodes.push(node),finalLayers[i].push(node))}),i++)}),order==="fromSource"?finalLayers.reverse():finalLayers}},97492:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var edge_1=__webpack_require__(55094);exports.GraphEdge=edge_1.GraphEdge;var node_1=__webpack_require__(2080);exports.GraphNode=node_1.GraphNode;var error_1=__webpack_require__(90330);exports.CyclicError=error_1.CyclicError,exports.NodeDoesntExist=error_1.NodeDoesntExist;var graph_1=__webpack_require__(44401);exports.Graph=graph_1.Graph},2080:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const lodash_1=__webpack_require__(34776),lodash_2=__importDefault(__webpack_require__(34776));class GraphNode{constructor(id,attr,inEdges,outEdges){this.id=id,this.attr=attr,this._inEdges=inEdges||[],this._outEdges=outEdges||[]}setInEdge(edgeId){this._inEdges.push(edgeId)}setOutEdge(edgeId){this._outEdges.push(edgeId)}deleteEdge(edgeId){lodash_2.default.remove(this._inEdges,function(edge){return edge===edgeId}),lodash_2.default.remove(this._outEdges,function(edge){return edge===edgeId})}get inEdges(){return this._inEdges}get outEdges(){return this._outEdges}get nodeEdges(){return this._inEdges.concat(this._outEdges)}isSource(){return this._inEdges.length===0&&this._outEdges.length>0}isSink(){return this._inEdges.length>0&&this._outEdges.length===0}equals(node){return this.id!==node.id?!1:lodash_1.isEqual(this.attr,node.attr)}stringify(){let attrStr="";return!!this.attr.stringify&&typeof this.attr.stringify=="function"?attrStr=this.attr.stringify():attrStr=JSON.stringify(this.attr),attrStr}static fromObject(obj,parseNode){if(!obj.hasOwnProperty("id"))throw Error("missing object id");return{id:obj.id,node:parseNode(obj.node)}}}exports.GraphNode=GraphNode;function genericParseNode(node){return Object.keys(node).length===0&&node.constructor===Object||typeof node!="object"?node:JSON.parse(node)}exports.genericParseNode=genericParseNode;function genericNodeToJson(node){return node}exports.genericNodeToJson=genericNodeToJson},77699:function(module,exports){var global=typeof self<"u"?self:this,__self__=function(){function F(){this.fetch=!1,this.DOMException=global.DOMException}return F.prototype=global,new F}();(function(self2){var irrelevant=function(exports2){var support={searchParams:"URLSearchParams"in self2,iterable:"Symbol"in self2&&"iterator"in Symbol,blob:"FileReader"in self2&&"Blob"in self2&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in self2,arrayBuffer:"ArrayBuffer"in self2};function isDataView(obj){return obj&&DataView.prototype.isPrototypeOf(obj)}if(support.arrayBuffer)var viewClasses=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],isArrayBufferView=ArrayBuffer.isView||function(obj){return obj&&viewClasses.indexOf(Object.prototype.toString.call(obj))>-1};function normalizeName(name){if(typeof name!="string"&&(name=String(name)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name))throw new TypeError("Invalid character in header field name");return name.toLowerCase()}function normalizeValue(value){return typeof value!="string"&&(value=String(value)),value}function iteratorFor(items){var iterator={next:function(){var value=items.shift();return{done:value===void 0,value}}};return support.iterable&&(iterator[Symbol.iterator]=function(){return iterator}),iterator}function Headers2(headers){this.map={},headers instanceof Headers2?headers.forEach(function(value,name){this.append(name,value)},this):Array.isArray(headers)?headers.forEach(function(header){this.append(header[0],header[1])},this):headers&&Object.getOwnPropertyNames(headers).forEach(function(name){this.append(name,headers[name])},this)}Headers2.prototype.append=function(name,value){name=normalizeName(name),value=normalizeValue(value);var oldValue=this.map[name];this.map[name]=oldValue?oldValue+", "+value:value},Headers2.prototype.delete=function(name){delete this.map[normalizeName(name)]},Headers2.prototype.get=function(name){return name=normalizeName(name),this.has(name)?this.map[name]:null},Headers2.prototype.has=function(name){return this.map.hasOwnProperty(normalizeName(name))},Headers2.prototype.set=function(name,value){this.map[normalizeName(name)]=normalizeValue(value)},Headers2.prototype.forEach=function(callback,thisArg){for(var name in this.map)this.map.hasOwnProperty(name)&&callback.call(thisArg,this.map[name],name,this)},Headers2.prototype.keys=function(){var items=[];return this.forEach(function(value,name){items.push(name)}),iteratorFor(items)},Headers2.prototype.values=function(){var items=[];return this.forEach(function(value){items.push(value)}),iteratorFor(items)},Headers2.prototype.entries=function(){var items=[];return this.forEach(function(value,name){items.push([name,value])}),iteratorFor(items)},support.iterable&&(Headers2.prototype[Symbol.iterator]=Headers2.prototype.entries);function consumed(body){if(body.bodyUsed)return Promise.reject(new TypeError("Already read"));body.bodyUsed=!0}function fileReaderReady(reader){return new Promise(function(resolve,reject){reader.onload=function(){resolve(reader.result)},reader.onerror=function(){reject(reader.error)}})}function readBlobAsArrayBuffer(blob){var reader=new FileReader,promise=fileReaderReady(reader);return reader.readAsArrayBuffer(blob),promise}function readBlobAsText(blob){var reader=new FileReader,promise=fileReaderReady(reader);return reader.readAsText(blob),promise}function readArrayBufferAsText(buf){for(var view=new Uint8Array(buf),chars=new Array(view.length),i=0;i<view.length;i++)chars[i]=String.fromCharCode(view[i]);return chars.join("")}function bufferClone(buf){if(buf.slice)return buf.slice(0);var view=new Uint8Array(buf.byteLength);return view.set(new Uint8Array(buf)),view.buffer}function Body(){return this.bodyUsed=!1,this._initBody=function(body){this._bodyInit=body,body?typeof body=="string"?this._bodyText=body:support.blob&&Blob.prototype.isPrototypeOf(body)?this._bodyBlob=body:support.formData&&FormData.prototype.isPrototypeOf(body)?this._bodyFormData=body:support.searchParams&&URLSearchParams.prototype.isPrototypeOf(body)?this._bodyText=body.toString():support.arrayBuffer&&support.blob&&isDataView(body)?(this._bodyArrayBuffer=bufferClone(body.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):support.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(body)||isArrayBufferView(body))?this._bodyArrayBuffer=bufferClone(body):this._bodyText=body=Object.prototype.toString.call(body):this._bodyText="",this.headers.get("content-type")||(typeof body=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):support.searchParams&&URLSearchParams.prototype.isPrototypeOf(body)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},support.blob&&(this.blob=function(){var rejected=consumed(this);if(rejected)return rejected;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?consumed(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(readBlobAsArrayBuffer)}),this.text=function(){var rejected=consumed(this);if(rejected)return rejected;if(this._bodyBlob)return readBlobAsText(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},support.formData&&(this.formData=function(){return this.text().then(decode)}),this.json=function(){return this.text().then(JSON.parse)},this}var methods=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function normalizeMethod(method){var upcased=method.toUpperCase();return methods.indexOf(upcased)>-1?upcased:method}function Request(input,options){options=options||{};var body=options.body;if(input instanceof Request){if(input.bodyUsed)throw new TypeError("Already read");this.url=input.url,this.credentials=input.credentials,options.headers||(this.headers=new Headers2(input.headers)),this.method=input.method,this.mode=input.mode,this.signal=input.signal,!body&&input._bodyInit!=null&&(body=input._bodyInit,input.bodyUsed=!0)}else this.url=String(input);if(this.credentials=options.credentials||this.credentials||"same-origin",(options.headers||!this.headers)&&(this.headers=new Headers2(options.headers)),this.method=normalizeMethod(options.method||this.method||"GET"),this.mode=options.mode||this.mode||null,this.signal=options.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(body)}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})};function decode(body){var form=new FormData;return body.trim().split("&").forEach(function(bytes){if(bytes){var split=bytes.split("="),name=split.shift().replace(/\+/g," "),value=split.join("=").replace(/\+/g," ");form.append(decodeURIComponent(name),decodeURIComponent(value))}}),form}function parseHeaders(rawHeaders){var headers=new Headers2,preProcessedHeaders=rawHeaders.replace(/\r?\n[\t ]+/g," ");return preProcessedHeaders.split(/\r?\n/).forEach(function(line){var parts=line.split(":"),key=parts.shift().trim();if(key){var value=parts.join(":").trim();headers.append(key,value)}}),headers}Body.call(Request.prototype);function Response(bodyInit,options){options||(options={}),this.type="default",this.status=options.status===void 0?200:options.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in options?options.statusText:"OK",this.headers=new Headers2(options.headers),this.url=options.url||"",this._initBody(bodyInit)}Body.call(Response.prototype),Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers2(this.headers),url:this.url})},Response.error=function(){var response=new Response(null,{status:0,statusText:""});return response.type="error",response};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(url,status){if(redirectStatuses.indexOf(status)===-1)throw new RangeError("Invalid status code");return new Response(null,{status,headers:{location:url}})},exports2.DOMException=self2.DOMException;try{new exports2.DOMException}catch{exports2.DOMException=function(message,name){this.message=message,this.name=name;var error=Error(message);this.stack=error.stack},exports2.DOMException.prototype=Object.create(Error.prototype),exports2.DOMException.prototype.constructor=exports2.DOMException}function fetch(input,init){return new Promise(function(resolve,reject){var request=new Request(input,init);if(request.signal&&request.signal.aborted)return reject(new exports2.DOMException("Aborted","AbortError"));var xhr=new XMLHttpRequest;function abortXhr(){xhr.abort()}xhr.onload=function(){var options={status:xhr.status,statusText:xhr.statusText,headers:parseHeaders(xhr.getAllResponseHeaders()||"")};options.url="responseURL"in xhr?xhr.responseURL:options.headers.get("X-Request-URL");var body="response"in xhr?xhr.response:xhr.responseText;resolve(new Response(body,options))},xhr.onerror=function(){reject(new TypeError("Network request failed"))},xhr.ontimeout=function(){reject(new TypeError("Network request failed"))},xhr.onabort=function(){reject(new exports2.DOMException("Aborted","AbortError"))},xhr.open(request.method,request.url,!0),request.credentials==="include"?xhr.withCredentials=!0:request.credentials==="omit"&&(xhr.withCredentials=!1),"responseType"in xhr&&support.blob&&(xhr.responseType="blob"),request.headers.forEach(function(value,name){xhr.setRequestHeader(name,value)}),request.signal&&(request.signal.addEventListener("abort",abortXhr),xhr.onreadystatechange=function(){xhr.readyState===4&&request.signal.removeEventListener("abort",abortXhr)}),xhr.send(typeof request._bodyInit>"u"?null:request._bodyInit)})}return fetch.polyfill=!0,self2.fetch||(self2.fetch=fetch,self2.Headers=Headers2,self2.Request=Request,self2.Response=Response),exports2.Headers=Headers2,exports2.Request=Request,exports2.Response=Response,exports2.fetch=fetch,Object.defineProperty(exports2,"__esModule",{value:!0}),exports2}({})})(__self__),__self__.fetch.ponyfill=!0,delete __self__.fetch.polyfill;var ctx=__self__;exports=ctx.fetch,exports.default=ctx.fetch,exports.fetch=ctx.fetch,exports.Headers=ctx.Headers,exports.Request=ctx.Request,exports.Response=ctx.Response,module.exports=exports},89967:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(39342),isPlainFunction=__webpack_require__(24826),assign=__webpack_require__(18373),normalizeOpts=__webpack_require__(71743),contains=__webpack_require__(14177),d=module.exports=function(dscr,value){var c,e,w,options,desc;return arguments.length<2||typeof dscr!="string"?(options=value,value=dscr,dscr=null):options=arguments[2],isValue(dscr)?(c=contains.call(dscr,"c"),e=contains.call(dscr,"e"),w=contains.call(dscr,"w")):(c=w=!0,e=!1),desc={value,configurable:c,enumerable:e,writable:w},options?assign(normalizeOpts(options),desc):desc};d.gs=function(dscr,get,set){var c,e,options,desc;return typeof dscr!="string"?(options=set,set=get,get=dscr,dscr=null):options=arguments[3],isValue(get)?isPlainFunction(get)?isValue(set)?isPlainFunction(set)||(options=set,set=void 0):set=void 0:(options=get,get=set=void 0):get=void 0,isValue(dscr)?(c=contains.call(dscr,"c"),e=contains.call(dscr,"e")):(c=!0,e=!1),desc={get,set,configurable:c,enumerable:e},options?assign(normalizeOpts(options),desc):desc}},121:module=>{"use strict";module.exports=function(str,sep){if(typeof str!="string")throw new TypeError("Expected a string");return sep=typeof sep>"u"?"_":sep,str.replace(/([a-z\d])([A-Z])/g,"$1"+sep+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+sep+"$2").toLowerCase()}},1178:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var numberIsNaN=__webpack_require__(93601),toPosInt=__webpack_require__(28455),value=__webpack_require__(28295),indexOf=Array.prototype.indexOf,objHasOwnProperty=Object.prototype.hasOwnProperty,abs=Math.abs,floor=Math.floor;module.exports=function(searchElement){var i,length,fromIndex,val;if(!numberIsNaN(searchElement))return indexOf.apply(this,arguments);for(length=toPosInt(value(this).length),fromIndex=arguments[1],isNaN(fromIndex)?fromIndex=0:fromIndex>=0?fromIndex=floor(fromIndex):fromIndex=toPosInt(this.length)-floor(abs(fromIndex)),i=fromIndex;i<length;++i)if(objHasOwnProperty.call(this,i)&&(val=this[i],numberIsNaN(val)))return i;return-1}},87911:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(80873)()?Array.from:__webpack_require__(357)},80873:module=>{"use strict";module.exports=function(){var from=Array.from,arr,result;return typeof from!="function"?!1:(arr=["raz","dwa"],result=from(arr),Boolean(result&&result!==arr&&result[1]==="dwa"))}},357:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var iteratorSymbol=__webpack_require__(29557).iterator,isArguments=__webpack_require__(62169),isFunction=__webpack_require__(40180),toPosInt=__webpack_require__(28455),callable=__webpack_require__(80699),validValue=__webpack_require__(28295),isValue=__webpack_require__(24207),isString=__webpack_require__(34118),isArray=Array.isArray,call=Function.prototype.call,desc={configurable:!0,enumerable:!0,writable:!0,value:null},defineProperty=Object.defineProperty;module.exports=function(arrayLike){var mapFn=arguments[1],thisArg=arguments[2],Context,i,j,arr,length,code,iterator,result,getIterator,value;if(arrayLike=Object(validValue(arrayLike)),isValue(mapFn)&&callable(mapFn),!this||this===Array||!isFunction(this)){if(!mapFn){if(isArguments(arrayLike))return length=arrayLike.length,length!==1?Array.apply(null,arrayLike):(arr=new Array(1),arr[0]=arrayLike[0],arr);if(isArray(arrayLike)){for(arr=new Array(length=arrayLike.length),i=0;i<length;++i)arr[i]=arrayLike[i];return arr}}arr=[]}else Context=this;if(!isArray(arrayLike)){if((getIterator=arrayLike[iteratorSymbol])!==void 0){for(iterator=callable(getIterator).call(arrayLike),Context&&(arr=new Context),result=iterator.next(),i=0;!result.done;)value=mapFn?call.call(mapFn,thisArg,result.value,i):result.value,Context?(desc.value=value,defineProperty(arr,i,desc)):arr[i]=value,result=iterator.next(),++i;length=i}else if(isString(arrayLike)){for(length=arrayLike.length,Context&&(arr=new Context),i=0,j=0;i<length;++i)value=arrayLike[i],i+1<length&&(code=value.charCodeAt(0),code>=55296&&code<=56319&&(value+=arrayLike[++i])),value=mapFn?call.call(mapFn,thisArg,value,j):value,Context?(desc.value=value,defineProperty(arr,j,desc)):arr[j]=value,++j;length=j}}if(length===void 0)for(length=toPosInt(arrayLike.length),Context&&(arr=new Context(length)),i=0;i<length;++i)value=mapFn?call.call(mapFn,thisArg,arrayLike[i],i):arrayLike[i],Context?(desc.value=value,defineProperty(arr,i,desc)):arr[i]=value;return Context&&(desc.value=null,arr.length=length),arr}},28856:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var from=__webpack_require__(87911),isArray=Array.isArray;module.exports=function(arrayLike){return isArray(arrayLike)?arrayLike:from(arrayLike)}},49734:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var assign=__webpack_require__(18373),isObject=__webpack_require__(36969),isValue=__webpack_require__(24207),captureStackTrace=Error.captureStackTrace;module.exports=function(message){var err=new Error(message),code=arguments[1],ext=arguments[2];return isValue(ext)||isObject(code)&&(ext=code,code=null),isValue(ext)&&assign(err,ext),isValue(code)&&(err.code=code),captureStackTrace&&captureStackTrace(err,module.exports),err}},38317:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(28455),test=function(arg1,arg2){return arg2},desc,defineProperty,generate,mixin;try{Object.defineProperty(test,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}test.length===1?(desc={configurable:!0,writable:!1,enumerable:!1},defineProperty=Object.defineProperty,module.exports=function(fn,length){return length=toPosInt(length),fn.length===length?fn:(desc.value=length,defineProperty(fn,"length",desc))}):(mixin=__webpack_require__(89354),generate=function(){var cache=[];return function(length){var args,i=0;if(cache[length])return cache[length];for(args=[];length--;)args.push("a"+(++i).toString(36));return new Function("fn","return function ("+args.join(", ")+") { return fn.apply(this, arguments); };")}}(),module.exports=function(src,length){var target;if(length=toPosInt(length),src.length===length)return src;target=generate(length)(src);try{mixin(target,src)}catch{}return target})},62169:module=>{"use strict";var objToString=Object.prototype.toString,id=objToString.call(function(){return arguments}());module.exports=function(value){return objToString.call(value)===id}},40180:module=>{"use strict";var objToString=Object.prototype.toString,isFunctionStringTag=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);module.exports=function(value){return typeof value=="function"&&isFunctionStringTag(objToString.call(value))}},88644:module=>{"use strict";module.exports=function(){}},84121:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(52066)()?Math.sign:__webpack_require__(61705)},52066:module=>{"use strict";module.exports=function(){var sign=Math.sign;return typeof sign!="function"?!1:sign(10)===1&&sign(-20)===-1}},61705:module=>{"use strict";module.exports=function(value){return value=Number(value),isNaN(value)||value===0?value:value>0?1:-1}},93601:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(84100)()?Number.isNaN:__webpack_require__(72829)},84100:module=>{"use strict";module.exports=function(){var numberIsNaN=Number.isNaN;return typeof numberIsNaN!="function"?!1:!numberIsNaN({})&&numberIsNaN(NaN)&&!numberIsNaN(34)}},72829:module=>{"use strict";module.exports=function(value){return value!==value}},10263:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var sign=__webpack_require__(84121),abs=Math.abs,floor=Math.floor;module.exports=function(value){return isNaN(value)?0:(value=Number(value),value===0||!isFinite(value)?value:sign(value)*floor(abs(value)))}},28455:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toInteger=__webpack_require__(10263),max=Math.max;module.exports=function(value){return max(0,toInteger(value))}},75761:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(80699),value=__webpack_require__(28295),bind=Function.prototype.bind,call=Function.prototype.call,keys=Object.keys,objPropertyIsEnumerable=Object.prototype.propertyIsEnumerable;module.exports=function(method,defVal){return function(obj,cb){var list,thisArg=arguments[2],compareFn=arguments[3];return obj=Object(value(obj)),callable(cb),list=keys(obj),compareFn&&list.sort(typeof compareFn=="function"?bind.call(compareFn,obj):void 0),typeof method!="function"&&(method=list[method]),call.call(method,list,function(key,index){return objPropertyIsEnumerable.call(obj,key)?call.call(cb,thisArg,obj[key],key,obj,index):defVal})}}},18373:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(83953)()?Object.assign:__webpack_require__(30103)},83953:module=>{"use strict";module.exports=function(){var assign=Object.assign,obj;return typeof assign!="function"?!1:(obj={foo:"raz"},assign(obj,{bar:"dwa"},{trzy:"trzy"}),obj.foo+obj.bar+obj.trzy==="razdwatrzy")}},30103:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var keys=__webpack_require__(69375),value=__webpack_require__(28295),max=Math.max;module.exports=function(dest,src){var error,i,length=max(arguments.length,2),assign;for(dest=Object(value(dest)),assign=function(key){try{dest[key]=src[key]}catch(e){error||(error=e)}},i=1;i<length;++i)src=arguments[i],keys(src).forEach(assign);if(error!==void 0)throw error;return dest}},62480:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(75761)("forEach")},24083:module=>{"use strict";module.exports=function(obj){return typeof obj=="function"}},36969:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(24207),map={function:!0,object:!0};module.exports=function(value){return isValue(value)&&map[typeof value]||!1}},24207:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var _undefined=__webpack_require__(88644)();module.exports=function(val){return val!==_undefined&&val!==null}},69375:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(9026)()?Object.keys:__webpack_require__(54826)},9026:module=>{"use strict";module.exports=function(){try{return Object.keys("primitive"),!0}catch{return!1}}},54826:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(24207),keys=Object.keys;module.exports=function(object){return keys(isValue(object)?Object(object):object)}},90017:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(80699),forEach=__webpack_require__(62480),call=Function.prototype.call;module.exports=function(obj,cb){var result={},thisArg=arguments[2];return callable(cb),forEach(obj,function(value,key,targetObj,index){result[key]=call.call(cb,thisArg,value,key,targetObj,index)}),result}},89354:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var value=__webpack_require__(28295),defineProperty=Object.defineProperty,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols;module.exports=function(target,source){var error,sourceObject=Object(value(source));if(target=Object(value(target)),getOwnPropertyNames(sourceObject).forEach(function(name){try{defineProperty(target,name,getOwnPropertyDescriptor(source,name))}catch(e){error=e}}),typeof getOwnPropertySymbols=="function"&&getOwnPropertySymbols(sourceObject).forEach(function(symbol){try{defineProperty(target,symbol,getOwnPropertyDescriptor(source,symbol))}catch(e){error=e}}),error!==void 0)throw error;return target}},71743:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(24207),forEach=Array.prototype.forEach,create=Object.create,process=function(src,obj){var key;for(key in src)obj[key]=src[key]};module.exports=function(opts1){var result=create(null);return forEach.call(arguments,function(options){!isValue(options)||process(Object(options),result)}),result}},6285:module=>{"use strict";var forEach=Array.prototype.forEach,create=Object.create;module.exports=function(arg){var set=create(null);return forEach.call(arguments,function(name){set[name]=!0}),set}},80699:module=>{"use strict";module.exports=function(fn){if(typeof fn!="function")throw new TypeError(fn+" is not a function");return fn}},28295:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(24207);module.exports=function(value){if(!isValue(value))throw new TypeError("Cannot use null or undefined");return value}},2981:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ensureValue=__webpack_require__(28295),stringifiable=__webpack_require__(30729);module.exports=function(value){return stringifiable(ensureValue(value))}},30729:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isCallable=__webpack_require__(24083);module.exports=function(stringifiable){try{return stringifiable&&isCallable(stringifiable.toString)?stringifiable.toString():String(stringifiable)}catch{throw new TypeError("Passed argument cannot be stringifed")}}},76781:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isCallable=__webpack_require__(24083);module.exports=function(value){try{return value&&isCallable(value.toString)?value.toString():String(value)}catch{return"<Non-coercible to string value>"}}},14177:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(5691)()?String.prototype.contains:__webpack_require__(56277)},5691:module=>{"use strict";var str="razdwatrzy";module.exports=function(){return typeof str.contains!="function"?!1:str.contains("dwa")===!0&&str.contains("foo")===!1}},56277:module=>{"use strict";var indexOf=String.prototype.indexOf;module.exports=function(searchString){return indexOf.call(this,searchString,arguments[1])>-1}},34118:module=>{"use strict";var objToString=Object.prototype.toString,id=objToString.call("");module.exports=function(value){return typeof value=="string"||value&&typeof value=="object"&&(value instanceof String||objToString.call(value)===id)||!1}},48181:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var safeToString=__webpack_require__(76781),reNewLine=/[\n\r\u2028\u2029]/g;module.exports=function(value){var string=safeToString(value);return string.length>100&&(string=string.slice(0,99)+"\u2026"),string=string.replace(reNewLine,function(char){return JSON.stringify(char).slice(1,-1)}),string}},29557:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(52380)()?__webpack_require__(44230).Symbol:__webpack_require__(78856)},52380:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var global=__webpack_require__(44230),validTypes={object:!0,symbol:!0};module.exports=function(){var Symbol2=global.Symbol,symbol;if(typeof Symbol2!="function")return!1;symbol=Symbol2("test symbol");try{String(symbol)}catch{return!1}return!(!validTypes[typeof Symbol2.iterator]||!validTypes[typeof Symbol2.toPrimitive]||!validTypes[typeof Symbol2.toStringTag])}},44031:module=>{"use strict";module.exports=function(value){return value?typeof value=="symbol"?!0:!value.constructor||value.constructor.name!=="Symbol"?!1:value[value.constructor.toStringTag]==="Symbol":!1}},73916:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(89967),create=Object.create,defineProperty=Object.defineProperty,objPrototype=Object.prototype,created=create(null);module.exports=function(desc){for(var postfix=0,name,ie11BugWorkaround;created[desc+(postfix||"")];)++postfix;return desc+=postfix||"",created[desc]=!0,name="@@"+desc,defineProperty(objPrototype,name,d.gs(null,function(value){ie11BugWorkaround||(ie11BugWorkaround=!0,defineProperty(this,name,d(value)),ie11BugWorkaround=!1)})),name}},12846:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(89967),NativeSymbol=__webpack_require__(44230).Symbol;module.exports=function(SymbolPolyfill){return Object.defineProperties(SymbolPolyfill,{hasInstance:d("",NativeSymbol&&NativeSymbol.hasInstance||SymbolPolyfill("hasInstance")),isConcatSpreadable:d("",NativeSymbol&&NativeSymbol.isConcatSpreadable||SymbolPolyfill("isConcatSpreadable")),iterator:d("",NativeSymbol&&NativeSymbol.iterator||SymbolPolyfill("iterator")),match:d("",NativeSymbol&&NativeSymbol.match||SymbolPolyfill("match")),replace:d("",NativeSymbol&&NativeSymbol.replace||SymbolPolyfill("replace")),search:d("",NativeSymbol&&NativeSymbol.search||SymbolPolyfill("search")),species:d("",NativeSymbol&&NativeSymbol.species||SymbolPolyfill("species")),split:d("",NativeSymbol&&NativeSymbol.split||SymbolPolyfill("split")),toPrimitive:d("",NativeSymbol&&NativeSymbol.toPrimitive||SymbolPolyfill("toPrimitive")),toStringTag:d("",NativeSymbol&&NativeSymbol.toStringTag||SymbolPolyfill("toStringTag")),unscopables:d("",NativeSymbol&&NativeSymbol.unscopables||SymbolPolyfill("unscopables"))})}},96947:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(89967),validateSymbol=__webpack_require__(60414),registry=Object.create(null);module.exports=function(SymbolPolyfill){return Object.defineProperties(SymbolPolyfill,{for:d(function(key){return registry[key]?registry[key]:registry[key]=SymbolPolyfill(String(key))}),keyFor:d(function(symbol){var key;validateSymbol(symbol);for(key in registry)if(registry[key]===symbol)return key})})}},78856:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(89967),validateSymbol=__webpack_require__(60414),NativeSymbol=__webpack_require__(44230).Symbol,generateName=__webpack_require__(73916),setupStandardSymbols=__webpack_require__(12846),setupSymbolRegistry=__webpack_require__(96947),create=Object.create,defineProperties=Object.defineProperties,defineProperty=Object.defineProperty,SymbolPolyfill,HiddenSymbol,isNativeSafe;if(typeof NativeSymbol=="function")try{String(NativeSymbol()),isNativeSafe=!0}catch{}else NativeSymbol=null;HiddenSymbol=function(description){if(this instanceof HiddenSymbol)throw new TypeError("Symbol is not a constructor");return SymbolPolyfill(description)},module.exports=SymbolPolyfill=function Symbol2(description){var symbol;if(this instanceof Symbol2)throw new TypeError("Symbol is not a constructor");return isNativeSafe?NativeSymbol(description):(symbol=create(HiddenSymbol.prototype),description=description===void 0?"":String(description),defineProperties(symbol,{__description__:d("",description),__name__:d("",generateName(description))}))},setupStandardSymbols(SymbolPolyfill),setupSymbolRegistry(SymbolPolyfill),defineProperties(HiddenSymbol.prototype,{constructor:d(SymbolPolyfill),toString:d("",function(){return this.__name__})}),defineProperties(SymbolPolyfill.prototype,{toString:d(function(){return"Symbol ("+validateSymbol(this).__description__+")"}),valueOf:d(function(){return validateSymbol(this)})}),defineProperty(SymbolPolyfill.prototype,SymbolPolyfill.toPrimitive,d("",function(){var symbol=validateSymbol(this);return typeof symbol=="symbol"?symbol:symbol.toString()})),defineProperty(SymbolPolyfill.prototype,SymbolPolyfill.toStringTag,d("c","Symbol")),defineProperty(HiddenSymbol.prototype,SymbolPolyfill.toStringTag,d("c",SymbolPolyfill.prototype[SymbolPolyfill.toStringTag])),defineProperty(HiddenSymbol.prototype,SymbolPolyfill.toPrimitive,d("c",SymbolPolyfill.prototype[SymbolPolyfill.toPrimitive]))},60414:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isSymbol=__webpack_require__(44031);module.exports=function(value){if(!isSymbol(value))throw new TypeError(value+" is not a symbol");return value}},24293:(module,exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(89967),callable=__webpack_require__(80699),apply=Function.prototype.apply,call=Function.prototype.call,create=Object.create,defineProperty=Object.defineProperty,defineProperties=Object.defineProperties,hasOwnProperty2=Object.prototype.hasOwnProperty,descriptor={configurable:!0,enumerable:!1,writable:!0},on,once,off,emit,methods,descriptors,base;on=function(type,listener){var data;return callable(listener),hasOwnProperty2.call(this,"__ee__")?data=this.__ee__:(data=descriptor.value=create(null),defineProperty(this,"__ee__",descriptor),descriptor.value=null),data[type]?typeof data[type]=="object"?data[type].push(listener):data[type]=[data[type],listener]:data[type]=listener,this},once=function(type,listener){var once2,self2;return callable(listener),self2=this,on.call(this,type,once2=function(){off.call(self2,type,once2),apply.call(listener,this,arguments)}),once2.__eeOnceListener__=listener,this},off=function(type,listener){var data,listeners,candidate,i;if(callable(listener),!hasOwnProperty2.call(this,"__ee__"))return this;if(data=this.__ee__,!data[type])return this;if(listeners=data[type],typeof listeners=="object")for(i=0;candidate=listeners[i];++i)(candidate===listener||candidate.__eeOnceListener__===listener)&&(listeners.length===2?data[type]=listeners[i?0:1]:listeners.splice(i,1));else(listeners===listener||listeners.__eeOnceListener__===listener)&&delete data[type];return this},emit=function(type){var i,l,listener,listeners,args;if(!!hasOwnProperty2.call(this,"__ee__")&&(listeners=this.__ee__[type],!!listeners))if(typeof listeners=="object"){for(l=arguments.length,args=new Array(l-1),i=1;i<l;++i)args[i-1]=arguments[i];for(listeners=listeners.slice(),i=0;listener=listeners[i];++i)apply.call(listener,this,args)}else switch(arguments.length){case 1:call.call(listeners,this);break;case 2:call.call(listeners,this,arguments[1]);break;case 3:call.call(listeners,this,arguments[1],arguments[2]);break;default:for(l=arguments.length,args=new Array(l-1),i=1;i<l;++i)args[i-1]=arguments[i];apply.call(listeners,this,args)}},methods={on,once,off,emit},descriptors={on:d(on),once:d(once),off:d(off),emit:d(emit)},base=defineProperties({},descriptors),module.exports=exports=function(o){return o==null?create(base):defineProperties(Object(o),descriptors)},exports.methods=methods},33434:module=>{var naiveFallback=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};module.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return naiveFallback()}try{return __global__||naiveFallback()}finally{delete Object.prototype.__global__}}()},44230:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(89237)()?globalThis:__webpack_require__(33434)},89237:module=>{"use strict";module.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}},48066:module=>{module.exports=isPromise,module.exports.default=isPromise;function isPromise(obj){return!!obj&&(typeof obj=="object"||typeof obj=="function")&&typeof obj.then=="function"}},34776:function(module,exports,__webpack_require__){module=__webpack_require__.nmd(module);var __WEBPACK_AMD_DEFINE_RESULT__;/**
|
30
|
-
* @license
|
31
|
-
* Lodash <https://lodash.com/>
|
32
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
33
|
-
* Released under MIT license <https://lodash.com/license>
|
34
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
35
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
36
|
-
*/(function(){var undefined2,VERSION="4.17.21",LARGE_ARRAY_SIZE=200,CORE_ERROR_TEXT="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",FUNC_ERROR_TEXT="Expected a function",INVALID_TEMPL_VAR_ERROR_TEXT="Invalid `variable` option passed into `_.template`",HASH_UNDEFINED="__lodash_hash_undefined__",MAX_MEMOIZE_SIZE=500,PLACEHOLDER="__lodash_placeholder__",CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2,WRAP_BIND_FLAG=1,WRAP_BIND_KEY_FLAG=2,WRAP_CURRY_BOUND_FLAG=4,WRAP_CURRY_FLAG=8,WRAP_CURRY_RIGHT_FLAG=16,WRAP_PARTIAL_FLAG=32,WRAP_PARTIAL_RIGHT_FLAG=64,WRAP_ARY_FLAG=128,WRAP_REARG_FLAG=256,WRAP_FLIP_FLAG=512,DEFAULT_TRUNC_LENGTH=30,DEFAULT_TRUNC_OMISSION="...",HOT_COUNT=800,HOT_SPAN=16,LAZY_FILTER_FLAG=1,LAZY_MAP_FLAG=2,LAZY_WHILE_FLAG=3,INFINITY=1/0,MAX_SAFE_INTEGER=9007199254740991,MAX_INTEGER=17976931348623157e292,NAN=0/0,MAX_ARRAY_LENGTH=4294967295,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH-1,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH>>>1,wrapFlags=[["ary",WRAP_ARY_FLAG],["bind",WRAP_BIND_FLAG],["bindKey",WRAP_BIND_KEY_FLAG],["curry",WRAP_CURRY_FLAG],["curryRight",WRAP_CURRY_RIGHT_FLAG],["flip",WRAP_FLIP_FLAG],["partial",WRAP_PARTIAL_FLAG],["partialRight",WRAP_PARTIAL_RIGHT_FLAG],["rearg",WRAP_REARG_FLAG]],argsTag="[object Arguments]",arrayTag="[object Array]",asyncTag="[object AsyncFunction]",boolTag="[object Boolean]",dateTag="[object Date]",domExcTag="[object DOMException]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",nullTag="[object Null]",objectTag="[object Object]",promiseTag="[object Promise]",proxyTag="[object Proxy]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",undefinedTag="[object Undefined]",weakMapTag="[object WeakMap]",weakSetTag="[object WeakSet]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g,reEscapedHtml=/&(?:amp|lt|gt|quot|#39);/g,reUnescapedHtml=/[&<>"']/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source),reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source),reTrimStart=/^\s+/,reWhitespace=/\s/,reWrapComment=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,reSplitDetails=/,? & /,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,reForbiddenIdentifierChars=/[()=,{}\[\]\/\s]/,reEscapeChar=/\\(\\)?/g,reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,reFlags=/\w*$/,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsHostCtor=/^\[object .+?Constructor\]$/,reIsOctal=/^0o[0-7]+$/i,reIsUint=/^(?:0|[1-9]\d*)$/,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,reNoMatch=/($^)/,reUnescapedString=/['\n\r\u2028\u2029\\]/g,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos="['\u2019]",rsAstral="["+rsAstralRange+"]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reApos=RegExp(rsApos,"g"),reComboMark=RegExp(rsCombo,"g"),reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g"),reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g"),reHasUnicode=RegExp("["+rsZWJ+rsAstralRange+rsComboRange+rsVarRange+"]"),reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,contextProps=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],templateCounter=-1,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;var deburredLetters={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},htmlEscapes={"&":"&","<":"<",">":">",'"':""","'":"'"},htmlUnescapes={"&":"&","<":"<",">":">",""":'"',"'":"'"},stringEscapes={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},freeParseFloat=parseFloat,freeParseInt=parseInt,freeGlobal=typeof __webpack_require__.g=="object"&&__webpack_require__.g&&__webpack_require__.g.Object===Object&&__webpack_require__.g,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&!0&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&freeGlobal.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;return types||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}(),nodeIsArrayBuffer=nodeUtil&&nodeUtil.isArrayBuffer,nodeIsDate=nodeUtil&&nodeUtil.isDate,nodeIsMap=nodeUtil&&nodeUtil.isMap,nodeIsRegExp=nodeUtil&&nodeUtil.isRegExp,nodeIsSet=nodeUtil&&nodeUtil.isSet,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}function arrayAggregator(array,setter,iteratee,accumulator){for(var index=-1,length=array==null?0:array.length;++index<length;){var value=array[index];setter(accumulator,value,iteratee(value),array)}return accumulator}function arrayEach(array,iteratee){for(var index=-1,length=array==null?0:array.length;++index<length&&iteratee(array[index],index,array)!==!1;);return array}function arrayEachRight(array,iteratee){for(var length=array==null?0:array.length;length--&&iteratee(array[length],length,array)!==!1;);return array}function arrayEvery(array,predicate){for(var index=-1,length=array==null?0:array.length;++index<length;)if(!predicate(array[index],index,array))return!1;return!0}function arrayFilter(array,predicate){for(var index=-1,length=array==null?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];predicate(value,index,array)&&(result[resIndex++]=value)}return result}function arrayIncludes(array,value){var length=array==null?0:array.length;return!!length&&baseIndexOf(array,value,0)>-1}function arrayIncludesWith(array,value,comparator){for(var index=-1,length=array==null?0:array.length;++index<length;)if(comparator(value,array[index]))return!0;return!1}function arrayMap(array,iteratee){for(var index=-1,length=array==null?0:array.length,result=Array(length);++index<length;)result[index]=iteratee(array[index],index,array);return result}function arrayPush(array,values){for(var index=-1,length=values.length,offset=array.length;++index<length;)array[offset+index]=values[index];return array}function arrayReduce(array,iteratee,accumulator,initAccum){var index=-1,length=array==null?0:array.length;for(initAccum&&length&&(accumulator=array[++index]);++index<length;)accumulator=iteratee(accumulator,array[index],index,array);return accumulator}function arrayReduceRight(array,iteratee,accumulator,initAccum){var length=array==null?0:array.length;for(initAccum&&length&&(accumulator=array[--length]);length--;)accumulator=iteratee(accumulator,array[length],length,array);return accumulator}function arraySome(array,predicate){for(var index=-1,length=array==null?0:array.length;++index<length;)if(predicate(array[index],index,array))return!0;return!1}var asciiSize=baseProperty("length");function asciiToArray(string){return string.split("")}function asciiWords(string){return string.match(reAsciiWord)||[]}function baseFindKey(collection,predicate,eachFunc){var result;return eachFunc(collection,function(value,key,collection2){if(predicate(value,key,collection2))return result=key,!1}),result}function baseFindIndex(array,predicate,fromIndex,fromRight){for(var length=array.length,index=fromIndex+(fromRight?1:-1);fromRight?index--:++index<length;)if(predicate(array[index],index,array))return index;return-1}function baseIndexOf(array,value,fromIndex){return value===value?strictIndexOf(array,value,fromIndex):baseFindIndex(array,baseIsNaN,fromIndex)}function baseIndexOfWith(array,value,fromIndex,comparator){for(var index=fromIndex-1,length=array.length;++index<length;)if(comparator(array[index],value))return index;return-1}function baseIsNaN(value){return value!==value}function baseMean(array,iteratee){var length=array==null?0:array.length;return length?baseSum(array,iteratee)/length:NAN}function baseProperty(key){return function(object){return object==null?undefined2:object[key]}}function basePropertyOf(object){return function(key){return object==null?undefined2:object[key]}}function baseReduce(collection,iteratee,accumulator,initAccum,eachFunc){return eachFunc(collection,function(value,index,collection2){accumulator=initAccum?(initAccum=!1,value):iteratee(accumulator,value,index,collection2)}),accumulator}function baseSortBy(array,comparer){var length=array.length;for(array.sort(comparer);length--;)array[length]=array[length].value;return array}function baseSum(array,iteratee){for(var result,index=-1,length=array.length;++index<length;){var current=iteratee(array[index]);current!==undefined2&&(result=result===undefined2?current:result+current)}return result}function baseTimes(n,iteratee){for(var index=-1,result=Array(n);++index<n;)result[index]=iteratee(index);return result}function baseToPairs(object,props){return arrayMap(props,function(key){return[key,object[key]]})}function baseTrim(string){return string&&string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,"")}function baseUnary(func){return function(value){return func(value)}}function baseValues(object,props){return arrayMap(props,function(key){return object[key]})}function cacheHas(cache,key){return cache.has(key)}function charsStartIndex(strSymbols,chrSymbols){for(var index=-1,length=strSymbols.length;++index<length&&baseIndexOf(chrSymbols,strSymbols[index],0)>-1;);return index}function charsEndIndex(strSymbols,chrSymbols){for(var index=strSymbols.length;index--&&baseIndexOf(chrSymbols,strSymbols[index],0)>-1;);return index}function countHolders(array,placeholder){for(var length=array.length,result=0;length--;)array[length]===placeholder&&++result;return result}var deburrLetter=basePropertyOf(deburredLetters),escapeHtmlChar=basePropertyOf(htmlEscapes);function escapeStringChar(chr){return"\\"+stringEscapes[chr]}function getValue(object,key){return object==null?undefined2:object[key]}function hasUnicode(string){return reHasUnicode.test(string)}function hasUnicodeWord(string){return reHasUnicodeWord.test(string)}function iteratorToArray(iterator){for(var data,result=[];!(data=iterator.next()).done;)result.push(data.value);return result}function mapToArray(map){var index=-1,result=Array(map.size);return map.forEach(function(value,key){result[++index]=[key,value]}),result}function overArg(func,transform){return function(arg){return func(transform(arg))}}function replaceHolders(array,placeholder){for(var index=-1,length=array.length,resIndex=0,result=[];++index<length;){var value=array[index];(value===placeholder||value===PLACEHOLDER)&&(array[index]=PLACEHOLDER,result[resIndex++]=index)}return result}function setToArray(set){var index=-1,result=Array(set.size);return set.forEach(function(value){result[++index]=value}),result}function setToPairs(set){var index=-1,result=Array(set.size);return set.forEach(function(value){result[++index]=[value,value]}),result}function strictIndexOf(array,value,fromIndex){for(var index=fromIndex-1,length=array.length;++index<length;)if(array[index]===value)return index;return-1}function strictLastIndexOf(array,value,fromIndex){for(var index=fromIndex+1;index--;)if(array[index]===value)return index;return index}function stringSize(string){return hasUnicode(string)?unicodeSize(string):asciiSize(string)}function stringToArray(string){return hasUnicode(string)?unicodeToArray(string):asciiToArray(string)}function trimmedEndIndex(string){for(var index=string.length;index--&&reWhitespace.test(string.charAt(index)););return index}var unescapeHtmlChar=basePropertyOf(htmlUnescapes);function unicodeSize(string){for(var result=reUnicode.lastIndex=0;reUnicode.test(string);)++result;return result}function unicodeToArray(string){return string.match(reUnicode)||[]}function unicodeWords(string){return string.match(reUnicodeWord)||[]}var runInContext=function runInContext2(context){context=context==null?root:_.defaults(root.Object(),context,_.pick(root,contextProps));var Array2=context.Array,Date2=context.Date,Error2=context.Error,Function2=context.Function,Math2=context.Math,Object2=context.Object,RegExp2=context.RegExp,String2=context.String,TypeError2=context.TypeError,arrayProto=Array2.prototype,funcProto=Function2.prototype,objectProto=Object2.prototype,coreJsData=context["__core-js_shared__"],funcToString=funcProto.toString,hasOwnProperty2=objectProto.hasOwnProperty,idCounter=0,maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:""}(),nativeObjectToString=objectProto.toString,objectCtorString=funcToString.call(Object2),oldDash=root._,reIsNative=RegExp2("^"+funcToString.call(hasOwnProperty2).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Buffer=moduleExports?context.Buffer:undefined2,Symbol2=context.Symbol,Uint8Array2=context.Uint8Array,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined2,getPrototype=overArg(Object2.getPrototypeOf,Object2),objectCreate=Object2.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,spreadableSymbol=Symbol2?Symbol2.isConcatSpreadable:undefined2,symIterator=Symbol2?Symbol2.iterator:undefined2,symToStringTag=Symbol2?Symbol2.toStringTag:undefined2,defineProperty=function(){try{var func=getNative(Object2,"defineProperty");return func({},"",{}),func}catch{}}(),ctxClearTimeout=context.clearTimeout!==root.clearTimeout&&context.clearTimeout,ctxNow=Date2&&Date2.now!==root.Date.now&&Date2.now,ctxSetTimeout=context.setTimeout!==root.setTimeout&&context.setTimeout,nativeCeil=Math2.ceil,nativeFloor=Math2.floor,nativeGetSymbols=Object2.getOwnPropertySymbols,nativeIsBuffer=Buffer?Buffer.isBuffer:undefined2,nativeIsFinite=context.isFinite,nativeJoin=arrayProto.join,nativeKeys=overArg(Object2.keys,Object2),nativeMax=Math2.max,nativeMin=Math2.min,nativeNow=Date2.now,nativeParseInt=context.parseInt,nativeRandom=Math2.random,nativeReverse=arrayProto.reverse,DataView2=getNative(context,"DataView"),Map2=getNative(context,"Map"),Promise2=getNative(context,"Promise"),Set2=getNative(context,"Set"),WeakMap2=getNative(context,"WeakMap"),nativeCreate=getNative(Object2,"create"),metaMap=WeakMap2&&new WeakMap2,realNames={},dataViewCtorString=toSource(DataView2),mapCtorString=toSource(Map2),promiseCtorString=toSource(Promise2),setCtorString=toSource(Set2),weakMapCtorString=toSource(WeakMap2),symbolProto=Symbol2?Symbol2.prototype:undefined2,symbolValueOf=symbolProto?symbolProto.valueOf:undefined2,symbolToString=symbolProto?symbolProto.toString:undefined2;function lodash(value){if(isObjectLike(value)&&!isArray(value)&&!(value instanceof LazyWrapper)){if(value instanceof LodashWrapper)return value;if(hasOwnProperty2.call(value,"__wrapped__"))return wrapperClone(value)}return new LodashWrapper(value)}var baseCreate=function(){function object(){}return function(proto){if(!isObject(proto))return{};if(objectCreate)return objectCreate(proto);object.prototype=proto;var result2=new object;return object.prototype=undefined2,result2}}();function baseLodash(){}function LodashWrapper(value,chainAll){this.__wrapped__=value,this.__actions__=[],this.__chain__=!!chainAll,this.__index__=0,this.__values__=undefined2}lodash.templateSettings={escape:reEscape,evaluate:reEvaluate,interpolate:reInterpolate,variable:"",imports:{_:lodash}},lodash.prototype=baseLodash.prototype,lodash.prototype.constructor=lodash,LodashWrapper.prototype=baseCreate(baseLodash.prototype),LodashWrapper.prototype.constructor=LodashWrapper;function LazyWrapper(value){this.__wrapped__=value,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=MAX_ARRAY_LENGTH,this.__views__=[]}function lazyClone(){var result2=new LazyWrapper(this.__wrapped__);return result2.__actions__=copyArray(this.__actions__),result2.__dir__=this.__dir__,result2.__filtered__=this.__filtered__,result2.__iteratees__=copyArray(this.__iteratees__),result2.__takeCount__=this.__takeCount__,result2.__views__=copyArray(this.__views__),result2}function lazyReverse(){if(this.__filtered__){var result2=new LazyWrapper(this);result2.__dir__=-1,result2.__filtered__=!0}else result2=this.clone(),result2.__dir__*=-1;return result2}function lazyValue(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=dir<0,arrLength=isArr?array.length:0,view=getView(0,arrLength,this.__views__),start=view.start,end=view.end,length=end-start,index=isRight?end:start-1,iteratees=this.__iteratees__,iterLength=iteratees.length,resIndex=0,takeCount=nativeMin(length,this.__takeCount__);if(!isArr||!isRight&&arrLength==length&&takeCount==length)return baseWrapperValue(array,this.__actions__);var result2=[];outer:for(;length--&&resIndex<takeCount;){index+=dir;for(var iterIndex=-1,value=array[index];++iterIndex<iterLength;){var data=iteratees[iterIndex],iteratee2=data.iteratee,type=data.type,computed=iteratee2(value);if(type==LAZY_MAP_FLAG)value=computed;else if(!computed){if(type==LAZY_FILTER_FLAG)continue outer;break outer}}result2[resIndex++]=value}return result2}LazyWrapper.prototype=baseCreate(baseLodash.prototype),LazyWrapper.prototype.constructor=LazyWrapper;function Hash(entries){var index=-1,length=entries==null?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete(key){var result2=this.has(key)&&delete this.__data__[key];return this.size-=result2?1:0,result2}function hashGet(key){var data=this.__data__;if(nativeCreate){var result2=data[key];return result2===HASH_UNDEFINED?undefined2:result2}return hasOwnProperty2.call(data,key)?data[key]:undefined2}function hashHas(key){var data=this.__data__;return nativeCreate?data[key]!==undefined2:hasOwnProperty2.call(data,key)}function hashSet(key,value){var data=this.__data__;return this.size+=this.has(key)?0:1,data[key]=nativeCreate&&value===undefined2?HASH_UNDEFINED:value,this}Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet;function ListCache(entries){var index=-1,length=entries==null?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}function listCacheClear(){this.__data__=[],this.size=0}function listCacheDelete(key){var data=this.__data__,index=assocIndexOf(data,key);if(index<0)return!1;var lastIndex=data.length-1;return index==lastIndex?data.pop():splice.call(data,index,1),--this.size,!0}function listCacheGet(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?undefined2:data[index][1]}function listCacheHas(key){return assocIndexOf(this.__data__,key)>-1}function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);return index<0?(++this.size,data.push([key,value])):data[index][1]=value,this}ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet;function MapCache(entries){var index=-1,length=entries==null?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map2||ListCache),string:new Hash}}function mapCacheDelete(key){var result2=getMapData(this,key).delete(key);return this.size-=result2?1:0,result2}function mapCacheGet(key){return getMapData(this,key).get(key)}function mapCacheHas(key){return getMapData(this,key).has(key)}function mapCacheSet(key,value){var data=getMapData(this,key),size2=data.size;return data.set(key,value),this.size+=data.size==size2?0:1,this}MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet;function SetCache(values2){var index=-1,length=values2==null?0:values2.length;for(this.__data__=new MapCache;++index<length;)this.add(values2[index])}function setCacheAdd(value){return this.__data__.set(value,HASH_UNDEFINED),this}function setCacheHas(value){return this.__data__.has(value)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd,SetCache.prototype.has=setCacheHas;function Stack(entries){var data=this.__data__=new ListCache(entries);this.size=data.size}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(key){var data=this.__data__,result2=data.delete(key);return this.size=data.size,result2}function stackGet(key){return this.__data__.get(key)}function stackHas(key){return this.__data__.has(key)}function stackSet(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map2||pairs.length<LARGE_ARRAY_SIZE-1)return pairs.push([key,value]),this.size=++data.size,this;data=this.__data__=new MapCache(pairs)}return data.set(key,value),this.size=data.size,this}Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet;function arrayLikeKeys(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value),skipIndexes=isArr||isArg||isBuff||isType,result2=skipIndexes?baseTimes(value.length,String2):[],length=result2.length;for(var key in value)(inherited||hasOwnProperty2.call(value,key))&&!(skipIndexes&&(key=="length"||isBuff&&(key=="offset"||key=="parent")||isType&&(key=="buffer"||key=="byteLength"||key=="byteOffset")||isIndex(key,length)))&&result2.push(key);return result2}function arraySample(array){var length=array.length;return length?array[baseRandom(0,length-1)]:undefined2}function arraySampleSize(array,n){return shuffleSelf(copyArray(array),baseClamp(n,0,array.length))}function arrayShuffle(array){return shuffleSelf(copyArray(array))}function assignMergeValue(object,key,value){(value!==undefined2&&!eq(object[key],value)||value===undefined2&&!(key in object))&&baseAssignValue(object,key,value)}function assignValue(object,key,value){var objValue=object[key];(!(hasOwnProperty2.call(object,key)&&eq(objValue,value))||value===undefined2&&!(key in object))&&baseAssignValue(object,key,value)}function assocIndexOf(array,key){for(var length=array.length;length--;)if(eq(array[length][0],key))return length;return-1}function baseAggregator(collection,setter,iteratee2,accumulator){return baseEach(collection,function(value,key,collection2){setter(accumulator,value,iteratee2(value),collection2)}),accumulator}function baseAssign(object,source){return object&©Object(source,keys(source),object)}function baseAssignIn(object,source){return object&©Object(source,keysIn(source),object)}function baseAssignValue(object,key,value){key=="__proto__"&&defineProperty?defineProperty(object,key,{configurable:!0,enumerable:!0,value,writable:!0}):object[key]=value}function baseAt(object,paths){for(var index=-1,length=paths.length,result2=Array2(length),skip=object==null;++index<length;)result2[index]=skip?undefined2:get(object,paths[index]);return result2}function baseClamp(number,lower,upper){return number===number&&(upper!==undefined2&&(number=number<=upper?number:upper),lower!==undefined2&&(number=number>=lower?number:lower)),number}function baseClone(value,bitmask,customizer,key,object,stack){var result2,isDeep=bitmask&CLONE_DEEP_FLAG,isFlat=bitmask&CLONE_FLAT_FLAG,isFull=bitmask&CLONE_SYMBOLS_FLAG;if(customizer&&(result2=object?customizer(value,key,object,stack):customizer(value)),result2!==undefined2)return result2;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result2=initCloneArray(value),!isDeep)return copyArray(value,result2)}else{var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer(value))return cloneBuffer(value,isDeep);if(tag==objectTag||tag==argsTag||isFunc&&!object){if(result2=isFlat||isFunc?{}:initCloneObject(value),!isDeep)return isFlat?copySymbolsIn(value,baseAssignIn(result2,value)):copySymbols(value,baseAssign(result2,value))}else{if(!cloneableTags[tag])return object?value:{};result2=initCloneByTag(value,tag,isDeep)}}stack||(stack=new Stack);var stacked=stack.get(value);if(stacked)return stacked;stack.set(value,result2),isSet(value)?value.forEach(function(subValue){result2.add(baseClone(subValue,bitmask,customizer,subValue,value,stack))}):isMap(value)&&value.forEach(function(subValue,key2){result2.set(key2,baseClone(subValue,bitmask,customizer,key2,value,stack))});var keysFunc=isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys,props=isArr?undefined2:keysFunc(value);return arrayEach(props||value,function(subValue,key2){props&&(key2=subValue,subValue=value[key2]),assignValue(result2,key2,baseClone(subValue,bitmask,customizer,key2,value,stack))}),result2}function baseConforms(source){var props=keys(source);return function(object){return baseConformsTo(object,source,props)}}function baseConformsTo(object,source,props){var length=props.length;if(object==null)return!length;for(object=Object2(object);length--;){var key=props[length],predicate=source[key],value=object[key];if(value===undefined2&&!(key in object)||!predicate(value))return!1}return!0}function baseDelay(func,wait,args){if(typeof func!="function")throw new TypeError2(FUNC_ERROR_TEXT);return setTimeout2(function(){func.apply(undefined2,args)},wait)}function baseDifference(array,values2,iteratee2,comparator){var index=-1,includes2=arrayIncludes,isCommon=!0,length=array.length,result2=[],valuesLength=values2.length;if(!length)return result2;iteratee2&&(values2=arrayMap(values2,baseUnary(iteratee2))),comparator?(includes2=arrayIncludesWith,isCommon=!1):values2.length>=LARGE_ARRAY_SIZE&&(includes2=cacheHas,isCommon=!1,values2=new SetCache(values2));outer:for(;++index<length;){var value=array[index],computed=iteratee2==null?value:iteratee2(value);if(value=comparator||value!==0?value:0,isCommon&&computed===computed){for(var valuesIndex=valuesLength;valuesIndex--;)if(values2[valuesIndex]===computed)continue outer;result2.push(value)}else includes2(values2,computed,comparator)||result2.push(value)}return result2}var baseEach=createBaseEach(baseForOwn),baseEachRight=createBaseEach(baseForOwnRight,!0);function baseEvery(collection,predicate){var result2=!0;return baseEach(collection,function(value,index,collection2){return result2=!!predicate(value,index,collection2),result2}),result2}function baseExtremum(array,iteratee2,comparator){for(var index=-1,length=array.length;++index<length;){var value=array[index],current=iteratee2(value);if(current!=null&&(computed===undefined2?current===current&&!isSymbol(current):comparator(current,computed)))var computed=current,result2=value}return result2}function baseFill(array,value,start,end){var length=array.length;for(start=toInteger(start),start<0&&(start=-start>length?0:length+start),end=end===undefined2||end>length?length:toInteger(end),end<0&&(end+=length),end=start>end?0:toLength(end);start<end;)array[start++]=value;return array}function baseFilter(collection,predicate){var result2=[];return baseEach(collection,function(value,index,collection2){predicate(value,index,collection2)&&result2.push(value)}),result2}function baseFlatten(array,depth,predicate,isStrict,result2){var index=-1,length=array.length;for(predicate||(predicate=isFlattenable),result2||(result2=[]);++index<length;){var value=array[index];depth>0&&predicate(value)?depth>1?baseFlatten(value,depth-1,predicate,isStrict,result2):arrayPush(result2,value):isStrict||(result2[result2.length]=value)}return result2}var baseFor=createBaseFor(),baseForRight=createBaseFor(!0);function baseForOwn(object,iteratee2){return object&&baseFor(object,iteratee2,keys)}function baseForOwnRight(object,iteratee2){return object&&baseForRight(object,iteratee2,keys)}function baseFunctions(object,props){return arrayFilter(props,function(key){return isFunction(object[key])})}function baseGet(object,path){path=castPath(path,object);for(var index=0,length=path.length;object!=null&&index<length;)object=object[toKey(path[index++])];return index&&index==length?object:undefined2}function baseGetAllKeys(object,keysFunc,symbolsFunc){var result2=keysFunc(object);return isArray(object)?result2:arrayPush(result2,symbolsFunc(object))}function baseGetTag(value){return value==null?value===undefined2?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object2(value)?getRawTag(value):objectToString(value)}function baseGt(value,other){return value>other}function baseHas(object,key){return object!=null&&hasOwnProperty2.call(object,key)}function baseHasIn(object,key){return object!=null&&key in Object2(object)}function baseInRange(number,start,end){return number>=nativeMin(start,end)&&number<nativeMax(start,end)}function baseIntersection(arrays,iteratee2,comparator){for(var includes2=comparator?arrayIncludesWith:arrayIncludes,length=arrays[0].length,othLength=arrays.length,othIndex=othLength,caches=Array2(othLength),maxLength=1/0,result2=[];othIndex--;){var array=arrays[othIndex];othIndex&&iteratee2&&(array=arrayMap(array,baseUnary(iteratee2))),maxLength=nativeMin(array.length,maxLength),caches[othIndex]=!comparator&&(iteratee2||length>=120&&array.length>=120)?new SetCache(othIndex&&array):undefined2}array=arrays[0];var index=-1,seen=caches[0];outer:for(;++index<length&&result2.length<maxLength;){var value=array[index],computed=iteratee2?iteratee2(value):value;if(value=comparator||value!==0?value:0,!(seen?cacheHas(seen,computed):includes2(result2,computed,comparator))){for(othIndex=othLength;--othIndex;){var cache=caches[othIndex];if(!(cache?cacheHas(cache,computed):includes2(arrays[othIndex],computed,comparator)))continue outer}seen&&seen.push(computed),result2.push(value)}}return result2}function baseInverter(object,setter,iteratee2,accumulator){return baseForOwn(object,function(value,key,object2){setter(accumulator,iteratee2(value),key,object2)}),accumulator}function baseInvoke(object,path,args){path=castPath(path,object),object=parent(object,path);var func=object==null?object:object[toKey(last(path))];return func==null?undefined2:apply(func,object,args)}function baseIsArguments(value){return isObjectLike(value)&&baseGetTag(value)==argsTag}function baseIsArrayBuffer(value){return isObjectLike(value)&&baseGetTag(value)==arrayBufferTag}function baseIsDate(value){return isObjectLike(value)&&baseGetTag(value)==dateTag}function baseIsEqual(value,other,bitmask,customizer,stack){return value===other?!0:value==null||other==null||!isObjectLike(value)&&!isObjectLike(other)?value!==value&&other!==other:baseIsEqualDeep(value,other,bitmask,customizer,baseIsEqual,stack)}function baseIsEqualDeep(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=objIsArr?arrayTag:getTag(object),othTag=othIsArr?arrayTag:getTag(other);objTag=objTag==argsTag?objectTag:objTag,othTag=othTag==argsTag?objectTag:othTag;var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&isBuffer(object)){if(!isBuffer(other))return!1;objIsArr=!0,objIsObj=!1}if(isSameTag&&!objIsObj)return stack||(stack=new Stack),objIsArr||isTypedArray(object)?equalArrays(object,other,bitmask,customizer,equalFunc,stack):equalByTag(object,other,objTag,bitmask,customizer,equalFunc,stack);if(!(bitmask&COMPARE_PARTIAL_FLAG)){var objIsWrapped=objIsObj&&hasOwnProperty2.call(object,"__wrapped__"),othIsWrapped=othIsObj&&hasOwnProperty2.call(other,"__wrapped__");if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;return stack||(stack=new Stack),equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack)}}return isSameTag?(stack||(stack=new Stack),equalObjects(object,other,bitmask,customizer,equalFunc,stack)):!1}function baseIsMap(value){return isObjectLike(value)&&getTag(value)==mapTag}function baseIsMatch(object,source,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(object==null)return!length;for(object=Object2(object);index--;){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++index<length;){data=matchData[index];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===undefined2&&!(key in object))return!1}else{var stack=new Stack;if(customizer)var result2=customizer(objValue,srcValue,key,object,source,stack);if(!(result2===undefined2?baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG,customizer,stack):result2))return!1}}return!0}function baseIsNative(value){if(!isObject(value)||isMasked(value))return!1;var pattern=isFunction(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value))}function baseIsRegExp(value){return isObjectLike(value)&&baseGetTag(value)==regexpTag}function baseIsSet(value){return isObjectLike(value)&&getTag(value)==setTag}function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)]}function baseIteratee(value){return typeof value=="function"?value:value==null?identity:typeof value=="object"?isArray(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value):property(value)}function baseKeys(object){if(!isPrototype(object))return nativeKeys(object);var result2=[];for(var key in Object2(object))hasOwnProperty2.call(object,key)&&key!="constructor"&&result2.push(key);return result2}function baseKeysIn(object){if(!isObject(object))return nativeKeysIn(object);var isProto=isPrototype(object),result2=[];for(var key in object)key=="constructor"&&(isProto||!hasOwnProperty2.call(object,key))||result2.push(key);return result2}function baseLt(value,other){return value<other}function baseMap(collection,iteratee2){var index=-1,result2=isArrayLike(collection)?Array2(collection.length):[];return baseEach(collection,function(value,key,collection2){result2[++index]=iteratee2(value,key,collection2)}),result2}function baseMatches(source){var matchData=getMatchData(source);return matchData.length==1&&matchData[0][2]?matchesStrictComparable(matchData[0][0],matchData[0][1]):function(object){return object===source||baseIsMatch(object,source,matchData)}}function baseMatchesProperty(path,srcValue){return isKey(path)&&isStrictComparable(srcValue)?matchesStrictComparable(toKey(path),srcValue):function(object){var objValue=get(object,path);return objValue===undefined2&&objValue===srcValue?hasIn(object,path):baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseMerge(object,source,srcIndex,customizer,stack){object!==source&&baseFor(source,function(srcValue,key){if(stack||(stack=new Stack),isObject(srcValue))baseMergeDeep(object,source,key,srcIndex,baseMerge,customizer,stack);else{var newValue=customizer?customizer(safeGet(object,key),srcValue,key+"",object,source,stack):undefined2;newValue===undefined2&&(newValue=srcValue),assignMergeValue(object,key,newValue)}},keysIn)}function baseMergeDeep(object,source,key,srcIndex,mergeFunc,customizer,stack){var objValue=safeGet(object,key),srcValue=safeGet(source,key),stacked=stack.get(srcValue);if(stacked){assignMergeValue(object,key,stacked);return}var newValue=customizer?customizer(objValue,srcValue,key+"",object,source,stack):undefined2,isCommon=newValue===undefined2;if(isCommon){var isArr=isArray(srcValue),isBuff=!isArr&&isBuffer(srcValue),isTyped=!isArr&&!isBuff&&isTypedArray(srcValue);newValue=srcValue,isArr||isBuff||isTyped?isArray(objValue)?newValue=objValue:isArrayLikeObject(objValue)?newValue=copyArray(objValue):isBuff?(isCommon=!1,newValue=cloneBuffer(srcValue,!0)):isTyped?(isCommon=!1,newValue=cloneTypedArray(srcValue,!0)):newValue=[]:isPlainObject(srcValue)||isArguments(srcValue)?(newValue=objValue,isArguments(objValue)?newValue=toPlainObject(objValue):(!isObject(objValue)||isFunction(objValue))&&(newValue=initCloneObject(srcValue))):isCommon=!1}isCommon&&(stack.set(srcValue,newValue),mergeFunc(newValue,srcValue,srcIndex,customizer,stack),stack.delete(srcValue)),assignMergeValue(object,key,newValue)}function baseNth(array,n){var length=array.length;if(!!length)return n+=n<0?length:0,isIndex(n,length)?array[n]:undefined2}function baseOrderBy(collection,iteratees,orders){iteratees.length?iteratees=arrayMap(iteratees,function(iteratee2){return isArray(iteratee2)?function(value){return baseGet(value,iteratee2.length===1?iteratee2[0]:iteratee2)}:iteratee2}):iteratees=[identity];var index=-1;iteratees=arrayMap(iteratees,baseUnary(getIteratee()));var result2=baseMap(collection,function(value,key,collection2){var criteria=arrayMap(iteratees,function(iteratee2){return iteratee2(value)});return{criteria,index:++index,value}});return baseSortBy(result2,function(object,other){return compareMultiple(object,other,orders)})}function basePick(object,paths){return basePickBy(object,paths,function(value,path){return hasIn(object,path)})}function basePickBy(object,paths,predicate){for(var index=-1,length=paths.length,result2={};++index<length;){var path=paths[index],value=baseGet(object,path);predicate(value,path)&&baseSet(result2,castPath(path,object),value)}return result2}function basePropertyDeep(path){return function(object){return baseGet(object,path)}}function basePullAll(array,values2,iteratee2,comparator){var indexOf2=comparator?baseIndexOfWith:baseIndexOf,index=-1,length=values2.length,seen=array;for(array===values2&&(values2=copyArray(values2)),iteratee2&&(seen=arrayMap(array,baseUnary(iteratee2)));++index<length;)for(var fromIndex=0,value=values2[index],computed=iteratee2?iteratee2(value):value;(fromIndex=indexOf2(seen,computed,fromIndex,comparator))>-1;)seen!==array&&splice.call(seen,fromIndex,1),splice.call(array,fromIndex,1);return array}function basePullAt(array,indexes){for(var length=array?indexes.length:0,lastIndex=length-1;length--;){var index=indexes[length];if(length==lastIndex||index!==previous){var previous=index;isIndex(index)?splice.call(array,index,1):baseUnset(array,index)}}return array}function baseRandom(lower,upper){return lower+nativeFloor(nativeRandom()*(upper-lower+1))}function baseRange(start,end,step,fromRight){for(var index=-1,length=nativeMax(nativeCeil((end-start)/(step||1)),0),result2=Array2(length);length--;)result2[fromRight?length:++index]=start,start+=step;return result2}function baseRepeat(string,n){var result2="";if(!string||n<1||n>MAX_SAFE_INTEGER)return result2;do n%2&&(result2+=string),n=nativeFloor(n/2),n&&(string+=string);while(n);return result2}function baseRest(func,start){return setToString(overRest(func,start,identity),func+"")}function baseSample(collection){return arraySample(values(collection))}function baseSampleSize(collection,n){var array=values(collection);return shuffleSelf(array,baseClamp(n,0,array.length))}function baseSet(object,path,value,customizer){if(!isObject(object))return object;path=castPath(path,object);for(var index=-1,length=path.length,lastIndex=length-1,nested=object;nested!=null&&++index<length;){var key=toKey(path[index]),newValue=value;if(key==="__proto__"||key==="constructor"||key==="prototype")return object;if(index!=lastIndex){var objValue=nested[key];newValue=customizer?customizer(objValue,key,nested):undefined2,newValue===undefined2&&(newValue=isObject(objValue)?objValue:isIndex(path[index+1])?[]:{})}assignValue(nested,key,newValue),nested=nested[key]}return object}var baseSetData=metaMap?function(func,data){return metaMap.set(func,data),func}:identity,baseSetToString=defineProperty?function(func,string){return defineProperty(func,"toString",{configurable:!0,enumerable:!1,value:constant(string),writable:!0})}:identity;function baseShuffle(collection){return shuffleSelf(values(collection))}function baseSlice(array,start,end){var index=-1,length=array.length;start<0&&(start=-start>length?0:length+start),end=end>length?length:end,end<0&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result2=Array2(length);++index<length;)result2[index]=array[index+start];return result2}function baseSome(collection,predicate){var result2;return baseEach(collection,function(value,index,collection2){return result2=predicate(value,index,collection2),!result2}),!!result2}function baseSortedIndex(array,value,retHighest){var low=0,high=array==null?low:array.length;if(typeof value=="number"&&value===value&&high<=HALF_MAX_ARRAY_LENGTH){for(;low<high;){var mid=low+high>>>1,computed=array[mid];computed!==null&&!isSymbol(computed)&&(retHighest?computed<=value:computed<value)?low=mid+1:high=mid}return high}return baseSortedIndexBy(array,value,identity,retHighest)}function baseSortedIndexBy(array,value,iteratee2,retHighest){var low=0,high=array==null?0:array.length;if(high===0)return 0;value=iteratee2(value);for(var valIsNaN=value!==value,valIsNull=value===null,valIsSymbol=isSymbol(value),valIsUndefined=value===undefined2;low<high;){var mid=nativeFloor((low+high)/2),computed=iteratee2(array[mid]),othIsDefined=computed!==undefined2,othIsNull=computed===null,othIsReflexive=computed===computed,othIsSymbol=isSymbol(computed);if(valIsNaN)var setLow=retHighest||othIsReflexive;else valIsUndefined?setLow=othIsReflexive&&(retHighest||othIsDefined):valIsNull?setLow=othIsReflexive&&othIsDefined&&(retHighest||!othIsNull):valIsSymbol?setLow=othIsReflexive&&othIsDefined&&!othIsNull&&(retHighest||!othIsSymbol):othIsNull||othIsSymbol?setLow=!1:setLow=retHighest?computed<=value:computed<value;setLow?low=mid+1:high=mid}return nativeMin(high,MAX_ARRAY_INDEX)}function baseSortedUniq(array,iteratee2){for(var index=-1,length=array.length,resIndex=0,result2=[];++index<length;){var value=array[index],computed=iteratee2?iteratee2(value):value;if(!index||!eq(computed,seen)){var seen=computed;result2[resIndex++]=value===0?0:value}}return result2}function baseToNumber(value){return typeof value=="number"?value:isSymbol(value)?NAN:+value}function baseToString(value){if(typeof value=="string")return value;if(isArray(value))return arrayMap(value,baseToString)+"";if(isSymbol(value))return symbolToString?symbolToString.call(value):"";var result2=value+"";return result2=="0"&&1/value==-INFINITY?"-0":result2}function baseUniq(array,iteratee2,comparator){var index=-1,includes2=arrayIncludes,length=array.length,isCommon=!0,result2=[],seen=result2;if(comparator)isCommon=!1,includes2=arrayIncludesWith;else if(length>=LARGE_ARRAY_SIZE){var set2=iteratee2?null:createSet(array);if(set2)return setToArray(set2);isCommon=!1,includes2=cacheHas,seen=new SetCache}else seen=iteratee2?[]:result2;outer:for(;++index<length;){var value=array[index],computed=iteratee2?iteratee2(value):value;if(value=comparator||value!==0?value:0,isCommon&&computed===computed){for(var seenIndex=seen.length;seenIndex--;)if(seen[seenIndex]===computed)continue outer;iteratee2&&seen.push(computed),result2.push(value)}else includes2(seen,computed,comparator)||(seen!==result2&&seen.push(computed),result2.push(value))}return result2}function baseUnset(object,path){return path=castPath(path,object),object=parent(object,path),object==null||delete object[toKey(last(path))]}function baseUpdate(object,path,updater,customizer){return baseSet(object,path,updater(baseGet(object,path)),customizer)}function baseWhile(array,predicate,isDrop,fromRight){for(var length=array.length,index=fromRight?length:-1;(fromRight?index--:++index<length)&&predicate(array[index],index,array););return isDrop?baseSlice(array,fromRight?0:index,fromRight?index+1:length):baseSlice(array,fromRight?index+1:0,fromRight?length:index)}function baseWrapperValue(value,actions){var result2=value;return result2 instanceof LazyWrapper&&(result2=result2.value()),arrayReduce(actions,function(result3,action){return action.func.apply(action.thisArg,arrayPush([result3],action.args))},result2)}function baseXor(arrays,iteratee2,comparator){var length=arrays.length;if(length<2)return length?baseUniq(arrays[0]):[];for(var index=-1,result2=Array2(length);++index<length;)for(var array=arrays[index],othIndex=-1;++othIndex<length;)othIndex!=index&&(result2[index]=baseDifference(result2[index]||array,arrays[othIndex],iteratee2,comparator));return baseUniq(baseFlatten(result2,1),iteratee2,comparator)}function baseZipObject(props,values2,assignFunc){for(var index=-1,length=props.length,valsLength=values2.length,result2={};++index<length;){var value=index<valsLength?values2[index]:undefined2;assignFunc(result2,props[index],value)}return result2}function castArrayLikeObject(value){return isArrayLikeObject(value)?value:[]}function castFunction(value){return typeof value=="function"?value:identity}function castPath(value,object){return isArray(value)?value:isKey(value,object)?[value]:stringToPath(toString(value))}var castRest=baseRest;function castSlice(array,start,end){var length=array.length;return end=end===undefined2?length:end,!start&&end>=length?array:baseSlice(array,start,end)}var clearTimeout2=ctxClearTimeout||function(id){return root.clearTimeout(id)};function cloneBuffer(buffer,isDeep){if(isDeep)return buffer.slice();var length=buffer.length,result2=allocUnsafe?allocUnsafe(length):new buffer.constructor(length);return buffer.copy(result2),result2}function cloneArrayBuffer(arrayBuffer){var result2=new arrayBuffer.constructor(arrayBuffer.byteLength);return new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer)),result2}function cloneDataView(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength)}function cloneRegExp(regexp){var result2=new regexp.constructor(regexp.source,reFlags.exec(regexp));return result2.lastIndex=regexp.lastIndex,result2}function cloneSymbol(symbol){return symbolValueOf?Object2(symbolValueOf.call(symbol)):{}}function cloneTypedArray(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length)}function compareAscending(value,other){if(value!==other){var valIsDefined=value!==undefined2,valIsNull=value===null,valIsReflexive=value===value,valIsSymbol=isSymbol(value),othIsDefined=other!==undefined2,othIsNull=other===null,othIsReflexive=other===other,othIsSymbol=isSymbol(other);if(!othIsNull&&!othIsSymbol&&!valIsSymbol&&value>other||valIsSymbol&&othIsDefined&&othIsReflexive&&!othIsNull&&!othIsSymbol||valIsNull&&othIsDefined&&othIsReflexive||!valIsDefined&&othIsReflexive||!valIsReflexive)return 1;if(!valIsNull&&!valIsSymbol&&!othIsSymbol&&value<other||othIsSymbol&&valIsDefined&&valIsReflexive&&!valIsNull&&!valIsSymbol||othIsNull&&valIsDefined&&valIsReflexive||!othIsDefined&&valIsReflexive||!othIsReflexive)return-1}return 0}function compareMultiple(object,other,orders){for(var index=-1,objCriteria=object.criteria,othCriteria=other.criteria,length=objCriteria.length,ordersLength=orders.length;++index<length;){var result2=compareAscending(objCriteria[index],othCriteria[index]);if(result2){if(index>=ordersLength)return result2;var order=orders[index];return result2*(order=="desc"?-1:1)}}return object.index-other.index}function composeArgs(args,partials,holders,isCurried){for(var argsIndex=-1,argsLength=args.length,holdersLength=holders.length,leftIndex=-1,leftLength=partials.length,rangeLength=nativeMax(argsLength-holdersLength,0),result2=Array2(leftLength+rangeLength),isUncurried=!isCurried;++leftIndex<leftLength;)result2[leftIndex]=partials[leftIndex];for(;++argsIndex<holdersLength;)(isUncurried||argsIndex<argsLength)&&(result2[holders[argsIndex]]=args[argsIndex]);for(;rangeLength--;)result2[leftIndex++]=args[argsIndex++];return result2}function composeArgsRight(args,partials,holders,isCurried){for(var argsIndex=-1,argsLength=args.length,holdersIndex=-1,holdersLength=holders.length,rightIndex=-1,rightLength=partials.length,rangeLength=nativeMax(argsLength-holdersLength,0),result2=Array2(rangeLength+rightLength),isUncurried=!isCurried;++argsIndex<rangeLength;)result2[argsIndex]=args[argsIndex];for(var offset=argsIndex;++rightIndex<rightLength;)result2[offset+rightIndex]=partials[rightIndex];for(;++holdersIndex<holdersLength;)(isUncurried||argsIndex<argsLength)&&(result2[offset+holders[holdersIndex]]=args[argsIndex++]);return result2}function copyArray(source,array){var index=-1,length=source.length;for(array||(array=Array2(length));++index<length;)array[index]=source[index];return array}function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});for(var index=-1,length=props.length;++index<length;){var key=props[index],newValue=customizer?customizer(object[key],source[key],key,object,source):undefined2;newValue===undefined2&&(newValue=source[key]),isNew?baseAssignValue(object,key,newValue):assignValue(object,key,newValue)}return object}function copySymbols(source,object){return copyObject(source,getSymbols(source),object)}function copySymbolsIn(source,object){return copyObject(source,getSymbolsIn(source),object)}function createAggregator(setter,initializer){return function(collection,iteratee2){var func=isArray(collection)?arrayAggregator:baseAggregator,accumulator=initializer?initializer():{};return func(collection,setter,getIteratee(iteratee2,2),accumulator)}}function createAssigner(assigner){return baseRest(function(object,sources){var index=-1,length=sources.length,customizer=length>1?sources[length-1]:undefined2,guard=length>2?sources[2]:undefined2;for(customizer=assigner.length>3&&typeof customizer=="function"?(length--,customizer):undefined2,guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=length<3?undefined2:customizer,length=1),object=Object2(object);++index<length;){var source=sources[index];source&&assigner(object,source,index,customizer)}return object})}function createBaseEach(eachFunc,fromRight){return function(collection,iteratee2){if(collection==null)return collection;if(!isArrayLike(collection))return eachFunc(collection,iteratee2);for(var length=collection.length,index=fromRight?length:-1,iterable=Object2(collection);(fromRight?index--:++index<length)&&iteratee2(iterable[index],index,iterable)!==!1;);return collection}}function createBaseFor(fromRight){return function(object,iteratee2,keysFunc){for(var index=-1,iterable=Object2(object),props=keysFunc(object),length=props.length;length--;){var key=props[fromRight?length:++index];if(iteratee2(iterable[key],key,iterable)===!1)break}return object}}function createBind(func,bitmask,thisArg){var isBind=bitmask&WRAP_BIND_FLAG,Ctor=createCtor(func);function wrapper(){var fn=this&&this!==root&&this instanceof wrapper?Ctor:func;return fn.apply(isBind?thisArg:this,arguments)}return wrapper}function createCaseFirst(methodName){return function(string){string=toString(string);var strSymbols=hasUnicode(string)?stringToArray(string):undefined2,chr=strSymbols?strSymbols[0]:string.charAt(0),trailing=strSymbols?castSlice(strSymbols,1).join(""):string.slice(1);return chr[methodName]()+trailing}}function createCompounder(callback){return function(string){return arrayReduce(words(deburr(string).replace(reApos,"")),callback,"")}}function createCtor(Ctor){return function(){var args=arguments;switch(args.length){case 0:return new Ctor;case 1:return new Ctor(args[0]);case 2:return new Ctor(args[0],args[1]);case 3:return new Ctor(args[0],args[1],args[2]);case 4:return new Ctor(args[0],args[1],args[2],args[3]);case 5:return new Ctor(args[0],args[1],args[2],args[3],args[4]);case 6:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5]);case 7:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5],args[6])}var thisBinding=baseCreate(Ctor.prototype),result2=Ctor.apply(thisBinding,args);return isObject(result2)?result2:thisBinding}}function createCurry(func,bitmask,arity){var Ctor=createCtor(func);function wrapper(){for(var length=arguments.length,args=Array2(length),index=length,placeholder=getHolder(wrapper);index--;)args[index]=arguments[index];var holders=length<3&&args[0]!==placeholder&&args[length-1]!==placeholder?[]:replaceHolders(args,placeholder);if(length-=holders.length,length<arity)return createRecurry(func,bitmask,createHybrid,wrapper.placeholder,undefined2,args,holders,undefined2,undefined2,arity-length);var fn=this&&this!==root&&this instanceof wrapper?Ctor:func;return apply(fn,this,args)}return wrapper}function createFind(findIndexFunc){return function(collection,predicate,fromIndex){var iterable=Object2(collection);if(!isArrayLike(collection)){var iteratee2=getIteratee(predicate,3);collection=keys(collection),predicate=function(key){return iteratee2(iterable[key],key,iterable)}}var index=findIndexFunc(collection,predicate,fromIndex);return index>-1?iterable[iteratee2?collection[index]:index]:undefined2}}function createFlow(fromRight){return flatRest(function(funcs){var length=funcs.length,index=length,prereq=LodashWrapper.prototype.thru;for(fromRight&&funcs.reverse();index--;){var func=funcs[index];if(typeof func!="function")throw new TypeError2(FUNC_ERROR_TEXT);if(prereq&&!wrapper&&getFuncName(func)=="wrapper")var wrapper=new LodashWrapper([],!0)}for(index=wrapper?index:length;++index<length;){func=funcs[index];var funcName=getFuncName(func),data=funcName=="wrapper"?getData(func):undefined2;data&&isLaziable(data[0])&&data[1]==(WRAP_ARY_FLAG|WRAP_CURRY_FLAG|WRAP_PARTIAL_FLAG|WRAP_REARG_FLAG)&&!data[4].length&&data[9]==1?wrapper=wrapper[getFuncName(data[0])].apply(wrapper,data[3]):wrapper=func.length==1&&isLaziable(func)?wrapper[funcName]():wrapper.thru(func)}return function(){var args=arguments,value=args[0];if(wrapper&&args.length==1&&isArray(value))return wrapper.plant(value).value();for(var index2=0,result2=length?funcs[index2].apply(this,args):value;++index2<length;)result2=funcs[index2].call(this,result2);return result2}})}function createHybrid(func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary2,arity){var isAry=bitmask&WRAP_ARY_FLAG,isBind=bitmask&WRAP_BIND_FLAG,isBindKey=bitmask&WRAP_BIND_KEY_FLAG,isCurried=bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG),isFlip=bitmask&WRAP_FLIP_FLAG,Ctor=isBindKey?undefined2:createCtor(func);function wrapper(){for(var length=arguments.length,args=Array2(length),index=length;index--;)args[index]=arguments[index];if(isCurried)var placeholder=getHolder(wrapper),holdersCount=countHolders(args,placeholder);if(partials&&(args=composeArgs(args,partials,holders,isCurried)),partialsRight&&(args=composeArgsRight(args,partialsRight,holdersRight,isCurried)),length-=holdersCount,isCurried&&length<arity){var newHolders=replaceHolders(args,placeholder);return createRecurry(func,bitmask,createHybrid,wrapper.placeholder,thisArg,args,newHolders,argPos,ary2,arity-length)}var thisBinding=isBind?thisArg:this,fn=isBindKey?thisBinding[func]:func;return length=args.length,argPos?args=reorder(args,argPos):isFlip&&length>1&&args.reverse(),isAry&&ary2<length&&(args.length=ary2),this&&this!==root&&this instanceof wrapper&&(fn=Ctor||createCtor(fn)),fn.apply(thisBinding,args)}return wrapper}function createInverter(setter,toIteratee){return function(object,iteratee2){return baseInverter(object,setter,toIteratee(iteratee2),{})}}function createMathOperation(operator,defaultValue){return function(value,other){var result2;if(value===undefined2&&other===undefined2)return defaultValue;if(value!==undefined2&&(result2=value),other!==undefined2){if(result2===undefined2)return other;typeof value=="string"||typeof other=="string"?(value=baseToString(value),other=baseToString(other)):(value=baseToNumber(value),other=baseToNumber(other)),result2=operator(value,other)}return result2}}function createOver(arrayFunc){return flatRest(function(iteratees){return iteratees=arrayMap(iteratees,baseUnary(getIteratee())),baseRest(function(args){var thisArg=this;return arrayFunc(iteratees,function(iteratee2){return apply(iteratee2,thisArg,args)})})})}function createPadding(length,chars){chars=chars===undefined2?" ":baseToString(chars);var charsLength=chars.length;if(charsLength<2)return charsLength?baseRepeat(chars,length):chars;var result2=baseRepeat(chars,nativeCeil(length/stringSize(chars)));return hasUnicode(chars)?castSlice(stringToArray(result2),0,length).join(""):result2.slice(0,length)}function createPartial(func,bitmask,thisArg,partials){var isBind=bitmask&WRAP_BIND_FLAG,Ctor=createCtor(func);function wrapper(){for(var argsIndex=-1,argsLength=arguments.length,leftIndex=-1,leftLength=partials.length,args=Array2(leftLength+argsLength),fn=this&&this!==root&&this instanceof wrapper?Ctor:func;++leftIndex<leftLength;)args[leftIndex]=partials[leftIndex];for(;argsLength--;)args[leftIndex++]=arguments[++argsIndex];return apply(fn,isBind?thisArg:this,args)}return wrapper}function createRange(fromRight){return function(start,end,step){return step&&typeof step!="number"&&isIterateeCall(start,end,step)&&(end=step=undefined2),start=toFinite(start),end===undefined2?(end=start,start=0):end=toFinite(end),step=step===undefined2?start<end?1:-1:toFinite(step),baseRange(start,end,step,fromRight)}}function createRelationalOperation(operator){return function(value,other){return typeof value=="string"&&typeof other=="string"||(value=toNumber(value),other=toNumber(other)),operator(value,other)}}function createRecurry(func,bitmask,wrapFunc,placeholder,thisArg,partials,holders,argPos,ary2,arity){var isCurry=bitmask&WRAP_CURRY_FLAG,newHolders=isCurry?holders:undefined2,newHoldersRight=isCurry?undefined2:holders,newPartials=isCurry?partials:undefined2,newPartialsRight=isCurry?undefined2:partials;bitmask|=isCurry?WRAP_PARTIAL_FLAG:WRAP_PARTIAL_RIGHT_FLAG,bitmask&=~(isCurry?WRAP_PARTIAL_RIGHT_FLAG:WRAP_PARTIAL_FLAG),bitmask&WRAP_CURRY_BOUND_FLAG||(bitmask&=~(WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG));var newData=[func,bitmask,thisArg,newPartials,newHolders,newPartialsRight,newHoldersRight,argPos,ary2,arity],result2=wrapFunc.apply(undefined2,newData);return isLaziable(func)&&setData(result2,newData),result2.placeholder=placeholder,setWrapToString(result2,func,bitmask)}function createRound(methodName){var func=Math2[methodName];return function(number,precision){if(number=toNumber(number),precision=precision==null?0:nativeMin(toInteger(precision),292),precision&&nativeIsFinite(number)){var pair=(toString(number)+"e").split("e"),value=func(pair[0]+"e"+(+pair[1]+precision));return pair=(toString(value)+"e").split("e"),+(pair[0]+"e"+(+pair[1]-precision))}return func(number)}}var createSet=Set2&&1/setToArray(new Set2([,-0]))[1]==INFINITY?function(values2){return new Set2(values2)}:noop;function createToPairs(keysFunc){return function(object){var tag=getTag(object);return tag==mapTag?mapToArray(object):tag==setTag?setToPairs(object):baseToPairs(object,keysFunc(object))}}function createWrap(func,bitmask,thisArg,partials,holders,argPos,ary2,arity){var isBindKey=bitmask&WRAP_BIND_KEY_FLAG;if(!isBindKey&&typeof func!="function")throw new TypeError2(FUNC_ERROR_TEXT);var length=partials?partials.length:0;if(length||(bitmask&=~(WRAP_PARTIAL_FLAG|WRAP_PARTIAL_RIGHT_FLAG),partials=holders=undefined2),ary2=ary2===undefined2?ary2:nativeMax(toInteger(ary2),0),arity=arity===undefined2?arity:toInteger(arity),length-=holders?holders.length:0,bitmask&WRAP_PARTIAL_RIGHT_FLAG){var partialsRight=partials,holdersRight=holders;partials=holders=undefined2}var data=isBindKey?undefined2:getData(func),newData=[func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary2,arity];if(data&&mergeData(newData,data),func=newData[0],bitmask=newData[1],thisArg=newData[2],partials=newData[3],holders=newData[4],arity=newData[9]=newData[9]===undefined2?isBindKey?0:func.length:nativeMax(newData[9]-length,0),!arity&&bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG)&&(bitmask&=~(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG)),!bitmask||bitmask==WRAP_BIND_FLAG)var result2=createBind(func,bitmask,thisArg);else bitmask==WRAP_CURRY_FLAG||bitmask==WRAP_CURRY_RIGHT_FLAG?result2=createCurry(func,bitmask,arity):(bitmask==WRAP_PARTIAL_FLAG||bitmask==(WRAP_BIND_FLAG|WRAP_PARTIAL_FLAG))&&!holders.length?result2=createPartial(func,bitmask,thisArg,partials):result2=createHybrid.apply(undefined2,newData);var setter=data?baseSetData:setData;return setWrapToString(setter(result2,newData),func,bitmask)}function customDefaultsAssignIn(objValue,srcValue,key,object){return objValue===undefined2||eq(objValue,objectProto[key])&&!hasOwnProperty2.call(object,key)?srcValue:objValue}function customDefaultsMerge(objValue,srcValue,key,object,source,stack){return isObject(objValue)&&isObject(srcValue)&&(stack.set(srcValue,objValue),baseMerge(objValue,srcValue,undefined2,customDefaultsMerge,stack),stack.delete(srcValue)),objValue}function customOmitClone(value){return isPlainObject(value)?undefined2:value}function equalArrays(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength))return!1;var arrStacked=stack.get(array),othStacked=stack.get(other);if(arrStacked&&othStacked)return arrStacked==other&&othStacked==array;var index=-1,result2=!0,seen=bitmask&COMPARE_UNORDERED_FLAG?new SetCache:undefined2;for(stack.set(array,other),stack.set(other,array);++index<arrLength;){var arrValue=array[index],othValue=other[index];if(customizer)var compared=isPartial?customizer(othValue,arrValue,index,other,array,stack):customizer(arrValue,othValue,index,array,other,stack);if(compared!==undefined2){if(compared)continue;result2=!1;break}if(seen){if(!arraySome(other,function(othValue2,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue2||equalFunc(arrValue,othValue2,bitmask,customizer,stack)))return seen.push(othIndex)})){result2=!1;break}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result2=!1;break}}return stack.delete(array),stack.delete(other),result2}function equalByTag(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case dataViewTag:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset)return!1;object=object.buffer,other=other.buffer;case arrayBufferTag:return!(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array2(object),new Uint8Array2(other)));case boolTag:case dateTag:case numberTag:return eq(+object,+other);case errorTag:return object.name==other.name&&object.message==other.message;case regexpTag:case stringTag:return object==other+"";case mapTag:var convert=mapToArray;case setTag:var isPartial=bitmask&COMPARE_PARTIAL_FLAG;if(convert||(convert=setToArray),object.size!=other.size&&!isPartial)return!1;var stacked=stack.get(object);if(stacked)return stacked==other;bitmask|=COMPARE_UNORDERED_FLAG,stack.set(object,other);var result2=equalArrays(convert(object),convert(other),bitmask,customizer,equalFunc,stack);return stack.delete(object),result2;case symbolTag:if(symbolValueOf)return symbolValueOf.call(object)==symbolValueOf.call(other)}return!1}function equalObjects(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,objProps=getAllKeys(object),objLength=objProps.length,othProps=getAllKeys(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial)return!1;for(var index=objLength;index--;){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty2.call(other,key)))return!1}var objStacked=stack.get(object),othStacked=stack.get(other);if(objStacked&&othStacked)return objStacked==other&&othStacked==object;var result2=!0;stack.set(object,other),stack.set(other,object);for(var skipCtor=isPartial;++index<objLength;){key=objProps[index];var objValue=object[key],othValue=other[key];if(customizer)var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);if(!(compared===undefined2?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result2=!1;break}skipCtor||(skipCtor=key=="constructor")}if(result2&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!(typeof objCtor=="function"&&objCtor instanceof objCtor&&typeof othCtor=="function"&&othCtor instanceof othCtor)&&(result2=!1)}return stack.delete(object),stack.delete(other),result2}function flatRest(func){return setToString(overRest(func,undefined2,flatten),func+"")}function getAllKeys(object){return baseGetAllKeys(object,keys,getSymbols)}function getAllKeysIn(object){return baseGetAllKeys(object,keysIn,getSymbolsIn)}var getData=metaMap?function(func){return metaMap.get(func)}:noop;function getFuncName(func){for(var result2=func.name+"",array=realNames[result2],length=hasOwnProperty2.call(realNames,result2)?array.length:0;length--;){var data=array[length],otherFunc=data.func;if(otherFunc==null||otherFunc==func)return data.name}return result2}function getHolder(func){var object=hasOwnProperty2.call(lodash,"placeholder")?lodash:func;return object.placeholder}function getIteratee(){var result2=lodash.iteratee||iteratee;return result2=result2===iteratee?baseIteratee:result2,arguments.length?result2(arguments[0],arguments[1]):result2}function getMapData(map2,key){var data=map2.__data__;return isKeyable(key)?data[typeof key=="string"?"string":"hash"]:data.map}function getMatchData(object){for(var result2=keys(object),length=result2.length;length--;){var key=result2[length],value=object[key];result2[length]=[key,value,isStrictComparable(value)]}return result2}function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined2}function getRawTag(value){var isOwn=hasOwnProperty2.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=undefined2;var unmasked=!0}catch{}var result2=nativeObjectToString.call(value);return unmasked&&(isOwn?value[symToStringTag]=tag:delete value[symToStringTag]),result2}var getSymbols=nativeGetSymbols?function(object){return object==null?[]:(object=Object2(object),arrayFilter(nativeGetSymbols(object),function(symbol){return propertyIsEnumerable.call(object,symbol)}))}:stubArray,getSymbolsIn=nativeGetSymbols?function(object){for(var result2=[];object;)arrayPush(result2,getSymbols(object)),object=getPrototype(object);return result2}:stubArray,getTag=baseGetTag;(DataView2&&getTag(new DataView2(new ArrayBuffer(1)))!=dataViewTag||Map2&&getTag(new Map2)!=mapTag||Promise2&&getTag(Promise2.resolve())!=promiseTag||Set2&&getTag(new Set2)!=setTag||WeakMap2&&getTag(new WeakMap2)!=weakMapTag)&&(getTag=function(value){var result2=baseGetTag(value),Ctor=result2==objectTag?value.constructor:undefined2,ctorString=Ctor?toSource(Ctor):"";if(ctorString)switch(ctorString){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return result2});function getView(start,end,transforms){for(var index=-1,length=transforms.length;++index<length;){var data=transforms[index],size2=data.size;switch(data.type){case"drop":start+=size2;break;case"dropRight":end-=size2;break;case"take":end=nativeMin(end,start+size2);break;case"takeRight":start=nativeMax(start,end-size2);break}}return{start,end}}function getWrapDetails(source){var match=source.match(reWrapDetails);return match?match[1].split(reSplitDetails):[]}function hasPath(object,path,hasFunc){path=castPath(path,object);for(var index=-1,length=path.length,result2=!1;++index<length;){var key=toKey(path[index]);if(!(result2=object!=null&&hasFunc(object,key)))break;object=object[key]}return result2||++index!=length?result2:(length=object==null?0:object.length,!!length&&isLength(length)&&isIndex(key,length)&&(isArray(object)||isArguments(object)))}function initCloneArray(array){var length=array.length,result2=new array.constructor(length);return length&&typeof array[0]=="string"&&hasOwnProperty2.call(array,"index")&&(result2.index=array.index,result2.input=array.input),result2}function initCloneObject(object){return typeof object.constructor=="function"&&!isPrototype(object)?baseCreate(getPrototype(object)):{}}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return cloneArrayBuffer(object);case boolTag:case dateTag:return new Ctor(+object);case dataViewTag:return cloneDataView(object,isDeep);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:return cloneTypedArray(object,isDeep);case mapTag:return new Ctor;case numberTag:case stringTag:return new Ctor(object);case regexpTag:return cloneRegExp(object);case setTag:return new Ctor;case symbolTag:return cloneSymbol(object)}}function insertWrapDetails(source,details){var length=details.length;if(!length)return source;var lastIndex=length-1;return details[lastIndex]=(length>1?"& ":"")+details[lastIndex],details=details.join(length>2?", ":" "),source.replace(reWrapComment,`{
|
37
|
-
/* [wrapped with `+details+`] */
|
38
|
-
`)}function isFlattenable(value){return isArray(value)||isArguments(value)||!!(spreadableSymbol&&value&&value[spreadableSymbol])}function isIndex(value,length){var type=typeof value;return length=length??MAX_SAFE_INTEGER,!!length&&(type=="number"||type!="symbol"&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length}function isIterateeCall(value,index,object){if(!isObject(object))return!1;var type=typeof index;return(type=="number"?isArrayLike(object)&&isIndex(index,object.length):type=="string"&&index in object)?eq(object[index],value):!1}function isKey(value,object){if(isArray(value))return!1;var type=typeof value;return type=="number"||type=="symbol"||type=="boolean"||value==null||isSymbol(value)?!0:reIsPlainProp.test(value)||!reIsDeepProp.test(value)||object!=null&&value in Object2(object)}function isKeyable(value){var type=typeof value;return type=="string"||type=="number"||type=="symbol"||type=="boolean"?value!=="__proto__":value===null}function isLaziable(func){var funcName=getFuncName(func),other=lodash[funcName];if(typeof other!="function"||!(funcName in LazyWrapper.prototype))return!1;if(func===other)return!0;var data=getData(other);return!!data&&func===data[0]}function isMasked(func){return!!maskSrcKey&&maskSrcKey in func}var isMaskable=coreJsData?isFunction:stubFalse;function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor=="function"&&Ctor.prototype||objectProto;return value===proto}function isStrictComparable(value){return value===value&&!isObject(value)}function matchesStrictComparable(key,srcValue){return function(object){return object==null?!1:object[key]===srcValue&&(srcValue!==undefined2||key in Object2(object))}}function memoizeCapped(func){var result2=memoize(func,function(key){return cache.size===MAX_MEMOIZE_SIZE&&cache.clear(),key}),cache=result2.cache;return result2}function mergeData(data,source){var bitmask=data[1],srcBitmask=source[1],newBitmask=bitmask|srcBitmask,isCommon=newBitmask<(WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG|WRAP_ARY_FLAG),isCombo=srcBitmask==WRAP_ARY_FLAG&&bitmask==WRAP_CURRY_FLAG||srcBitmask==WRAP_ARY_FLAG&&bitmask==WRAP_REARG_FLAG&&data[7].length<=source[8]||srcBitmask==(WRAP_ARY_FLAG|WRAP_REARG_FLAG)&&source[7].length<=source[8]&&bitmask==WRAP_CURRY_FLAG;if(!(isCommon||isCombo))return data;srcBitmask&WRAP_BIND_FLAG&&(data[2]=source[2],newBitmask|=bitmask&WRAP_BIND_FLAG?0:WRAP_CURRY_BOUND_FLAG);var value=source[3];if(value){var partials=data[3];data[3]=partials?composeArgs(partials,value,source[4]):value,data[4]=partials?replaceHolders(data[3],PLACEHOLDER):source[4]}return value=source[5],value&&(partials=data[5],data[5]=partials?composeArgsRight(partials,value,source[6]):value,data[6]=partials?replaceHolders(data[5],PLACEHOLDER):source[6]),value=source[7],value&&(data[7]=value),srcBitmask&WRAP_ARY_FLAG&&(data[8]=data[8]==null?source[8]:nativeMin(data[8],source[8])),data[9]==null&&(data[9]=source[9]),data[0]=source[0],data[1]=newBitmask,data}function nativeKeysIn(object){var result2=[];if(object!=null)for(var key in Object2(object))result2.push(key);return result2}function objectToString(value){return nativeObjectToString.call(value)}function overRest(func,start,transform2){return start=nativeMax(start===undefined2?func.length-1:start,0),function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),array=Array2(length);++index<length;)array[index]=args[start+index];index=-1;for(var otherArgs=Array2(start+1);++index<start;)otherArgs[index]=args[index];return otherArgs[start]=transform2(array),apply(func,this,otherArgs)}}function parent(object,path){return path.length<2?object:baseGet(object,baseSlice(path,0,-1))}function reorder(array,indexes){for(var arrLength=array.length,length=nativeMin(indexes.length,arrLength),oldArray=copyArray(array);length--;){var index=indexes[length];array[length]=isIndex(index,arrLength)?oldArray[index]:undefined2}return array}function safeGet(object,key){if(!(key==="constructor"&&typeof object[key]=="function")&&key!="__proto__")return object[key]}var setData=shortOut(baseSetData),setTimeout2=ctxSetTimeout||function(func,wait){return root.setTimeout(func,wait)},setToString=shortOut(baseSetToString);function setWrapToString(wrapper,reference,bitmask){var source=reference+"";return setToString(wrapper,insertWrapDetails(source,updateWrapDetails(getWrapDetails(source),bitmask)))}function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);if(lastCalled=stamp,remaining>0){if(++count>=HOT_COUNT)return arguments[0]}else count=0;return func.apply(undefined2,arguments)}}function shuffleSelf(array,size2){var index=-1,length=array.length,lastIndex=length-1;for(size2=size2===undefined2?length:size2;++index<size2;){var rand=baseRandom(index,lastIndex),value=array[rand];array[rand]=array[index],array[index]=value}return array.length=size2,array}var stringToPath=memoizeCapped(function(string){var result2=[];return string.charCodeAt(0)===46&&result2.push(""),string.replace(rePropName,function(match,number,quote,subString){result2.push(quote?subString.replace(reEscapeChar,"$1"):number||match)}),result2});function toKey(value){if(typeof value=="string"||isSymbol(value))return value;var result2=value+"";return result2=="0"&&1/value==-INFINITY?"-0":result2}function toSource(func){if(func!=null){try{return funcToString.call(func)}catch{}try{return func+""}catch{}}return""}function updateWrapDetails(details,bitmask){return arrayEach(wrapFlags,function(pair){var value="_."+pair[0];bitmask&pair[1]&&!arrayIncludes(details,value)&&details.push(value)}),details.sort()}function wrapperClone(wrapper){if(wrapper instanceof LazyWrapper)return wrapper.clone();var result2=new LodashWrapper(wrapper.__wrapped__,wrapper.__chain__);return result2.__actions__=copyArray(wrapper.__actions__),result2.__index__=wrapper.__index__,result2.__values__=wrapper.__values__,result2}function chunk(array,size2,guard){(guard?isIterateeCall(array,size2,guard):size2===undefined2)?size2=1:size2=nativeMax(toInteger(size2),0);var length=array==null?0:array.length;if(!length||size2<1)return[];for(var index=0,resIndex=0,result2=Array2(nativeCeil(length/size2));index<length;)result2[resIndex++]=baseSlice(array,index,index+=size2);return result2}function compact(array){for(var index=-1,length=array==null?0:array.length,resIndex=0,result2=[];++index<length;){var value=array[index];value&&(result2[resIndex++]=value)}return result2}function concat(){var length=arguments.length;if(!length)return[];for(var args=Array2(length-1),array=arguments[0],index=length;index--;)args[index-1]=arguments[index];return arrayPush(isArray(array)?copyArray(array):[array],baseFlatten(args,1))}var difference=baseRest(function(array,values2){return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values2,1,isArrayLikeObject,!0)):[]}),differenceBy=baseRest(function(array,values2){var iteratee2=last(values2);return isArrayLikeObject(iteratee2)&&(iteratee2=undefined2),isArrayLikeObject(array)?baseDifference(array,baseFlatten(values2,1,isArrayLikeObject,!0),getIteratee(iteratee2,2)):[]}),differenceWith=baseRest(function(array,values2){var comparator=last(values2);return isArrayLikeObject(comparator)&&(comparator=undefined2),isArrayLikeObject(array)?baseDifference(array,baseFlatten(values2,1,isArrayLikeObject,!0),undefined2,comparator):[]});function drop(array,n,guard){var length=array==null?0:array.length;return length?(n=guard||n===undefined2?1:toInteger(n),baseSlice(array,n<0?0:n,length)):[]}function dropRight(array,n,guard){var length=array==null?0:array.length;return length?(n=guard||n===undefined2?1:toInteger(n),n=length-n,baseSlice(array,0,n<0?0:n)):[]}function dropRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),!0,!0):[]}function dropWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),!0):[]}function fill(array,value,start,end){var length=array==null?0:array.length;return length?(start&&typeof start!="number"&&isIterateeCall(array,value,start)&&(start=0,end=length),baseFill(array,value,start,end)):[]}function findIndex(array,predicate,fromIndex){var length=array==null?0:array.length;if(!length)return-1;var index=fromIndex==null?0:toInteger(fromIndex);return index<0&&(index=nativeMax(length+index,0)),baseFindIndex(array,getIteratee(predicate,3),index)}function findLastIndex(array,predicate,fromIndex){var length=array==null?0:array.length;if(!length)return-1;var index=length-1;return fromIndex!==undefined2&&(index=toInteger(fromIndex),index=fromIndex<0?nativeMax(length+index,0):nativeMin(index,length-1)),baseFindIndex(array,getIteratee(predicate,3),index,!0)}function flatten(array){var length=array==null?0:array.length;return length?baseFlatten(array,1):[]}function flattenDeep(array){var length=array==null?0:array.length;return length?baseFlatten(array,INFINITY):[]}function flattenDepth(array,depth){var length=array==null?0:array.length;return length?(depth=depth===undefined2?1:toInteger(depth),baseFlatten(array,depth)):[]}function fromPairs(pairs){for(var index=-1,length=pairs==null?0:pairs.length,result2={};++index<length;){var pair=pairs[index];result2[pair[0]]=pair[1]}return result2}function head(array){return array&&array.length?array[0]:undefined2}function indexOf(array,value,fromIndex){var length=array==null?0:array.length;if(!length)return-1;var index=fromIndex==null?0:toInteger(fromIndex);return index<0&&(index=nativeMax(length+index,0)),baseIndexOf(array,value,index)}function initial(array){var length=array==null?0:array.length;return length?baseSlice(array,0,-1):[]}var intersection=baseRest(function(arrays){var mapped=arrayMap(arrays,castArrayLikeObject);return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped):[]}),intersectionBy=baseRest(function(arrays){var iteratee2=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);return iteratee2===last(mapped)?iteratee2=undefined2:mapped.pop(),mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,getIteratee(iteratee2,2)):[]}),intersectionWith=baseRest(function(arrays){var comparator=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);return comparator=typeof comparator=="function"?comparator:undefined2,comparator&&mapped.pop(),mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,undefined2,comparator):[]});function join(array,separator){return array==null?"":nativeJoin.call(array,separator)}function last(array){var length=array==null?0:array.length;return length?array[length-1]:undefined2}function lastIndexOf(array,value,fromIndex){var length=array==null?0:array.length;if(!length)return-1;var index=length;return fromIndex!==undefined2&&(index=toInteger(fromIndex),index=index<0?nativeMax(length+index,0):nativeMin(index,length-1)),value===value?strictLastIndexOf(array,value,index):baseFindIndex(array,baseIsNaN,index,!0)}function nth(array,n){return array&&array.length?baseNth(array,toInteger(n)):undefined2}var pull=baseRest(pullAll);function pullAll(array,values2){return array&&array.length&&values2&&values2.length?basePullAll(array,values2):array}function pullAllBy(array,values2,iteratee2){return array&&array.length&&values2&&values2.length?basePullAll(array,values2,getIteratee(iteratee2,2)):array}function pullAllWith(array,values2,comparator){return array&&array.length&&values2&&values2.length?basePullAll(array,values2,undefined2,comparator):array}var pullAt=flatRest(function(array,indexes){var length=array==null?0:array.length,result2=baseAt(array,indexes);return basePullAt(array,arrayMap(indexes,function(index){return isIndex(index,length)?+index:index}).sort(compareAscending)),result2});function remove(array,predicate){var result2=[];if(!(array&&array.length))return result2;var index=-1,indexes=[],length=array.length;for(predicate=getIteratee(predicate,3);++index<length;){var value=array[index];predicate(value,index,array)&&(result2.push(value),indexes.push(index))}return basePullAt(array,indexes),result2}function reverse(array){return array==null?array:nativeReverse.call(array)}function slice(array,start,end){var length=array==null?0:array.length;return length?(end&&typeof end!="number"&&isIterateeCall(array,start,end)?(start=0,end=length):(start=start==null?0:toInteger(start),end=end===undefined2?length:toInteger(end)),baseSlice(array,start,end)):[]}function sortedIndex(array,value){return baseSortedIndex(array,value)}function sortedIndexBy(array,value,iteratee2){return baseSortedIndexBy(array,value,getIteratee(iteratee2,2))}function sortedIndexOf(array,value){var length=array==null?0:array.length;if(length){var index=baseSortedIndex(array,value);if(index<length&&eq(array[index],value))return index}return-1}function sortedLastIndex(array,value){return baseSortedIndex(array,value,!0)}function sortedLastIndexBy(array,value,iteratee2){return baseSortedIndexBy(array,value,getIteratee(iteratee2,2),!0)}function sortedLastIndexOf(array,value){var length=array==null?0:array.length;if(length){var index=baseSortedIndex(array,value,!0)-1;if(eq(array[index],value))return index}return-1}function sortedUniq(array){return array&&array.length?baseSortedUniq(array):[]}function sortedUniqBy(array,iteratee2){return array&&array.length?baseSortedUniq(array,getIteratee(iteratee2,2)):[]}function tail(array){var length=array==null?0:array.length;return length?baseSlice(array,1,length):[]}function take(array,n,guard){return array&&array.length?(n=guard||n===undefined2?1:toInteger(n),baseSlice(array,0,n<0?0:n)):[]}function takeRight(array,n,guard){var length=array==null?0:array.length;return length?(n=guard||n===undefined2?1:toInteger(n),n=length-n,baseSlice(array,n<0?0:n,length)):[]}function takeRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),!1,!0):[]}function takeWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3)):[]}var union=baseRest(function(arrays){return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,!0))}),unionBy=baseRest(function(arrays){var iteratee2=last(arrays);return isArrayLikeObject(iteratee2)&&(iteratee2=undefined2),baseUniq(baseFlatten(arrays,1,isArrayLikeObject,!0),getIteratee(iteratee2,2))}),unionWith=baseRest(function(arrays){var comparator=last(arrays);return comparator=typeof comparator=="function"?comparator:undefined2,baseUniq(baseFlatten(arrays,1,isArrayLikeObject,!0),undefined2,comparator)});function uniq(array){return array&&array.length?baseUniq(array):[]}function uniqBy(array,iteratee2){return array&&array.length?baseUniq(array,getIteratee(iteratee2,2)):[]}function uniqWith(array,comparator){return comparator=typeof comparator=="function"?comparator:undefined2,array&&array.length?baseUniq(array,undefined2,comparator):[]}function unzip(array){if(!(array&&array.length))return[];var length=0;return array=arrayFilter(array,function(group){if(isArrayLikeObject(group))return length=nativeMax(group.length,length),!0}),baseTimes(length,function(index){return arrayMap(array,baseProperty(index))})}function unzipWith(array,iteratee2){if(!(array&&array.length))return[];var result2=unzip(array);return iteratee2==null?result2:arrayMap(result2,function(group){return apply(iteratee2,undefined2,group)})}var without=baseRest(function(array,values2){return isArrayLikeObject(array)?baseDifference(array,values2):[]}),xor=baseRest(function(arrays){return baseXor(arrayFilter(arrays,isArrayLikeObject))}),xorBy=baseRest(function(arrays){var iteratee2=last(arrays);return isArrayLikeObject(iteratee2)&&(iteratee2=undefined2),baseXor(arrayFilter(arrays,isArrayLikeObject),getIteratee(iteratee2,2))}),xorWith=baseRest(function(arrays){var comparator=last(arrays);return comparator=typeof comparator=="function"?comparator:undefined2,baseXor(arrayFilter(arrays,isArrayLikeObject),undefined2,comparator)}),zip=baseRest(unzip);function zipObject(props,values2){return baseZipObject(props||[],values2||[],assignValue)}function zipObjectDeep(props,values2){return baseZipObject(props||[],values2||[],baseSet)}var zipWith=baseRest(function(arrays){var length=arrays.length,iteratee2=length>1?arrays[length-1]:undefined2;return iteratee2=typeof iteratee2=="function"?(arrays.pop(),iteratee2):undefined2,unzipWith(arrays,iteratee2)});function chain(value){var result2=lodash(value);return result2.__chain__=!0,result2}function tap(value,interceptor){return interceptor(value),value}function thru(value,interceptor){return interceptor(value)}var wrapperAt=flatRest(function(paths){var length=paths.length,start=length?paths[0]:0,value=this.__wrapped__,interceptor=function(object){return baseAt(object,paths)};return length>1||this.__actions__.length||!(value instanceof LazyWrapper)||!isIndex(start)?this.thru(interceptor):(value=value.slice(start,+start+(length?1:0)),value.__actions__.push({func:thru,args:[interceptor],thisArg:undefined2}),new LodashWrapper(value,this.__chain__).thru(function(array){return length&&!array.length&&array.push(undefined2),array}))});function wrapperChain(){return chain(this)}function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__)}function wrapperNext(){this.__values__===undefined2&&(this.__values__=toArray(this.value()));var done=this.__index__>=this.__values__.length,value=done?undefined2:this.__values__[this.__index__++];return{done,value}}function wrapperToIterator(){return this}function wrapperPlant(value){for(var result2,parent2=this;parent2 instanceof baseLodash;){var clone2=wrapperClone(parent2);clone2.__index__=0,clone2.__values__=undefined2,result2?previous.__wrapped__=clone2:result2=clone2;var previous=clone2;parent2=parent2.__wrapped__}return previous.__wrapped__=value,result2}function wrapperReverse(){var value=this.__wrapped__;if(value instanceof LazyWrapper){var wrapped=value;return this.__actions__.length&&(wrapped=new LazyWrapper(this)),wrapped=wrapped.reverse(),wrapped.__actions__.push({func:thru,args:[reverse],thisArg:undefined2}),new LodashWrapper(wrapped,this.__chain__)}return this.thru(reverse)}function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)}var countBy=createAggregator(function(result2,value,key){hasOwnProperty2.call(result2,key)?++result2[key]:baseAssignValue(result2,key,1)});function every(collection,predicate,guard){var func=isArray(collection)?arrayEvery:baseEvery;return guard&&isIterateeCall(collection,predicate,guard)&&(predicate=undefined2),func(collection,getIteratee(predicate,3))}function filter(collection,predicate){var func=isArray(collection)?arrayFilter:baseFilter;return func(collection,getIteratee(predicate,3))}var find=createFind(findIndex),findLast=createFind(findLastIndex);function flatMap(collection,iteratee2){return baseFlatten(map(collection,iteratee2),1)}function flatMapDeep(collection,iteratee2){return baseFlatten(map(collection,iteratee2),INFINITY)}function flatMapDepth(collection,iteratee2,depth){return depth=depth===undefined2?1:toInteger(depth),baseFlatten(map(collection,iteratee2),depth)}function forEach(collection,iteratee2){var func=isArray(collection)?arrayEach:baseEach;return func(collection,getIteratee(iteratee2,3))}function forEachRight(collection,iteratee2){var func=isArray(collection)?arrayEachRight:baseEachRight;return func(collection,getIteratee(iteratee2,3))}var groupBy=createAggregator(function(result2,value,key){hasOwnProperty2.call(result2,key)?result2[key].push(value):baseAssignValue(result2,key,[value])});function includes(collection,value,fromIndex,guard){collection=isArrayLike(collection)?collection:values(collection),fromIndex=fromIndex&&!guard?toInteger(fromIndex):0;var length=collection.length;return fromIndex<0&&(fromIndex=nativeMax(length+fromIndex,0)),isString(collection)?fromIndex<=length&&collection.indexOf(value,fromIndex)>-1:!!length&&baseIndexOf(collection,value,fromIndex)>-1}var invokeMap=baseRest(function(collection,path,args){var index=-1,isFunc=typeof path=="function",result2=isArrayLike(collection)?Array2(collection.length):[];return baseEach(collection,function(value){result2[++index]=isFunc?apply(path,value,args):baseInvoke(value,path,args)}),result2}),keyBy=createAggregator(function(result2,value,key){baseAssignValue(result2,key,value)});function map(collection,iteratee2){var func=isArray(collection)?arrayMap:baseMap;return func(collection,getIteratee(iteratee2,3))}function orderBy(collection,iteratees,orders,guard){return collection==null?[]:(isArray(iteratees)||(iteratees=iteratees==null?[]:[iteratees]),orders=guard?undefined2:orders,isArray(orders)||(orders=orders==null?[]:[orders]),baseOrderBy(collection,iteratees,orders))}var partition=createAggregator(function(result2,value,key){result2[key?0:1].push(value)},function(){return[[],[]]});function reduce(collection,iteratee2,accumulator){var func=isArray(collection)?arrayReduce:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee2,4),accumulator,initAccum,baseEach)}function reduceRight(collection,iteratee2,accumulator){var func=isArray(collection)?arrayReduceRight:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee2,4),accumulator,initAccum,baseEachRight)}function reject(collection,predicate){var func=isArray(collection)?arrayFilter:baseFilter;return func(collection,negate(getIteratee(predicate,3)))}function sample(collection){var func=isArray(collection)?arraySample:baseSample;return func(collection)}function sampleSize(collection,n,guard){(guard?isIterateeCall(collection,n,guard):n===undefined2)?n=1:n=toInteger(n);var func=isArray(collection)?arraySampleSize:baseSampleSize;return func(collection,n)}function shuffle(collection){var func=isArray(collection)?arrayShuffle:baseShuffle;return func(collection)}function size(collection){if(collection==null)return 0;if(isArrayLike(collection))return isString(collection)?stringSize(collection):collection.length;var tag=getTag(collection);return tag==mapTag||tag==setTag?collection.size:baseKeys(collection).length}function some(collection,predicate,guard){var func=isArray(collection)?arraySome:baseSome;return guard&&isIterateeCall(collection,predicate,guard)&&(predicate=undefined2),func(collection,getIteratee(predicate,3))}var sortBy=baseRest(function(collection,iteratees){if(collection==null)return[];var length=iteratees.length;return length>1&&isIterateeCall(collection,iteratees[0],iteratees[1])?iteratees=[]:length>2&&isIterateeCall(iteratees[0],iteratees[1],iteratees[2])&&(iteratees=[iteratees[0]]),baseOrderBy(collection,baseFlatten(iteratees,1),[])}),now=ctxNow||function(){return root.Date.now()};function after(n,func){if(typeof func!="function")throw new TypeError2(FUNC_ERROR_TEXT);return n=toInteger(n),function(){if(--n<1)return func.apply(this,arguments)}}function ary(func,n,guard){return n=guard?undefined2:n,n=func&&n==null?func.length:n,createWrap(func,WRAP_ARY_FLAG,undefined2,undefined2,undefined2,undefined2,n)}function before(n,func){var result2;if(typeof func!="function")throw new TypeError2(FUNC_ERROR_TEXT);return n=toInteger(n),function(){return--n>0&&(result2=func.apply(this,arguments)),n<=1&&(func=undefined2),result2}}var bind=baseRest(function(func,thisArg,partials){var bitmask=WRAP_BIND_FLAG;if(partials.length){var holders=replaceHolders(partials,getHolder(bind));bitmask|=WRAP_PARTIAL_FLAG}return createWrap(func,bitmask,thisArg,partials,holders)}),bindKey=baseRest(function(object,key,partials){var bitmask=WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG;if(partials.length){var holders=replaceHolders(partials,getHolder(bindKey));bitmask|=WRAP_PARTIAL_FLAG}return createWrap(key,bitmask,object,partials,holders)});function curry(func,arity,guard){arity=guard?undefined2:arity;var result2=createWrap(func,WRAP_CURRY_FLAG,undefined2,undefined2,undefined2,undefined2,undefined2,arity);return result2.placeholder=curry.placeholder,result2}function curryRight(func,arity,guard){arity=guard?undefined2:arity;var result2=createWrap(func,WRAP_CURRY_RIGHT_FLAG,undefined2,undefined2,undefined2,undefined2,undefined2,arity);return result2.placeholder=curryRight.placeholder,result2}function debounce(func,wait,options){var lastArgs,lastThis,maxWait,result2,timerId,lastCallTime,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;if(typeof func!="function")throw new TypeError2(FUNC_ERROR_TEXT);wait=toNumber(wait)||0,isObject(options)&&(leading=!!options.leading,maxing="maxWait"in options,maxWait=maxing?nativeMax(toNumber(options.maxWait)||0,wait):maxWait,trailing="trailing"in options?!!options.trailing:trailing);function invokeFunc(time){var args=lastArgs,thisArg=lastThis;return lastArgs=lastThis=undefined2,lastInvokeTime=time,result2=func.apply(thisArg,args),result2}function leadingEdge(time){return lastInvokeTime=time,timerId=setTimeout2(timerExpired,wait),leading?invokeFunc(time):result2}function remainingWait(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime,timeWaiting=wait-timeSinceLastCall;return maxing?nativeMin(timeWaiting,maxWait-timeSinceLastInvoke):timeWaiting}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime;return lastCallTime===undefined2||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&timeSinceLastInvoke>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);timerId=setTimeout2(timerExpired,remainingWait(time))}function trailingEdge(time){return timerId=undefined2,trailing&&lastArgs?invokeFunc(time):(lastArgs=lastThis=undefined2,result2)}function cancel(){timerId!==undefined2&&clearTimeout2(timerId),lastInvokeTime=0,lastArgs=lastCallTime=lastThis=timerId=undefined2}function flush(){return timerId===undefined2?result2:trailingEdge(now())}function debounced(){var time=now(),isInvoking=shouldInvoke(time);if(lastArgs=arguments,lastThis=this,lastCallTime=time,isInvoking){if(timerId===undefined2)return leadingEdge(lastCallTime);if(maxing)return clearTimeout2(timerId),timerId=setTimeout2(timerExpired,wait),invokeFunc(lastCallTime)}return timerId===undefined2&&(timerId=setTimeout2(timerExpired,wait)),result2}return debounced.cancel=cancel,debounced.flush=flush,debounced}var defer=baseRest(function(func,args){return baseDelay(func,1,args)}),delay=baseRest(function(func,wait,args){return baseDelay(func,toNumber(wait)||0,args)});function flip(func){return createWrap(func,WRAP_FLIP_FLAG)}function memoize(func,resolver){if(typeof func!="function"||resolver!=null&&typeof resolver!="function")throw new TypeError2(FUNC_ERROR_TEXT);var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key))return cache.get(key);var result2=func.apply(this,args);return memoized.cache=cache.set(key,result2)||cache,result2};return memoized.cache=new(memoize.Cache||MapCache),memoized}memoize.Cache=MapCache;function negate(predicate){if(typeof predicate!="function")throw new TypeError2(FUNC_ERROR_TEXT);return function(){var args=arguments;switch(args.length){case 0:return!predicate.call(this);case 1:return!predicate.call(this,args[0]);case 2:return!predicate.call(this,args[0],args[1]);case 3:return!predicate.call(this,args[0],args[1],args[2])}return!predicate.apply(this,args)}}function once(func){return before(2,func)}var overArgs=castRest(function(func,transforms){transforms=transforms.length==1&&isArray(transforms[0])?arrayMap(transforms[0],baseUnary(getIteratee())):arrayMap(baseFlatten(transforms,1),baseUnary(getIteratee()));var funcsLength=transforms.length;return baseRest(function(args){for(var index=-1,length=nativeMin(args.length,funcsLength);++index<length;)args[index]=transforms[index].call(this,args[index]);return apply(func,this,args)})}),partial=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partial));return createWrap(func,WRAP_PARTIAL_FLAG,undefined2,partials,holders)}),partialRight=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partialRight));return createWrap(func,WRAP_PARTIAL_RIGHT_FLAG,undefined2,partials,holders)}),rearg=flatRest(function(func,indexes){return createWrap(func,WRAP_REARG_FLAG,undefined2,undefined2,undefined2,indexes)});function rest(func,start){if(typeof func!="function")throw new TypeError2(FUNC_ERROR_TEXT);return start=start===undefined2?start:toInteger(start),baseRest(func,start)}function spread(func,start){if(typeof func!="function")throw new TypeError2(FUNC_ERROR_TEXT);return start=start==null?0:nativeMax(toInteger(start),0),baseRest(function(args){var array=args[start],otherArgs=castSlice(args,0,start);return array&&arrayPush(otherArgs,array),apply(func,this,otherArgs)})}function throttle(func,wait,options){var leading=!0,trailing=!0;if(typeof func!="function")throw new TypeError2(FUNC_ERROR_TEXT);return isObject(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing),debounce(func,wait,{leading,maxWait:wait,trailing})}function unary(func){return ary(func,1)}function wrap(value,wrapper){return partial(castFunction(wrapper),value)}function castArray(){if(!arguments.length)return[];var value=arguments[0];return isArray(value)?value:[value]}function clone(value){return baseClone(value,CLONE_SYMBOLS_FLAG)}function cloneWith(value,customizer){return customizer=typeof customizer=="function"?customizer:undefined2,baseClone(value,CLONE_SYMBOLS_FLAG,customizer)}function cloneDeep(value){return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}function cloneDeepWith(value,customizer){return customizer=typeof customizer=="function"?customizer:undefined2,baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG,customizer)}function conformsTo(object,source){return source==null||baseConformsTo(object,source,keys(source))}function eq(value,other){return value===other||value!==value&&other!==other}var gt=createRelationalOperation(baseGt),gte=createRelationalOperation(function(value,other){return value>=other}),isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty2.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")},isArray=Array2.isArray,isArrayBuffer=nodeIsArrayBuffer?baseUnary(nodeIsArrayBuffer):baseIsArrayBuffer;function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value)}function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value)}function isBoolean(value){return value===!0||value===!1||isObjectLike(value)&&baseGetTag(value)==boolTag}var isBuffer=nativeIsBuffer||stubFalse,isDate=nodeIsDate?baseUnary(nodeIsDate):baseIsDate;function isElement(value){return isObjectLike(value)&&value.nodeType===1&&!isPlainObject(value)}function isEmpty(value){if(value==null)return!0;if(isArrayLike(value)&&(isArray(value)||typeof value=="string"||typeof value.splice=="function"||isBuffer(value)||isTypedArray(value)||isArguments(value)))return!value.length;var tag=getTag(value);if(tag==mapTag||tag==setTag)return!value.size;if(isPrototype(value))return!baseKeys(value).length;for(var key in value)if(hasOwnProperty2.call(value,key))return!1;return!0}function isEqual(value,other){return baseIsEqual(value,other)}function isEqualWith(value,other,customizer){customizer=typeof customizer=="function"?customizer:undefined2;var result2=customizer?customizer(value,other):undefined2;return result2===undefined2?baseIsEqual(value,other,undefined2,customizer):!!result2}function isError(value){if(!isObjectLike(value))return!1;var tag=baseGetTag(value);return tag==errorTag||tag==domExcTag||typeof value.message=="string"&&typeof value.name=="string"&&!isPlainObject(value)}function isFinite2(value){return typeof value=="number"&&nativeIsFinite(value)}function isFunction(value){if(!isObject(value))return!1;var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag}function isInteger(value){return typeof value=="number"&&value==toInteger(value)}function isLength(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isObject(value){var type=typeof value;return value!=null&&(type=="object"||type=="function")}function isObjectLike(value){return value!=null&&typeof value=="object"}var isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap;function isMatch(object,source){return object===source||baseIsMatch(object,source,getMatchData(source))}function isMatchWith(object,source,customizer){return customizer=typeof customizer=="function"?customizer:undefined2,baseIsMatch(object,source,getMatchData(source),customizer)}function isNaN2(value){return isNumber(value)&&value!=+value}function isNative(value){if(isMaskable(value))throw new Error2(CORE_ERROR_TEXT);return baseIsNative(value)}function isNull(value){return value===null}function isNil(value){return value==null}function isNumber(value){return typeof value=="number"||isObjectLike(value)&&baseGetTag(value)==numberTag}function isPlainObject(value){if(!isObjectLike(value)||baseGetTag(value)!=objectTag)return!1;var proto=getPrototype(value);if(proto===null)return!0;var Ctor=hasOwnProperty2.call(proto,"constructor")&&proto.constructor;return typeof Ctor=="function"&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString}var isRegExp=nodeIsRegExp?baseUnary(nodeIsRegExp):baseIsRegExp;function isSafeInteger(value){return isInteger(value)&&value>=-MAX_SAFE_INTEGER&&value<=MAX_SAFE_INTEGER}var isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet;function isString(value){return typeof value=="string"||!isArray(value)&&isObjectLike(value)&&baseGetTag(value)==stringTag}function isSymbol(value){return typeof value=="symbol"||isObjectLike(value)&&baseGetTag(value)==symbolTag}var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;function isUndefined(value){return value===undefined2}function isWeakMap(value){return isObjectLike(value)&&getTag(value)==weakMapTag}function isWeakSet(value){return isObjectLike(value)&&baseGetTag(value)==weakSetTag}var lt=createRelationalOperation(baseLt),lte=createRelationalOperation(function(value,other){return value<=other});function toArray(value){if(!value)return[];if(isArrayLike(value))return isString(value)?stringToArray(value):copyArray(value);if(symIterator&&value[symIterator])return iteratorToArray(value[symIterator]());var tag=getTag(value),func=tag==mapTag?mapToArray:tag==setTag?setToArray:values;return func(value)}function toFinite(value){if(!value)return value===0?value:0;if(value=toNumber(value),value===INFINITY||value===-INFINITY){var sign=value<0?-1:1;return sign*MAX_INTEGER}return value===value?value:0}function toInteger(value){var result2=toFinite(value),remainder=result2%1;return result2===result2?remainder?result2-remainder:result2:0}function toLength(value){return value?baseClamp(toInteger(value),0,MAX_ARRAY_LENGTH):0}function toNumber(value){if(typeof value=="number")return value;if(isSymbol(value))return NAN;if(isObject(value)){var other=typeof value.valueOf=="function"?value.valueOf():value;value=isObject(other)?other+"":other}if(typeof value!="string")return value===0?value:+value;value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value}function toPlainObject(value){return copyObject(value,keysIn(value))}function toSafeInteger(value){return value?baseClamp(toInteger(value),-MAX_SAFE_INTEGER,MAX_SAFE_INTEGER):value===0?value:0}function toString(value){return value==null?"":baseToString(value)}var assign=createAssigner(function(object,source){if(isPrototype(source)||isArrayLike(source)){copyObject(source,keys(source),object);return}for(var key in source)hasOwnProperty2.call(source,key)&&assignValue(object,key,source[key])}),assignIn=createAssigner(function(object,source){copyObject(source,keysIn(source),object)}),assignInWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keysIn(source),object,customizer)}),assignWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keys(source),object,customizer)}),at=flatRest(baseAt);function create(prototype,properties){var result2=baseCreate(prototype);return properties==null?result2:baseAssign(result2,properties)}var defaults=baseRest(function(object,sources){object=Object2(object);var index=-1,length=sources.length,guard=length>2?sources[2]:undefined2;for(guard&&isIterateeCall(sources[0],sources[1],guard)&&(length=1);++index<length;)for(var source=sources[index],props=keysIn(source),propsIndex=-1,propsLength=props.length;++propsIndex<propsLength;){var key=props[propsIndex],value=object[key];(value===undefined2||eq(value,objectProto[key])&&!hasOwnProperty2.call(object,key))&&(object[key]=source[key])}return object}),defaultsDeep=baseRest(function(args){return args.push(undefined2,customDefaultsMerge),apply(mergeWith,undefined2,args)});function findKey(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwn)}function findLastKey(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwnRight)}function forIn(object,iteratee2){return object==null?object:baseFor(object,getIteratee(iteratee2,3),keysIn)}function forInRight(object,iteratee2){return object==null?object:baseForRight(object,getIteratee(iteratee2,3),keysIn)}function forOwn(object,iteratee2){return object&&baseForOwn(object,getIteratee(iteratee2,3))}function forOwnRight(object,iteratee2){return object&&baseForOwnRight(object,getIteratee(iteratee2,3))}function functions(object){return object==null?[]:baseFunctions(object,keys(object))}function functionsIn(object){return object==null?[]:baseFunctions(object,keysIn(object))}function get(object,path,defaultValue){var result2=object==null?undefined2:baseGet(object,path);return result2===undefined2?defaultValue:result2}function has(object,path){return object!=null&&hasPath(object,path,baseHas)}function hasIn(object,path){return object!=null&&hasPath(object,path,baseHasIn)}var invert=createInverter(function(result2,value,key){value!=null&&typeof value.toString!="function"&&(value=nativeObjectToString.call(value)),result2[value]=key},constant(identity)),invertBy=createInverter(function(result2,value,key){value!=null&&typeof value.toString!="function"&&(value=nativeObjectToString.call(value)),hasOwnProperty2.call(result2,value)?result2[value].push(key):result2[value]=[key]},getIteratee),invoke=baseRest(baseInvoke);function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}function keysIn(object){return isArrayLike(object)?arrayLikeKeys(object,!0):baseKeysIn(object)}function mapKeys(object,iteratee2){var result2={};return iteratee2=getIteratee(iteratee2,3),baseForOwn(object,function(value,key,object2){baseAssignValue(result2,iteratee2(value,key,object2),value)}),result2}function mapValues(object,iteratee2){var result2={};return iteratee2=getIteratee(iteratee2,3),baseForOwn(object,function(value,key,object2){baseAssignValue(result2,key,iteratee2(value,key,object2))}),result2}var merge=createAssigner(function(object,source,srcIndex){baseMerge(object,source,srcIndex)}),mergeWith=createAssigner(function(object,source,srcIndex,customizer){baseMerge(object,source,srcIndex,customizer)}),omit=flatRest(function(object,paths){var result2={};if(object==null)return result2;var isDeep=!1;paths=arrayMap(paths,function(path){return path=castPath(path,object),isDeep||(isDeep=path.length>1),path}),copyObject(object,getAllKeysIn(object),result2),isDeep&&(result2=baseClone(result2,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone));for(var length=paths.length;length--;)baseUnset(result2,paths[length]);return result2});function omitBy(object,predicate){return pickBy(object,negate(getIteratee(predicate)))}var pick=flatRest(function(object,paths){return object==null?{}:basePick(object,paths)});function pickBy(object,predicate){if(object==null)return{};var props=arrayMap(getAllKeysIn(object),function(prop){return[prop]});return predicate=getIteratee(predicate),basePickBy(object,props,function(value,path){return predicate(value,path[0])})}function result(object,path,defaultValue){path=castPath(path,object);var index=-1,length=path.length;for(length||(length=1,object=undefined2);++index<length;){var value=object==null?undefined2:object[toKey(path[index])];value===undefined2&&(index=length,value=defaultValue),object=isFunction(value)?value.call(object):value}return object}function set(object,path,value){return object==null?object:baseSet(object,path,value)}function setWith(object,path,value,customizer){return customizer=typeof customizer=="function"?customizer:undefined2,object==null?object:baseSet(object,path,value,customizer)}var toPairs=createToPairs(keys),toPairsIn=createToPairs(keysIn);function transform(object,iteratee2,accumulator){var isArr=isArray(object),isArrLike=isArr||isBuffer(object)||isTypedArray(object);if(iteratee2=getIteratee(iteratee2,4),accumulator==null){var Ctor=object&&object.constructor;isArrLike?accumulator=isArr?new Ctor:[]:isObject(object)?accumulator=isFunction(Ctor)?baseCreate(getPrototype(object)):{}:accumulator={}}return(isArrLike?arrayEach:baseForOwn)(object,function(value,index,object2){return iteratee2(accumulator,value,index,object2)}),accumulator}function unset(object,path){return object==null?!0:baseUnset(object,path)}function update(object,path,updater){return object==null?object:baseUpdate(object,path,castFunction(updater))}function updateWith(object,path,updater,customizer){return customizer=typeof customizer=="function"?customizer:undefined2,object==null?object:baseUpdate(object,path,castFunction(updater),customizer)}function values(object){return object==null?[]:baseValues(object,keys(object))}function valuesIn(object){return object==null?[]:baseValues(object,keysIn(object))}function clamp(number,lower,upper){return upper===undefined2&&(upper=lower,lower=undefined2),upper!==undefined2&&(upper=toNumber(upper),upper=upper===upper?upper:0),lower!==undefined2&&(lower=toNumber(lower),lower=lower===lower?lower:0),baseClamp(toNumber(number),lower,upper)}function inRange(number,start,end){return start=toFinite(start),end===undefined2?(end=start,start=0):end=toFinite(end),number=toNumber(number),baseInRange(number,start,end)}function random(lower,upper,floating){if(floating&&typeof floating!="boolean"&&isIterateeCall(lower,upper,floating)&&(upper=floating=undefined2),floating===undefined2&&(typeof upper=="boolean"?(floating=upper,upper=undefined2):typeof lower=="boolean"&&(floating=lower,lower=undefined2)),lower===undefined2&&upper===undefined2?(lower=0,upper=1):(lower=toFinite(lower),upper===undefined2?(upper=lower,lower=0):upper=toFinite(upper)),lower>upper){var temp=lower;lower=upper,upper=temp}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat("1e-"+((rand+"").length-1))),upper)}return baseRandom(lower,upper)}var camelCase=createCompounder(function(result2,word,index){return word=word.toLowerCase(),result2+(index?capitalize(word):word)});function capitalize(string){return upperFirst(toString(string).toLowerCase())}function deburr(string){return string=toString(string),string&&string.replace(reLatin,deburrLetter).replace(reComboMark,"")}function endsWith(string,target,position){string=toString(string),target=baseToString(target);var length=string.length;position=position===undefined2?length:baseClamp(toInteger(position),0,length);var end=position;return position-=target.length,position>=0&&string.slice(position,end)==target}function escape(string){return string=toString(string),string&&reHasUnescapedHtml.test(string)?string.replace(reUnescapedHtml,escapeHtmlChar):string}function escapeRegExp(string){return string=toString(string),string&&reHasRegExpChar.test(string)?string.replace(reRegExpChar,"\\$&"):string}var kebabCase=createCompounder(function(result2,word,index){return result2+(index?"-":"")+word.toLowerCase()}),lowerCase=createCompounder(function(result2,word,index){return result2+(index?" ":"")+word.toLowerCase()}),lowerFirst=createCaseFirst("toLowerCase");function pad(string,length,chars){string=toString(string),length=toInteger(length);var strLength=length?stringSize(string):0;if(!length||strLength>=length)return string;var mid=(length-strLength)/2;return createPadding(nativeFloor(mid),chars)+string+createPadding(nativeCeil(mid),chars)}function padEnd(string,length,chars){string=toString(string),length=toInteger(length);var strLength=length?stringSize(string):0;return length&&strLength<length?string+createPadding(length-strLength,chars):string}function padStart(string,length,chars){string=toString(string),length=toInteger(length);var strLength=length?stringSize(string):0;return length&&strLength<length?createPadding(length-strLength,chars)+string:string}function parseInt2(string,radix,guard){return guard||radix==null?radix=0:radix&&(radix=+radix),nativeParseInt(toString(string).replace(reTrimStart,""),radix||0)}function repeat(string,n,guard){return(guard?isIterateeCall(string,n,guard):n===undefined2)?n=1:n=toInteger(n),baseRepeat(toString(string),n)}function replace(){var args=arguments,string=toString(args[0]);return args.length<3?string:string.replace(args[1],args[2])}var snakeCase=createCompounder(function(result2,word,index){return result2+(index?"_":"")+word.toLowerCase()});function split(string,separator,limit){return limit&&typeof limit!="number"&&isIterateeCall(string,separator,limit)&&(separator=limit=undefined2),limit=limit===undefined2?MAX_ARRAY_LENGTH:limit>>>0,limit?(string=toString(string),string&&(typeof separator=="string"||separator!=null&&!isRegExp(separator))&&(separator=baseToString(separator),!separator&&hasUnicode(string))?castSlice(stringToArray(string),0,limit):string.split(separator,limit)):[]}var startCase=createCompounder(function(result2,word,index){return result2+(index?" ":"")+upperFirst(word)});function startsWith(string,target,position){return string=toString(string),position=position==null?0:baseClamp(toInteger(position),0,string.length),target=baseToString(target),string.slice(position,position+target.length)==target}function template(string,options,guard){var settings=lodash.templateSettings;guard&&isIterateeCall(string,options,guard)&&(options=undefined2),string=toString(string),options=assignInWith({},options,settings,customDefaultsAssignIn);var imports=assignInWith({},options.imports,settings.imports,customDefaultsAssignIn),importsKeys=keys(imports),importsValues=baseValues(imports,importsKeys),isEscaping,isEvaluating,index=0,interpolate=options.interpolate||reNoMatch,source="__p += '",reDelimiters=RegExp2((options.escape||reNoMatch).source+"|"+interpolate.source+"|"+(interpolate===reInterpolate?reEsTemplate:reNoMatch).source+"|"+(options.evaluate||reNoMatch).source+"|$","g"),sourceURL="//# sourceURL="+(hasOwnProperty2.call(options,"sourceURL")?(options.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++templateCounter+"]")+`
|
39
|
-
`;string.replace(reDelimiters,function(match,escapeValue,interpolateValue,esTemplateValue,evaluateValue,offset){return interpolateValue||(interpolateValue=esTemplateValue),source+=string.slice(index,offset).replace(reUnescapedString,escapeStringChar),escapeValue&&(isEscaping=!0,source+=`' +
|
40
|
-
__e(`+escapeValue+`) +
|
41
|
-
'`),evaluateValue&&(isEvaluating=!0,source+=`';
|
42
|
-
`+evaluateValue+`;
|
43
|
-
__p += '`),interpolateValue&&(source+=`' +
|
44
|
-
((__t = (`+interpolateValue+`)) == null ? '' : __t) +
|
45
|
-
'`),index=offset+match.length,match}),source+=`';
|
46
|
-
`;var variable=hasOwnProperty2.call(options,"variable")&&options.variable;if(!variable)source=`with (obj) {
|
47
|
-
`+source+`
|
48
|
-
}
|
49
|
-
`;else if(reForbiddenIdentifierChars.test(variable))throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT);source=(isEvaluating?source.replace(reEmptyStringLeading,""):source).replace(reEmptyStringMiddle,"$1").replace(reEmptyStringTrailing,"$1;"),source="function("+(variable||"obj")+`) {
|
50
|
-
`+(variable?"":`obj || (obj = {});
|
51
|
-
`)+"var __t, __p = ''"+(isEscaping?", __e = _.escape":"")+(isEvaluating?`, __j = Array.prototype.join;
|
52
|
-
function print() { __p += __j.call(arguments, '') }
|
53
|
-
`:`;
|
54
|
-
`)+source+`return __p
|
55
|
-
}`;var result2=attempt(function(){return Function2(importsKeys,sourceURL+"return "+source).apply(undefined2,importsValues)});if(result2.source=source,isError(result2))throw result2;return result2}function toLower(value){return toString(value).toLowerCase()}function toUpper(value){return toString(value).toUpperCase()}function trim(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined2))return baseTrim(string);if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),chrSymbols=stringToArray(chars),start=charsStartIndex(strSymbols,chrSymbols),end=charsEndIndex(strSymbols,chrSymbols)+1;return castSlice(strSymbols,start,end).join("")}function trimEnd(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined2))return string.slice(0,trimmedEndIndex(string)+1);if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),end=charsEndIndex(strSymbols,stringToArray(chars))+1;return castSlice(strSymbols,0,end).join("")}function trimStart(string,chars,guard){if(string=toString(string),string&&(guard||chars===undefined2))return string.replace(reTrimStart,"");if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),start=charsStartIndex(strSymbols,stringToArray(chars));return castSlice(strSymbols,start).join("")}function truncate(string,options){var length=DEFAULT_TRUNC_LENGTH,omission=DEFAULT_TRUNC_OMISSION;if(isObject(options)){var separator="separator"in options?options.separator:separator;length="length"in options?toInteger(options.length):length,omission="omission"in options?baseToString(options.omission):omission}string=toString(string);var strLength=string.length;if(hasUnicode(string)){var strSymbols=stringToArray(string);strLength=strSymbols.length}if(length>=strLength)return string;var end=length-stringSize(omission);if(end<1)return omission;var result2=strSymbols?castSlice(strSymbols,0,end).join(""):string.slice(0,end);if(separator===undefined2)return result2+omission;if(strSymbols&&(end+=result2.length-end),isRegExp(separator)){if(string.slice(end).search(separator)){var match,substring=result2;for(separator.global||(separator=RegExp2(separator.source,toString(reFlags.exec(separator))+"g")),separator.lastIndex=0;match=separator.exec(substring);)var newEnd=match.index;result2=result2.slice(0,newEnd===undefined2?end:newEnd)}}else if(string.indexOf(baseToString(separator),end)!=end){var index=result2.lastIndexOf(separator);index>-1&&(result2=result2.slice(0,index))}return result2+omission}function unescape2(string){return string=toString(string),string&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string}var upperCase=createCompounder(function(result2,word,index){return result2+(index?" ":"")+word.toUpperCase()}),upperFirst=createCaseFirst("toUpperCase");function words(string,pattern,guard){return string=toString(string),pattern=guard?undefined2:pattern,pattern===undefined2?hasUnicodeWord(string)?unicodeWords(string):asciiWords(string):string.match(pattern)||[]}var attempt=baseRest(function(func,args){try{return apply(func,undefined2,args)}catch(e){return isError(e)?e:new Error2(e)}}),bindAll=flatRest(function(object,methodNames){return arrayEach(methodNames,function(key){key=toKey(key),baseAssignValue(object,key,bind(object[key],object))}),object});function cond(pairs){var length=pairs==null?0:pairs.length,toIteratee=getIteratee();return pairs=length?arrayMap(pairs,function(pair){if(typeof pair[1]!="function")throw new TypeError2(FUNC_ERROR_TEXT);return[toIteratee(pair[0]),pair[1]]}):[],baseRest(function(args){for(var index=-1;++index<length;){var pair=pairs[index];if(apply(pair[0],this,args))return apply(pair[1],this,args)}})}function conforms(source){return baseConforms(baseClone(source,CLONE_DEEP_FLAG))}function constant(value){return function(){return value}}function defaultTo(value,defaultValue){return value==null||value!==value?defaultValue:value}var flow=createFlow(),flowRight=createFlow(!0);function identity(value){return value}function iteratee(func){return baseIteratee(typeof func=="function"?func:baseClone(func,CLONE_DEEP_FLAG))}function matches(source){return baseMatches(baseClone(source,CLONE_DEEP_FLAG))}function matchesProperty(path,srcValue){return baseMatchesProperty(path,baseClone(srcValue,CLONE_DEEP_FLAG))}var method=baseRest(function(path,args){return function(object){return baseInvoke(object,path,args)}}),methodOf=baseRest(function(object,args){return function(path){return baseInvoke(object,path,args)}});function mixin(object,source,options){var props=keys(source),methodNames=baseFunctions(source,props);options==null&&!(isObject(source)&&(methodNames.length||!props.length))&&(options=source,source=object,object=this,methodNames=baseFunctions(source,keys(source)));var chain2=!(isObject(options)&&"chain"in options)||!!options.chain,isFunc=isFunction(object);return arrayEach(methodNames,function(methodName){var func=source[methodName];object[methodName]=func,isFunc&&(object.prototype[methodName]=function(){var chainAll=this.__chain__;if(chain2||chainAll){var result2=object(this.__wrapped__),actions=result2.__actions__=copyArray(this.__actions__);return actions.push({func,args:arguments,thisArg:object}),result2.__chain__=chainAll,result2}return func.apply(object,arrayPush([this.value()],arguments))})}),object}function noConflict(){return root._===this&&(root._=oldDash),this}function noop(){}function nthArg(n){return n=toInteger(n),baseRest(function(args){return baseNth(args,n)})}var over=createOver(arrayMap),overEvery=createOver(arrayEvery),overSome=createOver(arraySome);function property(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path)}function propertyOf(object){return function(path){return object==null?undefined2:baseGet(object,path)}}var range=createRange(),rangeRight=createRange(!0);function stubArray(){return[]}function stubFalse(){return!1}function stubObject(){return{}}function stubString(){return""}function stubTrue(){return!0}function times(n,iteratee2){if(n=toInteger(n),n<1||n>MAX_SAFE_INTEGER)return[];var index=MAX_ARRAY_LENGTH,length=nativeMin(n,MAX_ARRAY_LENGTH);iteratee2=getIteratee(iteratee2),n-=MAX_ARRAY_LENGTH;for(var result2=baseTimes(length,iteratee2);++index<n;)iteratee2(index);return result2}function toPath(value){return isArray(value)?arrayMap(value,toKey):isSymbol(value)?[value]:copyArray(stringToPath(toString(value)))}function uniqueId(prefix){var id=++idCounter;return toString(prefix)+id}var add=createMathOperation(function(augend,addend){return augend+addend},0),ceil=createRound("ceil"),divide=createMathOperation(function(dividend,divisor){return dividend/divisor},1),floor=createRound("floor");function max(array){return array&&array.length?baseExtremum(array,identity,baseGt):undefined2}function maxBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseGt):undefined2}function mean(array){return baseMean(array,identity)}function meanBy(array,iteratee2){return baseMean(array,getIteratee(iteratee2,2))}function min(array){return array&&array.length?baseExtremum(array,identity,baseLt):undefined2}function minBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseLt):undefined2}var multiply=createMathOperation(function(multiplier,multiplicand){return multiplier*multiplicand},1),round=createRound("round"),subtract=createMathOperation(function(minuend,subtrahend){return minuend-subtrahend},0);function sum(array){return array&&array.length?baseSum(array,identity):0}function sumBy(array,iteratee2){return array&&array.length?baseSum(array,getIteratee(iteratee2,2)):0}return lodash.after=after,lodash.ary=ary,lodash.assign=assign,lodash.assignIn=assignIn,lodash.assignInWith=assignInWith,lodash.assignWith=assignWith,lodash.at=at,lodash.before=before,lodash.bind=bind,lodash.bindAll=bindAll,lodash.bindKey=bindKey,lodash.castArray=castArray,lodash.chain=chain,lodash.chunk=chunk,lodash.compact=compact,lodash.concat=concat,lodash.cond=cond,lodash.conforms=conforms,lodash.constant=constant,lodash.countBy=countBy,lodash.create=create,lodash.curry=curry,lodash.curryRight=curryRight,lodash.debounce=debounce,lodash.defaults=defaults,lodash.defaultsDeep=defaultsDeep,lodash.defer=defer,lodash.delay=delay,lodash.difference=difference,lodash.differenceBy=differenceBy,lodash.differenceWith=differenceWith,lodash.drop=drop,lodash.dropRight=dropRight,lodash.dropRightWhile=dropRightWhile,lodash.dropWhile=dropWhile,lodash.fill=fill,lodash.filter=filter,lodash.flatMap=flatMap,lodash.flatMapDeep=flatMapDeep,lodash.flatMapDepth=flatMapDepth,lodash.flatten=flatten,lodash.flattenDeep=flattenDeep,lodash.flattenDepth=flattenDepth,lodash.flip=flip,lodash.flow=flow,lodash.flowRight=flowRight,lodash.fromPairs=fromPairs,lodash.functions=functions,lodash.functionsIn=functionsIn,lodash.groupBy=groupBy,lodash.initial=initial,lodash.intersection=intersection,lodash.intersectionBy=intersectionBy,lodash.intersectionWith=intersectionWith,lodash.invert=invert,lodash.invertBy=invertBy,lodash.invokeMap=invokeMap,lodash.iteratee=iteratee,lodash.keyBy=keyBy,lodash.keys=keys,lodash.keysIn=keysIn,lodash.map=map,lodash.mapKeys=mapKeys,lodash.mapValues=mapValues,lodash.matches=matches,lodash.matchesProperty=matchesProperty,lodash.memoize=memoize,lodash.merge=merge,lodash.mergeWith=mergeWith,lodash.method=method,lodash.methodOf=methodOf,lodash.mixin=mixin,lodash.negate=negate,lodash.nthArg=nthArg,lodash.omit=omit,lodash.omitBy=omitBy,lodash.once=once,lodash.orderBy=orderBy,lodash.over=over,lodash.overArgs=overArgs,lodash.overEvery=overEvery,lodash.overSome=overSome,lodash.partial=partial,lodash.partialRight=partialRight,lodash.partition=partition,lodash.pick=pick,lodash.pickBy=pickBy,lodash.property=property,lodash.propertyOf=propertyOf,lodash.pull=pull,lodash.pullAll=pullAll,lodash.pullAllBy=pullAllBy,lodash.pullAllWith=pullAllWith,lodash.pullAt=pullAt,lodash.range=range,lodash.rangeRight=rangeRight,lodash.rearg=rearg,lodash.reject=reject,lodash.remove=remove,lodash.rest=rest,lodash.reverse=reverse,lodash.sampleSize=sampleSize,lodash.set=set,lodash.setWith=setWith,lodash.shuffle=shuffle,lodash.slice=slice,lodash.sortBy=sortBy,lodash.sortedUniq=sortedUniq,lodash.sortedUniqBy=sortedUniqBy,lodash.split=split,lodash.spread=spread,lodash.tail=tail,lodash.take=take,lodash.takeRight=takeRight,lodash.takeRightWhile=takeRightWhile,lodash.takeWhile=takeWhile,lodash.tap=tap,lodash.throttle=throttle,lodash.thru=thru,lodash.toArray=toArray,lodash.toPairs=toPairs,lodash.toPairsIn=toPairsIn,lodash.toPath=toPath,lodash.toPlainObject=toPlainObject,lodash.transform=transform,lodash.unary=unary,lodash.union=union,lodash.unionBy=unionBy,lodash.unionWith=unionWith,lodash.uniq=uniq,lodash.uniqBy=uniqBy,lodash.uniqWith=uniqWith,lodash.unset=unset,lodash.unzip=unzip,lodash.unzipWith=unzipWith,lodash.update=update,lodash.updateWith=updateWith,lodash.values=values,lodash.valuesIn=valuesIn,lodash.without=without,lodash.words=words,lodash.wrap=wrap,lodash.xor=xor,lodash.xorBy=xorBy,lodash.xorWith=xorWith,lodash.zip=zip,lodash.zipObject=zipObject,lodash.zipObjectDeep=zipObjectDeep,lodash.zipWith=zipWith,lodash.entries=toPairs,lodash.entriesIn=toPairsIn,lodash.extend=assignIn,lodash.extendWith=assignInWith,mixin(lodash,lodash),lodash.add=add,lodash.attempt=attempt,lodash.camelCase=camelCase,lodash.capitalize=capitalize,lodash.ceil=ceil,lodash.clamp=clamp,lodash.clone=clone,lodash.cloneDeep=cloneDeep,lodash.cloneDeepWith=cloneDeepWith,lodash.cloneWith=cloneWith,lodash.conformsTo=conformsTo,lodash.deburr=deburr,lodash.defaultTo=defaultTo,lodash.divide=divide,lodash.endsWith=endsWith,lodash.eq=eq,lodash.escape=escape,lodash.escapeRegExp=escapeRegExp,lodash.every=every,lodash.find=find,lodash.findIndex=findIndex,lodash.findKey=findKey,lodash.findLast=findLast,lodash.findLastIndex=findLastIndex,lodash.findLastKey=findLastKey,lodash.floor=floor,lodash.forEach=forEach,lodash.forEachRight=forEachRight,lodash.forIn=forIn,lodash.forInRight=forInRight,lodash.forOwn=forOwn,lodash.forOwnRight=forOwnRight,lodash.get=get,lodash.gt=gt,lodash.gte=gte,lodash.has=has,lodash.hasIn=hasIn,lodash.head=head,lodash.identity=identity,lodash.includes=includes,lodash.indexOf=indexOf,lodash.inRange=inRange,lodash.invoke=invoke,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isArrayBuffer=isArrayBuffer,lodash.isArrayLike=isArrayLike,lodash.isArrayLikeObject=isArrayLikeObject,lodash.isBoolean=isBoolean,lodash.isBuffer=isBuffer,lodash.isDate=isDate,lodash.isElement=isElement,lodash.isEmpty=isEmpty,lodash.isEqual=isEqual,lodash.isEqualWith=isEqualWith,lodash.isError=isError,lodash.isFinite=isFinite2,lodash.isFunction=isFunction,lodash.isInteger=isInteger,lodash.isLength=isLength,lodash.isMap=isMap,lodash.isMatch=isMatch,lodash.isMatchWith=isMatchWith,lodash.isNaN=isNaN2,lodash.isNative=isNative,lodash.isNil=isNil,lodash.isNull=isNull,lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isObjectLike=isObjectLike,lodash.isPlainObject=isPlainObject,lodash.isRegExp=isRegExp,lodash.isSafeInteger=isSafeInteger,lodash.isSet=isSet,lodash.isString=isString,lodash.isSymbol=isSymbol,lodash.isTypedArray=isTypedArray,lodash.isUndefined=isUndefined,lodash.isWeakMap=isWeakMap,lodash.isWeakSet=isWeakSet,lodash.join=join,lodash.kebabCase=kebabCase,lodash.last=last,lodash.lastIndexOf=lastIndexOf,lodash.lowerCase=lowerCase,lodash.lowerFirst=lowerFirst,lodash.lt=lt,lodash.lte=lte,lodash.max=max,lodash.maxBy=maxBy,lodash.mean=mean,lodash.meanBy=meanBy,lodash.min=min,lodash.minBy=minBy,lodash.stubArray=stubArray,lodash.stubFalse=stubFalse,lodash.stubObject=stubObject,lodash.stubString=stubString,lodash.stubTrue=stubTrue,lodash.multiply=multiply,lodash.nth=nth,lodash.noConflict=noConflict,lodash.noop=noop,lodash.now=now,lodash.pad=pad,lodash.padEnd=padEnd,lodash.padStart=padStart,lodash.parseInt=parseInt2,lodash.random=random,lodash.reduce=reduce,lodash.reduceRight=reduceRight,lodash.repeat=repeat,lodash.replace=replace,lodash.result=result,lodash.round=round,lodash.runInContext=runInContext2,lodash.sample=sample,lodash.size=size,lodash.snakeCase=snakeCase,lodash.some=some,lodash.sortedIndex=sortedIndex,lodash.sortedIndexBy=sortedIndexBy,lodash.sortedIndexOf=sortedIndexOf,lodash.sortedLastIndex=sortedLastIndex,lodash.sortedLastIndexBy=sortedLastIndexBy,lodash.sortedLastIndexOf=sortedLastIndexOf,lodash.startCase=startCase,lodash.startsWith=startsWith,lodash.subtract=subtract,lodash.sum=sum,lodash.sumBy=sumBy,lodash.template=template,lodash.times=times,lodash.toFinite=toFinite,lodash.toInteger=toInteger,lodash.toLength=toLength,lodash.toLower=toLower,lodash.toNumber=toNumber,lodash.toSafeInteger=toSafeInteger,lodash.toString=toString,lodash.toUpper=toUpper,lodash.trim=trim,lodash.trimEnd=trimEnd,lodash.trimStart=trimStart,lodash.truncate=truncate,lodash.unescape=unescape2,lodash.uniqueId=uniqueId,lodash.upperCase=upperCase,lodash.upperFirst=upperFirst,lodash.each=forEach,lodash.eachRight=forEachRight,lodash.first=head,mixin(lodash,function(){var source={};return baseForOwn(lodash,function(func,methodName){hasOwnProperty2.call(lodash.prototype,methodName)||(source[methodName]=func)}),source}(),{chain:!1}),lodash.VERSION=VERSION,arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],function(methodName){lodash[methodName].placeholder=lodash}),arrayEach(["drop","take"],function(methodName,index){LazyWrapper.prototype[methodName]=function(n){n=n===undefined2?1:nativeMax(toInteger(n),0);var result2=this.__filtered__&&!index?new LazyWrapper(this):this.clone();return result2.__filtered__?result2.__takeCount__=nativeMin(n,result2.__takeCount__):result2.__views__.push({size:nativeMin(n,MAX_ARRAY_LENGTH),type:methodName+(result2.__dir__<0?"Right":"")}),result2},LazyWrapper.prototype[methodName+"Right"]=function(n){return this.reverse()[methodName](n).reverse()}}),arrayEach(["filter","map","takeWhile"],function(methodName,index){var type=index+1,isFilter=type==LAZY_FILTER_FLAG||type==LAZY_WHILE_FLAG;LazyWrapper.prototype[methodName]=function(iteratee2){var result2=this.clone();return result2.__iteratees__.push({iteratee:getIteratee(iteratee2,3),type}),result2.__filtered__=result2.__filtered__||isFilter,result2}}),arrayEach(["head","last"],function(methodName,index){var takeName="take"+(index?"Right":"");LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0]}}),arrayEach(["initial","tail"],function(methodName,index){var dropName="drop"+(index?"":"Right");LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1)}}),LazyWrapper.prototype.compact=function(){return this.filter(identity)},LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head()},LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate)},LazyWrapper.prototype.invokeMap=baseRest(function(path,args){return typeof path=="function"?new LazyWrapper(this):this.map(function(value){return baseInvoke(value,path,args)})}),LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)))},LazyWrapper.prototype.slice=function(start,end){start=toInteger(start);var result2=this;return result2.__filtered__&&(start>0||end<0)?new LazyWrapper(result2):(start<0?result2=result2.takeRight(-start):start&&(result2=result2.drop(start)),end!==undefined2&&(end=toInteger(end),result2=end<0?result2.dropRight(-end):result2.take(end-start)),result2)},LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(MAX_ARRAY_LENGTH)},baseForOwn(LazyWrapper.prototype,function(func,methodName){var checkIteratee=/^(?:filter|find|map|reject)|While$/.test(methodName),isTaker=/^(?:head|last)$/.test(methodName),lodashFunc=lodash[isTaker?"take"+(methodName=="last"?"Right":""):methodName],retUnwrapped=isTaker||/^find/.test(methodName);!lodashFunc||(lodash.prototype[methodName]=function(){var value=this.__wrapped__,args=isTaker?[1]:arguments,isLazy=value instanceof LazyWrapper,iteratee2=args[0],useLazy=isLazy||isArray(value),interceptor=function(value2){var result3=lodashFunc.apply(lodash,arrayPush([value2],args));return isTaker&&chainAll?result3[0]:result3};useLazy&&checkIteratee&&typeof iteratee2=="function"&&iteratee2.length!=1&&(isLazy=useLazy=!1);var chainAll=this.__chain__,isHybrid=!!this.__actions__.length,isUnwrapped=retUnwrapped&&!chainAll,onlyLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy){value=onlyLazy?value:new LazyWrapper(this);var result2=func.apply(value,args);return result2.__actions__.push({func:thru,args:[interceptor],thisArg:undefined2}),new LodashWrapper(result2,chainAll)}return isUnwrapped&&onlyLazy?func.apply(this,args):(result2=this.thru(interceptor),isUnwrapped?isTaker?result2.value()[0]:result2.value():result2)})}),arrayEach(["pop","push","shift","sort","splice","unshift"],function(methodName){var func=arrayProto[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){var value=this.value();return func.apply(isArray(value)?value:[],args)}return this[chainName](function(value2){return func.apply(isArray(value2)?value2:[],args)})}}),baseForOwn(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash[methodName];if(lodashFunc){var key=lodashFunc.name+"";hasOwnProperty2.call(realNames,key)||(realNames[key]=[]),realNames[key].push({name:methodName,func:lodashFunc})}}),realNames[createHybrid(undefined2,WRAP_BIND_KEY_FLAG).name]=[{name:"wrapper",func:undefined2}],LazyWrapper.prototype.clone=lazyClone,LazyWrapper.prototype.reverse=lazyReverse,LazyWrapper.prototype.value=lazyValue,lodash.prototype.at=wrapperAt,lodash.prototype.chain=wrapperChain,lodash.prototype.commit=wrapperCommit,lodash.prototype.next=wrapperNext,lodash.prototype.plant=wrapperPlant,lodash.prototype.reverse=wrapperReverse,lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue,lodash.prototype.first=lodash.prototype.head,symIterator&&(lodash.prototype[symIterator]=wrapperToIterator),lodash},_=runInContext();root._=_,__WEBPACK_AMD_DEFINE_RESULT__=function(){return _}.call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==undefined2&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}).call(this)},85139:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";const Yallist=__webpack_require__(8487),MAX=Symbol("max"),LENGTH=Symbol("length"),LENGTH_CALCULATOR=Symbol("lengthCalculator"),ALLOW_STALE=Symbol("allowStale"),MAX_AGE=Symbol("maxAge"),DISPOSE=Symbol("dispose"),NO_DISPOSE_ON_SET=Symbol("noDisposeOnSet"),LRU_LIST=Symbol("lruList"),CACHE=Symbol("cache"),UPDATE_AGE_ON_GET=Symbol("updateAgeOnGet"),naiveLength=()=>1;class LRUCache{constructor(options){if(typeof options=="number"&&(options={max:options}),options||(options={}),options.max&&(typeof options.max!="number"||options.max<0))throw new TypeError("max must be a non-negative number");const max=this[MAX]=options.max||1/0,lc=options.length||naiveLength;if(this[LENGTH_CALCULATOR]=typeof lc!="function"?naiveLength:lc,this[ALLOW_STALE]=options.stale||!1,options.maxAge&&typeof options.maxAge!="number")throw new TypeError("maxAge must be a number");this[MAX_AGE]=options.maxAge||0,this[DISPOSE]=options.dispose,this[NO_DISPOSE_ON_SET]=options.noDisposeOnSet||!1,this[UPDATE_AGE_ON_GET]=options.updateAgeOnGet||!1,this.reset()}set max(mL){if(typeof mL!="number"||mL<0)throw new TypeError("max must be a non-negative number");this[MAX]=mL||1/0,trim(this)}get max(){return this[MAX]}set allowStale(allowStale){this[ALLOW_STALE]=!!allowStale}get allowStale(){return this[ALLOW_STALE]}set maxAge(mA){if(typeof mA!="number")throw new TypeError("maxAge must be a non-negative number");this[MAX_AGE]=mA,trim(this)}get maxAge(){return this[MAX_AGE]}set lengthCalculator(lC){typeof lC!="function"&&(lC=naiveLength),lC!==this[LENGTH_CALCULATOR]&&(this[LENGTH_CALCULATOR]=lC,this[LENGTH]=0,this[LRU_LIST].forEach(hit=>{hit.length=this[LENGTH_CALCULATOR](hit.value,hit.key),this[LENGTH]+=hit.length})),trim(this)}get lengthCalculator(){return this[LENGTH_CALCULATOR]}get length(){return this[LENGTH]}get itemCount(){return this[LRU_LIST].length}rforEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].tail;walker!==null;){const prev=walker.prev;forEachStep(this,fn,walker,thisp),walker=prev}}forEach(fn,thisp){thisp=thisp||this;for(let walker=this[LRU_LIST].head;walker!==null;){const next=walker.next;forEachStep(this,fn,walker,thisp),walker=next}}keys(){return this[LRU_LIST].toArray().map(k=>k.key)}values(){return this[LRU_LIST].toArray().map(k=>k.value)}reset(){this[DISPOSE]&&this[LRU_LIST]&&this[LRU_LIST].length&&this[LRU_LIST].forEach(hit=>this[DISPOSE](hit.key,hit.value)),this[CACHE]=new Map,this[LRU_LIST]=new Yallist,this[LENGTH]=0}dump(){return this[LRU_LIST].map(hit=>isStale(this,hit)?!1:{k:hit.key,v:hit.value,e:hit.now+(hit.maxAge||0)}).toArray().filter(h=>h)}dumpLru(){return this[LRU_LIST]}set(key,value,maxAge){if(maxAge=maxAge||this[MAX_AGE],maxAge&&typeof maxAge!="number")throw new TypeError("maxAge must be a number");const now=maxAge?Date.now():0,len=this[LENGTH_CALCULATOR](value,key);if(this[CACHE].has(key)){if(len>this[MAX])return del(this,this[CACHE].get(key)),!1;const item=this[CACHE].get(key).value;return this[DISPOSE]&&(this[NO_DISPOSE_ON_SET]||this[DISPOSE](key,item.value)),item.now=now,item.maxAge=maxAge,item.value=value,this[LENGTH]+=len-item.length,item.length=len,this.get(key),trim(this),!0}const hit=new Entry(key,value,len,now,maxAge);return hit.length>this[MAX]?(this[DISPOSE]&&this[DISPOSE](key,value),!1):(this[LENGTH]+=hit.length,this[LRU_LIST].unshift(hit),this[CACHE].set(key,this[LRU_LIST].head),trim(this),!0)}has(key){if(!this[CACHE].has(key))return!1;const hit=this[CACHE].get(key).value;return!isStale(this,hit)}get(key){return get(this,key,!0)}peek(key){return get(this,key,!1)}pop(){const node=this[LRU_LIST].tail;return node?(del(this,node),node.value):null}del(key){del(this,this[CACHE].get(key))}load(arr){this.reset();const now=Date.now();for(let l=arr.length-1;l>=0;l--){const hit=arr[l],expiresAt=hit.e||0;if(expiresAt===0)this.set(hit.k,hit.v);else{const maxAge=expiresAt-now;maxAge>0&&this.set(hit.k,hit.v,maxAge)}}}prune(){this[CACHE].forEach((value,key)=>get(this,key,!1))}}const get=(self2,key,doUse)=>{const node=self2[CACHE].get(key);if(node){const hit=node.value;if(isStale(self2,hit)){if(del(self2,node),!self2[ALLOW_STALE])return}else doUse&&(self2[UPDATE_AGE_ON_GET]&&(node.value.now=Date.now()),self2[LRU_LIST].unshiftNode(node));return hit.value}},isStale=(self2,hit)=>{if(!hit||!hit.maxAge&&!self2[MAX_AGE])return!1;const diff=Date.now()-hit.now;return hit.maxAge?diff>hit.maxAge:self2[MAX_AGE]&&diff>self2[MAX_AGE]},trim=self2=>{if(self2[LENGTH]>self2[MAX])for(let walker=self2[LRU_LIST].tail;self2[LENGTH]>self2[MAX]&&walker!==null;){const prev=walker.prev;del(self2,walker),walker=prev}},del=(self2,node)=>{if(node){const hit=node.value;self2[DISPOSE]&&self2[DISPOSE](hit.key,hit.value),self2[LENGTH]-=hit.length,self2[CACHE].delete(hit.key),self2[LRU_LIST].removeNode(node)}};class Entry{constructor(key,value,length,now,maxAge){this.key=key,this.value=value,this.length=length,this.now=now,this.maxAge=maxAge||0}}const forEachStep=(self2,fn,node,thisp)=>{let hit=node.value;isStale(self2,hit)&&(del(self2,node),self2[ALLOW_STALE]||(hit=void 0)),hit&&fn.call(thisp,hit.value,hit.key,self2)};module.exports=LRUCache},52907:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(28455),create=Object.create,hasOwnProperty2=Object.prototype.hasOwnProperty;module.exports=function(limit){var size=0,base=1,queue=create(null),map=create(null),index=0,del;return limit=toPosInt(limit),{hit:function(id){var oldIndex=map[id],nuIndex=++index;if(queue[nuIndex]=id,map[id]=nuIndex,!oldIndex)return++size,size<=limit?void 0:(id=queue[base],del(id),id);if(delete queue[oldIndex],base===oldIndex)for(;!hasOwnProperty2.call(queue,++base););},delete:del=function(id){var oldIndex=map[id];if(!!oldIndex&&(delete queue[oldIndex],delete map[id],--size,base===oldIndex)){if(!size){index=0,base=1;return}for(;!hasOwnProperty2.call(queue,++base););}},clear:function(){size=0,base=1,queue=create(null),map=create(null),index=0}}}},88888:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var aFrom=__webpack_require__(87911),objectMap=__webpack_require__(90017),mixin=__webpack_require__(89354),defineLength=__webpack_require__(38317),nextTick=__webpack_require__(35266),slice=Array.prototype.slice,apply=Function.prototype.apply,create=Object.create;__webpack_require__(79856).async=function(tbi,conf){var waiting=create(null),cache=create(null),base=conf.memoized,original=conf.original,currentCallback,currentContext,currentArgs;conf.memoized=defineLength(function(arg){var args=arguments,last=args[args.length-1];return typeof last=="function"&&(currentCallback=last,args=slice.call(args,0,-1)),base.apply(currentContext=this,currentArgs=args)},base);try{mixin(conf.memoized,base)}catch{}conf.on("get",function(id){var cb,context,args;if(!!currentCallback){if(waiting[id]){typeof waiting[id]=="function"?waiting[id]=[waiting[id],currentCallback]:waiting[id].push(currentCallback),currentCallback=null;return}cb=currentCallback,context=currentContext,args=currentArgs,currentCallback=currentContext=currentArgs=null,nextTick(function(){var data;hasOwnProperty.call(cache,id)?(data=cache[id],conf.emit("getasync",id,args,context),apply.call(cb,data.context,data.args)):(currentCallback=cb,currentContext=context,currentArgs=args,base.apply(context,args))})}}),conf.original=function(){var args,cb,origCb,result;return currentCallback?(args=aFrom(arguments),cb=function self2(err){var cb2,args2,id=self2.id;if(id==null){nextTick(apply.bind(self2,this,arguments));return}if(delete self2.id,cb2=waiting[id],delete waiting[id],!!cb2)return args2=aFrom(arguments),conf.has(id)&&(err?conf.delete(id):(cache[id]={context:this,args:args2},conf.emit("setasync",id,typeof cb2=="function"?1:cb2.length))),typeof cb2=="function"?result=apply.call(cb2,this,args2):cb2.forEach(function(cb3){result=apply.call(cb3,this,args2)},this),result},origCb=currentCallback,currentCallback=currentContext=currentArgs=null,args.push(cb),result=apply.call(original,this,args),cb.cb=origCb,currentCallback=cb,result):apply.call(original,this,arguments)},conf.on("set",function(id){if(!currentCallback){conf.delete(id);return}waiting[id]?typeof waiting[id]=="function"?waiting[id]=[waiting[id],currentCallback.cb]:waiting[id].push(currentCallback.cb):waiting[id]=currentCallback.cb,delete currentCallback.cb,currentCallback.id=id,currentCallback=null}),conf.on("delete",function(id){var result;hasOwnProperty.call(waiting,id)||!cache[id]||(result=cache[id],delete cache[id],conf.emit("deleteasync",id,slice.call(result.args,1)))}),conf.on("clear",function(){var oldCache=cache;cache=create(null),conf.emit("clearasync",objectMap(oldCache,function(data){return slice.call(data.args,1)}))})}},76915:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(80699),forEach=__webpack_require__(62480),extensions=__webpack_require__(79856),apply=Function.prototype.apply;extensions.dispose=function(dispose,conf,options){var del;if(callable(dispose),options.async&&extensions.async||options.promise&&extensions.promise){conf.on("deleteasync",del=function(id,resultArray){apply.call(dispose,null,resultArray)}),conf.on("clearasync",function(cache){forEach(cache,function(result,id){del(id,result)})});return}conf.on("delete",del=function(id,result){dispose(result)}),conf.on("clear",function(cache){forEach(cache,function(result,id){del(id,result)})})}},94330:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var aFrom=__webpack_require__(87911),forEach=__webpack_require__(62480),nextTick=__webpack_require__(35266),isPromise=__webpack_require__(48066),timeout=__webpack_require__(30730),extensions=__webpack_require__(79856),noop=Function.prototype,max=Math.max,min=Math.min,create=Object.create;extensions.maxAge=function(maxAge,conf,options){var timeouts,postfix,preFetchAge,preFetchTimeouts;maxAge=timeout(maxAge),maxAge&&(timeouts=create(null),postfix=options.async&&extensions.async||options.promise&&extensions.promise?"async":"",conf.on("set"+postfix,function(id){timeouts[id]=setTimeout(function(){conf.delete(id)},maxAge),typeof timeouts[id].unref=="function"&&timeouts[id].unref(),preFetchTimeouts&&(preFetchTimeouts[id]&&preFetchTimeouts[id]!=="nextTick"&&clearTimeout(preFetchTimeouts[id]),preFetchTimeouts[id]=setTimeout(function(){delete preFetchTimeouts[id]},preFetchAge),typeof preFetchTimeouts[id].unref=="function"&&preFetchTimeouts[id].unref())}),conf.on("delete"+postfix,function(id){clearTimeout(timeouts[id]),delete timeouts[id],preFetchTimeouts&&(preFetchTimeouts[id]!=="nextTick"&&clearTimeout(preFetchTimeouts[id]),delete preFetchTimeouts[id])}),options.preFetch&&(options.preFetch===!0||isNaN(options.preFetch)?preFetchAge=.333:preFetchAge=max(min(Number(options.preFetch),1),0),preFetchAge&&(preFetchTimeouts={},preFetchAge=(1-preFetchAge)*maxAge,conf.on("get"+postfix,function(id,args,context){preFetchTimeouts[id]||(preFetchTimeouts[id]="nextTick",nextTick(function(){var result;preFetchTimeouts[id]==="nextTick"&&(delete preFetchTimeouts[id],conf.delete(id),options.async&&(args=aFrom(args),args.push(noop)),result=conf.memoized.apply(context,args),options.promise&&isPromise(result)&&(typeof result.done=="function"?result.done(noop,noop):result.then(noop,noop)))}))}))),conf.on("clear"+postfix,function(){forEach(timeouts,function(id){clearTimeout(id)}),timeouts={},preFetchTimeouts&&(forEach(preFetchTimeouts,function(id){id!=="nextTick"&&clearTimeout(id)}),preFetchTimeouts={})}))}},19963:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInteger=__webpack_require__(28455),lruQueue=__webpack_require__(52907),extensions=__webpack_require__(79856);extensions.max=function(max,conf,options){var postfix,queue,hit;max=toPosInteger(max),max&&(queue=lruQueue(max),postfix=options.async&&extensions.async||options.promise&&extensions.promise?"async":"",conf.on("set"+postfix,hit=function(id){id=queue.hit(id),id!==void 0&&conf.delete(id)}),conf.on("get"+postfix,hit),conf.on("delete"+postfix,queue.delete),conf.on("clear"+postfix,queue.clear))}},57688:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var objectMap=__webpack_require__(90017),primitiveSet=__webpack_require__(6285),ensureString=__webpack_require__(2981),toShortString=__webpack_require__(48181),isPromise=__webpack_require__(48066),nextTick=__webpack_require__(35266),create=Object.create,supportedModes=primitiveSet("then","then:finally","done","done:finally");__webpack_require__(79856).promise=function(mode,conf){var waiting=create(null),cache=create(null),promises=create(null);if(mode===!0)mode=null;else if(mode=ensureString(mode),!supportedModes[mode])throw new TypeError("'"+toShortString(mode)+"' is not valid promise mode");conf.on("set",function(id,ignore,promise){var isFailed=!1;if(!isPromise(promise)){cache[id]=promise,conf.emit("setasync",id,1);return}waiting[id]=1,promises[id]=promise;var onSuccess=function(result){var count=waiting[id];if(isFailed)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)
|
56
|
-
Consider to rely on 'then' or 'done' mode instead.`);!count||(delete waiting[id],cache[id]=result,conf.emit("setasync",id,count))},onFailure=function(){isFailed=!0,waiting[id]&&(delete waiting[id],delete promises[id],conf.delete(id))},resolvedMode=mode;if(resolvedMode||(resolvedMode="then"),resolvedMode==="then"){var nextTickFailure=function(){nextTick(onFailure)};promise=promise.then(function(result){nextTick(onSuccess.bind(this,result))},nextTickFailure),typeof promise.finally=="function"&&promise.finally(nextTickFailure)}else if(resolvedMode==="done"){if(typeof promise.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");promise.done(onSuccess,onFailure)}else if(resolvedMode==="done:finally"){if(typeof promise.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof promise.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");promise.done(onSuccess),promise.finally(onFailure)}}),conf.on("get",function(id,args,context){var promise;if(waiting[id]){++waiting[id];return}promise=promises[id];var emit=function(){conf.emit("getasync",id,args,context)};isPromise(promise)?typeof promise.done=="function"?promise.done(emit):promise.then(function(){nextTick(emit)}):emit()}),conf.on("delete",function(id){if(delete promises[id],waiting[id]){delete waiting[id];return}if(!!hasOwnProperty.call(cache,id)){var result=cache[id];delete cache[id],conf.emit("deleteasync",id,[result])}}),conf.on("clear",function(){var oldCache=cache;cache=create(null),waiting=create(null),promises=create(null),conf.emit("clearasync",objectMap(oldCache,function(data){return[data]}))})}},18448:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(89967),extensions=__webpack_require__(79856),create=Object.create,defineProperties=Object.defineProperties;extensions.refCounter=function(ignore,conf,options){var cache,postfix;cache=create(null),postfix=options.async&&extensions.async||options.promise&&extensions.promise?"async":"",conf.on("set"+postfix,function(id,length){cache[id]=length||1}),conf.on("get"+postfix,function(id){++cache[id]}),conf.on("delete"+postfix,function(id){delete cache[id]}),conf.on("clear"+postfix,function(){cache={}}),defineProperties(conf.memoized,{deleteRef:d(function(){var id=conf.get(arguments);return id===null||!cache[id]?null:--cache[id]?!1:(conf.delete(id),!0)}),getRefCount:d(function(){var id=conf.get(arguments);return id===null||!cache[id]?0:cache[id]})})}},56520:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var normalizeOpts=__webpack_require__(71743),resolveLength=__webpack_require__(66834),plain=__webpack_require__(76798);module.exports=function(fn){var options=normalizeOpts(arguments[1]),length;return options.normalizer||(length=options.length=resolveLength(options.length,fn.length,options.async),length!==0&&(options.primitive?length===!1?options.normalizer=__webpack_require__(6238):length>1&&(options.normalizer=__webpack_require__(97191)(length)):length===!1?options.normalizer=__webpack_require__(64370)():length===1?options.normalizer=__webpack_require__(83180)():options.normalizer=__webpack_require__(63899)(length))),options.async&&__webpack_require__(88888),options.promise&&__webpack_require__(57688),options.dispose&&__webpack_require__(76915),options.maxAge&&__webpack_require__(94330),options.max&&__webpack_require__(19963),options.refCounter&&__webpack_require__(18448),plain(fn,options)}},79167:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var customError=__webpack_require__(49734),defineLength=__webpack_require__(38317),d=__webpack_require__(89967),ee=__webpack_require__(24293).methods,resolveResolve=__webpack_require__(21188),resolveNormalize=__webpack_require__(16601),apply=Function.prototype.apply,call=Function.prototype.call,create=Object.create,defineProperties=Object.defineProperties,on=ee.on,emit=ee.emit;module.exports=function(original,length,options){var cache=create(null),conf,memLength,get,set,del,clear,extDel,extGet,extHas,normalizer,getListeners,setListeners,deleteListeners,memoized,resolve;return length!==!1?memLength=length:isNaN(original.length)?memLength=1:memLength=original.length,options.normalizer&&(normalizer=resolveNormalize(options.normalizer),get=normalizer.get,set=normalizer.set,del=normalizer.delete,clear=normalizer.clear),options.resolvers!=null&&(resolve=resolveResolve(options.resolvers)),get?memoized=defineLength(function(arg){var id,result,args=arguments;if(resolve&&(args=resolve(args)),id=get(args),id!==null&&hasOwnProperty.call(cache,id))return getListeners&&conf.emit("get",id,args,this),cache[id];if(args.length===1?result=call.call(original,this,args[0]):result=apply.call(original,this,args),id===null){if(id=get(args),id!==null)throw customError("Circular invocation","CIRCULAR_INVOCATION");id=set(args)}else if(hasOwnProperty.call(cache,id))throw customError("Circular invocation","CIRCULAR_INVOCATION");return cache[id]=result,setListeners&&conf.emit("set",id,null,result),result},memLength):length===0?memoized=function(){var result;if(hasOwnProperty.call(cache,"data"))return getListeners&&conf.emit("get","data",arguments,this),cache.data;if(arguments.length?result=apply.call(original,this,arguments):result=call.call(original,this),hasOwnProperty.call(cache,"data"))throw customError("Circular invocation","CIRCULAR_INVOCATION");return cache.data=result,setListeners&&conf.emit("set","data",null,result),result}:memoized=function(arg){var result,args=arguments,id;if(resolve&&(args=resolve(arguments)),id=String(args[0]),hasOwnProperty.call(cache,id))return getListeners&&conf.emit("get",id,args,this),cache[id];if(args.length===1?result=call.call(original,this,args[0]):result=apply.call(original,this,args),hasOwnProperty.call(cache,id))throw customError("Circular invocation","CIRCULAR_INVOCATION");return cache[id]=result,setListeners&&conf.emit("set",id,null,result),result},conf={original,memoized,profileName:options.profileName,get:function(args){return resolve&&(args=resolve(args)),get?get(args):String(args[0])},has:function(id){return hasOwnProperty.call(cache,id)},delete:function(id){var result;!hasOwnProperty.call(cache,id)||(del&&del(id),result=cache[id],delete cache[id],deleteListeners&&conf.emit("delete",id,result))},clear:function(){var oldCache=cache;clear&&clear(),cache=create(null),conf.emit("clear",oldCache)},on:function(type,listener){return type==="get"?getListeners=!0:type==="set"?setListeners=!0:type==="delete"&&(deleteListeners=!0),on.call(this,type,listener)},emit,updateEnv:function(){original=conf.original}},get?extDel=defineLength(function(arg){var id,args=arguments;resolve&&(args=resolve(args)),id=get(args),id!==null&&conf.delete(id)},memLength):length===0?extDel=function(){return conf.delete("data")}:extDel=function(arg){return resolve&&(arg=resolve(arguments)[0]),conf.delete(arg)},extGet=defineLength(function(){var id,args=arguments;return length===0?cache.data:(resolve&&(args=resolve(args)),get?id=get(args):id=String(args[0]),cache[id])}),extHas=defineLength(function(){var id,args=arguments;return length===0?conf.has("data"):(resolve&&(args=resolve(args)),get?id=get(args):id=String(args[0]),id===null?!1:conf.has(id))}),defineProperties(memoized,{__memoized__:d(!0),delete:d(extDel),clear:d(conf.clear),_get:d(extGet),_has:d(extHas)}),conf}},79856:()=>{"use strict"},66834:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(28455);module.exports=function(optsLength,fnLength,isAsync){var length;return isNaN(optsLength)?(length=fnLength,length>=0?isAsync&&length?length-1:length:1):optsLength===!1?!1:toPosInt(optsLength)}},16601:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(80699);module.exports=function(userNormalizer){var normalizer;return typeof userNormalizer=="function"?{set:userNormalizer,get:userNormalizer}:(normalizer={get:callable(userNormalizer.get)},userNormalizer.set!==void 0?(normalizer.set=callable(userNormalizer.set),userNormalizer.delete&&(normalizer.delete=callable(userNormalizer.delete)),userNormalizer.clear&&(normalizer.clear=callable(userNormalizer.clear)),normalizer):(normalizer.set=normalizer.get,normalizer))}},21188:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toArray=__webpack_require__(28856),isValue=__webpack_require__(24207),callable=__webpack_require__(80699),slice=Array.prototype.slice,resolveArgs;resolveArgs=function(args){return this.map(function(resolve,i){return resolve?resolve(args[i]):args[i]}).concat(slice.call(args,this.length))},module.exports=function(resolvers){return resolvers=toArray(resolvers),resolvers.forEach(function(resolve){isValue(resolve)&&callable(resolve)}),resolveArgs.bind(resolvers)}},83180:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var indexOf=__webpack_require__(1178);module.exports=function(){var lastId=0,argsMap=[],cache=[];return{get:function(args){var index=indexOf.call(argsMap,args[0]);return index===-1?null:cache[index]},set:function(args){return argsMap.push(args[0]),cache.push(++lastId),lastId},delete:function(id){var index=indexOf.call(cache,id);index!==-1&&(argsMap.splice(index,1),cache.splice(index,1))},clear:function(){argsMap=[],cache=[]}}}},63899:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var indexOf=__webpack_require__(1178),create=Object.create;module.exports=function(length){var lastId=0,map=[[],[]],cache=create(null);return{get:function(args){for(var index=0,set=map,i;index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return null;set=set[1][i],++index}return i=indexOf.call(set[0],args[index]),i===-1?null:set[1][i]||null},set:function(args){for(var index=0,set=map,i;index<length-1;)i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1,set[1].push([[],[]])),set=set[1][i],++index;return i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1),set[1][i]=++lastId,cache[lastId]=args,lastId},delete:function(id){for(var index=0,set=map,i,path=[],args=cache[id];index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return;path.push(set,i),set=set[1][i],++index}if(i=indexOf.call(set[0],args[index]),i!==-1){for(id=set[1][i],set[0].splice(i,1),set[1].splice(i,1);!set[0].length&&path.length;)i=path.pop(),set=path.pop(),set[0].splice(i,1),set[1].splice(i,1);delete cache[id]}},clear:function(){map=[[],[]],cache=create(null)}}}},97191:module=>{"use strict";module.exports=function(length){return length?function(args){for(var id=String(args[0]),i=0,currentLength=length;--currentLength;)id+=""+args[++i];return id}:function(){return""}}},64370:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var indexOf=__webpack_require__(1178),create=Object.create;module.exports=function(){var lastId=0,map=[],cache=create(null);return{get:function(args){var index=0,set=map,i,length=args.length;if(length===0)return set[length]||null;if(set=set[length]){for(;index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return null;set=set[1][i],++index}return i=indexOf.call(set[0],args[index]),i===-1?null:set[1][i]||null}return null},set:function(args){var index=0,set=map,i,length=args.length;if(length===0)set[length]=++lastId;else{for(set[length]||(set[length]=[[],[]]),set=set[length];index<length-1;)i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1,set[1].push([[],[]])),set=set[1][i],++index;i=indexOf.call(set[0],args[index]),i===-1&&(i=set[0].push(args[index])-1),set[1][i]=++lastId}return cache[lastId]=args,lastId},delete:function(id){var index=0,set=map,i,args=cache[id],length=args.length,path=[];if(length===0)delete set[length];else if(set=set[length]){for(;index<length-1;){if(i=indexOf.call(set[0],args[index]),i===-1)return;path.push(set,i),set=set[1][i],++index}if(i=indexOf.call(set[0],args[index]),i===-1)return;for(id=set[1][i],set[0].splice(i,1),set[1].splice(i,1);!set[0].length&&path.length;)i=path.pop(),set=path.pop(),set[0].splice(i,1),set[1].splice(i,1)}delete cache[id]},clear:function(){map=[],cache=create(null)}}}},6238:module=>{"use strict";module.exports=function(args){var id,i,length=args.length;if(!length)return"";for(id=String(args[i=0]);--length;)id+=""+args[++i];return id}},76798:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(80699),forEach=__webpack_require__(62480),extensions=__webpack_require__(79856),configure=__webpack_require__(79167),resolveLength=__webpack_require__(66834);module.exports=function self2(fn){var options,length,conf;if(callable(fn),options=Object(arguments[1]),options.async&&options.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(fn,"__memoized__")&&!options.force?fn:(length=resolveLength(options.length,fn.length,options.async&&extensions.async),conf=configure(fn,length,options),forEach(extensions,function(extFn,name){options[name]&&extFn(options[name],conf,options)}),self2.__profiler__&&self2.__profiler__(conf),conf.updateEnv(),conf.memoized)}},35266:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224),ensureCallable=function(fn){if(typeof fn!="function")throw new TypeError(fn+" is not a function");return fn},byObserver=function(Observer){var node=document.createTextNode(""),queue,currentQueue,i=0;return new Observer(function(){var callback;if(queue)currentQueue&&(queue=currentQueue.concat(queue));else{if(!currentQueue)return;queue=currentQueue}if(currentQueue=queue,queue=null,typeof currentQueue=="function"){callback=currentQueue,currentQueue=null,callback();return}for(node.data=i=++i%2;currentQueue;)callback=currentQueue.shift(),currentQueue.length||(currentQueue=null),callback()}).observe(node,{characterData:!0}),function(fn){if(ensureCallable(fn),queue){typeof queue=="function"?queue=[queue,fn]:queue.push(fn);return}queue=fn,node.data=i=++i%2}};module.exports=function(){if(typeof process=="object"&&process&&typeof process.nextTick=="function")return process.nextTick;if(typeof queueMicrotask=="function")return function(cb){queueMicrotask(ensureCallable(cb))};if(typeof document=="object"&&document){if(typeof MutationObserver=="function")return byObserver(MutationObserver);if(typeof WebKitMutationObserver=="function")return byObserver(WebKitMutationObserver)}return typeof setImmediate=="function"?function(cb){setImmediate(ensureCallable(cb))}:typeof setTimeout=="function"||typeof setTimeout=="object"?function(cb){setTimeout(ensureCallable(cb),0)}:null}()},74170:(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{var process=__webpack_require__(14224);/*! *****************************************************************************
|
57
|
-
Copyright (C) Microsoft. All rights reserved.
|
58
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
59
|
-
this file except in compliance with the License. You may obtain a copy of the
|
60
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
61
|
-
|
62
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
63
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
64
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
65
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
66
|
-
|
67
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
68
|
-
and limitations under the License.
|
69
|
-
***************************************************************************** */var Reflect2;(function(Reflect3){(function(factory){var root=typeof __webpack_require__.g=="object"?__webpack_require__.g:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),exporter=makeExporter(Reflect3);typeof root.Reflect>"u"?root.Reflect=Reflect3:exporter=makeExporter(root.Reflect,exporter),factory(exporter);function makeExporter(target,previous){return function(key,value){typeof target[key]!="function"&&Object.defineProperty(target,key,{configurable:!0,writable:!0,value}),previous&&previous(key,value)}}})(function(exporter){var hasOwn=Object.prototype.hasOwnProperty,supportsSymbol=typeof Symbol=="function",toPrimitiveSymbol=supportsSymbol&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",iteratorSymbol=supportsSymbol&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",supportsCreate=typeof Object.create=="function",supportsProto={__proto__:[]}instanceof Array,downLevel=!supportsCreate&&!supportsProto,HashMap={create:supportsCreate?function(){return MakeDictionary(Object.create(null))}:supportsProto?function(){return MakeDictionary({__proto__:null})}:function(){return MakeDictionary({})},has:downLevel?function(map,key){return hasOwn.call(map,key)}:function(map,key){return key in map},get:downLevel?function(map,key){return hasOwn.call(map,key)?map[key]:void 0}:function(map,key){return map[key]}},functionPrototype=Object.getPrototypeOf(Function),usePolyfill=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",_Map=!usePolyfill&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:CreateMapPolyfill(),_Set=!usePolyfill&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:CreateSetPolyfill(),_WeakMap=!usePolyfill&&typeof WeakMap=="function"?WeakMap:CreateWeakMapPolyfill(),Metadata=new _WeakMap;function decorate(decorators,target,propertyKey,attributes){if(IsUndefined(propertyKey)){if(!IsArray(decorators))throw new TypeError;if(!IsConstructor(target))throw new TypeError;return DecorateConstructor(decorators,target)}else{if(!IsArray(decorators))throw new TypeError;if(!IsObject(target))throw new TypeError;if(!IsObject(attributes)&&!IsUndefined(attributes)&&!IsNull(attributes))throw new TypeError;return IsNull(attributes)&&(attributes=void 0),propertyKey=ToPropertyKey(propertyKey),DecorateProperty(decorators,target,propertyKey,attributes)}}exporter("decorate",decorate);function metadata(metadataKey,metadataValue){function decorator(target,propertyKey){if(!IsObject(target))throw new TypeError;if(!IsUndefined(propertyKey)&&!IsPropertyKey(propertyKey))throw new TypeError;OrdinaryDefineOwnMetadata(metadataKey,metadataValue,target,propertyKey)}return decorator}exporter("metadata",metadata);function defineMetadata(metadataKey,metadataValue,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryDefineOwnMetadata(metadataKey,metadataValue,target,propertyKey)}exporter("defineMetadata",defineMetadata);function hasMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryHasMetadata(metadataKey,target,propertyKey)}exporter("hasMetadata",hasMetadata);function hasOwnMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryHasOwnMetadata(metadataKey,target,propertyKey)}exporter("hasOwnMetadata",hasOwnMetadata);function getMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryGetMetadata(metadataKey,target,propertyKey)}exporter("getMetadata",getMetadata);function getOwnMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryGetOwnMetadata(metadataKey,target,propertyKey)}exporter("getOwnMetadata",getOwnMetadata);function getMetadataKeys(target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryMetadataKeys(target,propertyKey)}exporter("getMetadataKeys",getMetadataKeys);function getOwnMetadataKeys(target,propertyKey){if(!IsObject(target))throw new TypeError;return IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey)),OrdinaryOwnMetadataKeys(target,propertyKey)}exporter("getOwnMetadataKeys",getOwnMetadataKeys);function deleteMetadata(metadataKey,target,propertyKey){if(!IsObject(target))throw new TypeError;IsUndefined(propertyKey)||(propertyKey=ToPropertyKey(propertyKey));var metadataMap=GetOrCreateMetadataMap(target,propertyKey,!1);if(IsUndefined(metadataMap)||!metadataMap.delete(metadataKey))return!1;if(metadataMap.size>0)return!0;var targetMetadata=Metadata.get(target);return targetMetadata.delete(propertyKey),targetMetadata.size>0||Metadata.delete(target),!0}exporter("deleteMetadata",deleteMetadata);function DecorateConstructor(decorators,target){for(var i=decorators.length-1;i>=0;--i){var decorator=decorators[i],decorated=decorator(target);if(!IsUndefined(decorated)&&!IsNull(decorated)){if(!IsConstructor(decorated))throw new TypeError;target=decorated}}return target}function DecorateProperty(decorators,target,propertyKey,descriptor){for(var i=decorators.length-1;i>=0;--i){var decorator=decorators[i],decorated=decorator(target,propertyKey,descriptor);if(!IsUndefined(decorated)&&!IsNull(decorated)){if(!IsObject(decorated))throw new TypeError;descriptor=decorated}}return descriptor}function GetOrCreateMetadataMap(O,P,Create){var targetMetadata=Metadata.get(O);if(IsUndefined(targetMetadata)){if(!Create)return;targetMetadata=new _Map,Metadata.set(O,targetMetadata)}var metadataMap=targetMetadata.get(P);if(IsUndefined(metadataMap)){if(!Create)return;metadataMap=new _Map,targetMetadata.set(P,metadataMap)}return metadataMap}function OrdinaryHasMetadata(MetadataKey,O,P){var hasOwn2=OrdinaryHasOwnMetadata(MetadataKey,O,P);if(hasOwn2)return!0;var parent=OrdinaryGetPrototypeOf(O);return IsNull(parent)?!1:OrdinaryHasMetadata(MetadataKey,parent,P)}function OrdinaryHasOwnMetadata(MetadataKey,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!1);return IsUndefined(metadataMap)?!1:ToBoolean(metadataMap.has(MetadataKey))}function OrdinaryGetMetadata(MetadataKey,O,P){var hasOwn2=OrdinaryHasOwnMetadata(MetadataKey,O,P);if(hasOwn2)return OrdinaryGetOwnMetadata(MetadataKey,O,P);var parent=OrdinaryGetPrototypeOf(O);if(!IsNull(parent))return OrdinaryGetMetadata(MetadataKey,parent,P)}function OrdinaryGetOwnMetadata(MetadataKey,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!1);if(!IsUndefined(metadataMap))return metadataMap.get(MetadataKey)}function OrdinaryDefineOwnMetadata(MetadataKey,MetadataValue,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!0);metadataMap.set(MetadataKey,MetadataValue)}function OrdinaryMetadataKeys(O,P){var ownKeys=OrdinaryOwnMetadataKeys(O,P),parent=OrdinaryGetPrototypeOf(O);if(parent===null)return ownKeys;var parentKeys=OrdinaryMetadataKeys(parent,P);if(parentKeys.length<=0)return ownKeys;if(ownKeys.length<=0)return parentKeys;for(var set=new _Set,keys=[],_i=0,ownKeys_1=ownKeys;_i<ownKeys_1.length;_i++){var key=ownKeys_1[_i],hasKey=set.has(key);hasKey||(set.add(key),keys.push(key))}for(var _a=0,parentKeys_1=parentKeys;_a<parentKeys_1.length;_a++){var key=parentKeys_1[_a],hasKey=set.has(key);hasKey||(set.add(key),keys.push(key))}return keys}function OrdinaryOwnMetadataKeys(O,P){var keys=[],metadataMap=GetOrCreateMetadataMap(O,P,!1);if(IsUndefined(metadataMap))return keys;for(var keysObj=metadataMap.keys(),iterator=GetIterator(keysObj),k=0;;){var next=IteratorStep(iterator);if(!next)return keys.length=k,keys;var nextValue=IteratorValue(next);try{keys[k]=nextValue}catch(e){try{IteratorClose(iterator)}finally{throw e}}k++}}function Type(x){if(x===null)return 1;switch(typeof x){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return x===null?1:6;default:return 6}}function IsUndefined(x){return x===void 0}function IsNull(x){return x===null}function IsSymbol(x){return typeof x=="symbol"}function IsObject(x){return typeof x=="object"?x!==null:typeof x=="function"}function ToPrimitive(input,PreferredType){switch(Type(input)){case 0:return input;case 1:return input;case 2:return input;case 3:return input;case 4:return input;case 5:return input}var hint=PreferredType===3?"string":PreferredType===5?"number":"default",exoticToPrim=GetMethod(input,toPrimitiveSymbol);if(exoticToPrim!==void 0){var result=exoticToPrim.call(input,hint);if(IsObject(result))throw new TypeError;return result}return OrdinaryToPrimitive(input,hint==="default"?"number":hint)}function OrdinaryToPrimitive(O,hint){if(hint==="string"){var toString_1=O.toString;if(IsCallable(toString_1)){var result=toString_1.call(O);if(!IsObject(result))return result}var valueOf=O.valueOf;if(IsCallable(valueOf)){var result=valueOf.call(O);if(!IsObject(result))return result}}else{var valueOf=O.valueOf;if(IsCallable(valueOf)){var result=valueOf.call(O);if(!IsObject(result))return result}var toString_2=O.toString;if(IsCallable(toString_2)){var result=toString_2.call(O);if(!IsObject(result))return result}}throw new TypeError}function ToBoolean(argument){return!!argument}function ToString(argument){return""+argument}function ToPropertyKey(argument){var key=ToPrimitive(argument,3);return IsSymbol(key)?key:ToString(key)}function IsArray(argument){return Array.isArray?Array.isArray(argument):argument instanceof Object?argument instanceof Array:Object.prototype.toString.call(argument)==="[object Array]"}function IsCallable(argument){return typeof argument=="function"}function IsConstructor(argument){return typeof argument=="function"}function IsPropertyKey(argument){switch(Type(argument)){case 3:return!0;case 4:return!0;default:return!1}}function GetMethod(V,P){var func=V[P];if(func!=null){if(!IsCallable(func))throw new TypeError;return func}}function GetIterator(obj){var method=GetMethod(obj,iteratorSymbol);if(!IsCallable(method))throw new TypeError;var iterator=method.call(obj);if(!IsObject(iterator))throw new TypeError;return iterator}function IteratorValue(iterResult){return iterResult.value}function IteratorStep(iterator){var result=iterator.next();return result.done?!1:result}function IteratorClose(iterator){var f=iterator.return;f&&f.call(iterator)}function OrdinaryGetPrototypeOf(O){var proto=Object.getPrototypeOf(O);if(typeof O!="function"||O===functionPrototype||proto!==functionPrototype)return proto;var prototype=O.prototype,prototypeProto=prototype&&Object.getPrototypeOf(prototype);if(prototypeProto==null||prototypeProto===Object.prototype)return proto;var constructor=prototypeProto.constructor;return typeof constructor!="function"||constructor===O?proto:constructor}function CreateMapPolyfill(){var cacheSentinel={},arraySentinel=[],MapIterator=function(){function MapIterator2(keys,values,selector){this._index=0,this._keys=keys,this._values=values,this._selector=selector}return MapIterator2.prototype["@@iterator"]=function(){return this},MapIterator2.prototype[iteratorSymbol]=function(){return this},MapIterator2.prototype.next=function(){var index=this._index;if(index>=0&&index<this._keys.length){var result=this._selector(this._keys[index],this._values[index]);return index+1>=this._keys.length?(this._index=-1,this._keys=arraySentinel,this._values=arraySentinel):this._index++,{value:result,done:!1}}return{value:void 0,done:!0}},MapIterator2.prototype.throw=function(error){throw this._index>=0&&(this._index=-1,this._keys=arraySentinel,this._values=arraySentinel),error},MapIterator2.prototype.return=function(value){return this._index>=0&&(this._index=-1,this._keys=arraySentinel,this._values=arraySentinel),{value,done:!0}},MapIterator2}();return function(){function Map2(){this._keys=[],this._values=[],this._cacheKey=cacheSentinel,this._cacheIndex=-2}return Object.defineProperty(Map2.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Map2.prototype.has=function(key){return this._find(key,!1)>=0},Map2.prototype.get=function(key){var index=this._find(key,!1);return index>=0?this._values[index]:void 0},Map2.prototype.set=function(key,value){var index=this._find(key,!0);return this._values[index]=value,this},Map2.prototype.delete=function(key){var index=this._find(key,!1);if(index>=0){for(var size=this._keys.length,i=index+1;i<size;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,key===this._cacheKey&&(this._cacheKey=cacheSentinel,this._cacheIndex=-2),!0}return!1},Map2.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=cacheSentinel,this._cacheIndex=-2},Map2.prototype.keys=function(){return new MapIterator(this._keys,this._values,getKey)},Map2.prototype.values=function(){return new MapIterator(this._keys,this._values,getValue)},Map2.prototype.entries=function(){return new MapIterator(this._keys,this._values,getEntry)},Map2.prototype["@@iterator"]=function(){return this.entries()},Map2.prototype[iteratorSymbol]=function(){return this.entries()},Map2.prototype._find=function(key,insert){return this._cacheKey!==key&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=key)),this._cacheIndex<0&&insert&&(this._cacheIndex=this._keys.length,this._keys.push(key),this._values.push(void 0)),this._cacheIndex},Map2}();function getKey(key,_){return key}function getValue(_,value){return value}function getEntry(key,value){return[key,value]}}function CreateSetPolyfill(){return function(){function Set2(){this._map=new _Map}return Object.defineProperty(Set2.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),Set2.prototype.has=function(value){return this._map.has(value)},Set2.prototype.add=function(value){return this._map.set(value,value),this},Set2.prototype.delete=function(value){return this._map.delete(value)},Set2.prototype.clear=function(){this._map.clear()},Set2.prototype.keys=function(){return this._map.keys()},Set2.prototype.values=function(){return this._map.values()},Set2.prototype.entries=function(){return this._map.entries()},Set2.prototype["@@iterator"]=function(){return this.keys()},Set2.prototype[iteratorSymbol]=function(){return this.keys()},Set2}()}function CreateWeakMapPolyfill(){var UUID_SIZE=16,keys=HashMap.create(),rootKey=CreateUniqueKey();return function(){function WeakMap2(){this._key=CreateUniqueKey()}return WeakMap2.prototype.has=function(target){var table=GetOrCreateWeakMapTable(target,!1);return table!==void 0?HashMap.has(table,this._key):!1},WeakMap2.prototype.get=function(target){var table=GetOrCreateWeakMapTable(target,!1);return table!==void 0?HashMap.get(table,this._key):void 0},WeakMap2.prototype.set=function(target,value){var table=GetOrCreateWeakMapTable(target,!0);return table[this._key]=value,this},WeakMap2.prototype.delete=function(target){var table=GetOrCreateWeakMapTable(target,!1);return table!==void 0?delete table[this._key]:!1},WeakMap2.prototype.clear=function(){this._key=CreateUniqueKey()},WeakMap2}();function CreateUniqueKey(){var key;do key="@@WeakMap@@"+CreateUUID();while(HashMap.has(keys,key));return keys[key]=!0,key}function GetOrCreateWeakMapTable(target,create){if(!hasOwn.call(target,rootKey)){if(!create)return;Object.defineProperty(target,rootKey,{value:HashMap.create()})}return target[rootKey]}function FillRandomBytes(buffer,size){for(var i=0;i<size;++i)buffer[i]=Math.random()*255|0;return buffer}function GenRandomBytes(size){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(size)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(size)):FillRandomBytes(new Uint8Array(size),size):FillRandomBytes(new Array(size),size)}function CreateUUID(){var data=GenRandomBytes(UUID_SIZE);data[6]=data[6]&79|64,data[8]=data[8]&191|128;for(var result="",offset=0;offset<UUID_SIZE;++offset){var byte=data[offset];(offset===4||offset===6||offset===8)&&(result+="-"),byte<16&&(result+="0"),result+=byte.toString(16).toLowerCase()}return result}}function MakeDictionary(obj){return obj.__=void 0,delete obj.__,obj}})})(Reflect2||(Reflect2={}))},33096:(module,__unused_webpack_exports,__webpack_require__)=>{const ANY=Symbol("SemVer ANY");class Comparator{static get ANY(){return ANY}constructor(comp,options){if(options=parseOptions(options),comp instanceof Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value}comp=comp.trim().split(/\s+/).join(" "),debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this)}parse(comp){const r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY}toString(){return this.value}test(version){if(debug("Comparator.test",version,this.options.loose),this.semver===ANY||version===ANY)return!0;if(typeof version=="string")try{version=new SemVer(version,this.options)}catch{return!1}return cmp(version,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof Comparator))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Range(comp.value,options).test(this.value):comp.operator===""?comp.value===""?!0:new Range(this.value,options).test(comp.semver):(options=parseOptions(options),options.includePrerelease&&(this.value==="<0.0.0-0"||comp.value==="<0.0.0-0")||!options.includePrerelease&&(this.value.startsWith("<0.0.0")||comp.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&comp.operator.startsWith(">")||this.operator.startsWith("<")&&comp.operator.startsWith("<")||this.semver.version===comp.semver.version&&this.operator.includes("=")&&comp.operator.includes("=")||cmp(this.semver,"<",comp.semver,options)&&this.operator.startsWith(">")&&comp.operator.startsWith("<")||cmp(this.semver,">",comp.semver,options)&&this.operator.startsWith("<")&&comp.operator.startsWith(">")))}}module.exports=Comparator;const parseOptions=__webpack_require__(48450),{safeRe:re,t}=__webpack_require__(64856),cmp=__webpack_require__(72041),debug=__webpack_require__(79837),SemVer=__webpack_require__(62097),Range=__webpack_require__(62775)},62775:(module,__unused_webpack_exports,__webpack_require__)=>{class Range{constructor(range,options){if(options=parseOptions(options),range instanceof Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new Range(range.raw,options);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.format(),this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(r=>this.parseRange(r)).filter(c=>c.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const first=this.set[0];if(this.set=this.set.filter(c=>!isNullSet(c[0])),this.set.length===0)this.set=[first];else if(this.set.length>1){for(const c of this.set)if(c.length===1&&isAny(c[0])){this.set=[c];break}}}this.format()}format(){return this.range=this.set.map(comps=>comps.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(range){const memoKey=((this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE))+":"+range,cached=cache.get(memoKey);if(cached)return cached;const loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range),range=range.replace(re[t.TILDETRIM],tildeTrimReplace),range=range.replace(re[t.CARETTRIM],caretTrimReplace);let rangeList=range.split(" ").map(comp=>parseComparator(comp,this.options)).join(" ").split(/\s+/).map(comp=>replaceGTE0(comp,this.options));loose&&(rangeList=rangeList.filter(comp=>(debug("loose invalid filter",comp,this.options),!!comp.match(re[t.COMPARATORLOOSE])))),debug("range list",rangeList);const rangeMap=new Map,comparators=rangeList.map(comp=>new Comparator(comp,this.options));for(const comp of comparators){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");const result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof Range))throw new TypeError("a Range is required");return this.set.some(thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options)))))}test(version){if(!version)return!1;if(typeof version=="string")try{version=new SemVer(version,this.options)}catch{return!1}for(let i=0;i<this.set.length;i++)if(testSet(this.set[i],version,this.options))return!0;return!1}}module.exports=Range;const LRU=__webpack_require__(85139),cache=new LRU({max:1e3}),parseOptions=__webpack_require__(48450),Comparator=__webpack_require__(33096),debug=__webpack_require__(79837),SemVer=__webpack_require__(62097),{safeRe:re,t,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=__webpack_require__(64856),{FLAG_INCLUDE_PRERELEASE,FLAG_LOOSE}=__webpack_require__(14582),isNullSet=c=>c.value==="<0.0.0-0",isAny=c=>c.value==="",isSatisfiable=(comparators,options)=>{let result=!0;const remainingComparators=comparators.slice();let testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options)),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp),isX=id=>!id||id.toLowerCase()==="x"||id==="*",replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceTilde(c,options)).join(" "),replaceTilde=(comp,options)=>{const r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,(_,M,m,p,pr)=>{debug("tilde",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret})},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map(c=>replaceCaret(c,options)).join(" "),replaceCaret=(comp,options)=>{debug("caret",comp,options);const r=options.loose?re[t.CARETLOOSE]:re[t.CARET],z=options.includePrerelease?"-0":"";return comp.replace(r,(_,M,m,p,pr)=>{debug("caret",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?M==="0"?ret=`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret})},replaceXRanges=(comp,options)=>(debug("replaceXRanges",comp,options),comp.split(/\s+/).map(c=>replaceXRange(c,options)).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();const r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,(ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);const xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return gtlt==="="&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?gtlt===">"||gtlt==="<"?ret="<0.0.0-0":ret="*":gtlt&&anyX?(xm&&(m=0),p=0,gtlt===">"?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):gtlt==="<="&&(gtlt="<",xm?M=+M+1:m=+m+1),gtlt==="<"&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret})},replaceStars=(comp,options)=>(debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options)=>(debug("replaceGTE0",comp,options),comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr,tb)=>(isX(fM)?from="":isX(fm)?from=`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?from=`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?from=`>=${from}`:from=`>=${from}${incPr?"-0":""}`,isX(tM)?to="":isX(tm)?to=`<${+tM+1}.0.0-0`:isX(tp)?to=`<${tM}.${+tm+1}.0-0`:tpr?to=`<=${tM}.${tm}.${tp}-${tpr}`:incPr?to=`<${tM}.${tm}.${+tp+1}-0`:to=`<=${to}`,`${from} ${to}`.trim()),testSet=(set,version,options)=>{for(let i=0;i<set.length;i++)if(!set[i].test(version))return!1;if(version.prerelease.length&&!options.includePrerelease){for(let i=0;i<set.length;i++)if(debug(set[i].semver),set[i].semver!==Comparator.ANY&&set[i].semver.prerelease.length>0){const allowed=set[i].semver;if(allowed.major===version.major&&allowed.minor===version.minor&&allowed.patch===version.patch)return!0}return!1}return!0}},62097:(module,__unused_webpack_exports,__webpack_require__)=>{const debug=__webpack_require__(79837),{MAX_LENGTH,MAX_SAFE_INTEGER}=__webpack_require__(14582),{safeRe:re,t}=__webpack_require__(64856),parseOptions=__webpack_require__(48450),{compareIdentifiers}=__webpack_require__(9085);class SemVer{constructor(version,options){if(options=parseOptions(options),version instanceof SemVer){if(version.loose===!!options.loose&&version.includePrerelease===!!options.includePrerelease)return version;version=version.version}else if(typeof version!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);if(version.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",version,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;const m=version.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version}`);if(this.raw=version,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(id=>{if(/^[0-9]+$/.test(id)){const num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id}):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(other){if(debug("SemVer.compare",this.version,this.options,other),!(other instanceof SemVer)){if(typeof other=="string"&&other===this.version)return 0;other=new SemVer(other,this.options)}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof SemVer||(other=new SemVer(other,this.options)),compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)}comparePre(other){if(other instanceof SemVer||(other=new SemVer(other,this.options)),this.prerelease.length&&!other.prerelease.length)return-1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i=0;do{const a=this.prerelease[i],b=other.prerelease[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}compareBuild(other){other instanceof SemVer||(other=new SemVer(other,this.options));let i=0;do{const a=this.build[i],b=other.build[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}inc(release,identifier,identifierBase){switch(release){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",identifier,identifierBase);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",identifier,identifierBase);break;case"prepatch":this.prerelease.length=0,this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const base=Number(identifierBase)?1:0;if(!identifier&&identifierBase===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[base];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(identifier===this.prerelease.join(".")&&identifierBase===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(base)}}if(identifier){let prerelease=[identifier,base];identifierBase===!1&&(prerelease=[identifier]),compareIdentifiers(this.prerelease[0],identifier)===0?isNaN(this.prerelease[1])&&(this.prerelease=prerelease):this.prerelease=prerelease}break}default:throw new Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}module.exports=SemVer},23370:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(91553),clean=(version,options)=>{const s=parse(version.trim().replace(/^[=v]+/,""),options);return s?s.version:null};module.exports=clean},72041:(module,__unused_webpack_exports,__webpack_require__)=>{const eq=__webpack_require__(78928),neq=__webpack_require__(56915),gt=__webpack_require__(90500),gte=__webpack_require__(64357),lt=__webpack_require__(55127),lte=__webpack_require__(75479),cmp=(a,op,b,loose)=>{switch(op){case"===":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a===b;case"!==":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}};module.exports=cmp},95396:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(62097),parse=__webpack_require__(91553),{safeRe:re,t}=__webpack_require__(64856),coerce=(version,options)=>{if(version instanceof SemVer)return version;if(typeof version=="number"&&(version=String(version)),typeof version!="string")return null;options=options||{};let match=null;if(!options.rtl)match=version.match(re[t.COERCE]);else{let next;for(;(next=re[t.COERCERTL].exec(version))&&(!match||match.index+match[0].length!==version.length);)(!match||next.index+next[0].length!==match.index+match[0].length)&&(match=next),re[t.COERCERTL].lastIndex=next.index+next[1].length+next[2].length;re[t.COERCERTL].lastIndex=-1}return match===null?null:parse(`${match[2]}.${match[3]||"0"}.${match[4]||"0"}`,options)};module.exports=coerce},31969:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(62097),compareBuild=(a,b,loose)=>{const versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};module.exports=compareBuild},17579:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(1241),compareLoose=(a,b)=>compare(a,b,!0);module.exports=compareLoose},1241:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(62097),compare=(a,b,loose)=>new SemVer(a,loose).compare(new SemVer(b,loose));module.exports=compare},31828:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(91553),diff=(version1,version2)=>{const v1=parse(version1,null,!0),v2=parse(version2,null,!0),comparison=v1.compare(v2);if(comparison===0)return null;const v1Higher=comparison>0,highVersion=v1Higher?v1:v2,lowVersion=v1Higher?v2:v1,highHasPre=!!highVersion.prerelease.length;if(!!lowVersion.prerelease.length&&!highHasPre)return!lowVersion.patch&&!lowVersion.minor?"major":highVersion.patch?"patch":highVersion.minor?"minor":"major";const prefix=highHasPre?"pre":"";return v1.major!==v2.major?prefix+"major":v1.minor!==v2.minor?prefix+"minor":v1.patch!==v2.patch?prefix+"patch":"prerelease"};module.exports=diff},78928:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(1241),eq=(a,b,loose)=>compare(a,b,loose)===0;module.exports=eq},90500:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(1241),gt=(a,b,loose)=>compare(a,b,loose)>0;module.exports=gt},64357:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(1241),gte=(a,b,loose)=>compare(a,b,loose)>=0;module.exports=gte},94289:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(62097),inc=(version,release,options,identifier,identifierBase)=>{typeof options=="string"&&(identifierBase=identifier,identifier=options,options=void 0);try{return new SemVer(version instanceof SemVer?version.version:version,options).inc(release,identifier,identifierBase).version}catch{return null}};module.exports=inc},55127:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(1241),lt=(a,b,loose)=>compare(a,b,loose)<0;module.exports=lt},75479:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(1241),lte=(a,b,loose)=>compare(a,b,loose)<=0;module.exports=lte},40681:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(62097),major=(a,loose)=>new SemVer(a,loose).major;module.exports=major},262:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(62097),minor=(a,loose)=>new SemVer(a,loose).minor;module.exports=minor},56915:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(1241),neq=(a,b,loose)=>compare(a,b,loose)!==0;module.exports=neq},91553:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(62097),parse=(version,options,throwErrors=!1)=>{if(version instanceof SemVer)return version;try{return new SemVer(version,options)}catch(er){if(!throwErrors)return null;throw er}};module.exports=parse},88438:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(62097),patch=(a,loose)=>new SemVer(a,loose).patch;module.exports=patch},95156:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(91553),prerelease=(version,options)=>{const parsed=parse(version,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};module.exports=prerelease},94582:(module,__unused_webpack_exports,__webpack_require__)=>{const compare=__webpack_require__(1241),rcompare=(a,b,loose)=>compare(b,a,loose);module.exports=rcompare},28335:(module,__unused_webpack_exports,__webpack_require__)=>{const compareBuild=__webpack_require__(31969),rsort=(list,loose)=>list.sort((a,b)=>compareBuild(b,a,loose));module.exports=rsort},85394:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(62775),satisfies=(version,range,options)=>{try{range=new Range(range,options)}catch{return!1}return range.test(version)};module.exports=satisfies},22106:(module,__unused_webpack_exports,__webpack_require__)=>{const compareBuild=__webpack_require__(31969),sort=(list,loose)=>list.sort((a,b)=>compareBuild(a,b,loose));module.exports=sort},96469:(module,__unused_webpack_exports,__webpack_require__)=>{const parse=__webpack_require__(91553),valid=(version,options)=>{const v=parse(version,options);return v?v.version:null};module.exports=valid},24501:(module,__unused_webpack_exports,__webpack_require__)=>{const internalRe=__webpack_require__(64856),constants=__webpack_require__(14582),SemVer=__webpack_require__(62097),identifiers=__webpack_require__(9085),parse=__webpack_require__(91553),valid=__webpack_require__(96469),clean=__webpack_require__(23370),inc=__webpack_require__(94289),diff=__webpack_require__(31828),major=__webpack_require__(40681),minor=__webpack_require__(262),patch=__webpack_require__(88438),prerelease=__webpack_require__(95156),compare=__webpack_require__(1241),rcompare=__webpack_require__(94582),compareLoose=__webpack_require__(17579),compareBuild=__webpack_require__(31969),sort=__webpack_require__(22106),rsort=__webpack_require__(28335),gt=__webpack_require__(90500),lt=__webpack_require__(55127),eq=__webpack_require__(78928),neq=__webpack_require__(56915),gte=__webpack_require__(64357),lte=__webpack_require__(75479),cmp=__webpack_require__(72041),coerce=__webpack_require__(95396),Comparator=__webpack_require__(33096),Range=__webpack_require__(62775),satisfies=__webpack_require__(85394),toComparators=__webpack_require__(67723),maxSatisfying=__webpack_require__(80961),minSatisfying=__webpack_require__(25846),minVersion=__webpack_require__(46391),validRange=__webpack_require__(31070),outside=__webpack_require__(48673),gtr=__webpack_require__(16624),ltr=__webpack_require__(96884),intersects=__webpack_require__(75693),simplifyRange=__webpack_require__(3306),subset=__webpack_require__(46);module.exports={parse,valid,clean,inc,diff,major,minor,patch,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers}},14582:module=>{const SEMVER_SPEC_VERSION="2.0.0",MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];module.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_INTEGER,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},79837:(module,__unused_webpack_exports,__webpack_require__)=>{var process=__webpack_require__(14224);const debug=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};module.exports=debug},9085:module=>{const numeric=/^[0-9]+$/,compareIdentifiers=(a,b)=>{const anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1},rcompareIdentifiers=(a,b)=>compareIdentifiers(b,a);module.exports={compareIdentifiers,rcompareIdentifiers}},48450:module=>{const looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions=options=>options?typeof options!="object"?looseOption:options:emptyOpts;module.exports=parseOptions},64856:(module,exports,__webpack_require__)=>{const{MAX_SAFE_COMPONENT_LENGTH}=__webpack_require__(14582),debug=__webpack_require__(79837);exports=module.exports={};const re=exports.re=[],safeRe=exports.safeRe=[],src=exports.src=[],t=exports.t={};let R=0;const createToken=(name,value,isGlobal)=>{const safe=value.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),index=R++;debug(name,index,value),t[name]=index,src[index]=value,re[index]=new RegExp(value,isGlobal?"g":void 0),safeRe[index]=new RegExp(safe,isGlobal?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","[0-9]+"),createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+"),createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`),createToken("FULL",`^${src[t.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`),createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`),createToken("COERCE",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`),createToken("COERCERTL",src[t.COERCE],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace="$1~",createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0),exports.caretTrimReplace="$1^",createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},16624:(module,__unused_webpack_exports,__webpack_require__)=>{const outside=__webpack_require__(48673),gtr=(version,range,options)=>outside(version,range,">",options);module.exports=gtr},75693:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(62775),intersects=(r1,r2,options)=>(r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2,options));module.exports=intersects},96884:(module,__unused_webpack_exports,__webpack_require__)=>{const outside=__webpack_require__(48673),ltr=(version,range,options)=>outside(version,range,"<",options);module.exports=ltr},80961:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(62097),Range=__webpack_require__(62775),maxSatisfying=(versions,range,options)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!max||maxSV.compare(v)===-1)&&(max=v,maxSV=new SemVer(max,options))}),max};module.exports=maxSatisfying},25846:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(62097),Range=__webpack_require__(62775),minSatisfying=(versions,range,options)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach(v=>{rangeObj.test(v)&&(!min||minSV.compare(v)===1)&&(min=v,minSV=new SemVer(min,options))}),min};module.exports=minSatisfying},46391:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(62097),Range=__webpack_require__(62775),gt=__webpack_require__(90500),minVersion=(range,loose)=>{range=new Range(range,loose);let minver=new SemVer("0.0.0");if(range.test(minver)||(minver=new SemVer("0.0.0-0"),range.test(minver)))return minver;minver=null;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let setMin=null;comparators.forEach(comparator=>{const compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":compver.prerelease.length===0?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":(!setMin||gt(compver,setMin))&&(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}}),setMin&&(!minver||gt(minver,setMin))&&(minver=setMin)}return minver&&range.test(minver)?minver:null};module.exports=minVersion},48673:(module,__unused_webpack_exports,__webpack_require__)=>{const SemVer=__webpack_require__(62097),Comparator=__webpack_require__(33096),{ANY}=Comparator,Range=__webpack_require__(62775),satisfies=__webpack_require__(85394),gt=__webpack_require__(90500),lt=__webpack_require__(55127),lte=__webpack_require__(75479),gte=__webpack_require__(64357),outside=(version,range,hilo,options)=>{version=new SemVer(version,options),range=new Range(range,options);let gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version,range,options))return!1;for(let i=0;i<range.set.length;++i){const comparators=range.set[i];let high=null,low=null;if(comparators.forEach(comparator=>{comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&<efn(version,low.semver))return!1;if(low.operator===ecomp&<fn(version,low.semver))return!1}return!0};module.exports=outside},3306:(module,__unused_webpack_exports,__webpack_require__)=>{const satisfies=__webpack_require__(85394),compare=__webpack_require__(1241);module.exports=(versions,range,options)=>{const set=[];let first=null,prev=null;const v=versions.sort((a,b)=>compare(a,b,options));for(const version of v)satisfies(version,range,options)?(prev=version,first||(first=version)):(prev&&set.push([first,prev]),prev=null,first=null);first&&set.push([first,null]);const ranges=[];for(const[min,max]of set)min===max?ranges.push(min):!max&&min===v[0]?ranges.push("*"):max?min===v[0]?ranges.push(`<=${max}`):ranges.push(`${min} - ${max}`):ranges.push(`>=${min}`);const simplified=ranges.join(" || "),original=typeof range.raw=="string"?range.raw:String(range);return simplified.length<original.length?simplified:range}},46:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(62775),Comparator=__webpack_require__(33096),{ANY}=Comparator,satisfies=__webpack_require__(85394),compare=__webpack_require__(1241),subset=(sub,dom,options={})=>{if(sub===dom)return!0;sub=new Range(sub,options),dom=new Range(dom,options);let sawNonNull=!1;OUTER:for(const simpleSub of sub.set){for(const simpleDom of dom.set){const isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull=sawNonNull||isSub!==null,isSub)continue OUTER}if(sawNonNull)return!1}return!0},minimumVersionWithPreRelease=[new Comparator(">=0.0.0-0")],minimumVersion=[new Comparator(">=0.0.0")],simpleSubset=(sub,dom,options)=>{if(sub===dom)return!0;if(sub.length===1&&sub[0].semver===ANY){if(dom.length===1&&dom[0].semver===ANY)return!0;options.includePrerelease?sub=minimumVersionWithPreRelease:sub=minimumVersion}if(dom.length===1&&dom[0].semver===ANY){if(options.includePrerelease)return!0;dom=minimumVersion}const eqSet=new Set;let gt,lt;for(const c of sub)c.operator===">"||c.operator===">="?gt=higherGT(gt,c,options):c.operator==="<"||c.operator==="<="?lt=lowerLT(lt,c,options):eqSet.add(c.semver);if(eqSet.size>1)return null;let gtltComp;if(gt&<){if(gtltComp=compare(gt.semver,lt.semver,options),gtltComp>0)return null;if(gtltComp===0&&(gt.operator!==">="||lt.operator!=="<="))return null}for(const eq of eqSet){if(gt&&!satisfies(eq,String(gt),options)||lt&&!satisfies(eq,String(lt),options))return null;for(const c of dom)if(!satisfies(eq,String(c),options))return!1;return!0}let higher,lower,hasDomLT,hasDomGT,needDomLTPre=lt&&!options.includePrerelease&<.semver.prerelease.length?lt.semver:!1,needDomGTPre=gt&&!options.includePrerelease&>.semver.prerelease.length?gt.semver:!1;needDomLTPre&&needDomLTPre.prerelease.length===1&<.operator==="<"&&needDomLTPre.prerelease[0]===0&&(needDomLTPre=!1);for(const c of dom){if(hasDomGT=hasDomGT||c.operator===">"||c.operator===">=",hasDomLT=hasDomLT||c.operator==="<"||c.operator==="<=",gt){if(needDomGTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomGTPre.major&&c.semver.minor===needDomGTPre.minor&&c.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),c.operator===">"||c.operator===">="){if(higher=higherGT(gt,c,options),higher===c&&higher!==gt)return!1}else if(gt.operator===">="&&!satisfies(gt.semver,String(c),options))return!1}if(lt){if(needDomLTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomLTPre.major&&c.semver.minor===needDomLTPre.minor&&c.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),c.operator==="<"||c.operator==="<="){if(lower=lowerLT(lt,c,options),lower===c&&lower!==lt)return!1}else if(lt.operator==="<="&&!satisfies(lt.semver,String(c),options))return!1}if(!c.operator&&(lt||gt)&>ltComp!==0)return!1}return!(gt&&hasDomLT&&!lt&>ltComp!==0||lt&&hasDomGT&&!gt&>ltComp!==0||needDomGTPre||needDomLTPre)},higherGT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp>0?a:comp<0||b.operator===">"&&a.operator===">="?b:a},lowerLT=(a,b,options)=>{if(!a)return b;const comp=compare(a.semver,b.semver,options);return comp<0?a:comp>0||b.operator==="<"&&a.operator==="<="?b:a};module.exports=subset},67723:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(62775),toComparators=(range,options)=>new Range(range,options).set.map(comp=>comp.map(c=>c.value).join(" ").trim().split(" "));module.exports=toComparators},31070:(module,__unused_webpack_exports,__webpack_require__)=>{const Range=__webpack_require__(62775),validRange=(range,options)=>{try{return new Range(range,options).range||"*"}catch{return null}};module.exports=validRange},96268:module=>{"use strict";module.exports=2147483647},30730:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(28455),maxTimeout=__webpack_require__(96268);module.exports=function(value){if(value=toPosInt(value),value>maxTimeout)throw new TypeError(value+" exceeds maximum possible timeout");return value}},48784:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isPrototype=__webpack_require__(71972);module.exports=function(value){if(typeof value!="function"||!hasOwnProperty.call(value,"length"))return!1;try{if(typeof value.length!="number"||typeof value.call!="function"||typeof value.apply!="function")return!1}catch{return!1}return!isPrototype(value)}},3927:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(39342),possibleTypes={object:!0,function:!0,undefined:!0};module.exports=function(value){return isValue(value)?hasOwnProperty.call(possibleTypes,typeof value):!1}},24826:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isFunction=__webpack_require__(48784),classRe=/^\s*class[\s{/}]/,functionToString=Function.prototype.toString;module.exports=function(value){return!(!isFunction(value)||classRe.test(functionToString.call(value)))}},71972:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isObject=__webpack_require__(3927);module.exports=function(value){if(!isObject(value))return!1;try{return value.constructor?value.constructor.prototype===value:!1}catch{return!1}}},39342:module=>{"use strict";var _undefined=void 0;module.exports=function(value){return value!==_undefined&&value!==null}},54681:module=>{"use strict";module.exports=function(Yallist){Yallist.prototype[Symbol.iterator]=function*(){for(let walker=this.head;walker;walker=walker.next)yield walker.value}}},8487:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=Yallist,Yallist.Node=Node,Yallist.create=Yallist;function Yallist(list){var self2=this;if(self2 instanceof Yallist||(self2=new Yallist),self2.tail=null,self2.head=null,self2.length=0,list&&typeof list.forEach=="function")list.forEach(function(item){self2.push(item)});else if(arguments.length>0)for(var i=0,l=arguments.length;i<l;i++)self2.push(arguments[i]);return self2}Yallist.prototype.removeNode=function(node){if(node.list!==this)throw new Error("removing node which does not belong to this list");var next=node.next,prev=node.prev;return next&&(next.prev=prev),prev&&(prev.next=next),node===this.head&&(this.head=next),node===this.tail&&(this.tail=prev),node.list.length--,node.next=null,node.prev=null,node.list=null,next},Yallist.prototype.unshiftNode=function(node){if(node!==this.head){node.list&&node.list.removeNode(node);var head=this.head;node.list=this,node.next=head,head&&(head.prev=node),this.head=node,this.tail||(this.tail=node),this.length++}},Yallist.prototype.pushNode=function(node){if(node!==this.tail){node.list&&node.list.removeNode(node);var tail=this.tail;node.list=this,node.prev=tail,tail&&(tail.next=node),this.tail=node,this.head||(this.head=node),this.length++}},Yallist.prototype.push=function(){for(var i=0,l=arguments.length;i<l;i++)push(this,arguments[i]);return this.length},Yallist.prototype.unshift=function(){for(var i=0,l=arguments.length;i<l;i++)unshift(this,arguments[i]);return this.length},Yallist.prototype.pop=function(){if(!!this.tail){var res=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,res}},Yallist.prototype.shift=function(){if(!!this.head){var res=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,res}},Yallist.prototype.forEach=function(fn,thisp){thisp=thisp||this;for(var walker=this.head,i=0;walker!==null;i++)fn.call(thisp,walker.value,i,this),walker=walker.next},Yallist.prototype.forEachReverse=function(fn,thisp){thisp=thisp||this;for(var walker=this.tail,i=this.length-1;walker!==null;i--)fn.call(thisp,walker.value,i,this),walker=walker.prev},Yallist.prototype.get=function(n){for(var i=0,walker=this.head;walker!==null&&i<n;i++)walker=walker.next;if(i===n&&walker!==null)return walker.value},Yallist.prototype.getReverse=function(n){for(var i=0,walker=this.tail;walker!==null&&i<n;i++)walker=walker.prev;if(i===n&&walker!==null)return walker.value},Yallist.prototype.map=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.head;walker!==null;)res.push(fn.call(thisp,walker.value,this)),walker=walker.next;return res},Yallist.prototype.mapReverse=function(fn,thisp){thisp=thisp||this;for(var res=new Yallist,walker=this.tail;walker!==null;)res.push(fn.call(thisp,walker.value,this)),walker=walker.prev;return res},Yallist.prototype.reduce=function(fn,initial){var acc,walker=this.head;if(arguments.length>1)acc=initial;else if(this.head)walker=this.head.next,acc=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;walker!==null;i++)acc=fn(acc,walker.value,i),walker=walker.next;return acc},Yallist.prototype.reduceReverse=function(fn,initial){var acc,walker=this.tail;if(arguments.length>1)acc=initial;else if(this.tail)walker=this.tail.prev,acc=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;walker!==null;i--)acc=fn(acc,walker.value,i),walker=walker.prev;return acc},Yallist.prototype.toArray=function(){for(var arr=new Array(this.length),i=0,walker=this.head;walker!==null;i++)arr[i]=walker.value,walker=walker.next;return arr},Yallist.prototype.toArrayReverse=function(){for(var arr=new Array(this.length),i=0,walker=this.tail;walker!==null;i++)arr[i]=walker.value,walker=walker.prev;return arr},Yallist.prototype.slice=function(from,to){to=to||this.length,to<0&&(to+=this.length),from=from||0,from<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=0,walker=this.head;walker!==null&&i<from;i++)walker=walker.next;for(;walker!==null&&i<to;i++,walker=walker.next)ret.push(walker.value);return ret},Yallist.prototype.sliceReverse=function(from,to){to=to||this.length,to<0&&(to+=this.length),from=from||0,from<0&&(from+=this.length);var ret=new Yallist;if(to<from||to<0)return ret;from<0&&(from=0),to>this.length&&(to=this.length);for(var i=this.length,walker=this.tail;walker!==null&&i>to;i--)walker=walker.prev;for(;walker!==null&&i>from;i--,walker=walker.prev)ret.push(walker.value);return ret},Yallist.prototype.splice=function(start,deleteCount,...nodes){start>this.length&&(start=this.length-1),start<0&&(start=this.length+start);for(var i=0,walker=this.head;walker!==null&&i<start;i++)walker=walker.next;for(var ret=[],i=0;walker&&i<deleteCount;i++)ret.push(walker.value),walker=this.removeNode(walker);walker===null&&(walker=this.tail),walker!==this.head&&walker!==this.tail&&(walker=walker.prev);for(var i=0;i<nodes.length;i++)walker=insert(this,walker,nodes[i]);return ret},Yallist.prototype.reverse=function(){for(var head=this.head,tail=this.tail,walker=head;walker!==null;walker=walker.prev){var p=walker.prev;walker.prev=walker.next,walker.next=p}return this.head=tail,this.tail=head,this};function insert(self2,node,value){var inserted=node===self2.head?new Node(value,null,node,self2):new Node(value,node,node.next,self2);return inserted.next===null&&(self2.tail=inserted),inserted.prev===null&&(self2.head=inserted),self2.length++,inserted}function push(self2,item){self2.tail=new Node(item,self2.tail,null,self2),self2.head||(self2.head=self2.tail),self2.length++}function unshift(self2,item){self2.head=new Node(item,null,self2.head,self2),self2.tail||(self2.tail=self2.head),self2.length++}function Node(value,prev,next,list){if(!(this instanceof Node))return new Node(value,prev,next,list);this.list=list,this.value=value,prev?(prev.next=this,this.prev=prev):this.prev=null,next?(next.prev=this,this.next=next):this.next=null}try{__webpack_require__(54681)(Yallist)}catch{}},64478:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationProvider=exports.useNavigation=exports.useNavigate=exports.useLocation=exports.Link=void 0;var link_1=__webpack_require__(28831);Object.defineProperty(exports,"Link",{enumerable:!0,get:function(){return link_1.Link}});var use_location_1=__webpack_require__(10517);Object.defineProperty(exports,"useLocation",{enumerable:!0,get:function(){return use_location_1.useLocation}});var use_navigate_1=__webpack_require__(20377);Object.defineProperty(exports,"useNavigate",{enumerable:!0,get:function(){return use_navigate_1.useNavigate}});var navigation_provider_1=__webpack_require__(51936);Object.defineProperty(exports,"useNavigation",{enumerable:!0,get:function(){return navigation_provider_1.useNavigation}}),Object.defineProperty(exports,"NavigationProvider",{enumerable:!0,get:function(){return navigation_provider_1.NavigationProvider}})},28831:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Link=void 0;const react_1=__importStar(__webpack_require__(59496)),navigation_provider_1=__webpack_require__(51936),native_link_1=__webpack_require__(56102);exports.Link=(0,react_1.forwardRef)(function(props,ref){const ActualLink=(0,navigation_provider_1.useNavigation)().Link||native_link_1.NativeLink;return props.native||props.external?react_1.default.createElement(native_link_1.NativeLink,Object.assign({},props,{ref})):react_1.default.createElement(ActualLink,Object.assign({},props,{ref}))})},56102:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(19803)),base_ui_routing_compare_url_1=__webpack_require__(33789),use_location_1=__webpack_require__(10517),externalLinkAttributes={rel:"noopener",target:"_blank"};exports.NativeLink=(0,react_1.forwardRef)(function(_a,ref){var{className,style,activeClassName,activeStyle,active,strict,exact,href,external,native,state}=_a,rest=__rest(_a,["className","style","activeClassName","activeStyle","active","strict","exact","href","external","native","state"]);const location=(0,use_location_1.useLocation)(),shouldCalcActive=!!activeClassName||!!activeStyle,isActive=(0,react_1.useMemo)(()=>shouldCalcActive?typeof active=="boolean"?active:!location||!href?!1:(0,base_ui_routing_compare_url_1.compareUrl)(location.pathname,href,{exact,strict}):!1,[active,href,location,shouldCalcActive]),externalProps=external?externalLinkAttributes:{},combinedStyles=(0,react_1.useMemo)(()=>isActive&&activeStyle?Object.assign(Object.assign({},style),activeStyle):style,[isActive,style]);return react_1.default.createElement("a",Object.assign({},externalProps,rest,{ref,href,className:(0,classnames_1.default)(className,isActive&&activeClassName),style:combinedStyles}))})},51936:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationProvider=exports.useNavigation=exports.NavigationContext=void 0;const react_1=__importStar(__webpack_require__(59496));exports.NavigationContext=react_1.default.createContext({});function useNavigation(){return(0,react_1.useContext)(exports.NavigationContext)}exports.useNavigation=useNavigation;function NavigationProvider({children,implementation}){return react_1.default.createElement(exports.NavigationContext.Provider,{value:implementation},children)}exports.NavigationProvider=NavigationProvider},10517:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useLocation=void 0;const navigation_provider_1=__webpack_require__(51936);function useLocation(){return((0,navigation_provider_1.useNavigation)().useLocation||NativeUseLocation)()}exports.useLocation=useLocation;function NativeUseLocation(){if(!(typeof window>"u"))return window.location}},20377:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useNavigate=void 0;const navigation_provider_1=__webpack_require__(51936);function useNavigate(){var _a;const nav=(0,navigation_provider_1.useNavigation)();return((_a=nav.useNavigate)===null||_a===void 0?void 0:_a.call(nav))||nativeNavigator}exports.useNavigate=useNavigate;function nativeNavigator(target,{replace}={}){if(typeof window>"u")throw new Error("base-react.navigation.use-location - cannot use native navigator outside of browser. Inject a custom useNavigate, or use navigation after mount");const{location,history}=window;typeof target=="number"?history.go(target):replace?location.replace(target):location.assign(target)}},75076:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoaderRibbon=void 0;var loader_ribbon_1=__webpack_require__(85798);Object.defineProperty(exports,"LoaderRibbon",{enumerable:!0,get:function(){return loader_ribbon_1.LoaderRibbon}})},85798:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoaderRibbon=void 0;const classnames_1=__importDefault(__webpack_require__(97754)),react_1=__importDefault(__webpack_require__(59496)),loader_ribbon_module_scss_1=__importDefault(__webpack_require__(2700));function LoaderRibbon(_a){var{active,className}=_a,rest=__rest(_a,["active","className"]);return react_1.default.createElement("div",Object.assign({},rest,{className:classnames_1.default(className,loader_ribbon_module_scss_1.default.loader,active&&loader_ribbon_module_scss_1.default.loading)}),react_1.default.createElement("div",{className:loader_ribbon_module_scss_1.default.progress}))}exports.LoaderRibbon=LoaderRibbon},90398:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.compareUrl=void 0;const url_parse_1=__importDefault(__webpack_require__(54386));function compareUrl(baseUrl,toMatchUrl,{exact,strict}={}){if(baseUrl===toMatchUrl)return!0;strict||(baseUrl=baseUrl.replace(/\/(?=[?#]|$)/,""),toMatchUrl=toMatchUrl.replace(/\/(?=[?#]|$)/,""));const base=url_parse_1.default(baseUrl),match=url_parse_1.default(toMatchUrl),subUrl=isSubUrl(base,match),exactMatch=!exact||isExactMatch(base,match),strictMatch=!strict||isStrictMatch(base,match);return subUrl&&exactMatch&&strictMatch}exports.compareUrl=compareUrl;function isSubUrl(base,match){return(!match.protocol||match.protocol===base.protocol)&&(!match.hostname||match.hostname===base.hostname)&&(!match.port||match.port===base.port)&&(!match.pathname||base.pathname.startsWith(match.pathname))&&(!match.query||isSubObject(match.query,base.query))&&(!match.hash||match.hash===base.hash)&&(!match.password||match.password===base.password)&&(!match.username||match.username===base.username)}function isExactMatch(base,match){return(!match.pathname||base.pathname===match.pathname)&&(!match.query||isSubObject(base.query,match.query))}function isStrictMatch(base,match){return!match.pathname||base.pathname.endsWith("/")===match.pathname.endsWith("/")}function isSubObject(source,target){return Object.keys(source).every(key=>source[key]===target[key])}},33789:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compareUrl=void 0;var compare_url_1=__webpack_require__(90398);Object.defineProperty(exports,"compareUrl",{enumerable:!0,get:function(){return compare_url_1.compareUrl}})},93155:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Composer=void 0;const react_1=__importDefault(__webpack_require__(59496));function Composer(props){const{components=[],children}=props,arrayified=components.map(tuple=>Array.isArray(tuple)?tuple:[tuple,void 0]);return react_1.default.createElement(react_1.default.Fragment,null,arrayified.reduceRight((acc,[Comp,forwardProps])=>react_1.default.createElement(Comp,Object.assign({},forwardProps),acc),children))}exports.Composer=Composer},80893:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Composer=void 0;var composer_1=__webpack_require__(93155);Object.defineProperty(exports,"Composer",{enumerable:!0,get:function(){return composer_1.Composer}})},93042:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.links=void 0;var links_1=__webpack_require__(39204);Object.defineProperty(exports,"links",{enumerable:!0,get:function(){return links_1.links}})},39204:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.links=void 0,exports.links={docs:"https://bit.dev/docs",github:"https://github.com/teambit/bit",slack:"https://join.slack.com/t/bit-dev-community/shared_invite/zt-1el4b4sb5-FpgRefqUiZbUH9lvnHgwRg",blog:"https://bit.cloud/blog",twitter:"https://twitter.com/bitdev_",linkedin:"https://www.linkedin.com/company/bit-dev",bitRegistry:"https://node.bit.cloud",youtube:"https://www.youtube.com/c/Bitdev/videos",careers:"https://bit.breezy.hr"}},91654:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ContactIcons=void 0;const react_1=__importDefault(__webpack_require__(59496)),base_react_navigation_link_1=__webpack_require__(64478),community_constants_links_1=__webpack_require__(93042),styles={link:{textDecoration:"none",lineHeight:"inherit",color:"unset"},logo:{width:"24px",height:"24px",margin:"0 13px"}};function ContactIcons(props){return react_1.default.createElement("div",Object.assign({style:Object.assign(Object.assign({},styles.iconLine),props.style)},props),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.slack},react_1.default.createElement("img",{alt:"slack",style:styles.logo,src:"https://static.bit.dev/harmony/slack-round-icon.svg"})),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.github},react_1.default.createElement("img",{alt:"github",style:styles.logo,src:"https://static.bit.dev/harmony/github.svg"})),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.docs},react_1.default.createElement("img",{alt:"bit docs",style:styles.logo,src:"https://static.bit.dev/bit-logo.svg"})))}exports.ContactIcons=ContactIcons},47568:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ErrorPage=void 0;const react_1=__importDefault(__webpack_require__(59496)),styles={errorPage:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"auto",padding:"24px",textAlign:"center"},title:{fontWeight:"bold",margin:"0 0 24px 0"},img:{maxWidth:"700px",marginBottom:"24px",width:"100%"}},inlineStyles=`
|
70
|
-
.bit-error-page-title { font-size: 36px; }
|
71
|
-
@media screen and (max-width: 480px) { .bit-error-page-title { font-size: 24px; } }
|
72
|
-
`;function ErrorPage(_a){var{code,title,style,children}=_a,rest=__rest(_a,["code","title","style","children"]);return react_1.default.createElement("div",Object.assign({},rest,{style:Object.assign(Object.assign({},styles.errorPage),style)}),react_1.default.createElement("style",null,inlineStyles),react_1.default.createElement("h1",{style:styles.title,className:"bit-error-page-title"},title),react_1.default.createElement("img",{alt:"error-image",style:styles.img,src:`https://static.bit.dev/harmony/${code}.svg`}),children)}exports.ErrorPage=ErrorPage},73340:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ContactIcons=void 0,__exportStar(__webpack_require__(47568),exports);var contact_footer_1=__webpack_require__(91654);Object.defineProperty(exports,"ContactIcons",{enumerable:!0,get:function(){return contact_footer_1.ContactIcons}})},31890:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NotFoundPage=void 0;var not_found_page_1=__webpack_require__(57288);Object.defineProperty(exports,"NotFoundPage",{enumerable:!0,get:function(){return not_found_page_1.NotFoundPage}})},57288:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NotFoundPage=void 0;const react_1=__importDefault(__webpack_require__(59496)),design_ui_error_page_1=__webpack_require__(73340);function NotFoundPage(_a){var rest=__rest(_a,[]);return react_1.default.createElement(design_ui_error_page_1.ErrorPage,Object.assign({},rest,{code:404,title:"Page not found"}),react_1.default.createElement(design_ui_error_page_1.ContactIcons,null))}exports.NotFoundPage=NotFoundPage},8596:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(63873),exports)},63873:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.StandaloneNotFoundPage=void 0;const react_1=__importDefault(__webpack_require__(59496)),design_ui_pages_not_found_1=__webpack_require__(31890);function StandaloneNotFoundPage(){return react_1.default.createElement(design_ui_pages_not_found_1.NotFoundPage,{style:{fontFamily:'"Helvetica Neue",Helvetica, sans-serif'}})}exports.StandaloneNotFoundPage=StandaloneNotFoundPage},19803:(module,exports)=>{var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*!
|
73
|
-
Copyright (c) 2018 Jed Watson.
|
74
|
-
Licensed under the MIT License (MIT), see
|
75
|
-
http://jedwatson.github.io/classnames
|
76
|
-
*/(function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes=[],i=0;i<arguments.length;i++){var arg=arguments[i];if(!!arg){var argType=typeof arg;if(argType==="string"||argType==="number")classes.push(arg);else if(Array.isArray(arg)){if(arg.length){var inner=classNames.apply(null,arg);inner&&classes.push(inner)}}else if(argType==="object")if(arg.toString===Object.prototype.toString)for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&classes.push(key);else classes.push(arg.toString())}}return classes.join(" ")}module.exports?(classNames.default=classNames,module.exports=classNames):(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})()},2700:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={loader:"loader-ribbon_loader__21nqZ",loading:"loader-ribbon_loading__2GQtq",progress:"loader-ribbon_progress__1lyMP",completed:"loader-ribbon_completed__9n1S5"}},98878:(__unused_webpack_module,exports)=>{"use strict";var has=Object.prototype.hasOwnProperty,undef;function decode(input){try{return decodeURIComponent(input.replace(/\+/g," "))}catch{return null}}function encode(input){try{return encodeURIComponent(input)}catch{return null}}function querystring(query){for(var parser=/([^=?#&]+)=?([^&]*)/g,result={},part;part=parser.exec(query);){var key=decode(part[1]),value=decode(part[2]);key===null||value===null||key in result||(result[key]=value)}return result}function querystringify(obj,prefix){prefix=prefix||"";var pairs=[],value,key;typeof prefix!="string"&&(prefix="?");for(key in obj)if(has.call(obj,key)){if(value=obj[key],!value&&(value===null||value===undef||isNaN(value))&&(value=""),key=encode(key),value=encode(value),key===null||value===null)continue;pairs.push(key+"="+value)}return pairs.length?prefix+pairs.join("&"):""}exports.stringify=querystringify,exports.parse=querystring},41384:module=>{"use strict";module.exports=function(port,protocol){if(protocol=protocol.split(":")[0],port=+port,!port)return!1;switch(protocol){case"http":case"ws":return port!==80;case"https":case"wss":return port!==443;case"ftp":return port!==21;case"gopher":return port!==70;case"file":return!1}return port!==0}},54386:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var required=__webpack_require__(41384),qs=__webpack_require__(98878),slashes=/^[A-Za-z][A-Za-z0-9+-.]*:[\\/]+/,protocolre=/^([a-z][a-z0-9.+-]*:)?([\\/]{1,})?([\S\s]*)/i,whitespace="[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]",left=new RegExp("^"+whitespace+"+");function trimLeft(str){return(str||"").toString().replace(left,"")}var rules=[["#","hash"],["?","query"],function(address){return address.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ignore={hash:1,query:1};function lolcation(loc){var globalVar;typeof window<"u"?globalVar=window:typeof __webpack_require__.g<"u"?globalVar=__webpack_require__.g:typeof self<"u"?globalVar=self:globalVar={};var location=globalVar.location||{};loc=loc||location;var finaldestination={},type=typeof loc,key;if(loc.protocol==="blob:")finaldestination=new Url(unescape(loc.pathname),{});else if(type==="string"){finaldestination=new Url(loc,{});for(key in ignore)delete finaldestination[key]}else if(type==="object"){for(key in loc)key in ignore||(finaldestination[key]=loc[key]);finaldestination.slashes===void 0&&(finaldestination.slashes=slashes.test(loc.href))}return finaldestination}function extractProtocol(address){address=trimLeft(address);var match=protocolre.exec(address),protocol=match[1]?match[1].toLowerCase():"",slashes2=!!(match[2]&&match[2].length>=2),rest=match[2]&&match[2].length===1?"/"+match[3]:match[3];return{protocol,slashes:slashes2,rest}}function resolve(relative,base){if(relative==="")return base;for(var path=(base||"/").split("/").slice(0,-1).concat(relative.split("/")),i=path.length,last=path[i-1],unshift=!1,up=0;i--;)path[i]==="."?path.splice(i,1):path[i]===".."?(path.splice(i,1),up++):up&&(i===0&&(unshift=!0),path.splice(i,1),up--);return unshift&&path.unshift(""),(last==="."||last==="..")&&path.push(""),path.join("/")}function Url(address,location,parser){if(address=trimLeft(address),!(this instanceof Url))return new Url(address,location,parser);var relative,extracted,parse,instruction,index,key,instructions=rules.slice(),type=typeof location,url=this,i=0;for(type!=="object"&&type!=="string"&&(parser=location,location=null),parser&&typeof parser!="function"&&(parser=qs.parse),location=lolcation(location),extracted=extractProtocol(address||""),relative=!extracted.protocol&&!extracted.slashes,url.slashes=extracted.slashes||relative&&location.slashes,url.protocol=extracted.protocol||location.protocol||"",address=extracted.rest,extracted.slashes||(instructions[3]=[/(.*)/,"pathname"]);i<instructions.length;i++){if(instruction=instructions[i],typeof instruction=="function"){address=instruction(address);continue}parse=instruction[0],key=instruction[1],parse!==parse?url[key]=address:typeof parse=="string"?~(index=address.indexOf(parse))&&(typeof instruction[2]=="number"?(url[key]=address.slice(0,index),address=address.slice(index+instruction[2])):(url[key]=address.slice(index),address=address.slice(0,index))):(index=parse.exec(address))&&(url[key]=index[1],address=address.slice(0,index.index)),url[key]=url[key]||relative&&instruction[3]&&location[key]||"",instruction[4]&&(url[key]=url[key].toLowerCase())}parser&&(url.query=parser(url.query)),relative&&location.slashes&&url.pathname.charAt(0)!=="/"&&(url.pathname!==""||location.pathname!=="")&&(url.pathname=resolve(url.pathname,location.pathname)),url.pathname.charAt(0)!=="/"&&url.hostname&&(url.pathname="/"+url.pathname),required(url.port,url.protocol)||(url.host=url.hostname,url.port=""),url.username=url.password="",url.auth&&(instruction=url.auth.split(":"),url.username=instruction[0]||"",url.password=instruction[1]||""),url.origin=url.protocol&&url.host&&url.protocol!=="file:"?url.protocol+"//"+url.host:"null",url.href=url.toString()}function set(part,value,fn){var url=this;switch(part){case"query":typeof value=="string"&&value.length&&(value=(fn||qs.parse)(value)),url[part]=value;break;case"port":url[part]=value,required(value,url.protocol)?value&&(url.host=url.hostname+":"+value):(url.host=url.hostname,url[part]="");break;case"hostname":url[part]=value,url.port&&(value+=":"+url.port),url.host=value;break;case"host":url[part]=value,/:\d+$/.test(value)?(value=value.split(":"),url.port=value.pop(),url.hostname=value.join(":")):(url.hostname=value,url.port="");break;case"protocol":url.protocol=value.toLowerCase(),url.slashes=!fn;break;case"pathname":case"hash":if(value){var char=part==="pathname"?"/":"#";url[part]=value.charAt(0)!==char?char+value:value}else url[part]=value;break;default:url[part]=value}for(var i=0;i<rules.length;i++){var ins=rules[i];ins[4]&&(url[ins[1]]=url[ins[1]].toLowerCase())}return url.origin=url.protocol&&url.host&&url.protocol!=="file:"?url.protocol+"//"+url.host:"null",url.href=url.toString(),url}function toString(stringify){(!stringify||typeof stringify!="function")&&(stringify=qs.stringify);var query,url=this,protocol=url.protocol;protocol&&protocol.charAt(protocol.length-1)!==":"&&(protocol+=":");var result=protocol+(url.slashes?"//":"");return url.username&&(result+=url.username,url.password&&(result+=":"+url.password),result+="@"),result+=url.host+url.pathname,query=typeof url.query=="object"?stringify(url.query):url.query,query&&(result+=query.charAt(0)!=="?"?"?"+query:query),url.hash&&(result+=url.hash),result}Url.prototype={set,toString},Url.extractProtocol=extractProtocol,Url.location=lolcation,Url.trimLeft=trimLeft,Url.qs=qs,module.exports=Url},51166:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionsApp=void 0;const react_1=__importDefault(__webpack_require__(59496)),base_ui_utils_composer_1=__webpack_require__(80893),design_ui_pages_standalone_not_found_page_1=__webpack_require__(8596),react_ui_loader_fallback_1=__webpack_require__(4603),hideScrollbars="body::-webkit-scrollbar {display: none;}";function CompositionsApp({Composition,previewContext}){const{providers=[]}=previewContext?.get("teambit.react/react")||{},safeComposition=(0,react_ui_loader_fallback_1.useFallback)(Composition&&react_1.default.createElement(Composition,null),react_1.default.createElement(design_ui_pages_standalone_not_found_page_1.StandaloneNotFoundPage,null));return react_1.default.createElement(base_ui_utils_composer_1.Composer,{components:providers},react_1.default.createElement("style",null,hideScrollbars),safeComposition)}exports.CompositionsApp=CompositionsApp},40105:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__(59496)),react_dom_1=__importDefault(__webpack_require__(87995)),compositions_app_1=__webpack_require__(51166);exports.default=(Composition,previewContext)=>{react_dom_1.default.render(react_1.default.createElement(compositions_app_1.CompositionsApp,{Composition,previewContext}),document.getElementById("root"))}},5659:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.CompositionsApp=void 0;var compositions_app_1=__webpack_require__(51166);Object.defineProperty(exports,"CompositionsApp",{enumerable:!0,get:function(){return compositions_app_1.CompositionsApp}});var compositions_app_root_1=__webpack_require__(40105);Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return __importDefault(compositions_app_root_1).default}})},4603:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useFallback=exports.LoaderFallback=void 0;var loader_fallback_1=__webpack_require__(48767);Object.defineProperty(exports,"LoaderFallback",{enumerable:!0,get:function(){return loader_fallback_1.LoaderFallback}}),Object.defineProperty(exports,"useFallback",{enumerable:!0,get:function(){return loader_fallback_1.useFallback}})},48767:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.useFallback=exports.LoaderFallback=void 0;const react_1=__importStar(__webpack_require__(59496)),base_ui_loaders_loader_ribbon_1=__webpack_require__(75076);function LoaderFallback({Target,Loader=LoaderComponent,DefaultComponent,timeout=15e3}){return useFallback(Target&&react_1.default.createElement(Target,null),react_1.default.createElement(DefaultComponent,null),{timeout,loader:react_1.default.createElement(Loader,null)})}exports.LoaderFallback=LoaderFallback;function useFallback(target,fallback,{timeout=15e3,loader=react_1.default.createElement(LoaderComponent,null)}={}){const[working,setWorking]=(0,react_1.useState)(!!target),hasTarget=!!target;return(0,react_1.useEffect)(()=>{if(timeout<=0)return()=>{};if(hasTarget)return setWorking(!0),()=>{};const tmId=setTimeout(()=>setWorking(!1),timeout);return()=>clearTimeout(tmId)},[hasTarget,timeout]),target||(working&&timeout>0?loader:fallback)}exports.useFallback=useFallback;function LoaderComponent(){return react_1.default.createElement(base_ui_loaders_loader_ribbon_1.LoaderRibbon,{active:!0,style:{position:"fixed",top:0,left:0,right:0}})}},63244:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.defaultJsonSerializer=void 0,exports.defaultJsonSerializer=JSON},20292:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GraphQLWebSocketClient=void 0;const resolveRequestDocument_js_1=__webpack_require__(19263),types_js_1=__webpack_require__(74771),CONNECTION_INIT="connection_init",CONNECTION_ACK="connection_ack",PING="ping",PONG="pong",SUBSCRIBE="subscribe",NEXT="next",ERROR="error",COMPLETE="complete";class GraphQLWebSocketMessage{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(type,payload,id){this._type=type,this._payload=payload,this._id=id}get text(){const result={type:this.type};return this.id!=null&&this.id!=null&&(result.id=this.id),this.payload!=null&&this.payload!=null&&(result.payload=this.payload),JSON.stringify(result)}static parse(data,f){const{type,payload,id}=JSON.parse(data);return new GraphQLWebSocketMessage(type,f(payload),id)}}class GraphQLWebSocketClient{constructor(socket,{onInit,onAcknowledged,onPing,onPong}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=socket,socket.addEventListener("open",async e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},socket.send(ConnectionInit(onInit?await onInit():null).text)}),socket.addEventListener("close",e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),socket.addEventListener("error",e=>{console.error(e)}),socket.addEventListener("message",e=>{try{const message=parseMessage(e.data);switch(message.type){case CONNECTION_ACK:{this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,onAcknowledged&&onAcknowledged(message.payload));return}case PING:{onPing?onPing(message.payload).then(r=>socket.send(Pong(r).text)):socket.send(Pong(null).text);return}case PONG:{onPong&&onPong(message.payload);return}}if(!this.socketState.acknowledged||message.id===void 0||message.id===null||!this.socketState.subscriptions[message.id])return;const{query,variables,subscriber}=this.socketState.subscriptions[message.id];switch(message.type){case NEXT:{!message.payload.errors&&message.payload.data&&subscriber.next&&subscriber.next(message.payload.data),message.payload.errors&&subscriber.error&&subscriber.error(new types_js_1.ClientError({...message.payload,status:200},{query,variables}));return}case ERROR:{subscriber.error&&subscriber.error(new types_js_1.ClientError({errors:message.payload,status:200},{query,variables}));return}case COMPLETE:{subscriber.complete&&subscriber.complete(),delete this.socketState.subscriptions[message.id];return}}}catch(e2){console.error(e2),socket.close(1006)}socket.close(4400,"Unknown graphql-ws message.")})}makeSubscribe(query,operationName,subscriber,variables){const subscriptionId=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[subscriptionId]={query,variables,subscriber},this.socket.send(Subscribe(subscriptionId,{query,operationName,variables}).text),()=>{this.socket.send(Complete(subscriptionId).text),delete this.socketState.subscriptions[subscriptionId]}}rawRequest(query,variables){return new Promise((resolve,reject)=>{let result;this.rawSubscribe(query,{next:(data,extensions)=>result={data,extensions},error:reject,complete:()=>resolve(result)},variables)})}request(document2,variables){return new Promise((resolve,reject)=>{let result;this.subscribe(document2,{next:data=>result=data,error:reject,complete:()=>resolve(result)},variables)})}subscribe(document2,subscriber,variables){const{query,operationName}=(0,resolveRequestDocument_js_1.resolveRequestDocument)(document2);return this.makeSubscribe(query,operationName,subscriber,variables)}rawSubscribe(query,subscriber,variables){return this.makeSubscribe(query,void 0,subscriber,variables)}ping(payload){this.socket.send(Ping(payload).text)}close(){this.socket.close(1e3)}}GraphQLWebSocketClient.PROTOCOL="graphql-transport-ws",exports.GraphQLWebSocketClient=GraphQLWebSocketClient;function parseMessage(data,f=a=>a){return GraphQLWebSocketMessage.parse(data,f)}function ConnectionInit(payload){return new GraphQLWebSocketMessage(CONNECTION_INIT,payload)}function Ping(payload){return new GraphQLWebSocketMessage(PING,payload,void 0)}function Pong(payload){return new GraphQLWebSocketMessage(PONG,payload,void 0)}function Subscribe(id,payload){return new GraphQLWebSocketMessage(SUBSCRIBE,payload,id)}function Complete(id){return new GraphQLWebSocketMessage(COMPLETE,void 0,id)}},61283:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HeadersInstanceToPlainObject=exports.uppercase=void 0;const uppercase=str=>str.toUpperCase();exports.uppercase=uppercase;const HeadersInstanceToPlainObject=headers=>{const o={};return headers.forEach((v,k)=>{o[k]=v}),o};exports.HeadersInstanceToPlainObject=HeadersInstanceToPlainObject},1238:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.request=exports.rawRequest=exports.GraphQLClient=exports.ClientError=exports.batchRequests=exports.resolveRequestDocument=exports.GraphQLWebSocketClient=exports.gql=void 0;const defaultJsonSerializer_js_1=__webpack_require__(63244),helpers_js_1=__webpack_require__(61283),parseArgs_js_1=__webpack_require__(14371),resolveRequestDocument_js_1=__webpack_require__(19263),types_js_1=__webpack_require__(74771);Object.defineProperty(exports,"ClientError",{enumerable:!0,get:function(){return types_js_1.ClientError}});const cross_fetch_1=__importStar(__webpack_require__(77699)),CrossFetch=cross_fetch_1,resolveHeaders=headers=>{let oHeaders={};return headers&&(typeof Headers<"u"&&headers instanceof Headers||CrossFetch&&CrossFetch.Headers&&headers instanceof CrossFetch.Headers?oHeaders=(0,helpers_js_1.HeadersInstanceToPlainObject)(headers):Array.isArray(headers)?headers.forEach(([name,value])=>{name&&value!==void 0&&(oHeaders[name]=value)}):oHeaders=headers),oHeaders},cleanQuery=str=>str.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),buildRequestConfig=params=>{if(!Array.isArray(params.query)){const params_2=params,search=[`query=${encodeURIComponent(cleanQuery(params_2.query))}`];return params.variables&&search.push(`variables=${encodeURIComponent(params_2.jsonSerializer.stringify(params_2.variables))}`),params_2.operationName&&search.push(`operationName=${encodeURIComponent(params_2.operationName)}`),search.join("&")}if(typeof params.variables<"u"&&!Array.isArray(params.variables))throw new Error("Cannot create query with given variable type, array expected");const params_=params,payload=params.query.reduce((acc,currentQuery,index)=>(acc.push({query:cleanQuery(currentQuery),variables:params_.variables?params_.jsonSerializer.stringify(params_.variables[index]):void 0}),acc),[]);return`query=${encodeURIComponent(params_.jsonSerializer.stringify(payload))}`},createHttpMethodFetcher=method=>async params=>{const{url,query,variables,operationName,fetch,fetchOptions,middleware}=params,headers={...params.headers};let queryParams="",body;method==="POST"?(body=createRequestBody(query,variables,operationName,fetchOptions.jsonSerializer),typeof body=="string"&&(headers["Content-Type"]="application/json")):queryParams=buildRequestConfig({query,variables,operationName,jsonSerializer:fetchOptions.jsonSerializer??defaultJsonSerializer_js_1.defaultJsonSerializer});const init={method,headers,body,...fetchOptions};let urlResolved=url,initResolved=init;if(middleware){const result=await Promise.resolve(middleware({...init,url,operationName,variables})),{url:urlNew,...initNew}=result;urlResolved=urlNew,initResolved=initNew}return queryParams&&(urlResolved=`${urlResolved}?${queryParams}`),await fetch(urlResolved,initResolved)};class GraphQLClient{constructor(url,requestConfig={}){this.url=url,this.requestConfig=requestConfig,this.rawRequest=async(...args)=>{const[queryOrOptions,variables,requestHeaders]=args,rawRequestOptions=(0,parseArgs_js_1.parseRawRequestArgs)(queryOrOptions,variables,requestHeaders),{headers,fetch=cross_fetch_1.default,method="POST",requestMiddleware,responseMiddleware,...fetchOptions}=this.requestConfig,{url:url2}=this;rawRequestOptions.signal!==void 0&&(fetchOptions.signal=rawRequestOptions.signal);const{operationName}=(0,resolveRequestDocument_js_1.resolveRequestDocument)(rawRequestOptions.query);return makeRequest({url:url2,query:rawRequestOptions.query,variables:rawRequestOptions.variables,headers:{...resolveHeaders(callOrIdentity(headers)),...resolveHeaders(rawRequestOptions.requestHeaders)},operationName,fetch,method,fetchOptions,middleware:requestMiddleware}).then(response=>(responseMiddleware&&responseMiddleware(response),response)).catch(error=>{throw responseMiddleware&&responseMiddleware(error),error})}}async request(documentOrOptions,...variablesAndRequestHeaders){const[variables,requestHeaders]=variablesAndRequestHeaders,requestOptions=(0,parseArgs_js_1.parseRequestArgs)(documentOrOptions,variables,requestHeaders),{headers,fetch=cross_fetch_1.default,method="POST",requestMiddleware,responseMiddleware,...fetchOptions}=this.requestConfig,{url}=this;requestOptions.signal!==void 0&&(fetchOptions.signal=requestOptions.signal);const{query,operationName}=(0,resolveRequestDocument_js_1.resolveRequestDocument)(requestOptions.document);return makeRequest({url,query,variables:requestOptions.variables,headers:{...resolveHeaders(callOrIdentity(headers)),...resolveHeaders(requestOptions.requestHeaders)},operationName,fetch,method,fetchOptions,middleware:requestMiddleware}).then(response=>(responseMiddleware&&responseMiddleware(response),response.data)).catch(error=>{throw responseMiddleware&&responseMiddleware(error),error})}batchRequests(documentsOrOptions,requestHeaders){const batchRequestOptions=(0,parseArgs_js_1.parseBatchRequestArgs)(documentsOrOptions,requestHeaders),{headers,...fetchOptions}=this.requestConfig;batchRequestOptions.signal!==void 0&&(fetchOptions.signal=batchRequestOptions.signal);const queries=batchRequestOptions.documents.map(({document:document2})=>(0,resolveRequestDocument_js_1.resolveRequestDocument)(document2).query),variables=batchRequestOptions.documents.map(({variables:variables2})=>variables2);return makeRequest({url:this.url,query:queries,variables,headers:{...resolveHeaders(callOrIdentity(headers)),...resolveHeaders(batchRequestOptions.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??cross_fetch_1.default,method:this.requestConfig.method||"POST",fetchOptions,middleware:this.requestConfig.requestMiddleware}).then(response=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(response),response.data)).catch(error=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(error),error})}setHeaders(headers){return this.requestConfig.headers=headers,this}setHeader(key,value){const{headers}=this.requestConfig;return headers?headers[key]=value:this.requestConfig.headers={[key]:value},this}setEndpoint(value){return this.url=value,this}}exports.GraphQLClient=GraphQLClient;const makeRequest=async params=>{const{query,variables,fetchOptions}=params,fetcher=createHttpMethodFetcher((0,helpers_js_1.uppercase)(params.method??"post")),isBatchingQuery=Array.isArray(params.query),response=await fetcher(params),result=await getResult(response,fetchOptions.jsonSerializer??defaultJsonSerializer_js_1.defaultJsonSerializer),successfullyReceivedData=Array.isArray(result)?!result.some(({data})=>!data):Boolean(result.data),successfullyPassedErrorPolicy=Array.isArray(result)||!result.errors||Array.isArray(result.errors)&&!result.errors.length||fetchOptions.errorPolicy==="all"||fetchOptions.errorPolicy==="ignore";if(response.ok&&successfullyPassedErrorPolicy&&successfullyReceivedData){const{errors:_,...rest}=(Array.isArray(result),result),data=fetchOptions.errorPolicy==="ignore"?rest:result;return{...isBatchingQuery?{data}:data,headers:response.headers,status:response.status}}else{const errorResult=typeof result=="string"?{error:result}:result;throw new types_js_1.ClientError({...errorResult,status:response.status,headers:response.headers},{query,variables})}},rawRequest=async(...args)=>{const[urlOrOptions,query,...variablesAndRequestHeaders]=args,requestOptions=(0,parseArgs_js_1.parseRawRequestExtendedArgs)(urlOrOptions,query,...variablesAndRequestHeaders);return new GraphQLClient(requestOptions.url).rawRequest({...requestOptions})};exports.rawRequest=rawRequest;async function request(urlOrOptions,document2,...variablesAndRequestHeaders){const requestOptions=(0,parseArgs_js_1.parseRequestExtendedArgs)(urlOrOptions,document2,...variablesAndRequestHeaders);return new GraphQLClient(requestOptions.url).request({...requestOptions})}exports.request=request;const batchRequests=async(...args)=>{const params=parseBatchRequestsArgsExtended(args);return new GraphQLClient(params.url).batchRequests(params)};exports.batchRequests=batchRequests;const parseBatchRequestsArgsExtended=args=>args.length===1?args[0]:{url:args[0],documents:args[1],requestHeaders:args[2],signal:void 0},createRequestBody=(query,variables,operationName,jsonSerializer)=>{const jsonSerializer_=jsonSerializer??defaultJsonSerializer_js_1.defaultJsonSerializer;if(!Array.isArray(query))return jsonSerializer_.stringify({query,variables,operationName});if(typeof variables<"u"&&!Array.isArray(variables))throw new Error("Cannot create request body with given variable type, array expected");const payload=query.reduce((acc,currentQuery,index)=>(acc.push({query:currentQuery,variables:variables?variables[index]:void 0}),acc),[]);return jsonSerializer_.stringify(payload)},getResult=async(response,jsonSerializer)=>{let contentType;return response.headers.forEach((value,key)=>{key.toLowerCase()==="content-type"&&(contentType=value)}),contentType&&(contentType.toLowerCase().startsWith("application/json")||contentType.toLowerCase().startsWith("application/graphql+json")||contentType.toLowerCase().startsWith("application/graphql-response+json"))?jsonSerializer.parse(await response.text()):response.text()},callOrIdentity=value=>typeof value=="function"?value():value,gql=(chunks,...variables)=>chunks.reduce((acc,chunk,index)=>`${acc}${chunk}${index in variables?String(variables[index]):""}`,"");exports.gql=gql;var graphql_ws_js_1=__webpack_require__(20292);Object.defineProperty(exports,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return graphql_ws_js_1.GraphQLWebSocketClient}});var resolveRequestDocument_js_2=__webpack_require__(19263);Object.defineProperty(exports,"resolveRequestDocument",{enumerable:!0,get:function(){return resolveRequestDocument_js_2.resolveRequestDocument}}),exports.default=request},14371:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.parseRawRequestExtendedArgs=exports.parseRequestExtendedArgs=exports.parseBatchRequestArgs=exports.parseRawRequestArgs=exports.parseRequestArgs=void 0;const parseRequestArgs=(documentOrOptions,variables,requestHeaders)=>documentOrOptions.document?documentOrOptions:{document:documentOrOptions,variables,requestHeaders,signal:void 0};exports.parseRequestArgs=parseRequestArgs;const parseRawRequestArgs=(queryOrOptions,variables,requestHeaders)=>queryOrOptions.query?queryOrOptions:{query:queryOrOptions,variables,requestHeaders,signal:void 0};exports.parseRawRequestArgs=parseRawRequestArgs;const parseBatchRequestArgs=(documentsOrOptions,requestHeaders)=>documentsOrOptions.documents?documentsOrOptions:{documents:documentsOrOptions,requestHeaders,signal:void 0};exports.parseBatchRequestArgs=parseBatchRequestArgs;const parseRequestExtendedArgs=(urlOrOptions,document2,...variablesAndRequestHeaders)=>{const[variables,requestHeaders]=variablesAndRequestHeaders;return urlOrOptions.document?urlOrOptions:{url:urlOrOptions,document:document2,variables,requestHeaders,signal:void 0}};exports.parseRequestExtendedArgs=parseRequestExtendedArgs;const parseRawRequestExtendedArgs=(urlOrOptions,query,...variablesAndRequestHeaders)=>{const[variables,requestHeaders]=variablesAndRequestHeaders;return urlOrOptions.query?urlOrOptions:{url:urlOrOptions,query,variables,requestHeaders,signal:void 0}};exports.parseRawRequestExtendedArgs=parseRawRequestExtendedArgs},19263:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveRequestDocument=void 0;const graphql_1=__webpack_require__(88265),extractOperationName=document2=>{let operationName;const operationDefinitions=document2.definitions.filter(definition=>definition.kind==="OperationDefinition");return operationDefinitions.length===1&&(operationName=operationDefinitions[0]?.name?.value),operationName},resolveRequestDocument=document2=>{if(typeof document2=="string"){let operationName2;try{const parsedDocument=(0,graphql_1.parse)(document2);operationName2=extractOperationName(parsedDocument)}catch{}return{query:document2,operationName:operationName2}}const operationName=extractOperationName(document2);return{query:(0,graphql_1.print)(document2),operationName}};exports.resolveRequestDocument=resolveRequestDocument},74771:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClientError=void 0;class ClientError extends Error{constructor(response,request){const message=`${ClientError.extractMessage(response)}: ${JSON.stringify({response,request})}`;super(message);Object.setPrototypeOf(this,ClientError.prototype),this.response=response,this.request=request,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ClientError)}static extractMessage(response){return response.errors?.[0]?.message??`GraphQL Error (Code: ${response.status})`}}exports.ClientError=ClientError},88265:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BREAK:()=>BREAK,BreakingChangeType:()=>BreakingChangeType,DEFAULT_DEPRECATION_REASON:()=>DEFAULT_DEPRECATION_REASON,DangerousChangeType:()=>DangerousChangeType,DirectiveLocation:()=>DirectiveLocation,ExecutableDefinitionsRule:()=>ExecutableDefinitionsRule,FieldsOnCorrectTypeRule:()=>FieldsOnCorrectTypeRule,FragmentsOnCompositeTypesRule:()=>FragmentsOnCompositeTypesRule,GraphQLBoolean:()=>GraphQLBoolean,GraphQLDeprecatedDirective:()=>GraphQLDeprecatedDirective,GraphQLDirective:()=>GraphQLDirective,GraphQLEnumType:()=>GraphQLEnumType,GraphQLError:()=>GraphQLError,GraphQLFloat:()=>GraphQLFloat,GraphQLID:()=>GraphQLID,GraphQLIncludeDirective:()=>GraphQLIncludeDirective,GraphQLInputObjectType:()=>GraphQLInputObjectType,GraphQLInt:()=>GraphQLInt,GraphQLInterfaceType:()=>GraphQLInterfaceType,GraphQLList:()=>GraphQLList,GraphQLNonNull:()=>GraphQLNonNull,GraphQLObjectType:()=>GraphQLObjectType,GraphQLScalarType:()=>GraphQLScalarType,GraphQLSchema:()=>GraphQLSchema,GraphQLSkipDirective:()=>GraphQLSkipDirective,GraphQLSpecifiedByDirective:()=>GraphQLSpecifiedByDirective,GraphQLString:()=>GraphQLString,GraphQLUnionType:()=>GraphQLUnionType,Kind:()=>Kind,KnownArgumentNamesRule:()=>KnownArgumentNamesRule,KnownDirectivesRule:()=>KnownDirectivesRule,KnownFragmentNamesRule:()=>KnownFragmentNamesRule,KnownTypeNamesRule:()=>KnownTypeNamesRule,Lexer:()=>Lexer,Location:()=>Location,LoneAnonymousOperationRule:()=>LoneAnonymousOperationRule,LoneSchemaDefinitionRule:()=>LoneSchemaDefinitionRule,NoDeprecatedCustomRule:()=>NoDeprecatedCustomRule,NoFragmentCyclesRule:()=>NoFragmentCyclesRule,NoSchemaIntrospectionCustomRule:()=>NoSchemaIntrospectionCustomRule,NoUndefinedVariablesRule:()=>NoUndefinedVariablesRule,NoUnusedFragmentsRule:()=>NoUnusedFragmentsRule,NoUnusedVariablesRule:()=>NoUnusedVariablesRule,OverlappingFieldsCanBeMergedRule:()=>OverlappingFieldsCanBeMergedRule,PossibleFragmentSpreadsRule:()=>PossibleFragmentSpreadsRule,PossibleTypeExtensionsRule:()=>PossibleTypeExtensionsRule,ProvidedRequiredArgumentsRule:()=>ProvidedRequiredArgumentsRule,ScalarLeafsRule:()=>ScalarLeafsRule,SchemaMetaFieldDef:()=>SchemaMetaFieldDef,SingleFieldSubscriptionsRule:()=>SingleFieldSubscriptionsRule,Source:()=>Source,Token:()=>Token,TokenKind:()=>TokenKind,TypeInfo:()=>TypeInfo,TypeKind:()=>TypeKind,TypeMetaFieldDef:()=>TypeMetaFieldDef,TypeNameMetaFieldDef:()=>TypeNameMetaFieldDef,UniqueArgumentNamesRule:()=>UniqueArgumentNamesRule,UniqueDirectiveNamesRule:()=>UniqueDirectiveNamesRule,UniqueDirectivesPerLocationRule:()=>UniqueDirectivesPerLocationRule,UniqueEnumValueNamesRule:()=>UniqueEnumValueNamesRule,UniqueFieldDefinitionNamesRule:()=>UniqueFieldDefinitionNamesRule,UniqueFragmentNamesRule:()=>UniqueFragmentNamesRule,UniqueInputFieldNamesRule:()=>UniqueInputFieldNamesRule,UniqueOperationNamesRule:()=>UniqueOperationNamesRule,UniqueOperationTypesRule:()=>UniqueOperationTypesRule,UniqueTypeNamesRule:()=>UniqueTypeNamesRule,UniqueVariableNamesRule:()=>UniqueVariableNamesRule,ValidationContext:()=>ValidationContext,ValuesOfCorrectTypeRule:()=>ValuesOfCorrectTypeRule,VariablesAreInputTypesRule:()=>VariablesAreInputTypesRule,VariablesInAllowedPositionRule:()=>VariablesInAllowedPositionRule,__Directive:()=>__Directive,__DirectiveLocation:()=>__DirectiveLocation,__EnumValue:()=>__EnumValue,__Field:()=>__Field,__InputValue:()=>__InputValue,__Schema:()=>__Schema,__Type:()=>__Type,__TypeKind:()=>__TypeKind,assertAbstractType:()=>assertAbstractType,assertCompositeType:()=>assertCompositeType,assertDirective:()=>assertDirective,assertEnumType:()=>assertEnumType,assertInputObjectType:()=>assertInputObjectType,assertInputType:()=>assertInputType,assertInterfaceType:()=>assertInterfaceType,assertLeafType:()=>assertLeafType,assertListType:()=>assertListType,assertNamedType:()=>assertNamedType,assertNonNullType:()=>assertNonNullType,assertNullableType:()=>assertNullableType,assertObjectType:()=>assertObjectType,assertOutputType:()=>assertOutputType,assertScalarType:()=>assertScalarType,assertSchema:()=>assertSchema,assertType:()=>assertType,assertUnionType:()=>assertUnionType,assertValidName:()=>assertValidName,assertValidSchema:()=>assertValidSchema,assertWrappingType:()=>assertWrappingType,astFromValue:()=>astFromValue,buildASTSchema:()=>buildASTSchema,buildClientSchema:()=>buildClientSchema,buildSchema:()=>buildSchema,coerceInputValue:()=>coerceInputValue,concatAST:()=>concatAST,createSourceEventStream:()=>createSourceEventStream,defaultFieldResolver:()=>defaultFieldResolver,defaultTypeResolver:()=>defaultTypeResolver,doTypesOverlap:()=>doTypesOverlap,execute:()=>execute,executeSync:()=>executeSync,extendSchema:()=>extendSchema,findBreakingChanges:()=>findBreakingChanges,findDangerousChanges:()=>findDangerousChanges,findDeprecatedUsages:()=>findDeprecatedUsages,formatError:()=>formatError,getDescription:()=>getDescription,getDirectiveValues:()=>getDirectiveValues,getIntrospectionQuery:()=>getIntrospectionQuery,getLocation:()=>getLocation,getNamedType:()=>getNamedType,getNullableType:()=>getNullableType,getOperationAST:()=>getOperationAST,getOperationRootType:()=>getOperationRootType,getVisitFn:()=>getVisitFn,graphql:()=>graphql,graphqlSync:()=>graphqlSync,introspectionFromSchema:()=>introspectionFromSchema,introspectionTypes:()=>introspectionTypes,isAbstractType:()=>isAbstractType,isCompositeType:()=>isCompositeType,isDefinitionNode:()=>isDefinitionNode,isDirective:()=>isDirective,isEnumType:()=>isEnumType,isEqualType:()=>isEqualType,isExecutableDefinitionNode:()=>isExecutableDefinitionNode,isInputObjectType:()=>isInputObjectType,isInputType:()=>isInputType,isInterfaceType:()=>isInterfaceType,isIntrospectionType:()=>isIntrospectionType,isLeafType:()=>isLeafType,isListType:()=>isListType,isNamedType:()=>isNamedType,isNonNullType:()=>isNonNullType,isNullableType:()=>isNullableType,isObjectType:()=>isObjectType,isOutputType:()=>isOutputType,isRequiredArgument:()=>isRequiredArgument,isRequiredInputField:()=>isRequiredInputField,isScalarType:()=>isScalarType,isSchema:()=>isSchema,isSelectionNode:()=>isSelectionNode,isSpecifiedDirective:()=>isSpecifiedDirective,isSpecifiedScalarType:()=>isSpecifiedScalarType,isType:()=>isType,isTypeDefinitionNode:()=>isTypeDefinitionNode,isTypeExtensionNode:()=>isTypeExtensionNode,isTypeNode:()=>isTypeNode,isTypeSubTypeOf:()=>isTypeSubTypeOf,isTypeSystemDefinitionNode:()=>isTypeSystemDefinitionNode,isTypeSystemExtensionNode:()=>isTypeSystemExtensionNode,isUnionType:()=>isUnionType,isValidNameError:()=>isValidNameError,isValueNode:()=>isValueNode,isWrappingType:()=>isWrappingType,lexicographicSortSchema:()=>lexicographicSortSchema,locatedError:()=>locatedError,parse:()=>parse,parseType:()=>parseType,parseValue:()=>parseValue,print:()=>print,printError:()=>printError,printIntrospectionSchema:()=>printIntrospectionSchema,printLocation:()=>printLocation,printSchema:()=>printSchema,printSourceLocation:()=>printSourceLocation,printType:()=>printType,responsePathAsArray:()=>pathToArray,separateOperations:()=>separateOperations,specifiedDirectives:()=>specifiedDirectives,specifiedRules:()=>specifiedRules,specifiedScalarTypes:()=>specifiedScalarTypes,stripIgnoredCharacters:()=>stripIgnoredCharacters,subscribe:()=>subscribe,syntaxError:()=>syntaxError,typeFromAST:()=>typeFromAST,validate:()=>validate,validateSchema:()=>validateSchema,valueFromAST:()=>valueFromAST,valueFromASTUntyped:()=>valueFromASTUntyped,version:()=>version,versionInfo:()=>versionInfo,visit:()=>visit,visitInParallel:()=>visitInParallel,visitWithTypeInfo:()=>visitWithTypeInfo});var version="15.8.0",versionInfo=Object.freeze({major:15,minor:8,patch:0,preReleaseTag:null});function isPromise(value){return typeof value?.then=="function"}function _typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(obj2){return typeof obj2}:_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},_typeof(obj)}function isObjectLike(value){return _typeof(value)=="object"&&value!==null}var SYMBOL_ITERATOR=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator",SYMBOL_ASYNC_ITERATOR=typeof Symbol=="function"&&Symbol.asyncIterator!=null?Symbol.asyncIterator:"@@asyncIterator",SYMBOL_TO_STRING_TAG=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function getLocation(source,position){for(var lineRegexp=/\r\n|[\n\r]/g,line=1,column=position+1,match;(match=lineRegexp.exec(source.body))&&match.index<position;)line+=1,column=position+1-(match.index+match[0].length);return{line,column}}function printLocation(location){return printSourceLocation(location.source,getLocation(location.source,location.start))}function printSourceLocation(source,sourceLocation){var firstLineColumnOffset=source.locationOffset.column-1,body=whitespace(firstLineColumnOffset)+source.body,lineIndex=sourceLocation.line-1,lineOffset=source.locationOffset.line-1,lineNum=sourceLocation.line+lineOffset,columnOffset=sourceLocation.line===1?firstLineColumnOffset:0,columnNum=sourceLocation.column+columnOffset,locationStr="".concat(source.name,":").concat(lineNum,":").concat(columnNum,`
|
77
|
-
`),lines=body.split(/\r\n|[\n\r]/g),locationLine=lines[lineIndex];if(locationLine.length>120){for(var subLineIndex=Math.floor(columnNum/80),subLineColumnNum=columnNum%80,subLines=[],i=0;i<locationLine.length;i+=80)subLines.push(locationLine.slice(i,i+80));return locationStr+printPrefixedLines([["".concat(lineNum),subLines[0]]].concat(subLines.slice(1,subLineIndex+1).map(function(subLine){return["",subLine]}),[[" ",whitespace(subLineColumnNum-1)+"^"],["",subLines[subLineIndex+1]]]))}return locationStr+printPrefixedLines([["".concat(lineNum-1),lines[lineIndex-1]],["".concat(lineNum),locationLine],["",whitespace(columnNum-1)+"^"],["".concat(lineNum+1),lines[lineIndex+1]]])}function printPrefixedLines(lines){var existingLines=lines.filter(function(_ref){var _=_ref[0],line=_ref[1];return line!==void 0}),padLen=Math.max.apply(Math,existingLines.map(function(_ref2){var prefix=_ref2[0];return prefix.length}));return existingLines.map(function(_ref3){var prefix=_ref3[0],line=_ref3[1];return leftPad(padLen,prefix)+(line?" | "+line:" |")}).join(`
|
78
|
-
`)}function whitespace(len){return Array(len+1).join(" ")}function leftPad(len,str){return whitespace(len-str.length)+str}function GraphQLError_typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?GraphQLError_typeof=function(obj2){return typeof obj2}:GraphQLError_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},GraphQLError_typeof(obj)}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _inherits(subClass,superClass){if(typeof superClass!="function"&&superClass!==null)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),superClass&&_setPrototypeOf(subClass,superClass)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self2,call){return call&&(GraphQLError_typeof(call)==="object"||typeof call=="function")?call:_assertThisInitialized(self2)}function _assertThisInitialized(self2){if(self2===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self2}function _wrapNativeSuper(Class){var _cache=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(Class2){if(Class2===null||!_isNativeFunction(Class2))return Class2;if(typeof Class2!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _cache<"u"){if(_cache.has(Class2))return _cache.get(Class2);_cache.set(Class2,Wrapper)}function Wrapper(){return _construct(Class2,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class2.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class2)},_wrapNativeSuper(Class)}function _construct(Parent,args,Class){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(Parent2,args2,Class2){var a=[null];a.push.apply(a,args2);var Constructor=Function.bind.apply(Parent2,a),instance=new Constructor;return Class2&&_setPrototypeOf(instance,Class2.prototype),instance},_construct.apply(null,arguments)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _isNativeFunction(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o2){return o2.__proto__||Object.getPrototypeOf(o2)},_getPrototypeOf(o)}var GraphQLError=function(_Error){_inherits(GraphQLError2,_Error);var _super=_createSuper(GraphQLError2);function GraphQLError2(message,nodes,source,positions,path,originalError,extensions){var _nodeLocations,_nodeLocations2,_nodeLocations3,_this;_classCallCheck(this,GraphQLError2),_this=_super.call(this,message),_this.name="GraphQLError",_this.originalError=originalError??void 0,_this.nodes=undefinedIfEmpty(Array.isArray(nodes)?nodes:nodes?[nodes]:void 0);for(var nodeLocations=[],_i2=0,_ref3=(_this$nodes=_this.nodes)!==null&&_this$nodes!==void 0?_this$nodes:[];_i2<_ref3.length;_i2++){var _this$nodes,_ref4=_ref3[_i2],loc=_ref4.loc;loc!=null&&nodeLocations.push(loc)}nodeLocations=undefinedIfEmpty(nodeLocations),_this.source=source??((_nodeLocations=nodeLocations)===null||_nodeLocations===void 0?void 0:_nodeLocations[0].source),_this.positions=positions??((_nodeLocations2=nodeLocations)===null||_nodeLocations2===void 0?void 0:_nodeLocations2.map(function(loc2){return loc2.start})),_this.locations=positions&&source?positions.map(function(pos){return getLocation(source,pos)}):(_nodeLocations3=nodeLocations)===null||_nodeLocations3===void 0?void 0:_nodeLocations3.map(function(loc2){return getLocation(loc2.source,loc2.start)}),_this.path=path??void 0;var originalExtensions=originalError?.extensions;return extensions==null&&isObjectLike(originalExtensions)?_this.extensions=_objectSpread({},originalExtensions):_this.extensions=extensions??{},Object.defineProperties(_assertThisInitialized(_this),{message:{enumerable:!0},locations:{enumerable:_this.locations!=null},path:{enumerable:_this.path!=null},extensions:{enumerable:_this.extensions!=null&&Object.keys(_this.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),originalError!=null&&originalError.stack?(Object.defineProperty(_assertThisInitialized(_this),"stack",{value:originalError.stack,writable:!0,configurable:!0}),_possibleConstructorReturn(_this)):(Error.captureStackTrace?Error.captureStackTrace(_assertThisInitialized(_this),GraphQLError2):Object.defineProperty(_assertThisInitialized(_this),"stack",{value:Error().stack,writable:!0,configurable:!0}),_this)}return _createClass(GraphQLError2,[{key:"toString",value:function(){return printError(this)}},{key:SYMBOL_TO_STRING_TAG,get:function(){return"Object"}}]),GraphQLError2}(_wrapNativeSuper(Error));function undefinedIfEmpty(array){return array===void 0||array.length===0?void 0:array}function printError(error){var output=error.message;if(error.nodes)for(var _i4=0,_error$nodes2=error.nodes;_i4<_error$nodes2.length;_i4++){var node=_error$nodes2[_i4];node.loc&&(output+=`
|
79
|
-
|
80
|
-
`+printLocation(node.loc))}else if(error.source&&error.locations)for(var _i6=0,_error$locations2=error.locations;_i6<_error$locations2.length;_i6++){var location=_error$locations2[_i6];output+=`
|
81
|
-
|
82
|
-
`+printSourceLocation(error.source,location)}return output}function syntaxError(source,position,description){return new GraphQLError("Syntax Error: ".concat(description),void 0,source,[position])}var Kind=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function invariant(condition,message){var booleanCondition=Boolean(condition);if(!booleanCondition)throw new Error(message??"Unexpected invariant triggered.")}var nodejsCustomInspectSymbol=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0;const jsutils_nodejsCustomInspectSymbol=nodejsCustomInspectSymbol;function defineInspect(classObject){var fn=classObject.prototype.toJSON;typeof fn=="function"||invariant(0),classObject.prototype.inspect=fn,jsutils_nodejsCustomInspectSymbol&&(classObject.prototype[jsutils_nodejsCustomInspectSymbol]=fn)}var Location=function(){function Location2(startToken,endToken,source){this.start=startToken.start,this.end=endToken.end,this.startToken=startToken,this.endToken=endToken,this.source=source}var _proto=Location2.prototype;return _proto.toJSON=function(){return{start:this.start,end:this.end}},Location2}();defineInspect(Location);var Token=function(){function Token2(kind,start,end,line,column,prev,value){this.kind=kind,this.start=start,this.end=end,this.line=line,this.column=column,this.value=value,this.prev=prev,this.next=null}var _proto2=Token2.prototype;return _proto2.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},Token2}();defineInspect(Token);function isNode(maybeNode){return maybeNode!=null&&typeof maybeNode.kind=="string"}var TokenKind=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function inspect_typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?inspect_typeof=function(obj2){return typeof obj2}:inspect_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},inspect_typeof(obj)}var MAX_ARRAY_LENGTH=10,MAX_RECURSIVE_DEPTH=2;function inspect(value){return formatValue(value,[])}function formatValue(value,seenValues){switch(inspect_typeof(value)){case"string":return JSON.stringify(value);case"function":return value.name?"[function ".concat(value.name,"]"):"[function]";case"object":return value===null?"null":formatObjectValue(value,seenValues);default:return String(value)}}function formatObjectValue(value,previouslySeenValues){if(previouslySeenValues.indexOf(value)!==-1)return"[Circular]";var seenValues=[].concat(previouslySeenValues,[value]),customInspectFn=getCustomFn(value);if(customInspectFn!==void 0){var customValue=customInspectFn.call(value);if(customValue!==value)return typeof customValue=="string"?customValue:formatValue(customValue,seenValues)}else if(Array.isArray(value))return formatArray(value,seenValues);return formatObject(value,seenValues)}function formatObject(object,seenValues){var keys=Object.keys(object);if(keys.length===0)return"{}";if(seenValues.length>MAX_RECURSIVE_DEPTH)return"["+getObjectTag(object)+"]";var properties=keys.map(function(key){var value=formatValue(object[key],seenValues);return key+": "+value});return"{ "+properties.join(", ")+" }"}function formatArray(array,seenValues){if(array.length===0)return"[]";if(seenValues.length>MAX_RECURSIVE_DEPTH)return"[Array]";for(var len=Math.min(MAX_ARRAY_LENGTH,array.length),remaining=array.length-len,items=[],i=0;i<len;++i)items.push(formatValue(array[i],seenValues));return remaining===1?items.push("... 1 more item"):remaining>1&&items.push("... ".concat(remaining," more items")),"["+items.join(", ")+"]"}function getCustomFn(object){var customInspectFn=object[String(jsutils_nodejsCustomInspectSymbol)];if(typeof customInspectFn=="function")return customInspectFn;if(typeof object.inspect=="function")return object.inspect}function getObjectTag(object){var tag=Object.prototype.toString.call(object).replace(/^\[object /,"").replace(/]$/,"");if(tag==="Object"&&typeof object.constructor=="function"){var name=object.constructor.name;if(typeof name=="string"&&name!=="")return name}return tag}function devAssert(condition,message){var booleanCondition=Boolean(condition);if(!booleanCondition)throw new Error(message)}function instanceOf_typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?instanceOf_typeof=function(obj2){return typeof obj2}:instanceOf_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},instanceOf_typeof(obj)}const instanceOf=function(value,constructor){return value instanceof constructor};function source_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function source_createClass(Constructor,protoProps,staticProps){return protoProps&&source_defineProperties(Constructor.prototype,protoProps),staticProps&&source_defineProperties(Constructor,staticProps),Constructor}var Source=function(){function Source2(body){var name=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",locationOffset=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof body=="string"||devAssert(0,"Body must be a string. Received: ".concat(inspect(body),".")),this.body=body,this.name=name,this.locationOffset=locationOffset,this.locationOffset.line>0||devAssert(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||devAssert(0,"column in locationOffset is 1-indexed and must be positive.")}return source_createClass(Source2,[{key:SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}]),Source2}();function isSource(source){return instanceOf(source,Source)}var DirectiveLocation=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function dedentBlockStringValue(rawString){var lines=rawString.split(/\r\n|[\n\r]/g),commonIndent=getBlockStringIndentation(rawString);if(commonIndent!==0)for(var i=1;i<lines.length;i++)lines[i]=lines[i].slice(commonIndent);for(var startLine=0;startLine<lines.length&&isBlank(lines[startLine]);)++startLine;for(var endLine=lines.length;endLine>startLine&&isBlank(lines[endLine-1]);)--endLine;return lines.slice(startLine,endLine).join(`
|
83
|
-
`)}function isBlank(str){for(var i=0;i<str.length;++i)if(str[i]!==" "&&str[i]!==" ")return!1;return!0}function getBlockStringIndentation(value){for(var _commonIndent,isFirstLine=!0,isEmptyLine=!0,indent2=0,commonIndent=null,i=0;i<value.length;++i)switch(value.charCodeAt(i)){case 13:value.charCodeAt(i+1)===10&&++i;case 10:isFirstLine=!1,isEmptyLine=!0,indent2=0;break;case 9:case 32:++indent2;break;default:isEmptyLine&&!isFirstLine&&(commonIndent===null||indent2<commonIndent)&&(commonIndent=indent2),isEmptyLine=!1}return(_commonIndent=commonIndent)!==null&&_commonIndent!==void 0?_commonIndent:0}function printBlockString(value){var indentation=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",preferMultipleLines=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,isSingleLine=value.indexOf(`
|
84
|
-
`)===-1,hasLeadingSpace=value[0]===" "||value[0]===" ",hasTrailingQuote=value[value.length-1]==='"',hasTrailingSlash=value[value.length-1]==="\\",printAsMultipleLines=!isSingleLine||hasTrailingQuote||hasTrailingSlash||preferMultipleLines,result="";return printAsMultipleLines&&!(isSingleLine&&hasLeadingSpace)&&(result+=`
|
85
|
-
`+indentation),result+=indentation?value.replace(/\n/g,`
|
86
|
-
`+indentation):value,printAsMultipleLines&&(result+=`
|
87
|
-
`),'"""'+result.replace(/"""/g,'\\"""')+'"""'}var Lexer=function(){function Lexer2(source){var startOfFileToken=new Token(TokenKind.SOF,0,0,0,0,null);this.source=source,this.lastToken=startOfFileToken,this.token=startOfFileToken,this.line=1,this.lineStart=0}var _proto=Lexer2.prototype;return _proto.advance=function(){this.lastToken=this.token;var token=this.token=this.lookahead();return token},_proto.lookahead=function(){var token=this.token;if(token.kind!==TokenKind.EOF)do{var _token$next;token=(_token$next=token.next)!==null&&_token$next!==void 0?_token$next:token.next=readToken(this,token)}while(token.kind===TokenKind.COMMENT);return token},Lexer2}();function isPunctuatorTokenKind(kind){return kind===TokenKind.BANG||kind===TokenKind.DOLLAR||kind===TokenKind.AMP||kind===TokenKind.PAREN_L||kind===TokenKind.PAREN_R||kind===TokenKind.SPREAD||kind===TokenKind.COLON||kind===TokenKind.EQUALS||kind===TokenKind.AT||kind===TokenKind.BRACKET_L||kind===TokenKind.BRACKET_R||kind===TokenKind.BRACE_L||kind===TokenKind.PIPE||kind===TokenKind.BRACE_R}function printCharCode(code){return isNaN(code)?TokenKind.EOF:code<127?JSON.stringify(String.fromCharCode(code)):'"\\u'.concat(("00"+code.toString(16).toUpperCase()).slice(-4),'"')}function readToken(lexer,prev){for(var source=lexer.source,body=source.body,bodyLength=body.length,pos=prev.end;pos<bodyLength;){var code=body.charCodeAt(pos),_line=lexer.line,_col=1+pos-lexer.lineStart;switch(code){case 65279:case 9:case 32:case 44:++pos;continue;case 10:++pos,++lexer.line,lexer.lineStart=pos;continue;case 13:body.charCodeAt(pos+1)===10?pos+=2:++pos,++lexer.line,lexer.lineStart=pos;continue;case 33:return new Token(TokenKind.BANG,pos,pos+1,_line,_col,prev);case 35:return readComment(source,pos,_line,_col,prev);case 36:return new Token(TokenKind.DOLLAR,pos,pos+1,_line,_col,prev);case 38:return new Token(TokenKind.AMP,pos,pos+1,_line,_col,prev);case 40:return new Token(TokenKind.PAREN_L,pos,pos+1,_line,_col,prev);case 41:return new Token(TokenKind.PAREN_R,pos,pos+1,_line,_col,prev);case 46:if(body.charCodeAt(pos+1)===46&&body.charCodeAt(pos+2)===46)return new Token(TokenKind.SPREAD,pos,pos+3,_line,_col,prev);break;case 58:return new Token(TokenKind.COLON,pos,pos+1,_line,_col,prev);case 61:return new Token(TokenKind.EQUALS,pos,pos+1,_line,_col,prev);case 64:return new Token(TokenKind.AT,pos,pos+1,_line,_col,prev);case 91:return new Token(TokenKind.BRACKET_L,pos,pos+1,_line,_col,prev);case 93:return new Token(TokenKind.BRACKET_R,pos,pos+1,_line,_col,prev);case 123:return new Token(TokenKind.BRACE_L,pos,pos+1,_line,_col,prev);case 124:return new Token(TokenKind.PIPE,pos,pos+1,_line,_col,prev);case 125:return new Token(TokenKind.BRACE_R,pos,pos+1,_line,_col,prev);case 34:return body.charCodeAt(pos+1)===34&&body.charCodeAt(pos+2)===34?readBlockString(source,pos,_line,_col,prev,lexer):readString(source,pos,_line,_col,prev);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return readNumber(source,pos,code,_line,_col,prev);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return readName(source,pos,_line,_col,prev)}throw syntaxError(source,pos,unexpectedCharacterMessage(code))}var line=lexer.line,col=1+pos-lexer.lineStart;return new Token(TokenKind.EOF,bodyLength,bodyLength,line,col,prev)}function unexpectedCharacterMessage(code){return code<32&&code!==9&&code!==10&&code!==13?"Cannot contain the invalid character ".concat(printCharCode(code),"."):code===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:"Cannot parse the unexpected character ".concat(printCharCode(code),".")}function readComment(source,start,line,col,prev){var body=source.body,code,position=start;do code=body.charCodeAt(++position);while(!isNaN(code)&&(code>31||code===9));return new Token(TokenKind.COMMENT,start,position,line,col,prev,body.slice(start+1,position))}function readNumber(source,start,firstCode,line,col,prev){var body=source.body,code=firstCode,position=start,isFloat=!1;if(code===45&&(code=body.charCodeAt(++position)),code===48){if(code=body.charCodeAt(++position),code>=48&&code<=57)throw syntaxError(source,position,"Invalid number, unexpected digit after 0: ".concat(printCharCode(code),"."))}else position=readDigits(source,position,code),code=body.charCodeAt(position);if(code===46&&(isFloat=!0,code=body.charCodeAt(++position),position=readDigits(source,position,code),code=body.charCodeAt(position)),(code===69||code===101)&&(isFloat=!0,code=body.charCodeAt(++position),(code===43||code===45)&&(code=body.charCodeAt(++position)),position=readDigits(source,position,code),code=body.charCodeAt(position)),code===46||isNameStart(code))throw syntaxError(source,position,"Invalid number, expected digit but got: ".concat(printCharCode(code),"."));return new Token(isFloat?TokenKind.FLOAT:TokenKind.INT,start,position,line,col,prev,body.slice(start,position))}function readDigits(source,start,firstCode){var body=source.body,position=start,code=firstCode;if(code>=48&&code<=57){do code=body.charCodeAt(++position);while(code>=48&&code<=57);return position}throw syntaxError(source,position,"Invalid number, expected digit but got: ".concat(printCharCode(code),"."))}function readString(source,start,line,col,prev){for(var body=source.body,position=start+1,chunkStart=position,code=0,value="";position<body.length&&!isNaN(code=body.charCodeAt(position))&&code!==10&&code!==13;){if(code===34)return value+=body.slice(chunkStart,position),new Token(TokenKind.STRING,start,position+1,line,col,prev,value);if(code<32&&code!==9)throw syntaxError(source,position,"Invalid character within String: ".concat(printCharCode(code),"."));if(++position,code===92){switch(value+=body.slice(chunkStart,position-1),code=body.charCodeAt(position),code){case 34:value+='"';break;case 47:value+="/";break;case 92:value+="\\";break;case 98:value+="\b";break;case 102:value+="\f";break;case 110:value+=`
|
88
|
-
`;break;case 114:value+="\r";break;case 116:value+=" ";break;case 117:{var charCode=uniCharCode(body.charCodeAt(position+1),body.charCodeAt(position+2),body.charCodeAt(position+3),body.charCodeAt(position+4));if(charCode<0){var invalidSequence=body.slice(position+1,position+5);throw syntaxError(source,position,"Invalid character escape sequence: \\u".concat(invalidSequence,"."))}value+=String.fromCharCode(charCode),position+=4;break}default:throw syntaxError(source,position,"Invalid character escape sequence: \\".concat(String.fromCharCode(code),"."))}++position,chunkStart=position}}throw syntaxError(source,position,"Unterminated string.")}function readBlockString(source,start,line,col,prev,lexer){for(var body=source.body,position=start+3,chunkStart=position,code=0,rawValue="";position<body.length&&!isNaN(code=body.charCodeAt(position));){if(code===34&&body.charCodeAt(position+1)===34&&body.charCodeAt(position+2)===34)return rawValue+=body.slice(chunkStart,position),new Token(TokenKind.BLOCK_STRING,start,position+3,line,col,prev,dedentBlockStringValue(rawValue));if(code<32&&code!==9&&code!==10&&code!==13)throw syntaxError(source,position,"Invalid character within String: ".concat(printCharCode(code),"."));code===10?(++position,++lexer.line,lexer.lineStart=position):code===13?(body.charCodeAt(position+1)===10?position+=2:++position,++lexer.line,lexer.lineStart=position):code===92&&body.charCodeAt(position+1)===34&&body.charCodeAt(position+2)===34&&body.charCodeAt(position+3)===34?(rawValue+=body.slice(chunkStart,position)+'"""',position+=4,chunkStart=position):++position}throw syntaxError(source,position,"Unterminated string.")}function uniCharCode(a,b,c,d){return char2hex(a)<<12|char2hex(b)<<8|char2hex(c)<<4|char2hex(d)}function char2hex(a){return a>=48&&a<=57?a-48:a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:-1}function readName(source,start,line,col,prev){for(var body=source.body,bodyLength=body.length,position=start+1,code=0;position!==bodyLength&&!isNaN(code=body.charCodeAt(position))&&(code===95||code>=48&&code<=57||code>=65&&code<=90||code>=97&&code<=122);)++position;return new Token(TokenKind.NAME,start,position,line,col,prev,body.slice(start,position))}function isNameStart(code){return code===95||code>=65&&code<=90||code>=97&&code<=122}function parse(source,options){var parser=new Parser(source,options);return parser.parseDocument()}function parseValue(source,options){var parser=new Parser(source,options);parser.expectToken(TokenKind.SOF);var value=parser.parseValueLiteral(!1);return parser.expectToken(TokenKind.EOF),value}function parseType(source,options){var parser=new Parser(source,options);parser.expectToken(TokenKind.SOF);var type=parser.parseTypeReference();return parser.expectToken(TokenKind.EOF),type}var Parser=function(){function Parser2(source,options){var sourceObj=isSource(source)?source:new Source(source);this._lexer=new Lexer(sourceObj),this._options=options}var _proto=Parser2.prototype;return _proto.parseName=function(){var token=this.expectToken(TokenKind.NAME);return{kind:Kind.NAME,value:token.value,loc:this.loc(token)}},_proto.parseDocument=function(){var start=this._lexer.token;return{kind:Kind.DOCUMENT,definitions:this.many(TokenKind.SOF,this.parseDefinition,TokenKind.EOF),loc:this.loc(start)}},_proto.parseDefinition=function(){if(this.peek(TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},_proto.parseOperationDefinition=function(){var start=this._lexer.token;if(this.peek(TokenKind.BRACE_L))return{kind:Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(start)};var operation=this.parseOperationType(),name;return this.peek(TokenKind.NAME)&&(name=this.parseName()),{kind:Kind.OPERATION_DEFINITION,operation,name,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(start)}},_proto.parseOperationType=function(){var operationToken=this.expectToken(TokenKind.NAME);switch(operationToken.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(operationToken)},_proto.parseVariableDefinitions=function(){return this.optionalMany(TokenKind.PAREN_L,this.parseVariableDefinition,TokenKind.PAREN_R)},_proto.parseVariableDefinition=function(){var start=this._lexer.token;return{kind:Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(start)}},_proto.parseVariable=function(){var start=this._lexer.token;return this.expectToken(TokenKind.DOLLAR),{kind:Kind.VARIABLE,name:this.parseName(),loc:this.loc(start)}},_proto.parseSelectionSet=function(){var start=this._lexer.token;return{kind:Kind.SELECTION_SET,selections:this.many(TokenKind.BRACE_L,this.parseSelection,TokenKind.BRACE_R),loc:this.loc(start)}},_proto.parseSelection=function(){return this.peek(TokenKind.SPREAD)?this.parseFragment():this.parseField()},_proto.parseField=function(){var start=this._lexer.token,nameOrAlias=this.parseName(),alias,name;return this.expectOptionalToken(TokenKind.COLON)?(alias=nameOrAlias,name=this.parseName()):name=nameOrAlias,{kind:Kind.FIELD,alias,name,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(start)}},_proto.parseArguments=function(isConst){var item=isConst?this.parseConstArgument:this.parseArgument;return this.optionalMany(TokenKind.PAREN_L,item,TokenKind.PAREN_R)},_proto.parseArgument=function(){var start=this._lexer.token,name=this.parseName();return this.expectToken(TokenKind.COLON),{kind:Kind.ARGUMENT,name,value:this.parseValueLiteral(!1),loc:this.loc(start)}},_proto.parseConstArgument=function(){var start=this._lexer.token;return{kind:Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(start)}},_proto.parseFragment=function(){var start=this._lexer.token;this.expectToken(TokenKind.SPREAD);var hasTypeCondition=this.expectOptionalKeyword("on");return!hasTypeCondition&&this.peek(TokenKind.NAME)?{kind:Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(start)}:{kind:Kind.INLINE_FRAGMENT,typeCondition:hasTypeCondition?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(start)}},_proto.parseFragmentDefinition=function(){var _this$_options,start=this._lexer.token;return this.expectKeyword("fragment"),((_this$_options=this._options)===null||_this$_options===void 0?void 0:_this$_options.experimentalFragmentVariables)===!0?{kind:Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(start)}:{kind:Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(start)}},_proto.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},_proto.parseValueLiteral=function(isConst){var token=this._lexer.token;switch(token.kind){case TokenKind.BRACKET_L:return this.parseList(isConst);case TokenKind.BRACE_L:return this.parseObject(isConst);case TokenKind.INT:return this._lexer.advance(),{kind:Kind.INT,value:token.value,loc:this.loc(token)};case TokenKind.FLOAT:return this._lexer.advance(),{kind:Kind.FLOAT,value:token.value,loc:this.loc(token)};case TokenKind.STRING:case TokenKind.BLOCK_STRING:return this.parseStringLiteral();case TokenKind.NAME:switch(this._lexer.advance(),token.value){case"true":return{kind:Kind.BOOLEAN,value:!0,loc:this.loc(token)};case"false":return{kind:Kind.BOOLEAN,value:!1,loc:this.loc(token)};case"null":return{kind:Kind.NULL,loc:this.loc(token)};default:return{kind:Kind.ENUM,value:token.value,loc:this.loc(token)}}case TokenKind.DOLLAR:if(!isConst)return this.parseVariable();break}throw this.unexpected()},_proto.parseStringLiteral=function(){var token=this._lexer.token;return this._lexer.advance(),{kind:Kind.STRING,value:token.value,block:token.kind===TokenKind.BLOCK_STRING,loc:this.loc(token)}},_proto.parseList=function(isConst){var _this=this,start=this._lexer.token,item=function(){return _this.parseValueLiteral(isConst)};return{kind:Kind.LIST,values:this.any(TokenKind.BRACKET_L,item,TokenKind.BRACKET_R),loc:this.loc(start)}},_proto.parseObject=function(isConst){var _this2=this,start=this._lexer.token,item=function(){return _this2.parseObjectField(isConst)};return{kind:Kind.OBJECT,fields:this.any(TokenKind.BRACE_L,item,TokenKind.BRACE_R),loc:this.loc(start)}},_proto.parseObjectField=function(isConst){var start=this._lexer.token,name=this.parseName();return this.expectToken(TokenKind.COLON),{kind:Kind.OBJECT_FIELD,name,value:this.parseValueLiteral(isConst),loc:this.loc(start)}},_proto.parseDirectives=function(isConst){for(var directives=[];this.peek(TokenKind.AT);)directives.push(this.parseDirective(isConst));return directives},_proto.parseDirective=function(isConst){var start=this._lexer.token;return this.expectToken(TokenKind.AT),{kind:Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(isConst),loc:this.loc(start)}},_proto.parseTypeReference=function(){var start=this._lexer.token,type;return this.expectOptionalToken(TokenKind.BRACKET_L)?(type=this.parseTypeReference(),this.expectToken(TokenKind.BRACKET_R),type={kind:Kind.LIST_TYPE,type,loc:this.loc(start)}):type=this.parseNamedType(),this.expectOptionalToken(TokenKind.BANG)?{kind:Kind.NON_NULL_TYPE,type,loc:this.loc(start)}:type},_proto.parseNamedType=function(){var start=this._lexer.token;return{kind:Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(start)}},_proto.parseTypeSystemDefinition=function(){var keywordToken=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(keywordToken.kind===TokenKind.NAME)switch(keywordToken.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(keywordToken)},_proto.peekDescription=function(){return this.peek(TokenKind.STRING)||this.peek(TokenKind.BLOCK_STRING)},_proto.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},_proto.parseSchemaDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("schema");var directives=this.parseDirectives(!0),operationTypes=this.many(TokenKind.BRACE_L,this.parseOperationTypeDefinition,TokenKind.BRACE_R);return{kind:Kind.SCHEMA_DEFINITION,description,directives,operationTypes,loc:this.loc(start)}},_proto.parseOperationTypeDefinition=function(){var start=this._lexer.token,operation=this.parseOperationType();this.expectToken(TokenKind.COLON);var type=this.parseNamedType();return{kind:Kind.OPERATION_TYPE_DEFINITION,operation,type,loc:this.loc(start)}},_proto.parseScalarTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("scalar");var name=this.parseName(),directives=this.parseDirectives(!0);return{kind:Kind.SCALAR_TYPE_DEFINITION,description,name,directives,loc:this.loc(start)}},_proto.parseObjectTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("type");var name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseDirectives(!0),fields=this.parseFieldsDefinition();return{kind:Kind.OBJECT_TYPE_DEFINITION,description,name,interfaces,directives,fields,loc:this.loc(start)}},_proto.parseImplementsInterfaces=function(){var _this$_options2;if(!this.expectOptionalKeyword("implements"))return[];if(((_this$_options2=this._options)===null||_this$_options2===void 0?void 0:_this$_options2.allowLegacySDLImplementsInterfaces)===!0){var types=[];this.expectOptionalToken(TokenKind.AMP);do types.push(this.parseNamedType());while(this.expectOptionalToken(TokenKind.AMP)||this.peek(TokenKind.NAME));return types}return this.delimitedMany(TokenKind.AMP,this.parseNamedType)},_proto.parseFieldsDefinition=function(){var _this$_options3;return((_this$_options3=this._options)===null||_this$_options3===void 0?void 0:_this$_options3.allowLegacySDLEmptyFields)===!0&&this.peek(TokenKind.BRACE_L)&&this._lexer.lookahead().kind===TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(TokenKind.BRACE_L,this.parseFieldDefinition,TokenKind.BRACE_R)},_proto.parseFieldDefinition=function(){var start=this._lexer.token,description=this.parseDescription(),name=this.parseName(),args=this.parseArgumentDefs();this.expectToken(TokenKind.COLON);var type=this.parseTypeReference(),directives=this.parseDirectives(!0);return{kind:Kind.FIELD_DEFINITION,description,name,arguments:args,type,directives,loc:this.loc(start)}},_proto.parseArgumentDefs=function(){return this.optionalMany(TokenKind.PAREN_L,this.parseInputValueDef,TokenKind.PAREN_R)},_proto.parseInputValueDef=function(){var start=this._lexer.token,description=this.parseDescription(),name=this.parseName();this.expectToken(TokenKind.COLON);var type=this.parseTypeReference(),defaultValue;this.expectOptionalToken(TokenKind.EQUALS)&&(defaultValue=this.parseValueLiteral(!0));var directives=this.parseDirectives(!0);return{kind:Kind.INPUT_VALUE_DEFINITION,description,name,type,defaultValue,directives,loc:this.loc(start)}},_proto.parseInterfaceTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("interface");var name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseDirectives(!0),fields=this.parseFieldsDefinition();return{kind:Kind.INTERFACE_TYPE_DEFINITION,description,name,interfaces,directives,fields,loc:this.loc(start)}},_proto.parseUnionTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("union");var name=this.parseName(),directives=this.parseDirectives(!0),types=this.parseUnionMemberTypes();return{kind:Kind.UNION_TYPE_DEFINITION,description,name,directives,types,loc:this.loc(start)}},_proto.parseUnionMemberTypes=function(){return this.expectOptionalToken(TokenKind.EQUALS)?this.delimitedMany(TokenKind.PIPE,this.parseNamedType):[]},_proto.parseEnumTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("enum");var name=this.parseName(),directives=this.parseDirectives(!0),values=this.parseEnumValuesDefinition();return{kind:Kind.ENUM_TYPE_DEFINITION,description,name,directives,values,loc:this.loc(start)}},_proto.parseEnumValuesDefinition=function(){return this.optionalMany(TokenKind.BRACE_L,this.parseEnumValueDefinition,TokenKind.BRACE_R)},_proto.parseEnumValueDefinition=function(){var start=this._lexer.token,description=this.parseDescription(),name=this.parseName(),directives=this.parseDirectives(!0);return{kind:Kind.ENUM_VALUE_DEFINITION,description,name,directives,loc:this.loc(start)}},_proto.parseInputObjectTypeDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("input");var name=this.parseName(),directives=this.parseDirectives(!0),fields=this.parseInputFieldsDefinition();return{kind:Kind.INPUT_OBJECT_TYPE_DEFINITION,description,name,directives,fields,loc:this.loc(start)}},_proto.parseInputFieldsDefinition=function(){return this.optionalMany(TokenKind.BRACE_L,this.parseInputValueDef,TokenKind.BRACE_R)},_proto.parseTypeSystemExtension=function(){var keywordToken=this._lexer.lookahead();if(keywordToken.kind===TokenKind.NAME)switch(keywordToken.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(keywordToken)},_proto.parseSchemaExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var directives=this.parseDirectives(!0),operationTypes=this.optionalMany(TokenKind.BRACE_L,this.parseOperationTypeDefinition,TokenKind.BRACE_R);if(directives.length===0&&operationTypes.length===0)throw this.unexpected();return{kind:Kind.SCHEMA_EXTENSION,directives,operationTypes,loc:this.loc(start)}},_proto.parseScalarTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var name=this.parseName(),directives=this.parseDirectives(!0);if(directives.length===0)throw this.unexpected();return{kind:Kind.SCALAR_TYPE_EXTENSION,name,directives,loc:this.loc(start)}},_proto.parseObjectTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseDirectives(!0),fields=this.parseFieldsDefinition();if(interfaces.length===0&&directives.length===0&&fields.length===0)throw this.unexpected();return{kind:Kind.OBJECT_TYPE_EXTENSION,name,interfaces,directives,fields,loc:this.loc(start)}},_proto.parseInterfaceTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseDirectives(!0),fields=this.parseFieldsDefinition();if(interfaces.length===0&&directives.length===0&&fields.length===0)throw this.unexpected();return{kind:Kind.INTERFACE_TYPE_EXTENSION,name,interfaces,directives,fields,loc:this.loc(start)}},_proto.parseUnionTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var name=this.parseName(),directives=this.parseDirectives(!0),types=this.parseUnionMemberTypes();if(directives.length===0&&types.length===0)throw this.unexpected();return{kind:Kind.UNION_TYPE_EXTENSION,name,directives,types,loc:this.loc(start)}},_proto.parseEnumTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var name=this.parseName(),directives=this.parseDirectives(!0),values=this.parseEnumValuesDefinition();if(directives.length===0&&values.length===0)throw this.unexpected();return{kind:Kind.ENUM_TYPE_EXTENSION,name,directives,values,loc:this.loc(start)}},_proto.parseInputObjectTypeExtension=function(){var start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var name=this.parseName(),directives=this.parseDirectives(!0),fields=this.parseInputFieldsDefinition();if(directives.length===0&&fields.length===0)throw this.unexpected();return{kind:Kind.INPUT_OBJECT_TYPE_EXTENSION,name,directives,fields,loc:this.loc(start)}},_proto.parseDirectiveDefinition=function(){var start=this._lexer.token,description=this.parseDescription();this.expectKeyword("directive"),this.expectToken(TokenKind.AT);var name=this.parseName(),args=this.parseArgumentDefs(),repeatable=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var locations=this.parseDirectiveLocations();return{kind:Kind.DIRECTIVE_DEFINITION,description,name,arguments:args,repeatable,locations,loc:this.loc(start)}},_proto.parseDirectiveLocations=function(){return this.delimitedMany(TokenKind.PIPE,this.parseDirectiveLocation)},_proto.parseDirectiveLocation=function(){var start=this._lexer.token,name=this.parseName();if(DirectiveLocation[name.value]!==void 0)return name;throw this.unexpected(start)},_proto.loc=function(startToken){var _this$_options4;if(((_this$_options4=this._options)===null||_this$_options4===void 0?void 0:_this$_options4.noLocation)!==!0)return new Location(startToken,this._lexer.lastToken,this._lexer.source)},_proto.peek=function(kind){return this._lexer.token.kind===kind},_proto.expectToken=function(kind){var token=this._lexer.token;if(token.kind===kind)return this._lexer.advance(),token;throw syntaxError(this._lexer.source,token.start,"Expected ".concat(getTokenKindDesc(kind),", found ").concat(getTokenDesc(token),"."))},_proto.expectOptionalToken=function(kind){var token=this._lexer.token;if(token.kind===kind)return this._lexer.advance(),token},_proto.expectKeyword=function(value){var token=this._lexer.token;if(token.kind===TokenKind.NAME&&token.value===value)this._lexer.advance();else throw syntaxError(this._lexer.source,token.start,'Expected "'.concat(value,'", found ').concat(getTokenDesc(token),"."))},_proto.expectOptionalKeyword=function(value){var token=this._lexer.token;return token.kind===TokenKind.NAME&&token.value===value?(this._lexer.advance(),!0):!1},_proto.unexpected=function(atToken){var token=atToken??this._lexer.token;return syntaxError(this._lexer.source,token.start,"Unexpected ".concat(getTokenDesc(token),"."))},_proto.any=function(openKind,parseFn,closeKind){this.expectToken(openKind);for(var nodes=[];!this.expectOptionalToken(closeKind);)nodes.push(parseFn.call(this));return nodes},_proto.optionalMany=function(openKind,parseFn,closeKind){if(this.expectOptionalToken(openKind)){var nodes=[];do nodes.push(parseFn.call(this));while(!this.expectOptionalToken(closeKind));return nodes}return[]},_proto.many=function(openKind,parseFn,closeKind){this.expectToken(openKind);var nodes=[];do nodes.push(parseFn.call(this));while(!this.expectOptionalToken(closeKind));return nodes},_proto.delimitedMany=function(delimiterKind,parseFn){this.expectOptionalToken(delimiterKind);var nodes=[];do nodes.push(parseFn.call(this));while(this.expectOptionalToken(delimiterKind));return nodes},Parser2}();function getTokenDesc(token){var value=token.value;return getTokenKindDesc(token.kind)+(value!=null?' "'.concat(value,'"'):"")}function getTokenKindDesc(kind){return isPunctuatorTokenKind(kind)?'"'.concat(kind,'"'):kind}var QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},BREAK=Object.freeze({});function visit(root,visitor){var visitorKeys=arguments.length>2&&arguments[2]!==void 0?arguments[2]:QueryDocumentKeys,stack=void 0,inArray=Array.isArray(root),keys=[root],index=-1,edits=[],node=void 0,key=void 0,parent=void 0,path=[],ancestors=[],newRoot=root;do{index++;var isLeaving=index===keys.length,isEdited=isLeaving&&edits.length!==0;if(isLeaving){if(key=ancestors.length===0?void 0:path[path.length-1],node=parent,parent=ancestors.pop(),isEdited){if(inArray)node=node.slice();else{for(var clone={},_i2=0,_Object$keys2=Object.keys(node);_i2<_Object$keys2.length;_i2++){var k=_Object$keys2[_i2];clone[k]=node[k]}node=clone}for(var editOffset=0,ii=0;ii<edits.length;ii++){var editKey=edits[ii][0],editValue=edits[ii][1];inArray&&(editKey-=editOffset),inArray&&editValue===null?(node.splice(editKey,1),editOffset++):node[editKey]=editValue}}index=stack.index,keys=stack.keys,edits=stack.edits,inArray=stack.inArray,stack=stack.prev}else{if(key=parent?inArray?index:keys[index]:void 0,node=parent?parent[key]:newRoot,node==null)continue;parent&&path.push(key)}var result=void 0;if(!Array.isArray(node)){if(!isNode(node))throw new Error("Invalid AST Node: ".concat(inspect(node),"."));var visitFn=getVisitFn(visitor,node.kind,isLeaving);if(visitFn){if(result=visitFn.call(visitor,node,key,parent,path,ancestors),result===BREAK)break;if(result===!1){if(!isLeaving){path.pop();continue}}else if(result!==void 0&&(edits.push([key,result]),!isLeaving))if(isNode(result))node=result;else{path.pop();continue}}}if(result===void 0&&isEdited&&edits.push([key,node]),isLeaving)path.pop();else{var _visitorKeys$node$kin;stack={inArray,index,keys,edits,prev:stack},inArray=Array.isArray(node),keys=inArray?node:(_visitorKeys$node$kin=visitorKeys[node.kind])!==null&&_visitorKeys$node$kin!==void 0?_visitorKeys$node$kin:[],index=-1,edits=[],parent&&ancestors.push(parent),parent=node}}while(stack!==void 0);return edits.length!==0&&(newRoot=edits[edits.length-1][1]),newRoot}function visitInParallel(visitors){var skipping=new Array(visitors.length);return{enter:function(node){for(var i=0;i<visitors.length;i++)if(skipping[i]==null){var fn=getVisitFn(visitors[i],node.kind,!1);if(fn){var result=fn.apply(visitors[i],arguments);if(result===!1)skipping[i]=node;else if(result===BREAK)skipping[i]=BREAK;else if(result!==void 0)return result}}},leave:function(node){for(var i=0;i<visitors.length;i++)if(skipping[i]==null){var fn=getVisitFn(visitors[i],node.kind,!0);if(fn){var result=fn.apply(visitors[i],arguments);if(result===BREAK)skipping[i]=BREAK;else if(result!==void 0&&result!==!1)return result}}else skipping[i]===node&&(skipping[i]=null)}}}function getVisitFn(visitor,kind,isLeaving){var kindVisitor=visitor[kind];if(kindVisitor){if(!isLeaving&&typeof kindVisitor=="function")return kindVisitor;var kindSpecificVisitor=isLeaving?kindVisitor.leave:kindVisitor.enter;if(typeof kindSpecificVisitor=="function")return kindSpecificVisitor}else{var specificVisitor=isLeaving?visitor.leave:visitor.enter;if(specificVisitor){if(typeof specificVisitor=="function")return specificVisitor;var specificKindVisitor=specificVisitor[kind];if(typeof specificKindVisitor=="function")return specificKindVisitor}}}var find=Array.prototype.find?function(list,predicate){return Array.prototype.find.call(list,predicate)}:function(list,predicate){for(var _i2=0;_i2<list.length;_i2++){var value=list[_i2];if(predicate(value))return value}};const polyfills_find=find;var objectValues=Object.values||function(obj){return Object.keys(obj).map(function(key){return obj[key]})};const polyfills_objectValues=objectValues;function locatedError(rawOriginalError,nodes,path){var _nodes,originalError=rawOriginalError instanceof Error?rawOriginalError:new Error("Unexpected error value: "+inspect(rawOriginalError));return Array.isArray(originalError.path)?originalError:new GraphQLError(originalError.message,(_nodes=originalError.nodes)!==null&&_nodes!==void 0?_nodes:nodes,originalError.source,originalError.positions,path,originalError)}var NAME_RX=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function assertValidName(name){var error=isValidNameError(name);if(error)throw error;return name}function isValidNameError(name){if(typeof name=="string"||devAssert(0,"Expected name to be a string."),name.length>1&&name[0]==="_"&&name[1]==="_")return new GraphQLError('Name "'.concat(name,'" must not begin with "__", which is reserved by GraphQL introspection.'));if(!NAME_RX.test(name))return new GraphQLError('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(name,'" does not.'))}var objectEntries=Object.entries||function(obj){return Object.keys(obj).map(function(key){return[key,obj[key]]})};const polyfills_objectEntries=objectEntries;function keyMap(list,keyFn){return list.reduce(function(map,item){return map[keyFn(item)]=item,map},Object.create(null))}function mapValue(map,fn){for(var result=Object.create(null),_i2=0,_objectEntries2=polyfills_objectEntries(map);_i2<_objectEntries2.length;_i2++){var _ref2=_objectEntries2[_i2],_key=_ref2[0],_value=_ref2[1];result[_key]=fn(_value,_key)}return result}function toObjMap(obj){if(Object.getPrototypeOf(obj)===null)return obj;for(var map=Object.create(null),_i2=0,_objectEntries2=polyfills_objectEntries(obj);_i2<_objectEntries2.length;_i2++){var _ref2=_objectEntries2[_i2],key=_ref2[0],value=_ref2[1];map[key]=value}return map}function keyValMap(list,keyFn,valFn){return list.reduce(function(map,item){return map[keyFn(item)]=valFn(item),map},Object.create(null))}var MAX_SUGGESTIONS=5;function didYouMean(firstArg,secondArg){var _ref=typeof firstArg=="string"?[firstArg,secondArg]:[void 0,firstArg],subMessage=_ref[0],suggestionsArg=_ref[1],message=" Did you mean ";subMessage&&(message+=subMessage+" ");var suggestions=suggestionsArg.map(function(x){return'"'.concat(x,'"')});switch(suggestions.length){case 0:return"";case 1:return message+suggestions[0]+"?";case 2:return message+suggestions[0]+" or "+suggestions[1]+"?"}var selected=suggestions.slice(0,MAX_SUGGESTIONS),lastItem=selected.pop();return message+selected.join(", ")+", or "+lastItem+"?"}function identityFunc(x){return x}function naturalCompare(aStr,bStr){for(var aIdx=0,bIdx=0;aIdx<aStr.length&&bIdx<bStr.length;){var aChar=aStr.charCodeAt(aIdx),bChar=bStr.charCodeAt(bIdx);if(isDigit(aChar)&&isDigit(bChar)){var aNum=0;do++aIdx,aNum=aNum*10+aChar-DIGIT_0,aChar=aStr.charCodeAt(aIdx);while(isDigit(aChar)&&aNum>0);var bNum=0;do++bIdx,bNum=bNum*10+bChar-DIGIT_0,bChar=bStr.charCodeAt(bIdx);while(isDigit(bChar)&&bNum>0);if(aNum<bNum)return-1;if(aNum>bNum)return 1}else{if(aChar<bChar)return-1;if(aChar>bChar)return 1;++aIdx,++bIdx}}return aStr.length-bStr.length}var DIGIT_0=48,DIGIT_9=57;function isDigit(code){return!isNaN(code)&&DIGIT_0<=code&&code<=DIGIT_9}function suggestionList(input,options){for(var optionsByDistance=Object.create(null),lexicalDistance=new LexicalDistance(input),threshold=Math.floor(input.length*.4)+1,_i2=0;_i2<options.length;_i2++){var option=options[_i2],distance=lexicalDistance.measure(option,threshold);distance!==void 0&&(optionsByDistance[option]=distance)}return Object.keys(optionsByDistance).sort(function(a,b){var distanceDiff=optionsByDistance[a]-optionsByDistance[b];return distanceDiff!==0?distanceDiff:naturalCompare(a,b)})}var LexicalDistance=function(){function LexicalDistance2(input){this._input=input,this._inputLowerCase=input.toLowerCase(),this._inputArray=stringToArray(this._inputLowerCase),this._rows=[new Array(input.length+1).fill(0),new Array(input.length+1).fill(0),new Array(input.length+1).fill(0)]}var _proto=LexicalDistance2.prototype;return _proto.measure=function(option,threshold){if(this._input===option)return 0;var optionLowerCase=option.toLowerCase();if(this._inputLowerCase===optionLowerCase)return 1;var a=stringToArray(optionLowerCase),b=this._inputArray;if(a.length<b.length){var tmp=a;a=b,b=tmp}var aLength=a.length,bLength=b.length;if(!(aLength-bLength>threshold)){for(var rows=this._rows,j=0;j<=bLength;j++)rows[0][j]=j;for(var i=1;i<=aLength;i++){for(var upRow=rows[(i-1)%3],currentRow=rows[i%3],smallestCell=currentRow[0]=i,_j=1;_j<=bLength;_j++){var cost=a[i-1]===b[_j-1]?0:1,currentCell=Math.min(upRow[_j]+1,currentRow[_j-1]+1,upRow[_j-1]+cost);if(i>1&&_j>1&&a[i-1]===b[_j-2]&&a[i-2]===b[_j-1]){var doubleDiagonalCell=rows[(i-2)%3][_j-2];currentCell=Math.min(currentCell,doubleDiagonalCell+1)}currentCell<smallestCell&&(smallestCell=currentCell),currentRow[_j]=currentCell}if(smallestCell>threshold)return}var distance=rows[aLength%3][bLength];return distance<=threshold?distance:void 0}},LexicalDistance2}();function stringToArray(str){for(var strLength=str.length,array=new Array(strLength),i=0;i<strLength;++i)array[i]=str.charCodeAt(i);return array}function print(ast){return visit(ast,{leave:printDocASTReducer})}var MAX_LINE_LENGTH=80,printDocASTReducer={Name:function(node){return node.value},Variable:function(node){return"$"+node.name},Document:function(node){return join(node.definitions,`
|
89
|
-
|
90
|
-
`)+`
|
91
|
-
`},OperationDefinition:function(node){var op=node.operation,name=node.name,varDefs=wrap("(",join(node.variableDefinitions,", "),")"),directives=join(node.directives," "),selectionSet=node.selectionSet;return!name&&!directives&&!varDefs&&op==="query"?selectionSet:join([op,join([name,varDefs]),directives,selectionSet]," ")},VariableDefinition:function(_ref){var variable=_ref.variable,type=_ref.type,defaultValue=_ref.defaultValue,directives=_ref.directives;return variable+": "+type+wrap(" = ",defaultValue)+wrap(" ",join(directives," "))},SelectionSet:function(_ref2){var selections=_ref2.selections;return block(selections)},Field:function(_ref3){var alias=_ref3.alias,name=_ref3.name,args=_ref3.arguments,directives=_ref3.directives,selectionSet=_ref3.selectionSet,prefix=wrap("",alias,": ")+name,argsLine=prefix+wrap("(",join(args,", "),")");return argsLine.length>MAX_LINE_LENGTH&&(argsLine=prefix+wrap(`(
|
92
|
-
`,indent(join(args,`
|
93
|
-
`)),`
|
94
|
-
)`)),join([argsLine,join(directives," "),selectionSet]," ")},Argument:function(_ref4){var name=_ref4.name,value=_ref4.value;return name+": "+value},FragmentSpread:function(_ref5){var name=_ref5.name,directives=_ref5.directives;return"..."+name+wrap(" ",join(directives," "))},InlineFragment:function(_ref6){var typeCondition=_ref6.typeCondition,directives=_ref6.directives,selectionSet=_ref6.selectionSet;return join(["...",wrap("on ",typeCondition),join(directives," "),selectionSet]," ")},FragmentDefinition:function(_ref7){var name=_ref7.name,typeCondition=_ref7.typeCondition,variableDefinitions=_ref7.variableDefinitions,directives=_ref7.directives,selectionSet=_ref7.selectionSet;return"fragment ".concat(name).concat(wrap("(",join(variableDefinitions,", "),")")," ")+"on ".concat(typeCondition," ").concat(wrap("",join(directives," ")," "))+selectionSet},IntValue:function(_ref8){var value=_ref8.value;return value},FloatValue:function(_ref9){var value=_ref9.value;return value},StringValue:function(_ref10,key){var value=_ref10.value,isBlockString=_ref10.block;return isBlockString?printBlockString(value,key==="description"?"":" "):JSON.stringify(value)},BooleanValue:function(_ref11){var value=_ref11.value;return value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(_ref12){var value=_ref12.value;return value},ListValue:function(_ref13){var values=_ref13.values;return"["+join(values,", ")+"]"},ObjectValue:function(_ref14){var fields=_ref14.fields;return"{"+join(fields,", ")+"}"},ObjectField:function(_ref15){var name=_ref15.name,value=_ref15.value;return name+": "+value},Directive:function(_ref16){var name=_ref16.name,args=_ref16.arguments;return"@"+name+wrap("(",join(args,", "),")")},NamedType:function(_ref17){var name=_ref17.name;return name},ListType:function(_ref18){var type=_ref18.type;return"["+type+"]"},NonNullType:function(_ref19){var type=_ref19.type;return type+"!"},SchemaDefinition:addDescription(function(_ref20){var directives=_ref20.directives,operationTypes=_ref20.operationTypes;return join(["schema",join(directives," "),block(operationTypes)]," ")}),OperationTypeDefinition:function(_ref21){var operation=_ref21.operation,type=_ref21.type;return operation+": "+type},ScalarTypeDefinition:addDescription(function(_ref22){var name=_ref22.name,directives=_ref22.directives;return join(["scalar",name,join(directives," ")]," ")}),ObjectTypeDefinition:addDescription(function(_ref23){var name=_ref23.name,interfaces=_ref23.interfaces,directives=_ref23.directives,fields=_ref23.fields;return join(["type",name,wrap("implements ",join(interfaces," & ")),join(directives," "),block(fields)]," ")}),FieldDefinition:addDescription(function(_ref24){var name=_ref24.name,args=_ref24.arguments,type=_ref24.type,directives=_ref24.directives;return name+(hasMultilineItems(args)?wrap(`(
|
95
|
-
`,indent(join(args,`
|
96
|
-
`)),`
|
97
|
-
)`):wrap("(",join(args,", "),")"))+": "+type+wrap(" ",join(directives," "))}),InputValueDefinition:addDescription(function(_ref25){var name=_ref25.name,type=_ref25.type,defaultValue=_ref25.defaultValue,directives=_ref25.directives;return join([name+": "+type,wrap("= ",defaultValue),join(directives," ")]," ")}),InterfaceTypeDefinition:addDescription(function(_ref26){var name=_ref26.name,interfaces=_ref26.interfaces,directives=_ref26.directives,fields=_ref26.fields;return join(["interface",name,wrap("implements ",join(interfaces," & ")),join(directives," "),block(fields)]," ")}),UnionTypeDefinition:addDescription(function(_ref27){var name=_ref27.name,directives=_ref27.directives,types=_ref27.types;return join(["union",name,join(directives," "),types&&types.length!==0?"= "+join(types," | "):""]," ")}),EnumTypeDefinition:addDescription(function(_ref28){var name=_ref28.name,directives=_ref28.directives,values=_ref28.values;return join(["enum",name,join(directives," "),block(values)]," ")}),EnumValueDefinition:addDescription(function(_ref29){var name=_ref29.name,directives=_ref29.directives;return join([name,join(directives," ")]," ")}),InputObjectTypeDefinition:addDescription(function(_ref30){var name=_ref30.name,directives=_ref30.directives,fields=_ref30.fields;return join(["input",name,join(directives," "),block(fields)]," ")}),DirectiveDefinition:addDescription(function(_ref31){var name=_ref31.name,args=_ref31.arguments,repeatable=_ref31.repeatable,locations=_ref31.locations;return"directive @"+name+(hasMultilineItems(args)?wrap(`(
|
98
|
-
`,indent(join(args,`
|
99
|
-
`)),`
|
100
|
-
)`):wrap("(",join(args,", "),")"))+(repeatable?" repeatable":"")+" on "+join(locations," | ")}),SchemaExtension:function(_ref32){var directives=_ref32.directives,operationTypes=_ref32.operationTypes;return join(["extend schema",join(directives," "),block(operationTypes)]," ")},ScalarTypeExtension:function(_ref33){var name=_ref33.name,directives=_ref33.directives;return join(["extend scalar",name,join(directives," ")]," ")},ObjectTypeExtension:function(_ref34){var name=_ref34.name,interfaces=_ref34.interfaces,directives=_ref34.directives,fields=_ref34.fields;return join(["extend type",name,wrap("implements ",join(interfaces," & ")),join(directives," "),block(fields)]," ")},InterfaceTypeExtension:function(_ref35){var name=_ref35.name,interfaces=_ref35.interfaces,directives=_ref35.directives,fields=_ref35.fields;return join(["extend interface",name,wrap("implements ",join(interfaces," & ")),join(directives," "),block(fields)]," ")},UnionTypeExtension:function(_ref36){var name=_ref36.name,directives=_ref36.directives,types=_ref36.types;return join(["extend union",name,join(directives," "),types&&types.length!==0?"= "+join(types," | "):""]," ")},EnumTypeExtension:function(_ref37){var name=_ref37.name,directives=_ref37.directives,values=_ref37.values;return join(["extend enum",name,join(directives," "),block(values)]," ")},InputObjectTypeExtension:function(_ref38){var name=_ref38.name,directives=_ref38.directives,fields=_ref38.fields;return join(["extend input",name,join(directives," "),block(fields)]," ")}};function addDescription(cb){return function(node){return join([node.description,cb(node)],`
|
101
|
-
`)}}function join(maybeArray){var _maybeArray$filter$jo,separator=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(_maybeArray$filter$jo=maybeArray?.filter(function(x){return x}).join(separator))!==null&&_maybeArray$filter$jo!==void 0?_maybeArray$filter$jo:""}function block(array){return wrap(`{
|
102
|
-
`,indent(join(array,`
|
103
|
-
`)),`
|
104
|
-
}`)}function wrap(start,maybeString){var end=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return maybeString!=null&&maybeString!==""?start+maybeString+end:""}function indent(str){return wrap(" ",str.replace(/\n/g,`
|
105
|
-
`))}function isMultiline(str){return str.indexOf(`
|
106
|
-
`)!==-1}function hasMultilineItems(maybeArray){return maybeArray!=null&&maybeArray.some(isMultiline)}function valueFromASTUntyped(valueNode,variables){switch(valueNode.kind){case Kind.NULL:return null;case Kind.INT:return parseInt(valueNode.value,10);case Kind.FLOAT:return parseFloat(valueNode.value);case Kind.STRING:case Kind.ENUM:case Kind.BOOLEAN:return valueNode.value;case Kind.LIST:return valueNode.values.map(function(node){return valueFromASTUntyped(node,variables)});case Kind.OBJECT:return keyValMap(valueNode.fields,function(field){return field.name.value},function(field){return valueFromASTUntyped(field.value,variables)});case Kind.VARIABLE:return variables?.[valueNode.name.value]}invariant(0,"Unexpected value node: "+inspect(valueNode))}function definition_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function definition_createClass(Constructor,protoProps,staticProps){return protoProps&&definition_defineProperties(Constructor.prototype,protoProps),staticProps&&definition_defineProperties(Constructor,staticProps),Constructor}function isType(type){return isScalarType(type)||isObjectType(type)||isInterfaceType(type)||isUnionType(type)||isEnumType(type)||isInputObjectType(type)||isListType(type)||isNonNullType(type)}function assertType(type){if(!isType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL type."));return type}function isScalarType(type){return instanceOf(type,GraphQLScalarType)}function assertScalarType(type){if(!isScalarType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL Scalar type."));return type}function isObjectType(type){return instanceOf(type,GraphQLObjectType)}function assertObjectType(type){if(!isObjectType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL Object type."));return type}function isInterfaceType(type){return instanceOf(type,GraphQLInterfaceType)}function assertInterfaceType(type){if(!isInterfaceType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL Interface type."));return type}function isUnionType(type){return instanceOf(type,GraphQLUnionType)}function assertUnionType(type){if(!isUnionType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL Union type."));return type}function isEnumType(type){return instanceOf(type,GraphQLEnumType)}function assertEnumType(type){if(!isEnumType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL Enum type."));return type}function isInputObjectType(type){return instanceOf(type,GraphQLInputObjectType)}function assertInputObjectType(type){if(!isInputObjectType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL Input Object type."));return type}function isListType(type){return instanceOf(type,GraphQLList)}function assertListType(type){if(!isListType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL List type."));return type}function isNonNullType(type){return instanceOf(type,GraphQLNonNull)}function assertNonNullType(type){if(!isNonNullType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL Non-Null type."));return type}function isInputType(type){return isScalarType(type)||isEnumType(type)||isInputObjectType(type)||isWrappingType(type)&&isInputType(type.ofType)}function assertInputType(type){if(!isInputType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL input type."));return type}function isOutputType(type){return isScalarType(type)||isObjectType(type)||isInterfaceType(type)||isUnionType(type)||isEnumType(type)||isWrappingType(type)&&isOutputType(type.ofType)}function assertOutputType(type){if(!isOutputType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL output type."));return type}function isLeafType(type){return isScalarType(type)||isEnumType(type)}function assertLeafType(type){if(!isLeafType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL leaf type."));return type}function isCompositeType(type){return isObjectType(type)||isInterfaceType(type)||isUnionType(type)}function assertCompositeType(type){if(!isCompositeType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL composite type."));return type}function isAbstractType(type){return isInterfaceType(type)||isUnionType(type)}function assertAbstractType(type){if(!isAbstractType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL abstract type."));return type}function GraphQLList(ofType){if(this instanceof GraphQLList)this.ofType=assertType(ofType);else return new GraphQLList(ofType)}GraphQLList.prototype.toString=function(){return"["+String(this.ofType)+"]"},GraphQLList.prototype.toJSON=function(){return this.toString()},Object.defineProperty(GraphQLList.prototype,SYMBOL_TO_STRING_TAG,{get:function(){return"GraphQLList"}}),defineInspect(GraphQLList);function GraphQLNonNull(ofType){if(this instanceof GraphQLNonNull)this.ofType=assertNullableType(ofType);else return new GraphQLNonNull(ofType)}GraphQLNonNull.prototype.toString=function(){return String(this.ofType)+"!"},GraphQLNonNull.prototype.toJSON=function(){return this.toString()},Object.defineProperty(GraphQLNonNull.prototype,SYMBOL_TO_STRING_TAG,{get:function(){return"GraphQLNonNull"}}),defineInspect(GraphQLNonNull);function isWrappingType(type){return isListType(type)||isNonNullType(type)}function assertWrappingType(type){if(!isWrappingType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL wrapping type."));return type}function isNullableType(type){return isType(type)&&!isNonNullType(type)}function assertNullableType(type){if(!isNullableType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL nullable type."));return type}function getNullableType(type){if(type)return isNonNullType(type)?type.ofType:type}function isNamedType(type){return isScalarType(type)||isObjectType(type)||isInterfaceType(type)||isUnionType(type)||isEnumType(type)||isInputObjectType(type)}function assertNamedType(type){if(!isNamedType(type))throw new Error("Expected ".concat(inspect(type)," to be a GraphQL named type."));return type}function getNamedType(type){if(type){for(var unwrappedType=type;isWrappingType(unwrappedType);)unwrappedType=unwrappedType.ofType;return unwrappedType}}function resolveThunk(thunk){return typeof thunk=="function"?thunk():thunk}function undefineIfEmpty(arr){return arr&&arr.length>0?arr:void 0}var GraphQLScalarType=function(){function GraphQLScalarType2(config){var _config$parseValue,_config$serialize,_config$parseLiteral,parseValue2=(_config$parseValue=config.parseValue)!==null&&_config$parseValue!==void 0?_config$parseValue:identityFunc;this.name=config.name,this.description=config.description,this.specifiedByUrl=config.specifiedByUrl,this.serialize=(_config$serialize=config.serialize)!==null&&_config$serialize!==void 0?_config$serialize:identityFunc,this.parseValue=parseValue2,this.parseLiteral=(_config$parseLiteral=config.parseLiteral)!==null&&_config$parseLiteral!==void 0?_config$parseLiteral:function(node,variables){return parseValue2(valueFromASTUntyped(node,variables))},this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),typeof config.name=="string"||devAssert(0,"Must provide name."),config.specifiedByUrl==null||typeof config.specifiedByUrl=="string"||devAssert(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(inspect(config.specifiedByUrl),".")),config.serialize==null||typeof config.serialize=="function"||devAssert(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),config.parseLiteral&&(typeof config.parseValue=="function"&&typeof config.parseLiteral=="function"||devAssert(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var _proto=GraphQLScalarType2.prototype;return _proto.toConfig=function(){var _this$extensionASTNod;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod=this.extensionASTNodes)!==null&&_this$extensionASTNod!==void 0?_this$extensionASTNod:[]}},_proto.toString=function(){return this.name},_proto.toJSON=function(){return this.toString()},definition_createClass(GraphQLScalarType2,[{key:SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLScalarType"}}]),GraphQLScalarType2}();defineInspect(GraphQLScalarType);var GraphQLObjectType=function(){function GraphQLObjectType2(config){this.name=config.name,this.description=config.description,this.isTypeOf=config.isTypeOf,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),this._fields=defineFieldMap.bind(void 0,config),this._interfaces=defineInterfaces.bind(void 0,config),typeof config.name=="string"||devAssert(0,"Must provide name."),config.isTypeOf==null||typeof config.isTypeOf=="function"||devAssert(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(inspect(config.isTypeOf),"."))}var _proto2=GraphQLObjectType2.prototype;return _proto2.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},_proto2.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},_proto2.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},_proto2.toString=function(){return this.name},_proto2.toJSON=function(){return this.toString()},definition_createClass(GraphQLObjectType2,[{key:SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLObjectType"}}]),GraphQLObjectType2}();defineInspect(GraphQLObjectType);function defineInterfaces(config){var _resolveThunk,interfaces=(_resolveThunk=resolveThunk(config.interfaces))!==null&&_resolveThunk!==void 0?_resolveThunk:[];return Array.isArray(interfaces)||devAssert(0,"".concat(config.name," interfaces must be an Array or a function which returns an Array.")),interfaces}function defineFieldMap(config){var fieldMap=resolveThunk(config.fields);return isPlainObj(fieldMap)||devAssert(0,"".concat(config.name," fields must be an object with field names as keys or a function which returns such an object.")),mapValue(fieldMap,function(fieldConfig,fieldName){var _fieldConfig$args;isPlainObj(fieldConfig)||devAssert(0,"".concat(config.name,".").concat(fieldName," field config must be an object.")),!("isDeprecated"in fieldConfig)||devAssert(0,"".concat(config.name,".").concat(fieldName,' should provide "deprecationReason" instead of "isDeprecated".')),fieldConfig.resolve==null||typeof fieldConfig.resolve=="function"||devAssert(0,"".concat(config.name,".").concat(fieldName," field resolver must be a function if ")+"provided, but got: ".concat(inspect(fieldConfig.resolve),"."));var argsConfig=(_fieldConfig$args=fieldConfig.args)!==null&&_fieldConfig$args!==void 0?_fieldConfig$args:{};isPlainObj(argsConfig)||devAssert(0,"".concat(config.name,".").concat(fieldName," args must be an object with argument names as keys."));var args=polyfills_objectEntries(argsConfig).map(function(_ref){var argName=_ref[0],argConfig=_ref[1];return{name:argName,description:argConfig.description,type:argConfig.type,defaultValue:argConfig.defaultValue,deprecationReason:argConfig.deprecationReason,extensions:argConfig.extensions&&toObjMap(argConfig.extensions),astNode:argConfig.astNode}});return{name:fieldName,description:fieldConfig.description,type:fieldConfig.type,args,resolve:fieldConfig.resolve,subscribe:fieldConfig.subscribe,isDeprecated:fieldConfig.deprecationReason!=null,deprecationReason:fieldConfig.deprecationReason,extensions:fieldConfig.extensions&&toObjMap(fieldConfig.extensions),astNode:fieldConfig.astNode}})}function isPlainObj(obj){return isObjectLike(obj)&&!Array.isArray(obj)}function fieldsToFieldsConfig(fields){return mapValue(fields,function(field){return{description:field.description,type:field.type,args:argsToArgsConfig(field.args),resolve:field.resolve,subscribe:field.subscribe,deprecationReason:field.deprecationReason,extensions:field.extensions,astNode:field.astNode}})}function argsToArgsConfig(args){return keyValMap(args,function(arg){return arg.name},function(arg){return{description:arg.description,type:arg.type,defaultValue:arg.defaultValue,deprecationReason:arg.deprecationReason,extensions:arg.extensions,astNode:arg.astNode}})}function isRequiredArgument(arg){return isNonNullType(arg.type)&&arg.defaultValue===void 0}var GraphQLInterfaceType=function(){function GraphQLInterfaceType2(config){this.name=config.name,this.description=config.description,this.resolveType=config.resolveType,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),this._fields=defineFieldMap.bind(void 0,config),this._interfaces=defineInterfaces.bind(void 0,config),typeof config.name=="string"||devAssert(0,"Must provide name."),config.resolveType==null||typeof config.resolveType=="function"||devAssert(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(inspect(config.resolveType),"."))}var _proto3=GraphQLInterfaceType2.prototype;return _proto3.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},_proto3.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},_proto3.toConfig=function(){var _this$extensionASTNod2;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fieldsToFieldsConfig(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod2=this.extensionASTNodes)!==null&&_this$extensionASTNod2!==void 0?_this$extensionASTNod2:[]}},_proto3.toString=function(){return this.name},_proto3.toJSON=function(){return this.toString()},definition_createClass(GraphQLInterfaceType2,[{key:SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLInterfaceType"}}]),GraphQLInterfaceType2}();defineInspect(GraphQLInterfaceType);var GraphQLUnionType=function(){function GraphQLUnionType2(config){this.name=config.name,this.description=config.description,this.resolveType=config.resolveType,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),this._types=defineTypes.bind(void 0,config),typeof config.name=="string"||devAssert(0,"Must provide name."),config.resolveType==null||typeof config.resolveType=="function"||devAssert(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(inspect(config.resolveType),"."))}var _proto4=GraphQLUnionType2.prototype;return _proto4.getTypes=function(){return typeof this._types=="function"&&(this._types=this._types()),this._types},_proto4.toConfig=function(){var _this$extensionASTNod3;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod3=this.extensionASTNodes)!==null&&_this$extensionASTNod3!==void 0?_this$extensionASTNod3:[]}},_proto4.toString=function(){return this.name},_proto4.toJSON=function(){return this.toString()},definition_createClass(GraphQLUnionType2,[{key:SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLUnionType"}}]),GraphQLUnionType2}();defineInspect(GraphQLUnionType);function defineTypes(config){var types=resolveThunk(config.types);return Array.isArray(types)||devAssert(0,"Must provide Array of types or a function which returns such an array for Union ".concat(config.name,".")),types}var GraphQLEnumType=function(){function GraphQLEnumType2(config){this.name=config.name,this.description=config.description,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),this._values=defineEnumValues(this.name,config.values),this._valueLookup=new Map(this._values.map(function(enumValue){return[enumValue.value,enumValue]})),this._nameLookup=keyMap(this._values,function(value){return value.name}),typeof config.name=="string"||devAssert(0,"Must provide name.")}var _proto5=GraphQLEnumType2.prototype;return _proto5.getValues=function(){return this._values},_proto5.getValue=function(name){return this._nameLookup[name]},_proto5.serialize=function(outputValue){var enumValue=this._valueLookup.get(outputValue);if(enumValue===void 0)throw new GraphQLError('Enum "'.concat(this.name,'" cannot represent value: ').concat(inspect(outputValue)));return enumValue.name},_proto5.parseValue=function(inputValue){if(typeof inputValue!="string"){var valueStr=inspect(inputValue);throw new GraphQLError('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(valueStr,".")+didYouMeanEnumValue(this,valueStr))}var enumValue=this.getValue(inputValue);if(enumValue==null)throw new GraphQLError('Value "'.concat(inputValue,'" does not exist in "').concat(this.name,'" enum.')+didYouMeanEnumValue(this,inputValue));return enumValue.value},_proto5.parseLiteral=function(valueNode,_variables){if(valueNode.kind!==Kind.ENUM){var valueStr=print(valueNode);throw new GraphQLError('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(valueStr,".")+didYouMeanEnumValue(this,valueStr),valueNode)}var enumValue=this.getValue(valueNode.value);if(enumValue==null){var _valueStr=print(valueNode);throw new GraphQLError('Value "'.concat(_valueStr,'" does not exist in "').concat(this.name,'" enum.')+didYouMeanEnumValue(this,_valueStr),valueNode)}return enumValue.value},_proto5.toConfig=function(){var _this$extensionASTNod4,values=keyValMap(this.getValues(),function(value){return value.name},function(value){return{description:value.description,value:value.value,deprecationReason:value.deprecationReason,extensions:value.extensions,astNode:value.astNode}});return{name:this.name,description:this.description,values,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod4=this.extensionASTNodes)!==null&&_this$extensionASTNod4!==void 0?_this$extensionASTNod4:[]}},_proto5.toString=function(){return this.name},_proto5.toJSON=function(){return this.toString()},definition_createClass(GraphQLEnumType2,[{key:SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLEnumType"}}]),GraphQLEnumType2}();defineInspect(GraphQLEnumType);function didYouMeanEnumValue(enumType,unknownValueStr){var allNames=enumType.getValues().map(function(value){return value.name}),suggestedValues=suggestionList(unknownValueStr,allNames);return didYouMean("the enum value",suggestedValues)}function defineEnumValues(typeName,valueMap){return isPlainObj(valueMap)||devAssert(0,"".concat(typeName," values must be an object with value names as keys.")),polyfills_objectEntries(valueMap).map(function(_ref2){var valueName=_ref2[0],valueConfig=_ref2[1];return isPlainObj(valueConfig)||devAssert(0,"".concat(typeName,".").concat(valueName,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(inspect(valueConfig),".")),!("isDeprecated"in valueConfig)||devAssert(0,"".concat(typeName,".").concat(valueName,' should provide "deprecationReason" instead of "isDeprecated".')),{name:valueName,description:valueConfig.description,value:valueConfig.value!==void 0?valueConfig.value:valueName,isDeprecated:valueConfig.deprecationReason!=null,deprecationReason:valueConfig.deprecationReason,extensions:valueConfig.extensions&&toObjMap(valueConfig.extensions),astNode:valueConfig.astNode}})}var GraphQLInputObjectType=function(){function GraphQLInputObjectType2(config){this.name=config.name,this.description=config.description,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=undefineIfEmpty(config.extensionASTNodes),this._fields=defineInputFieldMap.bind(void 0,config),typeof config.name=="string"||devAssert(0,"Must provide name.")}var _proto6=GraphQLInputObjectType2.prototype;return _proto6.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},_proto6.toConfig=function(){var _this$extensionASTNod5,fields=mapValue(this.getFields(),function(field){return{description:field.description,type:field.type,defaultValue:field.defaultValue,deprecationReason:field.deprecationReason,extensions:field.extensions,astNode:field.astNode}});return{name:this.name,description:this.description,fields,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod5=this.extensionASTNodes)!==null&&_this$extensionASTNod5!==void 0?_this$extensionASTNod5:[]}},_proto6.toString=function(){return this.name},_proto6.toJSON=function(){return this.toString()},definition_createClass(GraphQLInputObjectType2,[{key:SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLInputObjectType"}}]),GraphQLInputObjectType2}();defineInspect(GraphQLInputObjectType);function defineInputFieldMap(config){var fieldMap=resolveThunk(config.fields);return isPlainObj(fieldMap)||devAssert(0,"".concat(config.name," fields must be an object with field names as keys or a function which returns such an object.")),mapValue(fieldMap,function(fieldConfig,fieldName){return!("resolve"in fieldConfig)||devAssert(0,"".concat(config.name,".").concat(fieldName," field has a resolve property, but Input Types cannot define resolvers.")),{name:fieldName,description:fieldConfig.description,type:fieldConfig.type,defaultValue:fieldConfig.defaultValue,deprecationReason:fieldConfig.deprecationReason,extensions:fieldConfig.extensions&&toObjMap(fieldConfig.extensions),astNode:fieldConfig.astNode}})}function isRequiredInputField(field){return isNonNullType(field.type)&&field.defaultValue===void 0}function isEqualType(typeA,typeB){return typeA===typeB?!0:isNonNullType(typeA)&&isNonNullType(typeB)||isListType(typeA)&&isListType(typeB)?isEqualType(typeA.ofType,typeB.ofType):!1}function isTypeSubTypeOf(schema,maybeSubType,superType){return maybeSubType===superType?!0:isNonNullType(superType)?isNonNullType(maybeSubType)?isTypeSubTypeOf(schema,maybeSubType.ofType,superType.ofType):!1:isNonNullType(maybeSubType)?isTypeSubTypeOf(schema,maybeSubType.ofType,superType):isListType(superType)?isListType(maybeSubType)?isTypeSubTypeOf(schema,maybeSubType.ofType,superType.ofType):!1:isListType(maybeSubType)?!1:isAbstractType(superType)&&(isInterfaceType(maybeSubType)||isObjectType(maybeSubType))&&schema.isSubType(superType,maybeSubType)}function doTypesOverlap(schema,typeA,typeB){return typeA===typeB?!0:isAbstractType(typeA)?isAbstractType(typeB)?schema.getPossibleTypes(typeA).some(function(type){return schema.isSubType(typeB,type)}):schema.isSubType(typeA,typeB):isAbstractType(typeB)?schema.isSubType(typeB,typeA):!1}var arrayFrom=Array.from||function(obj,mapFn,thisArg){if(obj==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var iteratorMethod=obj[SYMBOL_ITERATOR];if(typeof iteratorMethod=="function"){for(var iterator=iteratorMethod.call(obj),result=[],step,i=0;!(step=iterator.next()).done;++i)if(result.push(mapFn.call(thisArg,step.value,i)),i>9999999)throw new TypeError("Near-infinite iteration.");return result}var length=obj.length;if(typeof length=="number"&&length>=0&&length%1===0){for(var _result=[],_i=0;_i<length;++_i)Object.prototype.hasOwnProperty.call(obj,_i)&&_result.push(mapFn.call(thisArg,obj[_i],_i));return _result}return[]};const polyfills_arrayFrom=arrayFrom;var isFinitePolyfill=Number.isFinite||function(value){return typeof value=="number"&&isFinite(value)};const polyfills_isFinite=isFinitePolyfill;function safeArrayFrom_typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?safeArrayFrom_typeof=function(obj2){return typeof obj2}:safeArrayFrom_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},safeArrayFrom_typeof(obj)}function safeArrayFrom(collection){var mapFn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(item){return item};if(collection==null||safeArrayFrom_typeof(collection)!=="object")return null;if(Array.isArray(collection))return collection.map(mapFn);var iteratorMethod=collection[SYMBOL_ITERATOR];if(typeof iteratorMethod=="function"){for(var iterator=iteratorMethod.call(collection),result=[],step,i=0;!(step=iterator.next()).done;++i)result.push(mapFn(step.value,i));return result}var length=collection.length;if(typeof length=="number"&&length>=0&&length%1===0){for(var _result=[],_i=0;_i<length;++_i){if(!Object.prototype.hasOwnProperty.call(collection,_i))return null;_result.push(mapFn(collection[String(_i)],_i))}return _result}return null}var isInteger=Number.isInteger||function(value){return typeof value=="number"&&isFinite(value)&&Math.floor(value)===value};const polyfills_isInteger=isInteger;var MAX_INT=2147483647,MIN_INT=-2147483648;function serializeInt(outputValue){var coercedValue=serializeObject(outputValue);if(typeof coercedValue=="boolean")return coercedValue?1:0;var num=coercedValue;if(typeof coercedValue=="string"&&coercedValue!==""&&(num=Number(coercedValue)),!polyfills_isInteger(num))throw new GraphQLError("Int cannot represent non-integer value: ".concat(inspect(coercedValue)));if(num>MAX_INT||num<MIN_INT)throw new GraphQLError("Int cannot represent non 32-bit signed integer value: "+inspect(coercedValue));return num}function coerceInt(inputValue){if(!polyfills_isInteger(inputValue))throw new GraphQLError("Int cannot represent non-integer value: ".concat(inspect(inputValue)));if(inputValue>MAX_INT||inputValue<MIN_INT)throw new GraphQLError("Int cannot represent non 32-bit signed integer value: ".concat(inputValue));return inputValue}var GraphQLInt=new GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:serializeInt,parseValue:coerceInt,parseLiteral:function(valueNode){if(valueNode.kind!==Kind.INT)throw new GraphQLError("Int cannot represent non-integer value: ".concat(print(valueNode)),valueNode);var num=parseInt(valueNode.value,10);if(num>MAX_INT||num<MIN_INT)throw new GraphQLError("Int cannot represent non 32-bit signed integer value: ".concat(valueNode.value),valueNode);return num}});function serializeFloat(outputValue){var coercedValue=serializeObject(outputValue);if(typeof coercedValue=="boolean")return coercedValue?1:0;var num=coercedValue;if(typeof coercedValue=="string"&&coercedValue!==""&&(num=Number(coercedValue)),!polyfills_isFinite(num))throw new GraphQLError("Float cannot represent non numeric value: ".concat(inspect(coercedValue)));return num}function coerceFloat(inputValue){if(!polyfills_isFinite(inputValue))throw new GraphQLError("Float cannot represent non numeric value: ".concat(inspect(inputValue)));return inputValue}var GraphQLFloat=new GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:serializeFloat,parseValue:coerceFloat,parseLiteral:function(valueNode){if(valueNode.kind!==Kind.FLOAT&&valueNode.kind!==Kind.INT)throw new GraphQLError("Float cannot represent non numeric value: ".concat(print(valueNode)),valueNode);return parseFloat(valueNode.value)}});function serializeObject(outputValue){if(isObjectLike(outputValue)){if(typeof outputValue.valueOf=="function"){var valueOfResult=outputValue.valueOf();if(!isObjectLike(valueOfResult))return valueOfResult}if(typeof outputValue.toJSON=="function")return outputValue.toJSON()}return outputValue}function serializeString(outputValue){var coercedValue=serializeObject(outputValue);if(typeof coercedValue=="string")return coercedValue;if(typeof coercedValue=="boolean")return coercedValue?"true":"false";if(polyfills_isFinite(coercedValue))return coercedValue.toString();throw new GraphQLError("String cannot represent value: ".concat(inspect(outputValue)))}function coerceString(inputValue){if(typeof inputValue!="string")throw new GraphQLError("String cannot represent a non string value: ".concat(inspect(inputValue)));return inputValue}var GraphQLString=new GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:serializeString,parseValue:coerceString,parseLiteral:function(valueNode){if(valueNode.kind!==Kind.STRING)throw new GraphQLError("String cannot represent a non string value: ".concat(print(valueNode)),valueNode);return valueNode.value}});function serializeBoolean(outputValue){var coercedValue=serializeObject(outputValue);if(typeof coercedValue=="boolean")return coercedValue;if(polyfills_isFinite(coercedValue))return coercedValue!==0;throw new GraphQLError("Boolean cannot represent a non boolean value: ".concat(inspect(coercedValue)))}function coerceBoolean(inputValue){if(typeof inputValue!="boolean")throw new GraphQLError("Boolean cannot represent a non boolean value: ".concat(inspect(inputValue)));return inputValue}var GraphQLBoolean=new GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:serializeBoolean,parseValue:coerceBoolean,parseLiteral:function(valueNode){if(valueNode.kind!==Kind.BOOLEAN)throw new GraphQLError("Boolean cannot represent a non boolean value: ".concat(print(valueNode)),valueNode);return valueNode.value}});function serializeID(outputValue){var coercedValue=serializeObject(outputValue);if(typeof coercedValue=="string")return coercedValue;if(polyfills_isInteger(coercedValue))return String(coercedValue);throw new GraphQLError("ID cannot represent value: ".concat(inspect(outputValue)))}function coerceID(inputValue){if(typeof inputValue=="string")return inputValue;if(polyfills_isInteger(inputValue))return inputValue.toString();throw new GraphQLError("ID cannot represent value: ".concat(inspect(inputValue)))}var GraphQLID=new GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:serializeID,parseValue:coerceID,parseLiteral:function(valueNode){if(valueNode.kind!==Kind.STRING&&valueNode.kind!==Kind.INT)throw new GraphQLError("ID cannot represent a non-string and non-integer value: "+print(valueNode),valueNode);return valueNode.value}}),specifiedScalarTypes=Object.freeze([GraphQLString,GraphQLInt,GraphQLFloat,GraphQLBoolean,GraphQLID]);function isSpecifiedScalarType(type){return specifiedScalarTypes.some(function(_ref){var name=_ref.name;return type.name===name})}function astFromValue(value,type){if(isNonNullType(type)){var astValue=astFromValue(value,type.ofType);return astValue?.kind===Kind.NULL?null:astValue}if(value===null)return{kind:Kind.NULL};if(value===void 0)return null;if(isListType(type)){var itemType=type.ofType,items=safeArrayFrom(value);if(items!=null){for(var valuesNodes=[],_i2=0;_i2<items.length;_i2++){var item=items[_i2],itemNode=astFromValue(item,itemType);itemNode!=null&&valuesNodes.push(itemNode)}return{kind:Kind.LIST,values:valuesNodes}}return astFromValue(value,itemType)}if(isInputObjectType(type)){if(!isObjectLike(value))return null;for(var fieldNodes=[],_i4=0,_objectValues2=polyfills_objectValues(type.getFields());_i4<_objectValues2.length;_i4++){var field=_objectValues2[_i4],fieldValue=astFromValue(value[field.name],field.type);fieldValue&&fieldNodes.push({kind:Kind.OBJECT_FIELD,name:{kind:Kind.NAME,value:field.name},value:fieldValue})}return{kind:Kind.OBJECT,fields:fieldNodes}}if(isLeafType(type)){var serialized=type.serialize(value);if(serialized==null)return null;if(typeof serialized=="boolean")return{kind:Kind.BOOLEAN,value:serialized};if(typeof serialized=="number"&&polyfills_isFinite(serialized)){var stringNum=String(serialized);return integerStringRegExp.test(stringNum)?{kind:Kind.INT,value:stringNum}:{kind:Kind.FLOAT,value:stringNum}}if(typeof serialized=="string")return isEnumType(type)?{kind:Kind.ENUM,value:serialized}:type===GraphQLID&&integerStringRegExp.test(serialized)?{kind:Kind.INT,value:serialized}:{kind:Kind.STRING,value:serialized};throw new TypeError("Cannot convert value to AST: ".concat(inspect(serialized),"."))}invariant(0,"Unexpected input type: "+inspect(type))}var integerStringRegExp=/^-?(?:0|[1-9][0-9]*)$/,__Schema=new GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:GraphQLString,resolve:function(schema){return schema.description}},types:{description:"A list of all types supported by this server.",type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(__Type))),resolve:function(schema){return polyfills_objectValues(schema.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new GraphQLNonNull(__Type),resolve:function(schema){return schema.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:__Type,resolve:function(schema){return schema.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:__Type,resolve:function(schema){return schema.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(__Directive))),resolve:function(schema){return schema.getDirectives()}}}}}),__Directive=new GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
107
|
-
|
108
|
-
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:function(){return{name:{type:new GraphQLNonNull(GraphQLString),resolve:function(directive){return directive.name}},description:{type:GraphQLString,resolve:function(directive){return directive.description}},isRepeatable:{type:new GraphQLNonNull(GraphQLBoolean),resolve:function(directive){return directive.isRepeatable}},locations:{type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(__DirectiveLocation))),resolve:function(directive){return directive.locations}},args:{type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(__InputValue))),args:{includeDeprecated:{type:GraphQLBoolean,defaultValue:!1}},resolve:function(field,_ref){var includeDeprecated=_ref.includeDeprecated;return includeDeprecated?field.args:field.args.filter(function(arg){return arg.deprecationReason==null})}}}}}),__DirectiveLocation=new GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),__Type=new GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new GraphQLNonNull(__TypeKind),resolve:function(type){if(isScalarType(type))return TypeKind.SCALAR;if(isObjectType(type))return TypeKind.OBJECT;if(isInterfaceType(type))return TypeKind.INTERFACE;if(isUnionType(type))return TypeKind.UNION;if(isEnumType(type))return TypeKind.ENUM;if(isInputObjectType(type))return TypeKind.INPUT_OBJECT;if(isListType(type))return TypeKind.LIST;if(isNonNullType(type))return TypeKind.NON_NULL;invariant(0,'Unexpected type: "'.concat(inspect(type),'".'))}},name:{type:GraphQLString,resolve:function(type){return type.name!==void 0?type.name:void 0}},description:{type:GraphQLString,resolve:function(type){return type.description!==void 0?type.description:void 0}},specifiedByUrl:{type:GraphQLString,resolve:function(obj){return obj.specifiedByUrl!==void 0?obj.specifiedByUrl:void 0}},fields:{type:new GraphQLList(new GraphQLNonNull(__Field)),args:{includeDeprecated:{type:GraphQLBoolean,defaultValue:!1}},resolve:function(type,_ref2){var includeDeprecated=_ref2.includeDeprecated;if(isObjectType(type)||isInterfaceType(type)){var fields2=polyfills_objectValues(type.getFields());return includeDeprecated?fields2:fields2.filter(function(field){return field.deprecationReason==null})}}},interfaces:{type:new GraphQLList(new GraphQLNonNull(__Type)),resolve:function(type){if(isObjectType(type)||isInterfaceType(type))return type.getInterfaces()}},possibleTypes:{type:new GraphQLList(new GraphQLNonNull(__Type)),resolve:function(type,_args,_context,_ref3){var schema=_ref3.schema;if(isAbstractType(type))return schema.getPossibleTypes(type)}},enumValues:{type:new GraphQLList(new GraphQLNonNull(__EnumValue)),args:{includeDeprecated:{type:GraphQLBoolean,defaultValue:!1}},resolve:function(type,_ref4){var includeDeprecated=_ref4.includeDeprecated;if(isEnumType(type)){var values=type.getValues();return includeDeprecated?values:values.filter(function(field){return field.deprecationReason==null})}}},inputFields:{type:new GraphQLList(new GraphQLNonNull(__InputValue)),args:{includeDeprecated:{type:GraphQLBoolean,defaultValue:!1}},resolve:function(type,_ref5){var includeDeprecated=_ref5.includeDeprecated;if(isInputObjectType(type)){var values=polyfills_objectValues(type.getFields());return includeDeprecated?values:values.filter(function(field){return field.deprecationReason==null})}}},ofType:{type:__Type,resolve:function(type){return type.ofType!==void 0?type.ofType:void 0}}}}}),__Field=new GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new GraphQLNonNull(GraphQLString),resolve:function(field){return field.name}},description:{type:GraphQLString,resolve:function(field){return field.description}},args:{type:new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(__InputValue))),args:{includeDeprecated:{type:GraphQLBoolean,defaultValue:!1}},resolve:function(field,_ref6){var includeDeprecated=_ref6.includeDeprecated;return includeDeprecated?field.args:field.args.filter(function(arg){return arg.deprecationReason==null})}},type:{type:new GraphQLNonNull(__Type),resolve:function(field){return field.type}},isDeprecated:{type:new GraphQLNonNull(GraphQLBoolean),resolve:function(field){return field.deprecationReason!=null}},deprecationReason:{type:GraphQLString,resolve:function(field){return field.deprecationReason}}}}}),__InputValue=new GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new GraphQLNonNull(GraphQLString),resolve:function(inputValue){return inputValue.name}},description:{type:GraphQLString,resolve:function(inputValue){return inputValue.description}},type:{type:new GraphQLNonNull(__Type),resolve:function(inputValue){return inputValue.type}},defaultValue:{type:GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(inputValue){var type=inputValue.type,defaultValue=inputValue.defaultValue,valueAST=astFromValue(defaultValue,type);return valueAST?print(valueAST):null}},isDeprecated:{type:new GraphQLNonNull(GraphQLBoolean),resolve:function(field){return field.deprecationReason!=null}},deprecationReason:{type:GraphQLString,resolve:function(obj){return obj.deprecationReason}}}}}),__EnumValue=new GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new GraphQLNonNull(GraphQLString),resolve:function(enumValue){return enumValue.name}},description:{type:GraphQLString,resolve:function(enumValue){return enumValue.description}},isDeprecated:{type:new GraphQLNonNull(GraphQLBoolean),resolve:function(enumValue){return enumValue.deprecationReason!=null}},deprecationReason:{type:GraphQLString,resolve:function(enumValue){return enumValue.deprecationReason}}}}}),TypeKind=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),__TypeKind=new GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:TypeKind.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:TypeKind.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:TypeKind.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:TypeKind.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:TypeKind.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:TypeKind.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:TypeKind.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:TypeKind.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),SchemaMetaFieldDef={name:"__schema",type:new GraphQLNonNull(__Schema),description:"Access the current type schema of this server.",args:[],resolve:function(_source,_args,_context,_ref7){var schema=_ref7.schema;return schema},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},TypeMetaFieldDef={name:"__type",type:__Type,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new GraphQLNonNull(GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(_source,_ref8,_context,_ref9){var name=_ref8.name,schema=_ref9.schema;return schema.getType(name)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},TypeNameMetaFieldDef={name:"__typename",type:new GraphQLNonNull(GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:function(_source,_args,_context,_ref10){var parentType=_ref10.parentType;return parentType.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},introspectionTypes=Object.freeze([__Schema,__Directive,__DirectiveLocation,__Type,__Field,__InputValue,__EnumValue,__TypeKind]);function isIntrospectionType(type){return introspectionTypes.some(function(_ref11){var name=_ref11.name;return type.name===name})}function directives_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function directives_createClass(Constructor,protoProps,staticProps){return protoProps&&directives_defineProperties(Constructor.prototype,protoProps),staticProps&&directives_defineProperties(Constructor,staticProps),Constructor}function isDirective(directive){return instanceOf(directive,GraphQLDirective)}function assertDirective(directive){if(!isDirective(directive))throw new Error("Expected ".concat(inspect(directive)," to be a GraphQL directive."));return directive}var GraphQLDirective=function(){function GraphQLDirective2(config){var _config$isRepeatable,_config$args;this.name=config.name,this.description=config.description,this.locations=config.locations,this.isRepeatable=(_config$isRepeatable=config.isRepeatable)!==null&&_config$isRepeatable!==void 0?_config$isRepeatable:!1,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,config.name||devAssert(0,"Directive must be named."),Array.isArray(config.locations)||devAssert(0,"@".concat(config.name," locations must be an Array."));var args=(_config$args=config.args)!==null&&_config$args!==void 0?_config$args:{};isObjectLike(args)&&!Array.isArray(args)||devAssert(0,"@".concat(config.name," args must be an object with argument names as keys.")),this.args=polyfills_objectEntries(args).map(function(_ref){var argName=_ref[0],argConfig=_ref[1];return{name:argName,description:argConfig.description,type:argConfig.type,defaultValue:argConfig.defaultValue,deprecationReason:argConfig.deprecationReason,extensions:argConfig.extensions&&toObjMap(argConfig.extensions),astNode:argConfig.astNode}})}var _proto=GraphQLDirective2.prototype;return _proto.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:argsToArgsConfig(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},_proto.toString=function(){return"@"+this.name},_proto.toJSON=function(){return this.toString()},directives_createClass(GraphQLDirective2,[{key:SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLDirective"}}]),GraphQLDirective2}();defineInspect(GraphQLDirective);var GraphQLIncludeDirective=new GraphQLDirective({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[DirectiveLocation.FIELD,DirectiveLocation.FRAGMENT_SPREAD,DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new GraphQLNonNull(GraphQLBoolean),description:"Included when true."}}}),GraphQLSkipDirective=new GraphQLDirective({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[DirectiveLocation.FIELD,DirectiveLocation.FRAGMENT_SPREAD,DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new GraphQLNonNull(GraphQLBoolean),description:"Skipped when true."}}}),DEFAULT_DEPRECATION_REASON="No longer supported",GraphQLDeprecatedDirective=new GraphQLDirective({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[DirectiveLocation.FIELD_DEFINITION,DirectiveLocation.ARGUMENT_DEFINITION,DirectiveLocation.INPUT_FIELD_DEFINITION,DirectiveLocation.ENUM_VALUE],args:{reason:{type:GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:DEFAULT_DEPRECATION_REASON}}}),GraphQLSpecifiedByDirective=new GraphQLDirective({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[DirectiveLocation.SCALAR],args:{url:{type:new GraphQLNonNull(GraphQLString),description:"The URL that specifies the behaviour of this scalar."}}}),specifiedDirectives=Object.freeze([GraphQLIncludeDirective,GraphQLSkipDirective,GraphQLDeprecatedDirective,GraphQLSpecifiedByDirective]);function isSpecifiedDirective(directive){return specifiedDirectives.some(function(_ref2){var name=_ref2.name;return name===directive.name})}function schema_defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function schema_createClass(Constructor,protoProps,staticProps){return protoProps&&schema_defineProperties(Constructor.prototype,protoProps),staticProps&&schema_defineProperties(Constructor,staticProps),Constructor}function isSchema(schema){return instanceOf(schema,GraphQLSchema)}function assertSchema(schema){if(!isSchema(schema))throw new Error("Expected ".concat(inspect(schema)," to be a GraphQL schema."));return schema}var GraphQLSchema=function(){function GraphQLSchema2(config){var _config$directives;this.__validationErrors=config.assumeValid===!0?[]:void 0,isObjectLike(config)||devAssert(0,"Must provide configuration object."),!config.types||Array.isArray(config.types)||devAssert(0,'"types" must be Array if provided but got: '.concat(inspect(config.types),".")),!config.directives||Array.isArray(config.directives)||devAssert(0,'"directives" must be Array if provided but got: '+"".concat(inspect(config.directives),".")),this.description=config.description,this.extensions=config.extensions&&toObjMap(config.extensions),this.astNode=config.astNode,this.extensionASTNodes=config.extensionASTNodes,this._queryType=config.query,this._mutationType=config.mutation,this._subscriptionType=config.subscription,this._directives=(_config$directives=config.directives)!==null&&_config$directives!==void 0?_config$directives:specifiedDirectives;var allReferencedTypes=new Set(config.types);if(config.types!=null)for(var _i2=0,_config$types2=config.types;_i2<_config$types2.length;_i2++){var type=_config$types2[_i2];allReferencedTypes.delete(type),collectReferencedTypes(type,allReferencedTypes)}this._queryType!=null&&collectReferencedTypes(this._queryType,allReferencedTypes),this._mutationType!=null&&collectReferencedTypes(this._mutationType,allReferencedTypes),this._subscriptionType!=null&&collectReferencedTypes(this._subscriptionType,allReferencedTypes);for(var _i4=0,_this$_directives2=this._directives;_i4<_this$_directives2.length;_i4++){var directive=_this$_directives2[_i4];if(isDirective(directive))for(var _i6=0,_directive$args2=directive.args;_i6<_directive$args2.length;_i6++){var arg=_directive$args2[_i6];collectReferencedTypes(arg.type,allReferencedTypes)}}collectReferencedTypes(__Schema,allReferencedTypes),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var _i8=0,_arrayFrom2=polyfills_arrayFrom(allReferencedTypes);_i8<_arrayFrom2.length;_i8++){var namedType=_arrayFrom2[_i8];if(namedType!=null){var typeName=namedType.name;if(typeName||devAssert(0,"One of the provided types for building the Schema is missing a name."),this._typeMap[typeName]!==void 0)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(typeName,'".'));if(this._typeMap[typeName]=namedType,isInterfaceType(namedType))for(var _i10=0,_namedType$getInterfa2=namedType.getInterfaces();_i10<_namedType$getInterfa2.length;_i10++){var iface=_namedType$getInterfa2[_i10];if(isInterfaceType(iface)){var implementations=this._implementationsMap[iface.name];implementations===void 0&&(implementations=this._implementationsMap[iface.name]={objects:[],interfaces:[]}),implementations.interfaces.push(namedType)}}else if(isObjectType(namedType))for(var _i12=0,_namedType$getInterfa4=namedType.getInterfaces();_i12<_namedType$getInterfa4.length;_i12++){var _iface=_namedType$getInterfa4[_i12];if(isInterfaceType(_iface)){var _implementations=this._implementationsMap[_iface.name];_implementations===void 0&&(_implementations=this._implementationsMap[_iface.name]={objects:[],interfaces:[]}),_implementations.objects.push(namedType)}}}}}var _proto=GraphQLSchema2.prototype;return _proto.getQueryType=function(){return this._queryType},_proto.getMutationType=function(){return this._mutationType},_proto.getSubscriptionType=function(){return this._subscriptionType},_proto.getTypeMap=function(){return this._typeMap},_proto.getType=function(name){return this.getTypeMap()[name]},_proto.getPossibleTypes=function(abstractType){return isUnionType(abstractType)?abstractType.getTypes():this.getImplementations(abstractType).objects},_proto.getImplementations=function(interfaceType){var implementations=this._implementationsMap[interfaceType.name];return implementations??{objects:[],interfaces:[]}},_proto.isPossibleType=function(abstractType,possibleType){return this.isSubType(abstractType,possibleType)},_proto.isSubType=function(abstractType,maybeSubType){var map=this._subTypeMap[abstractType.name];if(map===void 0){if(map=Object.create(null),isUnionType(abstractType))for(var _i14=0,_abstractType$getType2=abstractType.getTypes();_i14<_abstractType$getType2.length;_i14++){var type=_abstractType$getType2[_i14];map[type.name]=!0}else{for(var implementations=this.getImplementations(abstractType),_i16=0,_implementations$obje2=implementations.objects;_i16<_implementations$obje2.length;_i16++){var _type=_implementations$obje2[_i16];map[_type.name]=!0}for(var _i18=0,_implementations$inte2=implementations.interfaces;_i18<_implementations$inte2.length;_i18++){var _type2=_implementations$inte2[_i18];map[_type2.name]=!0}}this._subTypeMap[abstractType.name]=map}return map[maybeSubType.name]!==void 0},_proto.getDirectives=function(){return this._directives},_proto.getDirective=function(name){return polyfills_find(this.getDirectives(),function(directive){return directive.name===name})},_proto.toConfig=function(){var _this$extensionASTNod;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:polyfills_objectValues(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(_this$extensionASTNod=this.extensionASTNodes)!==null&&_this$extensionASTNod!==void 0?_this$extensionASTNod:[],assumeValid:this.__validationErrors!==void 0}},schema_createClass(GraphQLSchema2,[{key:SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLSchema"}}]),GraphQLSchema2}();function collectReferencedTypes(type,typeSet){var namedType=getNamedType(type);if(!typeSet.has(namedType)){if(typeSet.add(namedType),isUnionType(namedType))for(var _i20=0,_namedType$getTypes2=namedType.getTypes();_i20<_namedType$getTypes2.length;_i20++){var memberType=_namedType$getTypes2[_i20];collectReferencedTypes(memberType,typeSet)}else if(isObjectType(namedType)||isInterfaceType(namedType)){for(var _i22=0,_namedType$getInterfa6=namedType.getInterfaces();_i22<_namedType$getInterfa6.length;_i22++){var interfaceType=_namedType$getInterfa6[_i22];collectReferencedTypes(interfaceType,typeSet)}for(var _i24=0,_objectValues2=polyfills_objectValues(namedType.getFields());_i24<_objectValues2.length;_i24++){var field=_objectValues2[_i24];collectReferencedTypes(field.type,typeSet);for(var _i26=0,_field$args2=field.args;_i26<_field$args2.length;_i26++){var arg=_field$args2[_i26];collectReferencedTypes(arg.type,typeSet)}}}else if(isInputObjectType(namedType))for(var _i28=0,_objectValues4=polyfills_objectValues(namedType.getFields());_i28<_objectValues4.length;_i28++){var _field=_objectValues4[_i28];collectReferencedTypes(_field.type,typeSet)}}return typeSet}function validateSchema(schema){if(assertSchema(schema),schema.__validationErrors)return schema.__validationErrors;var context=new SchemaValidationContext(schema);validateRootTypes(context),validateDirectives(context),validateTypes(context);var errors=context.getErrors();return schema.__validationErrors=errors,errors}function assertValidSchema(schema){var errors=validateSchema(schema);if(errors.length!==0)throw new Error(errors.map(function(error){return error.message}).join(`
|
109
|
-
|
110
|
-
`))}var SchemaValidationContext=function(){function SchemaValidationContext2(schema){this._errors=[],this.schema=schema}var _proto=SchemaValidationContext2.prototype;return _proto.reportError=function(message,nodes){var _nodes=Array.isArray(nodes)?nodes.filter(Boolean):nodes;this.addError(new GraphQLError(message,_nodes))},_proto.addError=function(error){this._errors.push(error)},_proto.getErrors=function(){return this._errors},SchemaValidationContext2}();function validateRootTypes(context){var schema=context.schema,queryType=schema.getQueryType();if(!queryType)context.reportError("Query root type must be provided.",schema.astNode);else if(!isObjectType(queryType)){var _getOperationTypeNode;context.reportError("Query root type must be Object type, it cannot be ".concat(inspect(queryType),"."),(_getOperationTypeNode=getOperationTypeNode(schema,"query"))!==null&&_getOperationTypeNode!==void 0?_getOperationTypeNode:queryType.astNode)}var mutationType=schema.getMutationType();if(mutationType&&!isObjectType(mutationType)){var _getOperationTypeNode2;context.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat(inspect(mutationType),"."),(_getOperationTypeNode2=getOperationTypeNode(schema,"mutation"))!==null&&_getOperationTypeNode2!==void 0?_getOperationTypeNode2:mutationType.astNode)}var subscriptionType=schema.getSubscriptionType();if(subscriptionType&&!isObjectType(subscriptionType)){var _getOperationTypeNode3;context.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat(inspect(subscriptionType),"."),(_getOperationTypeNode3=getOperationTypeNode(schema,"subscription"))!==null&&_getOperationTypeNode3!==void 0?_getOperationTypeNode3:subscriptionType.astNode)}}function getOperationTypeNode(schema,operation){for(var operationNodes=getAllSubNodes(schema,function(node2){return node2.operationTypes}),_i2=0;_i2<operationNodes.length;_i2++){var node=operationNodes[_i2];if(node.operation===operation)return node.type}}function validateDirectives(context){for(var _i4=0,_context$schema$getDi2=context.schema.getDirectives();_i4<_context$schema$getDi2.length;_i4++){var directive=_context$schema$getDi2[_i4];if(!isDirective(directive)){context.reportError("Expected directive but got: ".concat(inspect(directive),"."),directive?.astNode);continue}validateName(context,directive);for(var _i6=0,_directive$args2=directive.args;_i6<_directive$args2.length;_i6++){var arg=_directive$args2[_i6];if(validateName(context,arg),isInputType(arg.type)||context.reportError("The type of @".concat(directive.name,"(").concat(arg.name,":) must be Input Type ")+"but got: ".concat(inspect(arg.type),"."),arg.astNode),isRequiredArgument(arg)&&arg.deprecationReason!=null){var _arg$astNode;context.reportError("Required argument @".concat(directive.name,"(").concat(arg.name,":) cannot be deprecated."),[getDeprecatedDirectiveNode(arg.astNode),(_arg$astNode=arg.astNode)===null||_arg$astNode===void 0?void 0:_arg$astNode.type])}}}}function validateName(context,node){var error=isValidNameError(node.name);error&&context.addError(locatedError(error,node.astNode))}function validateTypes(context){for(var validateInputObjectCircularRefs=createInputObjectCircularRefsValidator(context),typeMap=context.schema.getTypeMap(),_i8=0,_objectValues2=polyfills_objectValues(typeMap);_i8<_objectValues2.length;_i8++){var type=_objectValues2[_i8];if(!isNamedType(type)){context.reportError("Expected GraphQL named type but got: ".concat(inspect(type),"."),type.astNode);continue}isIntrospectionType(type)||validateName(context,type),isObjectType(type)||isInterfaceType(type)?(validateFields(context,type),validateInterfaces(context,type)):isUnionType(type)?validateUnionMembers(context,type):isEnumType(type)?validateEnumValues(context,type):isInputObjectType(type)&&(validateInputFields(context,type),validateInputObjectCircularRefs(type))}}function validateFields(context,type){var fields=polyfills_objectValues(type.getFields());fields.length===0&&context.reportError("Type ".concat(type.name," must define one or more fields."),getAllNodes(type));for(var _i10=0;_i10<fields.length;_i10++){var field=fields[_i10];if(validateName(context,field),!isOutputType(field.type)){var _field$astNode;context.reportError("The type of ".concat(type.name,".").concat(field.name," must be Output Type ")+"but got: ".concat(inspect(field.type),"."),(_field$astNode=field.astNode)===null||_field$astNode===void 0?void 0:_field$astNode.type)}for(var _i12=0,_field$args2=field.args;_i12<_field$args2.length;_i12++){var arg=_field$args2[_i12],argName=arg.name;if(validateName(context,arg),!isInputType(arg.type)){var _arg$astNode2;context.reportError("The type of ".concat(type.name,".").concat(field.name,"(").concat(argName,":) must be Input ")+"Type but got: ".concat(inspect(arg.type),"."),(_arg$astNode2=arg.astNode)===null||_arg$astNode2===void 0?void 0:_arg$astNode2.type)}if(isRequiredArgument(arg)&&arg.deprecationReason!=null){var _arg$astNode3;context.reportError("Required argument ".concat(type.name,".").concat(field.name,"(").concat(argName,":) cannot be deprecated."),[getDeprecatedDirectiveNode(arg.astNode),(_arg$astNode3=arg.astNode)===null||_arg$astNode3===void 0?void 0:_arg$astNode3.type])}}}}function validateInterfaces(context,type){for(var ifaceTypeNames=Object.create(null),_i14=0,_type$getInterfaces2=type.getInterfaces();_i14<_type$getInterfaces2.length;_i14++){var iface=_type$getInterfaces2[_i14];if(!isInterfaceType(iface)){context.reportError("Type ".concat(inspect(type)," must only implement Interface types, ")+"it cannot implement ".concat(inspect(iface),"."),getAllImplementsInterfaceNodes(type,iface));continue}if(type===iface){context.reportError("Type ".concat(type.name," cannot implement itself because it would create a circular reference."),getAllImplementsInterfaceNodes(type,iface));continue}if(ifaceTypeNames[iface.name]){context.reportError("Type ".concat(type.name," can only implement ").concat(iface.name," once."),getAllImplementsInterfaceNodes(type,iface));continue}ifaceTypeNames[iface.name]=!0,validateTypeImplementsAncestors(context,type,iface),validateTypeImplementsInterface(context,type,iface)}}function validateTypeImplementsInterface(context,type,iface){for(var typeFieldMap=type.getFields(),_i16=0,_objectValues4=polyfills_objectValues(iface.getFields());_i16<_objectValues4.length;_i16++){var ifaceField=_objectValues4[_i16],fieldName=ifaceField.name,typeField=typeFieldMap[fieldName];if(!typeField){context.reportError("Interface field ".concat(iface.name,".").concat(fieldName," expected but ").concat(type.name," does not provide it."),[ifaceField.astNode].concat(getAllNodes(type)));continue}if(!isTypeSubTypeOf(context.schema,typeField.type,ifaceField.type)){var _ifaceField$astNode,_typeField$astNode;context.reportError("Interface field ".concat(iface.name,".").concat(fieldName," expects type ")+"".concat(inspect(ifaceField.type)," but ").concat(type.name,".").concat(fieldName," ")+"is type ".concat(inspect(typeField.type),"."),[(_ifaceField$astNode=ifaceField.astNode)===null||_ifaceField$astNode===void 0?void 0:_ifaceField$astNode.type,(_typeField$astNode=typeField.astNode)===null||_typeField$astNode===void 0?void 0:_typeField$astNode.type])}for(var _loop=function(_i182,_ifaceField$args22){var ifaceArg=_ifaceField$args22[_i182],argName=ifaceArg.name,typeArg=polyfills_find(typeField.args,function(arg){return arg.name===argName});if(!typeArg)return context.reportError("Interface field argument ".concat(iface.name,".").concat(fieldName,"(").concat(argName,":) expected but ").concat(type.name,".").concat(fieldName," does not provide it."),[ifaceArg.astNode,typeField.astNode]),"continue";if(!isEqualType(ifaceArg.type,typeArg.type)){var _ifaceArg$astNode,_typeArg$astNode;context.reportError("Interface field argument ".concat(iface.name,".").concat(fieldName,"(").concat(argName,":) ")+"expects type ".concat(inspect(ifaceArg.type)," but ")+"".concat(type.name,".").concat(fieldName,"(").concat(argName,":) is type ")+"".concat(inspect(typeArg.type),"."),[(_ifaceArg$astNode=ifaceArg.astNode)===null||_ifaceArg$astNode===void 0?void 0:_ifaceArg$astNode.type,(_typeArg$astNode=typeArg.astNode)===null||_typeArg$astNode===void 0?void 0:_typeArg$astNode.type])}},_i18=0,_ifaceField$args2=ifaceField.args;_i18<_ifaceField$args2.length;_i18++)var _ret=_loop(_i18,_ifaceField$args2);for(var _loop2=function(_i202,_typeField$args22){var typeArg=_typeField$args22[_i202],argName=typeArg.name,ifaceArg=polyfills_find(ifaceField.args,function(arg){return arg.name===argName});!ifaceArg&&isRequiredArgument(typeArg)&&context.reportError("Object field ".concat(type.name,".").concat(fieldName," includes required argument ").concat(argName," that is missing from the Interface field ").concat(iface.name,".").concat(fieldName,"."),[typeArg.astNode,ifaceField.astNode])},_i20=0,_typeField$args2=typeField.args;_i20<_typeField$args2.length;_i20++)_loop2(_i20,_typeField$args2)}}function validateTypeImplementsAncestors(context,type,iface){for(var ifaceInterfaces=type.getInterfaces(),_i22=0,_iface$getInterfaces2=iface.getInterfaces();_i22<_iface$getInterfaces2.length;_i22++){var transitive=_iface$getInterfaces2[_i22];ifaceInterfaces.indexOf(transitive)===-1&&context.reportError(transitive===type?"Type ".concat(type.name," cannot implement ").concat(iface.name," because it would create a circular reference."):"Type ".concat(type.name," must implement ").concat(transitive.name," because it is implemented by ").concat(iface.name,"."),[].concat(getAllImplementsInterfaceNodes(iface,transitive),getAllImplementsInterfaceNodes(type,iface)))}}function validateUnionMembers(context,union){var memberTypes=union.getTypes();memberTypes.length===0&&context.reportError("Union type ".concat(union.name," must define one or more member types."),getAllNodes(union));for(var includedTypeNames=Object.create(null),_i24=0;_i24<memberTypes.length;_i24++){var memberType=memberTypes[_i24];if(includedTypeNames[memberType.name]){context.reportError("Union type ".concat(union.name," can only include type ").concat(memberType.name," once."),getUnionMemberTypeNodes(union,memberType.name));continue}includedTypeNames[memberType.name]=!0,isObjectType(memberType)||context.reportError("Union type ".concat(union.name," can only include Object types, ")+"it cannot include ".concat(inspect(memberType),"."),getUnionMemberTypeNodes(union,String(memberType)))}}function validateEnumValues(context,enumType){var enumValues=enumType.getValues();enumValues.length===0&&context.reportError("Enum type ".concat(enumType.name," must define one or more values."),getAllNodes(enumType));for(var _i26=0;_i26<enumValues.length;_i26++){var enumValue=enumValues[_i26],valueName=enumValue.name;validateName(context,enumValue),(valueName==="true"||valueName==="false"||valueName==="null")&&context.reportError("Enum type ".concat(enumType.name," cannot include value: ").concat(valueName,"."),enumValue.astNode)}}function validateInputFields(context,inputObj){var fields=polyfills_objectValues(inputObj.getFields());fields.length===0&&context.reportError("Input Object type ".concat(inputObj.name," must define one or more fields."),getAllNodes(inputObj));for(var _i28=0;_i28<fields.length;_i28++){var field=fields[_i28];if(validateName(context,field),!isInputType(field.type)){var _field$astNode2;context.reportError("The type of ".concat(inputObj.name,".").concat(field.name," must be Input Type ")+"but got: ".concat(inspect(field.type),"."),(_field$astNode2=field.astNode)===null||_field$astNode2===void 0?void 0:_field$astNode2.type)}if(isRequiredInputField(field)&&field.deprecationReason!=null){var _field$astNode3;context.reportError("Required input field ".concat(inputObj.name,".").concat(field.name," cannot be deprecated."),[getDeprecatedDirectiveNode(field.astNode),(_field$astNode3=field.astNode)===null||_field$astNode3===void 0?void 0:_field$astNode3.type])}}}function createInputObjectCircularRefsValidator(context){var visitedTypes=Object.create(null),fieldPath=[],fieldPathIndexByTypeName=Object.create(null);return detectCycleRecursive;function detectCycleRecursive(inputObj){if(!visitedTypes[inputObj.name]){visitedTypes[inputObj.name]=!0,fieldPathIndexByTypeName[inputObj.name]=fieldPath.length;for(var fields=polyfills_objectValues(inputObj.getFields()),_i30=0;_i30<fields.length;_i30++){var field=fields[_i30];if(isNonNullType(field.type)&&isInputObjectType(field.type.ofType)){var fieldType=field.type.ofType,cycleIndex=fieldPathIndexByTypeName[fieldType.name];if(fieldPath.push(field),cycleIndex===void 0)detectCycleRecursive(fieldType);else{var cyclePath=fieldPath.slice(cycleIndex),pathStr=cyclePath.map(function(fieldObj){return fieldObj.name}).join(".");context.reportError('Cannot reference Input Object "'.concat(fieldType.name,'" within itself through a series of non-null fields: "').concat(pathStr,'".'),cyclePath.map(function(fieldObj){return fieldObj.astNode}))}fieldPath.pop()}}fieldPathIndexByTypeName[inputObj.name]=void 0}}}function getAllNodes(object){var astNode=object.astNode,extensionASTNodes=object.extensionASTNodes;return astNode?extensionASTNodes?[astNode].concat(extensionASTNodes):[astNode]:extensionASTNodes??[]}function getAllSubNodes(object,getter){for(var subNodes=[],_i32=0,_getAllNodes2=getAllNodes(object);_i32<_getAllNodes2.length;_i32++){var _getter,node=_getAllNodes2[_i32];subNodes=subNodes.concat((_getter=getter(node))!==null&&_getter!==void 0?_getter:[])}return subNodes}function getAllImplementsInterfaceNodes(type,iface){return getAllSubNodes(type,function(typeNode){return typeNode.interfaces}).filter(function(ifaceNode){return ifaceNode.name.value===iface.name})}function getUnionMemberTypeNodes(union,typeName){return getAllSubNodes(union,function(unionNode){return unionNode.types}).filter(function(typeNode){return typeNode.name.value===typeName})}function getDeprecatedDirectiveNode(definitionNode){var _definitionNode$direc;return definitionNode==null||(_definitionNode$direc=definitionNode.directives)===null||_definitionNode$direc===void 0?void 0:_definitionNode$direc.find(function(node){return node.name.value===GraphQLDeprecatedDirective.name})}function typeFromAST(schema,typeNode){var innerType;if(typeNode.kind===Kind.LIST_TYPE)return innerType=typeFromAST(schema,typeNode.type),innerType&&new GraphQLList(innerType);if(typeNode.kind===Kind.NON_NULL_TYPE)return innerType=typeFromAST(schema,typeNode.type),innerType&&new GraphQLNonNull(innerType);if(typeNode.kind===Kind.NAMED_TYPE)return schema.getType(typeNode.name.value);invariant(0,"Unexpected type node: "+inspect(typeNode))}var TypeInfo=function(){function TypeInfo2(schema,getFieldDefFn,initialType){this._schema=schema,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=getFieldDefFn??getFieldDef,initialType&&(isInputType(initialType)&&this._inputTypeStack.push(initialType),isCompositeType(initialType)&&this._parentTypeStack.push(initialType),isOutputType(initialType)&&this._typeStack.push(initialType))}var _proto=TypeInfo2.prototype;return _proto.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},_proto.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},_proto.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},_proto.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},_proto.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},_proto.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},_proto.getDirective=function(){return this._directive},_proto.getArgument=function(){return this._argument},_proto.getEnumValue=function(){return this._enumValue},_proto.enter=function(node){var schema=this._schema;switch(node.kind){case Kind.SELECTION_SET:{var namedType=getNamedType(this.getType());this._parentTypeStack.push(isCompositeType(namedType)?namedType:void 0);break}case Kind.FIELD:{var parentType=this.getParentType(),fieldDef,fieldType;parentType&&(fieldDef=this._getFieldDef(schema,parentType,node),fieldDef&&(fieldType=fieldDef.type)),this._fieldDefStack.push(fieldDef),this._typeStack.push(isOutputType(fieldType)?fieldType:void 0);break}case Kind.DIRECTIVE:this._directive=schema.getDirective(node.name.value);break;case Kind.OPERATION_DEFINITION:{var type;switch(node.operation){case"query":type=schema.getQueryType();break;case"mutation":type=schema.getMutationType();break;case"subscription":type=schema.getSubscriptionType();break}this._typeStack.push(isObjectType(type)?type:void 0);break}case Kind.INLINE_FRAGMENT:case Kind.FRAGMENT_DEFINITION:{var typeConditionAST=node.typeCondition,outputType=typeConditionAST?typeFromAST(schema,typeConditionAST):getNamedType(this.getType());this._typeStack.push(isOutputType(outputType)?outputType:void 0);break}case Kind.VARIABLE_DEFINITION:{var inputType=typeFromAST(schema,node.type);this._inputTypeStack.push(isInputType(inputType)?inputType:void 0);break}case Kind.ARGUMENT:{var _this$getDirective,argDef,argType,fieldOrDirective=(_this$getDirective=this.getDirective())!==null&&_this$getDirective!==void 0?_this$getDirective:this.getFieldDef();fieldOrDirective&&(argDef=polyfills_find(fieldOrDirective.args,function(arg){return arg.name===node.name.value}),argDef&&(argType=argDef.type)),this._argument=argDef,this._defaultValueStack.push(argDef?argDef.defaultValue:void 0),this._inputTypeStack.push(isInputType(argType)?argType:void 0);break}case Kind.LIST:{var listType=getNullableType(this.getInputType()),itemType=isListType(listType)?listType.ofType:listType;this._defaultValueStack.push(void 0),this._inputTypeStack.push(isInputType(itemType)?itemType:void 0);break}case Kind.OBJECT_FIELD:{var objectType=getNamedType(this.getInputType()),inputFieldType,inputField;isInputObjectType(objectType)&&(inputField=objectType.getFields()[node.name.value],inputField&&(inputFieldType=inputField.type)),this._defaultValueStack.push(inputField?inputField.defaultValue:void 0),this._inputTypeStack.push(isInputType(inputFieldType)?inputFieldType:void 0);break}case Kind.ENUM:{var enumType=getNamedType(this.getInputType()),enumValue;isEnumType(enumType)&&(enumValue=enumType.getValue(node.value)),this._enumValue=enumValue;break}}},_proto.leave=function(node){switch(node.kind){case Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Kind.DIRECTIVE:this._directive=null;break;case Kind.OPERATION_DEFINITION:case Kind.INLINE_FRAGMENT:case Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Kind.LIST:case Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Kind.ENUM:this._enumValue=null;break}},TypeInfo2}();function getFieldDef(schema,parentType,fieldNode){var name=fieldNode.name.value;if(name===SchemaMetaFieldDef.name&&schema.getQueryType()===parentType)return SchemaMetaFieldDef;if(name===TypeMetaFieldDef.name&&schema.getQueryType()===parentType)return TypeMetaFieldDef;if(name===TypeNameMetaFieldDef.name&&isCompositeType(parentType))return TypeNameMetaFieldDef;if(isObjectType(parentType)||isInterfaceType(parentType))return parentType.getFields()[name]}function visitWithTypeInfo(typeInfo,visitor){return{enter:function(node){typeInfo.enter(node);var fn=getVisitFn(visitor,node.kind,!1);if(fn){var result=fn.apply(visitor,arguments);return result!==void 0&&(typeInfo.leave(node),isNode(result)&&typeInfo.enter(result)),result}},leave:function(node){var fn=getVisitFn(visitor,node.kind,!0),result;return fn&&(result=fn.apply(visitor,arguments)),typeInfo.leave(node),result}}}function isDefinitionNode(node){return isExecutableDefinitionNode(node)||isTypeSystemDefinitionNode(node)||isTypeSystemExtensionNode(node)}function isExecutableDefinitionNode(node){return node.kind===Kind.OPERATION_DEFINITION||node.kind===Kind.FRAGMENT_DEFINITION}function isSelectionNode(node){return node.kind===Kind.FIELD||node.kind===Kind.FRAGMENT_SPREAD||node.kind===Kind.INLINE_FRAGMENT}function isValueNode(node){return node.kind===Kind.VARIABLE||node.kind===Kind.INT||node.kind===Kind.FLOAT||node.kind===Kind.STRING||node.kind===Kind.BOOLEAN||node.kind===Kind.NULL||node.kind===Kind.ENUM||node.kind===Kind.LIST||node.kind===Kind.OBJECT}function isTypeNode(node){return node.kind===Kind.NAMED_TYPE||node.kind===Kind.LIST_TYPE||node.kind===Kind.NON_NULL_TYPE}function isTypeSystemDefinitionNode(node){return node.kind===Kind.SCHEMA_DEFINITION||isTypeDefinitionNode(node)||node.kind===Kind.DIRECTIVE_DEFINITION}function isTypeDefinitionNode(node){return node.kind===Kind.SCALAR_TYPE_DEFINITION||node.kind===Kind.OBJECT_TYPE_DEFINITION||node.kind===Kind.INTERFACE_TYPE_DEFINITION||node.kind===Kind.UNION_TYPE_DEFINITION||node.kind===Kind.ENUM_TYPE_DEFINITION||node.kind===Kind.INPUT_OBJECT_TYPE_DEFINITION}function isTypeSystemExtensionNode(node){return node.kind===Kind.SCHEMA_EXTENSION||isTypeExtensionNode(node)}function isTypeExtensionNode(node){return node.kind===Kind.SCALAR_TYPE_EXTENSION||node.kind===Kind.OBJECT_TYPE_EXTENSION||node.kind===Kind.INTERFACE_TYPE_EXTENSION||node.kind===Kind.UNION_TYPE_EXTENSION||node.kind===Kind.ENUM_TYPE_EXTENSION||node.kind===Kind.INPUT_OBJECT_TYPE_EXTENSION}function ExecutableDefinitionsRule(context){return{Document:function(node){for(var _i2=0,_node$definitions2=node.definitions;_i2<_node$definitions2.length;_i2++){var definition=_node$definitions2[_i2];if(!isExecutableDefinitionNode(definition)){var defName=definition.kind===Kind.SCHEMA_DEFINITION||definition.kind===Kind.SCHEMA_EXTENSION?"schema":'"'+definition.name.value+'"';context.reportError(new GraphQLError("The ".concat(defName," definition is not executable."),definition))}}return!1}}}function UniqueOperationNamesRule(context){var knownOperationNames=Object.create(null);return{OperationDefinition:function(node){var operationName=node.name;return operationName&&(knownOperationNames[operationName.value]?context.reportError(new GraphQLError('There can be only one operation named "'.concat(operationName.value,'".'),[knownOperationNames[operationName.value],operationName])):knownOperationNames[operationName.value]=operationName),!1},FragmentDefinition:function(){return!1}}}function LoneAnonymousOperationRule(context){var operationCount=0;return{Document:function(node){operationCount=node.definitions.filter(function(definition){return definition.kind===Kind.OPERATION_DEFINITION}).length},OperationDefinition:function(node){!node.name&&operationCount>1&&context.reportError(new GraphQLError("This anonymous operation must be the only defined operation.",node))}}}function SingleFieldSubscriptionsRule(context){return{OperationDefinition:function(node){node.operation==="subscription"&&node.selectionSet.selections.length!==1&&context.reportError(new GraphQLError(node.name?'Subscription "'.concat(node.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",node.selectionSet.selections.slice(1)))}}}function KnownTypeNamesRule(context){for(var schema=context.getSchema(),existingTypesMap=schema?schema.getTypeMap():Object.create(null),definedTypes=Object.create(null),_i2=0,_context$getDocument$2=context.getDocument().definitions;_i2<_context$getDocument$2.length;_i2++){var def=_context$getDocument$2[_i2];isTypeDefinitionNode(def)&&(definedTypes[def.name.value]=!0)}var typeNames=Object.keys(existingTypesMap).concat(Object.keys(definedTypes));return{NamedType:function(node,_1,parent,_2,ancestors){var typeName=node.name.value;if(!existingTypesMap[typeName]&&!definedTypes[typeName]){var _ancestors$,definitionNode=(_ancestors$=ancestors[2])!==null&&_ancestors$!==void 0?_ancestors$:parent,isSDL=definitionNode!=null&&isSDLNode(definitionNode);if(isSDL&&isStandardTypeName(typeName))return;var suggestedTypes=suggestionList(typeName,isSDL?standardTypeNames.concat(typeNames):typeNames);context.reportError(new GraphQLError('Unknown type "'.concat(typeName,'".')+didYouMean(suggestedTypes),node))}}}}var standardTypeNames=[].concat(specifiedScalarTypes,introspectionTypes).map(function(type){return type.name});function isStandardTypeName(typeName){return standardTypeNames.indexOf(typeName)!==-1}function isSDLNode(value){return!Array.isArray(value)&&(isTypeSystemDefinitionNode(value)||isTypeSystemExtensionNode(value))}function FragmentsOnCompositeTypesRule(context){return{InlineFragment:function(node){var typeCondition=node.typeCondition;if(typeCondition){var type=typeFromAST(context.getSchema(),typeCondition);if(type&&!isCompositeType(type)){var typeStr=print(typeCondition);context.reportError(new GraphQLError('Fragment cannot condition on non composite type "'.concat(typeStr,'".'),typeCondition))}}},FragmentDefinition:function(node){var type=typeFromAST(context.getSchema(),node.typeCondition);if(type&&!isCompositeType(type)){var typeStr=print(node.typeCondition);context.reportError(new GraphQLError('Fragment "'.concat(node.name.value,'" cannot condition on non composite type "').concat(typeStr,'".'),node.typeCondition))}}}}function VariablesAreInputTypesRule(context){return{VariableDefinition:function(node){var type=typeFromAST(context.getSchema(),node.type);if(type&&!isInputType(type)){var variableName=node.variable.name.value,typeName=print(node.type);context.reportError(new GraphQLError('Variable "$'.concat(variableName,'" cannot be non-input type "').concat(typeName,'".'),node.type))}}}}function ScalarLeafsRule(context){return{Field:function(node){var type=context.getType(),selectionSet=node.selectionSet;if(type){if(isLeafType(getNamedType(type))){if(selectionSet){var fieldName=node.name.value,typeStr=inspect(type);context.reportError(new GraphQLError('Field "'.concat(fieldName,'" must not have a selection since type "').concat(typeStr,'" has no subfields.'),selectionSet))}}else if(!selectionSet){var _fieldName=node.name.value,_typeStr=inspect(type);context.reportError(new GraphQLError('Field "'.concat(_fieldName,'" of type "').concat(_typeStr,'" must have a selection of subfields. Did you mean "').concat(_fieldName,' { ... }"?'),node))}}}}}function FieldsOnCorrectTypeRule(context){return{Field:function(node){var type=context.getParentType();if(type){var fieldDef=context.getFieldDef();if(!fieldDef){var schema=context.getSchema(),fieldName=node.name.value,suggestion=didYouMean("to use an inline fragment on",getSuggestedTypeNames(schema,type,fieldName));suggestion===""&&(suggestion=didYouMean(getSuggestedFieldNames(type,fieldName))),context.reportError(new GraphQLError('Cannot query field "'.concat(fieldName,'" on type "').concat(type.name,'".')+suggestion,node))}}}}}function getSuggestedTypeNames(schema,type,fieldName){if(!isAbstractType(type))return[];for(var suggestedTypes=new Set,usageCount=Object.create(null),_i2=0,_schema$getPossibleTy2=schema.getPossibleTypes(type);_i2<_schema$getPossibleTy2.length;_i2++){var possibleType=_schema$getPossibleTy2[_i2];if(!!possibleType.getFields()[fieldName]){suggestedTypes.add(possibleType),usageCount[possibleType.name]=1;for(var _i4=0,_possibleType$getInte2=possibleType.getInterfaces();_i4<_possibleType$getInte2.length;_i4++){var _usageCount$possibleI,possibleInterface=_possibleType$getInte2[_i4];!possibleInterface.getFields()[fieldName]||(suggestedTypes.add(possibleInterface),usageCount[possibleInterface.name]=((_usageCount$possibleI=usageCount[possibleInterface.name])!==null&&_usageCount$possibleI!==void 0?_usageCount$possibleI:0)+1)}}}return polyfills_arrayFrom(suggestedTypes).sort(function(typeA,typeB){var usageCountDiff=usageCount[typeB.name]-usageCount[typeA.name];return usageCountDiff!==0?usageCountDiff:isInterfaceType(typeA)&&schema.isSubType(typeA,typeB)?-1:isInterfaceType(typeB)&&schema.isSubType(typeB,typeA)?1:naturalCompare(typeA.name,typeB.name)}).map(function(x){return x.name})}function getSuggestedFieldNames(type,fieldName){if(isObjectType(type)||isInterfaceType(type)){var possibleFieldNames=Object.keys(type.getFields());return suggestionList(fieldName,possibleFieldNames)}return[]}function UniqueFragmentNamesRule(context){var knownFragmentNames=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(node){var fragmentName=node.name.value;return knownFragmentNames[fragmentName]?context.reportError(new GraphQLError('There can be only one fragment named "'.concat(fragmentName,'".'),[knownFragmentNames[fragmentName],node.name])):knownFragmentNames[fragmentName]=node.name,!1}}}function KnownFragmentNamesRule(context){return{FragmentSpread:function(node){var fragmentName=node.name.value,fragment=context.getFragment(fragmentName);fragment||context.reportError(new GraphQLError('Unknown fragment "'.concat(fragmentName,'".'),node.name))}}}function NoUnusedFragmentsRule(context){var operationDefs=[],fragmentDefs=[];return{OperationDefinition:function(node){return operationDefs.push(node),!1},FragmentDefinition:function(node){return fragmentDefs.push(node),!1},Document:{leave:function(){for(var fragmentNameUsed=Object.create(null),_i2=0;_i2<operationDefs.length;_i2++)for(var operation=operationDefs[_i2],_i4=0,_context$getRecursive2=context.getRecursivelyReferencedFragments(operation);_i4<_context$getRecursive2.length;_i4++){var fragment=_context$getRecursive2[_i4];fragmentNameUsed[fragment.name.value]=!0}for(var _i6=0;_i6<fragmentDefs.length;_i6++){var fragmentDef=fragmentDefs[_i6],fragName=fragmentDef.name.value;fragmentNameUsed[fragName]!==!0&&context.reportError(new GraphQLError('Fragment "'.concat(fragName,'" is never used.'),fragmentDef))}}}}}function PossibleFragmentSpreadsRule(context){return{InlineFragment:function(node){var fragType=context.getType(),parentType=context.getParentType();if(isCompositeType(fragType)&&isCompositeType(parentType)&&!doTypesOverlap(context.getSchema(),fragType,parentType)){var parentTypeStr=inspect(parentType),fragTypeStr=inspect(fragType);context.reportError(new GraphQLError('Fragment cannot be spread here as objects of type "'.concat(parentTypeStr,'" can never be of type "').concat(fragTypeStr,'".'),node))}},FragmentSpread:function(node){var fragName=node.name.value,fragType=getFragmentType(context,fragName),parentType=context.getParentType();if(fragType&&parentType&&!doTypesOverlap(context.getSchema(),fragType,parentType)){var parentTypeStr=inspect(parentType),fragTypeStr=inspect(fragType);context.reportError(new GraphQLError('Fragment "'.concat(fragName,'" cannot be spread here as objects of type "').concat(parentTypeStr,'" can never be of type "').concat(fragTypeStr,'".'),node))}}}}function getFragmentType(context,name){var frag=context.getFragment(name);if(frag){var type=typeFromAST(context.getSchema(),frag.typeCondition);if(isCompositeType(type))return type}}function NoFragmentCyclesRule(context){var visitedFrags=Object.create(null),spreadPath=[],spreadPathIndexByName=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(node){return detectCycleRecursive(node),!1}};function detectCycleRecursive(fragment){if(!visitedFrags[fragment.name.value]){var fragmentName=fragment.name.value;visitedFrags[fragmentName]=!0;var spreadNodes=context.getFragmentSpreads(fragment.selectionSet);if(spreadNodes.length!==0){spreadPathIndexByName[fragmentName]=spreadPath.length;for(var _i2=0;_i2<spreadNodes.length;_i2++){var spreadNode=spreadNodes[_i2],spreadName=spreadNode.name.value,cycleIndex=spreadPathIndexByName[spreadName];if(spreadPath.push(spreadNode),cycleIndex===void 0){var spreadFragment=context.getFragment(spreadName);spreadFragment&&detectCycleRecursive(spreadFragment)}else{var cyclePath=spreadPath.slice(cycleIndex),viaPath=cyclePath.slice(0,-1).map(function(s){return'"'+s.name.value+'"'}).join(", ");context.reportError(new GraphQLError('Cannot spread fragment "'.concat(spreadName,'" within itself')+(viaPath!==""?" via ".concat(viaPath,"."):"."),cyclePath))}spreadPath.pop()}spreadPathIndexByName[fragmentName]=void 0}}}}function UniqueVariableNamesRule(context){var knownVariableNames=Object.create(null);return{OperationDefinition:function(){knownVariableNames=Object.create(null)},VariableDefinition:function(node){var variableName=node.variable.name.value;knownVariableNames[variableName]?context.reportError(new GraphQLError('There can be only one variable named "$'.concat(variableName,'".'),[knownVariableNames[variableName],node.variable.name])):knownVariableNames[variableName]=node.variable.name}}}function NoUndefinedVariablesRule(context){var variableNameDefined=Object.create(null);return{OperationDefinition:{enter:function(){variableNameDefined=Object.create(null)},leave:function(operation){for(var usages=context.getRecursiveVariableUsages(operation),_i2=0;_i2<usages.length;_i2++){var _ref2=usages[_i2],node=_ref2.node,varName=node.name.value;variableNameDefined[varName]!==!0&&context.reportError(new GraphQLError(operation.name?'Variable "$'.concat(varName,'" is not defined by operation "').concat(operation.name.value,'".'):'Variable "$'.concat(varName,'" is not defined.'),[node,operation]))}}},VariableDefinition:function(node){variableNameDefined[node.variable.name.value]=!0}}}function NoUnusedVariablesRule(context){var variableDefs=[];return{OperationDefinition:{enter:function(){variableDefs=[]},leave:function(operation){for(var variableNameUsed=Object.create(null),usages=context.getRecursiveVariableUsages(operation),_i2=0;_i2<usages.length;_i2++){var _ref2=usages[_i2],node=_ref2.node;variableNameUsed[node.name.value]=!0}for(var _i4=0,_variableDefs2=variableDefs;_i4<_variableDefs2.length;_i4++){var variableDef=_variableDefs2[_i4],variableName=variableDef.variable.name.value;variableNameUsed[variableName]!==!0&&context.reportError(new GraphQLError(operation.name?'Variable "$'.concat(variableName,'" is never used in operation "').concat(operation.name.value,'".'):'Variable "$'.concat(variableName,'" is never used.'),variableDef))}}},VariableDefinition:function(def){variableDefs.push(def)}}}function KnownDirectivesRule(context){for(var locationsMap=Object.create(null),schema=context.getSchema(),definedDirectives=schema?schema.getDirectives():specifiedDirectives,_i2=0;_i2<definedDirectives.length;_i2++){var directive=definedDirectives[_i2];locationsMap[directive.name]=directive.locations}for(var astDefinitions=context.getDocument().definitions,_i4=0;_i4<astDefinitions.length;_i4++){var def=astDefinitions[_i4];def.kind===Kind.DIRECTIVE_DEFINITION&&(locationsMap[def.name.value]=def.locations.map(function(name){return name.value}))}return{Directive:function(node,_key,_parent,_path,ancestors){var name=node.name.value,locations=locationsMap[name];if(!locations){context.reportError(new GraphQLError('Unknown directive "@'.concat(name,'".'),node));return}var candidateLocation=getDirectiveLocationForASTPath(ancestors);candidateLocation&&locations.indexOf(candidateLocation)===-1&&context.reportError(new GraphQLError('Directive "@'.concat(name,'" may not be used on ').concat(candidateLocation,"."),node))}}}function getDirectiveLocationForASTPath(ancestors){var appliedTo=ancestors[ancestors.length-1];switch(!Array.isArray(appliedTo)||invariant(0),appliedTo.kind){case Kind.OPERATION_DEFINITION:return getDirectiveLocationForOperation(appliedTo.operation);case Kind.FIELD:return DirectiveLocation.FIELD;case Kind.FRAGMENT_SPREAD:return DirectiveLocation.FRAGMENT_SPREAD;case Kind.INLINE_FRAGMENT:return DirectiveLocation.INLINE_FRAGMENT;case Kind.FRAGMENT_DEFINITION:return DirectiveLocation.FRAGMENT_DEFINITION;case Kind.VARIABLE_DEFINITION:return DirectiveLocation.VARIABLE_DEFINITION;case Kind.SCHEMA_DEFINITION:case Kind.SCHEMA_EXTENSION:return DirectiveLocation.SCHEMA;case Kind.SCALAR_TYPE_DEFINITION:case Kind.SCALAR_TYPE_EXTENSION:return DirectiveLocation.SCALAR;case Kind.OBJECT_TYPE_DEFINITION:case Kind.OBJECT_TYPE_EXTENSION:return DirectiveLocation.OBJECT;case Kind.FIELD_DEFINITION:return DirectiveLocation.FIELD_DEFINITION;case Kind.INTERFACE_TYPE_DEFINITION:case Kind.INTERFACE_TYPE_EXTENSION:return DirectiveLocation.INTERFACE;case Kind.UNION_TYPE_DEFINITION:case Kind.UNION_TYPE_EXTENSION:return DirectiveLocation.UNION;case Kind.ENUM_TYPE_DEFINITION:case Kind.ENUM_TYPE_EXTENSION:return DirectiveLocation.ENUM;case Kind.ENUM_VALUE_DEFINITION:return DirectiveLocation.ENUM_VALUE;case Kind.INPUT_OBJECT_TYPE_DEFINITION:case Kind.INPUT_OBJECT_TYPE_EXTENSION:return DirectiveLocation.INPUT_OBJECT;case Kind.INPUT_VALUE_DEFINITION:{var parentNode=ancestors[ancestors.length-3];return parentNode.kind===Kind.INPUT_OBJECT_TYPE_DEFINITION?DirectiveLocation.INPUT_FIELD_DEFINITION:DirectiveLocation.ARGUMENT_DEFINITION}}}function getDirectiveLocationForOperation(operation){switch(operation){case"query":return DirectiveLocation.QUERY;case"mutation":return DirectiveLocation.MUTATION;case"subscription":return DirectiveLocation.SUBSCRIPTION}invariant(0,"Unexpected operation: "+inspect(operation))}function UniqueDirectivesPerLocationRule(context){for(var uniqueDirectiveMap=Object.create(null),schema=context.getSchema(),definedDirectives=schema?schema.getDirectives():specifiedDirectives,_i2=0;_i2<definedDirectives.length;_i2++){var directive=definedDirectives[_i2];uniqueDirectiveMap[directive.name]=!directive.isRepeatable}for(var astDefinitions=context.getDocument().definitions,_i4=0;_i4<astDefinitions.length;_i4++){var def=astDefinitions[_i4];def.kind===Kind.DIRECTIVE_DEFINITION&&(uniqueDirectiveMap[def.name.value]=!def.repeatable)}var schemaDirectives=Object.create(null),typeDirectivesMap=Object.create(null);return{enter:function(node){if(node.directives!=null){var seenDirectives;if(node.kind===Kind.SCHEMA_DEFINITION||node.kind===Kind.SCHEMA_EXTENSION)seenDirectives=schemaDirectives;else if(isTypeDefinitionNode(node)||isTypeExtensionNode(node)){var typeName=node.name.value;seenDirectives=typeDirectivesMap[typeName],seenDirectives===void 0&&(typeDirectivesMap[typeName]=seenDirectives=Object.create(null))}else seenDirectives=Object.create(null);for(var _i6=0,_node$directives2=node.directives;_i6<_node$directives2.length;_i6++){var _directive=_node$directives2[_i6],directiveName=_directive.name.value;uniqueDirectiveMap[directiveName]&&(seenDirectives[directiveName]?context.reportError(new GraphQLError('The directive "@'.concat(directiveName,'" can only be used once at this location.'),[seenDirectives[directiveName],_directive])):seenDirectives[directiveName]=_directive)}}}}}function KnownArgumentNamesRule_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function KnownArgumentNamesRule_objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?KnownArgumentNamesRule_ownKeys(Object(source),!0).forEach(function(key){KnownArgumentNamesRule_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):KnownArgumentNamesRule_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function KnownArgumentNamesRule_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function KnownArgumentNamesRule(context){return KnownArgumentNamesRule_objectSpread(KnownArgumentNamesRule_objectSpread({},KnownArgumentNamesOnDirectivesRule(context)),{},{Argument:function(argNode){var argDef=context.getArgument(),fieldDef=context.getFieldDef(),parentType=context.getParentType();if(!argDef&&fieldDef&&parentType){var argName=argNode.name.value,knownArgsNames=fieldDef.args.map(function(arg){return arg.name}),suggestions=suggestionList(argName,knownArgsNames);context.reportError(new GraphQLError('Unknown argument "'.concat(argName,'" on field "').concat(parentType.name,".").concat(fieldDef.name,'".')+didYouMean(suggestions),argNode))}}})}function KnownArgumentNamesOnDirectivesRule(context){for(var directiveArgs=Object.create(null),schema=context.getSchema(),definedDirectives=schema?schema.getDirectives():specifiedDirectives,_i2=0;_i2<definedDirectives.length;_i2++){var directive=definedDirectives[_i2];directiveArgs[directive.name]=directive.args.map(function(arg){return arg.name})}for(var astDefinitions=context.getDocument().definitions,_i4=0;_i4<astDefinitions.length;_i4++){var def=astDefinitions[_i4];if(def.kind===Kind.DIRECTIVE_DEFINITION){var _def$arguments,argsNodes=(_def$arguments=def.arguments)!==null&&_def$arguments!==void 0?_def$arguments:[];directiveArgs[def.name.value]=argsNodes.map(function(arg){return arg.name.value})}}return{Directive:function(directiveNode){var directiveName=directiveNode.name.value,knownArgs=directiveArgs[directiveName];if(directiveNode.arguments&&knownArgs)for(var _i6=0,_directiveNode$argume2=directiveNode.arguments;_i6<_directiveNode$argume2.length;_i6++){var argNode=_directiveNode$argume2[_i6],argName=argNode.name.value;if(knownArgs.indexOf(argName)===-1){var suggestions=suggestionList(argName,knownArgs);context.reportError(new GraphQLError('Unknown argument "'.concat(argName,'" on directive "@').concat(directiveName,'".')+didYouMean(suggestions),argNode))}}return!1}}}function UniqueArgumentNamesRule(context){var knownArgNames=Object.create(null);return{Field:function(){knownArgNames=Object.create(null)},Directive:function(){knownArgNames=Object.create(null)},Argument:function(node){var argName=node.name.value;return knownArgNames[argName]?context.reportError(new GraphQLError('There can be only one argument named "'.concat(argName,'".'),[knownArgNames[argName],node.name])):knownArgNames[argName]=node.name,!1}}}function ValuesOfCorrectTypeRule(context){return{ListValue:function(node){var type=getNullableType(context.getParentInputType());if(!isListType(type))return isValidValueNode(context,node),!1},ObjectValue:function(node){var type=getNamedType(context.getInputType());if(!isInputObjectType(type))return isValidValueNode(context,node),!1;for(var fieldNodeMap=keyMap(node.fields,function(field){return field.name.value}),_i2=0,_objectValues2=polyfills_objectValues(type.getFields());_i2<_objectValues2.length;_i2++){var fieldDef=_objectValues2[_i2],fieldNode=fieldNodeMap[fieldDef.name];if(!fieldNode&&isRequiredInputField(fieldDef)){var typeStr=inspect(fieldDef.type);context.reportError(new GraphQLError('Field "'.concat(type.name,".").concat(fieldDef.name,'" of required type "').concat(typeStr,'" was not provided.'),node))}}},ObjectField:function(node){var parentType=getNamedType(context.getParentInputType()),fieldType=context.getInputType();if(!fieldType&&isInputObjectType(parentType)){var suggestions=suggestionList(node.name.value,Object.keys(parentType.getFields()));context.reportError(new GraphQLError('Field "'.concat(node.name.value,'" is not defined by type "').concat(parentType.name,'".')+didYouMean(suggestions),node))}},NullValue:function(node){var type=context.getInputType();isNonNullType(type)&&context.reportError(new GraphQLError('Expected value of type "'.concat(inspect(type),'", found ').concat(print(node),"."),node))},EnumValue:function(node){return isValidValueNode(context,node)},IntValue:function(node){return isValidValueNode(context,node)},FloatValue:function(node){return isValidValueNode(context,node)},StringValue:function(node){return isValidValueNode(context,node)},BooleanValue:function(node){return isValidValueNode(context,node)}}}function isValidValueNode(context,node){var locationType=context.getInputType();if(!!locationType){var type=getNamedType(locationType);if(!isLeafType(type)){var typeStr=inspect(locationType);context.reportError(new GraphQLError('Expected value of type "'.concat(typeStr,'", found ').concat(print(node),"."),node));return}try{var parseResult=type.parseLiteral(node,void 0);if(parseResult===void 0){var _typeStr=inspect(locationType);context.reportError(new GraphQLError('Expected value of type "'.concat(_typeStr,'", found ').concat(print(node),"."),node))}}catch(error){var _typeStr2=inspect(locationType);error instanceof GraphQLError?context.reportError(error):context.reportError(new GraphQLError('Expected value of type "'.concat(_typeStr2,'", found ').concat(print(node),"; ")+error.message,node,void 0,void 0,void 0,error))}}}function ProvidedRequiredArgumentsRule_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function ProvidedRequiredArgumentsRule_objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?ProvidedRequiredArgumentsRule_ownKeys(Object(source),!0).forEach(function(key){ProvidedRequiredArgumentsRule_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ProvidedRequiredArgumentsRule_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function ProvidedRequiredArgumentsRule_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function ProvidedRequiredArgumentsRule(context){return ProvidedRequiredArgumentsRule_objectSpread(ProvidedRequiredArgumentsRule_objectSpread({},ProvidedRequiredArgumentsOnDirectivesRule(context)),{},{Field:{leave:function(fieldNode){var _fieldNode$arguments,fieldDef=context.getFieldDef();if(!fieldDef)return!1;for(var argNodes=(_fieldNode$arguments=fieldNode.arguments)!==null&&_fieldNode$arguments!==void 0?_fieldNode$arguments:[],argNodeMap=keyMap(argNodes,function(arg){return arg.name.value}),_i2=0,_fieldDef$args2=fieldDef.args;_i2<_fieldDef$args2.length;_i2++){var argDef=_fieldDef$args2[_i2],argNode=argNodeMap[argDef.name];if(!argNode&&isRequiredArgument(argDef)){var argTypeStr=inspect(argDef.type);context.reportError(new GraphQLError('Field "'.concat(fieldDef.name,'" argument "').concat(argDef.name,'" of type "').concat(argTypeStr,'" is required, but it was not provided.'),fieldNode))}}}}})}function ProvidedRequiredArgumentsOnDirectivesRule(context){for(var requiredArgsMap=Object.create(null),schema=context.getSchema(),definedDirectives=schema?schema.getDirectives():specifiedDirectives,_i4=0;_i4<definedDirectives.length;_i4++){var directive=definedDirectives[_i4];requiredArgsMap[directive.name]=keyMap(directive.args.filter(isRequiredArgument),function(arg){return arg.name})}for(var astDefinitions=context.getDocument().definitions,_i6=0;_i6<astDefinitions.length;_i6++){var def=astDefinitions[_i6];if(def.kind===Kind.DIRECTIVE_DEFINITION){var _def$arguments,argNodes=(_def$arguments=def.arguments)!==null&&_def$arguments!==void 0?_def$arguments:[];requiredArgsMap[def.name.value]=keyMap(argNodes.filter(isRequiredArgumentNode),function(arg){return arg.name.value})}}return{Directive:{leave:function(directiveNode){var directiveName=directiveNode.name.value,requiredArgs=requiredArgsMap[directiveName];if(requiredArgs)for(var _directiveNode$argume,_argNodes=(_directiveNode$argume=directiveNode.arguments)!==null&&_directiveNode$argume!==void 0?_directiveNode$argume:[],argNodeMap=keyMap(_argNodes,function(arg){return arg.name.value}),_i8=0,_Object$keys2=Object.keys(requiredArgs);_i8<_Object$keys2.length;_i8++){var argName=_Object$keys2[_i8];if(!argNodeMap[argName]){var argType=requiredArgs[argName].type,argTypeStr=isType(argType)?inspect(argType):print(argType);context.reportError(new GraphQLError('Directive "@'.concat(directiveName,'" argument "').concat(argName,'" of type "').concat(argTypeStr,'" is required, but it was not provided.'),directiveNode))}}}}}}function isRequiredArgumentNode(arg){return arg.type.kind===Kind.NON_NULL_TYPE&&arg.defaultValue==null}function VariablesInAllowedPositionRule(context){var varDefMap=Object.create(null);return{OperationDefinition:{enter:function(){varDefMap=Object.create(null)},leave:function(operation){for(var usages=context.getRecursiveVariableUsages(operation),_i2=0;_i2<usages.length;_i2++){var _ref2=usages[_i2],node=_ref2.node,type=_ref2.type,defaultValue=_ref2.defaultValue,varName=node.name.value,varDef=varDefMap[varName];if(varDef&&type){var schema=context.getSchema(),varType=typeFromAST(schema,varDef.type);if(varType&&!allowedVariableUsage(schema,varType,varDef.defaultValue,type,defaultValue)){var varTypeStr=inspect(varType),typeStr=inspect(type);context.reportError(new GraphQLError('Variable "$'.concat(varName,'" of type "').concat(varTypeStr,'" used in position expecting type "').concat(typeStr,'".'),[varDef,node]))}}}}},VariableDefinition:function(node){varDefMap[node.variable.name.value]=node}}}function allowedVariableUsage(schema,varType,varDefaultValue,locationType,locationDefaultValue){if(isNonNullType(locationType)&&!isNonNullType(varType)){var hasNonNullVariableDefaultValue=varDefaultValue!=null&&varDefaultValue.kind!==Kind.NULL,hasLocationDefaultValue=locationDefaultValue!==void 0;if(!hasNonNullVariableDefaultValue&&!hasLocationDefaultValue)return!1;var nullableLocationType=locationType.ofType;return isTypeSubTypeOf(schema,varType,nullableLocationType)}return isTypeSubTypeOf(schema,varType,locationType)}function reasonMessage(reason){return Array.isArray(reason)?reason.map(function(_ref){var responseName=_ref[0],subReason=_ref[1];return'subfields "'.concat(responseName,'" conflict because ')+reasonMessage(subReason)}).join(" and "):reason}function OverlappingFieldsCanBeMergedRule(context){var comparedFragmentPairs=new PairSet,cachedFieldsAndFragmentNames=new Map;return{SelectionSet:function(selectionSet){for(var conflicts=findConflictsWithinSelectionSet(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,context.getParentType(),selectionSet),_i2=0;_i2<conflicts.length;_i2++){var _ref3=conflicts[_i2],_ref2$=_ref3[0],responseName=_ref2$[0],reason=_ref2$[1],fields1=_ref3[1],fields2=_ref3[2],reasonMsg=reasonMessage(reason);context.reportError(new GraphQLError('Fields "'.concat(responseName,'" conflict because ').concat(reasonMsg,". Use different aliases on the fields to fetch both if this was intentional."),fields1.concat(fields2)))}}}}function findConflictsWithinSelectionSet(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,parentType,selectionSet){var conflicts=[],_getFieldsAndFragment=getFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,parentType,selectionSet),fieldMap=_getFieldsAndFragment[0],fragmentNames=_getFieldsAndFragment[1];if(collectConflictsWithin(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,fieldMap),fragmentNames.length!==0)for(var i=0;i<fragmentNames.length;i++){collectConflictsBetweenFieldsAndFragment(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,!1,fieldMap,fragmentNames[i]);for(var j=i+1;j<fragmentNames.length;j++)collectConflictsBetweenFragments(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,!1,fragmentNames[i],fragmentNames[j])}return conflicts}function collectConflictsBetweenFieldsAndFragment(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap,fragmentName){var fragment=context.getFragment(fragmentName);if(!!fragment){var _getReferencedFieldsA=getReferencedFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,fragment),fieldMap2=_getReferencedFieldsA[0],fragmentNames2=_getReferencedFieldsA[1];if(fieldMap!==fieldMap2){collectConflictsBetween(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap,fieldMap2);for(var i=0;i<fragmentNames2.length;i++)collectConflictsBetweenFieldsAndFragment(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap,fragmentNames2[i])}}}function collectConflictsBetweenFragments(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fragmentName1,fragmentName2){if(fragmentName1!==fragmentName2&&!comparedFragmentPairs.has(fragmentName1,fragmentName2,areMutuallyExclusive)){comparedFragmentPairs.add(fragmentName1,fragmentName2,areMutuallyExclusive);var fragment1=context.getFragment(fragmentName1),fragment2=context.getFragment(fragmentName2);if(!(!fragment1||!fragment2)){var _getReferencedFieldsA2=getReferencedFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,fragment1),fieldMap1=_getReferencedFieldsA2[0],fragmentNames1=_getReferencedFieldsA2[1],_getReferencedFieldsA3=getReferencedFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,fragment2),fieldMap2=_getReferencedFieldsA3[0],fragmentNames2=_getReferencedFieldsA3[1];collectConflictsBetween(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap1,fieldMap2);for(var j=0;j<fragmentNames2.length;j++)collectConflictsBetweenFragments(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fragmentName1,fragmentNames2[j]);for(var i=0;i<fragmentNames1.length;i++)collectConflictsBetweenFragments(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fragmentNames1[i],fragmentName2)}}}function findConflictsBetweenSubSelectionSets(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,parentType1,selectionSet1,parentType2,selectionSet2){var conflicts=[],_getFieldsAndFragment2=getFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,parentType1,selectionSet1),fieldMap1=_getFieldsAndFragment2[0],fragmentNames1=_getFieldsAndFragment2[1],_getFieldsAndFragment3=getFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,parentType2,selectionSet2),fieldMap2=_getFieldsAndFragment3[0],fragmentNames2=_getFieldsAndFragment3[1];if(collectConflictsBetween(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap1,fieldMap2),fragmentNames2.length!==0)for(var j=0;j<fragmentNames2.length;j++)collectConflictsBetweenFieldsAndFragment(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap1,fragmentNames2[j]);if(fragmentNames1.length!==0)for(var i=0;i<fragmentNames1.length;i++)collectConflictsBetweenFieldsAndFragment(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fieldMap2,fragmentNames1[i]);for(var _i3=0;_i3<fragmentNames1.length;_i3++)for(var _j=0;_j<fragmentNames2.length;_j++)collectConflictsBetweenFragments(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,fragmentNames1[_i3],fragmentNames2[_j]);return conflicts}function collectConflictsWithin(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,fieldMap){for(var _i5=0,_objectEntries2=polyfills_objectEntries(fieldMap);_i5<_objectEntries2.length;_i5++){var _ref5=_objectEntries2[_i5],responseName=_ref5[0],fields=_ref5[1];if(fields.length>1)for(var i=0;i<fields.length;i++)for(var j=i+1;j<fields.length;j++){var conflict=findConflict(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,!1,responseName,fields[i],fields[j]);conflict&&conflicts.push(conflict)}}}function collectConflictsBetween(context,conflicts,cachedFieldsAndFragmentNames,comparedFragmentPairs,parentFieldsAreMutuallyExclusive,fieldMap1,fieldMap2){for(var _i7=0,_Object$keys2=Object.keys(fieldMap1);_i7<_Object$keys2.length;_i7++){var responseName=_Object$keys2[_i7],fields2=fieldMap2[responseName];if(fields2)for(var fields1=fieldMap1[responseName],i=0;i<fields1.length;i++)for(var j=0;j<fields2.length;j++){var conflict=findConflict(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,parentFieldsAreMutuallyExclusive,responseName,fields1[i],fields2[j]);conflict&&conflicts.push(conflict)}}}function findConflict(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,parentFieldsAreMutuallyExclusive,responseName,field1,field2){var parentType1=field1[0],node1=field1[1],def1=field1[2],parentType2=field2[0],node2=field2[1],def2=field2[2],areMutuallyExclusive=parentFieldsAreMutuallyExclusive||parentType1!==parentType2&&isObjectType(parentType1)&&isObjectType(parentType2);if(!areMutuallyExclusive){var _node1$arguments,_node2$arguments,name1=node1.name.value,name2=node2.name.value;if(name1!==name2)return[[responseName,'"'.concat(name1,'" and "').concat(name2,'" are different fields')],[node1],[node2]];var args1=(_node1$arguments=node1.arguments)!==null&&_node1$arguments!==void 0?_node1$arguments:[],args2=(_node2$arguments=node2.arguments)!==null&&_node2$arguments!==void 0?_node2$arguments:[];if(!sameArguments(args1,args2))return[[responseName,"they have differing arguments"],[node1],[node2]]}var type1=def1?.type,type2=def2?.type;if(type1&&type2&&doTypesConflict(type1,type2))return[[responseName,'they return conflicting types "'.concat(inspect(type1),'" and "').concat(inspect(type2),'"')],[node1],[node2]];var selectionSet1=node1.selectionSet,selectionSet2=node2.selectionSet;if(selectionSet1&&selectionSet2){var conflicts=findConflictsBetweenSubSelectionSets(context,cachedFieldsAndFragmentNames,comparedFragmentPairs,areMutuallyExclusive,getNamedType(type1),selectionSet1,getNamedType(type2),selectionSet2);return subfieldConflicts(conflicts,responseName,node1,node2)}}function sameArguments(arguments1,arguments2){return arguments1.length!==arguments2.length?!1:arguments1.every(function(argument1){var argument2=polyfills_find(arguments2,function(argument){return argument.name.value===argument1.name.value});return argument2?sameValue(argument1.value,argument2.value):!1})}function sameValue(value1,value2){return print(value1)===print(value2)}function doTypesConflict(type1,type2){return isListType(type1)?isListType(type2)?doTypesConflict(type1.ofType,type2.ofType):!0:isListType(type2)?!0:isNonNullType(type1)?isNonNullType(type2)?doTypesConflict(type1.ofType,type2.ofType):!0:isNonNullType(type2)?!0:isLeafType(type1)||isLeafType(type2)?type1!==type2:!1}function getFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,parentType,selectionSet){var cached=cachedFieldsAndFragmentNames.get(selectionSet);if(!cached){var nodeAndDefs=Object.create(null),fragmentNames=Object.create(null);_collectFieldsAndFragmentNames(context,parentType,selectionSet,nodeAndDefs,fragmentNames),cached=[nodeAndDefs,Object.keys(fragmentNames)],cachedFieldsAndFragmentNames.set(selectionSet,cached)}return cached}function getReferencedFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,fragment){var cached=cachedFieldsAndFragmentNames.get(fragment.selectionSet);if(cached)return cached;var fragmentType=typeFromAST(context.getSchema(),fragment.typeCondition);return getFieldsAndFragmentNames(context,cachedFieldsAndFragmentNames,fragmentType,fragment.selectionSet)}function _collectFieldsAndFragmentNames(context,parentType,selectionSet,nodeAndDefs,fragmentNames){for(var _i9=0,_selectionSet$selecti2=selectionSet.selections;_i9<_selectionSet$selecti2.length;_i9++){var selection=_selectionSet$selecti2[_i9];switch(selection.kind){case Kind.FIELD:{var fieldName=selection.name.value,fieldDef=void 0;(isObjectType(parentType)||isInterfaceType(parentType))&&(fieldDef=parentType.getFields()[fieldName]);var responseName=selection.alias?selection.alias.value:fieldName;nodeAndDefs[responseName]||(nodeAndDefs[responseName]=[]),nodeAndDefs[responseName].push([parentType,selection,fieldDef]);break}case Kind.FRAGMENT_SPREAD:fragmentNames[selection.name.value]=!0;break;case Kind.INLINE_FRAGMENT:{var typeCondition=selection.typeCondition,inlineFragmentType=typeCondition?typeFromAST(context.getSchema(),typeCondition):parentType;_collectFieldsAndFragmentNames(context,inlineFragmentType,selection.selectionSet,nodeAndDefs,fragmentNames);break}}}}function subfieldConflicts(conflicts,responseName,node1,node2){if(conflicts.length>0)return[[responseName,conflicts.map(function(_ref6){var reason=_ref6[0];return reason})],conflicts.reduce(function(allFields,_ref7){var fields1=_ref7[1];return allFields.concat(fields1)},[node1]),conflicts.reduce(function(allFields,_ref8){var fields2=_ref8[2];return allFields.concat(fields2)},[node2])]}var PairSet=function(){function PairSet2(){this._data=Object.create(null)}var _proto=PairSet2.prototype;return _proto.has=function(a,b,areMutuallyExclusive){var first=this._data[a],result=first&&first[b];return result===void 0?!1:areMutuallyExclusive===!1?result===!1:!0},_proto.add=function(a,b,areMutuallyExclusive){this._pairSetAdd(a,b,areMutuallyExclusive),this._pairSetAdd(b,a,areMutuallyExclusive)},_proto._pairSetAdd=function(a,b,areMutuallyExclusive){var map=this._data[a];map||(map=Object.create(null),this._data[a]=map),map[b]=areMutuallyExclusive},PairSet2}();function UniqueInputFieldNamesRule(context){var knownNameStack=[],knownNames=Object.create(null);return{ObjectValue:{enter:function(){knownNameStack.push(knownNames),knownNames=Object.create(null)},leave:function(){knownNames=knownNameStack.pop()}},ObjectField:function(node){var fieldName=node.name.value;knownNames[fieldName]?context.reportError(new GraphQLError('There can be only one input field named "'.concat(fieldName,'".'),[knownNames[fieldName],node.name])):knownNames[fieldName]=node.name}}}function LoneSchemaDefinitionRule(context){var _ref,_ref2,_oldSchema$astNode,oldSchema=context.getSchema(),alreadyDefined=(_ref=(_ref2=(_oldSchema$astNode=oldSchema?.astNode)!==null&&_oldSchema$astNode!==void 0?_oldSchema$astNode:oldSchema?.getQueryType())!==null&&_ref2!==void 0?_ref2:oldSchema?.getMutationType())!==null&&_ref!==void 0?_ref:oldSchema?.getSubscriptionType(),schemaDefinitionsCount=0;return{SchemaDefinition:function(node){if(alreadyDefined){context.reportError(new GraphQLError("Cannot define a new schema within a schema extension.",node));return}schemaDefinitionsCount>0&&context.reportError(new GraphQLError("Must provide only one schema definition.",node)),++schemaDefinitionsCount}}}function UniqueOperationTypesRule(context){var schema=context.getSchema(),definedOperationTypes=Object.create(null),existingOperationTypes=schema?{query:schema.getQueryType(),mutation:schema.getMutationType(),subscription:schema.getSubscriptionType()}:{};return{SchemaDefinition:checkOperationTypes,SchemaExtension:checkOperationTypes};function checkOperationTypes(node){for(var _node$operationTypes,operationTypesNodes=(_node$operationTypes=node.operationTypes)!==null&&_node$operationTypes!==void 0?_node$operationTypes:[],_i2=0;_i2<operationTypesNodes.length;_i2++){var operationType=operationTypesNodes[_i2],operation=operationType.operation,alreadyDefinedOperationType=definedOperationTypes[operation];existingOperationTypes[operation]?context.reportError(new GraphQLError("Type for ".concat(operation," already defined in the schema. It cannot be redefined."),operationType)):alreadyDefinedOperationType?context.reportError(new GraphQLError("There can be only one ".concat(operation," type in schema."),[alreadyDefinedOperationType,operationType])):definedOperationTypes[operation]=operationType}return!1}}function UniqueTypeNamesRule(context){var knownTypeNames=Object.create(null),schema=context.getSchema();return{ScalarTypeDefinition:checkTypeName,ObjectTypeDefinition:checkTypeName,InterfaceTypeDefinition:checkTypeName,UnionTypeDefinition:checkTypeName,EnumTypeDefinition:checkTypeName,InputObjectTypeDefinition:checkTypeName};function checkTypeName(node){var typeName=node.name.value;if(schema!=null&&schema.getType(typeName)){context.reportError(new GraphQLError('Type "'.concat(typeName,'" already exists in the schema. It cannot also be defined in this type definition.'),node.name));return}return knownTypeNames[typeName]?context.reportError(new GraphQLError('There can be only one type named "'.concat(typeName,'".'),[knownTypeNames[typeName],node.name])):knownTypeNames[typeName]=node.name,!1}}function UniqueEnumValueNamesRule(context){var schema=context.getSchema(),existingTypeMap=schema?schema.getTypeMap():Object.create(null),knownValueNames=Object.create(null);return{EnumTypeDefinition:checkValueUniqueness,EnumTypeExtension:checkValueUniqueness};function checkValueUniqueness(node){var _node$values,typeName=node.name.value;knownValueNames[typeName]||(knownValueNames[typeName]=Object.create(null));for(var valueNodes=(_node$values=node.values)!==null&&_node$values!==void 0?_node$values:[],valueNames=knownValueNames[typeName],_i2=0;_i2<valueNodes.length;_i2++){var valueDef=valueNodes[_i2],valueName=valueDef.name.value,existingType=existingTypeMap[typeName];isEnumType(existingType)&&existingType.getValue(valueName)?context.reportError(new GraphQLError('Enum value "'.concat(typeName,".").concat(valueName,'" already exists in the schema. It cannot also be defined in this type extension.'),valueDef.name)):valueNames[valueName]?context.reportError(new GraphQLError('Enum value "'.concat(typeName,".").concat(valueName,'" can only be defined once.'),[valueNames[valueName],valueDef.name])):valueNames[valueName]=valueDef.name}return!1}}function UniqueFieldDefinitionNamesRule(context){var schema=context.getSchema(),existingTypeMap=schema?schema.getTypeMap():Object.create(null),knownFieldNames=Object.create(null);return{InputObjectTypeDefinition:checkFieldUniqueness,InputObjectTypeExtension:checkFieldUniqueness,InterfaceTypeDefinition:checkFieldUniqueness,InterfaceTypeExtension:checkFieldUniqueness,ObjectTypeDefinition:checkFieldUniqueness,ObjectTypeExtension:checkFieldUniqueness};function checkFieldUniqueness(node){var _node$fields,typeName=node.name.value;knownFieldNames[typeName]||(knownFieldNames[typeName]=Object.create(null));for(var fieldNodes=(_node$fields=node.fields)!==null&&_node$fields!==void 0?_node$fields:[],fieldNames=knownFieldNames[typeName],_i2=0;_i2<fieldNodes.length;_i2++){var fieldDef=fieldNodes[_i2],fieldName=fieldDef.name.value;hasField(existingTypeMap[typeName],fieldName)?context.reportError(new GraphQLError('Field "'.concat(typeName,".").concat(fieldName,'" already exists in the schema. It cannot also be defined in this type extension.'),fieldDef.name)):fieldNames[fieldName]?context.reportError(new GraphQLError('Field "'.concat(typeName,".").concat(fieldName,'" can only be defined once.'),[fieldNames[fieldName],fieldDef.name])):fieldNames[fieldName]=fieldDef.name}return!1}}function hasField(type,fieldName){return isObjectType(type)||isInterfaceType(type)||isInputObjectType(type)?type.getFields()[fieldName]!=null:!1}function UniqueDirectiveNamesRule(context){var knownDirectiveNames=Object.create(null),schema=context.getSchema();return{DirectiveDefinition:function(node){var directiveName=node.name.value;if(schema!=null&&schema.getDirective(directiveName)){context.reportError(new GraphQLError('Directive "@'.concat(directiveName,'" already exists in the schema. It cannot be redefined.'),node.name));return}return knownDirectiveNames[directiveName]?context.reportError(new GraphQLError('There can be only one directive named "@'.concat(directiveName,'".'),[knownDirectiveNames[directiveName],node.name])):knownDirectiveNames[directiveName]=node.name,!1}}}var _defKindToExtKind;function PossibleTypeExtensionsRule_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function PossibleTypeExtensionsRule(context){for(var schema=context.getSchema(),definedTypes=Object.create(null),_i2=0,_context$getDocument$2=context.getDocument().definitions;_i2<_context$getDocument$2.length;_i2++){var def=_context$getDocument$2[_i2];isTypeDefinitionNode(def)&&(definedTypes[def.name.value]=def)}return{ScalarTypeExtension:checkExtension,ObjectTypeExtension:checkExtension,InterfaceTypeExtension:checkExtension,UnionTypeExtension:checkExtension,EnumTypeExtension:checkExtension,InputObjectTypeExtension:checkExtension};function checkExtension(node){var typeName=node.name.value,defNode=definedTypes[typeName],existingType=schema?.getType(typeName),expectedKind;if(defNode?expectedKind=defKindToExtKind[defNode.kind]:existingType&&(expectedKind=typeToExtKind(existingType)),expectedKind){if(expectedKind!==node.kind){var kindStr=extensionKindToTypeName(node.kind);context.reportError(new GraphQLError("Cannot extend non-".concat(kindStr,' type "').concat(typeName,'".'),defNode?[defNode,node]:node))}}else{var allTypeNames=Object.keys(definedTypes);schema&&(allTypeNames=allTypeNames.concat(Object.keys(schema.getTypeMap())));var suggestedTypes=suggestionList(typeName,allTypeNames);context.reportError(new GraphQLError('Cannot extend type "'.concat(typeName,'" because it is not defined.')+didYouMean(suggestedTypes),node.name))}}}var defKindToExtKind=(_defKindToExtKind={},PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,Kind.SCALAR_TYPE_DEFINITION,Kind.SCALAR_TYPE_EXTENSION),PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,Kind.OBJECT_TYPE_DEFINITION,Kind.OBJECT_TYPE_EXTENSION),PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,Kind.INTERFACE_TYPE_DEFINITION,Kind.INTERFACE_TYPE_EXTENSION),PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,Kind.UNION_TYPE_DEFINITION,Kind.UNION_TYPE_EXTENSION),PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,Kind.ENUM_TYPE_DEFINITION,Kind.ENUM_TYPE_EXTENSION),PossibleTypeExtensionsRule_defineProperty(_defKindToExtKind,Kind.INPUT_OBJECT_TYPE_DEFINITION,Kind.INPUT_OBJECT_TYPE_EXTENSION),_defKindToExtKind);function typeToExtKind(type){if(isScalarType(type))return Kind.SCALAR_TYPE_EXTENSION;if(isObjectType(type))return Kind.OBJECT_TYPE_EXTENSION;if(isInterfaceType(type))return Kind.INTERFACE_TYPE_EXTENSION;if(isUnionType(type))return Kind.UNION_TYPE_EXTENSION;if(isEnumType(type))return Kind.ENUM_TYPE_EXTENSION;if(isInputObjectType(type))return Kind.INPUT_OBJECT_TYPE_EXTENSION;invariant(0,"Unexpected type: "+inspect(type))}function extensionKindToTypeName(kind){switch(kind){case Kind.SCALAR_TYPE_EXTENSION:return"scalar";case Kind.OBJECT_TYPE_EXTENSION:return"object";case Kind.INTERFACE_TYPE_EXTENSION:return"interface";case Kind.UNION_TYPE_EXTENSION:return"union";case Kind.ENUM_TYPE_EXTENSION:return"enum";case Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}invariant(0,"Unexpected kind: "+inspect(kind))}var specifiedRules=Object.freeze([ExecutableDefinitionsRule,UniqueOperationNamesRule,LoneAnonymousOperationRule,SingleFieldSubscriptionsRule,KnownTypeNamesRule,FragmentsOnCompositeTypesRule,VariablesAreInputTypesRule,ScalarLeafsRule,FieldsOnCorrectTypeRule,UniqueFragmentNamesRule,KnownFragmentNamesRule,NoUnusedFragmentsRule,PossibleFragmentSpreadsRule,NoFragmentCyclesRule,UniqueVariableNamesRule,NoUndefinedVariablesRule,NoUnusedVariablesRule,KnownDirectivesRule,UniqueDirectivesPerLocationRule,KnownArgumentNamesRule,UniqueArgumentNamesRule,ValuesOfCorrectTypeRule,ProvidedRequiredArgumentsRule,VariablesInAllowedPositionRule,OverlappingFieldsCanBeMergedRule,UniqueInputFieldNamesRule]),specifiedSDLRules=Object.freeze([LoneSchemaDefinitionRule,UniqueOperationTypesRule,UniqueTypeNamesRule,UniqueEnumValueNamesRule,UniqueFieldDefinitionNamesRule,UniqueDirectiveNamesRule,KnownTypeNamesRule,KnownDirectivesRule,UniqueDirectivesPerLocationRule,PossibleTypeExtensionsRule,KnownArgumentNamesOnDirectivesRule,UniqueArgumentNamesRule,UniqueInputFieldNamesRule,ProvidedRequiredArgumentsOnDirectivesRule]);function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass}var ASTValidationContext=function(){function ASTValidationContext2(ast,onError){this._ast=ast,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=onError}var _proto=ASTValidationContext2.prototype;return _proto.reportError=function(error){this._onError(error)},_proto.getDocument=function(){return this._ast},_proto.getFragment=function(name){var fragments=this._fragments;return fragments||(this._fragments=fragments=this.getDocument().definitions.reduce(function(frags,statement){return statement.kind===Kind.FRAGMENT_DEFINITION&&(frags[statement.name.value]=statement),frags},Object.create(null))),fragments[name]},_proto.getFragmentSpreads=function(node){var spreads=this._fragmentSpreads.get(node);if(!spreads){spreads=[];for(var setsToVisit=[node];setsToVisit.length!==0;)for(var set=setsToVisit.pop(),_i2=0,_set$selections2=set.selections;_i2<_set$selections2.length;_i2++){var selection=_set$selections2[_i2];selection.kind===Kind.FRAGMENT_SPREAD?spreads.push(selection):selection.selectionSet&&setsToVisit.push(selection.selectionSet)}this._fragmentSpreads.set(node,spreads)}return spreads},_proto.getRecursivelyReferencedFragments=function(operation){var fragments=this._recursivelyReferencedFragments.get(operation);if(!fragments){fragments=[];for(var collectedNames=Object.create(null),nodesToVisit=[operation.selectionSet];nodesToVisit.length!==0;)for(var node=nodesToVisit.pop(),_i4=0,_this$getFragmentSpre2=this.getFragmentSpreads(node);_i4<_this$getFragmentSpre2.length;_i4++){var spread=_this$getFragmentSpre2[_i4],fragName=spread.name.value;if(collectedNames[fragName]!==!0){collectedNames[fragName]=!0;var fragment=this.getFragment(fragName);fragment&&(fragments.push(fragment),nodesToVisit.push(fragment.selectionSet))}}this._recursivelyReferencedFragments.set(operation,fragments)}return fragments},ASTValidationContext2}(),SDLValidationContext=function(_ASTValidationContext){_inheritsLoose(SDLValidationContext2,_ASTValidationContext);function SDLValidationContext2(ast,schema,onError){var _this;return _this=_ASTValidationContext.call(this,ast,onError)||this,_this._schema=schema,_this}var _proto2=SDLValidationContext2.prototype;return _proto2.getSchema=function(){return this._schema},SDLValidationContext2}(ASTValidationContext),ValidationContext=function(_ASTValidationContext2){_inheritsLoose(ValidationContext2,_ASTValidationContext2);function ValidationContext2(schema,ast,typeInfo,onError){var _this2;return _this2=_ASTValidationContext2.call(this,ast,onError)||this,_this2._schema=schema,_this2._typeInfo=typeInfo,_this2._variableUsages=new Map,_this2._recursiveVariableUsages=new Map,_this2}var _proto3=ValidationContext2.prototype;return _proto3.getSchema=function(){return this._schema},_proto3.getVariableUsages=function(node){var usages=this._variableUsages.get(node);if(!usages){var newUsages=[],typeInfo=new TypeInfo(this._schema);visit(node,visitWithTypeInfo(typeInfo,{VariableDefinition:function(){return!1},Variable:function(variable){newUsages.push({node:variable,type:typeInfo.getInputType(),defaultValue:typeInfo.getDefaultValue()})}})),usages=newUsages,this._variableUsages.set(node,usages)}return usages},_proto3.getRecursiveVariableUsages=function(operation){var usages=this._recursiveVariableUsages.get(operation);if(!usages){usages=this.getVariableUsages(operation);for(var _i6=0,_this$getRecursivelyR2=this.getRecursivelyReferencedFragments(operation);_i6<_this$getRecursivelyR2.length;_i6++){var frag=_this$getRecursivelyR2[_i6];usages=usages.concat(this.getVariableUsages(frag))}this._recursiveVariableUsages.set(operation,usages)}return usages},_proto3.getType=function(){return this._typeInfo.getType()},_proto3.getParentType=function(){return this._typeInfo.getParentType()},_proto3.getInputType=function(){return this._typeInfo.getInputType()},_proto3.getParentInputType=function(){return this._typeInfo.getParentInputType()},_proto3.getFieldDef=function(){return this._typeInfo.getFieldDef()},_proto3.getDirective=function(){return this._typeInfo.getDirective()},_proto3.getArgument=function(){return this._typeInfo.getArgument()},_proto3.getEnumValue=function(){return this._typeInfo.getEnumValue()},ValidationContext2}(ASTValidationContext);function validate(schema,documentAST){var rules=arguments.length>2&&arguments[2]!==void 0?arguments[2]:specifiedRules,typeInfo=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new TypeInfo(schema),options=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{maxErrors:void 0};documentAST||devAssert(0,"Must provide document."),assertValidSchema(schema);var abortObj=Object.freeze({}),errors=[],context=new ValidationContext(schema,documentAST,typeInfo,function(error){if(options.maxErrors!=null&&errors.length>=options.maxErrors)throw errors.push(new GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),abortObj;errors.push(error)}),visitor=visitInParallel(rules.map(function(rule){return rule(context)}));try{visit(documentAST,visitWithTypeInfo(typeInfo,visitor))}catch(e){if(e!==abortObj)throw e}return errors}function validateSDL(documentAST,schemaToExtend){var rules=arguments.length>2&&arguments[2]!==void 0?arguments[2]:specifiedSDLRules,errors=[],context=new SDLValidationContext(documentAST,schemaToExtend,function(error){errors.push(error)}),visitors=rules.map(function(rule){return rule(context)});return visit(documentAST,visitInParallel(visitors)),errors}function assertValidSDL(documentAST){var errors=validateSDL(documentAST);if(errors.length!==0)throw new Error(errors.map(function(error){return error.message}).join(`
|
111
|
-
|
112
|
-
`))}function assertValidSDLExtension(documentAST,schema){var errors=validateSDL(documentAST,schema);if(errors.length!==0)throw new Error(errors.map(function(error){return error.message}).join(`
|
113
|
-
|
114
|
-
`))}function memoize3(fn){var cache0;return function(a1,a2,a3){cache0||(cache0=new WeakMap);var cache1=cache0.get(a1),cache2;if(cache1){if(cache2=cache1.get(a2),cache2){var cachedValue=cache2.get(a3);if(cachedValue!==void 0)return cachedValue}}else cache1=new WeakMap,cache0.set(a1,cache1);cache2||(cache2=new WeakMap,cache1.set(a2,cache2));var newValue=fn(a1,a2,a3);return cache2.set(a3,newValue),newValue}}function promiseReduce(values,callback,initialValue){return values.reduce(function(previous,value){return isPromise(previous)?previous.then(function(resolved){return callback(resolved,value)}):callback(previous,value)},initialValue)}function promiseForObject(object){var keys=Object.keys(object),valuesAndPromises=keys.map(function(name){return object[name]});return Promise.all(valuesAndPromises).then(function(values){return values.reduce(function(resolvedObject,value,i){return resolvedObject[keys[i]]=value,resolvedObject},Object.create(null))})}function addPath(prev,key,typename){return{prev,key,typename}}function pathToArray(path){for(var flattened=[],curr=path;curr;)flattened.push(curr.key),curr=curr.prev;return flattened.reverse()}function getOperationRootType(schema,operation){if(operation.operation==="query"){var queryType=schema.getQueryType();if(!queryType)throw new GraphQLError("Schema does not define the required query root type.",operation);return queryType}if(operation.operation==="mutation"){var mutationType=schema.getMutationType();if(!mutationType)throw new GraphQLError("Schema is not configured for mutations.",operation);return mutationType}if(operation.operation==="subscription"){var subscriptionType=schema.getSubscriptionType();if(!subscriptionType)throw new GraphQLError("Schema is not configured for subscriptions.",operation);return subscriptionType}throw new GraphQLError("Can only have query, mutation and subscription operations.",operation)}function printPathArray(path){return path.map(function(key){return typeof key=="number"?"["+key.toString()+"]":"."+key}).join("")}function valueFromAST(valueNode,type,variables){if(!!valueNode){if(valueNode.kind===Kind.VARIABLE){var variableName=valueNode.name.value;if(variables==null||variables[variableName]===void 0)return;var variableValue=variables[variableName];return variableValue===null&&isNonNullType(type)?void 0:variableValue}if(isNonNullType(type))return valueNode.kind===Kind.NULL?void 0:valueFromAST(valueNode,type.ofType,variables);if(valueNode.kind===Kind.NULL)return null;if(isListType(type)){var itemType=type.ofType;if(valueNode.kind===Kind.LIST){for(var coercedValues=[],_i2=0,_valueNode$values2=valueNode.values;_i2<_valueNode$values2.length;_i2++){var itemNode=_valueNode$values2[_i2];if(isMissingVariable(itemNode,variables)){if(isNonNullType(itemType))return;coercedValues.push(null)}else{var itemValue=valueFromAST(itemNode,itemType,variables);if(itemValue===void 0)return;coercedValues.push(itemValue)}}return coercedValues}var coercedValue=valueFromAST(valueNode,itemType,variables);return coercedValue===void 0?void 0:[coercedValue]}if(isInputObjectType(type)){if(valueNode.kind!==Kind.OBJECT)return;for(var coercedObj=Object.create(null),fieldNodes=keyMap(valueNode.fields,function(field2){return field2.name.value}),_i4=0,_objectValues2=polyfills_objectValues(type.getFields());_i4<_objectValues2.length;_i4++){var field=_objectValues2[_i4],fieldNode=fieldNodes[field.name];if(!fieldNode||isMissingVariable(fieldNode.value,variables)){if(field.defaultValue!==void 0)coercedObj[field.name]=field.defaultValue;else if(isNonNullType(field.type))return;continue}var fieldValue=valueFromAST(fieldNode.value,field.type,variables);if(fieldValue===void 0)return;coercedObj[field.name]=fieldValue}return coercedObj}if(isLeafType(type)){var result;try{result=type.parseLiteral(valueNode,variables)}catch{return}return result===void 0?void 0:result}invariant(0,"Unexpected input type: "+inspect(type))}}function isMissingVariable(valueNode,variables){return valueNode.kind===Kind.VARIABLE&&(variables==null||variables[valueNode.name.value]===void 0)}function coerceInputValue(inputValue,type){var onError=arguments.length>2&&arguments[2]!==void 0?arguments[2]:defaultOnError;return coerceInputValueImpl(inputValue,type,onError)}function defaultOnError(path,invalidValue,error){var errorPrefix="Invalid value "+inspect(invalidValue);throw path.length>0&&(errorPrefix+=' at "value'.concat(printPathArray(path),'"')),error.message=errorPrefix+": "+error.message,error}function coerceInputValueImpl(inputValue,type,onError,path){if(isNonNullType(type)){if(inputValue!=null)return coerceInputValueImpl(inputValue,type.ofType,onError,path);onError(pathToArray(path),inputValue,new GraphQLError('Expected non-nullable type "'.concat(inspect(type),'" not to be null.')));return}if(inputValue==null)return null;if(isListType(type)){var itemType=type.ofType,coercedList=safeArrayFrom(inputValue,function(itemValue,index){var itemPath=addPath(path,index,void 0);return coerceInputValueImpl(itemValue,itemType,onError,itemPath)});return coercedList??[coerceInputValueImpl(inputValue,itemType,onError,path)]}if(isInputObjectType(type)){if(!isObjectLike(inputValue)){onError(pathToArray(path),inputValue,new GraphQLError('Expected type "'.concat(type.name,'" to be an object.')));return}for(var coercedValue={},fieldDefs=type.getFields(),_i2=0,_objectValues2=polyfills_objectValues(fieldDefs);_i2<_objectValues2.length;_i2++){var field=_objectValues2[_i2],fieldValue=inputValue[field.name];if(fieldValue===void 0){if(field.defaultValue!==void 0)coercedValue[field.name]=field.defaultValue;else if(isNonNullType(field.type)){var typeStr=inspect(field.type);onError(pathToArray(path),inputValue,new GraphQLError('Field "'.concat(field.name,'" of required type "').concat(typeStr,'" was not provided.')))}continue}coercedValue[field.name]=coerceInputValueImpl(fieldValue,field.type,onError,addPath(path,field.name,type.name))}for(var _i4=0,_Object$keys2=Object.keys(inputValue);_i4<_Object$keys2.length;_i4++){var fieldName=_Object$keys2[_i4];if(!fieldDefs[fieldName]){var suggestions=suggestionList(fieldName,Object.keys(type.getFields()));onError(pathToArray(path),inputValue,new GraphQLError('Field "'.concat(fieldName,'" is not defined by type "').concat(type.name,'".')+didYouMean(suggestions)))}}return coercedValue}if(isLeafType(type)){var parseResult;try{parseResult=type.parseValue(inputValue)}catch(error){error instanceof GraphQLError?onError(pathToArray(path),inputValue,error):onError(pathToArray(path),inputValue,new GraphQLError('Expected type "'.concat(type.name,'". ')+error.message,void 0,void 0,void 0,void 0,error));return}return parseResult===void 0&&onError(pathToArray(path),inputValue,new GraphQLError('Expected type "'.concat(type.name,'".'))),parseResult}invariant(0,"Unexpected input type: "+inspect(type))}function getVariableValues(schema,varDefNodes,inputs,options){var errors=[],maxErrors=options?.maxErrors;try{var coerced=coerceVariableValues(schema,varDefNodes,inputs,function(error){if(maxErrors!=null&&errors.length>=maxErrors)throw new GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");errors.push(error)});if(errors.length===0)return{coerced}}catch(error){errors.push(error)}return{errors}}function coerceVariableValues(schema,varDefNodes,inputs,onError){for(var coercedValues={},_loop=function(_i22){var varDefNode=varDefNodes[_i22],varName=varDefNode.variable.name.value,varType=typeFromAST(schema,varDefNode.type);if(!isInputType(varType)){var varTypeStr=print(varDefNode.type);return onError(new GraphQLError('Variable "$'.concat(varName,'" expected value of type "').concat(varTypeStr,'" which cannot be used as an input type.'),varDefNode.type)),"continue"}if(!values_hasOwnProperty(inputs,varName)){if(varDefNode.defaultValue)coercedValues[varName]=valueFromAST(varDefNode.defaultValue,varType);else if(isNonNullType(varType)){var _varTypeStr=inspect(varType);onError(new GraphQLError('Variable "$'.concat(varName,'" of required type "').concat(_varTypeStr,'" was not provided.'),varDefNode))}return"continue"}var value=inputs[varName];if(value===null&&isNonNullType(varType)){var _varTypeStr2=inspect(varType);return onError(new GraphQLError('Variable "$'.concat(varName,'" of non-null type "').concat(_varTypeStr2,'" must not be null.'),varDefNode)),"continue"}coercedValues[varName]=coerceInputValue(value,varType,function(path,invalidValue,error){var prefix='Variable "$'.concat(varName,'" got invalid value ')+inspect(invalidValue);path.length>0&&(prefix+=' at "'.concat(varName).concat(printPathArray(path),'"')),onError(new GraphQLError(prefix+"; "+error.message,varDefNode,void 0,void 0,void 0,error.originalError))})},_i2=0;_i2<varDefNodes.length;_i2++)var _ret=_loop(_i2);return coercedValues}function getArgumentValues(def,node,variableValues){for(var _node$arguments,coercedValues={},argumentNodes=(_node$arguments=node.arguments)!==null&&_node$arguments!==void 0?_node$arguments:[],argNodeMap=keyMap(argumentNodes,function(arg){return arg.name.value}),_i4=0,_def$args2=def.args;_i4<_def$args2.length;_i4++){var argDef=_def$args2[_i4],name=argDef.name,argType=argDef.type,argumentNode=argNodeMap[name];if(!argumentNode){if(argDef.defaultValue!==void 0)coercedValues[name]=argDef.defaultValue;else if(isNonNullType(argType))throw new GraphQLError('Argument "'.concat(name,'" of required type "').concat(inspect(argType),'" ')+"was not provided.",node);continue}var valueNode=argumentNode.value,isNull=valueNode.kind===Kind.NULL;if(valueNode.kind===Kind.VARIABLE){var variableName=valueNode.name.value;if(variableValues==null||!values_hasOwnProperty(variableValues,variableName)){if(argDef.defaultValue!==void 0)coercedValues[name]=argDef.defaultValue;else if(isNonNullType(argType))throw new GraphQLError('Argument "'.concat(name,'" of required type "').concat(inspect(argType),'" ')+'was provided the variable "$'.concat(variableName,'" which was not provided a runtime value.'),valueNode);continue}isNull=variableValues[variableName]==null}if(isNull&&isNonNullType(argType))throw new GraphQLError('Argument "'.concat(name,'" of non-null type "').concat(inspect(argType),'" ')+"must not be null.",valueNode);var coercedValue=valueFromAST(valueNode,argType,variableValues);if(coercedValue===void 0)throw new GraphQLError('Argument "'.concat(name,'" has invalid value ').concat(print(valueNode),"."),valueNode);coercedValues[name]=coercedValue}return coercedValues}function getDirectiveValues(directiveDef,node,variableValues){var directiveNode=node.directives&&polyfills_find(node.directives,function(directive){return directive.name.value===directiveDef.name});if(directiveNode)return getArgumentValues(directiveDef,directiveNode,variableValues)}function values_hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}function execute(argsOrSchema,document2,rootValue,contextValue,variableValues,operationName,fieldResolver,typeResolver){return arguments.length===1?executeImpl(argsOrSchema):executeImpl({schema:argsOrSchema,document:document2,rootValue,contextValue,variableValues,operationName,fieldResolver,typeResolver})}function executeSync(args){var result=executeImpl(args);if(isPromise(result))throw new Error("GraphQL execution failed to complete synchronously.");return result}function executeImpl(args){var schema=args.schema,document2=args.document,rootValue=args.rootValue,contextValue=args.contextValue,variableValues=args.variableValues,operationName=args.operationName,fieldResolver=args.fieldResolver,typeResolver=args.typeResolver;assertValidExecutionArguments(schema,document2,variableValues);var exeContext=buildExecutionContext(schema,document2,rootValue,contextValue,variableValues,operationName,fieldResolver,typeResolver);if(Array.isArray(exeContext))return{errors:exeContext};var data=executeOperation(exeContext,exeContext.operation,rootValue);return buildResponse(exeContext,data)}function buildResponse(exeContext,data){return isPromise(data)?data.then(function(resolved){return buildResponse(exeContext,resolved)}):exeContext.errors.length===0?{data}:{errors:exeContext.errors,data}}function assertValidExecutionArguments(schema,document2,rawVariableValues){document2||devAssert(0,"Must provide document."),assertValidSchema(schema),rawVariableValues==null||isObjectLike(rawVariableValues)||devAssert(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function buildExecutionContext(schema,document2,rootValue,contextValue,rawVariableValues,operationName,fieldResolver,typeResolver){for(var _definition$name,_operation$variableDe,operation,fragments=Object.create(null),_i2=0,_document$definitions2=document2.definitions;_i2<_document$definitions2.length;_i2++){var definition=_document$definitions2[_i2];switch(definition.kind){case Kind.OPERATION_DEFINITION:if(operationName==null){if(operation!==void 0)return[new GraphQLError("Must provide operation name if query contains multiple operations.")];operation=definition}else((_definition$name=definition.name)===null||_definition$name===void 0?void 0:_definition$name.value)===operationName&&(operation=definition);break;case Kind.FRAGMENT_DEFINITION:fragments[definition.name.value]=definition;break}}if(!operation)return operationName!=null?[new GraphQLError('Unknown operation named "'.concat(operationName,'".'))]:[new GraphQLError("Must provide an operation.")];var variableDefinitions=(_operation$variableDe=operation.variableDefinitions)!==null&&_operation$variableDe!==void 0?_operation$variableDe:[],coercedVariableValues=getVariableValues(schema,variableDefinitions,rawVariableValues??{},{maxErrors:50});return coercedVariableValues.errors?coercedVariableValues.errors:{schema,fragments,rootValue,contextValue,operation,variableValues:coercedVariableValues.coerced,fieldResolver:fieldResolver??defaultFieldResolver,typeResolver:typeResolver??defaultTypeResolver,errors:[]}}function executeOperation(exeContext,operation,rootValue){var type=getOperationRootType(exeContext.schema,operation),fields=collectFields(exeContext,type,operation.selectionSet,Object.create(null),Object.create(null)),path=void 0;try{var result=operation.operation==="mutation"?executeFieldsSerially(exeContext,type,rootValue,path,fields):executeFields(exeContext,type,rootValue,path,fields);return isPromise(result)?result.then(void 0,function(error){return exeContext.errors.push(error),Promise.resolve(null)}):result}catch(error){return exeContext.errors.push(error),null}}function executeFieldsSerially(exeContext,parentType,sourceValue,path,fields){return promiseReduce(Object.keys(fields),function(results,responseName){var fieldNodes=fields[responseName],fieldPath=addPath(path,responseName,parentType.name),result=resolveField(exeContext,parentType,sourceValue,fieldNodes,fieldPath);return result===void 0?results:isPromise(result)?result.then(function(resolvedResult){return results[responseName]=resolvedResult,results}):(results[responseName]=result,results)},Object.create(null))}function executeFields(exeContext,parentType,sourceValue,path,fields){for(var results=Object.create(null),containsPromise=!1,_i4=0,_Object$keys2=Object.keys(fields);_i4<_Object$keys2.length;_i4++){var responseName=_Object$keys2[_i4],fieldNodes=fields[responseName],fieldPath=addPath(path,responseName,parentType.name),result=resolveField(exeContext,parentType,sourceValue,fieldNodes,fieldPath);result!==void 0&&(results[responseName]=result,isPromise(result)&&(containsPromise=!0))}return containsPromise?promiseForObject(results):results}function collectFields(exeContext,runtimeType,selectionSet,fields,visitedFragmentNames){for(var _i6=0,_selectionSet$selecti2=selectionSet.selections;_i6<_selectionSet$selecti2.length;_i6++){var selection=_selectionSet$selecti2[_i6];switch(selection.kind){case Kind.FIELD:{if(!shouldIncludeNode(exeContext,selection))continue;var name=getFieldEntryKey(selection);fields[name]||(fields[name]=[]),fields[name].push(selection);break}case Kind.INLINE_FRAGMENT:{if(!shouldIncludeNode(exeContext,selection)||!doesFragmentConditionMatch(exeContext,selection,runtimeType))continue;collectFields(exeContext,runtimeType,selection.selectionSet,fields,visitedFragmentNames);break}case Kind.FRAGMENT_SPREAD:{var fragName=selection.name.value;if(visitedFragmentNames[fragName]||!shouldIncludeNode(exeContext,selection))continue;visitedFragmentNames[fragName]=!0;var fragment=exeContext.fragments[fragName];if(!fragment||!doesFragmentConditionMatch(exeContext,fragment,runtimeType))continue;collectFields(exeContext,runtimeType,fragment.selectionSet,fields,visitedFragmentNames);break}}}return fields}function shouldIncludeNode(exeContext,node){var skip=getDirectiveValues(GraphQLSkipDirective,node,exeContext.variableValues);if(skip?.if===!0)return!1;var include=getDirectiveValues(GraphQLIncludeDirective,node,exeContext.variableValues);return include?.if!==!1}function doesFragmentConditionMatch(exeContext,fragment,type){var typeConditionNode=fragment.typeCondition;if(!typeConditionNode)return!0;var conditionalType=typeFromAST(exeContext.schema,typeConditionNode);return conditionalType===type?!0:isAbstractType(conditionalType)?exeContext.schema.isSubType(conditionalType,type):!1}function getFieldEntryKey(node){return node.alias?node.alias.value:node.name.value}function resolveField(exeContext,parentType,source,fieldNodes,path){var _fieldDef$resolve,fieldNode=fieldNodes[0],fieldName=fieldNode.name.value,fieldDef=execute_getFieldDef(exeContext.schema,parentType,fieldName);if(!!fieldDef){var returnType=fieldDef.type,resolveFn=(_fieldDef$resolve=fieldDef.resolve)!==null&&_fieldDef$resolve!==void 0?_fieldDef$resolve:exeContext.fieldResolver,info=buildResolveInfo(exeContext,fieldDef,fieldNodes,parentType,path);try{var args=getArgumentValues(fieldDef,fieldNodes[0],exeContext.variableValues),_contextValue=exeContext.contextValue,result=resolveFn(source,args,_contextValue,info),completed;return isPromise(result)?completed=result.then(function(resolved){return completeValue(exeContext,returnType,fieldNodes,info,path,resolved)}):completed=completeValue(exeContext,returnType,fieldNodes,info,path,result),isPromise(completed)?completed.then(void 0,function(rawError){var error2=locatedError(rawError,fieldNodes,pathToArray(path));return handleFieldError(error2,returnType,exeContext)}):completed}catch(rawError){var error=locatedError(rawError,fieldNodes,pathToArray(path));return handleFieldError(error,returnType,exeContext)}}}function buildResolveInfo(exeContext,fieldDef,fieldNodes,parentType,path){return{fieldName:fieldDef.name,fieldNodes,returnType:fieldDef.type,parentType,path,schema:exeContext.schema,fragments:exeContext.fragments,rootValue:exeContext.rootValue,operation:exeContext.operation,variableValues:exeContext.variableValues}}function handleFieldError(error,returnType,exeContext){if(isNonNullType(returnType))throw error;return exeContext.errors.push(error),null}function completeValue(exeContext,returnType,fieldNodes,info,path,result){if(result instanceof Error)throw result;if(isNonNullType(returnType)){var completed=completeValue(exeContext,returnType.ofType,fieldNodes,info,path,result);if(completed===null)throw new Error("Cannot return null for non-nullable field ".concat(info.parentType.name,".").concat(info.fieldName,"."));return completed}if(result==null)return null;if(isListType(returnType))return completeListValue(exeContext,returnType,fieldNodes,info,path,result);if(isLeafType(returnType))return completeLeafValue(returnType,result);if(isAbstractType(returnType))return completeAbstractValue(exeContext,returnType,fieldNodes,info,path,result);if(isObjectType(returnType))return completeObjectValue(exeContext,returnType,fieldNodes,info,path,result);invariant(0,"Cannot complete value of unexpected output type: "+inspect(returnType))}function completeListValue(exeContext,returnType,fieldNodes,info,path,result){var itemType=returnType.ofType,containsPromise=!1,completedResults=safeArrayFrom(result,function(item,index){var itemPath=addPath(path,index,void 0);try{var completedItem;return isPromise(item)?completedItem=item.then(function(resolved){return completeValue(exeContext,itemType,fieldNodes,info,itemPath,resolved)}):completedItem=completeValue(exeContext,itemType,fieldNodes,info,itemPath,item),isPromise(completedItem)?(containsPromise=!0,completedItem.then(void 0,function(rawError){var error2=locatedError(rawError,fieldNodes,pathToArray(itemPath));return handleFieldError(error2,itemType,exeContext)})):completedItem}catch(rawError){var error=locatedError(rawError,fieldNodes,pathToArray(itemPath));return handleFieldError(error,itemType,exeContext)}});if(completedResults==null)throw new GraphQLError('Expected Iterable, but did not find one for field "'.concat(info.parentType.name,".").concat(info.fieldName,'".'));return containsPromise?Promise.all(completedResults):completedResults}function completeLeafValue(returnType,result){var serializedResult=returnType.serialize(result);if(serializedResult===void 0)throw new Error('Expected a value of type "'.concat(inspect(returnType),'" but ')+"received: ".concat(inspect(result)));return serializedResult}function completeAbstractValue(exeContext,returnType,fieldNodes,info,path,result){var _returnType$resolveTy,resolveTypeFn=(_returnType$resolveTy=returnType.resolveType)!==null&&_returnType$resolveTy!==void 0?_returnType$resolveTy:exeContext.typeResolver,contextValue=exeContext.contextValue,runtimeType=resolveTypeFn(result,contextValue,info,returnType);return isPromise(runtimeType)?runtimeType.then(function(resolvedRuntimeType){return completeObjectValue(exeContext,ensureValidRuntimeType(resolvedRuntimeType,exeContext,returnType,fieldNodes,info,result),fieldNodes,info,path,result)}):completeObjectValue(exeContext,ensureValidRuntimeType(runtimeType,exeContext,returnType,fieldNodes,info,result),fieldNodes,info,path,result)}function ensureValidRuntimeType(runtimeTypeOrName,exeContext,returnType,fieldNodes,info,result){if(runtimeTypeOrName==null)throw new GraphQLError('Abstract type "'.concat(returnType.name,'" must resolve to an Object type at runtime for field "').concat(info.parentType.name,".").concat(info.fieldName,'". Either the "').concat(returnType.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),fieldNodes);var runtimeTypeName=isNamedType(runtimeTypeOrName)?runtimeTypeOrName.name:runtimeTypeOrName;if(typeof runtimeTypeName!="string")throw new GraphQLError('Abstract type "'.concat(returnType.name,'" must resolve to an Object type at runtime for field "').concat(info.parentType.name,".").concat(info.fieldName,'" with ')+"value ".concat(inspect(result),', received "').concat(inspect(runtimeTypeOrName),'".'));var runtimeType=exeContext.schema.getType(runtimeTypeName);if(runtimeType==null)throw new GraphQLError('Abstract type "'.concat(returnType.name,'" was resolve to a type "').concat(runtimeTypeName,'" that does not exist inside schema.'),fieldNodes);if(!isObjectType(runtimeType))throw new GraphQLError('Abstract type "'.concat(returnType.name,'" was resolve to a non-object type "').concat(runtimeTypeName,'".'),fieldNodes);if(!exeContext.schema.isSubType(returnType,runtimeType))throw new GraphQLError('Runtime Object type "'.concat(runtimeType.name,'" is not a possible type for "').concat(returnType.name,'".'),fieldNodes);return runtimeType}function completeObjectValue(exeContext,returnType,fieldNodes,info,path,result){if(returnType.isTypeOf){var isTypeOf=returnType.isTypeOf(result,exeContext.contextValue,info);if(isPromise(isTypeOf))return isTypeOf.then(function(resolvedIsTypeOf){if(!resolvedIsTypeOf)throw invalidReturnTypeError(returnType,result,fieldNodes);return collectAndExecuteSubfields(exeContext,returnType,fieldNodes,path,result)});if(!isTypeOf)throw invalidReturnTypeError(returnType,result,fieldNodes)}return collectAndExecuteSubfields(exeContext,returnType,fieldNodes,path,result)}function invalidReturnTypeError(returnType,result,fieldNodes){return new GraphQLError('Expected value of type "'.concat(returnType.name,'" but got: ').concat(inspect(result),"."),fieldNodes)}function collectAndExecuteSubfields(exeContext,returnType,fieldNodes,path,result){var subFieldNodes=collectSubfields(exeContext,returnType,fieldNodes);return executeFields(exeContext,returnType,result,path,subFieldNodes)}var collectSubfields=memoize3(_collectSubfields);function _collectSubfields(exeContext,returnType,fieldNodes){for(var subFieldNodes=Object.create(null),visitedFragmentNames=Object.create(null),_i8=0;_i8<fieldNodes.length;_i8++){var node=fieldNodes[_i8];node.selectionSet&&(subFieldNodes=collectFields(exeContext,returnType,node.selectionSet,subFieldNodes,visitedFragmentNames))}return subFieldNodes}var defaultTypeResolver=function(value,contextValue,info,abstractType){if(isObjectLike(value)&&typeof value.__typename=="string")return value.__typename;for(var possibleTypes=info.schema.getPossibleTypes(abstractType),promisedIsTypeOfResults=[],i=0;i<possibleTypes.length;i++){var type=possibleTypes[i];if(type.isTypeOf){var isTypeOfResult=type.isTypeOf(value,contextValue,info);if(isPromise(isTypeOfResult))promisedIsTypeOfResults[i]=isTypeOfResult;else if(isTypeOfResult)return type.name}}if(promisedIsTypeOfResults.length)return Promise.all(promisedIsTypeOfResults).then(function(isTypeOfResults){for(var _i9=0;_i9<isTypeOfResults.length;_i9++)if(isTypeOfResults[_i9])return possibleTypes[_i9].name})},defaultFieldResolver=function(source,args,contextValue,info){if(isObjectLike(source)||typeof source=="function"){var property=source[info.fieldName];return typeof property=="function"?source[info.fieldName](args,contextValue,info):property}};function execute_getFieldDef(schema,parentType,fieldName){return fieldName===SchemaMetaFieldDef.name&&schema.getQueryType()===parentType?SchemaMetaFieldDef:fieldName===TypeMetaFieldDef.name&&schema.getQueryType()===parentType?TypeMetaFieldDef:fieldName===TypeNameMetaFieldDef.name?TypeNameMetaFieldDef:parentType.getFields()[fieldName]}function graphql(argsOrSchema,source,rootValue,contextValue,variableValues,operationName,fieldResolver,typeResolver){var _arguments=arguments;return new Promise(function(resolve){return resolve(_arguments.length===1?graphqlImpl(argsOrSchema):graphqlImpl({schema:argsOrSchema,source,rootValue,contextValue,variableValues,operationName,fieldResolver,typeResolver}))})}function graphqlSync(argsOrSchema,source,rootValue,contextValue,variableValues,operationName,fieldResolver,typeResolver){var result=arguments.length===1?graphqlImpl(argsOrSchema):graphqlImpl({schema:argsOrSchema,source,rootValue,contextValue,variableValues,operationName,fieldResolver,typeResolver});if(isPromise(result))throw new Error("GraphQL execution failed to complete synchronously.");return result}function graphqlImpl(args){var schema=args.schema,source=args.source,rootValue=args.rootValue,contextValue=args.contextValue,variableValues=args.variableValues,operationName=args.operationName,fieldResolver=args.fieldResolver,typeResolver=args.typeResolver,schemaValidationErrors=validateSchema(schema);if(schemaValidationErrors.length>0)return{errors:schemaValidationErrors};var document2;try{document2=parse(source)}catch(syntaxError2){return{errors:[syntaxError2]}}var validationErrors=validate(schema,document2);return validationErrors.length>0?{errors:validationErrors}:execute({schema,document:document2,rootValue,contextValue,variableValues,operationName,fieldResolver,typeResolver})}function isAsyncIterable(maybeAsyncIterable){return typeof maybeAsyncIterable?.[SYMBOL_ASYNC_ITERATOR]=="function"}function mapAsyncIterator_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function mapAsyncIterator(iterable,callback,rejectCallback){var iteratorMethod=iterable[SYMBOL_ASYNC_ITERATOR],iterator=iteratorMethod.call(iterable),$return,abruptClose;typeof iterator.return=="function"&&($return=iterator.return,abruptClose=function(error){var rethrow=function(){return Promise.reject(error)};return $return.call(iterator).then(rethrow,rethrow)});function mapResult(result){return result.done?result:asyncMapValue(result.value,callback).then(iteratorResult,abruptClose)}var mapReject;if(rejectCallback){var reject=rejectCallback;mapReject=function(error){return asyncMapValue(error,reject).then(iteratorResult,abruptClose)}}return mapAsyncIterator_defineProperty({next:function(){return iterator.next().then(mapResult,mapReject)},return:function(){return $return?$return.call(iterator).then(mapResult,mapReject):Promise.resolve({value:void 0,done:!0})},throw:function(error){return typeof iterator.throw=="function"?iterator.throw(error).then(mapResult,mapReject):Promise.reject(error).catch(abruptClose)}},SYMBOL_ASYNC_ITERATOR,function(){return this})}function asyncMapValue(value,callback){return new Promise(function(resolve){return resolve(callback(value))})}function iteratorResult(value){return{value,done:!1}}function subscribe(argsOrSchema,document2,rootValue,contextValue,variableValues,operationName,fieldResolver,subscribeFieldResolver){return arguments.length===1?subscribeImpl(argsOrSchema):subscribeImpl({schema:argsOrSchema,document:document2,rootValue,contextValue,variableValues,operationName,fieldResolver,subscribeFieldResolver})}function reportGraphQLError(error){if(error instanceof GraphQLError)return{errors:[error]};throw error}function subscribeImpl(args){var schema=args.schema,document2=args.document,rootValue=args.rootValue,contextValue=args.contextValue,variableValues=args.variableValues,operationName=args.operationName,fieldResolver=args.fieldResolver,subscribeFieldResolver=args.subscribeFieldResolver,sourcePromise=createSourceEventStream(schema,document2,rootValue,contextValue,variableValues,operationName,subscribeFieldResolver),mapSourceToResponse=function(payload){return execute({schema,document:document2,rootValue:payload,contextValue,variableValues,operationName,fieldResolver})};return sourcePromise.then(function(resultOrStream){return isAsyncIterable(resultOrStream)?mapAsyncIterator(resultOrStream,mapSourceToResponse,reportGraphQLError):resultOrStream})}function createSourceEventStream(schema,document2,rootValue,contextValue,variableValues,operationName,fieldResolver){return assertValidExecutionArguments(schema,document2,variableValues),new Promise(function(resolve){var exeContext=buildExecutionContext(schema,document2,rootValue,contextValue,variableValues,operationName,fieldResolver);resolve(Array.isArray(exeContext)?{errors:exeContext}:executeSubscription(exeContext))}).catch(reportGraphQLError)}function executeSubscription(exeContext){var schema=exeContext.schema,operation=exeContext.operation,variableValues=exeContext.variableValues,rootValue=exeContext.rootValue,type=getOperationRootType(schema,operation),fields=collectFields(exeContext,type,operation.selectionSet,Object.create(null),Object.create(null)),responseNames=Object.keys(fields),responseName=responseNames[0],fieldNodes=fields[responseName],fieldNode=fieldNodes[0],fieldName=fieldNode.name.value,fieldDef=execute_getFieldDef(schema,type,fieldName);if(!fieldDef)throw new GraphQLError('The subscription field "'.concat(fieldName,'" is not defined.'),fieldNodes);var path=addPath(void 0,responseName,type.name),info=buildResolveInfo(exeContext,fieldDef,fieldNodes,type,path);return new Promise(function(resolveResult){var _fieldDef$subscribe,args=getArgumentValues(fieldDef,fieldNodes[0],variableValues),contextValue=exeContext.contextValue,resolveFn=(_fieldDef$subscribe=fieldDef.subscribe)!==null&&_fieldDef$subscribe!==void 0?_fieldDef$subscribe:exeContext.fieldResolver;resolveResult(resolveFn(rootValue,args,contextValue,info))}).then(function(eventStream){if(eventStream instanceof Error)throw locatedError(eventStream,fieldNodes,pathToArray(path));if(!isAsyncIterable(eventStream))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat(inspect(eventStream),"."));return eventStream},function(error){throw locatedError(error,fieldNodes,pathToArray(path))})}function NoDeprecatedCustomRule(context){return{Field:function(node){var fieldDef=context.getFieldDef(),deprecationReason=fieldDef?.deprecationReason;if(fieldDef&&deprecationReason!=null){var parentType=context.getParentType();parentType!=null||invariant(0),context.reportError(new GraphQLError("The field ".concat(parentType.name,".").concat(fieldDef.name," is deprecated. ").concat(deprecationReason),node))}},Argument:function(node){var argDef=context.getArgument(),deprecationReason=argDef?.deprecationReason;if(argDef&&deprecationReason!=null){var directiveDef=context.getDirective();if(directiveDef!=null)context.reportError(new GraphQLError('Directive "@'.concat(directiveDef.name,'" argument "').concat(argDef.name,'" is deprecated. ').concat(deprecationReason),node));else{var parentType=context.getParentType(),fieldDef=context.getFieldDef();parentType!=null&&fieldDef!=null||invariant(0),context.reportError(new GraphQLError('Field "'.concat(parentType.name,".").concat(fieldDef.name,'" argument "').concat(argDef.name,'" is deprecated. ').concat(deprecationReason),node))}}},ObjectField:function(node){var inputObjectDef=getNamedType(context.getParentInputType());if(isInputObjectType(inputObjectDef)){var inputFieldDef=inputObjectDef.getFields()[node.name.value],deprecationReason=inputFieldDef?.deprecationReason;deprecationReason!=null&&context.reportError(new GraphQLError("The input field ".concat(inputObjectDef.name,".").concat(inputFieldDef.name," is deprecated. ").concat(deprecationReason),node))}},EnumValue:function(node){var enumValueDef=context.getEnumValue(),deprecationReason=enumValueDef?.deprecationReason;if(enumValueDef&&deprecationReason!=null){var enumTypeDef=getNamedType(context.getInputType());enumTypeDef!=null||invariant(0),context.reportError(new GraphQLError('The enum value "'.concat(enumTypeDef.name,".").concat(enumValueDef.name,'" is deprecated. ').concat(deprecationReason),node))}}}}function NoSchemaIntrospectionCustomRule(context){return{Field:function(node){var type=getNamedType(context.getType());type&&isIntrospectionType(type)&&context.reportError(new GraphQLError('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(node.name.value,'".'),node))}}}function formatError(error){var _error$message;error||devAssert(0,"Received null or undefined error.");var message=(_error$message=error.message)!==null&&_error$message!==void 0?_error$message:"An unknown error occurred.",locations=error.locations,path=error.path,extensions=error.extensions;return extensions&&Object.keys(extensions).length>0?{message,locations,path,extensions}:{message,locations,path}}function getIntrospectionQuery_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function getIntrospectionQuery_objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?getIntrospectionQuery_ownKeys(Object(source),!0).forEach(function(key){getIntrospectionQuery_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):getIntrospectionQuery_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function getIntrospectionQuery_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function getIntrospectionQuery(options){var optionsWithDefault=getIntrospectionQuery_objectSpread({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},options),descriptions=optionsWithDefault.descriptions?"description":"",specifiedByUrl=optionsWithDefault.specifiedByUrl?"specifiedByUrl":"",directiveIsRepeatable=optionsWithDefault.directiveIsRepeatable?"isRepeatable":"",schemaDescription=optionsWithDefault.schemaDescription?descriptions:"";function inputDeprecation(str){return optionsWithDefault.inputValueDeprecation?str:""}return`
|
115
|
-
query IntrospectionQuery {
|
116
|
-
__schema {
|
117
|
-
`.concat(schemaDescription,`
|
118
|
-
queryType { name }
|
119
|
-
mutationType { name }
|
120
|
-
subscriptionType { name }
|
121
|
-
types {
|
122
|
-
...FullType
|
123
|
-
}
|
124
|
-
directives {
|
125
|
-
name
|
126
|
-
`).concat(descriptions,`
|
127
|
-
`).concat(directiveIsRepeatable,`
|
128
|
-
locations
|
129
|
-
args`).concat(inputDeprecation("(includeDeprecated: true)"),` {
|
130
|
-
...InputValue
|
131
|
-
}
|
132
|
-
}
|
133
|
-
}
|
134
|
-
}
|
135
|
-
|
136
|
-
fragment FullType on __Type {
|
137
|
-
kind
|
138
|
-
name
|
139
|
-
`).concat(descriptions,`
|
140
|
-
`).concat(specifiedByUrl,`
|
141
|
-
fields(includeDeprecated: true) {
|
142
|
-
name
|
143
|
-
`).concat(descriptions,`
|
144
|
-
args`).concat(inputDeprecation("(includeDeprecated: true)"),` {
|
145
|
-
...InputValue
|
146
|
-
}
|
147
|
-
type {
|
148
|
-
...TypeRef
|
149
|
-
}
|
150
|
-
isDeprecated
|
151
|
-
deprecationReason
|
152
|
-
}
|
153
|
-
inputFields`).concat(inputDeprecation("(includeDeprecated: true)"),` {
|
154
|
-
...InputValue
|
155
|
-
}
|
156
|
-
interfaces {
|
157
|
-
...TypeRef
|
158
|
-
}
|
159
|
-
enumValues(includeDeprecated: true) {
|
160
|
-
name
|
161
|
-
`).concat(descriptions,`
|
162
|
-
isDeprecated
|
163
|
-
deprecationReason
|
164
|
-
}
|
165
|
-
possibleTypes {
|
166
|
-
...TypeRef
|
167
|
-
}
|
168
|
-
}
|
169
|
-
|
170
|
-
fragment InputValue on __InputValue {
|
171
|
-
name
|
172
|
-
`).concat(descriptions,`
|
173
|
-
type { ...TypeRef }
|
174
|
-
defaultValue
|
175
|
-
`).concat(inputDeprecation("isDeprecated"),`
|
176
|
-
`).concat(inputDeprecation("deprecationReason"),`
|
177
|
-
}
|
178
|
-
|
179
|
-
fragment TypeRef on __Type {
|
180
|
-
kind
|
181
|
-
name
|
182
|
-
ofType {
|
183
|
-
kind
|
184
|
-
name
|
185
|
-
ofType {
|
186
|
-
kind
|
187
|
-
name
|
188
|
-
ofType {
|
189
|
-
kind
|
190
|
-
name
|
191
|
-
ofType {
|
192
|
-
kind
|
193
|
-
name
|
194
|
-
ofType {
|
195
|
-
kind
|
196
|
-
name
|
197
|
-
ofType {
|
198
|
-
kind
|
199
|
-
name
|
200
|
-
ofType {
|
201
|
-
kind
|
202
|
-
name
|
203
|
-
}
|
204
|
-
}
|
205
|
-
}
|
206
|
-
}
|
207
|
-
}
|
208
|
-
}
|
209
|
-
}
|
210
|
-
}
|
211
|
-
`)}function getOperationAST(documentAST,operationName){for(var operation=null,_i2=0,_documentAST$definiti2=documentAST.definitions;_i2<_documentAST$definiti2.length;_i2++){var definition=_documentAST$definiti2[_i2];if(definition.kind===Kind.OPERATION_DEFINITION){var _definition$name;if(operationName==null){if(operation)return null;operation=definition}else if(((_definition$name=definition.name)===null||_definition$name===void 0?void 0:_definition$name.value)===operationName)return definition}}return operation}function introspectionFromSchema_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function introspectionFromSchema_objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?introspectionFromSchema_ownKeys(Object(source),!0).forEach(function(key){introspectionFromSchema_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):introspectionFromSchema_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function introspectionFromSchema_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function introspectionFromSchema(schema,options){var optionsWithDefaults=introspectionFromSchema_objectSpread({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},options),document2=parse(getIntrospectionQuery(optionsWithDefaults)),result=executeSync({schema,document:document2});return!result.errors&&result.data||invariant(0),result.data}function buildClientSchema(introspection,options){isObjectLike(introspection)&&isObjectLike(introspection.__schema)||devAssert(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat(inspect(introspection),"."));for(var schemaIntrospection=introspection.__schema,typeMap=keyValMap(schemaIntrospection.types,function(typeIntrospection){return typeIntrospection.name},function(typeIntrospection){return buildType(typeIntrospection)}),_i2=0,_ref2=[].concat(specifiedScalarTypes,introspectionTypes);_i2<_ref2.length;_i2++){var stdType=_ref2[_i2];typeMap[stdType.name]&&(typeMap[stdType.name]=stdType)}var queryType=schemaIntrospection.queryType?getObjectType(schemaIntrospection.queryType):null,mutationType=schemaIntrospection.mutationType?getObjectType(schemaIntrospection.mutationType):null,subscriptionType=schemaIntrospection.subscriptionType?getObjectType(schemaIntrospection.subscriptionType):null,directives=schemaIntrospection.directives?schemaIntrospection.directives.map(buildDirective):[];return new GraphQLSchema({description:schemaIntrospection.description,query:queryType,mutation:mutationType,subscription:subscriptionType,types:polyfills_objectValues(typeMap),directives,assumeValid:options?.assumeValid});function getType(typeRef){if(typeRef.kind===TypeKind.LIST){var itemRef=typeRef.ofType;if(!itemRef)throw new Error("Decorated type deeper than introspection query.");return new GraphQLList(getType(itemRef))}if(typeRef.kind===TypeKind.NON_NULL){var nullableRef=typeRef.ofType;if(!nullableRef)throw new Error("Decorated type deeper than introspection query.");var nullableType=getType(nullableRef);return new GraphQLNonNull(assertNullableType(nullableType))}return getNamedType2(typeRef)}function getNamedType2(typeRef){var typeName=typeRef.name;if(!typeName)throw new Error("Unknown type reference: ".concat(inspect(typeRef),"."));var type=typeMap[typeName];if(!type)throw new Error("Invalid or incomplete schema, unknown type: ".concat(typeName,". Ensure that a full introspection query is used in order to build a client schema."));return type}function getObjectType(typeRef){return assertObjectType(getNamedType2(typeRef))}function getInterfaceType(typeRef){return assertInterfaceType(getNamedType2(typeRef))}function buildType(type){if(type!=null&&type.name!=null&&type.kind!=null)switch(type.kind){case TypeKind.SCALAR:return buildScalarDef(type);case TypeKind.OBJECT:return buildObjectDef(type);case TypeKind.INTERFACE:return buildInterfaceDef(type);case TypeKind.UNION:return buildUnionDef(type);case TypeKind.ENUM:return buildEnumDef(type);case TypeKind.INPUT_OBJECT:return buildInputObjectDef(type)}var typeStr=inspect(type);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(typeStr,"."))}function buildScalarDef(scalarIntrospection){return new GraphQLScalarType({name:scalarIntrospection.name,description:scalarIntrospection.description,specifiedByUrl:scalarIntrospection.specifiedByUrl})}function buildImplementationsList(implementingIntrospection){if(implementingIntrospection.interfaces===null&&implementingIntrospection.kind===TypeKind.INTERFACE)return[];if(!implementingIntrospection.interfaces){var implementingIntrospectionStr=inspect(implementingIntrospection);throw new Error("Introspection result missing interfaces: ".concat(implementingIntrospectionStr,"."))}return implementingIntrospection.interfaces.map(getInterfaceType)}function buildObjectDef(objectIntrospection){return new GraphQLObjectType({name:objectIntrospection.name,description:objectIntrospection.description,interfaces:function(){return buildImplementationsList(objectIntrospection)},fields:function(){return buildFieldDefMap(objectIntrospection)}})}function buildInterfaceDef(interfaceIntrospection){return new GraphQLInterfaceType({name:interfaceIntrospection.name,description:interfaceIntrospection.description,interfaces:function(){return buildImplementationsList(interfaceIntrospection)},fields:function(){return buildFieldDefMap(interfaceIntrospection)}})}function buildUnionDef(unionIntrospection){if(!unionIntrospection.possibleTypes){var unionIntrospectionStr=inspect(unionIntrospection);throw new Error("Introspection result missing possibleTypes: ".concat(unionIntrospectionStr,"."))}return new GraphQLUnionType({name:unionIntrospection.name,description:unionIntrospection.description,types:function(){return unionIntrospection.possibleTypes.map(getObjectType)}})}function buildEnumDef(enumIntrospection){if(!enumIntrospection.enumValues){var enumIntrospectionStr=inspect(enumIntrospection);throw new Error("Introspection result missing enumValues: ".concat(enumIntrospectionStr,"."))}return new GraphQLEnumType({name:enumIntrospection.name,description:enumIntrospection.description,values:keyValMap(enumIntrospection.enumValues,function(valueIntrospection){return valueIntrospection.name},function(valueIntrospection){return{description:valueIntrospection.description,deprecationReason:valueIntrospection.deprecationReason}})})}function buildInputObjectDef(inputObjectIntrospection){if(!inputObjectIntrospection.inputFields){var inputObjectIntrospectionStr=inspect(inputObjectIntrospection);throw new Error("Introspection result missing inputFields: ".concat(inputObjectIntrospectionStr,"."))}return new GraphQLInputObjectType({name:inputObjectIntrospection.name,description:inputObjectIntrospection.description,fields:function(){return buildInputValueDefMap(inputObjectIntrospection.inputFields)}})}function buildFieldDefMap(typeIntrospection){if(!typeIntrospection.fields)throw new Error("Introspection result missing fields: ".concat(inspect(typeIntrospection),"."));return keyValMap(typeIntrospection.fields,function(fieldIntrospection){return fieldIntrospection.name},buildField)}function buildField(fieldIntrospection){var type=getType(fieldIntrospection.type);if(!isOutputType(type)){var typeStr=inspect(type);throw new Error("Introspection must provide output type for fields, but received: ".concat(typeStr,"."))}if(!fieldIntrospection.args){var fieldIntrospectionStr=inspect(fieldIntrospection);throw new Error("Introspection result missing field args: ".concat(fieldIntrospectionStr,"."))}return{description:fieldIntrospection.description,deprecationReason:fieldIntrospection.deprecationReason,type,args:buildInputValueDefMap(fieldIntrospection.args)}}function buildInputValueDefMap(inputValueIntrospections){return keyValMap(inputValueIntrospections,function(inputValue){return inputValue.name},buildInputValue)}function buildInputValue(inputValueIntrospection){var type=getType(inputValueIntrospection.type);if(!isInputType(type)){var typeStr=inspect(type);throw new Error("Introspection must provide input type for arguments, but received: ".concat(typeStr,"."))}var defaultValue=inputValueIntrospection.defaultValue!=null?valueFromAST(parseValue(inputValueIntrospection.defaultValue),type):void 0;return{description:inputValueIntrospection.description,type,defaultValue,deprecationReason:inputValueIntrospection.deprecationReason}}function buildDirective(directiveIntrospection){if(!directiveIntrospection.args){var directiveIntrospectionStr=inspect(directiveIntrospection);throw new Error("Introspection result missing directive args: ".concat(directiveIntrospectionStr,"."))}if(!directiveIntrospection.locations){var _directiveIntrospectionStr=inspect(directiveIntrospection);throw new Error("Introspection result missing directive locations: ".concat(_directiveIntrospectionStr,"."))}return new GraphQLDirective({name:directiveIntrospection.name,description:directiveIntrospection.description,isRepeatable:directiveIntrospection.isRepeatable,locations:directiveIntrospection.locations.slice(),args:buildInputValueDefMap(directiveIntrospection.args)})}}function extendSchema_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function extendSchema_objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?extendSchema_ownKeys(Object(source),!0).forEach(function(key){extendSchema_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):extendSchema_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function extendSchema_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function extendSchema(schema,documentAST,options){assertSchema(schema),documentAST!=null&&documentAST.kind===Kind.DOCUMENT||devAssert(0,"Must provide valid Document AST."),options?.assumeValid!==!0&&options?.assumeValidSDL!==!0&&assertValidSDLExtension(documentAST,schema);var schemaConfig=schema.toConfig(),extendedConfig=extendSchemaImpl(schemaConfig,documentAST,options);return schemaConfig===extendedConfig?schema:new GraphQLSchema(extendedConfig)}function extendSchemaImpl(schemaConfig,documentAST,options){for(var _schemaDef,_schemaDef$descriptio,_schemaDef2,_options$assumeValid,typeDefs=[],typeExtensionsMap=Object.create(null),directiveDefs=[],schemaDef,schemaExtensions=[],_i2=0,_documentAST$definiti2=documentAST.definitions;_i2<_documentAST$definiti2.length;_i2++){var def=_documentAST$definiti2[_i2];if(def.kind===Kind.SCHEMA_DEFINITION)schemaDef=def;else if(def.kind===Kind.SCHEMA_EXTENSION)schemaExtensions.push(def);else if(isTypeDefinitionNode(def))typeDefs.push(def);else if(isTypeExtensionNode(def)){var extendedTypeName=def.name.value,existingTypeExtensions=typeExtensionsMap[extendedTypeName];typeExtensionsMap[extendedTypeName]=existingTypeExtensions?existingTypeExtensions.concat([def]):[def]}else def.kind===Kind.DIRECTIVE_DEFINITION&&directiveDefs.push(def)}if(Object.keys(typeExtensionsMap).length===0&&typeDefs.length===0&&directiveDefs.length===0&&schemaExtensions.length===0&&schemaDef==null)return schemaConfig;for(var typeMap=Object.create(null),_i4=0,_schemaConfig$types2=schemaConfig.types;_i4<_schemaConfig$types2.length;_i4++){var existingType=_schemaConfig$types2[_i4];typeMap[existingType.name]=extendNamedType(existingType)}for(var _i6=0;_i6<typeDefs.length;_i6++){var _stdTypeMap$name,typeNode=typeDefs[_i6],name=typeNode.name.value;typeMap[name]=(_stdTypeMap$name=stdTypeMap[name])!==null&&_stdTypeMap$name!==void 0?_stdTypeMap$name:buildType(typeNode)}var operationTypes=extendSchema_objectSpread(extendSchema_objectSpread({query:schemaConfig.query&&replaceNamedType(schemaConfig.query),mutation:schemaConfig.mutation&&replaceNamedType(schemaConfig.mutation),subscription:schemaConfig.subscription&&replaceNamedType(schemaConfig.subscription)},schemaDef&&getOperationTypes([schemaDef])),getOperationTypes(schemaExtensions));return extendSchema_objectSpread(extendSchema_objectSpread({description:(_schemaDef=schemaDef)===null||_schemaDef===void 0||(_schemaDef$descriptio=_schemaDef.description)===null||_schemaDef$descriptio===void 0?void 0:_schemaDef$descriptio.value},operationTypes),{},{types:polyfills_objectValues(typeMap),directives:[].concat(schemaConfig.directives.map(replaceDirective),directiveDefs.map(buildDirective)),extensions:void 0,astNode:(_schemaDef2=schemaDef)!==null&&_schemaDef2!==void 0?_schemaDef2:schemaConfig.astNode,extensionASTNodes:schemaConfig.extensionASTNodes.concat(schemaExtensions),assumeValid:(_options$assumeValid=options?.assumeValid)!==null&&_options$assumeValid!==void 0?_options$assumeValid:!1});function replaceType(type){return isListType(type)?new GraphQLList(replaceType(type.ofType)):isNonNullType(type)?new GraphQLNonNull(replaceType(type.ofType)):replaceNamedType(type)}function replaceNamedType(type){return typeMap[type.name]}function replaceDirective(directive){var config=directive.toConfig();return new GraphQLDirective(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{args:mapValue(config.args,extendArg)}))}function extendNamedType(type){if(isIntrospectionType(type)||isSpecifiedScalarType(type))return type;if(isScalarType(type))return extendScalarType(type);if(isObjectType(type))return extendObjectType(type);if(isInterfaceType(type))return extendInterfaceType(type);if(isUnionType(type))return extendUnionType(type);if(isEnumType(type))return extendEnumType(type);if(isInputObjectType(type))return extendInputObjectType(type);invariant(0,"Unexpected type: "+inspect(type))}function extendInputObjectType(type){var _typeExtensionsMap$co,config=type.toConfig(),extensions=(_typeExtensionsMap$co=typeExtensionsMap[config.name])!==null&&_typeExtensionsMap$co!==void 0?_typeExtensionsMap$co:[];return new GraphQLInputObjectType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{fields:function(){return extendSchema_objectSpread(extendSchema_objectSpread({},mapValue(config.fields,function(field){return extendSchema_objectSpread(extendSchema_objectSpread({},field),{},{type:replaceType(field.type)})})),buildInputFieldMap(extensions))},extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendEnumType(type){var _typeExtensionsMap$ty,config=type.toConfig(),extensions=(_typeExtensionsMap$ty=typeExtensionsMap[type.name])!==null&&_typeExtensionsMap$ty!==void 0?_typeExtensionsMap$ty:[];return new GraphQLEnumType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{values:extendSchema_objectSpread(extendSchema_objectSpread({},config.values),buildEnumValueMap(extensions)),extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendScalarType(type){for(var _typeExtensionsMap$co2,config=type.toConfig(),extensions=(_typeExtensionsMap$co2=typeExtensionsMap[config.name])!==null&&_typeExtensionsMap$co2!==void 0?_typeExtensionsMap$co2:[],specifiedByUrl=config.specifiedByUrl,_i8=0;_i8<extensions.length;_i8++){var _getSpecifiedByUrl,extensionNode=extensions[_i8];specifiedByUrl=(_getSpecifiedByUrl=getSpecifiedByUrl(extensionNode))!==null&&_getSpecifiedByUrl!==void 0?_getSpecifiedByUrl:specifiedByUrl}return new GraphQLScalarType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{specifiedByUrl,extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendObjectType(type){var _typeExtensionsMap$co3,config=type.toConfig(),extensions=(_typeExtensionsMap$co3=typeExtensionsMap[config.name])!==null&&_typeExtensionsMap$co3!==void 0?_typeExtensionsMap$co3:[];return new GraphQLObjectType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{interfaces:function(){return[].concat(type.getInterfaces().map(replaceNamedType),buildInterfaces(extensions))},fields:function(){return extendSchema_objectSpread(extendSchema_objectSpread({},mapValue(config.fields,extendField)),buildFieldMap(extensions))},extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendInterfaceType(type){var _typeExtensionsMap$co4,config=type.toConfig(),extensions=(_typeExtensionsMap$co4=typeExtensionsMap[config.name])!==null&&_typeExtensionsMap$co4!==void 0?_typeExtensionsMap$co4:[];return new GraphQLInterfaceType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{interfaces:function(){return[].concat(type.getInterfaces().map(replaceNamedType),buildInterfaces(extensions))},fields:function(){return extendSchema_objectSpread(extendSchema_objectSpread({},mapValue(config.fields,extendField)),buildFieldMap(extensions))},extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendUnionType(type){var _typeExtensionsMap$co5,config=type.toConfig(),extensions=(_typeExtensionsMap$co5=typeExtensionsMap[config.name])!==null&&_typeExtensionsMap$co5!==void 0?_typeExtensionsMap$co5:[];return new GraphQLUnionType(extendSchema_objectSpread(extendSchema_objectSpread({},config),{},{types:function(){return[].concat(type.getTypes().map(replaceNamedType),buildUnionTypes(extensions))},extensionASTNodes:config.extensionASTNodes.concat(extensions)}))}function extendField(field){return extendSchema_objectSpread(extendSchema_objectSpread({},field),{},{type:replaceType(field.type),args:mapValue(field.args,extendArg)})}function extendArg(arg){return extendSchema_objectSpread(extendSchema_objectSpread({},arg),{},{type:replaceType(arg.type)})}function getOperationTypes(nodes){for(var opTypes={},_i10=0;_i10<nodes.length;_i10++)for(var _node$operationTypes,node=nodes[_i10],operationTypesNodes=(_node$operationTypes=node.operationTypes)!==null&&_node$operationTypes!==void 0?_node$operationTypes:[],_i12=0;_i12<operationTypesNodes.length;_i12++){var operationType=operationTypesNodes[_i12];opTypes[operationType.operation]=getNamedType2(operationType.type)}return opTypes}function getNamedType2(node){var _stdTypeMap$name2,name2=node.name.value,type=(_stdTypeMap$name2=stdTypeMap[name2])!==null&&_stdTypeMap$name2!==void 0?_stdTypeMap$name2:typeMap[name2];if(type===void 0)throw new Error('Unknown type: "'.concat(name2,'".'));return type}function getWrappedType(node){return node.kind===Kind.LIST_TYPE?new GraphQLList(getWrappedType(node.type)):node.kind===Kind.NON_NULL_TYPE?new GraphQLNonNull(getWrappedType(node.type)):getNamedType2(node)}function buildDirective(node){var locations=node.locations.map(function(_ref){var value=_ref.value;return value});return new GraphQLDirective({name:node.name.value,description:getDescription(node,options),locations,isRepeatable:node.repeatable,args:buildArgumentMap(node.arguments),astNode:node})}function buildFieldMap(nodes){for(var fieldConfigMap=Object.create(null),_i14=0;_i14<nodes.length;_i14++)for(var _node$fields,node=nodes[_i14],nodeFields=(_node$fields=node.fields)!==null&&_node$fields!==void 0?_node$fields:[],_i16=0;_i16<nodeFields.length;_i16++){var field=nodeFields[_i16];fieldConfigMap[field.name.value]={type:getWrappedType(field.type),description:getDescription(field,options),args:buildArgumentMap(field.arguments),deprecationReason:getDeprecationReason(field),astNode:field}}return fieldConfigMap}function buildArgumentMap(args){for(var argsNodes=args??[],argConfigMap=Object.create(null),_i18=0;_i18<argsNodes.length;_i18++){var arg=argsNodes[_i18],type=getWrappedType(arg.type);argConfigMap[arg.name.value]={type,description:getDescription(arg,options),defaultValue:valueFromAST(arg.defaultValue,type),deprecationReason:getDeprecationReason(arg),astNode:arg}}return argConfigMap}function buildInputFieldMap(nodes){for(var inputFieldMap=Object.create(null),_i20=0;_i20<nodes.length;_i20++)for(var _node$fields2,node=nodes[_i20],fieldsNodes=(_node$fields2=node.fields)!==null&&_node$fields2!==void 0?_node$fields2:[],_i22=0;_i22<fieldsNodes.length;_i22++){var field=fieldsNodes[_i22],type=getWrappedType(field.type);inputFieldMap[field.name.value]={type,description:getDescription(field,options),defaultValue:valueFromAST(field.defaultValue,type),deprecationReason:getDeprecationReason(field),astNode:field}}return inputFieldMap}function buildEnumValueMap(nodes){for(var enumValueMap=Object.create(null),_i24=0;_i24<nodes.length;_i24++)for(var _node$values,node=nodes[_i24],valuesNodes=(_node$values=node.values)!==null&&_node$values!==void 0?_node$values:[],_i26=0;_i26<valuesNodes.length;_i26++){var value=valuesNodes[_i26];enumValueMap[value.name.value]={description:getDescription(value,options),deprecationReason:getDeprecationReason(value),astNode:value}}return enumValueMap}function buildInterfaces(nodes){for(var interfaces=[],_i28=0;_i28<nodes.length;_i28++)for(var _node$interfaces,node=nodes[_i28],interfacesNodes=(_node$interfaces=node.interfaces)!==null&&_node$interfaces!==void 0?_node$interfaces:[],_i30=0;_i30<interfacesNodes.length;_i30++){var type=interfacesNodes[_i30];interfaces.push(getNamedType2(type))}return interfaces}function buildUnionTypes(nodes){for(var types=[],_i32=0;_i32<nodes.length;_i32++)for(var _node$types,node=nodes[_i32],typeNodes=(_node$types=node.types)!==null&&_node$types!==void 0?_node$types:[],_i34=0;_i34<typeNodes.length;_i34++){var type=typeNodes[_i34];types.push(getNamedType2(type))}return types}function buildType(astNode){var _typeExtensionsMap$na,name2=astNode.name.value,description=getDescription(astNode,options),extensionNodes=(_typeExtensionsMap$na=typeExtensionsMap[name2])!==null&&_typeExtensionsMap$na!==void 0?_typeExtensionsMap$na:[];switch(astNode.kind){case Kind.OBJECT_TYPE_DEFINITION:{var extensionASTNodes=extensionNodes,allNodes=[astNode].concat(extensionASTNodes);return new GraphQLObjectType({name:name2,description,interfaces:function(){return buildInterfaces(allNodes)},fields:function(){return buildFieldMap(allNodes)},astNode,extensionASTNodes})}case Kind.INTERFACE_TYPE_DEFINITION:{var _extensionASTNodes=extensionNodes,_allNodes=[astNode].concat(_extensionASTNodes);return new GraphQLInterfaceType({name:name2,description,interfaces:function(){return buildInterfaces(_allNodes)},fields:function(){return buildFieldMap(_allNodes)},astNode,extensionASTNodes:_extensionASTNodes})}case Kind.ENUM_TYPE_DEFINITION:{var _extensionASTNodes2=extensionNodes,_allNodes2=[astNode].concat(_extensionASTNodes2);return new GraphQLEnumType({name:name2,description,values:buildEnumValueMap(_allNodes2),astNode,extensionASTNodes:_extensionASTNodes2})}case Kind.UNION_TYPE_DEFINITION:{var _extensionASTNodes3=extensionNodes,_allNodes3=[astNode].concat(_extensionASTNodes3);return new GraphQLUnionType({name:name2,description,types:function(){return buildUnionTypes(_allNodes3)},astNode,extensionASTNodes:_extensionASTNodes3})}case Kind.SCALAR_TYPE_DEFINITION:{var _extensionASTNodes4=extensionNodes;return new GraphQLScalarType({name:name2,description,specifiedByUrl:getSpecifiedByUrl(astNode),astNode,extensionASTNodes:_extensionASTNodes4})}case Kind.INPUT_OBJECT_TYPE_DEFINITION:{var _extensionASTNodes5=extensionNodes,_allNodes4=[astNode].concat(_extensionASTNodes5);return new GraphQLInputObjectType({name:name2,description,fields:function(){return buildInputFieldMap(_allNodes4)},astNode,extensionASTNodes:_extensionASTNodes5})}}invariant(0,"Unexpected type definition node: "+inspect(astNode))}}var stdTypeMap=keyMap(specifiedScalarTypes.concat(introspectionTypes),function(type){return type.name});function getDeprecationReason(node){var deprecated=getDirectiveValues(GraphQLDeprecatedDirective,node);return deprecated?.reason}function getSpecifiedByUrl(node){var specifiedBy=getDirectiveValues(GraphQLSpecifiedByDirective,node);return specifiedBy?.url}function getDescription(node,options){if(node.description)return node.description.value;if(options?.commentDescriptions===!0){var rawValue=getLeadingCommentBlock(node);if(rawValue!==void 0)return dedentBlockStringValue(`
|
212
|
-
`+rawValue)}}function getLeadingCommentBlock(node){var loc=node.loc;if(!!loc){for(var comments=[],token=loc.startToken.prev;token!=null&&token.kind===TokenKind.COMMENT&&token.next&&token.prev&&token.line+1===token.next.line&&token.line!==token.prev.line;){var value=String(token.value);comments.push(value),token=token.prev}return comments.length>0?comments.reverse().join(`
|
213
|
-
`):void 0}}function buildASTSchema(documentAST,options){documentAST!=null&&documentAST.kind===Kind.DOCUMENT||devAssert(0,"Must provide valid Document AST."),options?.assumeValid!==!0&&options?.assumeValidSDL!==!0&&assertValidSDL(documentAST);var emptySchemaConfig={description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},config=extendSchemaImpl(emptySchemaConfig,documentAST,options);if(config.astNode==null)for(var _i2=0,_config$types2=config.types;_i2<_config$types2.length;_i2++){var type=_config$types2[_i2];switch(type.name){case"Query":config.query=type;break;case"Mutation":config.mutation=type;break;case"Subscription":config.subscription=type;break}}for(var directives=config.directives,_loop=function(_i42){var stdDirective=specifiedDirectives[_i42];directives.every(function(directive){return directive.name!==stdDirective.name})&&directives.push(stdDirective)},_i4=0;_i4<specifiedDirectives.length;_i4++)_loop(_i4);return new GraphQLSchema(config)}function buildSchema(source,options){var document2=parse(source,{noLocation:options?.noLocation,allowLegacySDLEmptyFields:options?.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:options?.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:options?.experimentalFragmentVariables});return buildASTSchema(document2,{commentDescriptions:options?.commentDescriptions,assumeValidSDL:options?.assumeValidSDL,assumeValid:options?.assumeValid})}function lexicographicSortSchema_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function lexicographicSortSchema_objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?lexicographicSortSchema_ownKeys(Object(source),!0).forEach(function(key){lexicographicSortSchema_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):lexicographicSortSchema_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function lexicographicSortSchema_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function lexicographicSortSchema(schema){var schemaConfig=schema.toConfig(),typeMap=keyValMap(sortByName(schemaConfig.types),function(type){return type.name},sortNamedType);return new GraphQLSchema(lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},schemaConfig),{},{types:polyfills_objectValues(typeMap),directives:sortByName(schemaConfig.directives).map(sortDirective),query:replaceMaybeType(schemaConfig.query),mutation:replaceMaybeType(schemaConfig.mutation),subscription:replaceMaybeType(schemaConfig.subscription)}));function replaceType(type){return isListType(type)?new GraphQLList(replaceType(type.ofType)):isNonNullType(type)?new GraphQLNonNull(replaceType(type.ofType)):replaceNamedType(type)}function replaceNamedType(type){return typeMap[type.name]}function replaceMaybeType(maybeType){return maybeType&&replaceNamedType(maybeType)}function sortDirective(directive){var config=directive.toConfig();return new GraphQLDirective(lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},config),{},{locations:sortBy(config.locations,function(x){return x}),args:sortArgs(config.args)}))}function sortArgs(args){return sortObjMap(args,function(arg){return lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},arg),{},{type:replaceType(arg.type)})})}function sortFields(fieldsMap){return sortObjMap(fieldsMap,function(field){return lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},field),{},{type:replaceType(field.type),args:sortArgs(field.args)})})}function sortInputFields(fieldsMap){return sortObjMap(fieldsMap,function(field){return lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},field),{},{type:replaceType(field.type)})})}function sortTypes(arr){return sortByName(arr).map(replaceNamedType)}function sortNamedType(type){if(isScalarType(type)||isIntrospectionType(type))return type;if(isObjectType(type)){var config=type.toConfig();return new GraphQLObjectType(lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},config),{},{interfaces:function(){return sortTypes(config.interfaces)},fields:function(){return sortFields(config.fields)}}))}if(isInterfaceType(type)){var _config=type.toConfig();return new GraphQLInterfaceType(lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},_config),{},{interfaces:function(){return sortTypes(_config.interfaces)},fields:function(){return sortFields(_config.fields)}}))}if(isUnionType(type)){var _config2=type.toConfig();return new GraphQLUnionType(lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},_config2),{},{types:function(){return sortTypes(_config2.types)}}))}if(isEnumType(type)){var _config3=type.toConfig();return new GraphQLEnumType(lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},_config3),{},{values:sortObjMap(_config3.values)}))}if(isInputObjectType(type)){var _config4=type.toConfig();return new GraphQLInputObjectType(lexicographicSortSchema_objectSpread(lexicographicSortSchema_objectSpread({},_config4),{},{fields:function(){return sortInputFields(_config4.fields)}}))}invariant(0,"Unexpected type: "+inspect(type))}}function sortObjMap(map,sortValueFn){for(var sortedMap=Object.create(null),sortedKeys=sortBy(Object.keys(map),function(x){return x}),_i2=0;_i2<sortedKeys.length;_i2++){var key=sortedKeys[_i2],value=map[key];sortedMap[key]=sortValueFn?sortValueFn(value):value}return sortedMap}function sortByName(array){return sortBy(array,function(obj){return obj.name})}function sortBy(array,mapToKey){return array.slice().sort(function(obj1,obj2){var key1=mapToKey(obj1),key2=mapToKey(obj2);return naturalCompare(key1,key2)})}function printSchema(schema,options){return printFilteredSchema(schema,function(n){return!isSpecifiedDirective(n)},isDefinedType,options)}function printIntrospectionSchema(schema,options){return printFilteredSchema(schema,isSpecifiedDirective,isIntrospectionType,options)}function isDefinedType(type){return!isSpecifiedScalarType(type)&&!isIntrospectionType(type)}function printFilteredSchema(schema,directiveFilter,typeFilter,options){var directives=schema.getDirectives().filter(directiveFilter),types=polyfills_objectValues(schema.getTypeMap()).filter(typeFilter);return[printSchemaDefinition(schema)].concat(directives.map(function(directive){return printDirective(directive,options)}),types.map(function(type){return printType(type,options)})).filter(Boolean).join(`
|
214
|
-
|
215
|
-
`)+`
|
216
|
-
`}function printSchemaDefinition(schema){if(!(schema.description==null&&isSchemaOfCommonNames(schema))){var operationTypes=[],queryType=schema.getQueryType();queryType&&operationTypes.push(" query: ".concat(queryType.name));var mutationType=schema.getMutationType();mutationType&&operationTypes.push(" mutation: ".concat(mutationType.name));var subscriptionType=schema.getSubscriptionType();return subscriptionType&&operationTypes.push(" subscription: ".concat(subscriptionType.name)),printDescription({},schema)+`schema {
|
217
|
-
`.concat(operationTypes.join(`
|
218
|
-
`),`
|
219
|
-
}`)}}function isSchemaOfCommonNames(schema){var queryType=schema.getQueryType();if(queryType&&queryType.name!=="Query")return!1;var mutationType=schema.getMutationType();if(mutationType&&mutationType.name!=="Mutation")return!1;var subscriptionType=schema.getSubscriptionType();return!(subscriptionType&&subscriptionType.name!=="Subscription")}function printType(type,options){if(isScalarType(type))return printScalar(type,options);if(isObjectType(type))return printObject(type,options);if(isInterfaceType(type))return printInterface(type,options);if(isUnionType(type))return printUnion(type,options);if(isEnumType(type))return printEnum(type,options);if(isInputObjectType(type))return printInputObject(type,options);invariant(0,"Unexpected type: "+inspect(type))}function printScalar(type,options){return printDescription(options,type)+"scalar ".concat(type.name)+printSpecifiedByUrl(type)}function printImplementedInterfaces(type){var interfaces=type.getInterfaces();return interfaces.length?" implements "+interfaces.map(function(i){return i.name}).join(" & "):""}function printObject(type,options){return printDescription(options,type)+"type ".concat(type.name)+printImplementedInterfaces(type)+printFields(options,type)}function printInterface(type,options){return printDescription(options,type)+"interface ".concat(type.name)+printImplementedInterfaces(type)+printFields(options,type)}function printUnion(type,options){var types=type.getTypes(),possibleTypes=types.length?" = "+types.join(" | "):"";return printDescription(options,type)+"union "+type.name+possibleTypes}function printEnum(type,options){var values=type.getValues().map(function(value,i){return printDescription(options,value," ",!i)+" "+value.name+printDeprecated(value.deprecationReason)});return printDescription(options,type)+"enum ".concat(type.name)+printBlock(values)}function printInputObject(type,options){var fields=polyfills_objectValues(type.getFields()).map(function(f,i){return printDescription(options,f," ",!i)+" "+printInputValue(f)});return printDescription(options,type)+"input ".concat(type.name)+printBlock(fields)}function printFields(options,type){var fields=polyfills_objectValues(type.getFields()).map(function(f,i){return printDescription(options,f," ",!i)+" "+f.name+printArgs(options,f.args," ")+": "+String(f.type)+printDeprecated(f.deprecationReason)});return printBlock(fields)}function printBlock(items){return items.length!==0?` {
|
220
|
-
`+items.join(`
|
221
|
-
`)+`
|
222
|
-
}`:""}function printArgs(options,args){var indentation=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return args.length===0?"":args.every(function(arg){return!arg.description})?"("+args.map(printInputValue).join(", ")+")":`(
|
223
|
-
`+args.map(function(arg,i){return printDescription(options,arg," "+indentation,!i)+" "+indentation+printInputValue(arg)}).join(`
|
224
|
-
`)+`
|
225
|
-
`+indentation+")"}function printInputValue(arg){var defaultAST=astFromValue(arg.defaultValue,arg.type),argDecl=arg.name+": "+String(arg.type);return defaultAST&&(argDecl+=" = ".concat(print(defaultAST))),argDecl+printDeprecated(arg.deprecationReason)}function printDirective(directive,options){return printDescription(options,directive)+"directive @"+directive.name+printArgs(options,directive.args)+(directive.isRepeatable?" repeatable":"")+" on "+directive.locations.join(" | ")}function printDeprecated(reason){if(reason==null)return"";var reasonAST=astFromValue(reason,GraphQLString);return reasonAST&&reason!==DEFAULT_DEPRECATION_REASON?" @deprecated(reason: "+print(reasonAST)+")":" @deprecated"}function printSpecifiedByUrl(scalar){if(scalar.specifiedByUrl==null)return"";var url=scalar.specifiedByUrl,urlAST=astFromValue(url,GraphQLString);return urlAST||invariant(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+print(urlAST)+")"}function printDescription(options,def){var indentation=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",firstInBlock=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,description=def.description;if(description==null)return"";if(options?.commentDescriptions===!0)return printDescriptionWithComments(description,indentation,firstInBlock);var preferMultipleLines=description.length>70,blockString=printBlockString(description,"",preferMultipleLines),prefix=indentation&&!firstInBlock?`
|
226
|
-
`+indentation:indentation;return prefix+blockString.replace(/\n/g,`
|
227
|
-
`+indentation)+`
|
228
|
-
`}function printDescriptionWithComments(description,indentation,firstInBlock){var prefix=indentation&&!firstInBlock?`
|
229
|
-
`:"",comment=description.split(`
|
230
|
-
`).map(function(line){return indentation+(line!==""?"# "+line:"#")}).join(`
|
231
|
-
`);return prefix+comment+`
|
232
|
-
`}function concatAST(documents){for(var definitions=[],_i2=0;_i2<documents.length;_i2++){var doc=documents[_i2];definitions=definitions.concat(doc.definitions)}return{kind:"Document",definitions}}function separateOperations(documentAST){for(var operations=[],depGraph=Object.create(null),_i2=0,_documentAST$definiti2=documentAST.definitions;_i2<_documentAST$definiti2.length;_i2++){var definitionNode=_documentAST$definiti2[_i2];switch(definitionNode.kind){case Kind.OPERATION_DEFINITION:operations.push(definitionNode);break;case Kind.FRAGMENT_DEFINITION:depGraph[definitionNode.name.value]=collectDependencies(definitionNode.selectionSet);break}}for(var separatedDocumentASTs=Object.create(null),_loop=function(_i42){for(var operation=operations[_i42],dependencies=new Set,_i6=0,_collectDependencies2=collectDependencies(operation.selectionSet);_i6<_collectDependencies2.length;_i6++){var fragmentName=_collectDependencies2[_i6];collectTransitiveDependencies(dependencies,depGraph,fragmentName)}var operationName=operation.name?operation.name.value:"";separatedDocumentASTs[operationName]={kind:Kind.DOCUMENT,definitions:documentAST.definitions.filter(function(node){return node===operation||node.kind===Kind.FRAGMENT_DEFINITION&&dependencies.has(node.name.value)})}},_i4=0;_i4<operations.length;_i4++)_loop(_i4);return separatedDocumentASTs}function collectTransitiveDependencies(collected,depGraph,fromName){if(!collected.has(fromName)){collected.add(fromName);var immediateDeps=depGraph[fromName];if(immediateDeps!==void 0)for(var _i8=0;_i8<immediateDeps.length;_i8++){var toName=immediateDeps[_i8];collectTransitiveDependencies(collected,depGraph,toName)}}}function collectDependencies(selectionSet){var dependencies=[];return visit(selectionSet,{FragmentSpread:function(node){dependencies.push(node.name.value)}}),dependencies}function stripIgnoredCharacters(source){for(var sourceObj=isSource(source)?source:new Source(source),body=sourceObj.body,lexer=new Lexer(sourceObj),strippedBody="",wasLastAddedTokenNonPunctuator=!1;lexer.advance().kind!==TokenKind.EOF;){var currentToken=lexer.token,tokenKind=currentToken.kind,isNonPunctuator=!isPunctuatorTokenKind(currentToken.kind);wasLastAddedTokenNonPunctuator&&(isNonPunctuator||currentToken.kind===TokenKind.SPREAD)&&(strippedBody+=" ");var tokenBody=body.slice(currentToken.start,currentToken.end);tokenKind===TokenKind.BLOCK_STRING?strippedBody+=dedentBlockString(tokenBody):strippedBody+=tokenBody,wasLastAddedTokenNonPunctuator=isNonPunctuator}return strippedBody}function dedentBlockString(blockStr){var rawStr=blockStr.slice(3,-3),body=dedentBlockStringValue(rawStr);getBlockStringIndentation(body)>0&&(body=`
|
233
|
-
`+body);var lastChar=body[body.length-1],hasTrailingQuote=lastChar==='"'&&body.slice(-4)!=='\\"""';return(hasTrailingQuote||lastChar==="\\")&&(body+=`
|
234
|
-
`),'"""'+body+'"""'}function findBreakingChanges_ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function findBreakingChanges_objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?findBreakingChanges_ownKeys(Object(source),!0).forEach(function(key){findBreakingChanges_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):findBreakingChanges_ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function findBreakingChanges_defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var BreakingChangeType=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",IMPLEMENTED_INTERFACE_REMOVED:"IMPLEMENTED_INTERFACE_REMOVED",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_REPEATABLE_REMOVED:"DIRECTIVE_REPEATABLE_REMOVED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"}),DangerousChangeType=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",IMPLEMENTED_INTERFACE_ADDED:"IMPLEMENTED_INTERFACE_ADDED",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function findBreakingChanges(oldSchema,newSchema){var breakingChanges=findSchemaChanges(oldSchema,newSchema).filter(function(change){return change.type in BreakingChangeType});return breakingChanges}function findDangerousChanges(oldSchema,newSchema){var dangerousChanges=findSchemaChanges(oldSchema,newSchema).filter(function(change){return change.type in DangerousChangeType});return dangerousChanges}function findSchemaChanges(oldSchema,newSchema){return[].concat(findTypeChanges(oldSchema,newSchema),findDirectiveChanges(oldSchema,newSchema))}function findDirectiveChanges(oldSchema,newSchema){for(var schemaChanges=[],directivesDiff=diff(oldSchema.getDirectives(),newSchema.getDirectives()),_i2=0,_directivesDiff$remov2=directivesDiff.removed;_i2<_directivesDiff$remov2.length;_i2++){var oldDirective=_directivesDiff$remov2[_i2];schemaChanges.push({type:BreakingChangeType.DIRECTIVE_REMOVED,description:"".concat(oldDirective.name," was removed.")})}for(var _i4=0,_directivesDiff$persi2=directivesDiff.persisted;_i4<_directivesDiff$persi2.length;_i4++){for(var _ref2=_directivesDiff$persi2[_i4],_oldDirective=_ref2[0],newDirective=_ref2[1],argsDiff=diff(_oldDirective.args,newDirective.args),_i6=0,_argsDiff$added2=argsDiff.added;_i6<_argsDiff$added2.length;_i6++){var newArg=_argsDiff$added2[_i6];isRequiredArgument(newArg)&&schemaChanges.push({type:BreakingChangeType.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(newArg.name," on directive ").concat(_oldDirective.name," was added.")})}for(var _i8=0,_argsDiff$removed2=argsDiff.removed;_i8<_argsDiff$removed2.length;_i8++){var oldArg=_argsDiff$removed2[_i8];schemaChanges.push({type:BreakingChangeType.DIRECTIVE_ARG_REMOVED,description:"".concat(oldArg.name," was removed from ").concat(_oldDirective.name,".")})}_oldDirective.isRepeatable&&!newDirective.isRepeatable&&schemaChanges.push({type:BreakingChangeType.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(_oldDirective.name,".")});for(var _i10=0,_oldDirective$locatio2=_oldDirective.locations;_i10<_oldDirective$locatio2.length;_i10++){var location=_oldDirective$locatio2[_i10];newDirective.locations.indexOf(location)===-1&&schemaChanges.push({type:BreakingChangeType.DIRECTIVE_LOCATION_REMOVED,description:"".concat(location," was removed from ").concat(_oldDirective.name,".")})}}return schemaChanges}function findTypeChanges(oldSchema,newSchema){for(var schemaChanges=[],typesDiff=diff(polyfills_objectValues(oldSchema.getTypeMap()),polyfills_objectValues(newSchema.getTypeMap())),_i12=0,_typesDiff$removed2=typesDiff.removed;_i12<_typesDiff$removed2.length;_i12++){var oldType=_typesDiff$removed2[_i12];schemaChanges.push({type:BreakingChangeType.TYPE_REMOVED,description:isSpecifiedScalarType(oldType)?"Standard scalar ".concat(oldType.name," was removed because it is not referenced anymore."):"".concat(oldType.name," was removed.")})}for(var _i14=0,_typesDiff$persisted2=typesDiff.persisted;_i14<_typesDiff$persisted2.length;_i14++){var _ref4=_typesDiff$persisted2[_i14],_oldType=_ref4[0],newType=_ref4[1];isEnumType(_oldType)&&isEnumType(newType)?schemaChanges.push.apply(schemaChanges,findEnumTypeChanges(_oldType,newType)):isUnionType(_oldType)&&isUnionType(newType)?schemaChanges.push.apply(schemaChanges,findUnionTypeChanges(_oldType,newType)):isInputObjectType(_oldType)&&isInputObjectType(newType)?schemaChanges.push.apply(schemaChanges,findInputObjectTypeChanges(_oldType,newType)):isObjectType(_oldType)&&isObjectType(newType)||isInterfaceType(_oldType)&&isInterfaceType(newType)?schemaChanges.push.apply(schemaChanges,findFieldChanges(_oldType,newType).concat(findImplementedInterfacesChanges(_oldType,newType))):_oldType.constructor!==newType.constructor&&schemaChanges.push({type:BreakingChangeType.TYPE_CHANGED_KIND,description:"".concat(_oldType.name," changed from ")+"".concat(typeKindName(_oldType)," to ").concat(typeKindName(newType),".")})}return schemaChanges}function findInputObjectTypeChanges(oldType,newType){for(var schemaChanges=[],fieldsDiff=diff(polyfills_objectValues(oldType.getFields()),polyfills_objectValues(newType.getFields())),_i16=0,_fieldsDiff$added2=fieldsDiff.added;_i16<_fieldsDiff$added2.length;_i16++){var newField=_fieldsDiff$added2[_i16];isRequiredInputField(newField)?schemaChanges.push({type:BreakingChangeType.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(newField.name," on input type ").concat(oldType.name," was added.")}):schemaChanges.push({type:DangerousChangeType.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(newField.name," on input type ").concat(oldType.name," was added.")})}for(var _i18=0,_fieldsDiff$removed2=fieldsDiff.removed;_i18<_fieldsDiff$removed2.length;_i18++){var oldField=_fieldsDiff$removed2[_i18];schemaChanges.push({type:BreakingChangeType.FIELD_REMOVED,description:"".concat(oldType.name,".").concat(oldField.name," was removed.")})}for(var _i20=0,_fieldsDiff$persisted2=fieldsDiff.persisted;_i20<_fieldsDiff$persisted2.length;_i20++){var _ref6=_fieldsDiff$persisted2[_i20],_oldField=_ref6[0],_newField=_ref6[1],isSafe=isChangeSafeForInputObjectFieldOrFieldArg(_oldField.type,_newField.type);isSafe||schemaChanges.push({type:BreakingChangeType.FIELD_CHANGED_KIND,description:"".concat(oldType.name,".").concat(_oldField.name," changed type from ")+"".concat(String(_oldField.type)," to ").concat(String(_newField.type),".")})}return schemaChanges}function findUnionTypeChanges(oldType,newType){for(var schemaChanges=[],possibleTypesDiff=diff(oldType.getTypes(),newType.getTypes()),_i22=0,_possibleTypesDiff$ad2=possibleTypesDiff.added;_i22<_possibleTypesDiff$ad2.length;_i22++){var newPossibleType=_possibleTypesDiff$ad2[_i22];schemaChanges.push({type:DangerousChangeType.TYPE_ADDED_TO_UNION,description:"".concat(newPossibleType.name," was added to union type ").concat(oldType.name,".")})}for(var _i24=0,_possibleTypesDiff$re2=possibleTypesDiff.removed;_i24<_possibleTypesDiff$re2.length;_i24++){var oldPossibleType=_possibleTypesDiff$re2[_i24];schemaChanges.push({type:BreakingChangeType.TYPE_REMOVED_FROM_UNION,description:"".concat(oldPossibleType.name," was removed from union type ").concat(oldType.name,".")})}return schemaChanges}function findEnumTypeChanges(oldType,newType){for(var schemaChanges=[],valuesDiff=diff(oldType.getValues(),newType.getValues()),_i26=0,_valuesDiff$added2=valuesDiff.added;_i26<_valuesDiff$added2.length;_i26++){var newValue=_valuesDiff$added2[_i26];schemaChanges.push({type:DangerousChangeType.VALUE_ADDED_TO_ENUM,description:"".concat(newValue.name," was added to enum type ").concat(oldType.name,".")})}for(var _i28=0,_valuesDiff$removed2=valuesDiff.removed;_i28<_valuesDiff$removed2.length;_i28++){var oldValue=_valuesDiff$removed2[_i28];schemaChanges.push({type:BreakingChangeType.VALUE_REMOVED_FROM_ENUM,description:"".concat(oldValue.name," was removed from enum type ").concat(oldType.name,".")})}return schemaChanges}function findImplementedInterfacesChanges(oldType,newType){for(var schemaChanges=[],interfacesDiff=diff(oldType.getInterfaces(),newType.getInterfaces()),_i30=0,_interfacesDiff$added2=interfacesDiff.added;_i30<_interfacesDiff$added2.length;_i30++){var newInterface=_interfacesDiff$added2[_i30];schemaChanges.push({type:DangerousChangeType.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(newInterface.name," added to interfaces implemented by ").concat(oldType.name,".")})}for(var _i32=0,_interfacesDiff$remov2=interfacesDiff.removed;_i32<_interfacesDiff$remov2.length;_i32++){var oldInterface=_interfacesDiff$remov2[_i32];schemaChanges.push({type:BreakingChangeType.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(oldType.name," no longer implements interface ").concat(oldInterface.name,".")})}return schemaChanges}function findFieldChanges(oldType,newType){for(var schemaChanges=[],fieldsDiff=diff(polyfills_objectValues(oldType.getFields()),polyfills_objectValues(newType.getFields())),_i34=0,_fieldsDiff$removed4=fieldsDiff.removed;_i34<_fieldsDiff$removed4.length;_i34++){var oldField=_fieldsDiff$removed4[_i34];schemaChanges.push({type:BreakingChangeType.FIELD_REMOVED,description:"".concat(oldType.name,".").concat(oldField.name," was removed.")})}for(var _i36=0,_fieldsDiff$persisted4=fieldsDiff.persisted;_i36<_fieldsDiff$persisted4.length;_i36++){var _ref8=_fieldsDiff$persisted4[_i36],_oldField2=_ref8[0],newField=_ref8[1];schemaChanges.push.apply(schemaChanges,findArgChanges(oldType,_oldField2,newField));var isSafe=isChangeSafeForObjectOrInterfaceField(_oldField2.type,newField.type);isSafe||schemaChanges.push({type:BreakingChangeType.FIELD_CHANGED_KIND,description:"".concat(oldType.name,".").concat(_oldField2.name," changed type from ")+"".concat(String(_oldField2.type)," to ").concat(String(newField.type),".")})}return schemaChanges}function findArgChanges(oldType,oldField,newField){for(var schemaChanges=[],argsDiff=diff(oldField.args,newField.args),_i38=0,_argsDiff$removed4=argsDiff.removed;_i38<_argsDiff$removed4.length;_i38++){var oldArg=_argsDiff$removed4[_i38];schemaChanges.push({type:BreakingChangeType.ARG_REMOVED,description:"".concat(oldType.name,".").concat(oldField.name," arg ").concat(oldArg.name," was removed.")})}for(var _i40=0,_argsDiff$persisted2=argsDiff.persisted;_i40<_argsDiff$persisted2.length;_i40++){var _ref10=_argsDiff$persisted2[_i40],_oldArg=_ref10[0],newArg=_ref10[1],isSafe=isChangeSafeForInputObjectFieldOrFieldArg(_oldArg.type,newArg.type);if(!isSafe)schemaChanges.push({type:BreakingChangeType.ARG_CHANGED_KIND,description:"".concat(oldType.name,".").concat(oldField.name," arg ").concat(_oldArg.name," has changed type from ")+"".concat(String(_oldArg.type)," to ").concat(String(newArg.type),".")});else if(_oldArg.defaultValue!==void 0)if(newArg.defaultValue===void 0)schemaChanges.push({type:DangerousChangeType.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(oldType.name,".").concat(oldField.name," arg ").concat(_oldArg.name," defaultValue was removed.")});else{var oldValueStr=stringifyValue(_oldArg.defaultValue,_oldArg.type),newValueStr=stringifyValue(newArg.defaultValue,newArg.type);oldValueStr!==newValueStr&&schemaChanges.push({type:DangerousChangeType.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(oldType.name,".").concat(oldField.name," arg ").concat(_oldArg.name," has changed defaultValue from ").concat(oldValueStr," to ").concat(newValueStr,".")})}}for(var _i42=0,_argsDiff$added4=argsDiff.added;_i42<_argsDiff$added4.length;_i42++){var _newArg=_argsDiff$added4[_i42];isRequiredArgument(_newArg)?schemaChanges.push({type:BreakingChangeType.REQUIRED_ARG_ADDED,description:"A required arg ".concat(_newArg.name," on ").concat(oldType.name,".").concat(oldField.name," was added.")}):schemaChanges.push({type:DangerousChangeType.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(_newArg.name," on ").concat(oldType.name,".").concat(oldField.name," was added.")})}return schemaChanges}function isChangeSafeForObjectOrInterfaceField(oldType,newType){return isListType(oldType)?isListType(newType)&&isChangeSafeForObjectOrInterfaceField(oldType.ofType,newType.ofType)||isNonNullType(newType)&&isChangeSafeForObjectOrInterfaceField(oldType,newType.ofType):isNonNullType(oldType)?isNonNullType(newType)&&isChangeSafeForObjectOrInterfaceField(oldType.ofType,newType.ofType):isNamedType(newType)&&oldType.name===newType.name||isNonNullType(newType)&&isChangeSafeForObjectOrInterfaceField(oldType,newType.ofType)}function isChangeSafeForInputObjectFieldOrFieldArg(oldType,newType){return isListType(oldType)?isListType(newType)&&isChangeSafeForInputObjectFieldOrFieldArg(oldType.ofType,newType.ofType):isNonNullType(oldType)?isNonNullType(newType)&&isChangeSafeForInputObjectFieldOrFieldArg(oldType.ofType,newType.ofType)||!isNonNullType(newType)&&isChangeSafeForInputObjectFieldOrFieldArg(oldType.ofType,newType):isNamedType(newType)&&oldType.name===newType.name}function typeKindName(type){if(isScalarType(type))return"a Scalar type";if(isObjectType(type))return"an Object type";if(isInterfaceType(type))return"an Interface type";if(isUnionType(type))return"a Union type";if(isEnumType(type))return"an Enum type";if(isInputObjectType(type))return"an Input type";invariant(0,"Unexpected type: "+inspect(type))}function stringifyValue(value,type){var ast=astFromValue(value,type);ast!=null||invariant(0);var sortedAST=visit(ast,{ObjectValue:function(objectNode){var fields=[].concat(objectNode.fields);return fields.sort(function(fieldA,fieldB){return naturalCompare(fieldA.name.value,fieldB.name.value)}),findBreakingChanges_objectSpread(findBreakingChanges_objectSpread({},objectNode),{},{fields})}});return print(sortedAST)}function diff(oldArray,newArray){for(var added=[],removed=[],persisted=[],oldMap=keyMap(oldArray,function(_ref11){var name=_ref11.name;return name}),newMap=keyMap(newArray,function(_ref12){var name=_ref12.name;return name}),_i44=0;_i44<oldArray.length;_i44++){var oldItem=oldArray[_i44],newItem=newMap[oldItem.name];newItem===void 0?removed.push(oldItem):persisted.push([oldItem,newItem])}for(var _i46=0;_i46<newArray.length;_i46++){var _newItem=newArray[_i46];oldMap[_newItem.name]===void 0&&added.push(_newItem)}return{added,persisted,removed}}function findDeprecatedUsages(schema,ast){return validate(schema,ast,[NoDeprecatedCustomRule])}},48137:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";var _home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{Y:()=>_home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(_home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(_home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__,2))});var _home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5659)}}]);
|