text: /*!
   * OpenUI5
   * (c) Copyright 2009-2019 SAP SE or an SAP affiliate company.
   * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
   */
  sap.ui.define(["sap/ui/core/library","sap/ui/Global","sap/ui/core/Core","sap/ui/core/ElementMetadata","sap/base/util/LoaderExtensions","sap/base/util/UriParameters","jquery.sap.global"],function(e,t,r,a,n,i,o){"use strict";var g=sap.ui.getCore().getConfiguration();function u(){var e=t.versioninfo?t.versioninfo.libraries:undefined;var r=Object.create(null);if(e!==undefined){e.forEach(function(e,t,a){r[e.name]=e.version})}return r}function s(){var e=sap.ui.getCore().getLoadedLibraries();var t=Object.create(null);Object.keys(sap.ui.getCore().getLoadedLibraries()).forEach(function(r,a,n){t[r]=e[r].version});return t}function c(){var e=i.fromQuery(window.location.search);return Array.from(e.keys()).reduce(function(t,r){t[r]=e.getAll(r);return t},{})}function l(){return{commonInformation:{version:t.version,buildTime:t.buildinfo.buildtime,lastChange:t.buildinfo.lastchange,jquery:o.fn.jquery,userAgent:navigator.userAgent,applicationHREF:window.location.href,documentTitle:document.title,documentMode:document.documentMode||"",debugMode:o.sap.debug(),statistics:o.sap.statistics()},configurationBootstrap:window["sap-ui-config"]||Object.create(null),configurationComputed:{theme:g.getTheme(),language:g.getLanguage(),formatLocale:g.getFormatLocale(),accessibility:g.getAccessibility(),animation:g.getAnimation(),rtl:g.getRTL(),debug:g.getDebug(),inspect:g.getInspect(),originInfo:g.getOriginInfo(),noDuplicateIds:g.getNoDuplicateIds()},libraries:u(),loadedLibraries:s(),loadedModules:n.getAllRequiredModules().sort(),URLParameters:c()}}var d={_createRenderedTreeModel:function(e,t){var r=e;var a=r.firstElementChild;var n=t;var i=n;var o=sap.ui.getCore().byId(r.id);if(r.getAttribute("data-sap-ui")&&o){n.push({id:o.getId(),name:o.getMetadata().getName(),type:"sap-ui-control",content:[]});i=n[n.length-1].content}else if(r.getAttribute("data-sap-ui-area")){n.push({id:r.id,name:"sap-ui-area",type:"data-sap-ui",content:[]});i=n[n.length-1].content}while(a){this._createRenderedTreeModel(a,i);a=a.nextElementSibling}}};var p={_getOwnProperties:function(e){var t=Object.create(null);var r=e.getMetadata().getProperties();t.meta=Object.create(null);t.meta.controlName=e.getMetadata().getName();t.properties=Object.create(null);Object.keys(r).forEach(function(a){t.properties[a]=Object.create(null);t.properties[a].value=e.getProperty(a);t.properties[a].type=r[a].getType().getName?r[a].getType().getName():""});return t},_copyInheritedProperties:function(e,t){var r=t.getProperties();var a=Object.create(null);a.meta=Object.create(null);a.meta.controlName=t.getName();a.properties=Object.create(null);Object.keys(r).forEach(function(t){a.properties[t]=Object.create(null);a.properties[t].value=r[t].get(e);a.properties[t].type=r[t].getType().getName?r[t].getType().getName():""});return a},_getInheritedProperties:function(e){var t=[];var r=e.getMetadata().getParent();while(r instanceof a){t.push(this._copyInheritedProperties(e,r));r=r.getParent()}return t},_getProperties:function(e){var t=sap.ui.getCore().byId(e);var r=Object.create(null);if(t){r.own=this._getOwnProperties(t);r.inherited=this._getInheritedProperties(t)}return r},_getModelFromContext:function(e,t){var r=e.getBinding(t);var a=r.getModel();var n=e.getBindingInfo(t).parts?e.getBindingInfo(t).parts:[];var i=[];for(var o=0;o<n.length;o++){i.push(n[o].model)}var g={names:i,path:r.getPath()};if(a){g.mode=a.getDefaultBindingMode();g.type=a.getMetadata().getName();g.data=a.getData?a.getData("/"):undefined}return g},_getBindDataForProperties:function(e){var t=e.getMetadata().getAllProperties();var r=Object.create(null);for(var a in t){if(t.hasOwnProperty(a)&&e.getBinding(a)){r[a]=Object.create(null);r[a].path=e.getBinding(a).getPath();r[a].value=e.getBinding(a).getValue();r[a].type=e.getMetadata().getProperty(a).getType().getName?e.getMetadata().getProperty(a).getType().getName():"";r[a].mode=e.getBinding(a).getBindingMode();r[a].model=this._getModelFromContext(e,a)}}return r},_getBindDataForAggregations:function(e){var t=e.getMetadata().getAllAggregations();var r=Object.create(null);for(var a in t){if(t.hasOwnProperty(a)&&e.getBinding(a)){r[a]=Object.create(null);r[a].model=this._getModelFromContext(e,a)}}return r}};return{getFrameworkInformation:l,getRenderedControlTree:function(){var e=[];d._createRenderedTreeModel(document.body,e);return e},getControlProperties:function(e){return p._getProperties(e)},getControlBindings:function(e){var t=Object.create(null);var r=sap.ui.getCore().byId(e);var a;if(!r){return t}a=r.getBindingContext();t.meta=Object.create(null);t.contextPath=a?a.getPath():null;t.aggregations=p._getBindDataForAggregations(r);t.properties=p._getBindDataForProperties(r);return t}}});