@allen.gong/office-js-helpers
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("OfficeHelpers",[],t):"object"==typeof exports?exports.OfficeHelpers=t():e.OfficeHelpers=t()}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./src/index.ts")}({"./node_modules/lodash-es/_DataView.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_getNative.js"),n=r("./node_modules/lodash-es/_root.js"),s=Object(o.a)(n.a,"DataView");t.a=s},"./node_modules/lodash-es/_Map.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_getNative.js"),n=r("./node_modules/lodash-es/_root.js"),s=Object(o.a)(n.a,"Map");t.a=s},"./node_modules/lodash-es/_Promise.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_getNative.js"),n=r("./node_modules/lodash-es/_root.js"),s=Object(o.a)(n.a,"Promise");t.a=s},"./node_modules/lodash-es/_Set.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_getNative.js"),n=r("./node_modules/lodash-es/_root.js"),s=Object(o.a)(n.a,"Set");t.a=s},"./node_modules/lodash-es/_Symbol.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_root.js").a.Symbol;t.a=o},"./node_modules/lodash-es/_WeakMap.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_getNative.js"),n=r("./node_modules/lodash-es/_root.js"),s=Object(o.a)(n.a,"WeakMap");t.a=s},"./node_modules/lodash-es/_baseGetTag.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_Symbol.js"),n=r("./node_modules/lodash-es/_getRawTag.js"),s=r("./node_modules/lodash-es/_objectToString.js"),i="[object Null]",a="[object Undefined]",c=o.a?o.a.toStringTag:void 0;t.a=function(e){return null==e?void 0===e?a:i:c&&c in Object(e)?Object(n.a)(e):Object(s.a)(e)}},"./node_modules/lodash-es/_baseIsArguments.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseGetTag.js"),n=r("./node_modules/lodash-es/isObjectLike.js"),s="[object Arguments]";t.a=function(e){return Object(n.a)(e)&&Object(o.a)(e)==s}},"./node_modules/lodash-es/_baseIsNative.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/isFunction.js"),n=r("./node_modules/lodash-es/_isMasked.js"),s=r("./node_modules/lodash-es/isObject.js"),i=r("./node_modules/lodash-es/_toSource.js"),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,f=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.a=function(e){return!(!Object(s.a)(e)||Object(n.a)(e))&&(Object(o.a)(e)?f:a).test(Object(i.a)(e))}},"./node_modules/lodash-es/_baseIsTypedArray.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseGetTag.js"),n=r("./node_modules/lodash-es/isLength.js"),s=r("./node_modules/lodash-es/isObjectLike.js"),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,t.a=function(e){return Object(s.a)(e)&&Object(n.a)(e.length)&&!!i[Object(o.a)(e)]}},"./node_modules/lodash-es/_baseKeys.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_isPrototype.js"),n=r("./node_modules/lodash-es/_nativeKeys.js"),s=Object.prototype.hasOwnProperty;t.a=function(e){if(!Object(o.a)(e))return Object(n.a)(e);var t=[];for(var r in Object(e))s.call(e,r)&&"constructor"!=r&&t.push(r);return t}},"./node_modules/lodash-es/_baseUnary.js":function(e,t,r){"use strict";t.a=function(e){return function(t){return e(t)}}},"./node_modules/lodash-es/_coreJsData.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_root.js").a["__core-js_shared__"];t.a=o},"./node_modules/lodash-es/_freeGlobal.js":function(e,t,r){"use strict";(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.a=r}).call(t,r("./node_modules/webpack/buildin/global.js"))},"./node_modules/lodash-es/_getNative.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseIsNative.js"),n=r("./node_modules/lodash-es/_getValue.js");t.a=function(e,t){var r=Object(n.a)(e,t);return Object(o.a)(r)?r:void 0}},"./node_modules/lodash-es/_getRawTag.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_Symbol.js"),n=Object.prototype,s=n.hasOwnProperty,i=n.toString,a=o.a?o.a.toStringTag:void 0;t.a=function(e){var t=s.call(e,a),r=e[a];try{e[a]=void 0;var o=!0}catch(e){}var n=i.call(e);return o&&(t?e[a]=r:delete e[a]),n}},"./node_modules/lodash-es/_getTag.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_DataView.js"),n=r("./node_modules/lodash-es/_Map.js"),s=r("./node_modules/lodash-es/_Promise.js"),i=r("./node_modules/lodash-es/_Set.js"),a=r("./node_modules/lodash-es/_WeakMap.js"),c=r("./node_modules/lodash-es/_baseGetTag.js"),u=r("./node_modules/lodash-es/_toSource.js"),l="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",b=Object(u.a)(o.a),y=Object(u.a)(n.a),m=Object(u.a)(s.a),_=Object(u.a)(i.a),j=Object(u.a)(a.a),g=c.a;(o.a&&g(new o.a(new ArrayBuffer(1)))!=h||n.a&&g(new n.a)!=l||s.a&&g(s.a.resolve())!=d||i.a&&g(new i.a)!=f||a.a&&g(new a.a)!=p)&&(g=function(e){var t=Object(c.a)(e),r="[object Object]"==t?e.constructor:void 0,o=r?Object(u.a)(r):"";if(o)switch(o){case b:return h;case y:return l;case m:return d;case _:return f;case j:return p}return t}),t.a=g},"./node_modules/lodash-es/_getValue.js":function(e,t,r){"use strict";t.a=function(e,t){return null==e?void 0:e[t]}},"./node_modules/lodash-es/_isMasked.js":function(e,t,r){"use strict";var o,n=r("./node_modules/lodash-es/_coreJsData.js"),s=(o=/[^.]+$/.exec(n.a&&n.a.keys&&n.a.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";t.a=function(e){return!!s&&s in e}},"./node_modules/lodash-es/_isPrototype.js":function(e,t,r){"use strict";var o=Object.prototype;t.a=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||o)}},"./node_modules/lodash-es/_nativeKeys.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_overArg.js"),n=Object(o.a)(Object.keys,Object);t.a=n},"./node_modules/lodash-es/_nodeUtil.js":function(e,t,r){"use strict";(function(e){var o=r("./node_modules/lodash-es/_freeGlobal.js"),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=n&&"object"==typeof e&&e&&!e.nodeType&&e,i=s&&s.exports===n&&o.a.process,a=function(){try{return i&&i.binding&&i.binding("util")}catch(e){}}();t.a=a}).call(t,r("./node_modules/webpack/buildin/harmony-module.js")(e))},"./node_modules/lodash-es/_objectToString.js":function(e,t,r){"use strict";var o=Object.prototype.toString;t.a=function(e){return o.call(e)}},"./node_modules/lodash-es/_overArg.js":function(e,t,r){"use strict";t.a=function(e,t){return function(r){return e(t(r))}}},"./node_modules/lodash-es/_root.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_freeGlobal.js"),n="object"==typeof self&&self&&self.Object===Object&&self,s=o.a||n||Function("return this")();t.a=s},"./node_modules/lodash-es/_toSource.js":function(e,t,r){"use strict";var o=Function.prototype.toString;t.a=function(e){if(null!=e){try{return o.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},"./node_modules/lodash-es/debounce.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/isObject.js"),n=r("./node_modules/lodash-es/now.js"),s=r("./node_modules/lodash-es/toNumber.js"),i="Expected a function",a=Math.max,c=Math.min;t.a=function(e,t,r){var u,l,d,f,p,h,b=0,y=!1,m=!1,_=!0;if("function"!=typeof e)throw new TypeError(i);function j(t){var r=u,o=l;return u=l=void 0,b=t,f=e.apply(o,r)}function g(e){var r=e-h;return void 0===h||r>=t||r<0||m&&e-b>=d}function v(){var e,r,o=Object(n.a)();if(g(o))return w(o);p=setTimeout(v,(r=t-((e=o)-h),m?c(r,d-(e-b)):r))}function w(e){return p=void 0,_&&u?j(e):(u=l=void 0,f)}function O(){var e,r=Object(n.a)(),o=g(r);if(u=arguments,l=this,h=r,o){if(void 0===p)return b=e=h,p=setTimeout(v,t),y?j(e):f;if(m)return p=setTimeout(v,t),j(h)}return void 0===p&&(p=setTimeout(v,t)),f}return t=Object(s.a)(t)||0,Object(o.a)(r)&&(y=!!r.leading,d=(m="maxWait"in r)?a(Object(s.a)(r.maxWait)||0,t):d,_="trailing"in r?!!r.trailing:_),O.cancel=function(){void 0!==p&&clearTimeout(p),b=0,u=h=l=p=void 0},O.flush=function(){return void 0===p?f:w(Object(n.a)())},O}},"./node_modules/lodash-es/isArguments.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseIsArguments.js"),n=r("./node_modules/lodash-es/isObjectLike.js"),s=Object.prototype,i=s.hasOwnProperty,a=s.propertyIsEnumerable,c=Object(o.a)(function(){return arguments}())?o.a:function(e){return Object(n.a)(e)&&i.call(e,"callee")&&!a.call(e,"callee")};t.a=c},"./node_modules/lodash-es/isArray.js":function(e,t,r){"use strict";var o=Array.isArray;t.a=o},"./node_modules/lodash-es/isArrayLike.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/isFunction.js"),n=r("./node_modules/lodash-es/isLength.js");t.a=function(e){return null!=e&&Object(n.a)(e.length)&&!Object(o.a)(e)}},"./node_modules/lodash-es/isBuffer.js":function(e,t,r){"use strict";(function(e){var o=r("./node_modules/lodash-es/_root.js"),n=r("./node_modules/lodash-es/stubFalse.js"),s="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=s&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===s?o.a.Buffer:void 0,c=(a?a.isBuffer:void 0)||n.a;t.a=c}).call(t,r("./node_modules/webpack/buildin/harmony-module.js")(e))},"./node_modules/lodash-es/isEmpty.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseKeys.js"),n=r("./node_modules/lodash-es/_getTag.js"),s=r("./node_modules/lodash-es/isArguments.js"),i=r("./node_modules/lodash-es/isArray.js"),a=r("./node_modules/lodash-es/isArrayLike.js"),c=r("./node_modules/lodash-es/isBuffer.js"),u=r("./node_modules/lodash-es/_isPrototype.js"),l=r("./node_modules/lodash-es/isTypedArray.js"),d="[object Map]",f="[object Set]",p=Object.prototype.hasOwnProperty;t.a=function(e){if(null==e)return!0;if(Object(a.a)(e)&&(Object(i.a)(e)||"string"==typeof e||"function"==typeof e.splice||Object(c.a)(e)||Object(l.a)(e)||Object(s.a)(e)))return!e.length;var t=Object(n.a)(e);if(t==d||t==f)return!e.size;if(Object(u.a)(e))return!Object(o.a)(e).length;for(var r in e)if(p.call(e,r))return!1;return!0}},"./node_modules/lodash-es/isFunction.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseGetTag.js"),n=r("./node_modules/lodash-es/isObject.js"),s="[object AsyncFunction]",i="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";t.a=function(e){if(!Object(n.a)(e))return!1;var t=Object(o.a)(e);return t==i||t==a||t==s||t==c}},"./node_modules/lodash-es/isLength.js":function(e,t,r){"use strict";var o=9007199254740991;t.a=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}},"./node_modules/lodash-es/isNil.js":function(e,t,r){"use strict";t.a=function(e){return null==e}},"./node_modules/lodash-es/isObject.js":function(e,t,r){"use strict";t.a=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"./node_modules/lodash-es/isObjectLike.js":function(e,t,r){"use strict";t.a=function(e){return null!=e&&"object"==typeof e}},"./node_modules/lodash-es/isString.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseGetTag.js"),n=r("./node_modules/lodash-es/isArray.js"),s=r("./node_modules/lodash-es/isObjectLike.js"),i="[object String]";t.a=function(e){return"string"==typeof e||!Object(n.a)(e)&&Object(s.a)(e)&&Object(o.a)(e)==i}},"./node_modules/lodash-es/isSymbol.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseGetTag.js"),n=r("./node_modules/lodash-es/isObjectLike.js"),s="[object Symbol]";t.a=function(e){return"symbol"==typeof e||Object(n.a)(e)&&Object(o.a)(e)==s}},"./node_modules/lodash-es/isTypedArray.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseIsTypedArray.js"),n=r("./node_modules/lodash-es/_baseUnary.js"),s=r("./node_modules/lodash-es/_nodeUtil.js"),i=s.a&&s.a.isTypedArray,a=i?Object(n.a)(i):o.a;t.a=a},"./node_modules/lodash-es/now.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_root.js");t.a=function(){return o.a.Date.now()}},"./node_modules/lodash-es/stubFalse.js":function(e,t,r){"use strict";t.a=function(){return!1}},"./node_modules/lodash-es/toNumber.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/isObject.js"),n=r("./node_modules/lodash-es/isSymbol.js"),s=NaN,i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;t.a=function(e){if("number"==typeof e)return e;if(Object(n.a)(e))return s;if(Object(o.a)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Object(o.a)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var r=c.test(e);return r||u.test(e)?l(e.slice(2),r?2:8):a.test(e)?s:+e}},"./node_modules/rxjs/Observable.js":function(e,t,r){"use strict";var o=r("./node_modules/rxjs/util/root.js"),n=r("./node_modules/rxjs/util/toSubscriber.js"),s=r("./node_modules/rxjs/symbol/observable.js"),i=r("./node_modules/rxjs/util/pipe.js"),a=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var o=this.operator,s=n.toSubscriber(e,t,r);if(o?o.call(s,this.source):s.add(this.source||!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},e.prototype.forEach=function(e,t){var r=this;if(t||(o.root.Rx&&o.root.Rx.config&&o.root.Rx.config.Promise?t=o.root.Rx.config.Promise:o.root.Promise&&(t=o.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,o){var n;n=r.subscribe(function(t){if(n)try{e(t)}catch(e){o(e),n.unsubscribe()}else e(t)},o,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[s.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return 0===e.length?this:i.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;if(e||(o.root.Rx&&o.root.Rx.config&&o.root.Rx.config.Promise?e=o.root.Rx.config.Promise:o.root.Promise&&(e=o.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var o;t.subscribe(function(e){return o=e},function(e){return r(e)},function(){return e(o)})})},e.create=function(t){return new e(t)},e}();t.Observable=a},"./node_modules/rxjs/Observer.js":function(e,t,r){"use strict";t.empty={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}},"./node_modules/rxjs/Subscriber.js":function(e,t,r){"use strict";var o=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function o(){this.constructor=e}e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)},n=r("./node_modules/rxjs/util/isFunction.js"),s=r("./node_modules/rxjs/Subscription.js"),i=r("./node_modules/rxjs/Observer.js"),a=r("./node_modules/rxjs/symbol/rxSubscriber.js"),c=function(e){function t(r,o,n){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.empty;break;case 1:if(!r){this.destination=i.empty;break}if("object"==typeof r){r instanceof t?(this.syncErrorThrowable=r.syncErrorThrowable,this.destination=r,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,r,o,n)}}return o(t,e),t.prototype[a.rxSubscriber]=function(){return this},t.create=function(e,r,o){var n=new t(e,r,o);return n.syncErrorThrowable=!1,n},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(s.Subscription);t.Subscriber=c;var u=function(e){function t(t,r,o,s){var a;e.call(this),this._parentSubscriber=t;var c=this;n.isFunction(r)?a=r:r&&(a=r.next,o=r.error,s=r.complete,r!==i.empty&&(c=Object.create(r),n.isFunction(c.unsubscribe)&&this.add(c.unsubscribe.bind(c)),c.unsubscribe=this.unsubscribe.bind(this))),this._context=c,this._next=a,this._error=o,this._complete=s}return o(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var r=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,r){try{t.call(this._context,r)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(c)},"./node_modules/rxjs/Subscription.js":function(e,t,r){"use strict";var o=r("./node_modules/rxjs/util/isArray.js"),n=r("./node_modules/rxjs/util/isObject.js"),s=r("./node_modules/rxjs/util/isFunction.js"),i=r("./node_modules/rxjs/util/tryCatch.js"),a=r("./node_modules/rxjs/util/errorObject.js"),c=r("./node_modules/rxjs/util/UnsubscriptionError.js"),u=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var r=this._parent,u=this._parents,d=this._unsubscribe,f=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var p=-1,h=u?u.length:0;r;)r.remove(this),r=++p<h&&u[p]||null;if(s.isFunction(d))i.tryCatch(d).call(this)===a.errorObject&&(t=!0,e=e||(a.errorObject.e instanceof c.UnsubscriptionError?l(a.errorObject.e.errors):[a.errorObject.e]));if(o.isArray(f))for(p=-1,h=f.length;++p<h;){var b=f[p];if(n.isObject(b))if(i.tryCatch(b.unsubscribe).call(b)===a.errorObject){t=!0,e=e||[];var y=a.errorObject.e;y instanceof c.UnsubscriptionError?e=e.concat(l(y.errors)):e.push(y)}}if(t)throw new c.UnsubscriptionError(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var r=t;switch(typeof t){case"function":r=new e(t);case"object":if(r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if("function"!=typeof r._addParent){var o=r;(r=new e)._subscriptions=[o]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(r),r._addParent(this),r},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},e.prototype._addParent=function(e){var t=this._parent,r=this._parents;t&&t!==e?r?-1===r.indexOf(e)&&r.push(e):this._parents=[e]:this._parent=e},e.EMPTY=((t=new e).closed=!0,t),e}();function l(e){return e.reduce(function(e,t){return e.concat(t instanceof c.UnsubscriptionError?t.errors:t)},[])}t.Subscription=u},"./node_modules/rxjs/symbol/observable.js":function(e,t,r){"use strict";var o=r("./node_modules/rxjs/util/root.js");function n(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}t.getSymbolObservable=n,t.observable=n(o.root),t.$$observable=t.observable},"./node_modules/rxjs/symbol/rxSubscriber.js":function(e,t,r){"use strict";var o=r("./node_modules/rxjs/util/root.js").root.Symbol;t.rxSubscriber="function"==typeof o&&"function"==typeof o.for?o.for("rxSubscriber"):"@@rxSubscriber",t.$$rxSubscriber=t.rxSubscriber},"./node_modules/rxjs/util/UnsubscriptionError.js":function(e,t,r){"use strict";var o=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function o(){this.constructor=e}e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)},n=function(e){function t(t){e.call(this),this.errors=t;var r=Error.call(this,t?t.length+" errors occurred during unsubscription:\n "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return o(t,e),t}(Error);t.UnsubscriptionError=n},"./node_modules/rxjs/util/errorObject.js":function(e,t,r){"use strict";t.errorObject={e:{}}},"./node_modules/rxjs/util/isArray.js":function(e,t,r){"use strict";t.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}},"./node_modules/rxjs/util/isFunction.js":function(e,t,r){"use strict";t.isFunction=function(e){return"function"==typeof e}},"./node_modules/rxjs/util/isObject.js":function(e,t,r){"use strict";t.isObject=function(e){return null!=e&&"object"==typeof e}},"./node_modules/rxjs/util/noop.js":function(e,t,r){"use strict";t.noop=function(){}},"./node_modules/rxjs/util/pipe.js":function(e,t,r){"use strict";var o=r("./node_modules/rxjs/util/noop.js");function n(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:o.noop}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return n(e)},t.pipeFromArray=n},"./node_modules/rxjs/util/root.js":function(e,t,r){"use strict";(function(e){var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,n=r||void 0!==e&&e||o;t.root=n,function(){if(!n)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(t,r("./node_modules/webpack/buildin/global.js"))},"./node_modules/rxjs/util/toSubscriber.js":function(e,t,r){"use strict";var o=r("./node_modules/rxjs/Subscriber.js"),n=r("./node_modules/rxjs/symbol/rxSubscriber.js"),s=r("./node_modules/rxjs/Observer.js");t.toSubscriber=function(e,t,r){if(e){if(e instanceof o.Subscriber)return e;if(e[n.rxSubscriber])return e[n.rxSubscriber]()}return e||t||r?new o.Subscriber(e,t,r):new o.Subscriber(s.empty)}},"./node_modules/rxjs/util/tryCatch.js":function(e,t,r){"use strict";var o,n=r("./node_modules/rxjs/util/errorObject.js");function s(){try{return o.apply(this,arguments)}catch(e){return n.errorObject.e=e,n.errorObject}}t.tryCatch=function(e){return o=e,s}},"./node_modules/webpack/buildin/global.js":function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},"./node_modules/webpack/buildin/harmony-module.js":function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},"./src/authentication/authenticator.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return d}),r.d(t,"b",function(){return f});var o,n=r("./src/authentication/endpoint.manager.ts"),s=r("./src/authentication/token.manager.ts"),i=r("./src/helpers/dialog.ts"),a=r("./src/errors/custom.error.ts"),c=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){e.done?n(e.value):new r(function(t){t(e.value)}).then(i,a)}c((o=o.apply(e,t||[])).next())})},l=this&&this.__generator||function(e,t){var r,o,n,s,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,o&&(n=o[2&s[0]?"return":s[0]?"throw":"next"])&&!(n=n.call(o,s[1])).done)return n;switch(o=0,n&&(s=[0,n.value]),s[0]){case 0:case 1:n=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,o=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(n=(n=i.trys).length>0&&n[n.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(6===s[0]&&i.label<n[1]){i.label=n[1],n=s;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(s);break}n[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],o=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};console.log("This is a test log");var d=function(e){function t(t,r){var o=e.call(this,"AuthError",t,r)||this;return o.innerError=r,o}return c(t,e),t}(a.a),f=function(){function e(e,t){this.endpoints=e,this.tokens=t,null==e&&(this.endpoints=new n.b),null==t&&(this.tokens=new s.a)}return e.prototype.authenticate=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var o=this.tokens.get(e);return s.a.hasExpired(o)||t?this._openAuthDialog(e,r):Promise.resolve(o)},e.isAuthDialog=function(e){return void 0===e&&(e=!1),!(!/(access_token|code|error|state)/gi.test(location.href)||/isProxy=true/gi.test(location.href))&&(i.a.close(location.href,e),!0)},e.getUrlParams=function(t,r,o){void 0===t&&(t=location.href),void 0===r&&(r=location.origin),void 0===o&&(o="#"),r&&(t=t.replace(r,""));var n=t.split(o),s=n[0],i=n[1],a=null==i?s:i;return-1!==a.indexOf("?")&&(a=a.split("?")[1]),e.extractParams(a)},e.extractParams=function(e){if(null==e||""===e.trim())return null;for(var t,r={},o=/([^&=]+)=([^&]*)/g;null!==(t=o.exec(e));)"/state"===t[1]&&(t[1]=t[1].replace("/","")),r[decodeURIComponent(t[1])]=decodeURIComponent(t[2]);return r},e.prototype._openAuthDialog=function(e,t){return u(this,void 0,void 0,function(){var r,o,s,a,c,u,f;return l(this,function(l){switch(l.label){case 0:return null==(r=this.endpoints.get(e))?[2,Promise.reject(new d("No such registered endpoint: "+e+" could be found."))]:(o=n.b.getLoginParams(r),s=o.state,a=o.url,c=o.proxyUrl,u=c||a,console.log("opening dialog at: ",u),[4,new i.a(u,1024,768,t).result]);case 1:return f=l.sent(),[2,this._handleTokenResult(f,r,s)]}})})},e.prototype._exchangeCodeForToken=function(e,t,r){var o=this;return new Promise(function(n,s){if(null==e.tokenUrl)return console.warn("We couldn't exchange the received code for an access_token. The value returned is not an access_token. Please set the tokenUrl property or refer to our docs."),n(t);var i=new XMLHttpRequest;for(var a in i.open("POST",e.tokenUrl),i.setRequestHeader("Accept","application/json"),i.setRequestHeader("Content-Type","application/json"),r)"Accept"!==a&&"Content-Type"!==a&&i.setRequestHeader(a,r[a]);i.onerror=function(){return s(new d("Unable to send request due to a Network error"))},i.onload=function(){try{if(200===i.status){var t=JSON.parse(i.responseText);return null==t?s(new d("No access_token or code could be parsed.")):"access_token"in t?(o.tokens.add(e.provider,t),n(t)):s(new d(t.error,t.state))}if(200!==i.status)return s(new d("Request failed. "+i.response))}catch(e){return s(new d("An error occurred while parsing the response"))}},i.send(JSON.stringify(t))})},e.prototype._handleTokenResult=function(t,r,o){var n=e.getUrlParams(t,r.redirectUrl);if(console.log("token result!",n,"expected state",o),null==n)throw new d("No access_token or code could be parsed.");if(r.state&&+n.state!==o)throw new d("State couldn't be verified");if("code"in n)return this._exchangeCodeForToken(r,n);if("access_token"in n)return this.tokens.add(r.provider,n);throw new d(n.error)},e}()},"./src/authentication/endpoint.manager.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return c}),r.d(t,"b",function(){return u});var o,n=r("./src/helpers/utilities.ts"),s=r("./src/helpers/storage.ts"),i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__assign||Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},c={Google:"Google",Microsoft:"Microsoft",Facebook:"Facebook",AzureAD:"AzureAD",Dropbox:"Dropbox"},u=function(e){function t(t){return void 0===t&&(t=s.b.LocalStorage),e.call(this,"OAuth2Endpoints",t)||this}return i(t,e),t.prototype.add=function(t,r){return null==r.redirectUrl&&(r.redirectUrl=window.location.origin),r.provider=t,e.prototype.set.call(this,t,r)},t.prototype.registerGoogleAuth=function(e,t){var r=a({},{clientId:e,baseUrl:"https://accounts.google.com",authorizeUrl:"/o/oauth2/v2/auth",resource:"https://www.googleapis.com",responseType:"token",scope:"https://www.googleapis.com/auth/plus.me",state:!0},t);return this.add(c.Google,r)},t.prototype.registerMicrosoftAuth=function(e,t){var r=a({},{clientId:e,baseUrl:"https://login.microsoftonline.com/common/oauth2/v2.0",authorizeUrl:"/authorize",responseType:"token",scope:"https://graph.microsoft.com/user.read",extraQueryParameters:{response_mode:"fragment"},nonce:!0,state:!0},t);this.add(c.Microsoft,r)},t.prototype.registerFacebookAuth=function(e,t){var r=a({},{clientId:e,baseUrl:"https://www.facebook.com",authorizeUrl:"/dialog/oauth",resource:"https://graph.facebook.com",responseType:"token",scope:"public_profile",nonce:!0,state:!0},t);this.add(c.Facebook,r)},t.prototype.registerAzureADAuth=function(e,t,r){var o=a({},{clientId:e,baseUrl:"https://login.windows.net/"+t,authorizeUrl:"/oauth2/authorize",resource:"https://graph.microsoft.com",responseType:"token",nonce:!0,state:!0},r);this.add(c.AzureAD,o)},t.prototype.registerDropboxAuth=function(e,t){var r=a({},{clientId:e,baseUrl:"https://www.dropbox.com/1",authorizeUrl:"/oauth2/authorize",responseType:"token",state:!0},t);this.add(c.Dropbox,r)},t.getLoginParams=function(e){var t=e.scope?encodeURIComponent(e.scope):null,r=e.resource?encodeURIComponent(e.resource):null,o=e.state&&n.c.generateCryptoSafeRandom(),s=e.nonce&&n.c.generateCryptoSafeRandom(),i=e.proxyUrl,a=["response_type="+e.responseType,"client_id="+encodeURIComponent(e.clientId),"redirect_uri="+encodeURIComponent(e.redirectUrl)];if(t&&a.push("scope="+t),r&&a.push("resource="+r),o&&a.push("state="+o),s&&a.push("nonce="+s),e.extraQueryParameters)for(var c=0,u=Object.keys(e.extraQueryParameters);c<u.length;c++){var l=u[c];a.push(l+"="+encodeURIComponent(e.extraQueryParameters[l]))}var d=""+e.baseUrl+e.authorizeUrl+"?"+a.join("&");return i&&"string"==typeof i&&(i+="?isProxy=true&redirect_uri="+encodeURIComponent(d)),{url:d,proxyUrl:i,state:o}},t}(s.a)},"./src/authentication/token.manager.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var o,n=r("./src/helpers/storage.ts"),s=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(t){return void 0===t&&(t=n.b.LocalStorage),e.call(this,"OAuth2Tokens",t)||this}return s(t,e),t.setExpiry=function(e){var t;null!=e&&null==e.expires_at&&(e.expires_at=null==(t=e.expires_in)?null:new Date((new Date).getTime()+1e3*~~t))},t.hasExpired=function(e){return null==e||null!=e.expires_at&&(e.expires_at=e.expires_at instanceof Date?e.expires_at:new Date(e.expires_at),e.expires_at.getTime()-(new Date).getTime()<0)},t.prototype.get=function(r){var o=e.prototype.get.call(this,r);return null==o?o:t.hasExpired(o)?(e.prototype.delete.call(this,r),null):o},t.prototype.add=function(r,o){return o.provider=r,t.setExpiry(o),e.prototype.set.call(this,r,o)},t}(n.a)},"./src/errors/api.error.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var o,n=r("./src/errors/custom.error.ts"),s=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(t,r){var o=e.call(this,"APIError",t,r)||this;return o.innerError=r,o}return s(t,e),t}(n.a)},"./src/errors/custom.error.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return s});var o,n=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(t,r,o){var n=e.call(this,r)||this;if(n.name=t,n.message=r,n.innerError=o,Error.captureStackTrace)Error.captureStackTrace(n,n.constructor);else{var s=new Error;if(s.stack){var i=s.stack.match(/[^\s]+$/);n.stack=n.name+" at "+i}}return n}return n(t,e),t}(Error)},"./src/errors/exception.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var o,n=r("./src/errors/custom.error.ts"),s=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(t,r){var o=e.call(this,"Exception",t,r)||this;return o.innerError=r,o}return s(t,e),t}(n.a)},"./src/excel/utilities.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return a});var o=r("./src/errors/api.error.ts"),n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){e.done?n(e.value):new r(function(t){t(e.value)}).then(i,a)}c((o=o.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,o,n,s,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,o&&(n=o[2&s[0]?"return":s[0]?"throw":"next"])&&!(n=n.call(o,s[1])).done)return n;switch(o=0,n&&(s=[0,n.value]),s[0]){case 0:case 1:n=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,o=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(n=(n=i.trys).length>0&&n[n.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(6===s[0]&&i.label<n[1]){i.label=n[1],n=s;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(s);break}n[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],o=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},a=function(){function e(){}return e.forceCreateSheet=function(e,t,r){return s(this,void 0,void 0,function(){var a;return i(this,function(c){switch(c.label){case 0:if(null==e&&(void 0===e?"undefined":n(e))!==n(Excel.Workbook))throw new o.a("Invalid workbook parameter.");if(null==t||""===t.trim())throw new o.a("Sheet name cannot be blank.");if(t.length>31)throw new o.a("Sheet name cannot be greater than 31 characters.");return r?[4,function(e,t,r){return s(this,void 0,void 0,function(){var n,s,a;return i(this,function(i){switch(i.label){case 0:return Office.context.requirements.isSetSupported("ExcelApi",1.4)?(n=e.workbook.worksheets.getItemOrNullObject(r),[4,e.sync()]):[3,2];case 1:return i.sent(),n.isNullObject?[2,e.workbook.worksheets.add(r)]:(n.getRange().clear(),[2,n]);case 2:return[4,e.sync()];case 3:i.sent(),i.label=4;case 4:return i.trys.push([4,6,,7]),(s=t.worksheets.getItem(r)).getRange().clear(),[4,e.sync()];case 5:return i.sent(),[2,s];case 6:if((a=i.sent())instanceof OfficeExtension.Error&&a.code===Excel.ErrorCodes.itemNotFound)return[2,t.worksheets.add(r)];throw new o.a("Unexpected error while trying to delete sheet.",a);case 7:return[2]}})})}(e.context,e,t)]:[3,2];case 1:return a=c.sent(),[3,4];case 2:return[4,function(e,t,r){return s(this,void 0,void 0,function(){var n,s;return i(this,function(i){switch(i.label){case 0:return n=t.worksheets.add(),Office.context.requirements.isSetSupported("ExcelApi",1.4)?(e.workbook.worksheets.getItemOrNullObject(r).delete(),[3,6]):[3,1];case 1:return[4,e.sync()];case 2:i.sent(),i.label=3;case 3:return i.trys.push([3,5,,6]),t.worksheets.getItem(r).delete(),[4,e.sync()];case 4:return i.sent(),[3,6];case 5:if(!((s=i.sent())instanceof OfficeExtension.Error&&s.code===Excel.ErrorCodes.itemNotFound))throw new o.a("Unexpected error while trying to delete sheet.",s);return[3,6];case 6:return n.name=r,[2,n]}})})}(e.context,e,t)];case 3:a=c.sent(),c.label=4;case 4:return[4,e.context.sync()];case 5:return c.sent(),[2,a]}})})},e}()},"./src/helpers/dialog.ts":function(e,t,r){"use strict";r.d(t,"b",function(){return c}),r.d(t,"a",function(){return u});var o,n=r("./src/helpers/utilities.ts"),s=r("./src/errors/custom.error.ts"),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t,r){var o=e.call(this,"DialogError",t,r)||this;return o.innerError=r,o}return a(t,e),t}(s.a),u=function(){function e(e,t,r,o){if(void 0===e&&(e=location.origin),void 0===t&&(t=1024),void 0===r&&(r=768),void 0===o&&(o=!1),this.url=e,this.useTeamsDialog=o,this._windowFeatures=",menubar=no,toolbar=no,location=no,resizable=yes,scrollbars=yes,status=no",!/^https/.test(e))throw new c("URL has to be loaded over HTTPS.");this.size=this._optimizeSize(t,r)}return Object.defineProperty(e.prototype,"result",{get:function(){return null==this._result&&(this.useTeamsDialog?this._result=this._teamsDialog():n.c.isAddin?this._result=this._addinDialog():this._result=this._webDialog()),this._result},enumerable:!0,configurable:!0}),e.prototype._addinDialog=function(){var e=this;return console.log("result for addindialog reached"),new Promise(function(t,r){Office.context.ui.displayDialogAsync(e.url,{width:e.size.width$,height:e.size.height$},function(o){if(o.status===Office.AsyncResultStatus.Failed)r(new c(o.error.message,o.error));else{var n=o.value;n.addEventHandler(Office.EventType.DialogMessageReceived,function(r){console.log("message received!",r);var o=e._safeParse(r.message);"string"==typeof o?(t(o),n.close()):console.log("would normally have called close, but did not receive a real message")}),n.addEventHandler(Office.EventType.DialogEventReceived,function(e){r(new c(e.message,e.error)),n.close()})}})})},e.prototype._teamsDialog=function(){var e=this;return new Promise(function(t,r){microsoftTeams.initialize(),microsoftTeams.authentication.authenticate({url:e.url,width:e.size.width,height:e.size.height,failureCallback:function(e){return r(new c("Error while launching dialog",e))},successCallback:function(r){return t(e._safeParse(r))}})})},e.prototype._webDialog=function(){var e=this;return new Promise(function(t,r){try{var o="width="+e.size.width+",height="+e.size.height+e._windowFeatures;if(window.open(e.url,e.url,o),n.c.isIEOrEdge)e._pollLocalStorageForToken(t,r);else{window.addEventListener("message",function r(o){o.origin===location.origin&&(window.removeEventListener("message",r,!1),t(e._safeParse(o.data)))})}}catch(e){return r(new c("Unexpected error occurred while creating popup",e))}})},e.prototype._pollLocalStorageForToken=function(t,r){var o=this;localStorage.removeItem(e.key);var n=setInterval(function(){try{var s=localStorage.getItem(e.key);if(null!=s)return clearInterval(n),localStorage.removeItem(e.key),t(o._safeParse(s))}catch(t){return clearInterval(n),localStorage.removeItem(e.key),r(new c("Unexpected error occurred in the dialog",t))}},400)},e.close=function(t,r){void 0===r&&(r=!1);var o=!1,s=t;if("function"==typeof t)throw new c("Invalid message. Cannot pass functions as arguments");null!=s&&"object"===(void 0===s?"undefined":i(s))&&(o=!0,s=JSON.stringify(s));try{r?(microsoftTeams.initialize(),microsoftTeams.authentication.notifySuccess(JSON.stringify({parse:o,value:s}))):n.c.isAddin?Office.context.ui.messageParent(JSON.stringify({parse:o,value:s})):(n.c.isIEOrEdge?localStorage.setItem(e.key,JSON.stringify({parse:o,value:s})):window.opener&&window.opener.postMessage(JSON.stringify({parse:o,value:s}),location.origin),window.close())}catch(e){throw new c("Cannot close dialog",e)}},e.prototype._optimizeSize=function(e,t){var r=window.screen,o=r.width,n=r.height,s=this._maxSize(e,o),i=this._maxSize(t,n);return{width$:this._percentage(s,o),height$:this._percentage(i,n),width:s,height:i}},e.prototype._maxSize=function(e,t){return e<t-30?e:t-30},e.prototype._percentage=function(e,t){return 100*e/t},e.prototype._safeParse=function(e){try{var t=JSON.parse(e);return!0===t.parse?this._safeParse(t.value):t.value}catch(t){return console.log("Warning! Unable to parse message: ",e),e}},e.key="VGVtcG9yYXJ5S2V5Rm9yT0pIQXV0aA==",e}()},"./src/helpers/dictionary.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return c});var o=r("./node_modules/lodash-es/isEmpty.js"),n=r("./node_modules/lodash-es/isString.js"),s=r("./node_modules/lodash-es/isNil.js"),i=r("./node_modules/lodash-es/isObject.js"),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=function(){function e(e){if(Object(s.a)(e))this._items=new Map;else{if(e instanceof Set)throw new TypeError("Invalid type of argument: Set");if(e instanceof Map)this._items=new Map(e);else if(Array.isArray(e))this._items=new Map(e);else{if(!Object(i.a)(e))throw new TypeError("Invalid type of argument: "+(void 0===e?"undefined":a(e)));this._items=new Map;for(var t=0,r=Object.keys(e);t<r.length;t++){var o=r[t];this._items.set(o,e[o])}}}}return e.prototype.get=function(e){return this._items.get(e)},e.prototype.set=function(e,t){return this._validateKey(e),this._items.set(e,t),t},e.prototype.delete=function(e){if(!this.has(e))throw new ReferenceError("Key: "+e+" not found.");var t=this._items.get(e);return this._items.delete(e),t},e.prototype.clear=function(){this._items.clear()},e.prototype.has=function(e){return this._validateKey(e),this._items.has(e)},e.prototype.keys=function(){return Array.from(this._items.keys())},e.prototype.values=function(){return Array.from(this._items.values())},e.prototype.clone=function(){return new Map(this._items)},Object.defineProperty(e.prototype,"count",{get:function(){return this._items.size},enumerable:!0,configurable:!0}),e.prototype._validateKey=function(e){if(!Object(n.a)(e)||Object(o.a)(e))throw new TypeError("Key needs to be a string")},e}()},"./src/helpers/storage.ts":function(e,t,r){"use strict";r.d(t,"b",function(){return o}),r.d(t,"a",function(){return f});var o,n,s=r("./node_modules/lodash-es/isNil.js"),i=r("./node_modules/lodash-es/isString.js"),a=r("./node_modules/lodash-es/isEmpty.js"),c=r("./node_modules/lodash-es/debounce.js"),u=r("./node_modules/rxjs/Observable.js"),l=(r.n(u),r("./src/errors/exception.ts")),d=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/;(n=o||(o={}))[n.LocalStorage=0]="LocalStorage",n[n.SessionStorage=1]="SessionStorage",n[n.InMemoryStorage=2]="InMemoryStorage";var f=function(){function e(e,t){void 0===t&&(t=o.LocalStorage),this.container=e,this._type=t,this._observable=null,this._containerRegex=null,this._validateKey(e),this._containerRegex=new RegExp("^@"+this.container+"/"),this.switchStorage(this._type)}return e.prototype.switchStorage=function(e){switch(e){case o.LocalStorage:this._storage=window.localStorage;break;case o.SessionStorage:this._storage=window.sessionStorage;break;case o.InMemoryStorage:this._storage=new p}if(Object(s.a)(this._storage))throw new l.a("Browser local or session storage is not supported.");this._storage.hasOwnProperty(this.container)||(this._storage[this.container]=null)},e.prototype.get=function(e){var t=this._scope(e),r=this._storage.getItem(t);try{return JSON.parse(r,this._reviver.bind(this))}catch(e){return r}},e.prototype.set=function(e,t){this._validateKey(e);try{var r=this._scope(e),o=JSON.stringify(t);return this._storage.setItem(r,o),t}catch(t){throw new l.a("Unable to serialize value for: "+e+" ",t)}},e.prototype.delete=function(e){try{var t=this.get(e);if(void 0===t)throw new ReferenceError("Key: "+e+" not found.");var r=this._scope(e);return this._storage.removeItem(r),t}catch(t){throw new l.a("Unable to delete '"+e+"' from storage",t)}},e.prototype.clear=function(){this._storage.removeItem(this.container)},e.prototype.has=function(e){return this._validateKey(e),void 0!==this.get(e)},e.prototype.keys=function(){var e=this;try{return Object.keys(this._storage).filter(function(t){return e._containerRegex.test(t)})}catch(e){throw new l.a("Unable to get keys from storage",e)}},e.prototype.values=function(){var e=this;try{return this.keys().map(function(t){return e.get(t)})}catch(e){throw new l.a("Unable to get values from storage",e)}},Object.defineProperty(e.prototype,"count",{get:function(){try{return this.keys().length}catch(e){throw new l.a("Unable to get size of localStorage",e)}},enumerable:!0,configurable:!0}),e.clearAll=function(){window.localStorage.clear(),window.sessionStorage.clear()},e.prototype.notify=function(e,t,r){var o=this;return null!=this._observable?this._observable.subscribe(e,t,r):(this._observable=new u.Observable(function(e){var t=Object(c.a)(function(t){try{o._containerRegex.test(t.key)&&e.next(t.key)}catch(t){e.error(t)}},300);return window.addEventListener("storage",t,!1),function(){window.removeEventListener("storage",t,!1),o._observable=null}}),this._observable.subscribe(e,t,r))},e.prototype._validateKey=function(e){if(!Object(i.a)(e)||Object(a.a)(e))throw new TypeError("Key needs to be a string")},e.prototype._reviver=function(e,t){return Object(i.a)(t)&&d.test(t)?new Date(t):t},e.prototype._scope=function(e){return Object(a.a)(this.container)?e:"@"+this.container+"/"+e},e}(),p=function(){function e(){console.warn("Using non persistent storage. Data will be lost when browser is refreshed/closed"),this._map=new Map}return Object.defineProperty(e.prototype,"length",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this._map.clear()},e.prototype.getItem=function(e){return this._map.get(e)},e.prototype.removeItem=function(e){return this._map.delete(e)},e.prototype.setItem=function(e,t){this._map.set(e,t)},e.prototype.key=function(e){var t=void 0,r=0;return this._map.forEach(function(o,n){++r===e&&(t=n)}),t},e}()},"./src/helpers/utilities.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return n}),r.d(t,"b",function(){return s}),r.d(t,"c",function(){return a});var o=r("./src/errors/custom.error.ts"),n={WEB:"WEB",ACCESS:"ACCESS",EXCEL:"EXCEL",ONENOTE:"ONENOTE",OUTLOOK:"OUTLOOK",POWERPOINT:"POWERPOINT",PROJECT:"PROJECT",WORD:"WORD"},s={IOS:"IOS",MAC:"MAC",OFFICE_ONLINE:"OFFICE_ONLINE",PC:"PC"};function i(){var e,t,r=window.Office,o=r&&r.context&&r.context.host?r.context:function(){try{if(null==window.sessionStorage)throw new Error("Session Storage isn't supported");var e=window.sessionStorage.hostInfoValue,t=e.split("$"),r=t[0],o=t[1],i=t[2];null==i&&(d=e.split("|"),r=d[0],o=d[1]);var c=r.toUpperCase()||"WEB",u=null;if(a.host!==n.WEB){var l={IOS:s.IOS,MAC:s.MAC,WEB:s.OFFICE_ONLINE,WIN32:s.PC};u=l[o.toUpperCase()]||null}return{host:c,platform:u}}catch(e){return{host:"WEB",platform:null}}var d}();return{host:(t=o.host,{Word:n.WORD,Excel:n.EXCEL,PowerPoint:n.POWERPOINT,Outlook:n.OUTLOOK,OneNote:n.ONENOTE,Project:n.PROJECT,Access:n.ACCESS}[t]||t),platform:(e=o.platform,{PC:s.PC,OfficeOnline:s.OFFICE_ONLINE,Mac:s.MAC,iOS:s.IOS}[e]||e)}}var a=function(){function e(){}return e.initialize=function(){return new Promise(function(e,t){try{Office.initialize=function(t){return e(t)}}catch(r){window.Office?t(r):e("Office was not found. Running as web application.")}})},Object.defineProperty(e,"host",{get:function(){return i().host},enumerable:!0,configurable:!0}),Object.defineProperty(e,"platform",{get:function(){return i().platform},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isAddin",{get:function(){return e.host!==n.WEB&&!e.isEdge},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isIE",{get:function(){return/Trident\//gi.test(window.navigator.userAgent)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isEdge",{get:function(){return/Edge\//gi.test(window.navigator.userAgent)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isIEOrEdge",{get:function(){return e.isIE||e.isEdge},enumerable:!0,configurable:!0}),e.generateCryptoSafeRandom=function(){var e=new Uint32Array(1);if("msCrypto"in window)window.msCrypto.getRandomValues(e);else{if(!("crypto"in window))throw new Error("The platform doesn't support generation of cryptographically safe randoms. Please disable the state flag and try again.");window.crypto.getRandomValues(e)}return e[0]},e.log=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(null!=t)return console.log.apply(console,[e,t].concat(r));if(null==e)console.error(e);else if("string"==typeof e)console.error(e);else{console.group(e.name+": "+e.message);var s=e;e instanceof o.a&&(s=e.innerError),window.OfficeExtension&&s instanceof OfficeExtension.Error&&(console.groupCollapsed("Debug Info"),console.error(s.debugInfo),console.groupEnd()),console.groupCollapsed("Stack Trace"),console.error(e.stack),console.groupEnd(),console.groupCollapsed("Inner Error"),console.error(s),console.groupEnd(),console.groupEnd()}},e}()},"./src/index.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("./src/errors/custom.error.ts");r.d(t,"CustomError",function(){return o.a});var n=r("./src/helpers/dialog.ts");r.d(t,"DialogError",function(){return n.b}),r.d(t,"Dialog",function(){return n.a});var s=r("./src/helpers/utilities.ts");r.d(t,"HostType",function(){return s.a}),r.d(t,"PlatformType",function(){return s.b}),r.d(t,"Utilities",function(){return s.c});var i=r("./src/helpers/dictionary.ts");r.d(t,"Dictionary",function(){return i.a});var a=r("./src/helpers/storage.ts");r.d(t,"StorageType",function(){return a.b}),r.d(t,"Storage",function(){return a.a});var c=r("./src/authentication/token.manager.ts");r.d(t,"TokenStorage",function(){return c.a});var u=r("./src/authentication/endpoint.manager.ts");r.d(t,"DefaultEndpoints",function(){return u.a}),r.d(t,"EndpointStorage",function(){return u.b});var l=r("./src/authentication/authenticator.ts");r.d(t,"AuthError",function(){return l.a}),r.d(t,"Authenticator",function(){return l.b});var d=r("./src/excel/utilities.ts");r.d(t,"ExcelUtilities",function(){return d.a});var f=r("./src/ui/ui.ts");r.d(t,"UI",function(){return f.a})},"./src/ui/message-banner.html":function(e,t,r){"use strict";t.a='<div class="office-js-helpers-notification ms-font-m ms-MessageBar @@CLASS">\n <style>\n .office-js-helpers-notification {\n position: fixed;\n z-index: 2147483647;\n top: 0;\n left: 0;\n right: 0;\n width: 100%;\n padding: 0 0 10px 0;\n }\n\n .office-js-helpers-notification > div > div {\n padding: 10px 15px;\n box-sizing: border-box;\n }\n\n .office-js-helpers-notification pre {\n white-space: pre-wrap;\n word-wrap: break-word;\n margin: 0px;\n font-size: smaller;\n }\n\n .office-js-helpers-notification > button {\n height: 52px;\n width: 40px;\n cursor: pointer;\n float: right;\n background: transparent;\n border: 0;\n margin-left: 10px;\n margin-right: \'@@PADDING\'\n }\n </style>\n <button>\n <i class="ms-Icon ms-Icon--Clear"></i>\n </button>\n</div>'},"./src/ui/ui.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return a});var o=r("./src/helpers/utilities.ts"),n=r("./src/util/stringify.ts"),s=r("./src/ui/message-banner.html"),i=2,a=function(){function e(){}return e.notify=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=function(e){if(null==e)return null;var t=e[0],r=e[1],o=e[2];{if(t instanceof Error){var s="",a=t,c=a.innerError,u=a.stack;if(c){var l=JSON.stringify(c.debugInfo||c,null,i);s+="Inner Error: \n"+l+"\n"}return u&&(s+="Stack Trace: \n"+t.stack+"\n"),{message:t.message,title:r||t.name,type:"error",details:s}}return{message:Object(n.a)(t),title:r,type:o||"default",details:null}}}(e);if(null==r)return console.error(new Error("Invalid params. Cannot create a notification")),null;var a={success:"ms-MessageBar--success",error:"ms-MessageBar--error",warning:"ms-MessageBar--warning","severe-warning":"ms-MessageBar--severeWarning"}[r.type]||"",c="0";o.c.platform===o.b.PC?c="20px":o.c.platform===o.b.MAC&&(c="40px");for(var u=s.a.replace("@@CLASS",a).replace("'@@PADDING'",c),l=document.getElementsByClassName("office-js-helpers-notification");l[0];)l[0].parentNode.removeChild(l[0]);document.body.insertAdjacentHTML("afterbegin",u);var d=document.getElementsByClassName("office-js-helpers-notification")[0],f=document.createElement("div");if(d.insertAdjacentElement("beforeend",f),r.title){var p=document.createElement("div");p.textContent=r.title,p.classList.add("ms-fontWeight-semibold"),f.insertAdjacentElement("beforeend",p)}if(r.message.split("\n").forEach(function(e){var t=document.createElement("div");t.textContent=e,f.insertAdjacentElement("beforeend",t)}),r.details){var h=document.createElement("div");f.insertAdjacentElement("beforeend",h);var b=document.createElement("a");b.setAttribute("href","javascript:void(0)"),b.onclick=function(){document.querySelector(".office-js-helpers-notification pre").parentElement.style.display="block",h.style.display="none"},b.textContent="Details",h.insertAdjacentElement("beforeend",b);var y=document.createElement("div");y.style.display="none",f.insertAdjacentElement("beforeend",y);var m=document.createElement("pre");m.textContent=r.details,y.insertAdjacentElement("beforeend",m)}document.querySelector(".office-js-helpers-notification > button").onclick=function(){return d.parentNode.removeChild(d)}},e}()},"./src/util/stringify.ts":function(e,t,r){"use strict";t.a=function(e){if(void 0===e)return"undefined";if("string"==typeof e)return e;if("function"==typeof e.toString&&"[object Object]"!==e.toString())return e.toString();return JSON.stringify(e,null,2)}}})}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("OfficeHelpers",[],t):"object"==typeof exports?exports.OfficeHelpers=t():e.OfficeHelpers=t()}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./src/index.ts")}({"./node_modules/lodash-es/_DataView.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_getNative.js"),n=r("./node_modules/lodash-es/_root.js"),s=Object(o.a)(n.a,"DataView");t.a=s},"./node_modules/lodash-es/_Map.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_getNative.js"),n=r("./node_modules/lodash-es/_root.js"),s=Object(o.a)(n.a,"Map");t.a=s},"./node_modules/lodash-es/_Promise.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_getNative.js"),n=r("./node_modules/lodash-es/_root.js"),s=Object(o.a)(n.a,"Promise");t.a=s},"./node_modules/lodash-es/_Set.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_getNative.js"),n=r("./node_modules/lodash-es/_root.js"),s=Object(o.a)(n.a,"Set");t.a=s},"./node_modules/lodash-es/_Symbol.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_root.js").a.Symbol;t.a=o},"./node_modules/lodash-es/_WeakMap.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_getNative.js"),n=r("./node_modules/lodash-es/_root.js"),s=Object(o.a)(n.a,"WeakMap");t.a=s},"./node_modules/lodash-es/_baseGetTag.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_Symbol.js"),n=r("./node_modules/lodash-es/_getRawTag.js"),s=r("./node_modules/lodash-es/_objectToString.js"),i="[object Null]",a="[object Undefined]",c=o.a?o.a.toStringTag:void 0;t.a=function(e){return null==e?void 0===e?a:i:c&&c in Object(e)?Object(n.a)(e):Object(s.a)(e)}},"./node_modules/lodash-es/_baseIsArguments.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseGetTag.js"),n=r("./node_modules/lodash-es/isObjectLike.js"),s="[object Arguments]";t.a=function(e){return Object(n.a)(e)&&Object(o.a)(e)==s}},"./node_modules/lodash-es/_baseIsNative.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/isFunction.js"),n=r("./node_modules/lodash-es/_isMasked.js"),s=r("./node_modules/lodash-es/isObject.js"),i=r("./node_modules/lodash-es/_toSource.js"),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,f=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.a=function(e){return!(!Object(s.a)(e)||Object(n.a)(e))&&(Object(o.a)(e)?f:a).test(Object(i.a)(e))}},"./node_modules/lodash-es/_baseIsTypedArray.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseGetTag.js"),n=r("./node_modules/lodash-es/isLength.js"),s=r("./node_modules/lodash-es/isObjectLike.js"),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,t.a=function(e){return Object(s.a)(e)&&Object(n.a)(e.length)&&!!i[Object(o.a)(e)]}},"./node_modules/lodash-es/_baseKeys.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_isPrototype.js"),n=r("./node_modules/lodash-es/_nativeKeys.js"),s=Object.prototype.hasOwnProperty;t.a=function(e){if(!Object(o.a)(e))return Object(n.a)(e);var t=[];for(var r in Object(e))s.call(e,r)&&"constructor"!=r&&t.push(r);return t}},"./node_modules/lodash-es/_baseUnary.js":function(e,t,r){"use strict";t.a=function(e){return function(t){return e(t)}}},"./node_modules/lodash-es/_coreJsData.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_root.js").a["__core-js_shared__"];t.a=o},"./node_modules/lodash-es/_freeGlobal.js":function(e,t,r){"use strict";(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.a=r}).call(t,r("./node_modules/webpack/buildin/global.js"))},"./node_modules/lodash-es/_getNative.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseIsNative.js"),n=r("./node_modules/lodash-es/_getValue.js");t.a=function(e,t){var r=Object(n.a)(e,t);return Object(o.a)(r)?r:void 0}},"./node_modules/lodash-es/_getRawTag.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_Symbol.js"),n=Object.prototype,s=n.hasOwnProperty,i=n.toString,a=o.a?o.a.toStringTag:void 0;t.a=function(e){var t=s.call(e,a),r=e[a];try{e[a]=void 0;var o=!0}catch(e){}var n=i.call(e);return o&&(t?e[a]=r:delete e[a]),n}},"./node_modules/lodash-es/_getTag.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_DataView.js"),n=r("./node_modules/lodash-es/_Map.js"),s=r("./node_modules/lodash-es/_Promise.js"),i=r("./node_modules/lodash-es/_Set.js"),a=r("./node_modules/lodash-es/_WeakMap.js"),c=r("./node_modules/lodash-es/_baseGetTag.js"),u=r("./node_modules/lodash-es/_toSource.js"),l="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",b=Object(u.a)(o.a),y=Object(u.a)(n.a),m=Object(u.a)(s.a),_=Object(u.a)(i.a),j=Object(u.a)(a.a),g=c.a;(o.a&&g(new o.a(new ArrayBuffer(1)))!=h||n.a&&g(new n.a)!=l||s.a&&g(s.a.resolve())!=d||i.a&&g(new i.a)!=f||a.a&&g(new a.a)!=p)&&(g=function(e){var t=Object(c.a)(e),r="[object Object]"==t?e.constructor:void 0,o=r?Object(u.a)(r):"";if(o)switch(o){case b:return h;case y:return l;case m:return d;case _:return f;case j:return p}return t}),t.a=g},"./node_modules/lodash-es/_getValue.js":function(e,t,r){"use strict";t.a=function(e,t){return null==e?void 0:e[t]}},"./node_modules/lodash-es/_isMasked.js":function(e,t,r){"use strict";var o,n=r("./node_modules/lodash-es/_coreJsData.js"),s=(o=/[^.]+$/.exec(n.a&&n.a.keys&&n.a.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";t.a=function(e){return!!s&&s in e}},"./node_modules/lodash-es/_isPrototype.js":function(e,t,r){"use strict";var o=Object.prototype;t.a=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||o)}},"./node_modules/lodash-es/_nativeKeys.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_overArg.js"),n=Object(o.a)(Object.keys,Object);t.a=n},"./node_modules/lodash-es/_nodeUtil.js":function(e,t,r){"use strict";(function(e){var o=r("./node_modules/lodash-es/_freeGlobal.js"),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=n&&"object"==typeof e&&e&&!e.nodeType&&e,i=s&&s.exports===n&&o.a.process,a=function(){try{return i&&i.binding&&i.binding("util")}catch(e){}}();t.a=a}).call(t,r("./node_modules/webpack/buildin/harmony-module.js")(e))},"./node_modules/lodash-es/_objectToString.js":function(e,t,r){"use strict";var o=Object.prototype.toString;t.a=function(e){return o.call(e)}},"./node_modules/lodash-es/_overArg.js":function(e,t,r){"use strict";t.a=function(e,t){return function(r){return e(t(r))}}},"./node_modules/lodash-es/_root.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_freeGlobal.js"),n="object"==typeof self&&self&&self.Object===Object&&self,s=o.a||n||Function("return this")();t.a=s},"./node_modules/lodash-es/_toSource.js":function(e,t,r){"use strict";var o=Function.prototype.toString;t.a=function(e){if(null!=e){try{return o.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},"./node_modules/lodash-es/debounce.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/isObject.js"),n=r("./node_modules/lodash-es/now.js"),s=r("./node_modules/lodash-es/toNumber.js"),i="Expected a function",a=Math.max,c=Math.min;t.a=function(e,t,r){var u,l,d,f,p,h,b=0,y=!1,m=!1,_=!0;if("function"!=typeof e)throw new TypeError(i);function j(t){var r=u,o=l;return u=l=void 0,b=t,f=e.apply(o,r)}function g(e){var r=e-h;return void 0===h||r>=t||r<0||m&&e-b>=d}function v(){var e,r,o=Object(n.a)();if(g(o))return w(o);p=setTimeout(v,(r=t-((e=o)-h),m?c(r,d-(e-b)):r))}function w(e){return p=void 0,_&&u?j(e):(u=l=void 0,f)}function O(){var e,r=Object(n.a)(),o=g(r);if(u=arguments,l=this,h=r,o){if(void 0===p)return b=e=h,p=setTimeout(v,t),y?j(e):f;if(m)return p=setTimeout(v,t),j(h)}return void 0===p&&(p=setTimeout(v,t)),f}return t=Object(s.a)(t)||0,Object(o.a)(r)&&(y=!!r.leading,d=(m="maxWait"in r)?a(Object(s.a)(r.maxWait)||0,t):d,_="trailing"in r?!!r.trailing:_),O.cancel=function(){void 0!==p&&clearTimeout(p),b=0,u=h=l=p=void 0},O.flush=function(){return void 0===p?f:w(Object(n.a)())},O}},"./node_modules/lodash-es/isArguments.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseIsArguments.js"),n=r("./node_modules/lodash-es/isObjectLike.js"),s=Object.prototype,i=s.hasOwnProperty,a=s.propertyIsEnumerable,c=Object(o.a)(function(){return arguments}())?o.a:function(e){return Object(n.a)(e)&&i.call(e,"callee")&&!a.call(e,"callee")};t.a=c},"./node_modules/lodash-es/isArray.js":function(e,t,r){"use strict";var o=Array.isArray;t.a=o},"./node_modules/lodash-es/isArrayLike.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/isFunction.js"),n=r("./node_modules/lodash-es/isLength.js");t.a=function(e){return null!=e&&Object(n.a)(e.length)&&!Object(o.a)(e)}},"./node_modules/lodash-es/isBuffer.js":function(e,t,r){"use strict";(function(e){var o=r("./node_modules/lodash-es/_root.js"),n=r("./node_modules/lodash-es/stubFalse.js"),s="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=s&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===s?o.a.Buffer:void 0,c=(a?a.isBuffer:void 0)||n.a;t.a=c}).call(t,r("./node_modules/webpack/buildin/harmony-module.js")(e))},"./node_modules/lodash-es/isEmpty.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseKeys.js"),n=r("./node_modules/lodash-es/_getTag.js"),s=r("./node_modules/lodash-es/isArguments.js"),i=r("./node_modules/lodash-es/isArray.js"),a=r("./node_modules/lodash-es/isArrayLike.js"),c=r("./node_modules/lodash-es/isBuffer.js"),u=r("./node_modules/lodash-es/_isPrototype.js"),l=r("./node_modules/lodash-es/isTypedArray.js"),d="[object Map]",f="[object Set]",p=Object.prototype.hasOwnProperty;t.a=function(e){if(null==e)return!0;if(Object(a.a)(e)&&(Object(i.a)(e)||"string"==typeof e||"function"==typeof e.splice||Object(c.a)(e)||Object(l.a)(e)||Object(s.a)(e)))return!e.length;var t=Object(n.a)(e);if(t==d||t==f)return!e.size;if(Object(u.a)(e))return!Object(o.a)(e).length;for(var r in e)if(p.call(e,r))return!1;return!0}},"./node_modules/lodash-es/isFunction.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseGetTag.js"),n=r("./node_modules/lodash-es/isObject.js"),s="[object AsyncFunction]",i="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";t.a=function(e){if(!Object(n.a)(e))return!1;var t=Object(o.a)(e);return t==i||t==a||t==s||t==c}},"./node_modules/lodash-es/isLength.js":function(e,t,r){"use strict";var o=9007199254740991;t.a=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}},"./node_modules/lodash-es/isNil.js":function(e,t,r){"use strict";t.a=function(e){return null==e}},"./node_modules/lodash-es/isObject.js":function(e,t,r){"use strict";t.a=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"./node_modules/lodash-es/isObjectLike.js":function(e,t,r){"use strict";t.a=function(e){return null!=e&&"object"==typeof e}},"./node_modules/lodash-es/isString.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseGetTag.js"),n=r("./node_modules/lodash-es/isArray.js"),s=r("./node_modules/lodash-es/isObjectLike.js"),i="[object String]";t.a=function(e){return"string"==typeof e||!Object(n.a)(e)&&Object(s.a)(e)&&Object(o.a)(e)==i}},"./node_modules/lodash-es/isSymbol.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseGetTag.js"),n=r("./node_modules/lodash-es/isObjectLike.js"),s="[object Symbol]";t.a=function(e){return"symbol"==typeof e||Object(n.a)(e)&&Object(o.a)(e)==s}},"./node_modules/lodash-es/isTypedArray.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_baseIsTypedArray.js"),n=r("./node_modules/lodash-es/_baseUnary.js"),s=r("./node_modules/lodash-es/_nodeUtil.js"),i=s.a&&s.a.isTypedArray,a=i?Object(n.a)(i):o.a;t.a=a},"./node_modules/lodash-es/now.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/_root.js");t.a=function(){return o.a.Date.now()}},"./node_modules/lodash-es/stubFalse.js":function(e,t,r){"use strict";t.a=function(){return!1}},"./node_modules/lodash-es/toNumber.js":function(e,t,r){"use strict";var o=r("./node_modules/lodash-es/isObject.js"),n=r("./node_modules/lodash-es/isSymbol.js"),s=NaN,i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;t.a=function(e){if("number"==typeof e)return e;if(Object(n.a)(e))return s;if(Object(o.a)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Object(o.a)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var r=c.test(e);return r||u.test(e)?l(e.slice(2),r?2:8):a.test(e)?s:+e}},"./node_modules/rxjs/Observable.js":function(e,t,r){"use strict";var o=r("./node_modules/rxjs/util/root.js"),n=r("./node_modules/rxjs/util/toSubscriber.js"),s=r("./node_modules/rxjs/symbol/observable.js"),i=r("./node_modules/rxjs/util/pipe.js"),a=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var o=this.operator,s=n.toSubscriber(e,t,r);if(o?o.call(s,this.source):s.add(this.source||!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},e.prototype.forEach=function(e,t){var r=this;if(t||(o.root.Rx&&o.root.Rx.config&&o.root.Rx.config.Promise?t=o.root.Rx.config.Promise:o.root.Promise&&(t=o.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,o){var n;n=r.subscribe(function(t){if(n)try{e(t)}catch(e){o(e),n.unsubscribe()}else e(t)},o,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[s.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return 0===e.length?this:i.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;if(e||(o.root.Rx&&o.root.Rx.config&&o.root.Rx.config.Promise?e=o.root.Rx.config.Promise:o.root.Promise&&(e=o.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var o;t.subscribe(function(e){return o=e},function(e){return r(e)},function(){return e(o)})})},e.create=function(t){return new e(t)},e}();t.Observable=a},"./node_modules/rxjs/Observer.js":function(e,t,r){"use strict";t.empty={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}},"./node_modules/rxjs/Subscriber.js":function(e,t,r){"use strict";var o=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function o(){this.constructor=e}e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)},n=r("./node_modules/rxjs/util/isFunction.js"),s=r("./node_modules/rxjs/Subscription.js"),i=r("./node_modules/rxjs/Observer.js"),a=r("./node_modules/rxjs/symbol/rxSubscriber.js"),c=function(e){function t(r,o,n){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.empty;break;case 1:if(!r){this.destination=i.empty;break}if("object"==typeof r){r instanceof t?(this.syncErrorThrowable=r.syncErrorThrowable,this.destination=r,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,r,o,n)}}return o(t,e),t.prototype[a.rxSubscriber]=function(){return this},t.create=function(e,r,o){var n=new t(e,r,o);return n.syncErrorThrowable=!1,n},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(s.Subscription);t.Subscriber=c;var u=function(e){function t(t,r,o,s){var a;e.call(this),this._parentSubscriber=t;var c=this;n.isFunction(r)?a=r:r&&(a=r.next,o=r.error,s=r.complete,r!==i.empty&&(c=Object.create(r),n.isFunction(c.unsubscribe)&&this.add(c.unsubscribe.bind(c)),c.unsubscribe=this.unsubscribe.bind(this))),this._context=c,this._next=a,this._error=o,this._complete=s}return o(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var r=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,r){try{t.call(this._context,r)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(c)},"./node_modules/rxjs/Subscription.js":function(e,t,r){"use strict";var o=r("./node_modules/rxjs/util/isArray.js"),n=r("./node_modules/rxjs/util/isObject.js"),s=r("./node_modules/rxjs/util/isFunction.js"),i=r("./node_modules/rxjs/util/tryCatch.js"),a=r("./node_modules/rxjs/util/errorObject.js"),c=r("./node_modules/rxjs/util/UnsubscriptionError.js"),u=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var r=this._parent,u=this._parents,d=this._unsubscribe,f=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var p=-1,h=u?u.length:0;r;)r.remove(this),r=++p<h&&u[p]||null;if(s.isFunction(d))i.tryCatch(d).call(this)===a.errorObject&&(t=!0,e=e||(a.errorObject.e instanceof c.UnsubscriptionError?l(a.errorObject.e.errors):[a.errorObject.e]));if(o.isArray(f))for(p=-1,h=f.length;++p<h;){var b=f[p];if(n.isObject(b))if(i.tryCatch(b.unsubscribe).call(b)===a.errorObject){t=!0,e=e||[];var y=a.errorObject.e;y instanceof c.UnsubscriptionError?e=e.concat(l(y.errors)):e.push(y)}}if(t)throw new c.UnsubscriptionError(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var r=t;switch(typeof t){case"function":r=new e(t);case"object":if(r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if("function"!=typeof r._addParent){var o=r;(r=new e)._subscriptions=[o]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(r),r._addParent(this),r},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},e.prototype._addParent=function(e){var t=this._parent,r=this._parents;t&&t!==e?r?-1===r.indexOf(e)&&r.push(e):this._parents=[e]:this._parent=e},e.EMPTY=((t=new e).closed=!0,t),e}();function l(e){return e.reduce(function(e,t){return e.concat(t instanceof c.UnsubscriptionError?t.errors:t)},[])}t.Subscription=u},"./node_modules/rxjs/symbol/observable.js":function(e,t,r){"use strict";var o=r("./node_modules/rxjs/util/root.js");function n(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}t.getSymbolObservable=n,t.observable=n(o.root),t.$$observable=t.observable},"./node_modules/rxjs/symbol/rxSubscriber.js":function(e,t,r){"use strict";var o=r("./node_modules/rxjs/util/root.js").root.Symbol;t.rxSubscriber="function"==typeof o&&"function"==typeof o.for?o.for("rxSubscriber"):"@@rxSubscriber",t.$$rxSubscriber=t.rxSubscriber},"./node_modules/rxjs/util/UnsubscriptionError.js":function(e,t,r){"use strict";var o=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function o(){this.constructor=e}e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)},n=function(e){function t(t){e.call(this),this.errors=t;var r=Error.call(this,t?t.length+" errors occurred during unsubscription:\n "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return o(t,e),t}(Error);t.UnsubscriptionError=n},"./node_modules/rxjs/util/errorObject.js":function(e,t,r){"use strict";t.errorObject={e:{}}},"./node_modules/rxjs/util/isArray.js":function(e,t,r){"use strict";t.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}},"./node_modules/rxjs/util/isFunction.js":function(e,t,r){"use strict";t.isFunction=function(e){return"function"==typeof e}},"./node_modules/rxjs/util/isObject.js":function(e,t,r){"use strict";t.isObject=function(e){return null!=e&&"object"==typeof e}},"./node_modules/rxjs/util/noop.js":function(e,t,r){"use strict";t.noop=function(){}},"./node_modules/rxjs/util/pipe.js":function(e,t,r){"use strict";var o=r("./node_modules/rxjs/util/noop.js");function n(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:o.noop}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return n(e)},t.pipeFromArray=n},"./node_modules/rxjs/util/root.js":function(e,t,r){"use strict";(function(e){var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,n=r||void 0!==e&&e||o;t.root=n,function(){if(!n)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(t,r("./node_modules/webpack/buildin/global.js"))},"./node_modules/rxjs/util/toSubscriber.js":function(e,t,r){"use strict";var o=r("./node_modules/rxjs/Subscriber.js"),n=r("./node_modules/rxjs/symbol/rxSubscriber.js"),s=r("./node_modules/rxjs/Observer.js");t.toSubscriber=function(e,t,r){if(e){if(e instanceof o.Subscriber)return e;if(e[n.rxSubscriber])return e[n.rxSubscriber]()}return e||t||r?new o.Subscriber(e,t,r):new o.Subscriber(s.empty)}},"./node_modules/rxjs/util/tryCatch.js":function(e,t,r){"use strict";var o,n=r("./node_modules/rxjs/util/errorObject.js");function s(){try{return o.apply(this,arguments)}catch(e){return n.errorObject.e=e,n.errorObject}}t.tryCatch=function(e){return o=e,s}},"./node_modules/webpack/buildin/global.js":function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},"./node_modules/webpack/buildin/harmony-module.js":function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},"./src/authentication/authenticator.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return d}),r.d(t,"b",function(){return f});var o,n=r("./src/authentication/endpoint.manager.ts"),s=r("./src/authentication/token.manager.ts"),i=r("./src/helpers/dialog.ts"),a=r("./src/errors/custom.error.ts"),c=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){e.done?n(e.value):new r(function(t){t(e.value)}).then(i,a)}c((o=o.apply(e,t||[])).next())})},l=this&&this.__generator||function(e,t){var r,o,n,s,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,o&&(n=o[2&s[0]?"return":s[0]?"throw":"next"])&&!(n=n.call(o,s[1])).done)return n;switch(o=0,n&&(s=[0,n.value]),s[0]){case 0:case 1:n=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,o=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(n=(n=i.trys).length>0&&n[n.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(6===s[0]&&i.label<n[1]){i.label=n[1],n=s;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(s);break}n[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],o=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};console.log("This is a test log");var d=function(e){function t(t,r){var o=e.call(this,"AuthError",t,r)||this;return o.innerError=r,o}return c(t,e),t}(a.a),f=function(){function e(e,t){this.endpoints=e,this.tokens=t,null==e&&(this.endpoints=new n.b),null==t&&(this.tokens=new s.a)}return e.prototype.authenticate=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var o=this.tokens.get(e);return s.a.hasExpired(o)||t?this._openAuthDialog(e,r):Promise.resolve(o)},e.isAuthDialog=function(e){return void 0===e&&(e=!1),!(!/(access_token|code|error|state)/gi.test(location.href)||/isProxy=true/gi.test(location.href))&&(i.a.close(location.href,e),!0)},e.getUrlParams=function(t,r,o){void 0===t&&(t=location.href),void 0===r&&(r=location.origin),void 0===o&&(o="#"),r&&(t=t.replace(r,""));var n=t.split(o),s=n[0],i=n[1],a=null==i?s:i;return-1!==a.indexOf("?")&&(a=a.split("?")[1]),e.extractParams(a)},e.extractParams=function(e){if(null==e||""===e.trim())return null;for(var t,r={},o=/([^&=]+)=([^&]*)/g;null!==(t=o.exec(e));)"/state"===t[1]&&(t[1]=t[1].replace("/","")),r[decodeURIComponent(t[1])]=decodeURIComponent(t[2]);return r},e.prototype._openAuthDialog=function(e,t){return u(this,void 0,void 0,function(){var r,o,s,a,c,u,f;return l(this,function(l){switch(l.label){case 0:return null==(r=this.endpoints.get(e))?[2,Promise.reject(new d("No such registered endpoint: "+e+" could be found."))]:(o=n.b.getLoginParams(r),s=o.state,a=o.url,c=o.proxyUrl,u=c||a,console.log("opening dialog at: ",u),[4,new i.a(u,1024,768,t).result]);case 1:return f=l.sent(),[2,this._handleTokenResult(f,r,s)]}})})},e.prototype._exchangeCodeForToken=function(e,t,r){var o=this;return new Promise(function(n,s){if(null==e.tokenUrl)return console.warn("We couldn't exchange the received code for an access_token. The value returned is not an access_token. Please set the tokenUrl property or refer to our docs."),n(t);var i=new XMLHttpRequest;for(var a in i.open("POST",e.tokenUrl),i.setRequestHeader("Accept","application/json"),i.setRequestHeader("Content-Type","application/json"),r)"Accept"!==a&&"Content-Type"!==a&&i.setRequestHeader(a,r[a]);i.onerror=function(){return s(new d("Unable to send request due to a Network error"))},i.onload=function(){try{if(200===i.status){var t=JSON.parse(i.responseText);return null==t?s(new d("No access_token or code could be parsed.")):"access_token"in t?(o.tokens.add(e.provider,t),n(t)):s(new d(t.error,t.state))}if(200!==i.status)return s(new d("Request failed. "+i.response))}catch(e){return s(new d("An error occurred while parsing the response"))}},i.send(JSON.stringify(t))})},e.prototype._handleTokenResult=function(t,r,o){var n=e.getUrlParams(t,r.redirectUrl);if(console.log("token result!",n,"expected state",o),null==n)throw new d("No access_token or code could be parsed.");if(r.state&&+n.state!==o)throw new d("State couldn't be verified");if("code"in n)return this._exchangeCodeForToken(r,n);if("access_token"in n)return this.tokens.add(r.provider,n);throw new d(n.error)},e}()},"./src/authentication/endpoint.manager.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return c}),r.d(t,"b",function(){return u});var o,n=r("./src/helpers/utilities.ts"),s=r("./src/helpers/storage.ts"),i=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__assign||Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},c={Google:"Google",Microsoft:"Microsoft",Facebook:"Facebook",AzureAD:"AzureAD",Dropbox:"Dropbox"},u=function(e){function t(t){return void 0===t&&(t=s.b.LocalStorage),e.call(this,"OAuth2Endpoints",t)||this}return i(t,e),t.prototype.add=function(t,r){return null==r.redirectUrl&&(r.redirectUrl=window.location.origin),r.provider=t,e.prototype.set.call(this,t,r)},t.prototype.registerGoogleAuth=function(e,t){var r=a({},{clientId:e,baseUrl:"https://accounts.google.com",authorizeUrl:"/o/oauth2/v2/auth",resource:"https://www.googleapis.com",responseType:"token",scope:"https://www.googleapis.com/auth/plus.me",state:!0},t);return this.add(c.Google,r)},t.prototype.registerMicrosoftAuth=function(e,t){var r=a({},{clientId:e,baseUrl:"https://login.microsoftonline.com/common/oauth2/v2.0",authorizeUrl:"/authorize",responseType:"token",scope:"https://graph.microsoft.com/user.read",extraQueryParameters:{response_mode:"fragment"},nonce:!0,state:!0},t);this.add(c.Microsoft,r)},t.prototype.registerFacebookAuth=function(e,t){var r=a({},{clientId:e,baseUrl:"https://www.facebook.com",authorizeUrl:"/dialog/oauth",resource:"https://graph.facebook.com",responseType:"token",scope:"public_profile",nonce:!0,state:!0},t);this.add(c.Facebook,r)},t.prototype.registerAzureADAuth=function(e,t,r){var o=a({},{clientId:e,baseUrl:"https://login.windows.net/"+t,authorizeUrl:"/oauth2/authorize",resource:"https://graph.microsoft.com",responseType:"token",nonce:!0,state:!0},r);this.add(c.AzureAD,o)},t.prototype.registerDropboxAuth=function(e,t){var r=a({},{clientId:e,baseUrl:"https://www.dropbox.com/1",authorizeUrl:"/oauth2/authorize",responseType:"token",state:!0},t);this.add(c.Dropbox,r)},t.getLoginParams=function(e){var t=e.scope?encodeURIComponent(e.scope):null,r=e.resource?encodeURIComponent(e.resource):null,o=e.state&&n.c.generateCryptoSafeRandom(),s=e.nonce&&n.c.generateCryptoSafeRandom(),i=e.proxyUrl,a=["response_type="+e.responseType,"client_id="+encodeURIComponent(e.clientId),"redirect_uri="+encodeURIComponent(e.redirectUrl)];if(t&&a.push("scope="+t),r&&a.push("resource="+r),o&&a.push("state="+o),s&&a.push("nonce="+s),e.extraQueryParameters)for(var c=0,u=Object.keys(e.extraQueryParameters);c<u.length;c++){var l=u[c];a.push(l+"="+encodeURIComponent(e.extraQueryParameters[l]))}var d=""+e.baseUrl+e.authorizeUrl+"?"+a.join("&");return i&&"string"==typeof i&&(i+="?isProxy=true&redirect_uri="+encodeURIComponent(d)),{url:d,proxyUrl:i,state:o}},t}(s.a)},"./src/authentication/token.manager.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var o,n=r("./src/helpers/storage.ts"),s=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(t){return void 0===t&&(t=n.b.LocalStorage),e.call(this,"OAuth2Tokens",t)||this}return s(t,e),t.setExpiry=function(e){var t;null!=e&&null==e.expires_at&&(e.expires_at=null==(t=e.expires_in)?null:new Date((new Date).getTime()+1e3*~~t))},t.hasExpired=function(e){return null==e||null!=e.expires_at&&(e.expires_at=e.expires_at instanceof Date?e.expires_at:new Date(e.expires_at),e.expires_at.getTime()-(new Date).getTime()<0)},t.prototype.get=function(r){var o=e.prototype.get.call(this,r);return null==o?o:t.hasExpired(o)?(e.prototype.delete.call(this,r),null):o},t.prototype.add=function(r,o){return o.provider=r,t.setExpiry(o),e.prototype.set.call(this,r,o)},t}(n.a)},"./src/errors/api.error.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var o,n=r("./src/errors/custom.error.ts"),s=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(t,r){var o=e.call(this,"APIError",t,r)||this;return o.innerError=r,o}return s(t,e),t}(n.a)},"./src/errors/custom.error.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return s});var o,n=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(t,r,o){var n=e.call(this,r)||this;if(n.name=t,n.message=r,n.innerError=o,Error.captureStackTrace)Error.captureStackTrace(n,n.constructor);else{var s=new Error;if(s.stack){var i=s.stack.match(/[^\s]+$/);n.stack=n.name+" at "+i}}return n}return n(t,e),t}(Error)},"./src/errors/exception.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var o,n=r("./src/errors/custom.error.ts"),s=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(t,r){var o=e.call(this,"Exception",t,r)||this;return o.innerError=r,o}return s(t,e),t}(n.a)},"./src/excel/utilities.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return a});var o=r("./src/errors/api.error.ts"),n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(n,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function a(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){e.done?n(e.value):new r(function(t){t(e.value)}).then(i,a)}c((o=o.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,o,n,s,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,o&&(n=o[2&s[0]?"return":s[0]?"throw":"next"])&&!(n=n.call(o,s[1])).done)return n;switch(o=0,n&&(s=[0,n.value]),s[0]){case 0:case 1:n=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,o=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(n=(n=i.trys).length>0&&n[n.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(6===s[0]&&i.label<n[1]){i.label=n[1],n=s;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(s);break}n[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],o=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},a=function(){function e(){}return e.forceCreateSheet=function(e,t,r){return s(this,void 0,void 0,function(){var a;return i(this,function(c){switch(c.label){case 0:if(null==e&&(void 0===e?"undefined":n(e))!==n(Excel.Workbook))throw new o.a("Invalid workbook parameter.");if(null==t||""===t.trim())throw new o.a("Sheet name cannot be blank.");if(t.length>31)throw new o.a("Sheet name cannot be greater than 31 characters.");return r?[4,function(e,t,r){return s(this,void 0,void 0,function(){var n,s,a;return i(this,function(i){switch(i.label){case 0:return Office.context.requirements.isSetSupported("ExcelApi",1.4)?(n=e.workbook.worksheets.getItemOrNullObject(r),[4,e.sync()]):[3,2];case 1:return i.sent(),n.isNullObject?[2,e.workbook.worksheets.add(r)]:(n.getRange().clear(),[2,n]);case 2:return[4,e.sync()];case 3:i.sent(),i.label=4;case 4:return i.trys.push([4,6,,7]),(s=t.worksheets.getItem(r)).getRange().clear(),[4,e.sync()];case 5:return i.sent(),[2,s];case 6:if((a=i.sent())instanceof OfficeExtension.Error&&a.code===Excel.ErrorCodes.itemNotFound)return[2,t.worksheets.add(r)];throw new o.a("Unexpected error while trying to delete sheet.",a);case 7:return[2]}})})}(e.context,e,t)]:[3,2];case 1:return a=c.sent(),[3,4];case 2:return[4,function(e,t,r){return s(this,void 0,void 0,function(){var n,s;return i(this,function(i){switch(i.label){case 0:return n=t.worksheets.add(),Office.context.requirements.isSetSupported("ExcelApi",1.4)?(e.workbook.worksheets.getItemOrNullObject(r).delete(),[3,6]):[3,1];case 1:return[4,e.sync()];case 2:i.sent(),i.label=3;case 3:return i.trys.push([3,5,,6]),t.worksheets.getItem(r).delete(),[4,e.sync()];case 4:return i.sent(),[3,6];case 5:if(!((s=i.sent())instanceof OfficeExtension.Error&&s.code===Excel.ErrorCodes.itemNotFound))throw new o.a("Unexpected error while trying to delete sheet.",s);return[3,6];case 6:return n.name=r,[2,n]}})})}(e.context,e,t)];case 3:a=c.sent(),c.label=4;case 4:return[4,e.context.sync()];case 5:return c.sent(),[2,a]}})})},e}()},"./src/helpers/dialog.ts":function(e,t,r){"use strict";r.d(t,"b",function(){return c}),r.d(t,"a",function(){return u});var o,n=r("./src/helpers/utilities.ts"),s=r("./src/errors/custom.error.ts"),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t,r){var o=e.call(this,"DialogError",t,r)||this;return o.innerError=r,o}return a(t,e),t}(s.a),u=function(){function e(e,t,r,o){if(void 0===e&&(e=location.origin),void 0===t&&(t=1024),void 0===r&&(r=768),void 0===o&&(o=!1),this.url=e,this.useTeamsDialog=o,this._windowFeatures=",menubar=no,toolbar=no,location=no,resizable=yes,scrollbars=yes,status=no",!/^https/.test(e))throw new c("URL has to be loaded over HTTPS.");this.size=this._optimizeSize(t,r)}return Object.defineProperty(e.prototype,"result",{get:function(){return null==this._result&&(this.useTeamsDialog?this._result=this._teamsDialog():n.c.isAddin?this._result=this._addinDialog():this._result=this._webDialog()),this._result},enumerable:!0,configurable:!0}),e.prototype._addinDialog=function(){var e=this;return console.log("result for addindialog reached"),new Promise(function(t,r){Office.context.ui.displayDialogAsync(e.url,{width:e.size.width$,height:e.size.height$},function(o){if(o.status===Office.AsyncResultStatus.Failed)r(new c(o.error.message,o.error));else{var n=o.value;n.addEventHandler(Office.EventType.DialogMessageReceived,function(r){console.log("message received!",r);var o=e._safeParse(r.message);"string"==typeof o?(t(o),n.close()):console.log("would normally have called close, but did not receive a real message")}),n.addEventHandler(Office.EventType.DialogEventReceived,function(e){r(new c(e.message,e.error)),n.close()})}})})},e.prototype._teamsDialog=function(){var e=this;return new Promise(function(t,r){microsoftTeams.initialize(),microsoftTeams.authentication.authenticate({url:e.url,width:e.size.width,height:e.size.height,failureCallback:function(e){return r(new c("Error while launching dialog",e))},successCallback:function(r){return t(e._safeParse(r))}})})},e.prototype._webDialog=function(){var e=this;return new Promise(function(t,r){try{var o="width="+e.size.width+",height="+e.size.height+e._windowFeatures;if(n.c.isIEOrEdge)e._pollLocalStorageForToken(t,r),console.log("polling for localstorage now..."),Office.context.ui.displayDialogAsync(e.url,{width:e.size.width$,height:e.size.height$},function(t){t.status===Office.AsyncResultStatus.Failed?r(new c(t.error.message,t.error)):console.log("Successfully opened dialog used window.open with",e.url)});else{window.open(e.url,e.url,o);window.addEventListener("message",function r(o){o.origin===location.origin&&(window.removeEventListener("message",r,!1),t(e._safeParse(o.data)))})}}catch(e){return r(new c("Unexpected error occurred while creating popup",e))}})},e.prototype._pollLocalStorageForToken=function(t,r){var o=this;localStorage.removeItem(e.key);var n=setInterval(function(){try{localStorage.setItem("temp","1");var s=localStorage.getItem(e.key);if(null!=s)return clearInterval(n),localStorage.removeItem(e.key),t(o._safeParse(s))}catch(t){return clearInterval(n),localStorage.removeItem(e.key),r(new c("Unexpected error occurred in the dialog",t))}},400)},e.close=function(t,r){void 0===r&&(r=!1);var o=!1,s=t;if("function"==typeof t)throw new c("Invalid message. Cannot pass functions as arguments");null!=s&&"object"===(void 0===s?"undefined":i(s))&&(o=!0,s=JSON.stringify(s));try{r?(microsoftTeams.initialize(),microsoftTeams.authentication.notifySuccess(JSON.stringify({parse:o,value:s}))):n.c.isAddin?Office.context.ui.messageParent(JSON.stringify({parse:o,value:s})):(n.c.isIEOrEdge?localStorage.setItem(e.key,JSON.stringify({parse:o,value:s})):window.opener&&window.opener.postMessage(JSON.stringify({parse:o,value:s}),location.origin),window.close())}catch(e){throw new c("Cannot close dialog",e)}},e.prototype._optimizeSize=function(e,t){var r=window.screen,o=r.width,n=r.height,s=this._maxSize(e,o),i=this._maxSize(t,n);return{width$:this._percentage(s,o),height$:this._percentage(i,n),width:s,height:i}},e.prototype._maxSize=function(e,t){return e<t-30?e:t-30},e.prototype._percentage=function(e,t){return 100*e/t},e.prototype._safeParse=function(e){try{var t=JSON.parse(e);return!0===t.parse?this._safeParse(t.value):t.value}catch(t){return console.log("Warning! Unable to parse message: ",e),e}},e.key="VGVtcG9yYXJ5S2V5Rm9yT0pIQXV0aA==",e}()},"./src/helpers/dictionary.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return c});var o=r("./node_modules/lodash-es/isEmpty.js"),n=r("./node_modules/lodash-es/isString.js"),s=r("./node_modules/lodash-es/isNil.js"),i=r("./node_modules/lodash-es/isObject.js"),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=function(){function e(e){if(Object(s.a)(e))this._items=new Map;else{if(e instanceof Set)throw new TypeError("Invalid type of argument: Set");if(e instanceof Map)this._items=new Map(e);else if(Array.isArray(e))this._items=new Map(e);else{if(!Object(i.a)(e))throw new TypeError("Invalid type of argument: "+(void 0===e?"undefined":a(e)));this._items=new Map;for(var t=0,r=Object.keys(e);t<r.length;t++){var o=r[t];this._items.set(o,e[o])}}}}return e.prototype.get=function(e){return this._items.get(e)},e.prototype.set=function(e,t){return this._validateKey(e),this._items.set(e,t),t},e.prototype.delete=function(e){if(!this.has(e))throw new ReferenceError("Key: "+e+" not found.");var t=this._items.get(e);return this._items.delete(e),t},e.prototype.clear=function(){this._items.clear()},e.prototype.has=function(e){return this._validateKey(e),this._items.has(e)},e.prototype.keys=function(){return Array.from(this._items.keys())},e.prototype.values=function(){return Array.from(this._items.values())},e.prototype.clone=function(){return new Map(this._items)},Object.defineProperty(e.prototype,"count",{get:function(){return this._items.size},enumerable:!0,configurable:!0}),e.prototype._validateKey=function(e){if(!Object(n.a)(e)||Object(o.a)(e))throw new TypeError("Key needs to be a string")},e}()},"./src/helpers/storage.ts":function(e,t,r){"use strict";r.d(t,"b",function(){return o}),r.d(t,"a",function(){return f});var o,n,s=r("./node_modules/lodash-es/isNil.js"),i=r("./node_modules/lodash-es/isString.js"),a=r("./node_modules/lodash-es/isEmpty.js"),c=r("./node_modules/lodash-es/debounce.js"),u=r("./node_modules/rxjs/Observable.js"),l=(r.n(u),r("./src/errors/exception.ts")),d=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/;(n=o||(o={}))[n.LocalStorage=0]="LocalStorage",n[n.SessionStorage=1]="SessionStorage",n[n.InMemoryStorage=2]="InMemoryStorage";var f=function(){function e(e,t){void 0===t&&(t=o.LocalStorage),this.container=e,this._type=t,this._observable=null,this._containerRegex=null,this._validateKey(e),this._containerRegex=new RegExp("^@"+this.container+"/"),this.switchStorage(this._type)}return e.prototype.switchStorage=function(e){switch(e){case o.LocalStorage:this._storage=window.localStorage;break;case o.SessionStorage:this._storage=window.sessionStorage;break;case o.InMemoryStorage:this._storage=new p}if(Object(s.a)(this._storage))throw new l.a("Browser local or session storage is not supported.");this._storage.hasOwnProperty(this.container)||(this._storage[this.container]=null)},e.prototype.get=function(e){var t=this._scope(e),r=this._storage.getItem(t);try{return JSON.parse(r,this._reviver.bind(this))}catch(e){return r}},e.prototype.set=function(e,t){this._validateKey(e);try{var r=this._scope(e),o=JSON.stringify(t);return this._storage.setItem(r,o),t}catch(t){throw new l.a("Unable to serialize value for: "+e+" ",t)}},e.prototype.delete=function(e){try{var t=this.get(e);if(void 0===t)throw new ReferenceError("Key: "+e+" not found.");var r=this._scope(e);return this._storage.removeItem(r),t}catch(t){throw new l.a("Unable to delete '"+e+"' from storage",t)}},e.prototype.clear=function(){this._storage.removeItem(this.container)},e.prototype.has=function(e){return this._validateKey(e),void 0!==this.get(e)},e.prototype.keys=function(){var e=this;try{return Object.keys(this._storage).filter(function(t){return e._containerRegex.test(t)})}catch(e){throw new l.a("Unable to get keys from storage",e)}},e.prototype.values=function(){var e=this;try{return this.keys().map(function(t){return e.get(t)})}catch(e){throw new l.a("Unable to get values from storage",e)}},Object.defineProperty(e.prototype,"count",{get:function(){try{return this.keys().length}catch(e){throw new l.a("Unable to get size of localStorage",e)}},enumerable:!0,configurable:!0}),e.clearAll=function(){window.localStorage.clear(),window.sessionStorage.clear()},e.prototype.notify=function(e,t,r){var o=this;return null!=this._observable?this._observable.subscribe(e,t,r):(this._observable=new u.Observable(function(e){var t=Object(c.a)(function(t){try{o._containerRegex.test(t.key)&&e.next(t.key)}catch(t){e.error(t)}},300);return window.addEventListener("storage",t,!1),function(){window.removeEventListener("storage",t,!1),o._observable=null}}),this._observable.subscribe(e,t,r))},e.prototype._validateKey=function(e){if(!Object(i.a)(e)||Object(a.a)(e))throw new TypeError("Key needs to be a string")},e.prototype._reviver=function(e,t){return Object(i.a)(t)&&d.test(t)?new Date(t):t},e.prototype._scope=function(e){return Object(a.a)(this.container)?e:"@"+this.container+"/"+e},e}(),p=function(){function e(){console.warn("Using non persistent storage. Data will be lost when browser is refreshed/closed"),this._map=new Map}return Object.defineProperty(e.prototype,"length",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this._map.clear()},e.prototype.getItem=function(e){return this._map.get(e)},e.prototype.removeItem=function(e){return this._map.delete(e)},e.prototype.setItem=function(e,t){this._map.set(e,t)},e.prototype.key=function(e){var t=void 0,r=0;return this._map.forEach(function(o,n){++r===e&&(t=n)}),t},e}()},"./src/helpers/utilities.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return n}),r.d(t,"b",function(){return s}),r.d(t,"c",function(){return a});var o=r("./src/errors/custom.error.ts"),n={WEB:"WEB",ACCESS:"ACCESS",EXCEL:"EXCEL",ONENOTE:"ONENOTE",OUTLOOK:"OUTLOOK",POWERPOINT:"POWERPOINT",PROJECT:"PROJECT",WORD:"WORD"},s={IOS:"IOS",MAC:"MAC",OFFICE_ONLINE:"OFFICE_ONLINE",PC:"PC"};function i(){var e,t,r=window.Office,o=r&&r.context&&r.context.host?r.context:function(){try{if(null==window.sessionStorage)throw new Error("Session Storage isn't supported");var e=window.sessionStorage.hostInfoValue,t=e.split("$"),r=t[0],o=t[1],i=t[2];null==i&&(d=e.split("|"),r=d[0],o=d[1]);var c=r.toUpperCase()||"WEB",u=null;if(a.host!==n.WEB){var l={IOS:s.IOS,MAC:s.MAC,WEB:s.OFFICE_ONLINE,WIN32:s.PC};u=l[o.toUpperCase()]||null}return{host:c,platform:u}}catch(e){return{host:"WEB",platform:null}}var d}();return{host:(t=o.host,{Word:n.WORD,Excel:n.EXCEL,PowerPoint:n.POWERPOINT,Outlook:n.OUTLOOK,OneNote:n.ONENOTE,Project:n.PROJECT,Access:n.ACCESS}[t]||t),platform:(e=o.platform,{PC:s.PC,OfficeOnline:s.OFFICE_ONLINE,Mac:s.MAC,iOS:s.IOS}[e]||e)}}var a=function(){function e(){}return e.initialize=function(){return new Promise(function(e,t){try{Office.initialize=function(t){return e(t)}}catch(r){window.Office?t(r):e("Office was not found. Running as web application.")}})},Object.defineProperty(e,"host",{get:function(){return i().host},enumerable:!0,configurable:!0}),Object.defineProperty(e,"platform",{get:function(){return i().platform},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isAddin",{get:function(){return e.host!==n.WEB&&!e.isEdge},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isIE",{get:function(){return/Trident\//gi.test(window.navigator.userAgent)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isEdge",{get:function(){return/Edge\//gi.test(window.navigator.userAgent)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isIEOrEdge",{get:function(){return e.isIE||e.isEdge},enumerable:!0,configurable:!0}),e.generateCryptoSafeRandom=function(){var e=new Uint32Array(1);if("msCrypto"in window)window.msCrypto.getRandomValues(e);else{if(!("crypto"in window))throw new Error("The platform doesn't support generation of cryptographically safe randoms. Please disable the state flag and try again.");window.crypto.getRandomValues(e)}return e[0]},e.log=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(null!=t)return console.log.apply(console,[e,t].concat(r));if(null==e)console.error(e);else if("string"==typeof e)console.error(e);else{console.group(e.name+": "+e.message);var s=e;e instanceof o.a&&(s=e.innerError),window.OfficeExtension&&s instanceof OfficeExtension.Error&&(console.groupCollapsed("Debug Info"),console.error(s.debugInfo),console.groupEnd()),console.groupCollapsed("Stack Trace"),console.error(e.stack),console.groupEnd(),console.groupCollapsed("Inner Error"),console.error(s),console.groupEnd(),console.groupEnd()}},e}()},"./src/index.ts":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("./src/errors/custom.error.ts");r.d(t,"CustomError",function(){return o.a});var n=r("./src/helpers/dialog.ts");r.d(t,"DialogError",function(){return n.b}),r.d(t,"Dialog",function(){return n.a});var s=r("./src/helpers/utilities.ts");r.d(t,"HostType",function(){return s.a}),r.d(t,"PlatformType",function(){return s.b}),r.d(t,"Utilities",function(){return s.c});var i=r("./src/helpers/dictionary.ts");r.d(t,"Dictionary",function(){return i.a});var a=r("./src/helpers/storage.ts");r.d(t,"StorageType",function(){return a.b}),r.d(t,"Storage",function(){return a.a});var c=r("./src/authentication/token.manager.ts");r.d(t,"TokenStorage",function(){return c.a});var u=r("./src/authentication/endpoint.manager.ts");r.d(t,"DefaultEndpoints",function(){return u.a}),r.d(t,"EndpointStorage",function(){return u.b});var l=r("./src/authentication/authenticator.ts");r.d(t,"AuthError",function(){return l.a}),r.d(t,"Authenticator",function(){return l.b});var d=r("./src/excel/utilities.ts");r.d(t,"ExcelUtilities",function(){return d.a});var f=r("./src/ui/ui.ts");r.d(t,"UI",function(){return f.a})},"./src/ui/message-banner.html":function(e,t,r){"use strict";t.a='<div class="office-js-helpers-notification ms-font-m ms-MessageBar @@CLASS">\n <style>\n .office-js-helpers-notification {\n position: fixed;\n z-index: 2147483647;\n top: 0;\n left: 0;\n right: 0;\n width: 100%;\n padding: 0 0 10px 0;\n }\n\n .office-js-helpers-notification > div > div {\n padding: 10px 15px;\n box-sizing: border-box;\n }\n\n .office-js-helpers-notification pre {\n white-space: pre-wrap;\n word-wrap: break-word;\n margin: 0px;\n font-size: smaller;\n }\n\n .office-js-helpers-notification > button {\n height: 52px;\n width: 40px;\n cursor: pointer;\n float: right;\n background: transparent;\n border: 0;\n margin-left: 10px;\n margin-right: \'@@PADDING\'\n }\n </style>\n <button>\n <i class="ms-Icon ms-Icon--Clear"></i>\n </button>\n</div>'},"./src/ui/ui.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return a});var o=r("./src/helpers/utilities.ts"),n=r("./src/util/stringify.ts"),s=r("./src/ui/message-banner.html"),i=2,a=function(){function e(){}return e.notify=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=function(e){if(null==e)return null;var t=e[0],r=e[1],o=e[2];{if(t instanceof Error){var s="",a=t,c=a.innerError,u=a.stack;if(c){var l=JSON.stringify(c.debugInfo||c,null,i);s+="Inner Error: \n"+l+"\n"}return u&&(s+="Stack Trace: \n"+t.stack+"\n"),{message:t.message,title:r||t.name,type:"error",details:s}}return{message:Object(n.a)(t),title:r,type:o||"default",details:null}}}(e);if(null==r)return console.error(new Error("Invalid params. Cannot create a notification")),null;var a={success:"ms-MessageBar--success",error:"ms-MessageBar--error",warning:"ms-MessageBar--warning","severe-warning":"ms-MessageBar--severeWarning"}[r.type]||"",c="0";o.c.platform===o.b.PC?c="20px":o.c.platform===o.b.MAC&&(c="40px");for(var u=s.a.replace("@@CLASS",a).replace("'@@PADDING'",c),l=document.getElementsByClassName("office-js-helpers-notification");l[0];)l[0].parentNode.removeChild(l[0]);document.body.insertAdjacentHTML("afterbegin",u);var d=document.getElementsByClassName("office-js-helpers-notification")[0],f=document.createElement("div");if(d.insertAdjacentElement("beforeend",f),r.title){var p=document.createElement("div");p.textContent=r.title,p.classList.add("ms-fontWeight-semibold"),f.insertAdjacentElement("beforeend",p)}if(r.message.split("\n").forEach(function(e){var t=document.createElement("div");t.textContent=e,f.insertAdjacentElement("beforeend",t)}),r.details){var h=document.createElement("div");f.insertAdjacentElement("beforeend",h);var b=document.createElement("a");b.setAttribute("href","javascript:void(0)"),b.onclick=function(){document.querySelector(".office-js-helpers-notification pre").parentElement.style.display="block",h.style.display="none"},b.textContent="Details",h.insertAdjacentElement("beforeend",b);var y=document.createElement("div");y.style.display="none",f.insertAdjacentElement("beforeend",y);var m=document.createElement("pre");m.textContent=r.details,y.insertAdjacentElement("beforeend",m)}document.querySelector(".office-js-helpers-notification > button").onclick=function(){return d.parentNode.removeChild(d)}},e}()},"./src/util/stringify.ts":function(e,t,r){"use strict";t.a=function(e){if(void 0===e)return"undefined";if("string"==typeof e)return e;if("function"==typeof e.toString&&"[object Object]"!==e.toString())return e.toString();return JSON.stringify(e,null,2)}}})}); |
{ | ||
"name": "@allen.gong/office-js-helpers", | ||
"description": "A fork of the collection of helpers to simplify development of Office Add-ins & Microsoft Teams Tabs", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
482625
4559