text: /*! powerbi-report-authoring v1.0.0 | (c) 2019 Microsoft Corporation MIT */
  !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("powerbi-client")):"function"==typeof define&&define.amd?define(["powerbi-client"],t):"object"==typeof exports?exports["powerbi-report-authoring"]=t(require("powerbi-client")):e["powerbi-report-authoring"]=t(e["powerbi-client"])}(window,function(n){return i={},o.m=r=[function(e,t){e.exports=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=(r.PowerBIClientIsNotInitialized="powerbi-client module is not initialized. Please import powerbi-client script before importing powerbi-report-authoring.",r);function r(){}t.Errors=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=(r.version="1.0.0",r);function r(){}t.Config=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(4);function o(){r.extensions.forEach(function(e){e.initialize()})}(t.startAuthoring=o)()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),o=n(6),i=n(7);t.extensions=[new o.ReportExtensions,new r.PageExtensions,new i.VisualExtensions]},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(1),i=(u.post=function(e,t,n){var r=u.hpm(e),o=u.uid(e),i=u.contentWindow(e);return r.post(t,n,{uid:o},i).then(function(e){return e.body},function(e){throw e.body})},u.contentWindow=function(e){return e.report.iframe.contentWindow},u.uid=function(e){return e.report.config.uniqueId},u.hpm=function(e){return e.report.service.hpm},u.prototype.initialize=function(){null!=o.Page?(o.Page.prototype.createVisual=function(e,t){var n=this,r={visualType:e,layout:t};return u.post(this,"/report/pages/"+this.name+"/createVisual",r).then(function(e){var t=e.visual;return{visual:new o.VisualDescriptor(n,t.name,t.title,t.type,t.layout)}},function(e){throw e})},o.Page.prototype.deleteVisual=function(e){return u.post(this,"/report/pages/"+this.name+"/deleteVisual",{visualName:e})}):console.error(r.Errors.PowerBIClientIsNotInitialized)},u);function u(){}t.PageExtensions=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),u=n(2),o=n(1),i=(s.get=function(e,t){var n=s.hpm(e),r=s.uid(e),o=s.contentWindow(e),i=u.Config.version;return n.get(t,{uid:r,sdkVersion:i},o).then(function(e){return e.body},function(e){throw e.body})},s.contentWindow=function(e){return e.iframe.contentWindow},s.uid=function(e){return e.config.uniqueId},s.hpm=function(e){return e.service.hpm},s.prototype.initialize=function(){null!=r.Report?(r.Report.prototype.getVisualCapabilities=function(e){return s.get(this,"/report/visuals/types/"+e+"/capabilities")},r.Report.prototype.getAvailableVisualTypes=function(){return s.get(this,"/report/availableVisualTypes")}):console.error(o.Errors.PowerBIClientIsNotInitialized)},s);function s(){}t.ReportExtensions=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),p=n(2),o=n(1),i=(a.delete=function(e,t,n){return a.sendRequestWithBody(e,"delete",t,n)},a.post=function(e,t,n){return a.sendRequestWithBody(e,"post",t,n)},a.put=function(e,t,n){return a.sendRequestWithBody(e,"put",t,n)},a.sendRequestWithBody=function(e,t,n,r){var o=a.hpm(e),i=a.uid(e),u=a.contentWindow(e),s=p.Config.version;return o[t](n,r,{uid:i,sdkVersion:s},u).then(function(e){return e.body},function(e){throw e.body})},a.get=function(e,t){var n=a.hpm(e),r=a.uid(e),o=a.contentWindow(e),i=p.Config.version;return n.get(t,{uid:r,sdkVersion:i},o).then(function(e){return e.body},function(e){throw e.body})},a.contentWindow=function(e){return e.page.report.iframe.contentWindow},a.uid=function(e){return e.page.report.config.uniqueId},a.hpm=function(e){return e.page.report.service.hpm},a.prototype.initialize=function(){null!=r.VisualDescriptor?(r.VisualDescriptor.prototype.changeType=function(e){return a.post(this,"/report/pages/"+this.page.name+"/visuals/"+this.name+"/changeType",{visualType:e})},r.VisualDescriptor.prototype.getCapabilities=function(){return a.get(this,"/report/visuals/types/"+this.type+"/capabilities")},r.VisualDescriptor.prototype.addDataField=function(e,t){return a.post(this,"/report/pages/"+this.page.name+"/visuals/"+this.name+"/dataroles/"+e+"/fields",t)},r.VisualDescriptor.prototype.getDataFields=function(e){return a.get(this,"/report/pages/"+this.page.name+"/visuals/"+this.name+"/dataroles/"+e+"/fields")},r.VisualDescriptor.prototype.removeDataField=function(e,t){var n="/report/pages/"+this.page.name+"/visuals/"+this.name+"/dataroles/"+e+"/fields/"+t;return a.delete(this,n,t)},r.VisualDescriptor.prototype.getProperty=function(e){return a.post(this,"/report/pages/"+this.page.name+"/visuals/"+this.name+"/property",e)},r.VisualDescriptor.prototype.setProperty=function(e,t){return a.put(this,"/report/pages/"+this.page.name+"/visuals/"+this.name+"/property",{selector:e,value:t})},r.VisualDescriptor.prototype.resetProperty=function(e){return this.setProperty(e,{schema:"http://powerbi.com/product/schema#default",value:{}})}):console.error(o.Errors.PowerBIClientIsNotInitialized)},a);function a(){}t.VisualExtensions=i}],o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=3);function o(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var r,i});