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tD,CAqBA,SAAS,KAAK,GACV,MAAM,EAAW,YACN,SAAS,QAAQ,aACxB,MAAM,GAAM,EAAI,SAAS,UACrB,IACA,EAAI,mBAAqB,UAAU,SAEvC,EAAU,UAAU,GAEpB,EAAI,SAAS,UACb,KAGA,EAAS,YAAa,EACtB,SAAS,QAAQ,aAAe,EAExC,CACA,SAAS,WACL,IAAI,EACJ,SAA4C,QAAjC,GAAK,EAAI,SAAS,iBAA8B,IAAP,OAAgB,EAAS,EAAG,SACpF","file":"/npm/@adobe/exc-app@1.4.20/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@adobe/exc-app@1.4.20/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n/*************************************************************************\n * Copyright 2020 Adobe\n * All Rights Reserved.\n *\n * NOTICE: Adobe permits you to use, modify, and distribute this file in\n * accordance with the terms of the Adobe license agreement accompanying\n * it. If you have received this file from a source other than Adobe,\n * then your use, modification, or distribution of it requires the prior\n * written permission of Adobe.\n **************************************************************************/\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n    o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n    __setModuleDefault(result, mod);\n    return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = runtime;\nexports.init = init;\nexports.isNested = isNested;\n/**\n * API used to integrate as solution web application with the unified shell of the Adobe Experience\n * Cloud.\n * @packageDocumentation\n * @preferred\n */\nconst Global_1 = __importStar(require(\"./src/Global\"));\nconst version_1 = __importDefault(require(\"./version\"));\n/**\n * Get the runtime object which contains all unified-shell APIs.\n *\n * ***Example:***\n *\n * ```typescript\n * import React from 'react';\n * import ReactDOM from 'react-dom';\n * import excApp from '@adobe/exc-app';\n *\n * export class MyComponent extends React.Component {\n *   constructor(props) {\n *     this.runtime = excApp();\n *   }\n * }\n * ```\n * @returns The runtime object.\n */\nfunction runtime() {\n    // Pass through first argument for backwards compatibility\n    return (0, Global_1.getImpl)('default')(arguments[0]); // eslint-disable-line prefer-rest-params\n}\n/**\n * Initializes a solution web application by invoking the bootstrap callback\n * once the runtime is ready.\n * 1. if the module is already defined, start to bootstrap\n * 2. otherwise define the global callback that will be called when runtime is ready.\n *\n * ***Example:***\n *\n * ```typescript\n * import React from 'react';\n * import ReactDOM from 'react-dom';\n * import runtime, {init} from '@adobe/exc-app';\n *\n * init(() => {\n *   ReactDOM.render(<MainComponent runtime={runtime()} />, document.querySelector('#main'));\n * });\n * ```\n * @param bootstrap Callback used to bootstrap a solution. The runtime object is passed in as a\n * parameter to this callback.\n */\nfunction init(bootstrap) {\n    const callback = () => {\n        delete Global_1.default.EXC_MR_READY;\n        const emr = (0, Global_1.getEMR)();\n        if (emr) {\n            emr['exc-app-version'] = version_1.default;\n        }\n        bootstrap(runtime());\n    };\n    if ((0, Global_1.getEMR)()) {\n        callback();\n    }\n    else {\n        callback.autoDelete = true;\n        Global_1.default.EXC_MR_READY = callback;\n    }\n}\nfunction isNested() {\n    var _a;\n    return !!((_a = (0, Global_1.getEMR)()) === null || _a === void 0 ? void 0 : _a.isNested);\n}\n"]}