@teambit/env 1.0.269 → 1.0.270
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/{310.26220b64f57cd04f9a6b.js → 310.4022c0ab9e0ac6af049c.js} +4 -11
- package/artifacts/env-template/public/{608.15639e1fad5e4124494a.js → 607.1404ed43d04d8fc0164f.js} +2 -2
- package/artifacts/env-template/public/{136.a9819b1b60881cd5007a.js → 828.06cef885102a49e72e1f.js} +3 -3
- package/artifacts/env-template/public/assets-manifest.json +14 -14
- package/artifacts/env-template/public/compositions.440138cb887b52cab913.js +17 -0
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/{overview.1dd325e0a361eeb3b7bf.js → overview.d7a21cac05b4e9c1ae20.js} +1 -1
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/peers.92f69ca32a407c490960.js +1 -0
- package/artifacts/env-template/public/{preview-root.8a9817a298e437d04fd8.js → preview-root.185612d9c12314d9d32e.js} +1 -1
- package/artifacts/preview/teambit_envs_env-preview.js +1 -1
- package/artifacts/schema.json +1 -1
- package/dist/{preview-1715311140438.js → preview-1715509699621.js} +2 -2
- package/package.json +6 -6
- package/artifacts/env-template/public/compositions.7fa89e253be2af5fd70f.js +0 -17
- package/artifacts/env-template/public/peers.9fae02a35d0928c4337c.js +0 -1
- /package/{compositions-1715311140438.js → compositions-1715509699621.js} +0 -0
- /package/{overview-1715311140438.js → overview-1715509699621.js} +0 -0
package/artifacts/env-template/public/{136.a9819b1b60881cd5007a.js → 828.06cef885102a49e72e1f.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[
|
1
|
+
(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[828],{97611:(__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},2e3:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitError=void 0;var bit_error_1=__webpack_require__(97611);Object.defineProperty(exports,"BitError",{enumerable:!0,get:function(){return bit_error_1.BitError}})},44717:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentIdList=void 0;const lodash_1=__webpack_require__(96366),component_id_1=__webpack_require__(83920),component_version_1=__webpack_require__(757);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
2
|
${found.map(id=>id.toString()).join(`
|
3
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},23727:(__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__(26770),exceptions_1=__webpack_require__(65990);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},65990:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingScope=void 0;const missing_scope_1=__webpack_require__(15024);Object.defineProperty(exports,"MissingScope",{enumerable:!0,get:function(){return missing_scope_1.MissingScope}})},15024:(__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
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.
|
@@ -8,7 +8,7 @@ ${this.msg||this.originalError.stack}`}}exports.default=ExtensionLoadError},4020
|
|
8
8
|
This may result from a wrong import or from circular dependencies in imports.
|
9
9
|
The following dependencies succeeded loading:`}}exports.default=ExtensionPotentialCircular},94008:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HarmonyAlreadyRunning=void 0;class HarmonyAlreadyRunning extends Error{}exports.HarmonyAlreadyRunning=HarmonyAlreadyRunning},73756:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HarmonyError=void 0;class HarmonyError extends Error{}exports.HarmonyError=HarmonyError},66618:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HookNotFound=void 0;class HookNotFound extends Error{}exports.HookNotFound=HookNotFound},28398: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__(4328);Object.defineProperty(exports,"ExtensionLoadError",{enumerable:!0,get:function(){return __importDefault(extension_load_error_1).default}});var extension_potential_circular_1=__webpack_require__(40204);Object.defineProperty(exports,"ExtensionPotentialCircular",{enumerable:!0,get:function(){return __importDefault(extension_potential_circular_1).default}});var harmony_already_running_1=__webpack_require__(94008);Object.defineProperty(exports,"HarmonyAlreadyRunning",{enumerable:!0,get:function(){return harmony_already_running_1.HarmonyAlreadyRunning}});var hook_not_found_1=__webpack_require__(66618);Object.defineProperty(exports,"HookNotFound",{enumerable:!0,get:function(){return hook_not_found_1.HookNotFound}});var extension_init_error_1=__webpack_require__(69857);Object.defineProperty(exports,"ExtensionInstantiationException",{enumerable:!0,get:function(){return extension_init_error_1.ExtensionInstantiationException}})},23244: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__(37130),from_extension_1=__webpack_require__(59710);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},59710: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__(96172),extension_potential_circular_1=__importDefault(__webpack_require__(40204));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},95488:(__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},11374: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__(69857);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},74326:(__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__(11374);Object.defineProperty(exports,"Extension",{enumerable:!0,get:function(){return extension_1.Extension}});var decorator_1=__webpack_require__(95488);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}})},96104:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.extensionFactory=void 0;const extension_1=__webpack_require__(11374);function extensionFactory(manifest){return manifest.provide&&(manifest.provider=manifest.provide),new extension_1.Extension(manifest)}exports.extensionFactory=extensionFactory},96172:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.extensionFactory=void 0;var extension_factory_1=__webpack_require__(96104);Object.defineProperty(exports,"extensionFactory",{enumerable:!0,get:function(){return extension_factory_1.extensionFactory}})},28343: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__(9167);const extension_graph_1=__importDefault(__webpack_require__(23244)),exceptions_1=__webpack_require__(28398),utils_1=__webpack_require__(75235),config_1=__webpack_require__(13448),runtimes_1=__webpack_require__(63880),exceptions_2=__webpack_require__(25660);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},70300: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__(74326);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__(28343);Object.defineProperty(exports,"Harmony",{enumerable:!0,get:function(){return harmony_1.Harmony}});var slots_1=__webpack_require__(1305);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__(73756);Object.defineProperty(exports,"HarmonyError",{enumerable:!0,get:function(){return harmony_error_1.HarmonyError}});var aspect_1=__webpack_require__(76064);Object.defineProperty(exports,"Aspect",{enumerable:!0,get:function(){return aspect_1.Aspect}});var runtimes_1=__webpack_require__(73407);Object.defineProperty(exports,"RuntimeDefinition",{enumerable:!0,get:function(){return runtimes_1.RuntimeDefinition}});var extension_graph_1=__webpack_require__(23244);Object.defineProperty(exports,"AspectGraph",{enumerable:!0,get:function(){return __importDefault(extension_graph_1).default}})},25660:(__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__(6424);Object.defineProperty(exports,"RuntimeNotDefined",{enumerable:!0,get:function(){return runtime_not_defined_1.RuntimeNotDefined}});var runtime_module_error_1=__webpack_require__(81575);Object.defineProperty(exports,"RuntimeModuleError",{enumerable:!0,get:function(){return runtime_module_error_1.RuntimeModuleError}})},81575:(__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},6424:(__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},73407:(__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__(63880);Object.defineProperty(exports,"Runtimes",{enumerable:!0,get:function(){return runtimes_1.Runtimes}});var runtime_definition_1=__webpack_require__(99770);Object.defineProperty(exports,"RuntimeDefinition",{enumerable:!0,get:function(){return runtime_definition_1.RuntimeDefinition}})},99770:(__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},63880: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__(25660);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},1305:(__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__(38160);Object.defineProperty(exports,"Slot",{enumerable:!0,get:function(){return slot_1.Slot}});var registry_1=__webpack_require__(88477);Object.defineProperty(exports,"SlotRegistry",{enumerable:!0,get:function(){return registry_1.SlotRegistry}})},88477:(__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},38160:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Slot=void 0;const registry_1=__webpack_require__(88477);class Slot{static withType(){return registerFn=>new registry_1.SlotRegistry(registerFn)}}exports.Slot=Slot},82579: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},75235:(__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__(82579);Object.defineProperty(exports,"asyncForEach",{enumerable:!0,get:function(){return async_for_each_1.asyncForEach}})},31590: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__(77385)),path=__importStar(__webpack_require__(62005)),semver=__importStar(__webpack_require__(25759)),lodash_1=__webpack_require__(96366),component_version_1=__webpack_require__(757),is_valid_id_chunk_1=__importDefault(__webpack_require__(58027)),is_valid_scope_name_1=__importDefault(__webpack_require__(16510)),exceptions_1=__webpack_require__(66546);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},66546: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__(58304));exports.InvalidBitId=invalid_bit_id_1.default;const invalid_id_chunk_1=__importDefault(__webpack_require__(19343));exports.InvalidIdChunk=invalid_id_chunk_1.default;const invalid_name_1=__importDefault(__webpack_require__(87892));exports.InvalidName=invalid_name_1.default;const invalid_scope_name_1=__importDefault(__webpack_require__(18168));exports.InvalidScopeName=invalid_scope_name_1.default;const invalid_scope_name_from_remote_1=__importDefault(__webpack_require__(76201));exports.InvalidScopeNameFromRemote=invalid_scope_name_from_remote_1.default},58304:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(2e3);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},19343:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(2e3);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},87892:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(2e3);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},76201:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(2e3);class InvalidScopeNameFromRemote extends bit_error_1.BitError{constructor(scopeName){super(`cannot find scope '${scopeName}'.
|
10
10
|
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.
|
11
|
-
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},18168:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(2e3);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},26770: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.BitId=void 0;const bit_id_1=__importStar(__webpack_require__(31590));exports.BitId=bit_id_1.default,Object.defineProperty(exports,"VERSION_DELIMITER",{enumerable:!0,get:function(){return bit_id_1.VERSION_DELIMITER}});const exceptions_1=__webpack_require__(66546);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__(16510));exports.isValidScopeName=is_valid_scope_name_1.default;const is_valid_id_chunk_1=__importDefault(__webpack_require__(58027));exports.isValidIdChunk=is_valid_id_chunk_1.default},58027:(__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},16510:(__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},93733:(__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__(10222);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}})},10222:(__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},96650:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tarjan_1=__webpack_require__(42873);exports.tarjan=tarjan_1.tarjan},42873: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__(96366));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},27961:(__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},89871:(__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},78972: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__(37130),index_2=__webpack_require__(37130),index_3=__webpack_require__(37130),lodash_1=__importDefault(__webpack_require__(96366)),algorithms_1=__webpack_require__(96650),node_1=__webpack_require__(74342),edge_1=__webpack_require__(27961);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}},37130:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var edge_1=__webpack_require__(27961);exports.GraphEdge=edge_1.GraphEdge;var node_1=__webpack_require__(74342);exports.GraphNode=node_1.GraphNode;var error_1=__webpack_require__(89871);exports.CyclicError=error_1.CyclicError,exports.NodeDoesntExist=error_1.NodeDoesntExist;var graph_1=__webpack_require__(78972);exports.Graph=graph_1.Graph},74342: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__(96366),lodash_2=__importDefault(__webpack_require__(96366));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},44748: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},79559:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(90034),isPlainFunction=__webpack_require__(54897),assign=__webpack_require__(19055),normalizeOpts=__webpack_require__(97543),contains=__webpack_require__(14857),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}},77385: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()}},63062:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var numberIsNaN=__webpack_require__(13807),toPosInt=__webpack_require__(63844),value=__webpack_require__(60782),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}},75378:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(29063)()?Array.from:__webpack_require__(98709)},29063: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"))}},98709:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var iteratorSymbol=__webpack_require__(94055).iterator,isArguments=__webpack_require__(72666),isFunction=__webpack_require__(69112),toPosInt=__webpack_require__(63844),callable=__webpack_require__(63546),validValue=__webpack_require__(60782),isValue=__webpack_require__(24904),isString=__webpack_require__(5093),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}},15906:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var from=__webpack_require__(75378),isArray=Array.isArray;module.exports=function(arrayLike){return isArray(arrayLike)?arrayLike:from(arrayLike)}},94342:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var assign=__webpack_require__(19055),isObject=__webpack_require__(19191),isValue=__webpack_require__(24904),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}},73475:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(63844),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__(88405),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})},72666:module=>{"use strict";var objToString=Object.prototype.toString,id=objToString.call(function(){return arguments}());module.exports=function(value){return objToString.call(value)===id}},69112: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))}},67976:module=>{"use strict";module.exports=function(){}},50720:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(73430)()?Math.sign:__webpack_require__(9005)},73430:module=>{"use strict";module.exports=function(){var sign=Math.sign;return typeof sign!="function"?!1:sign(10)===1&&sign(-20)===-1}},9005:module=>{"use strict";module.exports=function(value){return value=Number(value),isNaN(value)||value===0?value:value>0?1:-1}},13807:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(93300)()?Number.isNaN:__webpack_require__(22509)},93300:module=>{"use strict";module.exports=function(){var numberIsNaN=Number.isNaN;return typeof numberIsNaN!="function"?!1:!numberIsNaN({})&&numberIsNaN(NaN)&&!numberIsNaN(34)}},22509:module=>{"use strict";module.exports=function(value){return value!==value}},21778:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var sign=__webpack_require__(50720),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)))}},63844:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toInteger=__webpack_require__(21778),max=Math.max;module.exports=function(value){return max(0,toInteger(value))}},95534:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(63546),value=__webpack_require__(60782),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})}}},19055:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(92126)()?Object.assign:__webpack_require__(15253)},92126: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")}},15253:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var keys=__webpack_require__(88480),value=__webpack_require__(60782),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}},77471:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(95534)("forEach")},87443:module=>{"use strict";module.exports=function(obj){return typeof obj=="function"}},19191:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(24904),map={function:!0,object:!0};module.exports=function(value){return isValue(value)&&map[typeof value]||!1}},24904:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var _undefined=__webpack_require__(67976)();module.exports=function(val){return val!==_undefined&&val!==null}},88480:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(60356)()?Object.keys:__webpack_require__(32726)},60356:module=>{"use strict";module.exports=function(){try{return Object.keys("primitive"),!0}catch{return!1}}},32726:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(24904),keys=Object.keys;module.exports=function(object){return keys(isValue(object)?Object(object):object)}},93634:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(63546),forEach=__webpack_require__(77471),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}},88405:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var value=__webpack_require__(60782),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}},97543:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(24904),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}},5749: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}},63546:module=>{"use strict";module.exports=function(fn){if(typeof fn!="function")throw new TypeError(fn+" is not a function");return fn}},60782:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(24904);module.exports=function(value){if(!isValue(value))throw new TypeError("Cannot use null or undefined");return value}},43799:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ensureValue=__webpack_require__(60782),stringifiable=__webpack_require__(32913);module.exports=function(value){return stringifiable(ensureValue(value))}},32913:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isCallable=__webpack_require__(87443);module.exports=function(stringifiable){try{return stringifiable&&isCallable(stringifiable.toString)?stringifiable.toString():String(stringifiable)}catch{throw new TypeError("Passed argument cannot be stringifed")}}},94603:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isCallable=__webpack_require__(87443);module.exports=function(value){try{return value&&isCallable(value.toString)?value.toString():String(value)}catch{return"<Non-coercible to string value>"}}},14857:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(87344)()?String.prototype.contains:__webpack_require__(74669)},87344:module=>{"use strict";var str="razdwatrzy";module.exports=function(){return typeof str.contains!="function"?!1:str.contains("dwa")===!0&&str.contains("foo")===!1}},74669:module=>{"use strict";var indexOf=String.prototype.indexOf;module.exports=function(searchString){return indexOf.call(this,searchString,arguments[1])>-1}},5093: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}},92186:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var safeToString=__webpack_require__(94603),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}},94055:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(6609)()?__webpack_require__(95998).Symbol:__webpack_require__(41553)},6609:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var global=__webpack_require__(95998),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])}},6699: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}},95799:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(79559),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}},73508:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(79559),NativeSymbol=__webpack_require__(95998).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"))})}},90236:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(79559),validateSymbol=__webpack_require__(19156),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})})}},41553:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(79559),validateSymbol=__webpack_require__(19156),NativeSymbol=__webpack_require__(95998).Symbol,generateName=__webpack_require__(95799),setupStandardSymbols=__webpack_require__(73508),setupSymbolRegistry=__webpack_require__(90236),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]))},19156:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isSymbol=__webpack_require__(6699);module.exports=function(value){if(!isSymbol(value))throw new TypeError(value+" is not a symbol");return value}},77970:(module,exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(79559),callable=__webpack_require__(63546),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},37632: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__}}()},95998:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(1159)()?globalThis:__webpack_require__(37632)},1159:module=>{"use strict";module.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}},11017:module=>{module.exports=isPromise,module.exports.default=isPromise;function isPromise(obj){return!!obj&&(typeof obj=="object"||typeof obj=="function")&&typeof obj.then=="function"}},96366:function(module,exports,__webpack_require__){module=__webpack_require__.nmd(module);var __WEBPACK_AMD_DEFINE_RESULT__;/**
|
11
|
+
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},18168:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const bit_error_1=__webpack_require__(2e3);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},26770: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.BitId=void 0;const bit_id_1=__importStar(__webpack_require__(31590));exports.BitId=bit_id_1.default,Object.defineProperty(exports,"VERSION_DELIMITER",{enumerable:!0,get:function(){return bit_id_1.VERSION_DELIMITER}});const exceptions_1=__webpack_require__(66546);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__(16510));exports.isValidScopeName=is_valid_scope_name_1.default;const is_valid_id_chunk_1=__importDefault(__webpack_require__(58027));exports.isValidIdChunk=is_valid_id_chunk_1.default},58027:(__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},16510:(__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},93733:(__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__(10222);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}})},10222:(__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},96650:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var tarjan_1=__webpack_require__(42873);exports.tarjan=tarjan_1.tarjan},42873: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__(96366));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},27961:(__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},89871:(__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},78972: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__(37130),index_2=__webpack_require__(37130),index_3=__webpack_require__(37130),lodash_1=__importDefault(__webpack_require__(96366)),algorithms_1=__webpack_require__(96650),node_1=__webpack_require__(74342),edge_1=__webpack_require__(27961);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}},37130:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var edge_1=__webpack_require__(27961);exports.GraphEdge=edge_1.GraphEdge;var node_1=__webpack_require__(74342);exports.GraphNode=node_1.GraphNode;var error_1=__webpack_require__(89871);exports.CyclicError=error_1.CyclicError,exports.NodeDoesntExist=error_1.NodeDoesntExist;var graph_1=__webpack_require__(78972);exports.Graph=graph_1.Graph},74342: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__(96366),lodash_2=__importDefault(__webpack_require__(96366));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},11700: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},79559:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(90034),isPlainFunction=__webpack_require__(54897),assign=__webpack_require__(19055),normalizeOpts=__webpack_require__(97543),contains=__webpack_require__(14857),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}},77385: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()}},63062:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var numberIsNaN=__webpack_require__(13807),toPosInt=__webpack_require__(63844),value=__webpack_require__(60782),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}},75378:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(29063)()?Array.from:__webpack_require__(98709)},29063: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"))}},98709:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var iteratorSymbol=__webpack_require__(94055).iterator,isArguments=__webpack_require__(72666),isFunction=__webpack_require__(69112),toPosInt=__webpack_require__(63844),callable=__webpack_require__(63546),validValue=__webpack_require__(60782),isValue=__webpack_require__(24904),isString=__webpack_require__(5093),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}},15906:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var from=__webpack_require__(75378),isArray=Array.isArray;module.exports=function(arrayLike){return isArray(arrayLike)?arrayLike:from(arrayLike)}},94342:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var assign=__webpack_require__(19055),isObject=__webpack_require__(19191),isValue=__webpack_require__(24904),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}},73475:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toPosInt=__webpack_require__(63844),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__(88405),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})},72666:module=>{"use strict";var objToString=Object.prototype.toString,id=objToString.call(function(){return arguments}());module.exports=function(value){return objToString.call(value)===id}},69112: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))}},67976:module=>{"use strict";module.exports=function(){}},50720:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(73430)()?Math.sign:__webpack_require__(9005)},73430:module=>{"use strict";module.exports=function(){var sign=Math.sign;return typeof sign!="function"?!1:sign(10)===1&&sign(-20)===-1}},9005:module=>{"use strict";module.exports=function(value){return value=Number(value),isNaN(value)||value===0?value:value>0?1:-1}},13807:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(93300)()?Number.isNaN:__webpack_require__(22509)},93300:module=>{"use strict";module.exports=function(){var numberIsNaN=Number.isNaN;return typeof numberIsNaN!="function"?!1:!numberIsNaN({})&&numberIsNaN(NaN)&&!numberIsNaN(34)}},22509:module=>{"use strict";module.exports=function(value){return value!==value}},21778:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var sign=__webpack_require__(50720),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)))}},63844:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var toInteger=__webpack_require__(21778),max=Math.max;module.exports=function(value){return max(0,toInteger(value))}},95534:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(63546),value=__webpack_require__(60782),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})}}},19055:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(92126)()?Object.assign:__webpack_require__(15253)},92126: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")}},15253:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var keys=__webpack_require__(88480),value=__webpack_require__(60782),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}},77471:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(95534)("forEach")},87443:module=>{"use strict";module.exports=function(obj){return typeof obj=="function"}},19191:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(24904),map={function:!0,object:!0};module.exports=function(value){return isValue(value)&&map[typeof value]||!1}},24904:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var _undefined=__webpack_require__(67976)();module.exports=function(val){return val!==_undefined&&val!==null}},88480:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(60356)()?Object.keys:__webpack_require__(32726)},60356:module=>{"use strict";module.exports=function(){try{return Object.keys("primitive"),!0}catch{return!1}}},32726:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(24904),keys=Object.keys;module.exports=function(object){return keys(isValue(object)?Object(object):object)}},93634:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var callable=__webpack_require__(63546),forEach=__webpack_require__(77471),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}},88405:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var value=__webpack_require__(60782),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}},97543:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(24904),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}},5749: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}},63546:module=>{"use strict";module.exports=function(fn){if(typeof fn!="function")throw new TypeError(fn+" is not a function");return fn}},60782:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isValue=__webpack_require__(24904);module.exports=function(value){if(!isValue(value))throw new TypeError("Cannot use null or undefined");return value}},43799:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ensureValue=__webpack_require__(60782),stringifiable=__webpack_require__(32913);module.exports=function(value){return stringifiable(ensureValue(value))}},32913:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isCallable=__webpack_require__(87443);module.exports=function(stringifiable){try{return stringifiable&&isCallable(stringifiable.toString)?stringifiable.toString():String(stringifiable)}catch{throw new TypeError("Passed argument cannot be stringifed")}}},94603:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isCallable=__webpack_require__(87443);module.exports=function(value){try{return value&&isCallable(value.toString)?value.toString():String(value)}catch{return"<Non-coercible to string value>"}}},14857:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(87344)()?String.prototype.contains:__webpack_require__(74669)},87344:module=>{"use strict";var str="razdwatrzy";module.exports=function(){return typeof str.contains!="function"?!1:str.contains("dwa")===!0&&str.contains("foo")===!1}},74669:module=>{"use strict";var indexOf=String.prototype.indexOf;module.exports=function(searchString){return indexOf.call(this,searchString,arguments[1])>-1}},5093: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}},92186:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var safeToString=__webpack_require__(94603),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}},94055:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(6609)()?__webpack_require__(95998).Symbol:__webpack_require__(41553)},6609:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var global=__webpack_require__(95998),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])}},6699: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}},95799:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(79559),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}},73508:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(79559),NativeSymbol=__webpack_require__(95998).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"))})}},90236:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(79559),validateSymbol=__webpack_require__(19156),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})})}},41553:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(79559),validateSymbol=__webpack_require__(19156),NativeSymbol=__webpack_require__(95998).Symbol,generateName=__webpack_require__(95799),setupStandardSymbols=__webpack_require__(73508),setupSymbolRegistry=__webpack_require__(90236),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]))},19156:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var isSymbol=__webpack_require__(6699);module.exports=function(value){if(!isSymbol(value))throw new TypeError(value+" is not a symbol");return value}},77970:(module,exports,__webpack_require__)=>{"use strict";var d=__webpack_require__(79559),callable=__webpack_require__(63546),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},37632: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__}}()},95998:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__(1159)()?globalThis:__webpack_require__(37632)},1159:module=>{"use strict";module.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}},11017:module=>{module.exports=isPromise,module.exports.default=isPromise;function isPromise(obj){return!!obj&&(typeof obj=="object"||typeof obj=="function")&&typeof obj.then=="function"}},96366:function(module,exports,__webpack_require__){module=__webpack_require__.nmd(module);var __WEBPACK_AMD_DEFINE_RESULT__;/**
|
12
12
|
* @license
|
13
13
|
* Lodash <https://lodash.com/>
|
14
14
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
@@ -55,7 +55,7 @@ and limitations under the License.
|
|
55
55
|
Copyright (c) 2018 Jed Watson.
|
56
56
|
Licensed under the MIT License (MIT), see
|
57
57
|
http://jedwatson.github.io/classnames
|
58
|
-
*/(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__))})()},7489:(__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__1jKFr",loading:"loader-ribbon_loading__1zzRF",progress:"loader-ribbon_progress__2ORtc",completed:"loader-ribbon_completed__BbYGF"}},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__(97383),design_ui_pages_standalone_not_found_page_1=__webpack_require__(8314),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__(38453);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}})}},73988:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.defaultJsonSerializer=void 0,exports.defaultJsonSerializer=JSON},4944:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GraphQLWebSocketClient=void 0;const resolveRequestDocument_js_1=__webpack_require__(12940),types_js_1=__webpack_require__(83997),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)}},57511:(__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},92339: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__(73988),helpers_js_1=__webpack_require__(57511),parseArgs_js_1=__webpack_require__(82485),resolveRequestDocument_js_1=__webpack_require__(12940),types_js_1=__webpack_require__(83997);Object.defineProperty(exports,"ClientError",{enumerable:!0,get:function(){return types_js_1.ClientError}});const cross_fetch_1=__importStar(__webpack_require__(44748)),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__(4944);Object.defineProperty(exports,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return graphql_ws_js_1.GraphQLWebSocketClient}});var resolveRequestDocument_js_2=__webpack_require__(12940);Object.defineProperty(exports,"resolveRequestDocument",{enumerable:!0,get:function(){return resolveRequestDocument_js_2.resolveRequestDocument}}),exports.default=request},82485:(__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},12940:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveRequestDocument=void 0;const graphql_1=__webpack_require__(13950),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},83997:(__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},13950:(__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,`
|
58
|
+
*/(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__))})()},7489:(__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__1jKFr",loading:"loader-ribbon_loading__1zzRF",progress:"loader-ribbon_progress__2ORtc",completed:"loader-ribbon_completed__BbYGF"}},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__(97383),design_ui_pages_standalone_not_found_page_1=__webpack_require__(8314),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__(38453);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}})}},81739:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.defaultJsonSerializer=void 0,exports.defaultJsonSerializer=JSON},44840:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GraphQLWebSocketClient=void 0;const resolveRequestDocument_js_1=__webpack_require__(43262),types_js_1=__webpack_require__(38673),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)}},18195:(__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},11212: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__(81739),helpers_js_1=__webpack_require__(18195),parseArgs_js_1=__webpack_require__(30415),resolveRequestDocument_js_1=__webpack_require__(43262),types_js_1=__webpack_require__(38673);Object.defineProperty(exports,"ClientError",{enumerable:!0,get:function(){return types_js_1.ClientError}});const cross_fetch_1=__importStar(__webpack_require__(11700)),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__(44840);Object.defineProperty(exports,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return graphql_ws_js_1.GraphQLWebSocketClient}});var resolveRequestDocument_js_2=__webpack_require__(43262);Object.defineProperty(exports,"resolveRequestDocument",{enumerable:!0,get:function(){return resolveRequestDocument_js_2.resolveRequestDocument}}),exports.default=request},30415:(__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},43262:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveRequestDocument=void 0;const graphql_1=__webpack_require__(13950),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},38673:(__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},13950:(__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,`
|
59
59
|
`),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(`
|
60
60
|
`)}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+=`
|
61
61
|
|