igniteui-angular-spreadsheet
Version:
Ignite UI Angular spreadsheet component for displaying and editing Microsoft Excel workbooks for modern web apps.
7 lines • 2.32 MB
JavaScript
/*!
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("igniteui-angular-core"),require("tslib"),require("igniteui-angular-excel"),require("pako"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","igniteui-angular-core","tslib","igniteui-angular-excel","pako","@angular/common"],t):t((e=e||self)["igniteui-angular-spreadsheet"]={},e.i0,e.igniteuiAngularCore,e.tslib,e.igniteuiAngularExcel,e.Pako,e.common)}(this,(function(e,t,i,n,r,o,a){"use strict";var l=i.markEnum("SortDirectionWithCustomListOptions","Ascending,0|Descending,1|AscendingCustomList,2|DescendingCustomList,3"),s=i.markEnum("SpreadsheetSortDialogConditionType","OrderedSortCondition,0|FillSortCondition,1|FontColorSortCondition,2|IconSortCondition,3|CustomListSortCondition,4"),u=function(e){function t(t,i){var n=e.call(this)||this;return n._a=null,n._e=null,n._c=null,n._a=t,n._e=i,n}return n.__extends(t,e),Object.defineProperty(t.prototype,"dataValue",{get:function(){return this._a},set:function(e){e!=this._a&&(null!=e&&i.Base.equalsStatic(e,this._a)||(this._a=e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayText",{get:function(){return this._e},set:function(e){e!=this._e&&(this._e=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tag",{get:function(){return this._c},set:function(e){e!=this._c&&(this._c=e)},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return this.displayText},t.$t=i.markType(t,"ComboBoxListItem"),t}(i.Base),h=new i.Type(null,"ITypedSupportPropertyChangeNotifications$2"),c=new i.Type(null,"ISupportPropertyChangeNotifications",null,[h.specialize(i.Base.$,i.String_$type)]),_=new i.Type(null,"IDeferUpdate"),d=new i.Type(null,"ITypedPropertyChangeListener$2"),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.a=function(e){return null},t.b=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return null},t.$t=i.markType(t,"SR"),t}(i.Base),m=function(e){function t(t,i){var n=e.call(this)||this;return n.$t=null,n.a=null,n.$t=t,n.$type=n.$type.specialize(n.$t),n.a=i,n}return n.__extends(t,e),t.prototype.reset=function(){this.a.reset()},t.prototype.moveNext=function(){return this.a.moveNext()},Object.defineProperty(t.prototype,"current",{get:function(){return i.typeCastObjTo$t(this.$t,this.a.currentObject)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentObject",{get:function(){return i.getBoxIfEnum(this.$t,this.current)},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){},t.$t=i.markType(t,"TypedEnumerable_Enumerator$1",i.Base.$,[i.IEnumerator$1_$type.specialize(0)]),t}(i.Base),f=function(e){function t(t,i){var n=e.call(this)||this;return n.$t=null,n.a=null,n.$t=t,n.$type=n.$type.specialize(n.$t),n.a=i||new Array(0),n}return n.__extends(t,e),t.prototype.b=function(e){this.a=e||new Array(0)},t.prototype.getEnumerator=function(){return new m(this.$t,i.getEnumeratorObject(this.a))},t.prototype.getEnumeratorObject=function(){return this.getEnumerator()},t.$t=i.markType(t,"TypedEnumerable$1",i.Base.$,[i.IEnumerable$1_$type.specialize(0)]),t}(i.Base),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.j=function(e,t){return new y(e,t)},t.c=function(e,t){return e==t||Math.abs(e-t)<1e-10},t.h=function(e,i){return e<i&&!t.c(e,i)},t.e=function(e,i){return e>i&&!t.c(e,i)},t.i=function(e,i){return e<=i||t.c(e,i)},t.f=function(e,i){return e>=i||t.c(e,i)},t.d=function(e,t,n,r){if(void 0===r&&(r=null),t==n)return!0;if(null==t||null==n)return!1;if(t.count!=n.count)return!1;null==r&&(r=i.EqualityComparer$1.defaultEqualityComparerValue(e));for(var o=0,a=t.count;o<a;o++)if(!r.equalsC(t.item(o),n.item(o)))return!1;return!0},t.m=function(e,t,n,r,o){null==r&&(r=i.Comparer$1.defaultComparerValue(e));for(var a=0,l=t.count-1,s=0,u=o?i.EqualityComparer$1.defaultEqualityComparerValue(e):null;a<=l;){s=i.intDivide(a+l,2);var h=t.item(s);if(null!=u&&u.equalsC(n,h))if(s>a)h=t.item(--s);else{if(!(s<l))return s;h=t.item(++s)}var c=r.compare(h,n);if(c>0)l=s-1;else{if(!(c<0))return s;a=s+1}}return null!=u&&a<t.count-1&&u.equalsC(n,t.item(a))?a:~a},t.n=function(e,t,n,r,o){for(var a=0,l=n.count-1,s=0;a<=l;){s=i.intDivide(a+l,2);var u=r(n.item(s),o);if(u>0)l=s-1;else{if(!(u<0))return s;a=s+1}}return~a},t.l=function(e,t,i){return e<t?t:e>i?i:e},t.s=function(e,t,r,o){var a,l,s=i.typeCast(i.ICollection$1_$type.specialize(e),t);if(null!=s)s.copyTo(r,o);else try{for(var u=n.__values(i.fromEnum(t)),h=u.next();!h.done;h=u.next()){var c=h.value;r[o++]=c}}catch(e){a={error:e}}finally{try{h&&!h.done&&(l=u.return)&&l.call(u)}finally{if(a)throw a.error}}},t.r=function(e,t,r){var o,a;try{for(var l=n.__values(i.fromEn(e)),s=l.next();!s.done;s=l.next()){var u=s.value;t[r++]=u}}catch(e){o={error:e}}finally{try{s&&!s.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}},t.a=function(e,t){var r,o;if(null!=t)try{for(var a=n.__values(i.fromEnum(t)),l=a.next();!l.done;l=a.next()){return l.value}}catch(e){r={error:e}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i.Type.getDefaultValue(e)},t.b=function(e,t,r){var o,a;if(null!=t){if(r){var l=i.typeCast(i.IList$1_$type.specialize(e),t);if(null!=l)return l.count>0?l.item(0):i.Type.getDefaultValue(e);var s=i.typeCast(i.IList_$type,t);if(null!=s)return s.count>0?i.typeCastObjTo$t(e,s.item(0)):i.Type.getDefaultValue(e)}try{for(var u=n.__values(i.fromEn(t)),h=u.next();!h.done;h=u.next()){return h.value}}catch(e){o={error:e}}finally{try{h&&!h.done&&(a=u.return)&&a.call(u)}finally{if(o)throw o.error}}}return i.Type.getDefaultValue(e)},t.k=function(e){for(var t=e,n=i.EnumUtil.getNames(t),r=new i.List$1(e,0),o=0;o<n.length;o++){var a=n[o];r.add(i.typeCastObjTo$t(e,i.EnumUtil.parse(t,a,!1)))}return r},t.q=function(e){if(null==e)return null;var t=i.Nullable.getUnderlyingType(e);return null!=t&&(e=t),e},t.p=function(e){if(null!=e)try{return e.c}catch(e){}return null},t.g=function(e){var t,r;if(null!=e){if(null!==i.typeCast(i.ICollection_$type,e))return e.count>0;if(null!=e)try{for(var o=n.__values(i.fromEn(e)),a=o.next();!a.done;a=o.next()){a.value;return!0}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}return!1},t.t=function(){throw new i.NotSupportedException(1,"Collection is read-only.")},t.v=function(e,i,n){var r=t.o(e,i,n);i.v(r,i.count-r)},t.u=function(e,i,n){for(var r=t.o(e,i,n),o=i.count-1;o>=r;o--)i.removeAt(o)},t.o=function(e,t,n){for(var r=0,o=t.count,a=i.EqualityComparer$1.defaultEqualityComparerValue(e),l=0;l<o;l++)a.equalsC(t.item(l),n)?r++:0!=r&&t.item(l-r,t.item(l));return o-r},t.w=function(e){if(e<0)throw new i.ArgumentException(1,p.a("LE_ValueCannotBeNegative"))},t.x=function(e,t){if(e<0)throw new i.ArgumentException(2,t,p.a("LE_ValueCannotBeNegative"))},t.y=function(e){if(null==e)throw new i.ArgumentNullException(1)},t.z=function(e,t){if(null==e)throw new i.ArgumentNullException(0,t)},t.$t=i.markType(t,"CoreUtilities"),t}(i.Base),b=function(e){function t(t,i){var n=e.call(this)||this;return n.$t=null,n.a=null,n.$t=t,n.$type=n.$type.specialize(n.$t),g.y(i),n.a=i,n}return n.__extends(t,e),Object.defineProperty(t.prototype,"b",{get:function(){return this.a},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return this.a.indexOf(i.getBoxIfEnum(this.$t,e))},t.prototype.insert=function(e,t){this.a.insert(e,i.getBoxIfEnum(this.$t,t))},t.prototype.removeAt=function(e){this.a.removeAt(e)},t.prototype.item=function(e,t){return 2===arguments.length?(this.a.item(e,i.getBoxIfEnum(this.$t,t)),t):i.typeCastObjTo$t(this.$t,this.a.item(e))},t.prototype.add=function(e){this.a.add(i.getBoxIfEnum(this.$t,e))},t.prototype.clear=function(){this.a.clear()},t.prototype.contains=function(e){return this.a.contains(i.getBoxIfEnum(this.$t,e))},t.prototype.copyTo=function(e,t){g.s(this.$t,new f(this.$t,this.a),e,t)},Object.defineProperty(t.prototype,"count",{get:function(){return this.a.count},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return this.a.isReadOnly},enumerable:!1,configurable:!0}),t.prototype.remove=function(e){var t=this.a.indexOf(i.getBoxIfEnum(this.$t,e));return t>=0&&this.a.removeAt(t),t>=0},t.prototype.getEnumerator=function(){return new m(this.$t,i.getEnumeratorObject(this.a))},t.prototype.getEnumeratorObject=function(){return this.getEnumerator()},t.$t=i.markType(t,"CoreUtilities_TypedList$1",i.Base.$,[i.IList$1_$type.specialize(0)]),t}(i.Base),y=function(e){function t(t,n){var r=e.call(this,t,n)||this;r.$t=null,r.propertyChanged=null,r.collectionChanged=null,r.$t=t,r.$type=r.$type.specialize(r.$t);var o=i.typeCast(i.INotifyCollectionChanged_$type,n);null!=o&&(o.collectionChanged=i.delegateCombine(o.collectionChanged,i.runOn(r,r.c)));var a=i.typeCast(i.INotifyPropertyChanged_$type,n);return null!=a&&(a.propertyChanged=i.delegateCombine(a.propertyChanged,i.runOn(r,r.d))),r}return n.__extends(t,e),t.prototype.d=function(e,t){var i=this.propertyChanged;null!=i&&i(this,t)},t.prototype.c=function(e,t){var i=this.collectionChanged;null!=i&&i(this,t)},t.$t=i.markType(t,"CoreUtilities_ObservableTypedList$1",b.$.specialize(0),[i.INotifyCollectionChanged_$type,i.INotifyPropertyChanged_$type]),t}(b),v=function(e){function t(t){var n=e.call(this,i.Base.$,2,t)||this;return n.ad=0,n}return n.__extends(t,e),t.af=function(e){var t=i.typeCast(i.WeakReference.$,e);return null==t&&(t=new i.WeakReference(e)),t},t.ag=function(e){var t=i.typeCast(i.WeakReference.$,e);return null!=t?g.p(t):e},t.add2=function(e,n,r){g.y(n);var o=r?t.af(n):n;if(null==e)return o;var a=i.typeCast(t.$,e);return null!=a||(a=new t(2)).add1(e),a.add1(o),a},t.remove2=function(e,n){var r=i.typeCast(t.$,e);if(null!=r){for(var o=r.count-1;o>=0;o--)if(n==t.ag(r._inner[o])){if(0!=r.ad){var a=new t(r.count);a.o(r),r=a}r.removeAt(o);break}return 1==r.count?r._inner[0]:r}return t.ag(e)==n?null:e},t.ac=function(e){var n=i.typeCast(t.$,e);return null!=n?new C(n):null!=e?[e]:new Array(0)},t.ai=function(e,n,r){r=null,n=null;var o=i.typeCast(t.$,e);if(null!=o)n=new C(o);else{var a=t.ag(e);null!=a&&(r=a)}return{p1:n,p2:r}},t.aj=function(e,n,r,o,a,l){var s=i.typeCast(t.$,r);if(null!=s){s.ad++;try{for(var u=0,h=s.count;u<h;u++){var c=t.ag(s._inner[u]);null!=c&&c.onPropertyValueChanged(o,a,l)}}finally{s.ad--}}else if(null!=r){var _=t.ag(r);null!=_&&_.onPropertyValueChanged(o,a,l)}},t.ak=function(e,n,r){var o=i.typeCast(t.$,n);if(null!=o){o.ad++;try{for(var a=0,l=o.count;a<l;a++){var s=t.ag(o._inner[a]);null!=s&&s.onValueChanged(r)}}finally{o.ad--}}else if(null!=n){var u=t.ag(n);null!=u&&u.onValueChanged(r)}},t.$t=i.markType(t,"ListenerList",i.List$1.$.specialize(i.Base.$)),t}(i.List$1),C=function(e){function t(t){var i=e.call(this)||this;return i.a=null,i.a=t,i}return n.__extends(t,e),t.prototype.getEnumerator=function(){return new S(this.a)},t.prototype.getEnumeratorObject=function(){return this.getEnumerator()},t.$t=i.markType(t,"ListenerList_Enumerable",i.Base.$,[i.IEnumerable$1_$type.specialize(i.Base.$)]),t}(i.Base),S=function(e){function t(t){var i=e.call(this)||this;return i.a=null,i.b=0,i.c=null,i.a=t,i.reset(),i}return n.__extends(t,e),Object.defineProperty(t.prototype,"current",{get:function(){return this.c},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){},Object.defineProperty(t.prototype,"currentObject",{get:function(){return this.current},enumerable:!1,configurable:!0}),t.prototype.moveNext=function(){for(this.c=null;null==this.c&&++this.b<this.a.count;)this.c=v.ag(this.a.item(this.b));return null!=this.c},t.prototype.reset=function(){this.b=-1,this.c=null},t.$t=i.markType(t,"ListenerList_Enumerable_Enumerator",i.Base.$,[i.IEnumerator$1_$type.specialize(i.Base.$)]),t}(i.Base),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.$t=i.markType(t,"PropertyChangeListenerBase"),t}(i.Base),w=new i.Type(null,"IPropertyChangeListener",null,[d.specialize(i.Base.$,i.String_$type)]),D=function(e){function t(t,i){var n=e.call(this)||this;return n.$tItem=null,n.$tProperty=null,n.a=null,n.$tItem=t,n.$tProperty=i,n.$type=n.$type.specialize(n.$tItem,n.$tProperty),n}return n.__extends(t,e),t.prototype.b=function(e,t){this.a=v.add2(this.a,e,t)},t.prototype.d=function(e){this.a=v.remove2(this.a,e)},t.prototype.onPropertyValueChanged=function(e,t,i){null!=this.a&&v.aj(this.$tItem,this.$tProperty,this.a,e,t,i)},t.prototype.c=function(){var e=i.typeCast(i.WeakReference.$,this.a),t=null==e?i.typeCast(i.IList_$type,this.a):null,n=null==t?i.typeCast(I.$,this.a):null;if(null==n){if(null!=t)for(var r=t.count-1;r>=0;r-=1){var o=t.item(r),a=!1;if(0==a&&null!=(e=i.typeCast(i.WeakReference.$,o))&&null==e.c&&(a=!0),0==a){var l=i.typeCast(k.$,o);if(null!=l){var s=l.a();0==a&&null!=(e=i.typeCast(i.WeakReference.$,s))&&null==e.c&&(a=!0)}}a&&t.removeAt(r)}else if(null!=e)e.c}else n.c()},t.$t=i.markType(t,"TypedPropertyChangeListenerList$2",i.Base.$,[d.specialize(0,1)]),t}(i.Base),I=function(e){function t(){return e.call(this,i.Base.$,i.String_$type)||this}return n.__extends(t,e),t.e=function(e,t,n,r,o){return null!=i.getBoxIfEnum(e,t)&&t.removeListener(r),t=n,null!=i.getBoxIfEnum(e,t)&&t.addListener(r,o),{p0:t}},t.f=function(e,t,n,r,o){var a=i.typeCast(c,t);return null!=a&&a.removeListener(r),t=n,null!=(a=i.typeCast(c,n))&&a.addListener(r,o),{p0:t}},t.prototype.g=function(e,t){this.onPropertyValueChanged(e,i.EnumUtil.getName(i.NotifyCollectionChangedAction_$type,t.action),t)},t.h=function(e,t,n,r){v.aj(i.Base.$,i.String_$type,e,t,n,r)},t.$t=i.markType(t,"PropertyChangeListenerList",D.$.specialize(i.Base.$,i.String_$type),[w]),t}(D),A=function(e){function t(t,i){var n=e.call(this,i)||this;return n._b=null,n._b=t,n}return n.__extends(t,e),Object.defineProperty(t.prototype,"_item",{get:function(){return this._b},enumerable:!1,configurable:!0}),t.$t=i.markType(t,"ItemPropertyChangedEventArgs",i.PropertyChangedEventArgs.$),t}(i.PropertyChangedEventArgs),F=function(e){function t(t,i){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=this;switch(i=null==i?0:i){case 0:var a=(s=[!0,!1])[0],l=s[1];(o=e.call(this,t,0)||this).$t=t,o.$type=o.$type.specialize(o.$t),o._an=0,o._ae=!1,o._af=!1,o._al=null,o._ac=null,o._ag=!1,o._itemPropertyChanged=null,o.propertyChanged=null,o.collectionChanged=null,o._aq(a,l);break;case 1:var s=n[0];(o=e.call(this,t,1,s)||this).$t=t,o.$type=o.$type.specialize(o.$t),o._an=0,o._ae=!1,o._af=!1,o._al=null,o._ac=null,o._ag=!1,o._itemPropertyChanged=null,o.propertyChanged=null,o.collectionChanged=null,o._aq(!0,!1);break;case 2:s=n[0];var u=n[1];(o=e.call(this,t,0)||this).$t=t,o.$type=o.$type.specialize(o.$t),o._an=0,o._ae=!1,o._af=!1,o._al=null,o._ac=null,o._ag=!1,o._itemPropertyChanged=null,o.propertyChanged=null,o.collectionChanged=null,o._aq(s,u)}return o}return n.__extends(t,e),Object.defineProperty(t.prototype,"_ah",{get:function(){return 0!=this._an},enumerable:!1,configurable:!0}),t.prototype.get__ai=function(){return!1},Object.defineProperty(t.prototype,"_ai",{get:function(){return this.get__ai()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_ad",{get:function(){return null==this._ac&&(this._ac=new I),this._ac},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_aj",{get:function(){return this},enumerable:!1,configurable:!0}),t.prototype.o=function(e){this.s(this.count,e)},t.prototype.beginUpdate=function(){1==++this._an&&this._ar()},t.prototype.endUpdate=function(){0==--this._an&&(this._ae&&(this._ae=!1,this._a0("Count"),this._a0("Item[]"),this._a1()),this._at())},t.prototype.s=function(e,t){var r,o,a,l;if(null==t)throw new i.ArgumentNullException(0,"collection");var s=this._ai;if(s)try{for(var u=n.__values(i.fromEnum(t)),h=u.next();!h.done;h=u.next()){var c=h.value;this._av(c)}}catch(e){r={error:e}}finally{try{h&&!h.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}try{for(var _=n.__values(i.fromEnum(t)),d=_.next();!d.done;d=_.next()){var p=d.value;this._ap(p),this.r(e++,p),s&&this._au(p)}}catch(e){a={error:e}}finally{try{d&&!d.done&&(l=_.return)&&l.call(_)}finally{if(a)throw a.error}}0==this._ah?(this._a0("Count"),this._a0("Item[]"),this._a1()):this._ae=!0},t.prototype._a3=function(e){if(null==e)throw new i.ArgumentNullException(0,"collection");this.beginUpdate(),this.clear(),this.o(e),this.endUpdate()},t.prototype.v=function(e,t){if(e<0)throw new i.ArgumentOutOfRangeException(1,"index");if(t<0)throw new i.ArgumentOutOfRangeException(1,"count");for(var n=this._ai,r=e+t-1;r>=e;r--){var o=this._inner[r];n&&this._ay(o),this._a4(o),this.u(r),n&&this._ax(o)}0==this._ah?(this._a0("Count"),this._a0("Item[]"),this._a1()):this._ae=!0},t.prototype._ar=function(){},t.prototype._at=function(){},t.prototype._au=function(e){},t.prototype._av=function(e){},t.prototype._ax=function(e){},t.prototype._ay=function(e){},t.prototype._ao=function(){},t.prototype._ap=function(e){if(this._ag){var t=i.typeCast(c,e);null!=t&&t.addListener(this._ad,!1)}if(this._af){var n=i.typeCast(i.INotifyPropertyChanged_$type,e);null!=n&&(n.propertyChanged=i.delegateCombine(n.propertyChanged,this._al))}},t.prototype._aq=function(e,t){var r,o;if(this._af=e&&i.INotifyPropertyChanged_$type.isAssignableFrom(this.$t),this._ag=t&&c.isAssignableFrom(this.$t),this._af||this._ag){this._af&&(this._al=i.runOn(this,this._a2));try{for(var a=n.__values(i.fromEnum(this._aj)),l=a.next();!l.done;l=a.next()){var s=l.value;this._ap(s)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}}},t.prototype._a0=function(e){this._az(new i.PropertyChangedEventArgs(e))},t.prototype._a1=function(){this._as(this.$type.getStaticFields(t.$)._ak)},t.prototype._a2=function(e,t){this._aw(new A(e,t.propertyName))},t.prototype._a4=function(e){if(this._ag){var t=i.typeCast(c,e);null!=t&&t.removeListener(this._ad)}if(this._af){var n=i.typeCast(i.INotifyPropertyChanged_$type,e);null!=n&&(n.propertyChanged=i.delegateRemove(n.propertyChanged,this._al))}},t.prototype._aw=function(e){null!=this._itemPropertyChanged&&this._itemPropertyChanged(this,e)},t.prototype.n=function(e){this.r(this.count,e)},t.prototype.p=function(){var t=this._ai,i=this._aj,n=t?new Array(i.count):null;if(null!=n&&i.copyTo(n,0),t)for(var r=0;r<n.length;r++)this._ay(n[r]);if(this._af||this._ag)for(var o=i,a=0,l=o.count;a<l;a++)this._a4(o.item(a));if(e.prototype.p.call(this),null!=n)for(var s=0;s<n.length;s++)this._ax(n[s]);this._ah?this._ae=!0:(this._a0("Count"),this._a0("Item[]"),this._a1())},t.prototype.r=function(t,n){var r=this._ai;r&&this._av(n),e.prototype.r.call(this,t,n),this._ap(n),r&&this._au(n),this._ah?this._ae=!0:(this._a0("Count"),this._a0("Item[]"),this._as(new i.NotifyCollectionChangedEventArgs(1,0,i.getBoxIfEnum(this.$t,n),t)))},t.prototype._as=function(e){var t=this.collectionChanged;null!=t&&t(this,e),null!=this._ac&&this._ac.g(this,e)},t.prototype._az=function(e){var t=this.propertyChanged;null!=t&&t(this,e),null!=this._ac&&this._ac.onPropertyValueChanged(this,e.propertyName,null)},t.prototype.u=function(t){var n=this._inner[t],r=this._ai;r&&this._ay(n),this._a4(n),e.prototype.u.call(this,t),r&&this._ax(n),this._ah?this._ae=!0:(this._a0("Count"),this._a0("Item[]"),this._as(new i.NotifyCollectionChangedEventArgs(1,1,i.getBoxIfEnum(this.$t,n),t)))},t.prototype.x=function(t,n){var r=this._ai;r&&(this._ay(this._inner[t]),this._av(n));var o=this._inner[t];this._a4(o),this._ap(n),e.prototype.x.call(this,t,n),r&&(this._ax(o),this._au(n)),this._ah?this._ae=!0:(this._a0("Item[]"),this._as(new i.NotifyCollectionChangedEventArgs(2,2,i.getBoxIfEnum(this.$t,n),i.getBoxIfEnum(this.$t,o),t)))},t.prototype.addListener=function(e,t){this._ad.b(e,t)},t.prototype.removeListener=function(e){this._ad.d(e)},t.$t=i.markType(t,"ObservableCollectionExtended$1",i.List$1.$.specialize(0),[c,_,i.INotifyPropertyChanged_$type,i.INotifyCollectionChanged_$type],(function(){this._ak=new i.NotifyCollectionChangedEventArgs(0,4)})),t}(i.List$1),T=i.markEnum("SortContext","Selection,0|WorksheetSortSettings,1|FilterRegion,2|Table,3"),x=function(e){function t(t,i,n,o,a,l){var s=e.call(this)||this;return s.e=null,s.d=new r.WorksheetRegionAddress,s.b=null,s.c=new r.WorksheetCellAddress,s.g=0,s.a=0,s.f=!1,s.e=t,s.d=n,s.c=o,s.g=a,s.b=i,s.a=l,s.f=s.g>0,s}return n.__extends(t,e),t.$t=i.markType(t,"SortTargetResult"),t}(i.Base),M=function(e){function t(t,n){var r=e.call(this)||this;return r._d=i.toNullable(i.Number_$type,null),r._b=i.toNullable(i.Number_$type,null),r._d=t,r._b=n,r}return n.__extends(t,e),Object.defineProperty(t.prototype,"_oldActiveRowIndex",{get:function(){return this._d},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_newActiveRowIndex",{get:function(){return this._b},enumerable:!1,configurable:!0}),t.$t=i.markType(t,"ActiveRowIndexChangedEventArgs",i.EventArgs.$),t}(i.EventArgs),E=i.markEnum("CellContentType","Default,0|Text,1|Date,2|Number,3"),R=function(e){function t(){var t=e.call(this)||this;return t.j=null,t.a=!0,t.b=!0,t.l=null,t.n=null,t.d=!1,t.e=!1,t.i=!1,t.p=null,t.m=null,t}return n.__extends(t,e),Object.defineProperty(t.prototype,"c",{get:function(){return null!=this.j&&this.j.count>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"f",{get:function(){return this.a},set:function(e){this.a=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"g",{get:function(){return"-"==this.p},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"h",{get:function(){return this.b},set:function(e){this.b=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"k",{get:function(){return null==this.j&&(this.j=new i.List$1(t.$,0)),this.j},enumerable:!1,configurable:!0}),t.$t=i.markType(t,"DropDownItem"),t}(i.Base),P=function(e){function t(t,i,n){var r=e.call(this,t,i,n)||this;return r._d8=null,r}return n.__extends(t,e),t.prototype.cu=function(t){e.prototype.cu.call(this,t),this.ae||null==t.stopPropagation||t.stopPropagation()},t.prototype.cv=function(t){null!=this._d8&&this._d8(t)||e.prototype.cv.call(this,t)},t.$t=i.markType(t,"CustomDOMEventProxy",i.CanvasGestureDOMEventProxy.$),t}(i.CanvasGestureDOMEventProxy),O=function(e){function t(t,i,n){var r=e.call(this)||this;return r.a=0,r.h=0,r.f=!1,r.a=t,r.h=i,r.f=n,r}return n.__extends(t,e),Object.defineProperty(t.prototype,"b",{get:function(){return this.a},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"i",{get:function(){return this.h},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"g",{get:function(){return this.f},enumerable:!1,configurable:!0}),t.$t=i.markType(t,"RelativePositionInfo"),t.c=new t(0,0,!1),t.e=new t(1,0,!1),t.d=new t(2,0,!1),t}(i.Base),j=function(e){function t(t,n,r,o,a,l){var s,u=e.call(this)||this;u.z=null,u.ab=null,u.aa=null,u.o=null,u.n=null,u.d=null,u.af=0,u.ah=-1,u.e=!1,u.ag=0,u.y=null,u.a=null,u.b=null,u.m=!1,u.childRequested=null,u.closed=null,u.itemClicked=null,u.opened=null,u.selectedItemChanged=null,u.z=t,u.o=new i.List$1(i.DomWrapper_$type,0),u.n=new i.Dictionary$2(i.DomWrapper_$type,R.$,0),u.a=o,u.b=a,u.af=null==o?0:o.af+1,u.ap(t,r,u.af,l),u.aa.setRawStyleProperty("position","absolute"),u.aa.setRawStyleProperty("visibility","hidden"),n.append(u.aa),u.d=((s=new P(u.aa,t,!1))._d8=function(e){return!0},s);var h=u.d;h.onKeyDown=i.delegateCombine(h.onKeyDown,i.runOn(u,u.k));var c=u.d;c.onMouseUp=i.delegateCombine(c.onMouseUp,i.runOn(u,u.aw));var _=u.d;return _.onMouseOver=i.delegateCombine(_.onMouseOver,i.runOn(u,u.av)),u}return n.__extends(t,e),Object.defineProperty(t.prototype,"ac",{get:function(){return this.aa},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"f",{get:function(){return this.e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"c",{get:function(){return this.ah<0?null:this.n.item(this.o._inner[this.ah])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ai",{get:function(){return this.ah},set:function(e){if(this.a1(),this.ah!=e){var t=this.ah>=0?this.o._inner[this.ah]:null,n=e>=0?this.o._inner[e]:null;this.ah=e,null!=t&&t.removeClass("selected"),null!=n&&(n.addClass("selected"),this.az(n));var r=this.selectedItemChanged;null!=r&&r(this,i.Tuple.a(R.$,R.$,null!=t?this.n.item(t):null,null!=n?this.n.item(n):null))}},enumerable:!1,configurable:!0}),t.prototype.ao=function(){this.a1(),this.e=!1,this.aa.setRawStyleProperty("visibility","hidden"),this.d.ae=!0;var e=this.closed;null!=e&&e(this,null)},t.prototype.ap=function(e,t,i,n){var r=e.createElement("div"),o=e.createElement("div");this.ab=o,this.aa=r,this.as(e,t,n),r.setRawStyleProperty("z-index",1e4+i),r.setAttribute("tabIndex",-1),r.append(o)},t.prototype.aq=function(){if(this.a1(),null!=this.aa){this.e=!1,this.d.av(),this.d=null;var e=this.aa;this.aa=null,this.ab=null,e.remove()}},t.prototype.ar=function(){this.a1();var e=this.c;null!=e&&e.c&&e.f&&this.ax(e)},t.p=function(e,t,i,n){var r=n-i;return i<e&&(r-=e-i),n>t&&(r-=n-t),r},t.prototype.ad=function(){for(var e=this.aa.getNativeElement(),t=this.d.as.originalEvent,i=t.target;null!=i&&i!=e;){var n=i.classList;if(null!=n&&n.contains("ui-ig-internal-dropdownitem"))for(var r=0;r<this.o.count;r++)if(i==this.o._inner[r].getNativeElement())return this.o._inner[r];i=i.parentNode}for(var o=t.clientX,a=t.clientY,l=this.ah<0?0:this.ah,s=this.o.count,u=l,h=l+s;u<h;u++){var c=this.o._inner[u%s],_=c.getNativeElement().getBoundingClientRect();if(_.top<=a&&_.left<=o&&_.bottom>=a&&_.right>=o)return c}return null},t.r=function(e,i,n){if(void 0===n&&(n=!1),n){var r=e.b;return 1==r?r=2:2==r&&(r=1),t.q(r,-e.i,e.g,i)}return t.q(e.b,e.i,e.g,i)},t.q=function(e,t,i,n){var r=0;switch(e){default:case 1:break;case 0:r+=n/2;break;case 2:r+=n}return i&&(t*=n),r+t},t.s=function(e,i,n,r,o,a,l,s,u){u=o;var h=i-e,c=e+t.r(a,h)-t.r(l,o);if(0!=s){var _=t.p(n,r,c,c+o);if(_<o){if(0!=(1&s)){var d=e+t.r(a,h,!0)-t.r(l,o,!0),p=t.p(n,r,d,d+o);p>_&&(c=d,_=p)}_<o&&0!=(2&s)&&(c+o>r&&(c-=c+o-r),c<n&&(c+=n-c),_=t.p(n,r,c,c+o)),_<o&&0!=(4&s)&&(c+o>r&&(u-=Math.ceil(c+o-r)),c<n&&(u-=Math.ceil(n-c),c+=Math.floor(n-c)))}}return{ret:c,p8:u}},t.prototype.ae=function(e){var t,r;try{for(var o=n.__values(i.fromEnum(this.n)),a=o.next();!a.done;a=o.next()){var l=a.value;if(l.value==e)return l.key}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return null},t.prototype.as=function(e,t,r){var o,a;this.ab.removeChildren(),this.n.clear();try{for(var l=n.__values(i.fromEnum(this.o)),s=l.next();!s.done;s=l.next()){s.value.destroy()}}catch(e){o={error:e}}finally{try{s&&!s.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}this.o.clear();for(var u=0;u<t.count;u++){var h=t.item(u),c=e.createElement("div");c.addClass("ui-ig-internal-dropdownitem"),this.o.add(c),this.n.addItem(c,h),h.f||c.addClass("disabled"),h.e&&c.addClass("checked"),u==this.ah&&c.addClass("selected"),h.c&&c.addClass("hassubitems"),h.h||c.setRawStyleProperty("display","none"),r(c,h),this.ab.append(c)}this.ah>=t.count&&(this.ai=-1)},t.prototype.g=function(e){return this.h(this.ah,e)},t.prototype.h=function(e,t){var i,n,r=this.o.count,o=t?1:-1;if(e<0)i=t?0:r-1,n=t?r:-1;else if(i=t?e+1:e-1,this.m)n=t?i+r:(i+=r)-r;else if(t){if(e>=r-1)return!1;n=-1}else{if(0==e)return!1;n=r}for(var a=i;a!=n;a+=o){var l=a%r,s=this.n.item(this.o._inner[l]);if(!s.g&&s.h)return this.ai=l,!0}return!1},t.prototype.i=function(){return this.h(0,!0)},t.prototype.j=function(){return this.h(this.n.count-1,!1)},t.prototype.at=function(){this.ag=0,this.ar()},t.prototype.au=function(e){var t=this.n.item(e);if(t.f&&!t.g){if(!t.c&&!t.i){for(var i=this;null!=i.a;)i=i.a;i.ao()}t.d&&(t.e?e.removeClass("checked"):e.addClass("checked"),t.e=!t.e),null!=t.l&&t.l(t,t),t.c&&this.ax(t);var n=this.itemClicked;null!=n&&n(this,t)}},t.prototype.k=function(e){var t=this.d.as;return null!=this.y&&this.y(this,e,this.d.bi,t)||this.l(e,this.d.bi)&&(t.stopPropagation(),t.preventDefault()),!0},t.prototype.av=function(e,t,n){var r=this.ad();if(null!=r){var o=this.n.item(r);o.g||(o.f?(this.ai=this.o.indexOf(r),o.c&&(this.ag=this.z.setTimeout(i.runOn(this,this.at),300))):this.ai=-1)}},t.prototype.aw=function(e){var t=this.ad();null!=t&&this.au(t)},t.prototype.ax=function(e){if(this.e){var t=this.childRequested;null!=t&&t(this,e)}},t.prototype.ay=function(e,i,n,r){void 0===r&&(r=!0);var o,a,l=n.d||O.c,s=n.f||O.c,u=n.c||O.c,h=n.e||O.c,c=e.getNativeElement(),_=c.parentElement.getBoundingClientRect(),d=c.scrollWidth+(c.offsetWidth-c.clientWidth),p=c.scrollHeight+(c.offsetHeight-c.clientHeight),m=-_.left,f=window.innerWidth||document.documentElement.clientWidth,g=-_.top,b=window.innerHeight||document.documentElement.clientHeight,y=function(){var e=t.s(i.x,i.right,m+1,m+f-2,d,l,u,n.a,o);return o=e.p8,e.ret}(),v=function(){var e=t.s(i.y,i.bottom,g+1,g+b-2,p,s,h,n.b,a);return a=e.p8,e.ret}();if(e.setRawStyleProperty("left",y+"px"),e.setRawStyleProperty("top",v+"px"),o==d?e.setRawStyleProperty("width",""):e.setRawStyleProperty("width",o+"px"),a==p?e.setRawStyleProperty("height",""):e.setRawStyleProperty("height",a+"px"),r){c.scrollWidth,c.offsetWidth,c.clientWidth,c.scrollHeight,c.offsetHeight,c.clientHeight;this.ay(e,i,n,!1)}},t.prototype.l=function(e,t){switch(e){case 14:null!=this.a&&this.ao();break;case 16:this.ar();break;case 8:this.ao();break;case 17:this.g(!0);break;case 15:this.g(!1);break;case 9:case 3:this.ah>=0&&this.au(this.o._inner[this.ah]);break;case 13:this.i();break;case 12:this.j();break;case 10:case 11:default:return!1}return!0},t.prototype.az=function(e){var i=e.getNativeElement().getBoundingClientRect(),n=this.aa.getNativeElement().getBoundingClientRect(),r=i.height,o=i.y,a=i.bottom,l=n.y,s=n.bottom;if(t.p(l,s,o,a)!=r){var u=this.aa.getProperty("scrollTop");o<l?u-=l-o:a>s&&(u+=Math.min(a-s,o-l)),this.aa.setProperty("scrollTop",u)}},t.prototype.a0=function(e,t){var n=this.aa;this.e=!0,this.d.bl=new i.Rect(0,0,0,n.outerWidth(),n.outerHeight()),this.d.ae=!1,this.ay(n,e,t),this.ah>=0&&this.az(this.o._inner[this.ah]),this.aa.setRawStyleProperty("visibility","");var r=this.opened;null!=r&&r(this,null)},t.prototype.a1=function(){if(0!=this.ag){var e=this.ag;this.ag=0,this.z.clearTimeout(e)}},t.$t=i.markType(t,"DropDown"),t}(i.Base),B=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.d=null,t.f=null,t.c=O.e,t.e=O.e,t.a=0,t.b=0,t}return n.__extends(t,e),t.$t=i.markType(t,"DropDownPosition"),t}(i.Base),N=function(e){function t(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var a,l,s=e.call(this)||this;switch(s._g=0,s._h=0,0===arguments.length?a=0:1===arguments.length?a=2:2===arguments.length&&(a=1),a){case 0:break;case 1:var u=n[0],h=n[1];t._k(u,"row"),t._k(h,"column"),s._h=u,s._g=h;break;case 2:var c,_,d=n[0];if(l=r.ExcelUtils.bn(d,2,i.CultureInfo.currentCulture,c,_),c=l.p3,_=l.p4,!l.ret)throw new i.ArgumentException(1,i.stringFormat("The specified address '{0}' is not a valid A1 cell address.",d));s._h=_,s._g=c;break;default:throw new Error("Invalid arguments")}return s}return n.__extends(t,e),t.staticInit=function(){},t.prototype.equals=function(){var e;switch(1===arguments.length&&(null!==i.typeCast(t.$,arguments[0])?e=0:(null!==i.typeCast(i.Base.$,arguments[0])||null==arguments[0])&&(e=1)),e){case 0:return this._equals.apply(this,arguments);case 1:return this.equals1.apply(this,arguments);default:throw new Error("Invalid arguments")}},t.prototype.equals1=function(e){return null!==i.typeCast(t.$,e)&&this._equals(e)},t.prototype.getHashCode=function(){return this._h^this._g<<8},t.prototype.toString=function(){return r.CellAddress.u(this._h,this._g)},Object.defineProperty(t.prototype,"row",{get:function(){return this._h},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"column",{get:function(){return this._g},enumerable:!1,configurable:!0}),t._k=function(e,t){if(e<0)throw new i.ArgumentException(2,"Row and column indexes must be 0 or greater.",t)},t.prototype._equals=function(e){return e._h==this._h&&e._g==this._g},t.l_op_Equality=function(e,t){return e._equals(t)},t.l_op_Equality_Lifted=function(e,n){return arguments[0]=i.wrapNullable(t.$,arguments[0]),arguments[1]=i.wrapNullable(t.$,arguments[1]),this._l_op_Equality_Lifted$i.apply(this,arguments)},t._l_op_Equality_Lifted$i=function(e,i){return e.hasValue?!!i.hasValue&&t.l_op_Equality(e.value,i.value):!i.hasValue},t.l_op_Inequality=function(e,i){return!t.l_op_Equality(e,i)},t.l_op_Inequality_Lifted=function(e,n){return arguments[0]=i.wrapNullable(t.$,arguments[0]),arguments[1]=i.wrapNullable(t.$,arguments[1]),this._l_op_Inequality_Lifted$i.apply(this,arguments)},t._l_op_Inequality_Lifted$i=function(e,i){return e.hasValue?!i.hasValue||t.l_op_Inequality(e.value,i.value):i.hasValue},t.$t=i.markStruct(t,"SpreadsheetCell",i.ValueType.$,[i.IEquatable$1_$type.specialize(-1)]).initSelfReferences(),t}(i.ValueType);i.callStaticConstructors();var z=function(e){function t(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var a,l=e.call(this)||this;switch(l._t=0,l._w=0,l._u=0,l._x=0,l._v=0,0===arguments.length?a=0:1===arguments.length?a=3:2===arguments.length?a=1:4===arguments.length&&(a=2),a){case 0:break;case 1:var s=(m=[_=n[0],d=n[1],_,d])[0],u=m[1],h=m[2],c=m[3];-1==s&&-1==h&&-1==u&&-1==c||(t._ah(s,"firstRow"),t._ah(h,"lastRow"),t._ah(u,"firstColumn"),t._ah(c,"lastColumn")),l._u=Math.min(s,h),l._x=Math.max(s,h),l._t=Math.min(u,c),l._w=Math.max(u,c),l._v=l._u^l._x<<5^l._t<<10^l._w<<15;break;case 2:var _=n[0],d=n[1];h=n[2],c=n[3];-1==_&&-1==h&&-1==d&&-1==c||(t._ah(_,"firstRow"),t._ah(h,"lastRow"),t._ah(d,"firstColumn"),t._ah(c,"lastColumn")),l._u=Math.min(_,h),l._x=Math.max(_,h),l._t=Math.min(d,c),l._w=Math.max(d,c),l._v=l._u^l._x<<5^l._t<<10^l._w<<15;break;case 3:var p=n[0],m=void 0,f=void 0,g=void 0,b=void 0,y=r.ExcelUtils.fx(p,2,i.CultureInfo.currentCulture,m,f,g,b);if(m=y.p3,f=y.p4,g=y.p5,b=y.p6,g<0&&m<0)throw new i.ArgumentException(1,i.stringFormat("The specified address '{0}' is not a valid A1 cell range address.",p));g<0&&(g=m,b=f),t._ah(m,"firstRow"),t._ah(g,"lastRow"),t._ah(f,"firstColumn"),t._ah(b,"lastColumn"),l._u=Math.min(m,g),l._x=Math.max(m,g),l._t=Math.min(f,b),l._w=Math.max(f,b),l._v=l._u^l._x<<5^l._t<<10^l._w<<15;break;default:throw new Error("Invalid arguments")}return l}return n.__extends(t,e),t.staticInit=function(){t.empty=new t(-1,-1,-1,-1)},t.prototype.equals=function(){var e;switch(1===arguments.length&&(null!==i.typeCast(t.$,arguments[0])?e=0:(null!==i.typeCast(i.Base.$,arguments[0])||null==arguments[0])&&(e=1)),e){case 0:return this._equals.apply(this,arguments);case 1:return this.equals1.apply(this,arguments);default:throw new Error("Invalid arguments")}},t.prototype.equals1=function(e){return null!==i.typeCast(t.$,e)&&this._equals(e)},t.prototype.getHashCode=function(){return this._v},t.prototype.toString=function(){var e;switch(0===arguments.length?e=0:1===arguments.length&&(e=1),e){case 0:return this._toString.apply(this,arguments);case 1:return this._toString1.apply(this,arguments);default:throw new Error("Invalid arguments")}},t.prototype._toString=function(){return this._toString1(1)},Object.defineProperty(t.prototype,"firstColumn",{get:function(){return this._t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstRow",{get:function(){return this._u},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_aa",{get:function(){return this._x-this._u+1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSingleCell",{get:function(){return this._t==this._w&&this._u==this._x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return t.l_op_Equality(this,t.empty)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastColumn",{get:function(){return this._w},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastRow",{get:function(){return this._x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_b",{get:function(){return new N(this._x,this._w)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_c",{get:function(){return new N(this._u,this._t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_ad",{get:function(){return this._w-this._t+1},enumerable:!1,configurable:!0}),t.prototype.contains=function(){var e;switch(1===arguments.length?null!==i.typeCast(N.$,arguments[0])?e=0:null!==i.typeCast(t.$,arguments[0])&&(e=1):2===arguments.length&&(e=2),e){case 0:return this._contains.apply(this,arguments);case 1:return this._contains1.apply(this,arguments);case 2:return this._contains2.apply(this,arguments);default:throw new Error("Invalid arguments")}},t.prototype._contains2=function(e,t){return!(t<this._t||t>this._w||e<this._u||e>this._x)},t.prototype._contains=function(e){return this._contains2(e.row,e.column)},t.prototype._contains1=function(e){return!(e.firstColumn<this._t||e.lastColumn>this._w||e.firstRow<this._u||e.lastRow>this._x)},t.prototype.intersect=function(e){return this.intersectsWith(e)?new t(this._u<e._u?e._u:this._u,this._t<e._t?e._t:this._t,this._x>e._x?e._x:this._x,this._w>e._w?e._w:this._w):t.empty},t.prototype.intersectsWith=function(e){return e._u<=this._x&&e._x>=this._u&&e._t<=this._w&&e._w>=this._t},t.prototype._toString1=function(e){return this._af(e,1==e)},t.prototype._af=function(e,t){var n,o,a,l,s,u,h,c,_,d,p=(n=this._u,o=this._t,a=e,l=t,s=t,r.CellAddress.u(n,o,void 0,l,s,void 0,void 0,void 0,a));return this.isSingleCell?p:i.stringFormat("{0}{1}{2}",p,":",(u=this._x,h=this._w,c=e,_=t,d=t,r.CellAddress.u(u,h,void 0,_,d,void 0,void 0,void 0,c)))},t.prototype.union=function(e){return this.isEmpty?e:new t(this._u>e._u?e._u:this._u,this._t>e._t?e._t:this._t,this._x<e._x?e._x:this._x,this._w<e._w?e._w:this._w)},t._a=function(e){var n=null;null!=e&&e.length>0&&(n=i.stringSplit(e,[","],1));for(var r=null==n?0:n.length,o=new Array(r),a=0;a<r;a++){var l=n[a].trim();o[a]=new t(l)}return o},t._j=function(e){for(var t=0,i=e.count;t<i;t++)for(var n=e.item(t),r=t+1;r<i;r++){if(e.item(r).intersectsWith(n))return!0}return!1},t._ag=function(e,t,r){var o,a;if(void 0===r&&(r=","),null==e||0==e.count)return i.stringEmpty();if(1==e.count)return e.item(0)._toString1(t);var l=new i.StringBuilder(0);try{for(var s=n.__values(i.fromEnum(e)),u=s.next();!u.done;u=s.next()){var h=u.value;l.c>0&&l.h(r),l.l(h._toString1(t))}}catch(e){o={error:e}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}return l.toString()},t._ah=function(e,t){if(e<0)throw new i.ArgumentException(2,"Row and column indexes must be 0 or greater.",t)},t.prototype._equals=function(e){return e._u==this._u&&e._x==this._x&&e._t==this._t&&e._w==this._w},t.l_op_Equality=function(e,t){return e._equals(t)},t.l_op_Equality_Lifted=function(e,n){return arguments[0]=i.wrapNullable(t.$,arguments[0]),arguments[1]=i.wrapNullable(t.$,arguments[1]),this._l_op_Equality_Lifted$i.apply(this,arguments)},t._l_op_Equality_Lifted$i=function(e,i){return e.hasValue?!!i.hasValue&&t.l_op_Equality(e.value,i.value):!i.hasValue},t.l_op_Inequality=function(e,i){return!t.l_op_Equality(e,i)},t.l_op_Inequality_Lifted=function(e,n){return arguments[0]=i.wrapNullable(t.$,arguments[0]),arguments[1]=i.wrapNullable(t.$,arguments[1]),this._l_op_Inequality_Lifted$i.apply(this,arguments)},t._l_op_Inequality_Lifted$i=function(e,i){return e.hasValue?!i.hasValue||t.l_op_Inequality(e.value,i.value):i.hasValue},t.$t=i.markStruct(t,"SpreadsheetCellRange",i.ValueType.$,[i.IEquatable$1_$type.specialize(-1)]).initSelfReferences(),t.empty=new t,t}(i.ValueType);i.callStaticConstructors();var $=new i.Type(null,"ISpreadsheetEditorValue"),L=function(e){function t(t){var i=e.call(this,0)||this;return i._c=new N,i._c=t,i}return n.__extends(t,e),Object.defineProperty(t.prototype,"cell",{get:function(){return this._c},enumerable:!1,configurable:!0}),t.$t=i.markType(t,"SpreadsheetEditModeEnteringEventArgs",i.CancelEventArgs.$),t}(i.CancelEventArgs),U=function(e){function t(t){var i=e.call(this)||this;return i._b=new N,i._b=t,i}return n.__extends(t,e),Object.defineProperty(t.prototype,"cell",{get:function(){return this._b},enumerable:!1,configurable:!0}),t.$t=i.markType(t,"SpreadsheetEditModeEnteredEventArgs",i.EventArgs.$),t}(i.EventArgs),W=function(e){return e[e.ActivatePreviousPane=0]="ActivatePreviousPane",e[e.ActivateNextPane=1]="ActivateNextPane",e[e.CellInSelectionRight=2]="CellInSelectionRight",e[e.CellInSelectionLeft=3]="CellInSelectionLeft",e[e.CellInSelectionAbove=4]="CellInSelectionAbove",e[e.CellInSelectionBelow=5]="CellInSelectionBelow",e[e.CellRight=6]="CellRight",e[e.CellLeft=7]="CellLeft",e[e.CellAbove=8]="CellAbove",e[e.CellBelow=9]="CellBelow",e[e.CellWithDataLeft=10]="CellWithDataLeft",e[e.CellWithDataRight=11]="CellWithDataRight",e[e.CellWithDataAbove=12]="CellWithDataAbove",e[e.CellWithDataBelow=13]="CellWithDataBelow",e[e.EdgeCellWithDataLeft=14]="EdgeCellWithDataLeft",e[e.EdgeCellWithDataRight=15]="EdgeCellWithDataRight",e[e.EdgeCellWithDataAbove=16]="EdgeCellWithDataAbove",e[e.EdgeCellWithDataBelow=17]="EdgeCellWithDataBelow",e[e.CellPageBelow=18]="CellPageBelow",e[e.CellPageAbove=19]="CellPageAbove",e[e.CellPageRight=20]="CellPageRight",e[e.CellPageLeft=21]="CellPageLeft",e[e.ScrollLeft=22]="ScrollLeft",e[e.ScrollRight=23]="ScrollRight",e[e.ScrollUp=24]="ScrollUp",e[e.ScrollDown=25]="ScrollDown",e[e.ScrollPageLeft=26]="ScrollPageLeft",e[e.ScrollPageRight=27]="ScrollPageRight",e[e.ScrollPageAbove=28]="ScrollPageAbove",e[e.ScrollPageBelow=29]="ScrollPageBelow",e[e.FirstCellInRow=30]="FirstCellInRow",e[e.FirstCellInView=31]="FirstCellInView",e[e.FirstCellInWorksheet=32]="FirstCellInWorksheet",e[e.FirstScrollableCellInRow=33]="FirstScrollableCellInRow",e[e.FirstScrollableCellInWorksheet=34]="FirstScrollableCellInWorksheet",e[e.LastCellInView=35]="LastCellInView",e[e.EnterEndMode=36]="EnterEndMode",e[e.ExitEndMode=37]="ExitEndMode",e[e.LastUsedCell=38]="LastUsedCell",e[e.LastUsedCellInRow=39]="LastUsedCellInRow",e[e.SelectCurrentRegion=40]="SelectCurrentRegion",e[e.SelectCellRight=41]="SelectCellRight",e[e.SelectCellLeft=42]="SelectCellLeft",e[e.SelectCellAbove=43]="SelectCellAbove",e[e.SelectCellBelow=44]="SelectCellBelow",e[e.SelectCellWithDataLeft=45]="SelectCellWithDataLeft",e[e.SelectCellWithDataRight=46]="SelectCellWithDataRight",e[e.SelectCellWithDataAbove=47]="SelectCellWithDataAbove",e[e.SelectCellWithDataBelow=48]="SelectCellWithDataBelow",e[e.SelectEdgeCellWithDataLeft=49]="SelectEdgeCellWithDataLeft",e[e.SelectEdgeCellWithDataRight=50]="SelectEdgeCellWithDataRight",e[e.SelectEdgeCellWithDataAbove=51]="SelectEdgeCellWithDataAbove",e[e.SelectEdgeCellWithDataBelow=52]="SelectEdgeCellWithDataBelow",e[e.SelectCellPageBelow=53]="SelectCellPageBelow",e[e.SelectCellPageAbove=54]="SelectCellPageAbove",e[e.SelectCellPageRight=55]="SelectCellPageRight",e[e.SelectCellPageLeft=56]="SelectCellPageLeft",e[e.SelectFirstCellInRow=57]="SelectFirstCellInRow",e[e.SelectFirstCellInView=58]="SelectFirstCellInView",e[e.SelectFirstCellInWorksheet=59]="SelectFirstCellInWorksheet",e[e.SelectFirstScrollableCellInRow=60]="SelectFirstScrollableCellInRow",e[e.SelectFirstScrollableCellInWorksheet=61]="SelectFirstScrollableCellInWorksheet",e[e.SelectLastCellInView=62]="SelectLastCellInView",e[e.SelectLastUsedCell=63]="SelectLastUsedCell",e[e.SelectLastUsedCellInRow=64]="SelectLastUsedCellInRow",e[e.SelectRows=65]="SelectRows",e[e.SelectColumns=66]="SelectColumns",e[e.SelectAllCells=67]="SelectAllCells",e[e.SwitchToNormalSelectionMode=68]="SwitchToNormalSelectionMode",e[e.SwitchToExtendSelectionMode=69]="SwitchToExtendSelectionMode",e[e.SwitchToAddToSelectionMode=70]="SwitchToAddToSelectionMode",e[e.FirstCellInViewWithinSelection=71]="FirstCellInViewWithinSelection",e[e.LastCellInViewWithinSelection=72]="LastCellInViewWithinSelection",e[e.EnterEditMode=73]="EnterEditMode",e[e.EnterEditModeAndClearValue=74]="EnterEditModeAndClearValue",e[e.ExitEditModeAndUpdateActiveCell=75]="ExitEditModeAndUpdateActiveCell",e[e.ExitEditModeAndUpdateSelectedCells=76]="ExitEditModeAndUpdateSelectedCells",e[e.ExitEditModeAndCreateArrayFormula=77]="ExitEditModeAndCreateArrayFormula",e[e.ExitEditModeAndDiscardChanges=78]="ExitEditModeAndDiscardChanges",e[e.ClearContents=79]="ClearContents",e[e.SelectCurrentArray=80]="SelectCurrentArray",e[e.CellInNextSelectionRange=81]="CellInNextSelectionRange",e[e.CellInPreviousSelectionRange=82]="CellInPreviousSelectionRange",e[e.SelectVisibleCellsOnly=83]="SelectVisibleCellsOnly",e[e.SelectActiveCellOnly=84]="SelectActiveCellOnly",e[e.Redo=85]="Redo",e[e.Undo=86]="Undo",e[e.EnterKeyNavigation=87]="EnterKeyNavigation",e[e.ShiftEnterKeyNavigation=88]="ShiftEnterKeyNavigation",e[e.HideColumns=89]="HideColumns",e[e.UnhideColumns=90]="UnhideColumns",e[e.HideRows=91]="HideRows",e[e.UnhideRows=92]="UnhideRows",e[e.AutoFitRowHeight=93]="AutoFitRowHeight",e[e.AutoFitColumnWidth=94]="AutoFitColumnWidth",e[e.MergeCellsAcross=95]="MergeCellsAcross",e[e.MergeCells=96]="MergeCells",e[e.MergeCellsAndCenter=97]="MergeCellsAndCenter",e[e.UnmergeCells=98]="UnmergeCells",e[e.AddNewWorksheet=99]="AddNewWorksheet",e[e.InsertNewWorksheets=100]="InsertNewWorksheets",e[e.ActivateNextWorksheet=101]="ActivateNextWorksheet",e[e.ActivatePreviousWorksheet=102]="ActivatePreviousWorksheet",e[e.ActivateAndSelectNextWorksheet=103]="ActivateAndSelectNextWorksheet",e[e.ActivateAndSelectPreviousWorksheet=104]="ActivateAndSelectPreviousWorksheet",e[e.ScrollNextWorksheet=105]="ScrollNextWorksheet",e[e.ScrollPreviousWorksheet=106]="ScrollPreviousWorksheet",e[e.ScrollToFirstWorksheet=107]="ScrollToFirstWorksheet",e[e.ScrollToLastWorksheet=108]="ScrollToLastWorksheet",e[e.ActivatePreviousOutOfViewWorksheet=109]="ActivatePreviousOutOfViewWorksheet",e[e.ActivateNextOutOfViewWorksheet=110]="ActivateNextOutOfViewWorksheet",e[e.SelectAllWorksheets=111]="SelectAllWorksheets",e[e.UnselectWorksheets=112]="UnselectWorksheets",e[e.RenameWorksheet=113]="RenameWorksheet",e[e.DeleteWorksheets=114]="DeleteWorksheets",e[e.ZoomIn=115]="ZoomIn",e[e.ZoomOut=116]="ZoomOut",e[e.ZoomToSelection=117]="ZoomToSelection",e[e.ZoomTo100=118]="ZoomTo100",e[e.ToggleBold=119]="ToggleBold",e[e.ToggleItalic=120]="ToggleItalic",e[e.ToggleStrikeThrough=121]="ToggleStrikeThrough",e[e.ToggleWrapText=122]="ToggleWrapText",e[e.IncreaseIndentation=123]="IncreaseIndentation",e[e.DecreaseIndentation=124]="DecreaseIndentation",e[e.IncreaseFontSize=125]="IncreaseFontSize",e[e.DecreaseFontSize=126]="DecreaseFontSize",e[e.AlignHorizontalCenter=127]="AlignHorizontalCenter",e[e.AlignHorizontalJustify=128]="AlignHorizontalJustify",e[e.AlignHorizontalLeft=129]="AlignHorizontalLeft",e[e.AlignHorizontalRight=130]="AlignHorizontalRight",e[e.AlignVerticalTop=131]="AlignVerticalTop",e[e.AlignVerticalMiddle=132]="AlignVerticalMiddle",e[e.AlignVerticalBottom=133]="AlignVerticalBottom",e[e.ToggleSplitPanes=134]="ToggleSplitPanes",e[e.ToggleFreezePanes=135]="ToggleFreezePanes",e[e.FreezeFirstRow=136]="FreezeFirstRow",e[e.FreezeFirstColumn=137]="FreezeFirstColumn",e[e.RemoveColumnScrollRegionSplit=138]="RemoveColumnScrollRegionSplit",e[e.SnapColumnScrollRegionSplit=139]="SnapColumnScrollRegionSplit",e[e.RemoveRowScrollRegionSplit=140]="RemoveRowScrollRegionSplit",e[e.SnapRowScrollRegionSplit=141]="SnapRowScrollRegionSplit",e[e.RemoveScrollRegionSplits=142]="RemoveScrollRegionSplits",e[e.SnapScrollRegionSplits=143]="SnapScrollRegionSplits",e[e.DeleteRows=144]="DeleteRows",e[e.InsertRows=145]="InsertRows",e[e.DeleteColumns=146]="DeleteColumns",e[e.InsertColumns=147]="InsertColumns",e[e.Cut=148]="Cut",e[e.Copy=149]="Copy",e[e.Paste=150]="Paste",e[e.ToggleCellEditMode=151]="ToggleCellEditMode",e[e.InsertCellsShiftRight=152]="InsertCellsShiftRight",e[e.InsertCellsShiftDown=153]="InsertCellsShiftDown",e[e.DeleteCellsShiftLeft=154]="DeleteCellsShiftLeft",e[e.DeleteCellsShiftUp=155]="DeleteCellsShiftUp",e[e.InsertCells=156]="InsertCells",e[e.DeleteCells=157]="DeleteCells",e[e.ClearFormats=158]="ClearFormats",e[e.ToggleShowFormulasInCells=159]="ToggleShowFormulasInCells",e[e.ToggleUnderline=160]="ToggleUnderline",e[e.ToggleDoubleUnderline=161]="ToggleDoubleUnderline",e[e.ToggleSuperscript=162]="ToggleSuperscript",e[e.ToggleSubscript=163]="ToggleSubscript",e[e.OpenHyperlink=164]="OpenHyperlink",e[e.RemoveHyperlinks=165]="RemoveHyperlinks",e[e.ClearHyperlinks=166]="ClearHyperlinks",e[e.FirstUnlockedCell=167]="FirstUnlockedCell",e[e.LastUnlockedCell=168]="LastUnlockedCell",e[e.ResetNameBoxWidth=169]="ResetNameBoxWidth",e[e.CircleInvalidData=170]="CircleInvalidData",e[e.ClearValidationCircles=171]="ClearValidationCircles",e[e.CancelRenameWorksheet=172]="CancelRenameWorksheet",e[e.CommitRenameWorksheet=173]="CommitRenameWorksheet",e[e.InsertTableColumns=174]="InsertTableColumns",e[e.AddTableColumn=175]="AddTableColumn",e[e.InsertTableRows=176]="InsertTableRows",e[e.AddTableRow=177]="AddTableRow",e[e.DeleteTableColumns=178]="DeleteTableColumns",e[e.DeleteTableRows=179]="DeleteTableRows",e[e.SelectTableColumnData=180]="SelectTableColumnData",e[e.SelectEntireTableColumn=181]="SelectEntireTableColumn",e[e.SelectTableRow=182]="SelectTableRow",e[e.ToggleTableTotalRow=183]="ToggleTableTotalRow",e[e.ConvertTableToRange=184]="ConvertTableToRange",e[e.ToggleFilter=185]="ToggleFilter",e[e.SortDescending=186]="SortDescending",e[e.SortA