@zklogic/draw.io
Version:
Draw.IO - Graph Editor integration in Angular-cli
2 lines • 535 kB
JavaScript
/*! For license information please see orgchart.min.js.LICENSE.txt */
function mxOrgChartLayout(t,e,n,r){switch(mxGraphLayout.call(this,t),this.correctY=!1,parseInt(e)){case 0:this.branchOptimizer=mxOrgChartLayout.prototype.BRANCH_OPT_LINEAR,this.correctY=!0;break;case 1:this.branchOptimizer=mxOrgChartLayout.prototype.BRANCH_OPT_HANGER2,this.correctY=!0;break;case 3:this.branchOptimizer=mxOrgChartLayout.prototype.BRANCH_OPT_FISHBONE1;break;case 4:this.branchOptimizer=mxOrgChartLayout.prototype.BRANCH_OPT_FISHBONE2;break;case 5:this.branchOptimizer=mxOrgChartLayout.prototype.BRANCH_OPT_1COLUMN_L;break;case 6:this.branchOptimizer=mxOrgChartLayout.prototype.BRANCH_OPT_1COLUMN_R;break;case 7:this.branchOptimizer=mxOrgChartLayout.prototype.BRANCH_OPT_SMART;break;default:this.branchOptimizer=mxOrgChartLayout.prototype.BRANCH_OPT_HANGER4,this.correctY=!0}this.parentChildSpacing=0<n?n:20,this.siblingSpacing=0<r?r:20}!function(t){"use strict";var e,n,r,i,o,s,a,u,l,c,g={global:t,emptyFn:function(){},identity:function(t){return t},geti:function(t,e,n){return Bridge.hasValue(t[e])?e:n},literal:function(t,e){return e.$getType=function(){return t},e},isPlainObject:function(t){if("object"==typeof t&&null!==t){if("function"==typeof Object.getPrototypeOf){var e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}return"[object Object]"===Object.prototype.toString.call(t)}return!1},toPlain:function(t){var e,n,r,i,o;if(!t||Bridge.isPlainObject(t)||"object"!=typeof t)return t;if("function"==typeof t.toJSON)return t.toJSON();if(Bridge.isArray(t)){for(e=[],n=0;n<t.length;n++)e.push(Bridge.toPlain(t[n]));return e}for(o in r={},t)i=t[o],Bridge.isFunction(i)||(r[o]=i);return r},ref:function(t,e){Bridge.isArray(e)&&(e=System.Array.toIndex(t,e));var n={};return Object.defineProperty(n,"v",{get:function(){return t[e]},set:function(n){t[e]=n}}),n},property:function(t,e,n,r){t[e]=n;var i="$"===e.charAt(0)?e.slice(1):e,o="get"+i,s="set"+i,a=e.lastIndexOf("$");a>0&&e.length-a-1>0&&!isNaN(parseInt(e.substr(a+1)))&&(a=e.substring(0,a-1).lastIndexOf("$")),a>0&&a!==e.length-1&&(o=e.substring(0,a)+"get"+e.substr(a+1),s=e.substring(0,a)+"set"+e.substr(a+1)),t[o]=function(t,e,n){return n?function(){return e[t]}:function(){return this[t]}}(e,t,r),t[s]=function(t,e,n){return n?function(n){e[t]=n}:function(e){this[t]=e}}(e,t,r)},event:function(t,e,n,r){t[e]=n;var i="$"===e.charAt(0)?e.slice(1):e,o="add"+i,s="remove"+i,a=e.lastIndexOf("$");a>0&&e.length-a-1>0&&!isNaN(parseInt(e.substr(a+1)))&&(a=e.substring(0,a-1).lastIndexOf("$")),a>0&&a!==e.length-1&&(o=e.substring(0,a)+"add"+e.substr(a+1),s=e.substring(0,a)+"remove"+e.substr(a+1)),t[o]=function(t,e,n){return n?function(n){e[t]=Bridge.fn.combine(e[t],n)}:function(e){this[t]=Bridge.fn.combine(this[t],e)}}(e,t,r),t[s]=function(t,e,n){return n?function(n){e[t]=Bridge.fn.remove(e[t],n)}:function(e){this[t]=Bridge.fn.remove(this[t],e)}}(e,t,r)},createInstance:function(t,e){return t===System.Decimal?System.Decimal.Zero:t===System.Int64?System.Int64.Zero:t===System.UInt64?System.UInt64.Zero:t===System.Double||t===System.Single||t===System.Byte||t===System.SByte||t===System.Int16||t===System.UInt16||t===System.Int32||t===System.UInt32||t===Bridge.Int?0:"function"==typeof t.getDefaultValue?t.getDefaultValue():t!==Boolean&&(t===Date?new Date(0):t===Number?0:t===String?"":t&&t.$literal?t.ctor():e&&e.length>0?Bridge.Reflection.applyConstructor(t,e):new t)},clone:function(t){return Bridge.isArray(t)?System.Array.clone(t):Bridge.isString(t)?t:Bridge.isFunction(t.System$ICloneable$clone)?t.System$ICloneable$clone():Bridge.is(t,System.ICloneable)?t.clone():null},copy:function(t,e,n,r){"string"==typeof n&&(n=n.split(/[,;\s]+/));for(var i,o=0,s=n?n.length:0;o<s;o++)i=n[o],(!0!==r||null==t[i])&&(t[i]=Bridge.is(e[i],System.ICloneable)?Bridge.clone(e[i]):e[i]);return t},get:function(t){return t&&null!==t.$staticInit&&t.$staticInit(),t},ns:function(t,e){var n=t.split("."),r=0;for(e||(e=Bridge.global),r=0;r<n.length;r++)void 0===e[n[r]]&&(e[n[r]]={}),e=e[n[r]];return e},ready:function(t,e){var n=function(){e?t.apply(e):t()};void 0!==Bridge.global.jQuery?Bridge.global.jQuery(n):void 0===Bridge.global.document||"complete"===Bridge.global.document.readyState||"loaded"===Bridge.global.document.readyState?n():Bridge.on("DOMContentLoaded",Bridge.global.document,n)},on:function(t,e,n,r){e.addEventListener?e.addEventListener(t,(function(t){var e=n.apply(r||this,arguments);return!1===e&&(t.stopPropagation(),t.preventDefault()),e}),!1):e.attachEvent("on"+t,(function(){var t=n.call(r||e,Bridge.global.event);return!1===t&&(Bridge.global.event.returnValue=!1,Bridge.global.event.cancelBubble=!0),t}))},addHash:function(t,e,n){if(isNaN(e)&&(e=17),isNaN(n)&&(n=23),Bridge.isArray(t)){for(var r=0;r<t.length;r++)e=e+((e*n|0)+(null==t[r]?0:Bridge.getHashCode(t[r])))|0;return e}return e+((e*n|0)+(null==t?0:Bridge.getHashCode(t)))|0},getHashCode:function(t,e,n){var r,i,o,s,a;if(Bridge.isEmpty(t,!0)){if(e)return 0;throw new System.InvalidOperationException("HashCode cannot be calculated for empty value")}if(!1!==n&&t.hasOwnProperty("item1")&&Bridge.isPlainObject(t)&&(n=!0),t.getHashCode&&Bridge.isFunction(t.getHashCode)&&!t.__insideHashCode&&0===t.getHashCode.length)return t.__insideHashCode=!0,r=t.getHashCode(),delete t.__insideHashCode,r;if(Bridge.isBoolean(t))return t?1:0;if(Bridge.isDate(t))return 4294967295&t.valueOf();if(t===Number.POSITIVE_INFINITY)return 2146435072;if(t===Number.NEGATIVE_INFINITY)return 4293918720;if(Bridge.isNumber(t)){if(Math.floor(t)===t)return t;t=t.toExponential()}if(Bridge.isString(t)){for(i=0,o=0;o<t.length;o++)i=(i<<5)-i+t.charCodeAt(o)&4294967295;return i}if(t.$$hashCode)return t.$$hashCode;if(n&&"object"==typeof t){for(a in s=0,t)t.hasOwnProperty(a)&&(s=29*s+(Bridge.isEmpty(t[a],!0)?0:Bridge.getHashCode(t[a])));if(0!==s)return t.$$hashCode=s,s}return t.$$hashCode=4294967296*Math.random()|0,t.$$hashCode},getDefaultValue:function(t){return t.getDefaultValue&&0===t.getDefaultValue.length?t.getDefaultValue():t!==Boolean&&(t===Date?new Date(-864e13):t===Number?0:null)},getTypeAlias:function(t){return(t.$$name||Bridge.getTypeName(t)).replace(/[\.\(\)\,]/g,"$")},getTypeName:function(t){return Bridge.Reflection.getTypeFullName(t)},hasValue:function(t){return null!=t},hasValue$1:function(){if(0===arguments.length)return!1;for(var t=0;t<arguments.length;t++)if(null==arguments[t])return!1;return!0},is:function(t,e,n,r){var i,o,s,a;if(null==t)return!!r;if(i=t.constructor,e.constructor===Function&&t instanceof e||i===e)return!0;if(o=i.$kind||i.$$inherits,s=e.$kind,o||s){if(e.$isInterface){if(o)return i.$isArrayEnumerator?System.Array.is(t,e):e.isAssignableFrom?e.isAssignableFrom(i):Bridge.Reflection.getInterfaces(i).indexOf(e)>=0;if(Bridge.isArray(t,i))return System.Array.is(t,e);if(i===String)return System.String.is(t,e)}return!0!==n&&e.$is?e.$is(t):!(!e.$literal||!Bridge.isPlainObject(t))&&(!t.$getType||Bridge.Reflection.isAssignableFrom(e,t.$getType()))}if("boolean"==(a=typeof e))return e;if("string"===a&&(e=Bridge.unroll(e)),"function"===a&&Bridge.getType(t).prototype instanceof e)return!0;if(!0!==n){if("function"==typeof e.$is)return e.$is(t);if("function"==typeof e.isAssignableFrom)return e.isAssignableFrom(Bridge.getType(t))}return Bridge.isArray(t)?System.Array.is(t,e):"object"===a&&(i===e||t instanceof e)},as:function(t,e,n){return Bridge.is(t,e,!1,n)?t:null},cast:function(t,e,n){if(null==t)return t;var r=Bridge.is(t,e,!1,n)?t:null;if(null===r)throw new System.InvalidCastException("Unable to cast type "+(t?Bridge.getTypeName(t):"'null'")+" to type "+Bridge.getTypeName(e));return r},apply:function(t,e){for(var n,r=Bridge.getPropertyNames(e,!0),i=0;i<r.length;i++)"function"==typeof t[n=r[i]]&&"function"!=typeof e[n]?t[n](e[n]):t[n]=e[n];return t},merge:function(t,e,n,r){var i,o,s,a,u,l,c;if(t instanceof System.Decimal&&Bridge.isNumber(e))return new System.Decimal(e);if(t instanceof System.Int64&&Bridge.isNumber(e))return new System.Int64(e);if(t instanceof System.UInt64&&Bridge.isNumber(e))return new System.UInt64(e);if(t instanceof Boolean||Bridge.isBoolean(t)||t instanceof Number||Bridge.isNumber(t)||t instanceof String||Bridge.isString(t)||t instanceof Function||Bridge.isFunction(t)||t instanceof Date||Bridge.isDate(t)||Bridge.isNumber(t)||t instanceof System.Double||t instanceof System.Single||t instanceof System.Byte||t instanceof System.SByte||t instanceof System.Int16||t instanceof System.UInt16||t instanceof System.Int32||t instanceof System.UInt32||t instanceof Bridge.Int||t instanceof System.Decimal)return e;if(Bridge.isArray(e)&&Bridge.isFunction(t.add||t.push))for(u=Bridge.isArray(t)?t.push:t.add,o=0;o<e.length;o++)l=e[o],Bridge.isArray(l)||(l=[void 0===r?l:Bridge.merge(r(),l)]),u.apply(t,l);else for(i in e)s=e[i],"function"==typeof t[i]?i.match(/^\s*get[A-Z]/)?Bridge.merge(t[i](),s):t[i](s):"function"==typeof t[c="set"+i.charAt(0).toUpperCase()+i.slice(1)]&&"function"!=typeof s?t[c](s):s&&s.constructor===Object&&t[i]?(a=t[i],Bridge.merge(a,s)):t[i]=s;return n&&n.call(t,t),t},getEnumerator:function(t,e,n){if("string"==typeof t&&(t=System.String.toCharArray(t)),2===arguments.length&&Bridge.isFunction(e)&&(n=e,e=null),e&&t&&t[e])return t[e].call(t);if(!n&&t&&t.getEnumerator)return t.getEnumerator();var r;if(n&&Bridge.isFunction(t[r="System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(n)+"$getEnumerator"])||Bridge.isFunction(t[r="System$Collections$IEnumerable$getEnumerator"]))return t[r]();if(n&&t&&t.getEnumerator)return t.getEnumerator();if("[object Array]"===Object.prototype.toString.call(t)||t&&Bridge.isDefined(t.length))return new Bridge.ArrayEnumerator(t,n);throw new System.InvalidOperationException("Cannot create enumerator")},getPropertyNames:function(t,e){var n=[];for(var r in t)(e||"function"!=typeof t[r])&&n.push(r);return n},isDefined:function(t,e){return void 0!==t&&(!e||null!==t)},isEmpty:function(t,e){return null==t||!e&&""===t||!(e||!Bridge.isArray(t))&&0===t.length},toArray:function(t){var e,n,r,i=[];if(Bridge.isArray(t))for(e=0,r=t.length;e<r;++e)i.push(t[e]);else for(e=Bridge.getEnumerator(t);e.moveNext();)n=e.getCurrent(),i.push(n);return i},toList:function(t,e){return new(System.Collections.Generic.List$1(e||Object))(t)},arrayTypes:[t.Array,t.Uint8Array,t.Int8Array,t.Int16Array,t.Uint16Array,t.Int32Array,t.Uint32Array,t.Float32Array,t.Float64Array,t.Uint8ClampedArray],isArray:function(t,e){var n=e||(null!=t?t.constructor:null);return!!n&&Bridge.arrayTypes.indexOf(n)>=0},isFunction:function(t){return"function"==typeof t},isDate:function(t){return"[object Date]"===Object.prototype.toString.call(t)},isNull:function(t){return null==t},isBoolean:function(t){return"boolean"==typeof t},isNumber:function(t){return"number"==typeof t&&isFinite(t)},isString:function(t){return"string"==typeof t},unroll:function(t){for(var e=t.split("."),n=Bridge.global[e[0]],r=1;r<e.length;r++){if(!n)return null;n=n[e[r]]}return n},referenceEquals:function(t,e){return Bridge.hasValue(t)?t===e:!Bridge.hasValue(e)},staticEquals:function(t,e){return Bridge.hasValue(t)?!!Bridge.hasValue(e)&&Bridge.equals(t,e):!Bridge.hasValue(e)},equals:function(t,e){if(null==t&&null==e)return!0;if(t&&Bridge.isFunction(t.equals)&&1===t.equals.length)return t.equals(e);if(e&&Bridge.isFunction(e.equals)&&1===e.equals.length)return e.equals(t);if(Bridge.isDate(t)&&Bridge.isDate(e))return t.valueOf()===e.valueOf();if(Bridge.isNull(t)&&Bridge.isNull(e))return!0;if(Bridge.isNull(t)!==Bridge.isNull(e))return!1;var n=t===e;return n||"object"!=typeof t||"object"!=typeof e||null===t||null===e||"struct"!==t.$kind||"struct"!==e.$kind||t.$$name!==e.$$name?!n&&t&&e&&t.hasOwnProperty("item1")&&Bridge.isPlainObject(t)&&e.hasOwnProperty("item1")&&Bridge.isPlainObject(e)?Bridge.objectEquals(t,e):n:Bridge.getHashCode(t)===Bridge.getHashCode(e)&&Bridge.objectEquals(t,e)},objectEquals:function(t,e){Bridge.$$leftChain=[],Bridge.$$rightChain=[];var n=Bridge.deepEquals(t,e);return delete Bridge.$$leftChain,delete Bridge.$$rightChain,n},deepEquals:function(t,e){if("object"==typeof t&&"object"==typeof e){if(t===e)return!0;if(Bridge.$$leftChain.indexOf(t)>-1||Bridge.$$rightChain.indexOf(e)>-1)return!1;for(var n in e)if(e.hasOwnProperty(n)!==t.hasOwnProperty(n)||typeof e[n]!=typeof t[n])return!1;for(n in t){if(e.hasOwnProperty(n)!==t.hasOwnProperty(n)||typeof t[n]!=typeof e[n])return!1;if(t[n]!==e[n])if("object"==typeof t[n]){if(Bridge.$$leftChain.push(t),Bridge.$$rightChain.push(e),!Bridge.deepEquals(t[n],e[n]))return!1;Bridge.$$leftChain.pop(),Bridge.$$rightChain.pop()}else if(!Bridge.equals(t[n],e[n]))return!1}return!0}return Bridge.equals(t,e)},compare:function(t,e,n,r){if(!Bridge.isDefined(t,!0)){if(n)return 0;throw new System.NullReferenceException}if(Bridge.isNumber(t)||Bridge.isString(t)||Bridge.isBoolean(t))return Bridge.isString(t)&&!Bridge.hasValue(e)?1:t<e?-1:t>e?1:0;if(Bridge.isDate(t))return Bridge.compare(t.valueOf(),e.valueOf());var i;if(r&&Bridge.isFunction(t[i="System$IComparable$1$"+Bridge.getTypeAlias(r)+"$compareTo"])||Bridge.isFunction(t[i="System$IComparable$compareTo"]))return t[i](e);if(Bridge.isFunction(t.compareTo))return t.compareTo(e);if(r&&Bridge.isFunction(e[i="System$IComparable$1$"+Bridge.getTypeAlias(r)+"$compareTo"])||Bridge.isFunction(e[i="System$IComparable$compareTo"]))return-e[i](t);if(Bridge.isFunction(e.compareTo))return-e.compareTo(t);if(n)return 0;throw new System.Exception("Cannot compare items")},equalsT:function(t,e,n){if(!Bridge.isDefined(t,!0))throw new System.NullReferenceException;return Bridge.isNumber(t)||Bridge.isString(t)||Bridge.isBoolean(t)?t===e:Bridge.isDate(t)?t.valueOf()===e.valueOf():n&&null!=t&&Bridge.isFunction(t[r="System$IEquatable$1$"+Bridge.getTypeAlias(n)+"$equalsT"])?t[r](e):n&&null!=e&&Bridge.isFunction(e[r="System$IEquatable$1$"+Bridge.getTypeAlias(n)+"$equalsT"])?e[r](t):t.equalsT?t.equalsT(e):e.equalsT(t);var r},format:function(t,e,n){return Bridge.isNumber(t)?Bridge.Int.format(t,e,n):Bridge.isDate(t)?Bridge.Date.format(t,e,n):Bridge.isFunction(t.System$IFormattable$format)?t.System$IFormattable$format(e,n):t.format(e,n)},getType:function(t){if(null==t)throw new System.NullReferenceException("instance is null");if("number"==typeof t)return!isNaN(t)&&isFinite(t)&&Math.floor(t,0)===t?System.Int32:System.Double;if(t.$getType)return t.$getType();try{return t.constructor}catch(t){return Object}},isLower:function(t){var e=String.fromCharCode(t);return e===e.toLowerCase()&&e!==e.toUpperCase()},isUpper:function(t){var e=String.fromCharCode(t);return e!==e.toLowerCase()&&e===e.toUpperCase()},coalesce:function(t,e){return Bridge.hasValue(t)?t:e},fn:{equals:function(t){return this===t||null!=t&&this.constructor===t.constructor&&this.equals===t.equals&&this.$method===t.$method&&this.$scope===t.$scope},call:function(t,e){var n=Array.prototype.slice.call(arguments,2);return(t=t||Bridge.global)[e].apply(t,n)},makeFn:function(t,e){return function(){return t.apply(this,arguments)}},bind:function(t,e,n,r){var i,o;if(e&&e.$method===e&&e.$scope===t)return e;if(t&&t.$$bind)for(i=0;i<t.$$bind.length;i++)if(t.$$bind[i].$method===e)return t.$$bind[i];return o=2===arguments.length?Bridge.fn.makeFn((function(){Bridge.caller.unshift(this);var n=e.apply(t,arguments);return Bridge.caller.shift(this),n}),e.length):Bridge.fn.makeFn((function(){var i,o=n||arguments;return!0===r?o=(o=Array.prototype.slice.call(arguments,0)).concat(n):"number"==typeof r&&(o=Array.prototype.slice.call(arguments,0),0===r?o.unshift.apply(o,n):r<o.length?o.splice.apply(o,[r,0].concat(n)):o.push.apply(o,n)),Bridge.caller.unshift(this),i=e.apply(t,o),Bridge.caller.shift(this),i}),e.length),t&&(t.$$bind=t.$$bind||[],t.$$bind.push(o)),o.$method=e,o.$scope=t,o.equals=Bridge.fn.equals,o},bindScope:function(t,e){var n=Bridge.fn.makeFn((function(){var n,r=Array.prototype.slice.call(arguments,0);return r.unshift.apply(r,[t]),Bridge.caller.unshift(this),n=e.apply(t,r),Bridge.caller.shift(this),n}),e.length);return n.$method=e,n.$scope=t,n.equals=Bridge.fn.equals,n},$build:function(t){var e=function(){for(var t=e.$invocationList,n=null,r=0;r<t.length;r++)n=t[r].apply(null,arguments);return n};return e.$invocationList=t?Array.prototype.slice.call(t,0):[],0===e.$invocationList.length?null:e},combine:function(t,e){if(!t||!e)return t||e;var n=t.$invocationList?t.$invocationList:[t],r=e.$invocationList?e.$invocationList:[e];return Bridge.fn.$build(n.concat(r))},getInvocationList:function(){},remove:function(t,e){if(!t||!e)return t||null;for(var n,r,i=t.$invocationList?t.$invocationList:[t],o=e.$invocationList?e.$invocationList:[e],s=[],a=i.length-1;a>=0;a--){for(n=!1,r=0;r<o.length;r++)if(i[a]===o[r]||i[a].$method&&i[a].$method===o[r].$method&&i[a].$scope&&i[a].$scope===o[r].$scope){n=!0;break}n||s.push(i[a])}return s.reverse(),Bridge.fn.$build(s)}},sleep:function(t,e){if(Bridge.hasValue(e)&&(t=e.getTotalMilliseconds()),isNaN(t)||t<-1||t>2147483647)throw new System.ArgumentOutOfRangeException("timeout","Number must be either non-negative and less than or equal to Int32.MaxValue or -1");-1==t&&(t=2147483647);for(var n=(new Date).getTime();(new Date).getTime()-n<t&&!((new Date).getTime()-n>2147483647););},getMetadata:function(t){return t.$getMetadata?t.$getMetadata():t.$metadata}};t.Bridge=g,t.Bridge.caller=[],t.System={},t.System.Diagnostics={},t.System.Diagnostics.Contracts={},t.System.Threading={},e={is:function(t,e){return!!Bridge.isString(t)&&(t.constructor===e||t instanceof e||e===System.ICloneable||e===System.Collections.IEnumerable||e===System.Collections.Generic.IEnumerable$1(System.Char)||e===System.IComparable$1(String)||e===System.IEquatable$1(String))},lastIndexOf:function(t,e,n,r){var i=t.lastIndexOf(e,n);return i<n-r+1?-1:i},lastIndexOfAny:function(t,e,n,r){var i,o,s=t.length;if(!s)return-1;for(e=String.fromCharCode.apply(null,e),(i=(n=n||s-1)-(r=r||s)+1)<0&&(i=0),o=n;o>=i;o--)if(e.indexOf(t.charAt(o))>=0)return o;return-1},isNullOrWhiteSpace:function(t){return!t||System.Char.isWhiteSpace(t)},isNullOrEmpty:function(t){return!t},fromCharCount:function(t,e){if(e>=0)return String(Array(e+1).join(String.fromCharCode(t)));throw new System.ArgumentOutOfRangeException("count","cannot be less than zero")},format:function(t){return System.String._format(System.Globalization.CultureInfo.getCurrentCulture(),t,Array.prototype.slice.call(arguments,1))},formatProvider:function(t,e){return System.String._format(t,e,Array.prototype.slice.call(arguments,2))},_format:function(t,e,n){var r=this,i=n,o=this.decodeBraceSequence;return e.replace(/(\{+)((\d+|[a-zA-Z_$]\w+(?:\.[a-zA-Z_$]\w+|\[\d+\])*)(?:\,(-?\d*))?(?:\:([^\}]*))?)(\}+)|(\{+)|(\}+)/g,(function(e,n,s,a,u,l,c,g,h){return g?o(g):h?o(h):n.length%2==0||c.length%2==0?o(n)+s+o(c):o(n,!0)+r.handleElement(t,a,u,l,i)+o(c,!0)}))},handleElement:function(t,e,n,r,i){var o;if((e=parseInt(e,10))>i.length-1)throw new System.FormatException("Input string was not in a correct format.");return null==(o=i[e])&&(o=""),o=r&&Bridge.is(o,System.IFormattable)?Bridge.format(o,r,t):""+o,n&&(n=parseInt(n,10),Bridge.isNumber(n)||(n=null)),System.String.alignString(o.toString(),n)},decodeBraceSequence:function(t,e){return t.substr(0,(t.length+(e?0:1))/2)},alignString:function(t,e,n,r,i){if(!t||!e)return t;if(n||(n=" "),Bridge.isNumber(n)&&(n=String.fromCharCode(n)),r||(r=e<0?1:2),e=Math.abs(e),i&&t.length>e&&(t=t.substring(0,e)),e+1>=t.length)switch(r){case 2:t=Array(e+1-t.length).join(n)+t;break;case 3:var o=e-t.length,s=Math.ceil(o/2);t=Array(o-s+1).join(n)+t+Array(s+1).join(n);break;default:t+=Array(e+1-t.length).join(n)}return t},startsWith:function(t,e){return!e.length||!(e.length>t.length)&&(e=System.String.escape(e),null!==t.match("^"+e))},endsWith:function(t,e){return!e.length||!(e.length>t.length)&&(e=System.String.escape(e),null!==t.match(e+"$"))},contains:function(t,e){if(null==e)throw new System.ArgumentNullException;return null!=t&&t.indexOf(e)>-1},indexOfAny:function(t,e){var n,r,i,o,s,a;if(null==e)throw new System.ArgumentNullException;if(null==t||""===t)return-1;if((n=arguments.length>2?arguments[2]:0)<0)throw new System.ArgumentOutOfRangeException("startIndex","startIndex cannot be less than zero");if((r=arguments.length>3?arguments[3]:t.length-n)<0)throw new System.ArgumentOutOfRangeException("length","must be non-negative");if(r>t.length-n)throw new System.ArgumentOutOfRangeException("Index and length must refer to a location within the string");for(i=t.substr(n,r),o=0;o<e.length;o++)if(s=String.fromCharCode(e[o]),(a=i.indexOf(s))>-1)return a+n;return-1},indexOf:function(t,e){var n,r,i,o;if(null==e)throw new System.ArgumentNullException;if(null==t||""===t)return-1;if((n=arguments.length>2?arguments[2]:0)<0||n>t.length)throw new System.ArgumentOutOfRangeException("startIndex","startIndex cannot be less than zero and must refer to a location within the string");if(""===e)return arguments.length>2?n:0;if((r=arguments.length>3?arguments[3]:t.length-n)<0)throw new System.ArgumentOutOfRangeException("length","must be non-negative");if(r>t.length-n)throw new System.ArgumentOutOfRangeException("Index and length must refer to a location within the string");return i=t.substr(n,r),(o=5===arguments.length&&arguments[4]%2!=0?i.toLocaleUpperCase().indexOf(e.toLocaleUpperCase()):i.indexOf(e))>-1?5===arguments.length?0===System.String.compare(e,i.substr(o,e.length),arguments[4])?o+n:-1:o+n:-1},equals:function(){return 0===System.String.compare.apply(this,arguments)},compare:function(t,e){if(null==t)return null==e?0:-1;if(null==e)return 1;if(arguments.length>=3)if(Bridge.isBoolean(arguments[2])){if(arguments[2]&&(t=t.toLocaleUpperCase(),e=e.toLocaleUpperCase()),4===arguments.length)return t.localeCompare(e,arguments[3].name)}else switch(arguments[2]){case 1:return t.localeCompare(e,System.Globalization.CultureInfo.getCurrentCulture().name,{sensitivity:"accent"});case 2:return t.localeCompare(e,System.Globalization.CultureInfo.invariantCulture.name);case 3:return t.localeCompare(e,System.Globalization.CultureInfo.invariantCulture.name,{sensitivity:"accent"});case 4:return t===e?0:t>e?1:-1;case 5:return t.toUpperCase()===e.toUpperCase()?0:t.toUpperCase()>e.toUpperCase()?1:-1}return t.localeCompare(e)},toCharArray:function(t,e,n){var r,i;if(e<0||e>t.length||e>t.length-n)throw new System.ArgumentOutOfRangeException("startIndex","startIndex cannot be less than zero and must refer to a location within the string");if(n<0)throw new System.ArgumentOutOfRangeException("length","must be non-negative");for(Bridge.hasValue(e)||(e=0),Bridge.hasValue(n)||(n=t.length),r=[],i=e;i<e+n;i++)r.push(t.charCodeAt(i));return r},escape:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},replaceAll:function(t,e,n){var r=new RegExp(System.String.escape(e),"g");return t.replace(r,n)},insert:function(t,e,n){return t>0?e.substring(0,t)+n+e.substring(t,e.length):n+e},remove:function(t,e,n){if(null==t)throw new System.NullReferenceException;if(e<0)throw new System.ArgumentOutOfRangeException("startIndex","StartIndex cannot be less than zero");if(null!=n){if(n<0)throw new System.ArgumentOutOfRangeException("count","Count cannot be less than zero");if(n>t.length-e)throw new System.ArgumentOutOfRangeException("count","Index and count must refer to a location within the string")}else if(e>=t.length)throw new System.ArgumentOutOfRangeException("startIndex","startIndex must be less than length of string");return null==n||e+n>t.length?t.substr(0,e):t.substr(0,e)+t.substr(e+n)},split:function(t,e,n,r){for(var i,o=Bridge.hasValue(e)&&0!==e.length?new RegExp(e.map(System.String.escape).join("|"),"g"):new RegExp("\\s","g"),s=[],a=0;;a=o.lastIndex){if(!(i=o.exec(t)))return(1!==r||a!==t.length)&&s.push(t.substr(a)),s;if(1!==r||i.index>a){if(s.length===n-1)return s.push(t.substr(a)),s;s.push(t.substring(a,i.index))}}},trimEnd:function(t,e){return t.replace(e?new RegExp("["+System.String.escape(String.fromCharCode.apply(null,e))+"]+$"):/\s*$/,"")},trimStart:function(t,e){return t.replace(e?new RegExp("^["+System.String.escape(String.fromCharCode.apply(null,e))+"]+"):/^\s*/,"")},trim:function(t,e){return System.String.trimStart(System.String.trimEnd(t,e),e)},concat:function(){for(var t,e="",n=0;n<arguments.length;n++)e+=null==(t=arguments[n])?"":t;return e}},System.String=e,n={nameEquals:function(t,e,n){return n?t.toLowerCase()===e.toLowerCase():t.charAt(0).toLowerCase()+t.slice(1)===e.charAt(0).toLowerCase()+e.slice(1)},checkEnumType:function(t){if(!t)throw new System.ArgumentNullException("enumType");if(t.prototype&&"enum"!==t.$kind)throw new System.ArgumentException("","enumType")},toName:function(t){return t},parse:function(t,e,r,i){var o,s,a,u,l,c;if(System.Enum.checkEnumType(t),o={},System.Int32.tryParse(e,o))return o.v;if(s=t,t.prototype&&t.prototype.$flags){var g=e.split(","),h=0,m=!0;for(a=g.length-1;a>=0;a--){for(c in u=g[a].trim(),l=!1,s)if(n.nameEquals(c,u,r)){h|=s[c],l=!0;break}if(!l){m=!1;break}}if(m)return h}else for(c in s)if(n.nameEquals(c,e,r))return s[c];if(!0!==i)throw new System.ArgumentException("Invalid Enumeration Value");return null},toString:function(t,e,r){var i,o,s,a;if(t===Number)return e.toString();if(System.Enum.checkEnumType(t),i=t,o=System.Int64.is64Bit(e),(t.prototype&&t.prototype.$flags||!0===r)&&0!==e){for(a in s=[],i)(o&&System.Int64.is64Bit(i[a])?!i[a].and(e).isZero():i[a]&e)&&s.push(n.toName(a));return s.length?s.join(", "):e.toString()}for(a in i)if(o&&System.Int64.is64Bit(i[a])?i[a].eq(e):i[a]===e)return n.toName(a);return e.toString()},getValues:function(t){var e,n,r;for(r in System.Enum.checkEnumType(t),e=[],n=t)n.hasOwnProperty(r)&&r.indexOf("$")<0&&"function"!=typeof n[r]&&e.push(n[r]);return e},format:function(t,e,n){var r;if(System.Enum.checkEnumType(t),!Bridge.hasValue(e)&&(r="value")||!Bridge.hasValue(n)&&(r="format"))throw new System.ArgumentNullException(r);switch(n){case"G":case"g":return System.Enum.toString(t,e);case"x":case"X":return e.toString(16);case"d":case"D":return e.toString();case"f":case"F":return System.Enum.toString(t,e,!0);default:throw new System.FormatException}},getNames:function(t){var e,r,i;for(i in System.Enum.checkEnumType(t),e=[],r=t)r.hasOwnProperty(i)&&i.indexOf("$")<0&&"function"!=typeof r[i]&&e.push(n.toName(i));return e},getName:function(t,e){var n,r;for(r in System.Enum.checkEnumType(t),n=t)if(n[r]===e)return r.charAt(0).toUpperCase()+r.slice(1);return null},hasFlag:function(t,e){return!!(t&e)},isDefined:function(t,e){var r,i,o;for(o in System.Enum.checkEnumType(t),r=t,i=Bridge.isString(e),r)if(i?n.nameEquals(o,e,!1):r[o]===e)return!0;return!1},tryParse:function(t,e,r,i){return r.v=0,r.v=n.parse(t,e,i,!0),null!=r.v}},System.Enum=n;var h=function(t){return t.test(navigator.userAgent.toLowerCase())},m=Bridge.global.document&&"CSS1Compat"===Bridge.global.document.compatMode,f=function(t,e){var n;return t&&(n=e.exec(navigator.userAgent.toLowerCase()))?parseFloat(n[1]):0},d=Bridge.global.document?Bridge.global.document.documentMode:null,y=h(/opera/),p=y&&h(/version\/10\.5/),S=h(/\bchrome\b/),C=h(/webkit/),x=!S&&h(/safari/),v=x&&h(/applewebkit\/4/),w=x&&h(/version\/3/),b=x&&h(/version\/4/),B=x&&h(/version\/5\.0/),I=x&&h(/version\/5/),$=!y&&(h(/msie/)||h(/trident/)),_=$&&(h(/msie 7/)&&8!==d&&9!==d&&10!==d||7===d),E=$&&(h(/msie 8/)&&7!==d&&9!==d&&10!==d||8===d),O=$&&(h(/msie 9/)&&7!==d&&8!==d&&10!==d||9===d),A=$&&(h(/msie 10/)&&7!==d&&8!==d&&9!==d||10===d),T=$&&(h(/trident\/7\.0/)&&7!==d&&8!==d&&9!==d&&10!==d||11===d),L=$&&h(/msie 6/),R=!C&&!$&&h(/gecko/),N=R&&h(/rv:1\.9/),k=R&&h(/rv:2\.0/),D=R&&h(/rv:5\./),P=R&&h(/rv:10\./),M=N&&h(/rv:1\.9\.0/),G=N&&h(/rv:1\.9\.1/),V=N&&h(/rv:1\.9\.2/),F=h(/windows|win32/),z=h(/macintosh|mac os x/),q=h(/linux/),H=f(!0,/\bchrome\/(\d+\.\d+)/),U=f(!0,/\bfirefox\/(\d+\.\d+)/),j=f($,/msie (\d+\.\d+)/),W=f(y,/version\/(\d+\.\d+)/),Z=f(x,/version\/(\d+\.\d+)/),X=f(C,/webkit\/(\d+\.\d+)/),K=!!Bridge.global.location&&/^https/i.test(Bridge.global.location.protocol),Y=/iPhone/i.test(navigator.platform),J=/iPod/i.test(navigator.platform),Q=/iPad/i.test(navigator.userAgent),tt=/Blackberry/i.test(navigator.userAgent),et=/Android/i.test(navigator.userAgent),nt=z||F||q&&!et,rt={isStrict:m,isIEQuirks:$&&!m&&(L||_||E||O),isOpera:y,isOpera10_5:p,isWebKit:C,isChrome:S,isSafari:x,isSafari3:w,isSafari4:b,isSafari5:I,isSafari5_0:B,isSafari2:v,isIE:$,isIE6:L,isIE7:_,isIE7m:L||_,isIE7p:$&&!L,isIE8:E,isIE8m:L||_||E,isIE8p:$&&!(L||_),isIE9:O,isIE9m:L||_||E||O,isIE9p:$&&!(L||_||E),isIE10:A,isIE10m:L||_||E||O||A,isIE10p:$&&!(L||_||E||O),isIE11:T,isIE11m:L||_||E||O||A||T,isIE11p:$&&!(L||_||E||O||A),isGecko:R,isGecko3:N,isGecko4:k,isGecko5:D,isGecko10:P,isFF3_0:M,isFF3_5:G,isFF3_6:V,isFF4:4<=U&&U<5,isFF5:5<=U&&U<6,isFF10:10<=U&&U<11,isLinux:q,isWindows:F,isMac:z,chromeVersion:H,firefoxVersion:U,ieVersion:j,operaVersion:W,safariVersion:Z,webKitVersion:X,isSecure:K,isiPhone:Y,isiPod:J,isiPad:Q,isBlackberry:tt,isAndroid:et,isDesktop:nt,isTablet:Q,isPhone:!nt&&!Q,iOS:Y||Q||J,standalone:!!Bridge.global.navigator&&!!Bridge.global.navigator.standalone};Bridge.Browser=rt,r={_initialize:function(){this.$initialized||(this.$initialized=Bridge.emptyFn,this.$staticInit&&this.$staticInit(),this.$initMembers&&this.$initMembers())},initConfig:function(t,e,n,r,i,o){var s,a,u,l;if(n.fields)for(a in n.fields)i[a]=n.fields[a];if(n.properties)for(a in n.properties)Bridge.property(i,a,n.properties[a],r);if(n.events)for(a in n.events)Bridge.event(i,a,n.events[a],r);if(n.alias)for(u=0;u<n.alias.length;u++)void 0===(l=i[n.alias[u]])&&o&&(l=o[n.alias[u]]),i[n.alias[u+1]]=l,u++;n.init&&(s=n.init),(s||t&&!r&&e.$initMembers)&&(i.$initMembers=function(){t&&!r&&e.$initMembers&&e.$initMembers.call(this),s&&s.call(this)})},definei:function(t,e,n){!0!==n&&n||!e?n?n.$kind="interface":e={$kind:"interface"}:e.$kind="interface";var r=Bridge.define(t,e,n);return r.$kind="interface",r.$isInterface=!0,r},define:function(t,e,n,r){var i,o,s,a,u,l,c,g,h,m,f,d,y,p=!1;if(!0===n?(p=!0,n=e,e=Bridge.global):n||(n=e,e=Bridge.global),Bridge.isFunction(n))return i=function(){var e,r,o,s;return(r=Bridge.Class.getCachedType(i,arguments))?r.type:(e=Array.prototype.slice.call(arguments),o=n.apply(null,e),s=Bridge.define(Bridge.Class.genericName(t,e),o,!0,{fn:i,args:e}),Bridge.Class.staticInitAllow||Bridge.Class.$queue.push(s),Bridge.get(s))},i.$cache=[],Bridge.Class.generic(t,e,i,n.length);p||(Bridge.Class.staticInitAllow=!1);var S,C,x,v,w,b,B,I=(n=n||{}).$inherits||n.inherits,$=n.$statics||n.statics,_=n.$entryPoint,E=n.$scope||e||Bridge.global;if(n.$kind=n.$kind||"class",n.$inherits?delete n.$inherits:delete n.inherits,_&&delete n.$entryPoint,Bridge.isFunction($)?$=null:n.$statics?delete n.$statics:delete n.statics,(s=n.hasOwnProperty("ctor")&&n.ctor)?o=s:(o=n.$literal?function(t){return(t=t||{}).$getType=function(){return o},t}:function(){this.$initialize(),o.$base&&(o.$$inherits&&o.$$inherits.length>0&&o.$$inherits[0].$staticInit&&o.$$inherits[0].$staticInit(),o.$base.ctor.call(this))},n.ctor=o),n.$literal&&($&&$.getDefaultValue||(o.getDefaultValue=function(){return{$getType:function(){return o}}}),o.$literal=!0,delete n.$literal),p||(E=Bridge.Class.set(E,t,o)),r&&r.fn.$cache.push({type:o,args:r.args}),o.$$name=t,o.$kind=n.$kind,r&&p){for(o.$genericTypeDefinition=r.fn,o.$typeArguments=r.args,o.$assembly=r.fn.$assembly||Bridge.$currentAssembly,a=Bridge.Reflection.getTypeFullName(r.fn),x=0;x<r.args.length;x++)a+=(0===x?"[":",")+"["+Bridge.Reflection.getTypeQName(r.args[x])+"]";a+="]",o.$$fullname=a}else o.$$fullname=o.$$name;if(I&&Bridge.isFunction(I)&&(I=I()),u=[],l=[],I)for(c=0;c<I.length;c++){if((h=((g=I[c]).$interfaces||[]).concat(g.$baseInterfaces||[])).length>0)for(m=0;m<h.length;m++)l.indexOf(h[m])<0&&l.push(h[m]);"interface"===g.$kind&&u.push(g)}for(B in o.$baseInterfaces=l,o.$interfaces=u,o.$allInterfaces=u.concat(l),(!I||"interface"===I[0].$kind)&&(I=null),S=I?I[0].prototype:this.prototype,o.$base=S,C=I?I[0].$$initCtor?new I[0].$$initCtor:new I[0]:{},o.$$initCtor=function(){},o.$$initCtor.prototype=C,o.$$initCtor.prototype.constructor=o,o.$$initCtor.prototype.$$fullname=r&&p?o.$$fullname:o.$$name,$&&(f=$.$config||$.config)&&!Bridge.isFunction(f)&&(Bridge.Class.initConfig(I,S,f,!0,o),$.$config?delete $.$config:delete $.config),(d=n.$config||n.config)&&!Bridge.isFunction(d)?(Bridge.Class.initConfig(I,S,d,!1,n,C),n.$config?delete n.$config:delete n.config):I&&S.$initMembers&&(n.$initMembers=function(){S.$initMembers.call(this)}),n.$initialize=Bridge.Class._initialize,y=[],n)y.push(B);for(x=0;x<y.length;x++)B=y[x],v=n[B],w="ctor"===B,b=B,Bridge.isFunction(v)&&(w||null!==B.match("^\\$ctor"))&&(w=!0),w?(o[b]=n[B],o[b].prototype=C,o[b].prototype.constructor=o,C[b]=n[B]):C[b]=n[B];if(C.$$name=t,$)for(B in $)"ctor"===B?o.$ctor=$[B]:o[B]=$[B];for(I||(I=[Object].concat(u)),o.$$inherits=I,x=0;x<I.length;x++)(E=I[x]).$$inheritors||(E.$$inheritors=[]),E.$$inheritors.push(o);return i=function(){Bridge.Class.staticInitAllow&&(o.$staticInit=null,o.$initMembers&&o.$initMembers(),o.$ctor&&o.$ctor())},(_||Bridge.isFunction(C.$main))&&Bridge.Class.$queueEntry.push(o),o.$staticInit=i,p||Bridge.Class.registerType(t,o),Bridge.Reflection&&(o.$getMetadata=Bridge.Reflection.getMetadata),"enum"===o.$kind&&(o.$is=function(t){var e=o.prototype.$utype;return e===System.String?"string"==typeof t:e&&e.$is?e.$is(t):"number"==typeof t},o.getDefaultValue=function(){return o.prototype.$utype===System.String?null:0}),"interface"===o.$kind&&(o.prototype.$variance&&(o.isAssignableFrom=Bridge.Class.varianceAssignable),o.$isInterface=!0),o},varianceAssignable:function(t){var e,n,r=function(t,e){var n;if(e.$genericTypeDefinition===t.$genericTypeDefinition&&e.$typeArguments.length===t.$typeArguments.length){for(n=0;n<t.$typeArguments.length;n++){var r=t.prototype.$variance[n],i=t.$typeArguments[n],o=e.$typeArguments[n];switch(r){case 1:if(!Bridge.Reflection.isAssignableFrom(i,o))return!1;break;case 2:if(!Bridge.Reflection.isAssignableFrom(o,i))return!1;break;default:if(o!==i)return!1}}return!0}return!1};if("interface"===t.$kind&&r(this,t))return!0;for(e=Bridge.Reflection.getInterfaces(t),n=0;n<e.length;n++)if(e[n]===this||r(this,e[n]))return!0;return!1},registerType:function(t,e){Bridge.$currentAssembly&&(Bridge.$currentAssembly.$types[t]=e,e.$assembly=Bridge.$currentAssembly)},addExtend:function(t,e){var n,r,i,o;for(Array.prototype.push.apply(t.$$inherits,e),t.$interfaces=t.$interfaces||[],t.$baseInterfaces=t.$baseInterfaces||[],n=0;n<e.length;n++){if((r=e[n]).$$inheritors||(r.$$inheritors=[]),r.$$inheritors.push(t),(i=(r.$interfaces||[]).concat(r.$baseInterfaces||[])).length>0)for(o=0;o<i.length;o++)t.$baseInterfaces.indexOf(i[o])<0&&t.$baseInterfaces.push(i[o]);"interface"===r.$kind&&t.$interfaces.push(r)}t.$allInterfaces=t.$interfaces.concat(t.$baseInterfaces)},set:function(t,e,n,r){for(var i,o,s,a,u=e.split("."),l=0;l<u.length-1;l++)void 0===t[u[l]]&&(t[u[l]]={}),t=t[u[l]];if(s=t[i=u[u.length-1]]){if(s.$$name===e)throw"Class '"+e+"' is already defined";for(o in s)"function"==typeof(a=s[o])&&a.$$name&&function(t,e,n){Object.defineProperty(t,e,{get:function(){return Bridge.Class.staticInitAllow&&(n.$staticInit&&n.$staticInit(),Bridge.Class.defineProperty(t,e,n)),n},set:function(t){n=t},enumerable:!0,configurable:!0})}(n,o,a)}return!0!==r?function(t,e,n){Object.defineProperty(t,e,{get:function(){return Bridge.Class.staticInitAllow&&(n.$staticInit&&n.$staticInit(),Bridge.Class.defineProperty(t,e,n)),n},set:function(t){n=t},enumerable:!0,configurable:!0})}(t,i,n):t[i]=n,t},defineProperty:function(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0})},genericName:function(t,e){for(var n,r=t,i=0;i<e.length;i++)r+="$"+((n=e[i]).$$name||Bridge.getTypeName(n));return r},getCachedType:function(t,e){for(var n,r,i,o=t.$cache,s=o.length,a=0;a<s;a++)if((n=o[a]).args.length===e.length){for(r=!0,i=0;i<n.args.length;i++)if(n.args[i]!==e[i]){r=!1;break}if(r)return n}return null},generic:function(t,e,n,r){return n.$$name=t,n.$kind="class",Bridge.Class.set(e,t,n,!0),Bridge.Class.registerType(t,n),n.$typeArgumentCount=r,n.$isGenericTypeDefinition=!0,n.$getMetadata=Bridge.Reflection.getMetadata,n},init:function(t){var e,n,r;for(Bridge.Class.staticInitAllow=!0,e=Bridge.Class.$queue.concat(Bridge.Class.$queueEntry),n=0;n<e.length;n++)(r=e[n]).$staticInit&&r.$staticInit(),r.prototype.$main&&Bridge.ready(r.prototype.$main);Bridge.Class.$queue.length=0,Bridge.Class.$queueEntry.length=0,t&&t()}},Bridge.Class=r,Bridge.Class.$queue=[],Bridge.Class.$queueEntry=[],Bridge.define=Bridge.Class.define,Bridge.definei=Bridge.Class.definei,Bridge.init=Bridge.Class.init,Bridge.assembly=function(t,e,n){n||(n=e,e={}),t=t||"Bridge.$Unknown";var r=System.Reflection.Assembly.assemblies[t];r?Bridge.apply(r.res,e||{}):r=new System.Reflection.Assembly(t,e),Bridge.$currentAssembly=r,n&&n.call(Bridge.global,r,Bridge.global),Bridge.init()},Bridge.define("System.Reflection.Assembly",{statics:{assemblies:{}},ctor:function(t,e){this.$initialize(),this.name=t,this.res=e||{},this.$types={},this.$={},System.Reflection.Assembly.assemblies[t]=this},toString:function(){return this.name},getManifestResourceNames:function(){return Object.keys(this.res)},getManifestResourceDataAsBase64:function(t,e){return 1===arguments.length&&(e=t,t=null),t&&(e=Bridge.Reflection.getTypeNamespace(t)+"."+e),this.res[e]||null},getManifestResourceData:function(t,e){1===arguments.length&&(e=t,t=null),t&&(e=Bridge.Reflection.getTypeNamespace(t)+"."+e);var n=this.res[e];return n?System.Convert.fromBase64String(n):null},getCustomAttributes:function(t){return t&&!Bridge.isBoolean(t)?this.attr.filter((function(e){return Bridge.is(e,t)})):this.attr}}),Bridge.$currentAssembly=new System.Reflection.Assembly("mscorlib"),Bridge.SystemAssembly=Bridge.$currentAssembly,Bridge.SystemAssembly.$types["System.Reflection.Assembly"]=System.Reflection.Assembly,System.Reflection.Assembly.$assembly=Bridge.SystemAssembly,i=Bridge.$currentAssembly,Bridge.SystemAssembly.version="15.6.0",Bridge.SystemAssembly.compiler="15.6.0",Bridge.define("Bridge.Utils.SystemAssemblyVersion"),Bridge.Reflection={setMetadata:function(t,e){t.$getMetadata=Bridge.Reflection.getMetadata,t.$metadata=e},initMetaData:function(t,e){var n,r;if(e.m)for(n=0;n<e.m.length;n++)(r=e.m[n]).td=t,r.ad&&(r.ad.td=t),r.r&&(r.r.td=t),r.g&&(r.g.td=t),r.s&&(r.s.td=t);t.$metadata=e,t.$initMetaData=!0},getMetadata:function(){var t,e,n,r;if(!this.$metadata&&this.$genericTypeDefinition&&(this.$metadata=this.$genericTypeDefinition.$factoryMetadata||this.$genericTypeDefinition.$metadata),"function"==typeof(t=this.$metadata))if(this.$isGenericTypeDefinition){for(n=this.$typeArgumentCount,r=new Array(n),e=0;e<n;e++)r[e]=Object;this.$factoryMetadata=this.$metadata,t=this.$metadata.apply(null,r)}else t=this.$typeArguments?this.$metadata.apply(null,this.$typeArguments):this.$metadata();return!this.$initMetaData&&t&&Bridge.Reflection.initMetaData(this,t),t},load:function(t){return System.Reflection.Assembly.assemblies[t]||require(t)},getGenericTypeDefinition:function(t){if(t.$isGenericTypeDefinition)return t;if(!t.$genericTypeDefinition)throw new System.InvalidOperationException("This operation is only valid on generic types.");return t.$genericTypeDefinition},getGenericParameterCount:function(t){return t.$typeArgumentCount||0},getGenericArguments:function(t){return t.$typeArguments||null},isGenericTypeDefinition:function(t){return t.$isGenericTypeDefinition||!1},getBaseType:function(t){var e,n;if(t===Object||"interface"===t.$kind||null==t.prototype)return null;if(Object.getPrototypeOf)return Object.getPrototypeOf(t.prototype).constructor;if(e=t.prototype,Object.prototype.hasOwnProperty.call(e,"constructor"))try{return n=e.constructor,delete e.constructor,e.constructor}finally{e.constructor=n}return e.constructor},getTypeFullName:function(t){var e,n;return t.$$fullname?t.$$fullname:t.$$name?t.$$name:(e=t.constructor===Function?t.toString():t.constructor.toString(),(n=/function (.{1,})\(/.exec(e))&&n.length>1?n[1]:"Object")},_makeQName:function(t,e){return t+(e?", "+e.name:"")},getTypeQName:function(t){return Bridge.Reflection._makeQName(Bridge.Reflection.getTypeFullName(t),t.$assembly)},getTypeName:function(t){var e=Bridge.Reflection.getTypeFullName(t),n=e.indexOf("["),r=e.lastIndexOf(".",n>=0?n:e.length);return r>0?e.substr(r+1):e},getTypeNamespace:function(t){var e,n=Bridge.Reflection.getTypeFullName(t),r=n.indexOf("["),i=n.lastIndexOf(".",r>=0?r:n.length),o=i>0?n.substr(0,i):"";return t.$assembly&&(e=Bridge.Reflection._getAssemblyType(t.$assembly,o))&&(o=Bridge.Reflection.getTypeNamespace(e)),o},getTypeAssembly:function(t){return System.Array.contains([Date,Number,Boolean,String,Function,Array],t)?Bridge.SystemAssembly:t.$assembly||Bridge.SystemAssembly},_getAssemblyType:function(t,e){var n,r,i,o,s=!1;if(t||(t=Bridge.SystemAssembly,s=!0),t.$types){if(n=t.$types[e]||null)return n;if("mscorlib"!==t.name)return null;t=Bridge.global}for(r=e.split("."),i=t,o=0;o<r.length;o++)if(!(i=i[r[o]]))return null;return"function"!=typeof i||!s&&i.$assembly&&t.name!==i.$assembly.name?null:i},getAssemblyTypes:function(t){var e,n,r=[];if(t.$types)for(e in t.$types)t.$types.hasOwnProperty(e)&&r.push(t.$types[e]);else n=function(t,e){for(var i in t)t.hasOwnProperty(i)&&n(t[i],i);"function"==typeof t&&Bridge.isUpper(e.charCodeAt(0))&&r.push(t)},n(t,"");return r},createAssemblyInstance:function(t,e){var n=Bridge.Reflection.getType(e,t);return n?Bridge.createInstance(n):null},getInterfaces:function(t){return t.$allInterfaces?t.$allInterfaces:t===Date?[System.IComparable$1(Date),System.IEquatable$1(Date),System.IComparable,System.IFormattable]:t===Number?[System.IComparable$1(Bridge.Int),System.IEquatable$1(Bridge.Int),System.IComparable,System.IFormattable]:t===Boolean?[System.IComparable$1(Boolean),System.IEquatable$1(Boolean),System.IComparable]:t===String?[System.IComparable$1(String),System.IEquatable$1(String),System.IComparable,System.ICloneable,System.Collections.IEnumerable,System.Collections.Generic.IEnumerable$1(System.Char)]:t===Array||System.Array._typedArrays[Bridge.getTypeName(t)]?[System.Collections.IEnumerable,System.Collections.ICollection,System.ICloneable,System.Collections.Generic.IEnumerable$1(Object),System.Collections.Generic.ICollection$1(Object),System.Collections.Generic.IList$1(Object)]:[]},isInstanceOfType:function(t,e){return Bridge.is(t,e)},isAssignableFrom:function(t,e){if(null==t)throw new System.NullReferenceException;if(null==e)return!1;if(t===e||t===Object)return!0;if(Bridge.isFunction(t.isAssignableFrom))return t.isAssignableFrom(e);if(e===Array)return System.Array.is([],t);if(Bridge.Reflection.isInterface(t)&&System.Array.contains(Bridge.Reflection.getInterfaces(e),t))return!0;var n,r=e.$$inherits;if(r)for(n=0;n<r.length;n++)if(Bridge.Reflection.isAssignableFrom(t,r[n]))return!0;return!1},isClass:function(t){return"class"===t.$kind||t===Array||t===Function||t===RegExp||t===String||t===Error||t===Object},isEnum:function(t){return"enum"===t.$kind},isFlags:function(t){return!(!t.prototype||!t.prototype.$flags)},isInterface:function(t){return"interface"===t.$kind},_getType:function(t,e,n){var r,i,o=!n,s=(n=n||/[[,\]]/g).lastIndex,a=n.exec(t),u=[];if(a)switch(r=t.substring(s,a.index),a[0]){case"[":if("["!==t[a.index+1])return null;for(;;){if(n.exec(t),!(i=Bridge.Reflection._getType(t,Bridge.SystemAssembly,n)))return null;if(u.push(i),"]"===(a=n.exec(t))[0])break;if(","!==a[0])return null}if((a=n.exec(t))&&","===a[0]&&(n.exec(t),!(e=System.Reflection.Assembly.assemblies[(n.lastIndex>0?t.substring(a.index+1,n.lastIndex-1):t.substring(a.index+1)).trim()])))return null;break;case",":if(n.exec(t),!(e=System.Reflection.Assembly.assemblies[(n.lastIndex>0?t.substring(a.index+1,n.lastIndex-1):t.substring(a.index+1)).trim()]))return null}else r=t.substring(s);return o&&n.lastIndex?null:(i=Bridge.Reflection._getAssemblyType(e,r.trim()),(i=u.length?i.apply(null,u):i)&&i.$staticInit&&i.$staticInit(),i)},getType:function(t,e){return t?Bridge.Reflection._getType(t,e):null},canAcceptNull:function(t){return"struct"!==t.$kind&&t!==System.Decimal&&t!==System.Int64&&t!==System.UInt64&&t!==System.Double&&t!==System.Single&&t!==System.Byte&&t!==System.SByte&&t!==System.Int16&&t!==System.UInt16&&t!==System.Int32&&t!==System.UInt32&&t!==Bridge.Int&&t!==Boolean&&t!==Date&&t!==Number},applyConstructor:function(t,e){var n,r,i,o,s,a,u,l,c,g;if(!e||0===e.length)return new t;if(t.$$initCtor&&"anonymous"!==t.$kind){if(n=0,Bridge.getMetadata(t)){for(r=Bridge.Reflection.getMembers(t,1,28),o=0;o<r.length;o++)if((s=r[o]).p&&s.p.length===e.length){for(i=!0,a=0;a<s.p.length;a++)if(u=s.p[a],!Bridge.is(e[a],u)||null==e[a]&&!Bridge.Reflection.canAcceptNull(u)){i=!1;break}i&&(t=t[s.sn],n++)}}else if(Bridge.isFunction(t.ctor)&&t.ctor.length===e.length)t=t.ctor;else for(l="$ctor",c=1;Bridge.isFunction(t[l+c]);)t[l+c].length===e.length&&(t=t[l+c],n++),c++;if(n>1)throw new System.Exception("The ambiguous constructor call")}return(g=function(){t.apply(this,e)}).prototype=t.prototype,new g},getAttributes:function(t,e,n){var r,i,o,s,a,u,l,c=[];if(n&&(u=Bridge.Reflection.getBaseType(t)))for(o=Bridge.Reflection.getAttributes(u,e,!0),r=0;r<o.length;r++)i=Bridge.getType(o[r]),(s=Bridge.getMetadata(i))&&s.ni||c.push(o[r]);if((a=Bridge.getMetadata(t))&&a.at)for(r=0;r<a.at.length;r++)if(o=a.at[r],null==e||Bridge.Reflection.isInstanceOfType(o,e)){if(i=Bridge.getType(o),!(s=Bridge.getMetadata(i))||!s.am)for(l=c.length-1;l>=0;l--)Bridge.Reflection.isInstanceOfType(c[l],i)&&c.splice(l,1);c.push(o)}return c},getMembers:function(t,e,n,r,i){var o,s,a,u,l,c,g,h,m,f=[];if((72==(72&n)||4==(6&n))&&(o=Bridge.Reflection.getBaseType(t))&&(f=Bridge.Reflection.getMembers(o,-2&e,n&(64&n?255:247)&(2&n?251:255),r,i)),s=function(t){if(e&t.t&&(4&n&&!t.is||8&n&&t.is)&&(!r||t.n===r)){if(i){if((t.p||[]).length!==i.length)return;for(var o=0;o<i.length;o++)if(i[o]!==t.p[o])return}f.push(t)}},(a=Bridge.getMetadata(t))&&a.m)for(u=["g","s","ad","r"],m=0;m<a.m.length;m++)for(s(l=a.m[m]),c=0;c<4;c++)l[g=u[c]]&&s(l[g]);if(256&n){for(;t;){for(h=[],m=0;m<f.length;m++)f[m].td===t&&h.push(f[m]);if(h.length>1)throw new System.Reflection.AmbiguousMatchException("Ambiguous match");if(1===h.length)return h[0];t=Bridge.Reflection.getBaseType(t)}return null}return f},midel:function(t,e,n){var r,i,o,s;if(t.is&&e)throw new System.ArgumentException("Cannot specify target for static method");if(!t.is&&!e)throw new System.ArgumentException("Must specify target for instance method");if(t.fg)r=function(){return(t.is?t.td:this)[t.fg]};else if(t.fs)r=function(e){(t.is?t.td:this)[t.fs]=e};else{if(r=t.def||(t.is||t.sm?t.td[t.sn]:e[t.sn]),t.tpc){if(!n||n.length!==t.tpc)throw new System.ArgumentException("Wrong number of type arguments");i=r,r=function(){return i.apply(this,n.concat(Array.prototype.slice.call(arguments)))}}else if(n&&n.length)throw new System.ArgumentException("Cannot specify type arguments for non-generic method");t.exp&&(o=r,r=function(){return o.apply(this,Array.prototype.slice.call(arguments,0,arguments.length-1).concat(arguments[arguments.length-1]))}),t.sm&&(s=r,r=function(){return s.apply(null,[this].concat(Array.prototype.slice.call(arguments)))})}return Bridge.fn.bind(e,r)},invokeCI:function(t,e){return t.exp&&(e=e.slice(0,e.length-1).concat(e[e.length-1])),t.def?t.def.apply(null,e):t.sm?t.td[t.sn].apply(null,e):Bridge.Reflection.applyConstructor(t.sn?t.td[t.sn]:t.td,e)},fieldAccess:function(t,e){if(t.is&&e)throw new System.ArgumentException("Cannot specify target for static field");if(!t.is&&!e)throw new System.ArgumentException("Must specify target for instance field");if(e=t.is?t.td:e,3!==arguments.length)return e[t.sn];e[t.sn]=arguments[2]}},Bridge.setMetadata=Bridge.Reflection.setMetadata,System.Reflection.ConstructorInfo={$is:function(t){return null!=t&&1===t.t}},System.Reflection.EventInfo={$is:function(t){return null!=t&&2===t.t}},System.Reflection.FieldInfo={$is:function(t){return null!=t&&4===t.t}},System.Reflection.MethodBase={$is:function(t){return null!=t&&(1===t.t||8===t.t)}},System.Reflection.MethodInfo={$is:function(t){return null!=t&&8===t.t}},System.Reflection.PropertyInfo={$is:function(t){return null!=t&&16===t.t}},System.AppDomain={getAssemblies:function(){return Object.keys(System.Reflection.Assembly.assemblies).map((function(t){return System.Reflection.Assembly.assemblies[t]}))}},Bridge.define("System.IFormattable",{$kind:"interface",statics:{$is:function(t){return!(!Bridge.isNumber(t)&&!Bridge.isDate(t))||Bridge.is(t,System.IFormattable,!0)}}}),Bridge.define("System.IComparable",{$kind:"interface",statics:{$is:function(t){return!!(Bridge.isNumber(t)||Bridge.isDate(t)||Bridge.isBoolean(t)||Bridge.isString(t))||Bridge.is(t,System.IComparable,!0)}}}),Bridge.define("System.IFormatProvider",{$kind:"interface"}),Bridge.define("System.ICloneable",{$kind:"interface"}),Bridge.define("System.IComparable$1",(function(t){return{$kind:"interface",statics:{$is:function(e){return!!(Bridge.isNumber(e)&&t.$number&&t.$is(e)||Bridge.isDate(e)&&t===Date||Bridge.isBoolean(e)&&t===Boolean||Bridge.isString(e)&&t===String)||Bridge.is(e,System.IComparable$1(t),!0)}}}})),Bridge.define("System.IEquatable$1",(function(t){return{$kind:"interface",statics:{$is:function(e){return!!(Bridge.isNumber(e)&&t.$number&&t.$is(e)||Bridge.isDate(e)&&t===Date||Bridge.isBoolean(e)&&t===Boolean||Bridge.isString(e)&&t===String)||Bridge.is(e,System.IEquatable$1(t),!0)}}}})),Bridge.define("Bridge.IPromise",{$kind:"interface"}),Bridge.define("System.IDisposable",{$kind:"interface"}),o={hasValue:Bridge.hasValue,getValue:function(t){if(!Bridge.hasValue(t))throw new System.InvalidOperationException("Nullable instance doesn't have a value.");return t},getValueOrDefault:function(t,e){return Bridge.hasValue(t)?t:e},add:function(t,e){return Bridge.hasValue$1(t,e)?t+e:null},band:function(t,e){return Bridge.hasValue$1(t,e)?t&e:null},bor:function(t,e){return Bridge.hasValue$1(t,e)?t|e:null},and:function(