Mini Kabibi Habibi

Current Path : C:/Program Files/Microsoft Office/root/Office16/
Upload File :
Current File : C:/Program Files/Microsoft Office/root/Office16/amRenderer.js

(()=>{var e={189:e=>{var t=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=39)}([function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(5),t),r(n(19),t),r(n(20),t),r(n(22),t),r(n(3),t),r(n(10),t),r(n(4),t),r(n(6),t),r(n(8),t),r(n(47),t),r(n(23),t),r(n(48),t)},function(e,t,n){"use strict";var i=Object.prototype.hasOwnProperty;function r(e,t){return i.call(e,t)}function o(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function s(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var a=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=new RegExp(a.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(25),p=/[&<>"]/,d=/[&<>"]/g,h={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function g(e){return h[e]}var f=/[.?*+^$[\]\\(){}|-]/g,m=n(13);t.lib={},t.lib.mdurl=n(26),t.lib.ucmicro=n(64),t.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=r,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(a,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(l,(function(e,t,n){return t||function(e,t){var n=0;return r(u,t)?u[t]:35===t.charCodeAt(0)&&c.test(t)&&o(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?s(n):e}(e,n)}))},t.isValidEntityCode=o,t.fromCodePoint=s,t.escapeHtml=function(e){return p.test(e)?e.replace(d,g):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return m.test(e)},t.escapeRE=function(e){return e.replace(f,"\\$&")},t.normalizeReference=function(e){return e.trim().replace(/\s+/g," ").toUpperCase()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AmContentIdAndroid=t.AmContentId=t.AmWrapperId=t.OriginatorImageParamKey=t.InvokeAddinActionType=t.MoreActionType=t.DisplayMessageFormActionType=t.DisplayAppointmentFormActionType=t.DefaultErrorMessage=t.AdaptiveCardV2MessageType=t.DefaultPlaceHolderTextForTimeInput=t.DefaultPlaceHolderTextForTextInput=t.DefaultPlaceHolderTextForNumberInput=t.DefaultPlaceHolderTextForChoiceSetInput=t.DefaultPlaceholderTextForTimeInput=t.DefaultPlaceholderTextForDateInput=t.ExecuteActionType=t.SelectedTimeProperty=t.SelectedDateWithTimeZoneProperty=t.SelectedDateProperty=t.HeightProperty=t.MessageIdProperty=t.UrlProperty=t.CustomHostConfigStyleId=t.SuccessStatusMessage=t.FailureStatusMessage=t.DefaultConnectorSenderGuid=void 0,t.DefaultConnectorSenderGuid="00000000-0000-0000-0000-000000000000",t.FailureStatusMessage="Something went wrong. Please try again later.",t.SuccessStatusMessage="The action completed successfully.",t.CustomHostConfigStyleId="customHostConfigStyle",t.UrlProperty="url",t.MessageIdProperty="messageId",t.HeightProperty="height",t.SelectedDateProperty="selectedDate",t.SelectedDateWithTimeZoneProperty="selectedDateWithTimeZone",t.SelectedTimeProperty="selectedTime",t.ExecuteActionType="Action.Execute",t.DefaultPlaceholderTextForDateInput="Select a date",t.DefaultPlaceholderTextForTimeInput="Select a time",t.DefaultPlaceHolderTextForChoiceSetInput="Select an option",t.DefaultPlaceHolderTextForNumberInput="Enter a number",t.DefaultPlaceHolderTextForTextInput="Type here",t.DefaultPlaceHolderTextForTimeInput="Choose a Time",t.AdaptiveCardV2MessageType="adaptiveCardV2",t.DefaultErrorMessage="Required Value",t.DisplayAppointmentFormActionType="Action.DisplayAppointmentForm",t.DisplayMessageFormActionType="Action.DisplayMessageForm",t.MoreActionType="Action.More",t.InvokeAddinActionType="Action.InvokeAddInCommand",t.OriginatorImageParamKey="originator",t.AmWrapperId="amContentWrapper",t.AmContentId="actionable-message",t.AmContentIdAndroid="androidContainer"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=t.RefreshMode=t.ContainerFitStatus=t.ValidationEvent=t.ValidationPhase=t.TextStyles=t.ContainerStyle=t.InputTextStyle=t.ActionIconPlacement=t.FillMode=t.Orientation=t.ShowCardActionMode=t.ImageStyle=t.ActionAlignment=t.VerticalAlignment=t.HorizontalAlignment=t.TextColor=t.Spacing=t.FontType=t.TextWeight=t.TextSize=t.SizeUnit=t.ImageSize=t.Size=t.ActionMode=t.ActionStyle=void 0;var i=function(){function e(){}return e.Default="default",e.Positive="positive",e.Destructive="destructive",e}();t.ActionStyle=i;var r=function(){function e(){}return e.Primary="primary",e.Secondary="secondary",e}();t.ActionMode=r,function(e){e[e.Auto=0]="Auto",e[e.Stretch=1]="Stretch",e[e.Small=2]="Small",e[e.Medium=3]="Medium",e[e.Large=4]="Large"}(t.Size||(t.Size={})),function(e){e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Large=2]="Large"}(t.ImageSize||(t.ImageSize={})),function(e){e[e.Weight=0]="Weight",e[e.Pixel=1]="Pixel"}(t.SizeUnit||(t.SizeUnit={})),function(e){e[e.Small=0]="Small",e[e.Default=1]="Default",e[e.Medium=2]="Medium",e[e.Large=3]="Large",e[e.ExtraLarge=4]="ExtraLarge"}(t.TextSize||(t.TextSize={})),function(e){e[e.Lighter=0]="Lighter",e[e.Default=1]="Default",e[e.Bolder=2]="Bolder"}(t.TextWeight||(t.TextWeight={})),function(e){e[e.Default=0]="Default",e[e.Monospace=1]="Monospace"}(t.FontType||(t.FontType={})),function(e){e[e.None=0]="None",e[e.Small=1]="Small",e[e.Default=2]="Default",e[e.Medium=3]="Medium",e[e.Large=4]="Large",e[e.ExtraLarge=5]="ExtraLarge",e[e.Padding=6]="Padding"}(t.Spacing||(t.Spacing={})),function(e){e[e.Default=0]="Default",e[e.Dark=1]="Dark",e[e.Light=2]="Light",e[e.Accent=3]="Accent",e[e.Good=4]="Good",e[e.Warning=5]="Warning",e[e.Attention=6]="Attention"}(t.TextColor||(t.TextColor={})),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(t.HorizontalAlignment||(t.HorizontalAlignment={})),function(e){e[e.Top=0]="Top",e[e.Center=1]="Center",e[e.Bottom=2]="Bottom"}(t.VerticalAlignment||(t.VerticalAlignment={})),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right",e[e.Stretch=3]="Stretch"}(t.ActionAlignment||(t.ActionAlignment={})),function(e){e[e.Default=0]="Default",e[e.Person=1]="Person"}(t.ImageStyle||(t.ImageStyle={})),function(e){e[e.Inline=0]="Inline",e[e.Popup=1]="Popup"}(t.ShowCardActionMode||(t.ShowCardActionMode={})),function(e){e[e.Horizontal=0]="Horizontal",e[e.Vertical=1]="Vertical"}(t.Orientation||(t.Orientation={})),function(e){e[e.Cover=0]="Cover",e[e.RepeatHorizontally=1]="RepeatHorizontally",e[e.RepeatVertically=2]="RepeatVertically",e[e.Repeat=3]="Repeat"}(t.FillMode||(t.FillMode={})),function(e){e[e.LeftOfTitle=0]="LeftOfTitle",e[e.AboveTitle=1]="AboveTitle"}(t.ActionIconPlacement||(t.ActionIconPlacement={})),function(e){e[e.Text=0]="Text",e[e.Tel=1]="Tel",e[e.Url=2]="Url",e[e.Email=3]="Email"}(t.InputTextStyle||(t.InputTextStyle={}));var o=function(){function e(){}return e.Default="default",e.Emphasis="emphasis",e.Accent="accent",e.Good="good",e.Attention="attention",e.Warning="warning",e}();t.ContainerStyle=o;var s=function(){function e(){}return e.Default="default",e.Heading="heading",e}();t.TextStyles=s,function(e){e[e.Parse=0]="Parse",e[e.ToJSON=1]="ToJSON",e[e.Validation=2]="Validation"}(t.ValidationPhase||(t.ValidationPhase={})),function(e){e[e.Hint=0]="Hint",e[e.ActionTypeNotAllowed=1]="ActionTypeNotAllowed",e[e.CollectionCantBeEmpty=2]="CollectionCantBeEmpty",e[e.Deprecated=3]="Deprecated",e[e.ElementTypeNotAllowed=4]="ElementTypeNotAllowed",e[e.InteractivityNotAllowed=5]="InteractivityNotAllowed",e[e.InvalidPropertyValue=6]="InvalidPropertyValue",e[e.MissingCardType=7]="MissingCardType",e[e.PropertyCantBeNull=8]="PropertyCantBeNull",e[e.TooManyActions=9]="TooManyActions",e[e.UnknownActionType=10]="UnknownActionType",e[e.UnknownElementType=11]="UnknownElementType",e[e.UnsupportedCardVersion=12]="UnsupportedCardVersion",e[e.DuplicateId=13]="DuplicateId",e[e.UnsupportedProperty=14]="UnsupportedProperty",e[e.RequiredInputsShouldHaveLabel=15]="RequiredInputsShouldHaveLabel",e[e.RequiredInputsShouldHaveErrorMessage=16]="RequiredInputsShouldHaveErrorMessage",e[e.Other=17]="Other"}(t.ValidationEvent||(t.ValidationEvent={})),function(e){e[e.FullyInContainer=0]="FullyInContainer",e[e.Overflowing=1]="Overflowing",e[e.FullyOutOfContainer=2]="FullyOutOfContainer"}(t.ContainerFitStatus||(t.ContainerFitStatus={})),function(e){e[e.Disabled=0]="Disabled",e[e.Manual=1]="Manual",e[e.Automatic=2]="Automatic"}(t.RefreshMode||(t.RefreshMode={})),function(e){e[e.Info=0]="Info",e[e.Warning=1]="Warning",e[e.Error=2]="Error"}(t.LogLevel||(t.LogLevel={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UUID=t.SizeAndUnit=t.PaddingDefinition=t.SpacingDefinition=t.StringWithSubstitutions=t.ContentTypes=t.GlobalSettings=void 0;var i=n(3),r=function(){function e(){}return e.useAdvancedTextBlockTruncation=!0,e.useAdvancedCardBottomTruncation=!1,e.useMarkdownInRadioButtonAndCheckbox=!0,e.allowMarkForTextHighlighting=!1,e.alwaysBleedSeparators=!1,e.enableFullJsonRoundTrip=!1,e.displayInputValidationErrors=!0,e.allowPreProcessingPropertyValues=!1,e.setTabIndexAtCardRoot=!0,e.enableFallback=!0,e.useWebkitLineClamp=!0,e.allowMoreThanMaxActionsInOverflowMenu=!1,e.applets={logEnabled:!0,logLevel:i.LogLevel.Error,maximumRetryAttempts:3,defaultTimeBetweenRetryAttempts:3e3,authPromptWidth:400,authPromptHeight:600,refresh:{mode:i.RefreshMode.Manual,timeBetweenAutomaticRefreshes:3e3,maximumConsecutiveAutomaticRefreshes:3,allowManualRefreshesAfterAutomaticRefreshes:!0}},e}();t.GlobalSettings=r,t.ContentTypes={applicationJson:"application/json",applicationXWwwFormUrlencoded:"application/x-www-form-urlencoded"};var o=function(){function e(){this._isProcessed=!1}return e.prototype.getReferencedInputs=function(e,t){if(!t)throw new Error("The referencedInputs parameter cannot be null.");for(var n=0,i=e;n<i.length;n++){var r=i[n];null!=new RegExp("\\{{2}("+r.id+").value\\}{2}","gi").exec(this._original)&&r.id&&(t[r.id]=r)}},e.prototype.substituteInputValues=function(e,n){if(this._processed=this._original,this._original)for(var i=/\{{2}([a-z0-9_$@]+).value\}{2}/gi,r=void 0;null!==(r=i.exec(this._original));)for(var o=0,s=Object.keys(e);o<s.length;o++){var a=s[o];if(a.toLowerCase()==r[1].toLowerCase()){var l=e[a],c="";l.value&&(c=l.value),n===t.ContentTypes.applicationJson?c=(c=JSON.stringify(c)).slice(1,-1):n===t.ContentTypes.applicationXWwwFormUrlencoded&&(c=encodeURIComponent(c)),this._processed=this._processed.replace(r[0],c);break}}this._isProcessed=!0},e.prototype.getOriginal=function(){return this._original},e.prototype.get=function(){return this._isProcessed?this._processed:this._original},e.prototype.set=function(e){this._original=e,this._isProcessed=!1},e}();t.StringWithSubstitutions=o,t.SpacingDefinition=function(e,t,n,i){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0),this.left=0,this.top=0,this.right=0,this.bottom=0,this.top=e,this.right=t,this.bottom=n,this.left=i},t.PaddingDefinition=function(e,t,n,r){void 0===e&&(e=i.Spacing.None),void 0===t&&(t=i.Spacing.None),void 0===n&&(n=i.Spacing.None),void 0===r&&(r=i.Spacing.None),this.top=i.Spacing.None,this.right=i.Spacing.None,this.bottom=i.Spacing.None,this.left=i.Spacing.None,this.top=e,this.right=t,this.bottom=n,this.left=r};var s=function(){function e(e,t){this.physicalSize=e,this.unit=t}return e.parse=function(t,n){void 0===n&&(n=!1);var r=new e(0,i.SizeUnit.Weight);if("number"==typeof t)return r.physicalSize=t,r;if("string"==typeof t){var o=/^([0-9]+)(px|\*)?$/g.exec(t),s=n?3:2;if(o&&o.length>=s)return r.physicalSize=parseInt(o[1]),3==o.length&&"px"==o[2]&&(r.unit=i.SizeUnit.Pixel),r}throw new Error("Invalid size: "+t)},e}();t.SizeAndUnit=s;
/**
 * Fast UUID generator, RFC4122 version 4 compliant.
 * @author Jeff Ward (jcward.com).
 * @license MIT license
 * @link http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/21963136#21963136
 **/
var a=function(){function e(){}return e.generate=function(){var t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return e.lut[255&t]+e.lut[t>>8&255]+e.lut[t>>16&255]+e.lut[t>>24&255]+"-"+e.lut[255&n]+e.lut[n>>8&255]+"-"+e.lut[n>>16&15|64]+e.lut[n>>24&255]+"-"+e.lut[63&i|128]+e.lut[i>>8&255]+"-"+e.lut[i>>16&255]+e.lut[i>>24&255]+e.lut[255&r]+e.lut[r>>8&255]+e.lut[r>>16&255]+e.lut[r>>24&255]},e.initialize=function(){for(var t=0;t<256;t++)e.lut[t]=(t<16?"0":"")+t.toString(16)},e.lut=[],e}();t.UUID=a,a.initialize()},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SerializableObject=t.property=t.SerializableObjectSchema=t.CustomProperty=t.SerializableObjectCollectionProperty=t.SerializableObjectProperty=t.EnumProperty=t.ValueSetProperty=t.StringArrayProperty=t.PixelSizeProperty=t.NumProperty=t.BoolProperty=t.StringProperty=t.PropertyDefinition=t.BaseSerializationContext=t.isVersionLessOrEqual=t.Versions=t.Version=void 0;var o=n(4),s=n(6),a=n(3),l=n(8),c=function(){function e(e,t,n){void 0===e&&(e=1),void 0===t&&(t=1),this._isValid=!0,this._major=e,this._minor=t,this._label=n}return e.parse=function(t,n){if(t){var i=new e;i._versionString=t;var r=/(\d+).(\d+)/gi.exec(t);return null!=r&&3==r.length?(i._major=parseInt(r[1]),i._minor=parseInt(r[2])):i._isValid=!1,i._isValid||n.logParseEvent(void 0,a.ValidationEvent.InvalidPropertyValue,l.Strings.errors.invalidVersionString(i._versionString)),i}},e.prototype.toString=function(){return this._isValid?this._major+"."+this._minor:this._versionString},e.prototype.toJSON=function(){return this.toString()},e.prototype.compareTo=function(e){if(!this.isValid||!e.isValid)throw new Error("Cannot compare invalid version.");return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:0},Object.defineProperty(e.prototype,"label",{get:function(){return this._label?this._label:this.toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"major",{get:function(){return this._major},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minor",{get:function(){return this._minor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isValid",{get:function(){return this._isValid},enumerable:!1,configurable:!0}),e}();t.Version=c;var u=function(){function e(){}return e.v1_0=new c(1,0),e.v1_1=new c(1,1),e.v1_2=new c(1,2),e.v1_3=new c(1,3),e.v1_4=new c(1,4),e.v1_5=new c(1,5,"1.5 (Preview)"),e.latest=e.v1_4,e}();t.Versions=u,t.isVersionLessOrEqual=function(e,t){return!(e instanceof c)||!(t instanceof c)||t.compareTo(e)>=0};var p=function(){function e(e){void 0===e&&(e=u.latest),this.targetVersion=e,this._validationEvents=[]}return e.prototype.serializeValue=function(e,t,n,i,r){void 0===i&&(i=void 0),void 0===r&&(r=!1),null==n||n===i?o.GlobalSettings.enableFullJsonRoundTrip&&!r||delete e[t]:n===i?delete e[t]:e[t]=n},e.prototype.serializeString=function(e,t,n,i){null==n||n===i?delete e[t]:e[t]=n},e.prototype.serializeBool=function(e,t,n,i){null==n||n===i?delete e[t]:e[t]=n},e.prototype.serializeNumber=function(e,t,n,i){null==n||n===i||isNaN(n)?delete e[t]:e[t]=n},e.prototype.serializeEnum=function(e,t,n,i,r){void 0===r&&(r=void 0),null==i||i===r?delete t[n]:t[n]=e[i]},e.prototype.serializeArray=function(e,t,n){var i=[];if(n)for(var r=0,o=n;r<o.length;r++){var s,a=o[r];void 0!==(s=a instanceof E?a.toJSON(this):a.toJSON?a.toJSON():a)&&i.push(s)}0==i.length?e.hasOwnProperty(t)&&Array.isArray(e[t])&&delete e[t]:this.serializeValue(e,t,i)},e.prototype.clearEvents=function(){this._validationEvents=[]},e.prototype.logEvent=function(e,t,n,i){this._validationEvents.push({source:e,phase:t,event:n,message:i})},e.prototype.logParseEvent=function(e,t,n){this.logEvent(e,a.ValidationPhase.Parse,t,n)},e.prototype.getEventAt=function(e){return this._validationEvents[e]},Object.defineProperty(e.prototype,"eventCount",{get:function(){return this._validationEvents.length},enumerable:!1,configurable:!0}),e}();t.BaseSerializationContext=p;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(p),h=function(){function e(t,n,i,r){this.targetVersion=t,this.name=n,this.defaultValue=i,this.onGetInitialValue=r,this.isSerializationEnabled=!0,this.sequentialNumber=e._sequentialNumber,e._sequentialNumber++}return e.prototype.getInternalName=function(){return this.name},e.prototype.parse=function(e,t,n){return t[this.name]},e.prototype.toJSON=function(e,t,n,i){i.serializeValue(t,this.name,n,this.defaultValue)},e._sequentialNumber=0,e}();t.PropertyDefinition=h;var g=function(e){function t(t,n,i,r,o,s){void 0===i&&(i=!0);var a=e.call(this,t,n,o,s)||this;return a.targetVersion=t,a.name=n,a.treatEmptyAsUndefined=i,a.regEx=r,a.defaultValue=o,a.onGetInitialValue=s,a}return r(t,e),t.prototype.parse=function(e,t,n){var i=s.parseString(t[this.name],this.defaultValue);if(void 0===i||""===i&&this.treatEmptyAsUndefined||void 0===this.regEx||this.regEx.exec(i))return i;n.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,l.Strings.errors.invalidPropertyValue(i,this.name))},t.prototype.toJSON=function(e,t,n,i){i.serializeString(t,this.name,""===n&&this.treatEmptyAsUndefined?void 0:n,this.defaultValue)},t}(h);t.StringProperty=g;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.parse=function(e,t,n){return s.parseBool(t[this.name],this.defaultValue)},t.prototype.toJSON=function(e,t,n,i){i.serializeBool(t,this.name,n,this.defaultValue)},t}(h);t.BoolProperty=f;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.parse=function(e,t,n){return s.parseNumber(t[this.name],this.defaultValue)},t.prototype.toJSON=function(e,t,n,i){i.serializeNumber(t,this.name,n,this.defaultValue)},t}(h);t.NumProperty=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.parse=function(e,t,n){var i=void 0,r=t[this.name];if("string"==typeof r){var s=!1;try{var c=o.SizeAndUnit.parse(r,!0);c.unit==a.SizeUnit.Pixel&&(i=c.physicalSize,s=!0)}catch(e){}s||n.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,l.Strings.errors.invalidPropertyValue(t[this.name],"minHeight"))}return i},t.prototype.toJSON=function(e,t,n,i){i.serializeValue(t,this.name,"number"!=typeof n||isNaN(n)?void 0:n+"px")},t}(h);t.PixelSizeProperty=y;var v=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i,r)||this;return o.targetVersion=t,o.name=n,o.defaultValue=i,o.onGetInitialValue=r,o}return r(t,e),t.prototype.parse=function(e,t,n){var i=t[this.name];if(void 0===i||!Array.isArray(i))return this.defaultValue;for(var r=[],o=0,s=i;o<s.length;o++){var l=s[o];"string"==typeof l?r.push(l):n.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,'Invalid array value "'+l+'" of type "'+typeof l+'" ignored for "'+this.name+'".')}return r},t.prototype.toJSON=function(e,t,n,i){i.serializeArray(t,this.name,n)},t}(h);t.StringArrayProperty=v;var C=function(e){function t(t,n,i,r,o){var s=e.call(this,t,n,r,o)||this;return s.targetVersion=t,s.name=n,s.values=i,s.defaultValue=r,s.onGetInitialValue=o,s}return r(t,e),t.prototype.isValidValue=function(e,t){for(var n=0,i=this.values;n<i.length;n++){var r=i[n];if(e.toLowerCase()===r.value.toLowerCase())return(r.targetVersion?r.targetVersion:this.targetVersion).compareTo(t.targetVersion)<=0}return!1},t.prototype.parse=function(e,t,n){var i=t[this.name];if(void 0===i)return this.defaultValue;if("string"==typeof i)for(var r=0,o=this.values;r<o.length;r++){var s=o[r];if(i.toLowerCase()===s.value.toLowerCase()){var c=s.targetVersion?s.targetVersion:this.targetVersion;return c.compareTo(n.targetVersion)<=0?s.value:(n.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,l.Strings.errors.propertyValueNotSupported(i,this.name,c.toString(),n.targetVersion.toString())),this.defaultValue)}}return n.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,l.Strings.errors.invalidPropertyValue(i,this.name)),this.defaultValue},t.prototype.toJSON=function(e,t,n,i){var r=!1;if(void 0!==n){r=!0;for(var o=0,s=this.values;o<s.length;o++){var c=s[o];if(c.value===n){var u=c.targetVersion?c.targetVersion:this.targetVersion;if(u.compareTo(i.targetVersion)<=0){r=!1;break}i.logEvent(e,a.ValidationPhase.ToJSON,a.ValidationEvent.InvalidPropertyValue,l.Strings.errors.propertyValueNotSupported(n,this.name,u.toString(),i.targetVersion.toString()))}}}r||i.serializeValue(t,this.name,n,this.defaultValue,!0)},t}(h);t.ValueSetProperty=C;var b=function(e){function t(t,n,i,r,o,s){var a=e.call(this,t,n,r,s)||this;if(a.targetVersion=t,a.name=n,a.enumType=i,a.defaultValue=r,a.onGetInitialValue=s,a._values=[],o)a._values=o;else for(var l in i){var c=parseInt(l,10);c>=0&&a._values.push({value:c})}return a}return r(t,e),t.prototype.parse=function(e,t,n){var i=t[this.name];if("string"!=typeof i)return this.defaultValue;var r=s.getEnumValueByName(this.enumType,i);if(void 0!==r)for(var o=0,c=this.values;o<c.length;o++){var u=c[o];if(u.value===r){var p=u.targetVersion?u.targetVersion:this.targetVersion;return p.compareTo(n.targetVersion)<=0?r:(n.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,l.Strings.errors.propertyValueNotSupported(i,this.name,p.toString(),n.targetVersion.toString())),this.defaultValue)}}return n.logParseEvent(e,a.ValidationEvent.InvalidPropertyValue,l.Strings.errors.invalidPropertyValue(i,this.name)),this.defaultValue},t.prototype.toJSON=function(e,t,n,i){var r=!1;if(void 0!==n){r=!0;for(var o=0,s=this.values;o<s.length;o++){var c=s[o];if(c.value===n){if((c.targetVersion?c.targetVersion:this.targetVersion).compareTo(i.targetVersion)<=0){r=!1;break}i.logEvent(e,a.ValidationPhase.ToJSON,a.ValidationEvent.InvalidPropertyValue,l.Strings.errors.invalidPropertyValue(n,this.name))}}}r||i.serializeEnum(this.enumType,t,this.name,n,this.defaultValue)},Object.defineProperty(t.prototype,"values",{get:function(){return this._values},enumerable:!1,configurable:!0}),t}(h);t.EnumProperty=b;var A=function(e){function t(t,n,i,r,o){void 0===r&&(r=!1);var s=e.call(this,t,n,o,(function(e){return s.nullable?void 0:new s.objectType}))||this;return s.targetVersion=t,s.name=n,s.objectType=i,s.nullable=r,s}return r(t,e),t.prototype.parse=function(e,t,n){var i=t[this.name];if(void 0===i)return this.onGetInitialValue?this.onGetInitialValue(e):this.defaultValue;var r=new this.objectType;return r.parse(i,n),r},t.prototype.toJSON=function(e,t,n,i){var r=void 0;void 0===n||n.hasAllDefaultValues()||(r=n.toJSON(i)),"object"==typeof r&&0===Object.keys(r).length&&(r=void 0),i.serializeValue(t,this.name,r,this.defaultValue,!0)},t}(h);t.SerializableObjectProperty=A;var x=function(e){function t(t,n,i,r){var o=e.call(this,t,n,void 0,(function(e){return[]}))||this;return o.targetVersion=t,o.name=n,o.objectType=i,o.onItemAdded=r,o}return r(t,e),t.prototype.parse=function(e,t,n){var i=[],r=t[this.name];if(Array.isArray(r))for(var o=0,s=r;o<s.length;o++){var a=s[o],l=new this.objectType;l.parse(a,n),i.push(l),this.onItemAdded&&this.onItemAdded(e,l)}return i.length>0?i:this.onGetInitialValue?this.onGetInitialValue(e):void 0},t.prototype.toJSON=function(e,t,n,i){i.serializeArray(t,this.name,n)},t}(h);t.SerializableObjectCollectionProperty=x;var S=function(e){function t(t,n,i,r,o,s){var a=e.call(this,t,n,o,s)||this;if(a.targetVersion=t,a.name=n,a.onParse=i,a.onToJSON=r,a.defaultValue=o,a.onGetInitialValue=s,!a.onParse)throw new Error("CustomPropertyDefinition instances must have an onParse handler.");if(!a.onToJSON)throw new Error("CustomPropertyDefinition instances must have an onToJSON handler.");return a}return r(t,e),t.prototype.parse=function(e,t,n){return this.onParse(e,this,t,n)},t.prototype.toJSON=function(e,t,n,i){this.onToJSON(e,this,t,n,i)},t}(h);t.CustomProperty=S;var I=function(){function e(){this._properties=[]}return e.prototype.indexOf=function(e){for(var t=0;t<this._properties.length;t++)if(this._properties[t]===e)return t;return-1},e.prototype.add=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)-1===this.indexOf(e[n])&&this._properties.push(e[n])},e.prototype.remove=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e;n<i.length;n++)for(var r=i[n];;){var o=this.indexOf(r);if(!(o>=0))break;this._properties.splice(o,1)}},e.prototype.getItemAt=function(e){return this._properties[e]},e.prototype.getCount=function(){return this._properties.length},e}();t.SerializableObjectSchema=I,t.property=function(e){return function(t,n){var i=Object.getOwnPropertyDescriptor(t,n)||{};i.get||i.set||(i.get=function(){return this.getValue(e)},i.set=function(t){this.setValue(e,t)},Object.defineProperty(t,n,i))}};var E=function(){function e(){this._propertyBag={},this._rawProperties={},this.maxVersion=e.defaultMaxVersion;for(var t=this.getSchema(),n=0;n<t.getCount();n++){var i=t.getItemAt(n);i.onGetInitialValue&&this.setValue(i,i.onGetInitialValue(this))}}return e.prototype.getDefaultSerializationContext=function(){return new d},e.prototype.populateSchema=function(t){var n=this.constructor,i=[];for(var r in n)try{var o=n[r];o instanceof h&&i.push(o)}catch(e){}if(i.length>0){var s=i.sort((function(e,t){return e.sequentialNumber>t.sequentialNumber?1:e.sequentialNumber<t.sequentialNumber?-1:0}));t.add.apply(t,s)}e.onRegisterCustomProperties&&e.onRegisterCustomProperties(this,t)},e.prototype.getValue=function(e){return this._propertyBag.hasOwnProperty(e.getInternalName())?this._propertyBag[e.getInternalName()]:e.defaultValue},e.prototype.setValue=function(e,t){null==t?delete this._propertyBag[e.getInternalName()]:this._propertyBag[e.getInternalName()]=t},e.prototype.internalParse=function(e,t){if(this._propertyBag={},this._rawProperties=o.GlobalSettings.enableFullJsonRoundTrip&&e||{},e)for(var n=this.getSchema(),i=0;i<n.getCount();i++){var r=n.getItemAt(i);if(r.isSerializationEnabled){var s=r.onGetInitialValue?r.onGetInitialValue(this):void 0;e.hasOwnProperty(r.name)&&(r.targetVersion.compareTo(t.targetVersion)<=0?s=r.parse(this,e,t):t.logParseEvent(this,a.ValidationEvent.UnsupportedProperty,l.Strings.errors.propertyNotSupported(r.name,r.targetVersion.toString(),t.targetVersion.toString()))),this.setValue(r,s)}}else this.resetDefaultValues()},e.prototype.internalToJSON=function(e,t){for(var n=this.getSchema(),i=[],r=0;r<n.getCount();r++){var o=n.getItemAt(r);o.isSerializationEnabled&&o.targetVersion.compareTo(t.targetVersion)<=0&&-1===i.indexOf(o.name)&&(o.toJSON(this,e,this.getValue(o),t),i.push(o.name))}},e.prototype.shouldSerialize=function(e){return!0},e.prototype.parse=function(e,t){this.internalParse(e,t||new d)},e.prototype.toJSON=function(e){var t,n;if(e&&e instanceof p?t=e:(t=this.getDefaultSerializationContext()).toJSONOriginalParam=e,this.shouldSerialize(t))return n=o.GlobalSettings.enableFullJsonRoundTrip&&this._rawProperties&&"object"==typeof this._rawProperties?this._rawProperties:{},this.internalToJSON(n,t),n},e.prototype.hasDefaultValue=function(e){return this.getValue(e)===e.defaultValue},e.prototype.hasAllDefaultValues=function(){for(var e=this.getSchema(),t=0;t<e.getCount();t++){var n=e.getItemAt(t);if(!this.hasDefaultValue(n))return!1}return!0},e.prototype.resetDefaultValues=function(){for(var e=this.getSchema(),t=0;t<e.getCount();t++){var n=e.getItemAt(t);this.setValue(n,n.defaultValue)}},e.prototype.setCustomProperty=function(e,t){"string"==typeof t&&!t||null==t?delete this._rawProperties[e]:this._rawProperties[e]=t},e.prototype.getCustomProperty=function(e){return this._rawProperties[e]},e.prototype.getSchema=function(){var t=e._schemaCache[this.getSchemaKey()];return t||(t=new I,this.populateSchema(t),e._schemaCache[this.getSchemaKey()]=t),t},e.defaultMaxVersion=u.latest,e._schemaCache={},e}();t.SerializableObject=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearElementChildren=t.getScrollY=t.getScrollX=t.getFitStatus=t.truncate=t.stringToCssColor=t.renderSeparation=t.parseEnum=t.getEnumValueByName=t.parseBool=t.parseNumber=t.parseString=t.appendChild=t.generateUniqueId=t.isMobileOS=t.isInternetExplorer=void 0;var i=n(3),r=n(4);function o(e,t){for(var n in e){var i=parseInt(n,10);if(i>=0){var r=e[n];if(r&&"string"==typeof r&&r.toLowerCase()===t.toLowerCase())return i}}}function s(e){if(e){var t=/#([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?/gi.exec(e);if(t&&t[4]){var n=parseInt(t[1],16)/255;return"rgba("+parseInt(t[2],16)+","+parseInt(t[3],16)+","+parseInt(t[4],16)+","+n+")"}}return e}function a(e,t){for(t+=1;t<e.length&&"<"==e[t];)for(;t<e.length&&">"!=e[t++];);return t}t.isInternetExplorer=function(){return void 0!==window.document.documentMode},t.isMobileOS=function(){var e=window.navigator.userAgent;return!!e.match(/Android/i)||!!e.match(/iPad/i)||!!e.match(/iPhone/i)},t.generateUniqueId=function(){return"__ac-"+r.UUID.generate()},t.appendChild=function(e,t){t&&e.appendChild(t)},t.parseString=function(e,t){return"string"==typeof e?e:t},t.parseNumber=function(e,t){return"number"==typeof e?e:t},t.parseBool=function(e,t){if("boolean"==typeof e)return e;if("string"==typeof e)switch(e.toLowerCase()){case"true":return!0;case"false":return!1;default:return t}return t},t.getEnumValueByName=o,t.parseEnum=function(e,t,n){if(!t)return n;var i=o(e,t);return void 0!==i?i:n},t.renderSeparation=function(e,t,n){if(t.spacing>0||t.lineThickness&&t.lineThickness>0){var r=document.createElement("div");r.className=e.makeCssClassName("ac-"+(n==i.Orientation.Horizontal?"horizontal":"vertical")+"-separator"),r.setAttribute("aria-hidden","true");var o=t.lineColor?s(t.lineColor):"";return n==i.Orientation.Horizontal?t.lineThickness?(r.style.paddingTop=t.spacing/2+"px",r.style.marginBottom=t.spacing/2+"px",r.style.borderBottom=t.lineThickness+"px solid "+o):r.style.height=t.spacing+"px":t.lineThickness?(r.style.paddingLeft=t.spacing/2+"px",r.style.marginRight=t.spacing/2+"px",r.style.borderRight=t.lineThickness+"px solid "+o):r.style.width=t.spacing+"px",r.style.overflow="hidden",r.style.flex="0 0 auto",r}},t.stringToCssColor=s,t.truncate=function(e,t,n){var i=function(){return t-e.scrollHeight>=-1};if(!i()){for(var r=e.innerHTML,o=function(t){e.innerHTML=r.substring(0,t)+"..."},s=function(e){for(var t=[],n=a(e,-1);n<e.length;)" "==e[n]&&t.push(n),n=a(e,n);return t}(r),l=0,c=s.length,u=0;l<c;){var p=Math.floor((l+c)/2);o(s[p]),i()?(u=s[p],l=p+1):c=p}if(o(u),n&&t-e.scrollHeight>=n-1){for(var d=a(r,u);d<r.length&&(o(d),i());)u=d,d=a(r,d);o(u)}}},t.getFitStatus=function(e,t){var n=e.offsetTop;return n+e.clientHeight<=t?i.ContainerFitStatus.FullyInContainer:n<t?i.ContainerFitStatus.Overflowing:i.ContainerFitStatus.FullyOutOfContainer},t.getScrollX=function(){return window.pageXOffset},t.getScrollY=function(){return window.pageYOffset},t.clearElementChildren=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.WindowsBaseClientManager=t.MacBaseClientManager=t.IOSBaseClientManager=t.AndroidBaseClientManager=t.BaseClientManager=void 0;var o=function(){function e(){this.bodyPadding=0,this.containerPadding=0,this.imageMargin=0,this.checkboxPadding=0,this.supportDynamicTheming=!1,this.supportImageProxy=!1,this.supportMoreAction=!1,this.supportDynamicTextArea=!1,this.supportCustomShowCardAction=!1,this.supportReverseRowForChoiceSet=!1,this.supportSavingState=!1,this.restoredInputs={}}return e.prototype.getSeparatorForChoicePicker=function(){return null},e.prototype.getSeparatorForToggleInputs=function(){return null},e}();t.BaseClientManager=o;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(o);t.AndroidBaseClientManager=s;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(o);t.IOSBaseClientManager=a;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(o);t.MacBaseClientManager=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.supportCustomHyperlinkHandling=!0,t}return r(t,e),t}(o);t.WindowsBaseClientManager=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Strings=void 0;var i=function(){function e(){}return e.errors={unknownElementType:function(e){return'Unknown element type "'+e+'". Fallback will be used if present.'},unknownActionType:function(e){return'Unknown action type "'+e+'". Fallback will be used if present.'},elementTypeNotAllowed:function(e){return'Element type "'+e+'" is not allowed in this context.'},actionTypeNotAllowed:function(e){return'Action type "'+e+'" is not allowed in this context.'},invalidPropertyValue:function(e,t){return'Invalid value "'+e+'" for property "'+t+'".'},showCardMustHaveCard:function(){return'"An Action.ShowCard must have its "card" property set to a valid AdaptiveCard object.'},invalidColumnWidth:function(e){return'Invalid column width "'+e+'" - defaulting to "auto".'},invalidCardVersion:function(e){return'Invalid card version. Defaulting to "'+e+'".'},invalidVersionString:function(e){return'Invalid version string "'+e+'".'},propertyValueNotSupported:function(e,t,n,i){return'Value "'+e+'" for property "'+t+'" is supported in version '+n+", but you are using version "+i+"."},propertyNotSupported:function(e,t,n){return'Property "'+e+'" is supported in version '+t+", but you are using version "+n+"."},indexOutOfRange:function(e){return"Index out of range ("+e+")."},elementCannotBeUsedAsInline:function(){return"RichTextBlock.addInline: the specified card element cannot be used as a RichTextBlock inline."},inlineAlreadyParented:function(){return"RichTextBlock.addInline: the specified inline already belongs to another RichTextBlock."},interactivityNotAllowed:function(){return"Interactivity is not allowed."},inputsMustHaveUniqueId:function(){return"All inputs must have a unique Id."},choiceSetMustHaveAtLeastOneChoice:function(){return"An Input.ChoiceSet must have at least one choice defined."},choiceSetChoicesMustHaveTitleAndValue:function(){return"All choices in an Input.ChoiceSet must have their title and value properties set."},propertyMustBeSet:function(e){return'Property "'+e+'" must be set.'},actionHttpHeadersMustHaveNameAndValue:function(){return"All headers of an Action.Http must have their name and value properties set."},tooManyActions:function(e){return"Maximum number of actions exceeded ("+e+")."},columnAlreadyBelongsToAnotherSet:function(){return"This column already belongs to another ColumnSet."},invalidCardType:function(){return'Invalid or missing card type. Make sure the card\'s type property is set to "AdaptiveCard".'},unsupportedCardVersion:function(e,t){return"The specified card version ("+e+") is not supported. The maximum supported card version is "+t+"."},duplicateId:function(e){return'Duplicate Id "'+e+'".'},markdownProcessingNotEnabled:function(){return"Markdown processing isn't enabled. Please see https://www.npmjs.com/package/adaptivecards#supporting-markdown"},processMarkdownEventRemoved:function(){return"The processMarkdown event has been removed. Please update your code and set onProcessMarkdown instead."},elementAlreadyParented:function(){return"The element already belongs to another container."},actionAlreadyParented:function(){return"The action already belongs to another element."},elementTypeNotStandalone:function(e){return"Elements of type "+e+" cannot be used as standalone elements."}},e.magicCodeInputCard={tryAgain:function(){return"That didn't work... let's try again."},pleaseLogin:function(){return'Please login in the popup. You will obtain a magic code. Paste that code below and select "Submit"'},enterMagicCode:function(){return"Enter magic code"},pleaseEnterMagicCodeYouReceived:function(){return"Please enter the magic code you received."},submit:function(){return"Submit"},cancel:function(){return"Cancel"},somethingWentWrong:function(){return"Something went wrong. This action can't be handled."},authenticationFailed:function(){return"Authentication failed."}},e.runtime={automaticRefreshPaused:function(){return"Automatic refresh paused."},clckToRestartAutomaticRefresh:function(){return"Click to restart."},refreshThisCard:function(){return"Refresh this card"}},e.hints={dontUseWeightedAndStrecthedColumnsInSameSet:function(){return"It is not recommended to use weighted and stretched columns in the same ColumnSet, because in such a situation stretched columns will always get the minimum amount of space."}},e.defaults={inlineActionTitle:function(){return"Inline Action"},overflowButtonText:function(){return"..."},mediaPlayerAriaLabel:function(){return"Media content"},mediaPlayerPlayMedia:function(){return"Play media"}},e}();t.Strings=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lookupElementWithId=t.isJsonString=t.assert=t.applyCSS=t.replaceAll=t.formatTimeToTwentyFourHour=t.formatTimeToMeridiem=t.formatDate=t.htmlDecode=t.format=t.getImageProxyUrl=void 0;var i=n(2);t.getImageProxyUrl=function(e,t,n,r,o){if(t&&r&&e&&0!==e.toLowerCase().indexOf(n)&&0!==e.toLowerCase().indexOf(r)&&(0===e.toLowerCase().indexOf("http://")||0===e.toLowerCase().indexOf("https://"))){var s=r+escape(e);return null!=o&&(s+="&".concat(i.OriginatorImageParamKey,"=").concat(o)),s}return e},t.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(e){var i=/[{}]/g;return e.replace(/\{\d+\}/g,(function(e){var n=t[e.replace(i,"")];return null==n&&(n=""),n}))}},t.htmlDecode=function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},t.formatDate=function(e){if(!e)return null;var n=new Date(e),i=n.getFullYear(),r=n.getDate(),o=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][n.getDay()],s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][n.getMonth()];return(0,t.format)("{0}, {1} {2}, {3}",o,s,r,i)},t.formatTimeToMeridiem=function(e){if(!e||!/^[0-9]{1,2}:[0-9]{1,2}$/.test(e))return"12:00 AM";var t=e.split(":"),n=parseInt(t[0])<12?"AM":"PM",i="".concat(parseInt(t[0])%12||12);i="".concat(1===i.length?"0":"").concat(i);var r=1===t[1].length?"0".concat(t[1]):t[1];return"".concat(i,":").concat(r," ").concat(n)},t.formatTimeToTwentyFourHour=function(e){if(!e||!/^[0-9]{1,2}:[0-9]{1,2} [AP]M$/.test(e))return"00:00";var t=e.split(" "),n=t[0].split(":"),i=t[1],r=parseInt(n[0])%12;"PM"===i&&(r+=12);var o=r<10?"0".concat(r):"".concat(r),s=1===n[1].length?"0".concat(n[1]):n[1];return"".concat(o,":").concat(s)},t.replaceAll=function(e,t,n){return e.replace(new RegExp(t,"g"),n)},t.applyCSS=function(e){var t=document.head,n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.charset="UTF-8",n.id=i.CustomHostConfigStyleId,n.href=e,t.appendChild(n)},t.assert=function(e,t){if(!e){if(t=t||"Assertion failed","undefined"!=typeof Error)throw new Error(t);throw t}},t.isJsonString=function(e){try{JSON.parse(e)}catch(e){return!1}return!0},t.lookupElementWithId=function(e,t,n){return n&&t?document.querySelector(t).querySelector("[id='".concat(e,"']")):document.getElementById(e)}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHostConfig=t.HostConfig=t.FontTypeSet=t.FontTypeDefinition=t.ContainerStyleSet=t.ContainerStyleDefinition=t.ColorSetDefinition=t.ActionsConfig=t.ShowCardActionConfig=t.FactSetConfig=t.FactTitleDefinition=t.FactTextDefinition=t.InputConfig=t.InputLabelConfig=t.RequiredInputLabelTextDefinition=t.TextBlockConfig=t.TextStyleSet=t.TextStyleDefinition=t.BaseTextDefinition=t.MediaConfig=t.ImageSetConfig=t.AdaptiveCardConfig=t.TextColorDefinition=t.ColorDefinition=void 0;var o=n(3),s=n(6),a=n(4),l=n(21);function c(e,t,n){if("string"==typeof t){var i=s.parseEnum(e,t,n);return void 0!==i?i:n}return"number"==typeof t?t:n}var u=function(){function e(e,t){this.default="#000000",this.subtle="#666666",e&&(this.default=e),t&&(this.subtle=t)}return e.prototype.parse=function(e){e&&(this.default=e.default||this.default,this.subtle=e.subtle||this.subtle)},e}();t.ColorDefinition=u;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.highlightColors=new u("#22000000","#11000000"),t}return r(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&this.highlightColors.parse(t.highlightColors)},t}(u);t.TextColorDefinition=p;var d=function(e){this.allowCustomStyle=!1,e&&(this.allowCustomStyle=e.allowCustomStyle||this.allowCustomStyle)};t.AdaptiveCardConfig=d;var h=function(){function e(e){this.imageSize=o.Size.Medium,this.maxImageHeight=100,e&&(this.imageSize=null!=e.imageSize?e.imageSize:this.imageSize,this.maxImageHeight=s.parseNumber(e.maxImageHeight,100))}return e.prototype.toJSON=function(){return{imageSize:o.Size[this.imageSize],maxImageHeight:this.maxImageHeight}},e}();t.ImageSetConfig=h;var g=function(){function e(e){this.allowInlinePlayback=!0,e&&(this.defaultPoster=e.defaultPoster,this.allowInlinePlayback=e.allowInlinePlayback||this.allowInlinePlayback)}return e.prototype.toJSON=function(){return{defaultPoster:this.defaultPoster,allowInlinePlayback:this.allowInlinePlayback}},e}();t.MediaConfig=g;var f=function(){function e(e){this.size=o.TextSize.Default,this.color=o.TextColor.Default,this.isSubtle=!1,this.weight=o.TextWeight.Default,this.parse(e)}return e.prototype.parse=function(e){e&&(this.size=c(o.TextSize,e.size,this.size),this.color=c(o.TextColor,e.color,this.color),this.isSubtle=void 0!==e.isSubtle&&"boolean"==typeof e.isSubtle?e.isSubtle:this.isSubtle,this.weight=c(o.TextWeight,e.weight,this.getDefaultWeight()))},e.prototype.getDefaultWeight=function(){return o.TextWeight.Default},e.prototype.toJSON=function(){return{size:o.TextSize[this.size],color:o.TextColor[this.color],isSubtle:this.isSubtle,weight:o.TextWeight[this.weight]}},e}();t.BaseTextDefinition=f;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fontType=o.FontType.Default,t}return r(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.fontType=c(o.FontType,t.fontType,this.fontType))},t}(f);t.TextStyleDefinition=m;var y=function(){function e(e){this.default=new m,this.heading=new m({size:"Large",weight:"Bolder"}),e&&this.heading.parse(e.heading)}return e.prototype.getStyleByName=function(e){return"heading"===e.toLowerCase()?this.heading:this.default},e}();t.TextStyleSet=y;var v=function(e){e&&(this.headingLevel=s.parseNumber(e.headingLevel))};t.TextBlockConfig=v;var C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.suffix=" *",t.suffixColor=o.TextColor.Attention,t}return r(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.suffix=t.suffix||this.suffix,this.suffixColor=c(o.TextColor,t.suffixColor,this.suffixColor))},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.suffix=this.suffix,t.suffixColor=o.TextColor[this.suffixColor],t},t}(f);t.RequiredInputLabelTextDefinition=C;var b=function(e){this.inputSpacing=o.Spacing.Small,this.requiredInputs=new C,this.optionalInputs=new f,e&&(this.inputSpacing=c(o.Spacing,e.inputSpacing,this.inputSpacing),this.requiredInputs=new C(e.requiredInputs),this.optionalInputs=new f(e.optionalInputs))};t.InputLabelConfig=b;var A=function(e){this.label=new b,this.errorMessage=new f({color:o.TextColor.Attention}),e&&(this.label=new b(e.label),this.errorMessage=new f(e.errorMessage))};t.InputConfig=A;var x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.wrap=!0,t}return r(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.wrap=null!=t.wrap?t.wrap:this.wrap)},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.wrap=this.wrap,t},t}(f);t.FactTextDefinition=x;var S=function(e){function t(t){var n=e.call(this,t)||this;return n.maxWidth=150,n.weight=o.TextWeight.Bolder,t&&(n.maxWidth=null!=t.maxWidth?t.maxWidth:n.maxWidth,n.weight=c(o.TextWeight,t.weight,o.TextWeight.Bolder)),n}return r(t,e),t.prototype.getDefaultWeight=function(){return o.TextWeight.Bolder},t}(x);t.FactTitleDefinition=S;var I=function(e){this.title=new S,this.value=new x,this.spacing=10,e&&(this.title=new S(e.title),this.value=new x(e.value),this.spacing=e.spacing&&null!=e.spacing?e.spacing&&e.spacing:this.spacing)};t.FactSetConfig=I;var E=function(){function e(e){this.actionMode=o.ShowCardActionMode.Inline,this.inlineTopMargin=16,this.style=o.ContainerStyle.Emphasis,e&&(this.actionMode=c(o.ShowCardActionMode,e.actionMode,o.ShowCardActionMode.Inline),this.inlineTopMargin=null!=e.inlineTopMargin?e.inlineTopMargin:this.inlineTopMargin,this.style=e.style&&"string"==typeof e.style?e.style:o.ContainerStyle.Emphasis)}return e.prototype.toJSON=function(){return{actionMode:o.ShowCardActionMode[this.actionMode],inlineTopMargin:this.inlineTopMargin,style:this.style}},e}();t.ShowCardActionConfig=E;var w=function(){function e(e){if(this.maxActions=5,this.spacing=o.Spacing.Default,this.buttonSpacing=20,this.showCard=new E,this.preExpandSingleShowCardAction=!1,this.actionsOrientation=o.Orientation.Horizontal,this.actionAlignment=o.ActionAlignment.Left,this.iconPlacement=o.ActionIconPlacement.LeftOfTitle,this.allowTitleToWrap=!1,this.iconSize=16,e){this.maxActions=null!=e.maxActions?e.maxActions:this.maxActions,this.spacing=c(o.Spacing,e.spacing&&e.spacing,o.Spacing.Default),this.buttonSpacing=null!=e.buttonSpacing?e.buttonSpacing:this.buttonSpacing,this.showCard=new E(e.showCard),this.preExpandSingleShowCardAction=s.parseBool(e.preExpandSingleShowCardAction,!1),this.actionsOrientation=c(o.Orientation,e.actionsOrientation,o.Orientation.Horizontal),this.actionAlignment=c(o.ActionAlignment,e.actionAlignment,o.ActionAlignment.Left),this.iconPlacement=c(o.ActionIconPlacement,e.iconPlacement,o.ActionIconPlacement.LeftOfTitle),this.allowTitleToWrap=null!=e.allowTitleToWrap?e.allowTitleToWrap:this.allowTitleToWrap;try{var t=a.SizeAndUnit.parse(e.iconSize);t.unit==o.SizeUnit.Pixel&&(this.iconSize=t.physicalSize)}catch(e){}}}return e.prototype.toJSON=function(){return{maxActions:this.maxActions,spacing:o.Spacing[this.spacing],buttonSpacing:this.buttonSpacing,showCard:this.showCard,preExpandSingleShowCardAction:this.preExpandSingleShowCardAction,actionsOrientation:o.Orientation[this.actionsOrientation],actionAlignment:o.ActionAlignment[this.actionAlignment]}},e}();t.ActionsConfig=w;var _=function(){function e(e){this.default=new p,this.dark=new p,this.light=new p,this.accent=new p,this.good=new p,this.warning=new p,this.attention=new p,this.parse(e)}return e.prototype.parseSingleColor=function(e,t){e&&this[t].parse(e[t])},e.prototype.parse=function(e){e&&(this.parseSingleColor(e,"default"),this.parseSingleColor(e,"dark"),this.parseSingleColor(e,"light"),this.parseSingleColor(e,"accent"),this.parseSingleColor(e,"good"),this.parseSingleColor(e,"warning"),this.parseSingleColor(e,"attention"))},e}();t.ColorSetDefinition=_;var P=function(){function e(e){this.foregroundColors=new _({default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#E69500",subtle:"#DDE69500"},attention:{default:"#CC3300",subtle:"#DDCC3300"}}),this.parse(e)}return e.prototype.parse=function(e){e&&(this.backgroundColor=e.backgroundColor,this.foregroundColors.parse(e.foregroundColors),this.highlightBackgroundColor=e.highlightBackgroundColor,this.highlightForegroundColor=e.highlightForegroundColor)},Object.defineProperty(e.prototype,"isBuiltIn",{get:function(){return!1},enumerable:!1,configurable:!0}),e}();t.ContainerStyleDefinition=P;var k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),Object.defineProperty(t.prototype,"isBuiltIn",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(P),T=function(){function e(e){if(this._allStyles={},this._allStyles[o.ContainerStyle.Default]=new k,this._allStyles[o.ContainerStyle.Emphasis]=new k,this._allStyles[o.ContainerStyle.Accent]=new k,this._allStyles[o.ContainerStyle.Good]=new k,this._allStyles[o.ContainerStyle.Attention]=new k,this._allStyles[o.ContainerStyle.Warning]=new k,e){this._allStyles[o.ContainerStyle.Default].parse(e[o.ContainerStyle.Default]),this._allStyles[o.ContainerStyle.Emphasis].parse(e[o.ContainerStyle.Emphasis]),this._allStyles[o.ContainerStyle.Accent].parse(e[o.ContainerStyle.Accent]),this._allStyles[o.ContainerStyle.Good].parse(e[o.ContainerStyle.Good]),this._allStyles[o.ContainerStyle.Attention].parse(e[o.ContainerStyle.Attention]),this._allStyles[o.ContainerStyle.Warning].parse(e[o.ContainerStyle.Warning]);var t=e.customStyles;if(t&&Array.isArray(t))for(var n=0,i=t;n<i.length;n++){var r=i[n];if(r){var s=r.name;s&&"string"==typeof s&&(this._allStyles.hasOwnProperty(s)?this._allStyles[s].parse(r.style):this._allStyles[s]=new P(r.style))}}}}return e.prototype.toJSON=function(){var e=this,t=[];Object.keys(this._allStyles).forEach((function(n){e._allStyles[n].isBuiltIn||t.push({name:n,style:e._allStyles[n]})}));var n={default:this.default,emphasis:this.emphasis};return t.length>0&&(n.customStyles=t),n},e.prototype.getStyleByName=function(e,t){return e&&this._allStyles.hasOwnProperty(e)?this._allStyles[e]:t||this._allStyles[o.ContainerStyle.Default]},Object.defineProperty(e.prototype,"default",{get:function(){return this._allStyles[o.ContainerStyle.Default]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"emphasis",{get:function(){return this._allStyles[o.ContainerStyle.Emphasis]},enumerable:!1,configurable:!0}),e}();t.ContainerStyleSet=T;var M=function(){function e(e){this.fontFamily="Segoe UI,Segoe,Segoe WP,Helvetica Neue,Helvetica,sans-serif",this.fontSizes={small:12,default:14,medium:17,large:21,extraLarge:26},this.fontWeights={lighter:200,default:400,bolder:600},e&&(this.fontFamily=e)}return e.prototype.parse=function(e){this.fontFamily=e.fontFamily||this.fontFamily,this.fontSizes={small:e.fontSizes&&e.fontSizes.small||this.fontSizes.small,default:e.fontSizes&&e.fontSizes.default||this.fontSizes.default,medium:e.fontSizes&&e.fontSizes.medium||this.fontSizes.medium,large:e.fontSizes&&e.fontSizes.large||this.fontSizes.large,extraLarge:e.fontSizes&&e.fontSizes.extraLarge||this.fontSizes.extraLarge},this.fontWeights={lighter:e.fontWeights&&e.fontWeights.lighter||this.fontWeights.lighter,default:e.fontWeights&&e.fontWeights.default||this.fontWeights.default,bolder:e.fontWeights&&e.fontWeights.bolder||this.fontWeights.bolder}},e.monospace=new e("'Courier New', Courier, monospace"),e}();t.FontTypeDefinition=M;var O=function(){function e(e){this.default=new M,this.monospace=new M("'Courier New', Courier, monospace"),e&&(this.default.parse(e.default),this.monospace.parse(e.monospace))}return e.prototype.getStyleDefinition=function(e){switch(e){case o.FontType.Monospace:return this.monospace;case o.FontType.Default:default:return this.default}},e}();t.FontTypeSet=O;var D=function(){function e(e){this.hostCapabilities=new l.HostCapabilities,this.choiceSetInputValueSeparator=",",this.supportsInteractivity=!0,this.spacing={small:3,default:8,medium:20,large:30,extraLarge:40,padding:15},this.separator={lineThickness:1,lineColor:"#EEEEEE"},this.imageSizes={small:40,medium:80,large:160},this.containerStyles=new T,this.inputs=new A,this.actions=new w,this.adaptiveCard=new d,this.imageSet=new h,this.media=new g,this.factSet=new I,this.textStyles=new y,this.textBlock=new v,this.alwaysAllowBleed=!1,e&&(("string"==typeof e||e instanceof String)&&(e=JSON.parse(e)),this.choiceSetInputValueSeparator=e&&"string"==typeof e.choiceSetInputValueSeparator?e.choiceSetInputValueSeparator:this.choiceSetInputValueSeparator,this.supportsInteractivity=e&&"boolean"==typeof e.supportsInteractivity?e.supportsInteractivity:this.supportsInteractivity,this._legacyFontType=new M,this._legacyFontType.parse(e),e.fontTypes&&(this.fontTypes=new O(e.fontTypes)),e.lineHeights&&(this.lineHeights={small:e.lineHeights.small,default:e.lineHeights.default,medium:e.lineHeights.medium,large:e.lineHeights.large,extraLarge:e.lineHeights.extraLarge}),this.imageSizes={small:e.imageSizes&&e.imageSizes.small||this.imageSizes.small,medium:e.imageSizes&&e.imageSizes.medium||this.imageSizes.medium,large:e.imageSizes&&e.imageSizes.large||this.imageSizes.large},this.containerStyles=new T(e.containerStyles),this.spacing={small:e.spacing&&e.spacing.small||this.spacing.small,default:e.spacing&&e.spacing.default||this.spacing.default,medium:e.spacing&&e.spacing.medium||this.spacing.medium,large:e.spacing&&e.spacing.large||this.spacing.large,extraLarge:e.spacing&&e.spacing.extraLarge||this.spacing.extraLarge,padding:e.spacing&&e.spacing.padding||this.spacing.padding},this.separator={lineThickness:e.separator&&e.separator.lineThickness||this.separator.lineThickness,lineColor:e.separator&&e.separator.lineColor||this.separator.lineColor},this.inputs=new A(e.inputs||this.inputs),this.actions=new w(e.actions||this.actions),this.adaptiveCard=new d(e.adaptiveCard||this.adaptiveCard),this.imageSet=new h(e.imageSet),this.factSet=new I(e.factSet),this.textStyles=new y(e.textStyles),this.textBlock=new v(e.textBlock))}return e.prototype.getFontTypeDefinition=function(e){return this.fontTypes?this.fontTypes.getStyleDefinition(e):e==o.FontType.Monospace?M.monospace:this._legacyFontType},e.prototype.getEffectiveSpacing=function(e){switch(e){case o.Spacing.Small:return this.spacing.small;case o.Spacing.Default:return this.spacing.default;case o.Spacing.Medium:return this.spacing.medium;case o.Spacing.Large:return this.spacing.large;case o.Spacing.ExtraLarge:return this.spacing.extraLarge;case o.Spacing.Padding:return this.spacing.padding;default:return 0}},e.prototype.paddingDefinitionToSpacingDefinition=function(e){return new a.SpacingDefinition(this.getEffectiveSpacing(e.top),this.getEffectiveSpacing(e.right),this.getEffectiveSpacing(e.bottom),this.getEffectiveSpacing(e.left))},e.prototype.makeCssClassNames=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],i=0,r=e;i<r.length;i++){var o=r[i];n.push((this.cssClassNamePrefix?this.cssClassNamePrefix+"-":"")+o)}return n},e.prototype.makeCssClassName=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.makeCssClassNames.apply(this,e).join(" ")||""},Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this._legacyFontType.fontFamily},set:function(e){this._legacyFontType.fontFamily=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSizes",{get:function(){return this._legacyFontType.fontSizes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontWeights",{get:function(){return this._legacyFontType.fontWeights},enumerable:!1,configurable:!0}),e}();t.HostConfig=D,t.defaultHostConfig=new D({supportsInteractivity:!0,spacing:{small:10,default:20,medium:30,large:40,extraLarge:50,padding:20},separator:{lineThickness:1,lineColor:"#EEEEEE"},fontTypes:{default:{fontFamily:"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif",fontSizes:{small:12,default:14,medium:17,large:21,extraLarge:26},fontWeights:{lighter:200,default:400,bolder:600}},monospace:{fontFamily:"'Courier New', Courier, monospace",fontSizes:{small:12,default:14,medium:17,large:21,extraLarge:26},fontWeights:{lighter:200,default:400,bolder:600}}},imageSizes:{small:40,medium:80,large:160},containerStyles:{default:{backgroundColor:"#FFFFFF",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},emphasis:{backgroundColor:"#08000000",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},accent:{backgroundColor:"#C7DEF9",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},good:{backgroundColor:"#CCFFCC",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},attention:{backgroundColor:"#FFC5B2",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},warning:{backgroundColor:"#FFE2B2",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}}},inputs:{label:{requiredInputs:{color:o.TextColor.Accent,size:o.TextSize.ExtraLarge,weight:o.TextWeight.Bolder,isSubtle:!0,suffix:" (required)",suffixColor:o.TextColor.Good},optionalInputs:{color:o.TextColor.Warning,size:o.TextSize.Medium,weight:o.TextWeight.Lighter,isSubtle:!1}},errorMessage:{color:o.TextColor.Accent,size:o.TextSize.Small,weight:o.TextWeight.Bolder}},actions:{maxActions:5,spacing:o.Spacing.Default,buttonSpacing:10,showCard:{actionMode:o.ShowCardActionMode.Inline,inlineTopMargin:16},actionsOrientation:o.Orientation.Horizontal,actionAlignment:o.ActionAlignment.Left},adaptiveCard:{allowCustomStyle:!1},imageSet:{imageSize:o.Size.Medium,maxImageHeight:100},factSet:{title:{color:o.TextColor.Default,size:o.TextSize.Default,isSubtle:!1,weight:o.TextWeight.Bolder,wrap:!0,maxWidth:150},value:{color:o.TextColor.Default,size:o.TextSize.Default,isSubtle:!1,weight:o.TextWeight.Default,wrap:!0},spacing:10}})},function(e,t,n){"use strict";var i,r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function s(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function a(e,t){for(var n={},i=[],r=0;r<e.length;r++){var a=e[r],l=t.base?a[0]+t.base:a[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var p=s(u),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==p?(o[p].references++,o[p].updater(d)):o.push({identifier:u,updater:f(d,t),references:1}),i.push(u)}return i}function l(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var s=r(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var c,u=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function p(e,t,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=u(t,r);else{var o=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function d(e,t,n){var i=n.css,r=n.media,o=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var h=null,g=0;function f(e,t){var n,i,r;if(t.singleton){var o=g++;n=h||(h=l(t)),i=p.bind(null,n,o,!1),r=p.bind(null,n,o,!0)}else n=l(t),i=d.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i));var n=a(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var r=s(n[i]);o[r].references--}for(var l=a(e,t),c=0;c<n.length;c++){var u=s(n[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=l}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Constants=void 0;var i=function(){function e(){}return e.keys={tab:"Tab",enter:"Enter",escape:"Escape",space:" ",up:"ArrowUp",down:"ArrowDown",delete:"Delete"},e}();t.Constants=i},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){"use strict";function i(){this.__rules__=[],this.__cache__=null}i.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},i.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},i.prototype.at=function(e,t,n){var i=this.__find__(e),r=n||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__[i].fn=t,this.__rules__[i].alt=r.alt||[],this.__cache__=null},i.prototype.before=function(e,t,n,i){var r=this.__find__(e),o=i||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},i.prototype.after=function(e,t,n,i){var r=this.__find__(e),o=i||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},i.prototype.push=function(e,t,n){var i=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:i.alt||[]}),this.__cache__=null},i.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var i=this.__find__(e);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[i].enabled=!0,n.push(e)}),this),this.__cache__=null,n},i.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},i.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var i=this.__find__(e);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[i].enabled=!1,n.push(e)}),this),this.__cache__=null,n},i.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=i},function(e,t,n){"use strict";function i(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}i.prototype.attrIndex=function(e){var t,n,i;if(!this.attrs)return-1;for(n=0,i=(t=this.attrs).length;n<i;n++)if(t[n][0]===e)return n;return-1},i.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},i.prototype.attrSet=function(e,t){var n=this.attrIndex(e),i=[e,t];n<0?this.attrPush(i):this.attrs[n]=i},i.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},i.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=i},function(e,t,n){window,e.exports=function(){return n={},e.m=t={"./src/adaptivecards.ts":function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n("./src/card-elements.ts")),i(n("./src/enums.ts")),i(n("./src/host-config.ts")),i(n("./src/shared.ts")),i(n("./src/utils.ts"))},"./src/card-elements.ts":function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n("./src/enums.ts"),s=n("./src/shared.ts"),a=n("./src/utils.ts"),l=n("./src/host-config.ts"),c=n("./src/text-formatters.ts");function u(e,t){e&&e.setCollection(t)}function p(e,t){if(t)for(var n=0;n<t.length;n++)if(e.getJsonTypeName()===t[n])return;return 1}function d(e,t,n,i,r){var o,s,a=null;return t&&"object"==typeof t&&(o=!1,(a=n(s=t.type))?(a.setParent(e),a.parse(t,r),o=a.shouldFallback()):(o=!0,tt(i(s),r)),o&&((t=t.fallback)||e.setShouldFallback(!0),"string"==typeof t&&"drop"===t.toLowerCase()?a=null:"object"==typeof t&&(a=d(e,t,n,i,r)))),a}function h(e,t,n){return d(e,t,(function(e){return at.actionTypeRegistry.createInstance(e)}),(function(e){return{error:o.ValidationError.UnknownActionType,message:"Unknown action type: "+e+". Attempting to fall back."}}),n)}function g(e,t,n){return d(e,t,(function(e){return at.elementTypeRegistry.createInstance(e)}),(function(e){return{error:o.ValidationError.UnknownElementType,message:"Unknown element type: "+e+". Attempting to fall back."}}),n)}t.createActionInstance=h,t.createElementInstance=g;var f=(m.prototype.internalRenderSeparator=function(){return a.renderSeparation({spacing:this.hostConfig.getEffectiveSpacing(this.spacing),lineThickness:this.separator?this.hostConfig.separator.lineThickness:null,lineColor:this.separator?this.hostConfig.separator.lineColor:null},this.separatorOrientation)},m.prototype.updateRenderedElementVisibility=function(){this._renderedElement&&(this._renderedElement.style.display=this._isVisible?this._defaultRenderedElementDisplayMode:"none"),this._separatorElement&&(this.parent&&this.parent.isFirstElement(this)?this._separatorElement.style.display="none":this._separatorElement.style.display=this._isVisible?this._defaultRenderedElementDisplayMode:"none")},m.prototype.hideElementDueToOverflow=function(){this._renderedElement&&this._isVisible&&(this._renderedElement.style.visibility="hidden",this._isVisible=!1,et(this,!1))},m.prototype.showElementHiddenDueToOverflow=function(){this._renderedElement&&!this._isVisible&&(this._renderedElement.style.visibility=null,this._isVisible=!0,et(this,!1))},m.prototype.handleOverflow=function(e){(this.isVisible||this.isHiddenDueToOverflow())&&(e=this.truncateOverflow(e),this._truncatedDueToOverflow=e||this._truncatedDueToOverflow,e?e&&!this._isVisible&&this.showElementHiddenDueToOverflow():this.hideElementDueToOverflow())},m.prototype.resetOverflow=function(){var e=!1;return this._truncatedDueToOverflow&&(this.undoOverflowTruncation(),e=!(this._truncatedDueToOverflow=!1)),this.isHiddenDueToOverflow&&this.showElementHiddenDueToOverflow(),e},m.prototype.createPlaceholderElement=function(){var e=document.createElement("div");return e.style.border="1px dashed #DDDDDD",e.style.padding="4px",e.style.minHeight="32px",e.style.fontSize="10px",e.innerText="Empty "+this.getJsonTypeName(),e},m.prototype.adjustRenderedElementSize=function(e){"auto"===this.height?e.style.flex="0 0 auto":e.style.flex="1 1 auto",this.minPixelHeight&&(e.style.minHeight=this.minPixelHeight+"px")},m.prototype.applyPadding=function(){var e;this.separatorElement&&(at.alwaysBleedSeparators&&this.separatorOrientation==o.Orientation.Horizontal&&!this.isBleeding()?(e=new s.PaddingDefinition,this.getImmediateSurroundingPadding(e),e=this.hostConfig.paddingDefinitionToSpacingDefinition(e),this.separatorElement.style.marginLeft="-"+e.left+"px",this.separatorElement.style.marginRight="-"+e.right+"px"):(this.separatorElement.style.marginRight="0",this.separatorElement.style.marginLeft="0"))},m.prototype.truncateOverflow=function(e){return!1},m.prototype.undoOverflowTruncation=function(){},m.prototype.isDesignMode=function(){var e=this.getRootElement();return e instanceof at&&e.designMode},m.prototype.getDefaultPadding=function(){return new s.PaddingDefinition},m.prototype.getHasBackground=function(){return!1},Object.defineProperty(m.prototype,"useDefaultSizing",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"allowCustomPadding",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"separatorOrientation",{get:function(){return o.Orientation.Horizontal},enumerable:!0,configurable:!0}),m.prototype.getPadding=function(){return this._padding},m.prototype.setPadding=function(e){this._padding=e},m.prototype.isBleeding=function(){return!1},m.prototype.toJSON=function(){var e={};return a.setProperty(e,"type",this.getJsonTypeName()),a.setProperty(e,"id",this.id),null!==this.horizontalAlignment&&a.setEnumProperty(o.HorizontalAlignment,e,"horizontalAlignment",this.horizontalAlignment),a.setEnumProperty(o.Spacing,e,"spacing",this.spacing,o.Spacing.Default),a.setProperty(e,"separator",this.separator,!1),a.setProperty(e,"height",this.height,"auto"),this.minPixelHeight&&a.setProperty(e,"minHeight",this.minPixelHeight+"px"),e},m.prototype.setParent=function(e){this._parent=e},m.prototype.getForbiddenElementTypes=function(){return null},m.prototype.getForbiddenActionTypes=function(){return null},m.prototype.getImmediateSurroundingPadding=function(e,t,n,i,r){var o;void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===i&&(i=!0),void 0===r&&(r=!0),this.parent&&(o=t&&this.parent.isFirstElement(this),t=n&&this.parent.isRightMostElement(this),n=i&&this.parent.isLastElement(this),i=r&&this.parent.isLeftMostElement(this),(r=this.parent.getEffectivePadding())&&(o&&(e.top=r.top),t&&(e.right=r.right),n&&(e.bottom=r.bottom),i&&(e.left=r.left)),(o||t||n||i)&&this.parent.getImmediateSurroundingPadding(e,o,t,n,i))},m.prototype.parse=function(e,t){var n,i,r;i=e,l=t,null!=(r=((r=(n=this).getRootElement())&&r.onParseElement?r:at).onParseElement)&&r(n,i,l),this.requires.parse(e.requires,t),this.id=e.id,this.isVisible=a.parseBoolProperty(e.isVisible,this.isVisible),this.speak=e.speak,this.horizontalAlignment=a.getEnumValueOrDefault(o.HorizontalAlignment,e.horizontalAlignment,null),this.spacing=a.getEnumValueOrDefault(o.Spacing,e.spacing,o.Spacing.Default),this.separator=a.parseBoolProperty(e.separator,this.separator);var l=e.separation;void 0!==l&&("none"===l?(this.spacing=o.Spacing.None,this.separator=!1):"strong"===l?(this.spacing=o.Spacing.Large,this.separator=!0):"default"===l&&(this.spacing=o.Spacing.Default,this.separator=!1),tt({error:o.ValidationError.Deprecated,message:'The "separation" property is deprecated and will be removed. Use the "spacing" and "separator" properties instead.'},t)),"auto"!==(l=e.height)&&"stretch"!==l||(this.height=l);var c=e.minHeight;if(c&&"string"==typeof c){var u=!1;try{var p=s.SizeAndUnit.parse(c,!0);p.unit==o.SizeUnit.Pixel&&(this.minPixelHeight=p.physicalSize,u=!0)}catch(e){}u||tt({error:o.ValidationError.InvalidPropertyValue,message:'Invalid "minHeight" value: '+c},t)}},m.prototype.getActionCount=function(){return 0},m.prototype.getActionAt=function(e){throw new Error("Index out of range.")},m.prototype.validate=function(){return[]},m.prototype.remove=function(){return!!(this.parent&&this.parent instanceof O)&&this.parent.removeItem(this)},m.prototype.render=function(){return this._renderedElement=this.internalRender(),this._separatorElement=this.internalRenderSeparator(),this._renderedElement?(this.customCssSelector&&this._renderedElement.classList.add(this.customCssSelector),this._renderedElement.style.boxSizing="border-box",this._defaultRenderedElementDisplayMode=this._renderedElement.style.display,this.adjustRenderedElementSize(this._renderedElement),this.updateLayout(!1)):this.isDesignMode()&&(this._renderedElement=this.createPlaceholderElement()),this._renderedElement},m.prototype.updateLayout=function(e){void 0===e&&(e=!0),this.updateRenderedElementVisibility(),this.applyPadding()},m.prototype.indexOf=function(e){return-1},m.prototype.isRendered=function(){return this._renderedElement&&0<this._renderedElement.offsetHeight},m.prototype.isFirstElement=function(e){return!0},m.prototype.isLastElement=function(e){return!0},m.prototype.isAtTheVeryLeft=function(){return!this.parent||this.parent.isLeftMostElement(this)&&this.parent.isAtTheVeryLeft()},m.prototype.isAtTheVeryRight=function(){return!this.parent||this.parent.isRightMostElement(this)&&this.parent.isAtTheVeryRight()},m.prototype.isAtTheVeryTop=function(){return!this.parent||this.parent.isFirstElement(this)&&this.parent.isAtTheVeryTop()},m.prototype.isAtTheVeryBottom=function(){return!this.parent||this.parent.isLastElement(this)&&this.parent.isAtTheVeryBottom()},m.prototype.isBleedingAtTop=function(){return!1},m.prototype.isBleedingAtBottom=function(){return!1},m.prototype.isLeftMostElement=function(e){return!0},m.prototype.isRightMostElement=function(e){return!0},m.prototype.isHiddenDueToOverflow=function(){return this._renderedElement&&"hidden"==this._renderedElement.style.visibility},m.prototype.getRootElement=function(){for(var e=this;e.parent;)e=e.parent;return e},m.prototype.getParentContainer=function(){for(var e=this.parent;e;){if(e instanceof He)return e;e=e.parent}return null},m.prototype.getAllInputs=function(){return[]},m.prototype.getResourceInformation=function(){return[]},m.prototype.getElementById=function(e){return this.id===e?this:null},m.prototype.getActionById=function(e){return null},m.prototype.shouldFallback=function(){return this._shouldFallback||!this.requires.areAllMet(this.hostConfig.hostCapabilities)},m.prototype.setShouldFallback=function(e){this._shouldFallback=e},m.prototype.getEffectivePadding=function(){var e=this.getPadding();return e&&this.allowCustomPadding?e:this.getDefaultPadding()},Object.defineProperty(m.prototype,"lang",{get:function(){return this._lang||(this.parent?this.parent.lang:void 0)},set:function(e){if(e&&""!=e&&!/^[a-z]{2,3}$/gi.exec(e))throw new Error("Invalid language identifier: "+e);this._lang=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"hostConfig",{get:function(){return this._hostConfig||(this.parent?this.parent.hostConfig:dt)},set:function(e){this._hostConfig=e},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"index",{get:function(){return this.parent?this.parent.indexOf(this):0},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"isInteractive",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"isStandalone",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){at.useAdvancedCardBottomTruncation&&!e&&this.undoOverflowTruncation(),this._isVisible!=e&&(this._isVisible=e,this.updateRenderedElementVisibility(),this._renderedElement&&et(this))},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"hasVisibleSeparator",{get:function(){var e=this.getParentContainer();return!!e&&this.separatorElement&&!e.isFirstElement(this)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"renderedElement",{get:function(){return this._renderedElement},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"separatorElement",{get:function(){return this._separatorElement},enumerable:!0,configurable:!0}),m);function m(){this._shouldFallback=!1,this._lang=void 0,this._hostConfig=null,this._parent=null,this._renderedElement=null,this._separatorElement=null,this._isVisible=!0,this._truncatedDueToOverflow=!1,this._defaultRenderedElementDisplayMode=null,this._padding=null,this.requires=new l.HostCapabilities,this.horizontalAlignment=null,this.spacing=o.Spacing.Default,this.separator=!1,this.customCssSelector=null,this.height="auto",this.minPixelHeight=null}t.CardElement=f;var y,v=(r(C,y=f),C.prototype.restoreOriginalContent=function(){var e=this.maxLines?this._computedLineHeight*this.maxLines+"px":null;this.renderedElement.style.maxHeight=e,this.renderedElement.innerHTML=this._originalInnerHtml},C.prototype.truncateIfSupported=function(e){var t=this.renderedElement.children,n=!t.length;return!!(n||1==t.length&&"p"==t[0].tagName.toLowerCase())&&(t=n?this.renderedElement:t[0],a.truncate(t,e,this._computedLineHeight),!0)},C.prototype.getEffectiveStyleDefinition=function(){if(!this._effectiveStyleDefinition){this._effectiveStyleDefinition=this.hostConfig.containerStyles.default;for(var e=this.getParentContainer();e;){if(e.style){this._effectiveStyleDefinition=this.hostConfig.containerStyles.getStyleByName(e.style);break}e=e.getParentContainer()}}return this._effectiveStyleDefinition},C.prototype.getRenderedDomElementType=function(){return"div"},C.prototype.internalRender=function(){var e=this;if(this._effectiveStyleDefinition=null,this._processedText=null,a.isNullOrEmpty(this.text))return null;var t,n,i,r=this.hostConfig,o=document.createElement(this.getRenderedDomElementType());o.classList.add(r.makeCssClassName("ac-textBlock")),o.style.overflow="hidden",this.applyStylesTo(o),this.selectAction&&(o.onclick=function(t){e.selectAction.execute(),t.cancelBubble=!0}),this._processedText||(this._treatAsPlainText=!0,i=c.formatText(this.lang,this.text),this.useMarkdown?(at.allowMarkForTextHighlighting&&(i=i.replace(/<mark>/g,"===").replace(/<\/mark>/g,"/==/")),(n=at.applyMarkdown(i)).didProcess&&n.outputHtml?(this._processedText=n.outputHtml,this._treatAsPlainText=!1,at.allowMarkForTextHighlighting&&(t="",(n=this.getEffectiveStyleDefinition()).highlightBackgroundColor&&(t+="background-color: "+n.highlightBackgroundColor+";"),n.highlightForegroundColor&&(t+="color: "+n.highlightForegroundColor+";"),a.isNullOrEmpty(t)||(t='style="'+t+'"'),this._processedText=this._processedText.replace(/===/g,"<mark "+t+">").replace(/\/==\//g,"</mark>"))):(this._processedText=i,this._treatAsPlainText=!0)):(this._processedText=i,this._treatAsPlainText=!0)),this._treatAsPlainText?o.innerText=this._processedText:o.innerHTML=this._processedText,o.firstElementChild instanceof HTMLElement&&((i=o.firstElementChild).style.marginTop="0px",i.style.width="100%",this.wrap||(i.style.overflow="hidden",i.style.textOverflow="ellipsis")),o.lastElementChild instanceof HTMLElement&&(o.lastElementChild.style.marginBottom="0px");for(var s=o.getElementsByTagName("a"),l=0;l<s.length;l++){var u=s[l];u.classList.add(this.hostConfig.makeCssClassName("ac-anchor")),u.target="_blank",u.onclick=function(t){var n,i,r;n=e,i=t.target,null!=(r=((r=n.getRootElement())&&r.onAnchorClicked?r:at).onAnchorClicked)&&r(n,i)&&t.preventDefault()}}return this.wrap?(o.style.wordWrap="break-word",0<this.maxLines&&(o.style.maxHeight=this._computedLineHeight*this.maxLines+"px",o.style.overflow="hidden")):(o.style.whiteSpace="nowrap",o.style.textOverflow="ellipsis"),(at.useAdvancedTextBlockTruncation||at.useAdvancedCardBottomTruncation)&&(this._originalInnerHtml=o.innerHTML),null!=this.selectAction&&r.supportsInteractivity&&(o.tabIndex=0,o.setAttribute("role","button"),o.setAttribute("aria-label",this.selectAction.title),o.classList.add(r.makeCssClassName("ac-selectable"))),o},C.prototype.truncateOverflow=function(e){return e>=this._computedLineHeight&&this.truncateIfSupported(e)},C.prototype.undoOverflowTruncation=function(){var e;this.restoreOriginalContent(),at.useAdvancedTextBlockTruncation&&this.maxLines&&(e=this._computedLineHeight*this.maxLines,this.truncateIfSupported(e))},C.prototype.toJSON=function(){var e=y.prototype.toJSON.call(this);return a.setEnumProperty(o.TextSize,e,"size",this.size,o.TextSize.Default),a.setEnumProperty(o.TextWeight,e,"weight",this.weight,o.TextWeight.Default),a.setEnumProperty(o.TextColor,e,"color",this.color,o.TextColor.Default),a.setProperty(e,"text",this.text),a.setProperty(e,"isSubtle",this.isSubtle,!1),a.setProperty(e,"wrap",this.wrap,!1),a.setProperty(e,"maxLines",this.maxLines,0),e},C.prototype.applyStylesTo=function(e){this.hostConfig.fontFamily&&(e.style.fontFamily=this.hostConfig.fontFamily);var t,n=this.getParentContainer(),i=!!n&&n.isRtl();switch(this.horizontalAlignment){case o.HorizontalAlignment.Center:e.style.textAlign="center";break;case o.HorizontalAlignment.Right:e.style.textAlign=i?"left":"right";break;default:e.style.textAlign=i?"right":"left"}switch(this.size){case o.TextSize.Small:t=this.hostConfig.fontSizes.small;break;case o.TextSize.Medium:t=this.hostConfig.fontSizes.medium;break;case o.TextSize.Large:t=this.hostConfig.fontSizes.large;break;case o.TextSize.ExtraLarge:t=this.hostConfig.fontSizes.extraLarge;break;default:t=this.hostConfig.fontSizes.default}if(this.hostConfig.lineHeights)switch(this.size){case o.TextSize.Small:this._computedLineHeight=this.hostConfig.lineHeights.small;break;case o.TextSize.Medium:this._computedLineHeight=this.hostConfig.lineHeights.medium;break;case o.TextSize.Large:this._computedLineHeight=this.hostConfig.lineHeights.large;break;case o.TextSize.ExtraLarge:this._computedLineHeight=this.hostConfig.lineHeights.extraLarge;break;default:this._computedLineHeight=this.hostConfig.lineHeights.default}else this._computedLineHeight=1.33*t;e.style.fontSize=t+"px",e.style.lineHeight=this._computedLineHeight+"px";var r,s,l=this.getEffectiveStyleDefinition();switch(this.color||o.TextColor.Default){case o.TextColor.Accent:r=l.foregroundColors.accent;break;case o.TextColor.Dark:r=l.foregroundColors.dark;break;case o.TextColor.Light:r=l.foregroundColors.light;break;case o.TextColor.Good:r=l.foregroundColors.good;break;case o.TextColor.Warning:r=l.foregroundColors.warning;break;case o.TextColor.Attention:r=l.foregroundColors.attention;break;default:r=l.foregroundColors.default}switch(e.style.color=a.stringToCssColor(this.isSubtle?r.subtle:r.default),this.weight){case o.TextWeight.Lighter:s=this.hostConfig.fontWeights.lighter;break;case o.TextWeight.Bolder:s=this.hostConfig.fontWeights.bolder;break;default:s=this.hostConfig.fontWeights.default}e.style.fontWeight=s.toString()},C.prototype.parse=function(e,t){y.prototype.parse.call(this,e,t),this.text=e.text;var n=e.size;n&&"string"==typeof n&&"normal"===n.toLowerCase()?(this.size=o.TextSize.Default,tt({error:o.ValidationError.Deprecated,message:'The TextBlock.size value "normal" is deprecated and will be removed. Use "default" instead.'},t)):this.size=a.getEnumValueOrDefault(o.TextSize,n,this.size),(n=e.weight)&&"string"==typeof n&&"normal"===n.toLowerCase()?(this.weight=o.TextWeight.Default,tt({error:o.ValidationError.Deprecated,message:'The TextBlock.weight value "normal" is deprecated and will be removed. Use "default" instead.'},t)):this.weight=a.getEnumValueOrDefault(o.TextWeight,n,this.weight),this.color=a.getEnumValueOrDefault(o.TextColor,e.color,this.color),this.isSubtle=a.parseBoolProperty(e.isSubtle,this.isSubtle),this.wrap=a.parseBoolProperty(e.wrap,this.wrap),"number"==typeof e.maxLines&&(this.maxLines=e.maxLines)},C.prototype.getJsonTypeName=function(){return"TextBlock"},C.prototype.renderSpeech=function(){return null!=this.speak?this.speak+"\n":this.text?"<s>"+this.text+"</s>\n":null},C.prototype.updateLayout=function(e){void 0===e&&(e=!1),y.prototype.updateLayout.call(this,e),at.useAdvancedTextBlockTruncation&&this.maxLines&&this.isRendered()&&(this.restoreOriginalContent(),e=this._computedLineHeight*this.maxLines,this.truncateIfSupported(e))},Object.defineProperty(C.prototype,"text",{get:function(){return this._text},set:function(e){this._text!=e&&(this._text=e,this._processedText=null)},enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"selectAction",{get:function(){return this._selectAction},set:function(e){this._selectAction=e,this._selectAction&&this._selectAction.setParent(this)},enumerable:!0,configurable:!0}),C);function C(){var e=null!==y&&y.apply(this,arguments)||this;return e._processedText=null,e._treatAsPlainText=!0,e._selectAction=null,e._effectiveStyleDefinition=null,e.size=o.TextSize.Default,e.weight=o.TextWeight.Default,e.color=o.TextColor.Default,e.isSubtle=!1,e.wrap=!1,e.useMarkdown=!0,e}t.TextBlock=v;var b,A=(r(x,b=v),x.prototype.getRenderedDomElementType=function(){return"label"},x.prototype.internalRender=function(){var e=b.prototype.internalRender.call(this);return a.isNullOrEmpty(this.forElementId)||(e.htmlFor=this.forElementId),e},x);function x(){return null!==b&&b.apply(this,arguments)||this}var S=(I.prototype.toJSON=function(){return{title:this.name,value:this.value}},I.prototype.renderSpeech=function(){return null!=this.speak?this.speak+"\n":"<s>"+this.name+" "+this.value+"</s>\n"},I);function I(e,t){void 0===e&&(e=void 0),void 0===t&&(t=void 0),this.name=e,this.value=t}t.Fact=S;var E,w=(r(_,E=f),Object.defineProperty(_.prototype,"useDefaultSizing",{get:function(){return!1},enumerable:!0,configurable:!0}),_.prototype.internalRender=function(){var e=null,t=this.hostConfig;if(0<this.facts.length){(e=document.createElement("table")).style.borderWidth="0px",e.style.borderSpacing="0px",e.style.borderStyle="none",e.style.borderCollapse="collapse",e.style.display="block",e.style.overflow="hidden",e.classList.add(t.makeCssClassName("ac-factset"));for(var n=0;n<this.facts.length;n++){var i=document.createElement("tr");0<n&&(i.style.marginTop=this.hostConfig.factSet.spacing+"px");var r=document.createElement("td");r.style.padding="0",r.classList.add(t.makeCssClassName("ac-fact-title")),this.hostConfig.factSet.title.maxWidth&&(r.style.maxWidth=this.hostConfig.factSet.title.maxWidth+"px"),r.style.verticalAlign="top";var s=new v;s.setParent(this),s.text=a.isNullOrEmpty(this.facts[n].name)?"Title":this.facts[n].name,s.size=this.hostConfig.factSet.title.size,s.color=this.hostConfig.factSet.title.color,s.isSubtle=this.hostConfig.factSet.title.isSubtle,s.weight=this.hostConfig.factSet.title.weight,s.wrap=this.hostConfig.factSet.title.wrap,s.spacing=o.Spacing.None,a.appendChild(r,s.render()),a.appendChild(i,r),(r=document.createElement("td")).style.width="10px",a.appendChild(i,r),(r=document.createElement("td")).style.verticalAlign="top",r.classList.add(t.makeCssClassName("ac-fact-value")),(s=new v).setParent(this),s.text=a.isNullOrEmpty(this.facts[n].value)?"Value":this.facts[n].value,s.size=this.hostConfig.factSet.value.size,s.color=this.hostConfig.factSet.value.color,s.isSubtle=this.hostConfig.factSet.value.isSubtle,s.weight=this.hostConfig.factSet.value.weight,s.wrap=this.hostConfig.factSet.value.wrap,s.spacing=o.Spacing.None,a.appendChild(r,s.render()),a.appendChild(i,r),a.appendChild(e,i)}}return e},_.prototype.getJsonTypeName=function(){return"FactSet"},_.prototype.toJSON=function(){for(var e=E.prototype.toJSON.call(this),t=[],n=0,i=this.facts;n<i.length;n++){var r=i[n];t.push(r.toJSON())}return a.setProperty(e,"facts",t),e},_.prototype.parse=function(e,t){if(E.prototype.parse.call(this,e,t),this.facts=[],null!=e.facts){var n=e.facts;this.facts=[];for(var i=0;i<n.length;i++){var r=new S;r.name=n[i].title,r.value=n[i].value,r.speak=n[i].speak,this.facts.push(r)}}},_.prototype.renderSpeech=function(){if(null!=this.speak)return this.speak+"\n";var e=null;if(0<this.facts.length){e="";for(var t=0;t<this.facts.length;t++){var n=this.facts[t].renderSpeech();n&&(e+=n)}}return"<p>"+e+"\n</p>\n"},_);function _(){var e=null!==E&&E.apply(this,arguments)||this;return e.facts=[],e}t.FactSet=w;var P,k=(r(T,P=f),T.prototype.parseDimension=function(e,t,n){if(t){if("string"==typeof t)try{var i=s.SizeAndUnit.parse(t);if(i.unit==o.SizeUnit.Pixel)return i.physicalSize}catch(e){}tt({error:o.ValidationError.InvalidPropertyValue,message:"Invalid image "+e+": "+t},n)}return 0},T.prototype.applySize=function(e){if(this.pixelWidth||this.pixelHeight)this.pixelWidth&&(e.style.width=this.pixelWidth+"px"),this.pixelHeight&&(e.style.height=this.pixelHeight+"px");else switch(this.size){case o.Size.Stretch:e.style.width="100%";break;case o.Size.Auto:e.style.maxWidth="100%";break;case o.Size.Small:e.style.width=this.hostConfig.imageSizes.small+"px";break;case o.Size.Large:e.style.width=this.hostConfig.imageSizes.large+"px";break;case o.Size.Medium:e.style.width=this.hostConfig.imageSizes.medium+"px"}},Object.defineProperty(T.prototype,"useDefaultSizing",{get:function(){return!1},enumerable:!0,configurable:!0}),T.prototype.internalRender=function(){var e=this,t=null;if(!a.isNullOrEmpty(this.url)){switch((t=document.createElement("div")).style.display="flex",t.style.alignItems="flex-start",t.onkeypress=function(t){e.selectAction&&(13!=t.keyCode&&32!=t.keyCode||e.selectAction.execute())},t.onclick=function(t){e.selectAction&&(e.selectAction.execute(),t.cancelBubble=!0)},this.horizontalAlignment){case o.HorizontalAlignment.Center:t.style.justifyContent="center";break;case o.HorizontalAlignment.Right:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}var n=this.hostConfig,i=document.createElement("img");i.onload=function(t){Xe(e)},i.onerror=function(t){var n=e.getRootElement();e.renderedElement.innerHTML="",n&&n.designMode&&((n=document.createElement("div")).style.display="flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.backgroundColor="#EEEEEE",n.style.color="black",n.innerText=":-(",n.style.padding="10px",e.applySize(n),e.renderedElement.appendChild(n)),Xe(e)},i.style.maxHeight="100%",i.style.minWidth="0",i.classList.add(n.makeCssClassName("ac-image")),null!=this.selectAction&&n.supportsInteractivity&&(i.tabIndex=0,i.setAttribute("role","button"),i.setAttribute("aria-label",this.selectAction.title),i.classList.add(n.makeCssClassName("ac-selectable"))),this.applySize(i),this.style===o.ImageStyle.Person&&(i.style.borderRadius="50%",i.style.backgroundPosition="50% 50%",i.style.backgroundRepeat="no-repeat"),a.isNullOrEmpty(this.backgroundColor)||(i.style.backgroundColor=a.stringToCssColor(this.backgroundColor)),i.src=this.url,i.alt=this.altText,t.appendChild(i)}return t},T.prototype.toJSON=function(){var e=P.prototype.toJSON.call(this);return this._selectAction&&a.setProperty(e,"selectAction",this._selectAction.toJSON()),a.setEnumProperty(o.ImageStyle,e,"style",this.style,o.ImageStyle.Default),a.setProperty(e,"backgroundColor",this.backgroundColor),a.setProperty(e,"url",this.url),a.setEnumProperty(o.Size,e,"size",this.size,o.Size.Auto),this.pixelWidth&&a.setProperty(e,"width",this.pixelWidth+"px"),this.pixelHeight&&a.setProperty(e,"height",this.pixelHeight+"px"),a.setProperty(e,"altText",this.altText),e},T.prototype.getJsonTypeName=function(){return"Image"},T.prototype.getActionById=function(e){var t=P.prototype.getActionById.call(this,e);return!t&&this.selectAction&&(t=this.selectAction.getActionById(e)),t},T.prototype.parse=function(e,t){P.prototype.parse.call(this,e,t),this.url=e.url,this.backgroundColor=e.backgroundColor;var n=e.style;n&&"string"==typeof n&&"normal"===n.toLowerCase()?(this.style=o.ImageStyle.Default,tt({error:o.ValidationError.Deprecated,message:'The Image.style value "normal" is deprecated and will be removed. Use "default" instead.'},t)):this.style=a.getEnumValueOrDefault(o.ImageStyle,n,this.style),this.size=a.getEnumValueOrDefault(o.Size,e.size,this.size),this.altText=e.altText,e.pixelWidth&&"number"==typeof e.pixelWidth&&(this.pixelWidth=e.pixelWidth,tt({error:o.ValidationError.Deprecated,message:"The pixelWidth property is deprecated and will be removed. Use the width property instead."},t)),e.pixelHeight&&"number"==typeof e.pixelHeight&&(this.pixelHeight=e.pixelHeight,tt({error:o.ValidationError.Deprecated,message:"The pixelHeight property is deprecated and will be removed. Use the height property instead."},t)),0<(n=this.parseDimension("width",e.width,t))&&(this.pixelWidth=n),0<(n=this.parseDimension("height",e.height,t))&&(this.pixelHeight=n),this.selectAction=h(this,e.selectAction,t)},T.prototype.getResourceInformation=function(){return a.isNullOrEmpty(this.url)?[]:[{url:this.url,mimeType:"image"}]},T.prototype.renderSpeech=function(){return null!=this.speak?this.speak+"\n":null},Object.defineProperty(T.prototype,"selectAction",{get:function(){return this._selectAction},set:function(e){this._selectAction=e,this._selectAction&&this._selectAction.setParent(this)},enumerable:!0,configurable:!0}),T);function T(){var e=null!==P&&P.apply(this,arguments)||this;return e.style=o.ImageStyle.Default,e.size=o.Size.Auto,e.pixelWidth=null,e.pixelHeight=null,e.altText="",e}t.Image=k;var M,O=(r(D,M=f),D.prototype.applyPadding=function(){var e;M.prototype.applyPadding.call(this),this.renderedElement&&(e=new s.SpacingDefinition,this.getEffectivePadding()&&(e=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),this.renderedElement.style.paddingTop=e.top+"px",this.renderedElement.style.paddingRight=e.right+"px",this.renderedElement.style.paddingBottom=e.bottom+"px",this.renderedElement.style.paddingLeft=e.left+"px",this.renderedElement.style.marginRight="0",this.renderedElement.style.marginLeft="0")},D.prototype.getSelectAction=function(){return this._selectAction},D.prototype.setSelectAction=function(e){this._selectAction=e,this._selectAction&&this._selectAction.setParent(this)},Object.defineProperty(D.prototype,"isSelectable",{get:function(){return!1},enumerable:!0,configurable:!0}),D.prototype.parse=function(e,t){M.prototype.parse.call(this,e,t),this.isSelectable&&(this._selectAction=h(this,e.selectAction,t))},D.prototype.toJSON=function(){var e=M.prototype.toJSON.call(this);return this._selectAction&&this.isSelectable&&a.setProperty(e,"selectAction",this._selectAction.toJSON()),e},D.prototype.validate=function(){for(var e=[],t=0;t<this.getItemCount();t++)e=e.concat(this.getItemAt(t).validate());return this._selectAction&&(e=e.concat(this._selectAction.validate())),e},D.prototype.render=function(){var e=this,t=M.prototype.render.call(this),n=this.hostConfig;return this.isSelectable&&this._selectAction&&n.supportsInteractivity&&(t.classList.add(n.makeCssClassName("ac-selectable")),t.tabIndex=0,t.setAttribute("role","button"),t.setAttribute("aria-label",this._selectAction.title),t.onclick=function(t){null!=e._selectAction&&(e._selectAction.execute(),t.cancelBubble=!0)},t.onkeypress=function(t){null!=e._selectAction&&(13!=t.keyCode&&32!=t.keyCode||e._selectAction.execute())}),t},D.prototype.updateLayout=function(e){if(void 0===e&&(e=!0),M.prototype.updateLayout.call(this,e),e)for(var t=0;t<this.getItemCount();t++)this.getItemAt(t).updateLayout()},D.prototype.getAllInputs=function(){for(var e=[],t=0;t<this.getItemCount();t++)e=e.concat(this.getItemAt(t).getAllInputs());return e},D.prototype.getResourceInformation=function(){for(var e=[],t=0;t<this.getItemCount();t++)e=e.concat(this.getItemAt(t).getResourceInformation());return e},D.prototype.getElementById=function(e){var t=M.prototype.getElementById.call(this,e);if(!t)for(var n=0;n<this.getItemCount()&&!(t=this.getItemAt(n).getElementById(e));n++);return t},D);function D(){var e=null!==M&&M.apply(this,arguments)||this;return e._selectAction=null,e}t.CardElementContainer=O;var F,R=(r(V,F=O),V.prototype.internalRender=function(){var e=null;if(0<this._images.length){(e=document.createElement("div")).style.display="flex",e.style.flexWrap="wrap";for(var t=0;t<this._images.length;t++){this._images[t].size=this.imageSize;var n=this._images[t].render();n.style.display="inline-flex",n.style.margin="0px",n.style.marginRight="10px",n.style.maxHeight=this.hostConfig.imageSet.maxImageHeight+"px",a.appendChild(e,n)}}return e},V.prototype.getItemCount=function(){return this._images.length},V.prototype.getItemAt=function(e){return this._images[e]},V.prototype.getFirstVisibleRenderedItem=function(){return this._images&&0<this._images.length?this._images[0]:null},V.prototype.getLastVisibleRenderedItem=function(){return this._images&&0<this._images.length?this._images[this._images.length-1]:null},V.prototype.removeItem=function(e){if(e instanceof k){var t=this._images.indexOf(e);if(0<=t)return this._images.splice(t,1),e.setParent(null),this.updateLayout(),!0}return!1},V.prototype.getJsonTypeName=function(){return"ImageSet"},V.prototype.toJSON=function(){var e=F.prototype.toJSON.call(this);if(a.setEnumProperty(o.Size,e,"imageSize",this.imageSize,o.Size.Medium),0<this._images.length){for(var t=[],n=0,i=this._images;n<i.length;n++){var r=i[n];t.push(r.toJSON())}a.setProperty(e,"images",t)}return e},V.prototype.parse=function(e,t){if(F.prototype.parse.call(this,e,t),this.imageSize=a.getEnumValueOrDefault(o.Size,e.imageSize,o.Size.Medium),null!=e.images){var n=e.images;this._images=[];for(var i=0;i<n.length;i++){var r=new k;r.parse(n[i],t),this.addImage(r)}}},V.prototype.addImage=function(e){if(e.parent)throw new Error("This image already belongs to another ImageSet");this._images.push(e),e.setParent(this)},V.prototype.indexOf=function(e){return e instanceof k?this._images.indexOf(e):-1},V.prototype.renderSpeech=function(){if(null!=this.speak)return this.speak;var e=null;if(0<this._images.length){e="";for(var t=0;t<this._images.length;t++)e+=this._images[t].renderSpeech()}return e},V);function V(){var e=null!==F&&F.apply(this,arguments)||this;return e._images=[],e.imageSize=o.Size.Medium,e}t.ImageSet=R;var B=(N.prototype.parse=function(e,t){this.mimeType=e.mimeType,this.url=e.url},N.prototype.toJSON=function(){return{mimeType:this.mimeType,url:this.url}},N);function N(e,t){void 0===e&&(e=void 0),void 0===t&&(t=void 0),this.url=e,this.mimeType=t}t.MediaSource=B;var z,L=(r(H,z=f),H.prototype.getPosterUrl=function(){return this.poster||this.hostConfig.media.defaultPoster},H.prototype.processSources=function(){this._selectedSources=[],this._selectedMediaType=void 0;for(var e=0,t=this.sources;e<t.length;e++){var n,i=t[e],r=i.mimeType.split("/");2==r.length&&(this._selectedMediaType||0<=(n=H.supportedMediaTypes.indexOf(r[0]))&&(this._selectedMediaType=H.supportedMediaTypes[n]),r[0]==this._selectedMediaType&&this._selectedSources.push(i))}},H.prototype.renderPoster=function(){var e=this,t=document.createElement("div");t.className="ac-media-poster",t.setAttribute("role","contentinfo"),t.setAttribute("aria-label",this.altText||"Media content"),t.style.position="relative",t.style.display="flex";var n,i,r=this.getPosterUrl();return r?((n=document.createElement("img")).style.width="100%",n.style.height="100%",n.onerror=function(e){n.parentNode.removeChild(n),t.classList.add("empty"),t.style.minHeight="150px"},n.src=r,t.appendChild(n)):(t.classList.add("empty"),t.style.minHeight="150px"),this.hostConfig.supportsInteractivity&&0<this._selectedSources.length&&((i=document.createElement("div")).setAttribute("role","button"),i.setAttribute("aria-label","Play media"),i.className="ac-media-playButton",i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="center",i.onclick=function(t){var n;e.hostConfig.media.allowInlinePlayback?(n=e.renderMediaPlayer(),e.renderedElement.innerHTML="",e.renderedElement.appendChild(n),n.play()):H.onPlay&&H.onPlay(e)},(r=document.createElement("div")).className="ac-media-playButton-arrow",r.style.width="12px",r.style.height="15px",r.style.borderTopWidth="7.5px",r.style.borderBottomWidth="7.5px",r.style.borderLeftWidth="12px",r.style.borderRightWidth="0",r.style.borderStyle="solid",r.style.borderTopColor="transparent",r.style.borderRightColor="transparent",r.style.borderBottomColor="transparent",r.style.transform="translate(1.2px,0px)",i.appendChild(r),(r=document.createElement("div")).style.position="absolute",r.style.left="0",r.style.top="0",r.style.width="100%",r.style.height="100%",r.style.display="flex",r.style.justifyContent="center",r.style.alignItems="center",r.appendChild(i),t.appendChild(r)),t},H.prototype.renderMediaPlayer=function(){var e,t,n="video"==this._selectedMediaType?(e=document.createElement("video"),(t=this.getPosterUrl())&&(e.poster=t),e):document.createElement("audio");n.controls=!0,n.preload="none",n.style.width="100%";for(var i=0,r=this.sources;i<r.length;i++){var o=r[i],s=document.createElement("source");s.src=o.url,s.type=o.mimeType,n.appendChild(s)}return n},H.prototype.internalRender=function(){var e=document.createElement("div");return e.className=this.hostConfig.makeCssClassName("ac-media"),this.processSources(),e.appendChild(this.renderPoster()),e},H.prototype.parse=function(e,t){if(z.prototype.parse.call(this,e,t),this.poster=e.poster,this.altText=e.altText,null!=e.sources){var n=e.sources;this.sources=[];for(var i=0;i<n.length;i++){var r=new B;r.parse(n[i],t),this.sources.push(r)}}},H.prototype.toJSON=function(){var e=z.prototype.toJSON.call(this);if(a.setProperty(e,"poster",this.poster),a.setProperty(e,"altText",this.altText),0<this.sources.length){for(var t=[],n=0,i=this.sources;n<i.length;n++){var r=i[n];t.push(r.toJSON())}a.setProperty(e,"sources",t)}return e},H.prototype.getJsonTypeName=function(){return"Media"},H.prototype.getResourceInformation=function(){var e=[],t=this.getPosterUrl();a.isNullOrEmpty(t)||e.push({url:t,mimeType:"image"});for(var n=0,i=this.sources;n<i.length;n++){var r=i[n];a.isNullOrEmpty(r.url)||e.push({url:r.url,mimeType:r.mimeType})}return e},H.prototype.renderSpeech=function(){return this.altText},Object.defineProperty(H.prototype,"selectedMediaType",{get:function(){return this._selectedMediaType},enumerable:!0,configurable:!0}),H.supportedMediaTypes=["audio","video"],H);function H(){var e=null!==z&&z.apply(this,arguments)||this;return e.sources=[],e}t.Media=L;var j,U=(r(J,j=f),J.prototype.valueChanged=function(){this.onValueChanged&&this.onValueChanged(this)},J.prototype.toJSON=function(){var e=j.prototype.toJSON.call(this);return a.setProperty(e,"title",this.title),a.setProperty(e,"value",this.renderedElement?this.value:this.defaultValue),e},J.prototype.validate=function(){return this.id?[]:[{error:o.ValidationError.PropertyCantBeNull,message:"All inputs must have a unique Id"}]},J.prototype.parse=function(e,t){j.prototype.parse.call(this,e,t),this.id=e.id,this.defaultValue=e.value},J.prototype.renderSpeech=function(){return null!=this.speak?this.speak:this.title?"<s>"+this.title+"</s>\n":null},J.prototype.getAllInputs=function(){return[this]},Object.defineProperty(J.prototype,"isInteractive",{get:function(){return!0},enumerable:!0,configurable:!0}),J);function J(){return null!==j&&j.apply(this,arguments)||this}t.Input=U;var q,W=(r(G,q=U),G.prototype.internalRender=function(){var e=this;return this.isMultiline?(this._textareaElement=document.createElement("textarea"),this._textareaElement.className=this.hostConfig.makeCssClassName("ac-input","ac-textInput","ac-multiline"),this._textareaElement.style.width="100%",this._textareaElement.tabIndex=0,a.isNullOrEmpty(this.placeholder)||(this._textareaElement.placeholder=this.placeholder,this._textareaElement.setAttribute("aria-label",this.placeholder)),a.isNullOrEmpty(this.defaultValue)||(this._textareaElement.value=this.defaultValue),0<this.maxLength&&(this._textareaElement.maxLength=this.maxLength),this._textareaElement.oninput=function(){e.valueChanged()},this._textareaElement):(this._inputElement=document.createElement("input"),this._inputElement.type=o.InputTextStyle[this.style].toLowerCase(),this._inputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-textInput"),this._inputElement.style.width="100%",this._inputElement.tabIndex=0,a.isNullOrEmpty(this.placeholder)||(this._inputElement.placeholder=this.placeholder,this._inputElement.setAttribute("aria-label",this.placeholder)),a.isNullOrEmpty(this.defaultValue)||(this._inputElement.value=this.defaultValue),0<this.maxLength&&(this._inputElement.maxLength=this.maxLength),this._inputElement.oninput=function(){e.valueChanged()},this._inputElement)},G.prototype.getJsonTypeName=function(){return"Input.Text"},G.prototype.toJSON=function(){var e=q.prototype.toJSON.call(this);return a.setProperty(e,"placeholder",this.placeholder),a.setProperty(e,"maxLength",this.maxLength,0),a.setProperty(e,"isMultiline",this.isMultiline,!1),a.setEnumProperty(o.InputTextStyle,e,"style",this.style,o.InputTextStyle.Text),e},G.prototype.parse=function(e,t){q.prototype.parse.call(this,e,t),this.maxLength=e.maxLength,this.isMultiline=a.parseBoolProperty(e.isMultiline,this.isMultiline),this.placeholder=e.placeholder,this.style=a.getEnumValueOrDefault(o.InputTextStyle,e.style,this.style)},Object.defineProperty(G.prototype,"value",{get:function(){return this.isMultiline?this._textareaElement?this._textareaElement.value:null:this._inputElement?this._inputElement.value:null},enumerable:!0,configurable:!0}),G);function G(){var e=null!==q&&q.apply(this,arguments)||this;return e.isMultiline=!1,e.style=o.InputTextStyle.Text,e}t.TextInput=W;var K,Y=(r(Z,K=U),Z.prototype.internalRender=function(){var e,t,n=this,i=document.createElement("div");return i.className=this.hostConfig.makeCssClassName("ac-input"),i.style.width="100%",i.style.display="flex",i.style.alignItems="center",this._checkboxInputElement=document.createElement("input"),this._checkboxInputElement.id=a.generateUniqueId(),this._checkboxInputElement.type="checkbox",this._checkboxInputElement.style.display="inline-block",this._checkboxInputElement.style.verticalAlign="middle",this._checkboxInputElement.style.margin="0",this._checkboxInputElement.style.flex="0 0 auto",this._checkboxInputElement.setAttribute("aria-label",this.title),this._checkboxInputElement.tabIndex=0,this.defaultValue==this.valueOn&&(this._checkboxInputElement.checked=!0),this._checkboxInputElement.onchange=function(){n.valueChanged()},a.appendChild(i,this._checkboxInputElement),a.isNullOrEmpty(this.title)&&!this.isDesignMode()||((t=new A).setParent(this),t.forElementId=this._checkboxInputElement.id,t.hostConfig=this.hostConfig,t.text=a.isNullOrEmpty(this.title)?this.getJsonTypeName():this.title,t.useMarkdown=at.useMarkdownInRadioButtonAndCheckbox,t.wrap=this.wrap,(e=t.render()).style.display="inline-block",e.style.flex="1 1 auto",e.style.marginLeft="6px",e.style.verticalAlign="middle",(t=document.createElement("div")).style.width="6px",a.appendChild(i,t),a.appendChild(i,e)),i},Z.prototype.getJsonTypeName=function(){return"Input.Toggle"},Z.prototype.toJSON=function(){var e=K.prototype.toJSON.call(this);return a.setProperty(e,"valueOn",this.valueOn,"true"),a.setProperty(e,"valueOff",this.valueOff,"false"),a.setProperty(e,"wrap",this.wrap),e},Z.prototype.parse=function(e,t){K.prototype.parse.call(this,e,t),this.title=e.title,this.valueOn=a.getValueOrDefault(e.valueOn,this.valueOn),this.valueOff=a.getValueOrDefault(e.valueOff,this.valueOff),this.wrap=a.parseBoolProperty(e.wrap,this.wrap)},Object.defineProperty(Z.prototype,"value",{get:function(){return this._checkboxInputElement?this._checkboxInputElement.checked?this.valueOn:this.valueOff:null},enumerable:!0,configurable:!0}),Z);function Z(){var e=null!==K&&K.apply(this,arguments)||this;return e.valueOn="true",e.valueOff="false",e.wrap=!1,e}t.ToggleInput=Y;var Q=(X.prototype.toJSON=function(){return{title:this.title,value:this.value}},X);function X(e,t){void 0===e&&(e=void 0),void 0===t&&(t=void 0),this.title=e,this.value=t}t.Choice=Q;var $,ee=(r(te,$=U),te.getUniqueCategoryName=function(){var e="__ac-category"+te.uniqueCategoryCounter;return te.uniqueCategoryCounter++,e},te.prototype.internalRender=function(){var e=this;if(this.isMultiSelect){var t=this.defaultValue?this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator):null;(l=document.createElement("div")).className=this.hostConfig.makeCssClassName("ac-input"),l.style.width="100%",this._toggleInputs=[];for(var n=0;n<this.choices.length;n++){var i=document.createElement("input");i.id=a.generateUniqueId(),i.type="checkbox",i.style.margin="0",i.style.display="inline-block",i.style.verticalAlign="middle",i.value=this.choices[n].value,i.style.flex="0 0 auto",i.setAttribute("aria-label",this.choices[n].title),t&&0<=t.indexOf(this.choices[n].value)&&(i.checked=!0),i.onchange=function(){e.valueChanged()},this._toggleInputs.push(i),(p=new A).setParent(this),p.forElementId=i.id,p.hostConfig=this.hostConfig,p.text=a.isNullOrEmpty(this.choices[n].title)?"Choice "+n:this.choices[n].title,p.useMarkdown=at.useMarkdownInRadioButtonAndCheckbox,p.wrap=this.wrap,(d=p.render()).style.display="inline-block",d.style.flex="1 1 auto",d.style.marginLeft="6px",d.style.verticalAlign="middle",(h=document.createElement("div")).style.width="6px",(g=document.createElement("div")).style.display="flex",g.style.alignItems="center",a.appendChild(g,i),a.appendChild(g,h),a.appendChild(g,d),a.appendChild(l,g)}return l}if(this.isCompact){this._selectElement=document.createElement("select"),this._selectElement.className=this.hostConfig.makeCssClassName("ac-input","ac-multichoiceInput"),this._selectElement.style.width="100%";var r=document.createElement("option");r.selected=!0,r.disabled=!0,r.hidden=!0,r.value="",this.placeholder&&(r.text=this.placeholder),a.appendChild(this._selectElement,r);for(var o=0;o<this.choices.length;o++){var s=document.createElement("option");s.value=this.choices[o].value,s.text=this.choices[o].title,s.setAttribute("aria-label",this.choices[o].title),this.choices[o].value==this.defaultValue&&(s.selected=!0),a.appendChild(this._selectElement,s)}return this._selectElement.onchange=function(){e.valueChanged()},this._selectElement}var l,c=te.getUniqueCategoryName();(l=document.createElement("div")).className=this.hostConfig.makeCssClassName("ac-input"),l.style.width="100%",this._toggleInputs=[];for(var u=0;u<this.choices.length;u++){var p,d,h,g,f=document.createElement("input");f.id=a.generateUniqueId(),f.type="radio",f.style.margin="0",f.style.display="inline-block",f.style.verticalAlign="middle",f.name=a.isNullOrEmpty(this.id)?c:this.id,f.value=this.choices[u].value,f.style.flex="0 0 auto",f.setAttribute("aria-label",this.choices[u].title),this.choices[u].value==this.defaultValue&&(f.checked=!0),f.onchange=function(){e.valueChanged()},this._toggleInputs.push(f),(p=new A).setParent(this),p.forElementId=f.id,p.hostConfig=this.hostConfig,p.text=a.isNullOrEmpty(this.choices[u].title)?"Choice "+u:this.choices[u].title,p.useMarkdown=at.useMarkdownInRadioButtonAndCheckbox,p.wrap=this.wrap,(d=p.render()).style.display="inline-block",d.style.flex="1 1 auto",d.style.marginLeft="6px",d.style.verticalAlign="middle",(h=document.createElement("div")).style.width="6px",(g=document.createElement("div")).style.display="flex",a.appendChild(g,f),a.appendChild(g,h),a.appendChild(g,d),a.appendChild(l,g)}return l},te.prototype.getJsonTypeName=function(){return"Input.ChoiceSet"},te.prototype.toJSON=function(){var e=$.prototype.toJSON.call(this);if(a.setProperty(e,"placeholder",this.placeholder),0<this.choices.length){for(var t=[],n=0,i=this.choices;n<i.length;n++){var r=i[n];t.push(r.toJSON())}a.setProperty(e,"choices",t)}return this.isCompact||a.setProperty(e,"style","expanded",!1),a.setProperty(e,"isMultiSelect",this.isMultiSelect,!1),a.setProperty(e,"wrap",this.wrap,!1),e},te.prototype.validate=function(){var e=[];0==this.choices.length&&(e=[{error:o.ValidationError.CollectionCantBeEmpty,message:"An Input.ChoiceSet must have at least one choice defined."}]);for(var t=0;t<this.choices.length;t++)if(!this.choices[t].title||!this.choices[t].value){e=e.concat([{error:o.ValidationError.PropertyCantBeNull,message:"All choices in an Input.ChoiceSet must have their title and value properties set."}]);break}return e},te.prototype.parse=function(e,t){if($.prototype.parse.call(this,e,t),this.isCompact=!("expanded"===e.style),this.isMultiSelect=a.parseBoolProperty(e.isMultiSelect,this.isMultiSelect),this.placeholder=e.placeholder,this.choices=[],null!=e.choices)for(var n=e.choices,i=0;i<n.length;i++){var r=new Q;r.title=n[i].title,r.value=n[i].value,this.choices.push(r)}this.wrap=a.parseBoolProperty(e.wrap,this.wrap)},Object.defineProperty(te.prototype,"value",{get:function(){if(this.isMultiSelect){if(!this._toggleInputs||0==this._toggleInputs.length)return null;for(var e="",t=0;t<this._toggleInputs.length;t++)this._toggleInputs[t].checked&&(""!=e&&(e+=this.hostConfig.choiceSetInputValueSeparator),e+=this._toggleInputs[t].value);return""==e?null:e}if(this.isCompact)return this._selectElement?this._selectElement.value:null;if(!this._toggleInputs||0==this._toggleInputs.length)return null;for(t=0;t<this._toggleInputs.length;t++)if(this._toggleInputs[t].checked)return this._toggleInputs[t].value;return null},enumerable:!0,configurable:!0}),te.uniqueCategoryCounter=0,te);function te(){var e=null!==$&&$.apply(this,arguments)||this;return e.choices=[],e.isCompact=!1,e.isMultiSelect=!1,e.wrap=!1,e}t.ChoiceSetInput=ee;var ne,ie=(r(re,ne=U),re.prototype.internalRender=function(){var e=this;return this._numberInputElement=document.createElement("input"),this._numberInputElement.setAttribute("type","number"),this._numberInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-numberInput"),this._numberInputElement.setAttribute("min",this.min),this._numberInputElement.setAttribute("max",this.max),this._numberInputElement.style.width="100%",this._numberInputElement.tabIndex=0,a.isNullOrEmpty(this.defaultValue)||(this._numberInputElement.value=this.defaultValue),a.isNullOrEmpty(this.placeholder)||(this._numberInputElement.placeholder=this.placeholder,this._numberInputElement.setAttribute("aria-label",this.placeholder)),this._numberInputElement.oninput=function(){e.valueChanged()},this._numberInputElement},re.prototype.getJsonTypeName=function(){return"Input.Number"},re.prototype.toJSON=function(){var e=ne.prototype.toJSON.call(this);return a.setProperty(e,"placeholder",this.placeholder),a.setProperty(e,"min",this.min),a.setProperty(e,"max",this.max),e},re.prototype.parse=function(e,t){ne.prototype.parse.call(this,e,t),this.placeholder=e.placeholder,this.min=e.min,this.max=e.max},Object.defineProperty(re.prototype,"value",{get:function(){return this._numberInputElement?this._numberInputElement.value:null},enumerable:!0,configurable:!0}),re);function re(){return null!==ne&&ne.apply(this,arguments)||this}t.NumberInput=ie;var oe,se=(r(ae,oe=U),ae.prototype.internalRender=function(){return this._dateInputElement=document.createElement("input"),this._dateInputElement.setAttribute("type","date"),this._dateInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-dateInput"),this._dateInputElement.style.width="100%",a.isNullOrEmpty(this.defaultValue)||(this._dateInputElement.value=this.defaultValue),this._dateInputElement},ae.prototype.getJsonTypeName=function(){return"Input.Date"},Object.defineProperty(ae.prototype,"value",{get:function(){return this._dateInputElement?this._dateInputElement.value:null},enumerable:!0,configurable:!0}),ae);function ae(){return null!==oe&&oe.apply(this,arguments)||this}t.DateInput=se;var le,ce,ue=(r(pe,le=U),pe.prototype.internalRender=function(){return this._timeInputElement=document.createElement("input"),this._timeInputElement.setAttribute("type","time"),this._timeInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-timeInput"),this._timeInputElement.style.width="100%",a.isNullOrEmpty(this.defaultValue)||(this._timeInputElement.value=this.defaultValue),this._timeInputElement},pe.prototype.getJsonTypeName=function(){return"Input.Time"},Object.defineProperty(pe.prototype,"value",{get:function(){return this._timeInputElement?this._timeInputElement.value:null},enumerable:!0,configurable:!0}),pe);function pe(){return null!==le&&le.apply(this,arguments)||this}t.TimeInput=ue,(n=ce=ce||{})[n.Normal=0]="Normal",n[n.Expanded=1]="Expanded",n[n.Subdued=2]="Subdued";var de=(he.prototype.updateCssStyle=function(){var e=this.action.parent.hostConfig;switch(this.action.renderedElement.className=e.makeCssClassName("ac-pushButton"),a.isNullOrEmpty(this._parentContainerStyle)||this.action.renderedElement.classList.add("style-"+this._parentContainerStyle),this.action instanceof ke&&this.action.renderedElement.classList.add(e.makeCssClassName("expandable")),this.action.renderedElement.classList.remove(e.makeCssClassName("expanded")),this.action.renderedElement.classList.remove(e.makeCssClassName("subdued")),this._state){case ce.Expanded:this.action.renderedElement.classList.add(e.makeCssClassName("expanded"));break;case ce.Subdued:this.action.renderedElement.classList.add(e.makeCssClassName("subdued"))}this.action.isPrimary&&this.action.renderedElement.classList.add(e.makeCssClassName("primary")),this.action.isActionDisabled&&(this.action.renderedElement.disabled=!0,this.action.renderedElement.classList.add(e.makeCssClassName("ac-disabledAction")))},he.prototype.render=function(e){var t=this;this.action.render(),this.action.renderedElement.style.flex=e===o.ActionAlignment.Stretch?"0 1 100%":"0 1 auto",this.action.renderedElement.onclick=function(e){t.click()},this.updateCssStyle()},he.prototype.click=function(){null!=this.onClick&&this.onClick(this)},Object.defineProperty(he.prototype,"state",{get:function(){return this._state},set:function(e){this._state=e,this.updateCssStyle()},enumerable:!0,configurable:!0}),he);function he(e,t){this._state=ce.Normal,this.onClick=null,this.action=e,this._parentContainerStyle=t}function ge(){this._shouldFallback=!1,this._parent=null,this._actionCollection=null,this._renderedElement=null,this.requires=new l.HostCapabilities}ge.prototype.setCollection=function(e){this._actionCollection=e},ge.prototype.addCssClasses=function(e){},ge.prototype.toJSON=function(){var e={};return a.setProperty(e,"type",this.getJsonTypeName()),a.setProperty(e,"id",this.id),a.setProperty(e,"title",this.title),a.setProperty(e,"iconUrl",this.iconUrl),e},ge.prototype.render=function(){var e=this.parent.hostConfig,t=document.createElement("button");t.className=e.makeCssClassName("ac-pushButton"),this.addCssClasses(t),t.setAttribute("aria-label",this.title),t.type="button",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center";var n,i=!a.isNullOrEmpty(this.title),r=document.createElement("div");r.style.overflow="hidden",r.style.textOverflow="ellipsis",e.actions.iconPlacement==o.ActionIconPlacement.AboveTitle||e.actions.allowTitleToWrap||(r.style.whiteSpace="nowrap"),i&&(r.innerText=this.title),a.isNullOrEmpty(this.iconUrl)?t.classList.add("noIcon"):((n=document.createElement("img")).src=this.iconUrl,n.style.width=e.actions.iconSize+"px",n.style.height=e.actions.iconSize+"px",n.style.flex="0 0 auto",e.actions.iconPlacement==o.ActionIconPlacement.AboveTitle?(t.classList.add("iconAbove"),t.style.flexDirection="column",i&&(n.style.marginBottom="4px")):(t.classList.add("iconLeft"),i&&(n.style.marginRight="4px")),t.appendChild(n)),t.appendChild(r),this._renderedElement=t},ge.prototype.setParent=function(e){this._parent=e},ge.prototype.execute=function(){var e,t;this.onExecute&&this.onExecute(this),(t=((t=(e=this).parent.getRootElement())&&t.onExecuteAction?t:at).onExecuteAction)&&(e.prepare(e.parent.getRootElement().getAllInputs()),t(e))},ge.prototype.setStatus=function(e){var t;null!=this._actionCollection&&(e?((t=new ut).parse(e),this._actionCollection.showStatusCard(t)):this._actionCollection.hideStatusCard())},ge.prototype.validate=function(){return[]},ge.prototype.prepare=function(e){},ge.prototype.parse=function(e,t){var n,i,r;n=e,i=t,null!=(r=((r=this.parent?this.parent.getRootElement():null)&&r.onParseAction?r:at).onParseAction)&&r(this,n,i),this.requires.parse(e.requires,t),this.id=e.id,e.title||""===e.title||tt({error:o.ValidationError.PropertyCantBeNull,message:"Actions should always have a title."},t),this.title=e.title,this.iconUrl=e.iconUrl},ge.prototype.remove=function(){return!!this._actionCollection&&this._actionCollection.removeAction(this)},ge.prototype.getAllInputs=function(){return[]},ge.prototype.getResourceInformation=function(){return a.isNullOrEmpty(this.iconUrl)?[]:[{url:this.iconUrl,mimeType:"image"}]},ge.prototype.getActionById=function(e){if(this.id==e)return this},Object.defineProperty(ge.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"renderedElement",{get:function(){return this._renderedElement},enumerable:!0,configurable:!0}),ge.prototype.shouldFallback=function(){return this._shouldFallback||!this.requires.areAllMet(this.parent.hostConfig.hostCapabilities)},U=ge,t.Action=U;var fe,me=(r(ye,fe=U),ye.prototype.getJsonTypeName=function(){return"Action.Submit"},ye.prototype.toJSON=function(){var e=fe.prototype.toJSON.call(this);return a.setProperty(e,"data",this._originalData),e},ye.prototype.prepare=function(e){this._originalData?this._processedData=JSON.parse(JSON.stringify(this._originalData)):this._processedData={};for(var t=0;t<e.length;t++)null!=e[t].value&&(this._processedData[e[t].id]=e[t].value);this._isPrepared=!0},ye.prototype.parse=function(e,t){fe.prototype.parse.call(this,e,t),this.data=e.data},Object.defineProperty(ye.prototype,"data",{get:function(){return this._isPrepared?this._processedData:this._originalData},set:function(e){this._originalData=e,this._isPrepared=!1},enumerable:!0,configurable:!0}),ye);function ye(){var e=null!==fe&&fe.apply(this,arguments)||this;return e._isPrepared=!1,e}t.SubmitAction=me;var ve,Ce=(r(be,ve=U),be.prototype.getJsonTypeName=function(){return"Action.OpenUrl"},be.prototype.toJSON=function(){var e=ve.prototype.toJSON.call(this);return a.setProperty(e,"url",this.url),e},be.prototype.validate=function(){return this.url?[]:[{error:o.ValidationError.PropertyCantBeNull,message:"An Action.OpenUrl must have its url property set."}]},be.prototype.parse=function(e,t){ve.prototype.parse.call(this,e,t),this.url=e.url},be);function be(){return null!==ve&&ve.apply(this,arguments)||this}t.OpenUrlAction=Ce;var Ae,xe=(r(Se,Ae=U),Se.prototype.getJsonTypeName=function(){return"Action.ToggleVisibility"},Se.prototype.execute=function(){for(var e=0,t=Object.keys(this.targetElements);e<t.length;e++){var n=t[e],i=this.parent.getRootElement().getElementById(n);i&&("boolean"==typeof this.targetElements[n]?i.isVisible=this.targetElements[n]:i.isVisible=!i.isVisible)}},Se.prototype.parse=function(e){if(Ae.prototype.parse.call(this,e),this.targetElements={},(e=e.targetElements)&&Array.isArray(e))for(var t=0,n=e;t<n.length;t++){var i,r=n[t];"string"==typeof r?this.targetElements[r]=void 0:"object"!=typeof r||(i=r.elementId)&&"string"==typeof i&&(this.targetElements[i]=a.parseBoolProperty(r.isVisible,void 0))}},Se.prototype.addTargetElement=function(e,t){void 0===t&&(t=void 0),this.targetElements[e]=t},Se.prototype.removeTargetElement=function(e){delete this.targetElements[e]},Se);function Se(){var e=null!==Ae&&Ae.apply(this,arguments)||this;return e.targetElements={},e}t.ToggleVisibilityAction=xe;var Ie,Ee=(we.prototype.toJSON=function(){return{name:this.name,value:this._value.getOriginal()}},we.prototype.prepare=function(e){this._value.substituteInputValues(e,s.ContentTypes.applicationXWwwFormUrlencoded)},Object.defineProperty(we.prototype,"value",{get:function(){return this._value.get()},set:function(e){this._value.set(e)},enumerable:!0,configurable:!0}),we);function we(e,t){void 0===e&&(e=""),void 0===t&&(t=""),this._value=new s.StringWithSubstitutions,this.name=e,this.value=t}function _e(){var e=null!==Ie&&Ie.apply(this,arguments)||this;return e._url=new s.StringWithSubstitutions,e._body=new s.StringWithSubstitutions,e._headers=[],e}t.HttpHeader=Ee,r(_e,Ie=U),_e.prototype.getJsonTypeName=function(){return"Action.Http"},_e.prototype.toJSON=function(){var e=Ie.prototype.toJSON.call(this);if(a.setProperty(e,"method",this.method),a.setProperty(e,"url",this._url.getOriginal()),a.setProperty(e,"body",this._body.getOriginal()),0<this._headers.length){for(var t=[],n=0,i=this._headers;n<i.length;n++){var r=i[n];t.push(r.toJSON())}a.setProperty(e,"headers",t)}return e},_e.prototype.validate=function(){var e=[];if(this.url||(e=[{error:o.ValidationError.PropertyCantBeNull,message:"An Action.Http must have its url property set."}]),0<this.headers.length)for(var t=0;t<this.headers.length;t++)if(!this.headers[t].name||!this.headers[t].value){e=e.concat([{error:o.ValidationError.PropertyCantBeNull,message:"All headers of an Action.Http must have their name and value properties set."}]);break}return e},_e.prototype.prepare=function(e){this._url.substituteInputValues(e,s.ContentTypes.applicationXWwwFormUrlencoded);for(var t=s.ContentTypes.applicationJson,n=0;n<this._headers.length;n++)this._headers[n].prepare(e),this._headers[n].name&&"content-type"==this._headers[n].name.toLowerCase()&&(t=this._headers[n].value);this._body.substituteInputValues(e,t)},_e.prototype.parse=function(e,t){if(Ie.prototype.parse.call(this,e,t),this.url=e.url,this.method=e.method,this.body=e.body,this._headers=[],null!=e.headers)for(var n=e.headers,i=0;i<n.length;i++){var r=new Ee;r.name=n[i].name,r.value=n[i].value,this.headers.push(r)}},Object.defineProperty(_e.prototype,"url",{get:function(){return this._url.get()},set:function(e){this._url.set(e)},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"body",{get:function(){return this._body.get()},set:function(e){this._body.set(e)},enumerable:!0,configurable:!0}),Object.defineProperty(_e.prototype,"headers",{get:function(){return this._headers||[]},set:function(e){this._headers=e},enumerable:!0,configurable:!0}),n=_e,t.HttpAction=n;var Pe,ke=(r(Te,Pe=U),Te.prototype.addCssClasses=function(e){Pe.prototype.addCssClasses.call(this,e),e.classList.add(this.parent.hostConfig.makeCssClassName("expandable"))},Te.prototype.getJsonTypeName=function(){return"Action.ShowCard"},Te.prototype.toJSON=function(){var e=Pe.prototype.toJSON.call(this);return this.card&&a.setProperty(e,"card",this.card.toJSON()),e},Te.prototype.validate=function(){return this.card.validate()},Te.prototype.parse=function(e,t){Pe.prototype.parse.call(this,e,t),(e=e.card)?this.card.parse(e,t):tt({error:o.ValidationError.PropertyCantBeNull,message:'An Action.ShowCard must have its "card" property set to a valid AdaptiveCard object.'},t)},Te.prototype.setParent=function(e){Pe.prototype.setParent.call(this,e),this.card.setParent(e)},Te.prototype.getAllInputs=function(){return this.card.getAllInputs()},Te.prototype.getResourceInformation=function(){return Pe.prototype.getResourceInformation.call(this).concat(this.card.getResourceInformation())},Te.prototype.getActionById=function(e){return Pe.prototype.getActionById.call(this,e)||this.card.getActionById(e)},Te);function Te(){var e=null!==Pe&&Pe.apply(this,arguments)||this;return e.card=new ut,e}t.ShowCardAction=ke;var Me=(Oe.prototype.refreshContainer=function(){if(this._actionCardContainer.innerHTML="",null===this._actionCard&&null===this._statusCard)return this._actionCardContainer.style.padding="0px",void(this._actionCardContainer.style.marginTop="0px");this._actionCardContainer.style.marginTop=0<this._renderedActionCount?this._owner.hostConfig.actions.showCard.inlineTopMargin+"px":"0px";var e=this._owner.getEffectivePadding();this._owner.getImmediateSurroundingPadding(e),e=this._owner.hostConfig.paddingDefinitionToSpacingDefinition(e),null!==this._actionCard&&(this._actionCard.style.paddingLeft=e.left+"px",this._actionCard.style.paddingRight=e.right+"px",this._actionCard.style.marginLeft="-"+e.left+"px",this._actionCard.style.marginRight="-"+e.right+"px",a.appendChild(this._actionCardContainer,this._actionCard)),null!==this._statusCard&&(this._statusCard.style.paddingLeft=e.left+"px",this._statusCard.style.paddingRight=e.right+"px",this._statusCard.style.marginLeft="-"+e.left+"px",this._statusCard.style.marginRight="-"+e.right+"px",a.appendChild(this._actionCardContainer,this._statusCard))},Oe.prototype.layoutChanged=function(){this._owner.getRootElement().updateLayout()},Oe.prototype.hideActionCard=function(){var e=this._expandedAction;this._expandedAction=null,this._actionCard=null,this.refreshContainer(),e&&(this.layoutChanged(),$e(e,!1))},Oe.prototype.showActionCard=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),null!=e.card&&(e.card.suppressStyle=t,t=e.card.render(),this._actionCard=t,this._expandedAction=e,this.refreshContainer(),n&&(this.layoutChanged(),$e(e,!0)))},Oe.prototype.collapseExpandedAction=function(){for(var e=0;e<this.buttons.length;e++)this.buttons[e].state=ce.Normal;this.hideActionCard()},Oe.prototype.expandShowCardAction=function(e,t){for(var n=0;n<this.buttons.length;n++)this.buttons[n].action!==e?this.buttons[n].state=ce.Subdued:this.buttons[n].state=ce.Expanded;this.showActionCard(e,!(this._owner.isAtTheVeryLeft()&&this._owner.isAtTheVeryRight()),t)},Oe.prototype.actionClicked=function(e){if(e.action instanceof ke)this.hideStatusCard(),this._owner.hostConfig.actions.showCard.actionMode===o.ShowCardActionMode.Popup?e.action.execute():e.action===this._expandedAction?this.collapseExpandedAction():this.expandShowCardAction(e.action,!0);else{for(var t=0;t<this.buttons.length;t++)this.buttons[t].state=ce.Normal;this.hideStatusCard(),this.hideActionCard(),e.action.execute()}},Oe.prototype.getParentContainer=function(){return this._owner instanceof He?this._owner:this._owner.getParentContainer()},Oe.prototype.findActionButton=function(e){for(var t=0,n=this.buttons;t<n.length;t++){var i=n[t];if(i.action==e)return i}return null},Oe.prototype.parse=function(e,t){if(this.clear(),e&&e instanceof Array)for(var n=0,i=e;n<i.length;n++){var r=i[n];(r=h(this._owner,r,t))&&this.addAction(r)}},Oe.prototype.toJSON=function(){if(0<this.items.length){for(var e=[],t=0,n=this.items;t<n.length;t++){var i=n[t];e.push(i.toJSON())}return e}return null},Oe.prototype.showStatusCard=function(e){e.setParent(this._owner),this._statusCard=e.render(),this.refreshContainer()},Oe.prototype.hideStatusCard=function(){this._statusCard=null,this.refreshContainer()},Oe.prototype.getActionById=function(e){for(var t=null,n=0;n<this.items.length&&!(t=this.items[n].getActionById(e));n++);return t},Oe.prototype.validate=function(){var e=[];this._owner.hostConfig.actions.maxActions&&this.items.length>this._owner.hostConfig.actions.maxActions&&e.push({error:o.ValidationError.TooManyActions,message:"A maximum of "+this._owner.hostConfig.actions.maxActions+" actions are allowed."}),0<this.items.length&&!this._owner.hostConfig.supportsInteractivity&&e.push({error:o.ValidationError.InteractivityNotAllowed,message:"Interactivity is not allowed."});for(var t=0;t<this.items.length;t++)p(this.items[t],this._owner.getForbiddenActionTypes())||e.push({error:o.ValidationError.ActionTypeNotAllowed,message:"Actions of type "+this.items[t].getJsonTypeName()+" are not allowe."});for(t=0;t<this.items.length;t++)e=e.concat(this.items[t].validate());return e},Oe.prototype.render=function(e,t){var n=this;if(!this._owner.hostConfig.supportsInteractivity)return null;var i=document.createElement("div"),r=this._owner.hostConfig.actions.maxActions?Math.min(this._owner.hostConfig.actions.maxActions,this.items.length):this.items.length,s=this._owner.getForbiddenActionTypes();if(this._actionCardContainer=document.createElement("div"),this._renderedActionCount=0,this._owner.hostConfig.actions.preExpandSingleShowCardAction&&1==r&&this.items[0]instanceof ke&&p(this.items[0],s))this.showActionCard(this.items[0],!0),this._renderedActionCount=1;else{var l=document.createElement("div");if(l.className=this._owner.hostConfig.makeCssClassName("ac-actionSet"),l.style.display="flex",e==o.Orientation.Horizontal)if(l.style.flexDirection="row",this._owner.horizontalAlignment&&this._owner.hostConfig.actions.actionAlignment!=o.ActionAlignment.Stretch)switch(this._owner.horizontalAlignment){case o.HorizontalAlignment.Center:l.style.justifyContent="center";break;case o.HorizontalAlignment.Right:l.style.justifyContent="flex-end";break;default:l.style.justifyContent="flex-start"}else switch(this._owner.hostConfig.actions.actionAlignment){case o.ActionAlignment.Center:l.style.justifyContent="center";break;case o.ActionAlignment.Right:l.style.justifyContent="flex-end";break;default:l.style.justifyContent="flex-start"}else if(l.style.flexDirection="column",this._owner.horizontalAlignment&&this._owner.hostConfig.actions.actionAlignment!=o.ActionAlignment.Stretch)switch(this._owner.horizontalAlignment){case o.HorizontalAlignment.Center:l.style.alignItems="center";break;case o.HorizontalAlignment.Right:l.style.alignItems="flex-end";break;default:l.style.alignItems="flex-start"}else switch(this._owner.hostConfig.actions.actionAlignment){case o.ActionAlignment.Center:l.style.alignItems="center";break;case o.ActionAlignment.Right:l.style.alignItems="flex-end";break;case o.ActionAlignment.Stretch:l.style.alignItems="stretch";break;default:l.style.alignItems="flex-start"}for(var c=this.getParentContainer().style,u=0;u<this.items.length;u++)if(p(this.items[u],s)){var d=this.findActionButton(this.items[u]);if(d||((d=new de(this.items[u],c)).onClick=function(e){n.actionClicked(e)},this.buttons.push(d)),d.render(this._owner.hostConfig.actions.actionAlignment),l.appendChild(d.action.renderedElement),this._renderedActionCount++,this._renderedActionCount>=this._owner.hostConfig.actions.maxActions||u==this.items.length-1)break;0<this._owner.hostConfig.actions.buttonSpacing&&(d=document.createElement("div"),e===o.Orientation.Horizontal?(d.style.flex="0 0 auto",d.style.width=this._owner.hostConfig.actions.buttonSpacing+"px"):d.style.height=this._owner.hostConfig.actions.buttonSpacing+"px",a.appendChild(l,d))}(r=document.createElement("div")).style.overflow="hidden",r.appendChild(l),a.appendChild(i,r)}for(a.appendChild(i,this._actionCardContainer),u=0;u<this.buttons.length;u++)if(this.buttons[u].state==ce.Expanded){this.expandShowCardAction(this.buttons[u].action,!1);break}return 0<this._renderedActionCount?i:null},Oe.prototype.addAction=function(e){if(!e)throw new Error("The action parameter cannot be null.");if(e.parent&&e.parent!==this._owner||!(this.items.indexOf(e)<0))throw new Error("The action already belongs to another element.");this.items.push(e),e.parent||e.setParent(this._owner),u(e,this)},Oe.prototype.removeAction=function(e){this.expandedAction&&this._expandedAction==e&&this.collapseExpandedAction();var t=this.items.indexOf(e);if(0<=t){this.items.splice(t,1),e.setParent(null),u(e,null);for(var n=0;n<this.buttons.length;n++)if(this.buttons[n].action==e){this.buttons.splice(n,1);break}return!0}return!1},Oe.prototype.clear=function(){this.items=[],this.buttons=[],this._expandedAction=null,this._renderedActionCount=0},Oe.prototype.getAllInputs=function(){for(var e=[],t=0;t<this.items.length;t++){var n=this.items[t];e=e.concat(n.getAllInputs())}return e},Oe.prototype.getResourceInformation=function(){for(var e=[],t=0;t<this.items.length;t++)e=e.concat(this.items[t].getResourceInformation());return e},Object.defineProperty(Oe.prototype,"renderedActionCount",{get:function(){return this._renderedActionCount},enumerable:!0,configurable:!0}),Object.defineProperty(Oe.prototype,"expandedAction",{get:function(){return this._expandedAction},enumerable:!0,configurable:!0}),Oe);function Oe(e){this._expandedAction=null,this._renderedActionCount=0,this._statusCard=null,this._actionCard=null,this.items=[],this.buttons=[],this._owner=e}var De,Fe,Re=(r(Ve,De=f),Ve.prototype.internalRender=function(){return this._actionCollection.render(this.orientation||this.hostConfig.actions.actionsOrientation,this.isDesignMode())},Ve.prototype.toJSON=function(){var e=De.prototype.toJSON.call(this);return a.setEnumProperty(o.Orientation,e,"orientation",this.orientation),a.setProperty(e,"actions",this._actionCollection.toJSON()),e},Ve.prototype.isBleedingAtBottom=function(){return 0==this._actionCollection.renderedActionCount?De.prototype.isBleedingAtBottom.call(this):1==this._actionCollection.items.length?null!=this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:null!=this._actionCollection.expandedAction},Ve.prototype.getJsonTypeName=function(){return"ActionSet"},Ve.prototype.getActionCount=function(){return this._actionCollection.items.length},Ve.prototype.getActionAt=function(e){if(0<=e&&e<this.getActionCount())return this._actionCollection.items[e];De.prototype.getActionAt.call(this,e)},Ve.prototype.validate=function(){return this._actionCollection.validate()},Ve.prototype.parse=function(e,t){De.prototype.parse.call(this,e,t);var n=e.orientation;n&&(this.orientation=a.getEnumValueOrDefault(o.Orientation,n,o.Orientation.Horizontal)),this._actionCollection.parse(e.actions,t)},Ve.prototype.addAction=function(e){this._actionCollection.addAction(e)},Ve.prototype.getAllInputs=function(){return this._actionCollection.getAllInputs()},Ve.prototype.getResourceInformation=function(){return this._actionCollection.getResourceInformation()},Ve.prototype.renderSpeech=function(){return""},Object.defineProperty(Ve.prototype,"isInteractive",{get:function(){return!0},enumerable:!0,configurable:!0}),Ve);function Ve(){var e=De.call(this)||this;return e.orientation=null,e._actionCollection=new Me(e),e}function Be(){var e=null!==Fe&&Fe.apply(this,arguments)||this;return e._style=null,e._bleed=!1,e}t.ActionSet=Re,r(Be,Fe=O),Be.prototype.applyBackground=function(){var e=this.hostConfig.containerStyles.getStyleByName(this.style,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));a.isNullOrEmpty(e.backgroundColor)||(this.renderedElement.style.backgroundColor=a.stringToCssColor(e.backgroundColor))},Be.prototype.applyPadding=function(){var e;Fe.prototype.applyPadding.call(this),this.renderedElement&&(this.isBleeding()&&(e=new s.PaddingDefinition,this.getImmediateSurroundingPadding(e),e=this.hostConfig.paddingDefinitionToSpacingDefinition(e),this.renderedElement.style.marginRight="-"+e.right+"px",this.renderedElement.style.marginLeft="-"+e.left+"px",this.separatorElement&&this.separatorOrientation==o.Orientation.Horizontal&&(this.separatorElement.style.marginLeft="-"+e.left+"px",this.separatorElement.style.marginRight="-"+e.right+"px")),this.isDesignMode()||((e=this.getFirstVisibleRenderedItem())&&e.isBleedingAtTop()&&(this.renderedElement.style.paddingTop="0px"),e=this.getLastVisibleRenderedItem(),(this.getHasExpandedAction()||e&&e.isBleedingAtBottom())&&(this.renderedElement.style.paddingBottom="0px")))},Be.prototype.getHasBackground=function(){var e=this.getParentContainer();return this.hasExplicitStyle&&!!e&&e.getEffectiveStyle()!=this.getEffectiveStyle()},Be.prototype.getHasExpandedAction=function(){return!1},Be.prototype.getDefaultPadding=function(){return this.getHasBackground()?new s.PaddingDefinition(o.Spacing.Padding,o.Spacing.Padding,o.Spacing.Padding,o.Spacing.Padding):Fe.prototype.getDefaultPadding.call(this)},Object.defineProperty(Be.prototype,"hasExplicitStyle",{get:function(){return null!=this._style},enumerable:!0,configurable:!0}),Object.defineProperty(Be.prototype,"defaultStyle",{get:function(){return o.ContainerStyle.Default},enumerable:!0,configurable:!0}),Object.defineProperty(Be.prototype,"allowCustomStyle",{get:function(){return!0},enumerable:!0,configurable:!0}),Be.prototype.getBleed=function(){return this._bleed},Be.prototype.setBleed=function(e){this._bleed=e},Be.prototype.isBleeding=function(){return this.getHasBackground()&&this.getBleed()},Be.prototype.toJSON=function(){var e=Fe.prototype.toJSON.call(this);return a.setProperty(e,"style",this.style),e},Be.prototype.validate=function(){var e=Fe.prototype.validate.call(this);return this._style&&(this.hostConfig.containerStyles.getStyleByName(this._style)||e.push({error:o.ValidationError.InvalidPropertyValue,message:"Unknown container style: "+this._style})),e},Be.prototype.parse=function(e,t){Fe.prototype.parse.call(this,e,t),this._style=e.style},Be.prototype.render=function(){var e=Fe.prototype.render.call(this);return e&&this.getHasBackground()&&this.applyBackground(),e},Be.prototype.getEffectiveStyle=function(){if(!this._style){var e=this.getParentContainer();if(e)return e.getEffectiveStyle()}return this.style||this.defaultStyle},Object.defineProperty(Be.prototype,"style",{get:function(){return this.allowCustomStyle&&this._style&&this.hostConfig.containerStyles.getStyleByName(this._style)?this._style:null},set:function(e){this._style=e},enumerable:!0,configurable:!0}),n=Be,t.StylableCardElementContainer=n;var Ne=(ze.prototype.reset=function(){this.url=void 0,this.fillMode=ze.defaultFillMode,this.horizontalAlignment=ze.defaultHorizontalAlignment,this.verticalAlignment=ze.defaultVerticalAlignment},ze.prototype.parse=function(e,t){this.url=e.url,this.fillMode=a.getEnumValueOrDefault(o.FillMode,e.fillMode,this.fillMode),this.horizontalAlignment=a.getEnumValueOrDefault(o.HorizontalAlignment,e.horizontalAlignment,this.horizontalAlignment),this.verticalAlignment=a.getEnumValueOrDefault(o.VerticalAlignment,e.verticalAlignment,this.verticalAlignment)},ze.prototype.toJSON=function(){if(!this.isValid())return null;if(this.fillMode==ze.defaultFillMode&&this.horizontalAlignment==ze.defaultHorizontalAlignment&&this.verticalAlignment==ze.defaultVerticalAlignment)return this.url;var e={};return a.setProperty(e,"url",this.url),a.setEnumProperty(o.FillMode,e,"fillMode",this.fillMode,ze.defaultFillMode),a.setEnumProperty(o.HorizontalAlignment,e,"horizontalAlignment",this.horizontalAlignment,ze.defaultHorizontalAlignment),a.setEnumProperty(o.VerticalAlignment,e,"verticalAlignment",this.verticalAlignment,ze.defaultVerticalAlignment),e},ze.prototype.apply=function(e){if(this.url){switch(e.style.backgroundImage="url('"+this.url+"')",this.fillMode){case o.FillMode.Repeat:e.style.backgroundRepeat="repeat";break;case o.FillMode.RepeatHorizontally:e.style.backgroundRepeat="repeat-x";break;case o.FillMode.RepeatVertically:e.style.backgroundRepeat="repeat-y";break;case o.FillMode.Cover:default:e.style.backgroundRepeat="no-repeat",e.style.backgroundSize="cover"}switch(this.horizontalAlignment){case o.HorizontalAlignment.Center:e.style.backgroundPositionX="center";break;case o.HorizontalAlignment.Right:e.style.backgroundPositionX="right"}switch(this.verticalAlignment){case o.VerticalAlignment.Center:e.style.backgroundPositionY="center";break;case o.VerticalAlignment.Bottom:e.style.backgroundPositionY="bottom"}}},ze.prototype.isValid=function(){return!a.isNullOrEmpty(this.url)},ze.defaultFillMode=o.FillMode.Cover,ze.defaultHorizontalAlignment=o.HorizontalAlignment.Left,ze.defaultVerticalAlignment=o.VerticalAlignment.Top,ze);function ze(){this.fillMode=ze.defaultFillMode,this.horizontalAlignment=ze.defaultHorizontalAlignment,this.verticalAlignment=ze.defaultVerticalAlignment}t.BackgroundImage=Ne;var Le,He=(r(je,Le=n),je.prototype.isElementAllowed=function(e,t){if(!this.hostConfig.supportsInteractivity&&e.isInteractive)return!1;if(t)for(var n=0;n<t.length;n++)if(e.getJsonTypeName()===t[n])return!1;return!0},je.prototype.insertItemAt=function(e,t,n){if(e.parent&&!n)throw new Error("The element already belongs to another container.");if(!e.isStandalone)throw new Error("Elements of type "+e.getJsonTypeName()+" cannot be used as standalone elements.");t<0||t>=this._items.length?this._items.push(e):this._items.splice(t,0,e),e.setParent(this)},je.prototype.supportsExcplitiHeight=function(){return!0},je.prototype.getItemsCollectionPropertyName=function(){return"items"},je.prototype.applyBackground=function(){this.backgroundImage.isValid()&&this.backgroundImage.apply(this.renderedElement),Le.prototype.applyBackground.call(this)},je.prototype.internalRender=function(){this._renderedItems=[];var e=this.hostConfig,t=document.createElement("div");switch(null!=this.rtl&&this.rtl&&(t.dir="rtl"),t.classList.add(e.makeCssClassName("ac-container")),t.style.display="flex",t.style.flexDirection="column",at.useAdvancedCardBottomTruncation&&(t.style.minHeight="-webkit-min-content"),this.verticalContentAlignment){case o.VerticalAlignment.Center:t.style.justifyContent="center";break;case o.VerticalAlignment.Bottom:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}if(0<this._items.length)for(var n=0;n<this._items.length;n++){var i=this.isElementAllowed(this._items[n],this.getForbiddenElementTypes())?this._items[n].render():null;i&&(0<this._renderedItems.length&&this._items[n].separatorElement&&(this._items[n].separatorElement.style.flex="0 0 auto",a.appendChild(t,this._items[n].separatorElement)),a.appendChild(t,i),this._renderedItems.push(this._items[n]))}else this.isDesignMode()&&((e=this.createPlaceholderElement()).style.width="100%",e.style.height="100%",t.appendChild(e));return t},je.prototype.truncateOverflow=function(e){for(var t=this.renderedElement.offsetTop+e+1,n=function(e){var i=e.renderedElement;if(i)switch(a.getFitStatus(i,t)){case o.ContainerFitStatus.FullyInContainer:e.resetOverflow()&&n(e);break;case o.ContainerFitStatus.Overflowing:var r=t-i.offsetTop;e.handleOverflow(r);break;case o.ContainerFitStatus.FullyOutOfContainer:e.handleOverflow(0)}},i=0,r=this._items;i<r.length;i++){var s=r[i];n(s)}return!0},je.prototype.undoOverflowTruncation=function(){for(var e=0,t=this._items;e<t.length;e++)t[e].resetOverflow()},je.prototype.getHasBackground=function(){return this.backgroundImage.isValid()||Le.prototype.getHasBackground.call(this)},Object.defineProperty(je.prototype,"isSelectable",{get:function(){return!0},enumerable:!0,configurable:!0}),je.prototype.toJSON=function(){var e=Le.prototype.toJSON.call(this);if(a.setProperty(e,"backgroundImage",this.backgroundImage.toJSON()),a.setEnumProperty(o.VerticalAlignment,e,"verticalContentAlignment",this.verticalContentAlignment,o.VerticalAlignment.Top),0<this._items.length){for(var t=[],n=0,i=this._items;n<i.length;n++){var r=i[n];t.push(r.toJSON())}a.setProperty(e,this.getItemsCollectionPropertyName(),t)}return a.setProperty(e,"bleed",this.bleed),e},je.prototype.getItemCount=function(){return this._items.length},je.prototype.getItemAt=function(e){return this._items[e]},je.prototype.getFirstVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedItems&&0<this._renderedItems.length)for(var e=0,t=this._renderedItems;e<t.length;e++){var n=t[e];if(n.isVisible)return n}return null},je.prototype.getLastVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedItems&&0<this._renderedItems.length)for(var e=this._renderedItems.length-1;0<=e;e--)if(this._renderedItems[e].isVisible)return this._renderedItems[e];return null},je.prototype.getJsonTypeName=function(){return"Container"},je.prototype.isFirstElement=function(e){for(var t=0;t<this._items.length;t++)if(this._items[t].isVisible)return this._items[t]==e;return!1},je.prototype.isLastElement=function(e){for(var t=this._items.length-1;0<=t;t--)if(this._items[t].isVisible)return this._items[t]==e;return!1},je.prototype.isRtl=function(){if(null!=this.rtl)return this.rtl;var e=this.getParentContainer();return!!e&&e.isRtl()},je.prototype.isBleedingAtTop=function(){var e=this.getFirstVisibleRenderedItem();return this.isBleeding()||!!e&&e.isBleedingAtTop()},je.prototype.isBleedingAtBottom=function(){var e=this.getLastVisibleRenderedItem();return this.isBleeding()||!!e&&e.isBleedingAtBottom()},je.prototype.validate=function(){for(var e=Le.prototype.validate.call(this),t=0;t<this._items.length;t++)!this.hostConfig.supportsInteractivity&&this._items[t].isInteractive&&e.push({error:o.ValidationError.InteractivityNotAllowed,message:"Interactivity is not allowed."}),this.isElementAllowed(this._items[t],this.getForbiddenElementTypes())||e.push({error:o.ValidationError.InteractivityNotAllowed,message:"Elements of type "+this._items[t].getJsonTypeName()+" are not allowed in this container."}),e=e.concat(this._items[t].validate());return e},je.prototype.parse=function(e,t){Le.prototype.parse.call(this,e,t),this.setShouldFallback(!1),this._items=[],this._renderedItems=[];var n=e.backgroundImage;if(n&&(this.backgroundImage.reset(),"string"==typeof n?(this.backgroundImage.url=n,this.backgroundImage.fillMode=o.FillMode.Cover):"object"==typeof n&&this.backgroundImage.parse(n,t)),this.verticalContentAlignment=a.getEnumValueOrDefault(o.VerticalAlignment,e.verticalContentAlignment,this.verticalContentAlignment),null!=e[this.getItemsCollectionPropertyName()]){var i=e[this.getItemsCollectionPropertyName()];this.clear();for(var r=0;r<i.length;r++){var s=g(this,i[r],t);s&&this.insertItemAt(s,-1,!0)}}this.bleed=a.parseBoolProperty(e.bleed,this.bleed)},je.prototype.indexOf=function(e){return this._items.indexOf(e)},je.prototype.addItem=function(e){this.insertItemAt(e,-1,!1)},je.prototype.insertItemBefore=function(e,t){this.insertItemAt(e,this._items.indexOf(t),!1)},je.prototype.insertItemAfter=function(e,t){this.insertItemAt(e,this._items.indexOf(t)+1,!1)},je.prototype.removeItem=function(e){var t=this._items.indexOf(e);return 0<=t&&(this._items.splice(t,1),e.setParent(null),this.updateLayout(),!0)},je.prototype.clear=function(){this._items=[]},je.prototype.getResourceInformation=function(){var e=Le.prototype.getResourceInformation.call(this);return this.backgroundImage.isValid()&&e.push({url:this.backgroundImage.url,mimeType:"image"}),e},je.prototype.getActionById=function(e){var t=Le.prototype.getActionById.call(this,e);if(!t&&(this.selectAction&&(t=this.selectAction.getActionById(e)),!t))for(var n=0;n<this._items.length&&!(t=this._items[n].getActionById(e));n++);return t},je.prototype.renderSpeech=function(){if(null!=this.speak)return this.speak;var e=null;if(0<this._items.length){e="";for(var t=0;t<this._items.length;t++){var n=this._items[t].renderSpeech();n&&(e+=n)}}return e},Object.defineProperty(je.prototype,"bleed",{get:function(){return this.getBleed()},set:function(e){this.setBleed(e)},enumerable:!0,configurable:!0}),Object.defineProperty(je.prototype,"padding",{get:function(){return this.getPadding()},set:function(e){this.setPadding(e)},enumerable:!0,configurable:!0}),Object.defineProperty(je.prototype,"selectAction",{get:function(){return this.getSelectAction()},set:function(e){this.setSelectAction(e)},enumerable:!0,configurable:!0}),je);function je(){var e=null!==Le&&Le.apply(this,arguments)||this;return e._items=[],e._renderedItems=[],e.backgroundImage=new Ne,e.verticalContentAlignment=o.VerticalAlignment.Top,e.rtl=null,e}t.Container=He;var Ue,Je=(r(qe,Ue=He),qe.prototype.adjustRenderedElementSize=function(e){var t;this.isDesignMode()?(e.style.minWidth="20px",e.style.minHeight=(this.minPixelHeight?Math.max(this.minPixelHeight,20):20)+"px"):(e.style.minWidth="0",this.minPixelHeight&&(e.style.minHeight=this.minPixelHeight+"px")),"auto"===this.width?e.style.flex="0 1 auto":"stretch"===this.width?e.style.flex="1 1 50px":(t=this.width).unit==o.SizeUnit.Pixel?(e.style.flex="0 0 auto",e.style.width=t.physicalSize+"px"):e.style.flex="1 1 "+(0<this._computedWeight?this._computedWeight:t.physicalSize)+"%"},qe.prototype.getDefaultPadding=function(){var e=this.parent,t=Ue.prototype.getDefaultPadding.call(this);return t.top=t.top==o.Spacing.None&&e.isBleedingAtTop()&&e.isAtTheVeryTop()?o.Spacing.Padding:t.top,t.right=t.right==o.Spacing.None&&e.isBleeding()&&e.isAtTheVeryRight()?o.Spacing.Padding:t.right,t.bottom=t.bottom==o.Spacing.None&&e.isBleedingAtBottom()&&e.isAtTheVeryBottom()?o.Spacing.Padding:t.bottom,t.left=t.left==o.Spacing.None&&e.isBleeding()&&e.isAtTheVeryLeft()?o.Spacing.Padding:t.left,t},Object.defineProperty(qe.prototype,"separatorOrientation",{get:function(){return o.Orientation.Vertical},enumerable:!0,configurable:!0}),qe.prototype.getJsonTypeName=function(){return"Column"},qe.prototype.toJSON=function(){var e=Ue.prototype.toJSON.call(this);return this.width instanceof s.SizeAndUnit?this.width.unit==o.SizeUnit.Pixel?a.setProperty(e,"width",this.width.physicalSize+"px"):a.setProperty(e,"width",this.width.physicalSize):a.setProperty(e,"width",this.width),e},qe.prototype.parse=function(e,t){Ue.prototype.parse.call(this,e,t);var n=e.width;void 0===n&&void 0!==(n=e.size)&&tt({error:o.ValidationError.Deprecated,message:'The "Column.size" property is deprecated and will be removed. Use the "Column.width" property instead.'},t),e=!1;try{this.width=s.SizeAndUnit.parse(n)}catch(t){"string"!=typeof n||"auto"!==n&&"stretch"!==n?e=!0:this.width=n}e&&tt({error:o.ValidationError.InvalidPropertyValue,message:"Invalid column width:"+n+' - defaulting to "auto"'},t)},Object.defineProperty(qe.prototype,"hasVisibleSeparator",{get:function(){return!!(this.parent&&this.parent instanceof Ze)&&this.separatorElement&&!this.parent.isLeftMostElement(this)},enumerable:!0,configurable:!0}),Object.defineProperty(qe.prototype,"isStandalone",{get:function(){return!1},enumerable:!0,configurable:!0}),qe);function qe(e){void 0===e&&(e="auto");var t=Ue.call(this)||this;return t._computedWeight=0,t.width="auto",t.width=e,t}t.Column=Je;var We,Ge,Ke,Ye,Ze=(r(Qe,We=n),Qe.prototype.internalRender=function(){if(this._renderedColumns=[],0<this._columns.length){var e=this.hostConfig,t=document.createElement("div");switch(t.className=e.makeCssClassName("ac-columnSet"),t.style.display="flex",at.useAdvancedCardBottomTruncation&&(t.style.minHeight="-webkit-min-content"),this.horizontalAlignment){case o.HorizontalAlignment.Center:t.style.justifyContent="center";break;case o.HorizontalAlignment.Right:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}for(var n=0,i=0,r=this._columns;i<r.length;i++)(l=r[i]).width instanceof s.SizeAndUnit&&l.width.unit==o.SizeUnit.Weight&&(n+=l.width.physicalSize);for(var l,c=0,u=this._columns;c<u.length;c++){(l=u[c]).width instanceof s.SizeAndUnit&&l.width.unit==o.SizeUnit.Weight&&0<n&&(p=100/n*l.width.physicalSize,l._computedWeight=p);var p=l.render();p&&(0<this._renderedColumns.length&&l.separatorElement&&(l.separatorElement.style.flex="0 0 auto",a.appendChild(t,l.separatorElement)),a.appendChild(t,p),this._renderedColumns.push(l))}return 0<this._renderedColumns.length?t:null}return null},Qe.prototype.truncateOverflow=function(e){for(var t=0,n=this._columns;t<n.length;t++)n[t].handleOverflow(e);return!0},Qe.prototype.undoOverflowTruncation=function(){for(var e=0,t=this._columns;e<t.length;e++)t[e].resetOverflow()},Object.defineProperty(Qe.prototype,"isSelectable",{get:function(){return!0},enumerable:!0,configurable:!0}),Qe.prototype.toJSON=function(){var e=We.prototype.toJSON.call(this);if(0<this._columns.length){for(var t=[],n=0,i=this._columns;n<i.length;n++){var r=i[n];t.push(r.toJSON())}a.setProperty(e,"columns",t)}return a.setProperty(e,"bleed",this.bleed),e},Qe.prototype.isFirstElement=function(e){for(var t=0;t<this._columns.length;t++)if(this._columns[t].isVisible)return this._columns[t]==e;return!1},Qe.prototype.isBleedingAtTop=function(){if(this.isBleeding())return!0;if(this._renderedColumns&&0<this._renderedColumns.length)for(var e=0,t=this._columns;e<t.length;e++)if(t[e].isBleedingAtTop())return!0;return!1},Qe.prototype.isBleedingAtBottom=function(){if(this.isBleeding())return!0;if(this._renderedColumns&&0<this._renderedColumns.length)for(var e=0,t=this._columns;e<t.length;e++)if(t[e].isBleedingAtBottom())return!0;return!1},Qe.prototype.getCount=function(){return this._columns.length},Qe.prototype.getItemCount=function(){return this.getCount()},Qe.prototype.getFirstVisibleRenderedItem=function(){return this.renderedElement&&this._renderedColumns&&0<this._renderedColumns.length?this._renderedColumns[0]:null},Qe.prototype.getLastVisibleRenderedItem=function(){return this.renderedElement&&this._renderedColumns&&0<this._renderedColumns.length?this._renderedColumns[this._renderedColumns.length-1]:null},Qe.prototype.getColumnAt=function(e){return this._columns[e]},Qe.prototype.getItemAt=function(e){return this.getColumnAt(e)},Qe.prototype.getJsonTypeName=function(){return"ColumnSet"},Qe.prototype.parse=function(e,t){if(We.prototype.parse.call(this,e,t),null!=e.columns){var n=e.columns;this._columns=[];for(var i=0;i<n.length;i++){var r=new Je;r.setParent(this),r.parse(n[i],t),this._columns.push(r)}}this.bleed=a.parseBoolProperty(e.bleed,this.bleed)},Qe.prototype.validate=function(){for(var e=We.prototype.validate.call(this),t=0,n=0,i=0;i<this._columns.length;i++)"number"==typeof this._columns[i].width?t++:"stretch"===this._columns[i].width&&n++;return 0<t&&0<n&&e.push({error:o.ValidationError.Hint,message:"It is not recommended to use weighted and stretched columns in the same ColumnSet, because in such a situation stretched columns will always get the minimum amount of space."}),e},Qe.prototype.addColumn=function(e){if(e.parent)throw new Error("This column already belongs to another ColumnSet.");this._columns.push(e),e.setParent(this)},Qe.prototype.removeItem=function(e){if(e instanceof Je){var t=this._columns.indexOf(e);if(0<=t)return this._columns.splice(t,1),e.setParent(null),this.updateLayout(),!0}return!1},Qe.prototype.indexOf=function(e){return e instanceof Je?this._columns.indexOf(e):-1},Qe.prototype.isLeftMostElement=function(e){return 0==this._columns.indexOf(e)},Qe.prototype.isRightMostElement=function(e){return this._columns.indexOf(e)==this._columns.length-1},Qe.prototype.getActionById=function(e){for(var t=null,n=0;n<this._columns.length&&!(t=this._columns[n].getActionById(e));n++);return t},Qe.prototype.renderSpeech=function(){if(null!=this.speak)return this.speak;var e="";if(0<this._columns.length)for(var t=0;t<this._columns.length;t++)e+=this._columns[t].renderSpeech();return e},Object.defineProperty(Qe.prototype,"bleed",{get:function(){return this.getBleed()},set:function(e){this.setBleed(e)},enumerable:!0,configurable:!0}),Object.defineProperty(Qe.prototype,"padding",{get:function(){return this.getPadding()},set:function(e){this.setPadding(e)},enumerable:!0,configurable:!0}),Object.defineProperty(Qe.prototype,"selectAction",{get:function(){return this.getSelectAction()},set:function(e){this.setSelectAction(e)},enumerable:!0,configurable:!0}),Qe);function Qe(){var e=null!==We&&We.apply(this,arguments)||this;return e._columns=[],e}function Xe(e){var t;(t=((t=e.getRootElement())&&t.onImageLoaded?t:at).onImageLoaded)&&t(e)}function $e(e,t){var n;(n=((n=e.parent.getRootElement())&&n.onInlineCardExpanded?n:at).onInlineCardExpanded)&&n(e,t)}function et(e,t){void 0===t&&(t=!0);var n=e.getRootElement();t&&n.updateLayout(),null!=(n=(n&&n.onElementVisibilityChanged?n:at).onElementVisibilityChanged)&&n(e)}function tt(e,t){t&&t.push(e),null!=at.onParseError&&at.onParseError(e)}function nt(){var e=Ge.call(this)||this;return e._actionCollection=new Me(e),e}function it(){this._items=[],this.reset()}function rt(){return null!==Ke&&Ke.apply(this,arguments)||this}function ot(){return null!==Ye&&Ye.apply(this,arguments)||this}t.ColumnSet=Ze,r(nt,Ge=He),nt.prototype.internalRender=function(){var e=Ge.prototype.internalRender.call(this),t=this._actionCollection.render(this.hostConfig.actions.actionsOrientation,!1);return t&&(a.appendChild(e,a.renderSeparation({spacing:this.hostConfig.getEffectiveSpacing(this.hostConfig.actions.spacing),lineThickness:null,lineColor:null},o.Orientation.Horizontal)),a.appendChild(e,t)),this.renderIfEmpty||0<e.children.length?e:null},nt.prototype.getHasExpandedAction=function(){return 0!=this._actionCollection.renderedActionCount&&(1==this._actionCollection.items.length?null!=this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:null!=this._actionCollection.expandedAction)},Object.defineProperty(nt.prototype,"renderIfEmpty",{get:function(){return!1},enumerable:!0,configurable:!0}),nt.prototype.toJSON=function(){var e=Ge.prototype.toJSON.call(this);return a.setProperty(e,"actions",this._actionCollection.toJSON()),e},nt.prototype.getActionCount=function(){return this._actionCollection.items.length},nt.prototype.getActionAt=function(e){if(0<=e&&e<this.getActionCount())return this._actionCollection.items[e];Ge.prototype.getActionAt.call(this,e)},nt.prototype.getActionById=function(e){return this._actionCollection.getActionById(e)||Ge.prototype.getActionById.call(this,e)},nt.prototype.parse=function(e,t){Ge.prototype.parse.call(this,e,t),this._actionCollection.parse(e.actions,t)},nt.prototype.validate=function(){var e=Ge.prototype.validate.call(this);return this._actionCollection&&(e=e.concat(this._actionCollection.validate())),e},nt.prototype.isLastElement=function(e){return Ge.prototype.isLastElement.call(this,e)&&0==this._actionCollection.items.length},nt.prototype.addAction=function(e){this._actionCollection.addAction(e)},nt.prototype.clear=function(){Ge.prototype.clear.call(this),this._actionCollection.clear()},nt.prototype.getAllInputs=function(){return Ge.prototype.getAllInputs.call(this).concat(this._actionCollection.getAllInputs())},nt.prototype.getResourceInformation=function(){return Ge.prototype.getResourceInformation.call(this).concat(this._actionCollection.getResourceInformation())},nt.prototype.isBleedingAtBottom=function(){return 0==this._actionCollection.renderedActionCount?Ge.prototype.isBleedingAtBottom.call(this):1==this._actionCollection.items.length?null!=this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:null!=this._actionCollection.expandedAction},Object.defineProperty(nt.prototype,"isStandalone",{get:function(){return!1},enumerable:!0,configurable:!0}),U=nt,t.ContainerWithActions=U,it.prototype.findTypeRegistration=function(e){for(var t=0;t<this._items.length;t++)if(this._items[t].typeName===e)return this._items[t];return null},it.prototype.clear=function(){this._items=[]},it.prototype.registerType=function(e,t){var n=this.findTypeRegistration(e);null!=n?n.createInstance=t:(n={typeName:e,createInstance:t},this._items.push(n))},it.prototype.unregisterType=function(e){for(var t=0;t<this._items.length;t++)if(this._items[t].typeName===e)return void this._items.splice(t,1)},it.prototype.createInstance=function(e){return(e=this.findTypeRegistration(e))?e.createInstance():null},it.prototype.getItemCount=function(){return this._items.length},it.prototype.getItemAt=function(e){return this._items[e]},f=it,t.TypeRegistry=f,r(rt,Ke=f),rt.prototype.reset=function(){this.clear(),this.registerType("Container",(function(){return new He})),this.registerType("TextBlock",(function(){return new v})),this.registerType("Image",(function(){return new k})),this.registerType("ImageSet",(function(){return new R})),this.registerType("Media",(function(){return new L})),this.registerType("FactSet",(function(){return new w})),this.registerType("ColumnSet",(function(){return new Ze})),this.registerType("ActionSet",(function(){return new Re})),this.registerType("Input.Text",(function(){return new W})),this.registerType("Input.Date",(function(){return new se})),this.registerType("Input.Time",(function(){return new ue})),this.registerType("Input.Number",(function(){return new ie})),this.registerType("Input.ChoiceSet",(function(){return new ee})),this.registerType("Input.Toggle",(function(){return new Y}))},n=rt,t.ElementTypeRegistry=n,r(ot,Ye=f),ot.prototype.reset=function(){this.clear(),this.registerType("Action.OpenUrl",(function(){return new Ce})),this.registerType("Action.Submit",(function(){return new me})),this.registerType("Action.ShowCard",(function(){return new ke})),this.registerType("Action.ToggleVisibility",(function(){return new xe}))},f=ot,t.ActionTypeRegistry=f;var st,at=(r(lt,st=U),Object.defineProperty(lt,"processMarkdown",{get:function(){throw new Error("The processMarkdown event has been removed. Please update your code and set onProcessMarkdown instead.")},set:function(e){throw new Error("The processMarkdown event has been removed. Please update your code and set onProcessMarkdown instead.")},enumerable:!0,configurable:!0}),lt.applyMarkdown=function(e){var t={didProcess:!1};return lt.onProcessMarkdown?lt.onProcessMarkdown(e,t):window.markdownit?(t.outputHtml=window.markdownit().render(e),t.didProcess=!0):console.warn("Markdown processing isn't enabled. Please see https://www.npmjs.com/package/adaptivecards#supporting-markdown"),t},lt.prototype.isVersionSupported=function(){return!!this.bypassVersionCheck||!(!this.version||!this.version.isValid||lt.currentVersion.major<this.version.major||lt.currentVersion.major==this.version.major&&lt.currentVersion.minor<this.version.minor)},lt.prototype.getItemsCollectionPropertyName=function(){return"body"},lt.prototype.internalRender=function(){var e=st.prototype.internalRender.call(this);return lt.useAdvancedCardBottomTruncation&&(e.style.minHeight=null),e},lt.prototype.getHasBackground=function(){return!0},lt.prototype.getDefaultPadding=function(){return new s.PaddingDefinition(o.Spacing.Padding,o.Spacing.Padding,o.Spacing.Padding,o.Spacing.Padding)},Object.defineProperty(lt.prototype,"renderIfEmpty",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(lt.prototype,"bypassVersionCheck",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(lt.prototype,"allowCustomStyle",{get:function(){return this.hostConfig.adaptiveCard&&this.hostConfig.adaptiveCard.allowCustomStyle},enumerable:!0,configurable:!0}),Object.defineProperty(lt.prototype,"hasBackground",{get:function(){return!0},enumerable:!0,configurable:!0}),lt.prototype.getJsonTypeName=function(){return"AdaptiveCard"},lt.prototype.toJSON=function(){var e=st.prototype.toJSON.call(this);return a.setProperty(e,"$schema","http://adaptivecards.io/schemas/adaptive-card.json"),!this.bypassVersionCheck&&this.version&&a.setProperty(e,"version",this.version.toString()),a.setProperty(e,"fallbackText",this.fallbackText),a.setProperty(e,"lang",this.lang),a.setProperty(e,"speak",this.speak),e},lt.prototype.validate=function(){var e=[];return"AdaptiveCard"!=this._cardTypeName&&e.push({error:o.ValidationError.MissingCardType,message:'Invalid or missing card type. Make sure the card\'s type property is set to "AdaptiveCard".'}),this.bypassVersionCheck||this.version?this.isVersionSupported()||e.push({error:o.ValidationError.UnsupportedCardVersion,message:"The specified card version ("+this.version+") is not supported. The maximum supported card version is "+lt.currentVersion}):e.push({error:o.ValidationError.PropertyCantBeNull,message:"The version property must be specified."}),e.concat(st.prototype.validate.call(this))},lt.prototype.parse=function(e,t){this._fallbackCard=null,this._cardTypeName=e.type;var n=e.lang;if(n&&"string"==typeof n)try{this.lang=n}catch(e){tt({error:o.ValidationError.InvalidPropertyValue,message:e.message},t)}this.version=l.Version.parse(e.version,t),this.fallbackText=e.fallbackText;var i=g(null,e.fallback,t);i&&(this._fallbackCard=new lt,this._fallbackCard.addItem(i)),st.prototype.parse.call(this,e,t)},lt.prototype.render=function(e){var t;if(this.shouldFallback())if(this._fallbackCard)this._fallbackCard.hostConfig=this.hostConfig,t=this._fallbackCard.render();else{var n=a.isNullOrEmpty(this.fallbackText)?"The card could not be rendered. It is either malformed or uses features not supported by this host.":this.fallbackText;try{var i=new lt;i.hostConfig=this.hostConfig,i.parse({type:"AdaptiveCard",version:"1.0",body:[{type:"TextBlock",text:n,wrap:!0}]}),t=i.render()}catch(e){(t=document.createElement("div")).innerHTML=n}}else(t=st.prototype.render.call(this))&&(t.tabIndex=0,a.isNullOrEmpty(this.speak)||t.setAttribute("aria-label",this.speak));return e&&(e.appendChild(t),this.updateLayout()),t},lt.prototype.updateLayout=function(e){var t;void 0===e&&(e=!0),st.prototype.updateLayout.call(this,e),lt.useAdvancedCardBottomTruncation&&this.isRendered()&&(t=this.renderedElement,e=this.hostConfig.getEffectiveSpacing(o.Spacing.Default),this.handleOverflow(t.offsetHeight-e))},lt.prototype.shouldFallback=function(){return st.prototype.shouldFallback.call(this)||!this.isVersionSupported()},Object.defineProperty(lt.prototype,"hasVisibleSeparator",{get:function(){return!1},enumerable:!0,configurable:!0}),lt.currentVersion=new l.Version(1,1),lt.useAdvancedTextBlockTruncation=!0,lt.useAdvancedCardBottomTruncation=!1,lt.useMarkdownInRadioButtonAndCheckbox=!0,lt.allowMarkForTextHighlighting=!1,lt.alwaysBleedSeparators=!1,lt.elementTypeRegistry=new n,lt.actionTypeRegistry=new f,lt.onAnchorClicked=null,lt.onExecuteAction=null,lt.onElementVisibilityChanged=null,lt.onImageLoaded=null,lt.onInlineCardExpanded=null,lt.onParseElement=null,lt.onParseAction=null,lt.onParseError=null,lt.onProcessMarkdown=null,lt);function lt(){var e=null!==st&&st.apply(this,arguments)||this;return e._cardTypeName="AdaptiveCard",e._fallbackCard=null,e.onAnchorClicked=null,e.onExecuteAction=null,e.onElementVisibilityChanged=null,e.onImageLoaded=null,e.onInlineCardExpanded=null,e.onParseElement=null,e.onParseAction=null,e.version=new l.Version(1,0),e.designMode=!1,e}t.AdaptiveCard=at;var ct,ut=(r(pt,ct=at),pt.prototype.getDefaultPadding=function(){return new s.PaddingDefinition(this.suppressStyle?o.Spacing.None:o.Spacing.Padding,o.Spacing.Padding,this.suppressStyle?o.Spacing.None:o.Spacing.Padding,o.Spacing.Padding)},Object.defineProperty(pt.prototype,"bypassVersionCheck",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"defaultStyle",{get:function(){return this.suppressStyle?o.ContainerStyle.Default:this.hostConfig.actions.showCard.style||o.ContainerStyle.Emphasis},enumerable:!0,configurable:!0}),pt.prototype.render=function(e){return(e=ct.prototype.render.call(this,e)).setAttribute("aria-live","polite"),e.removeAttribute("tabindex"),e},pt.prototype.getForbiddenActionTypes=function(){return[ke]},pt);function pt(){var e=null!==ct&&ct.apply(this,arguments)||this;return e.suppressStyle=!1,e}var dt=new l.HostConfig({supportsInteractivity:!0,fontFamily:"Segoe UI",spacing:{small:10,default:20,medium:30,large:40,extraLarge:50,padding:20},separator:{lineThickness:1,lineColor:"#EEEEEE"},fontSizes:{small:12,default:14,medium:17,large:21,extraLarge:26},fontWeights:{lighter:200,default:400,bolder:600},imageSizes:{small:40,medium:80,large:160},containerStyles:{default:{backgroundColor:"#FFFFFF",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#54a254",subtle:"#DD54a254"},warning:{default:"#e69500",subtle:"#DDe69500"}}},emphasis:{backgroundColor:"#08000000",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#54a254",subtle:"#DD54a254"},warning:{default:"#e69500",subtle:"#DDe69500"}}}},actions:{maxActions:5,spacing:o.Spacing.Default,buttonSpacing:10,showCard:{actionMode:o.ShowCardActionMode.Inline,inlineTopMargin:16},actionsOrientation:o.Orientation.Horizontal,actionAlignment:o.ActionAlignment.Left},adaptiveCard:{allowCustomStyle:!1},imageSet:{imageSize:o.Size.Medium,maxImageHeight:100},factSet:{title:{color:o.TextColor.Default,size:o.TextSize.Default,isSubtle:!1,weight:o.TextWeight.Bolder,wrap:!0,maxWidth:150},value:{color:o.TextColor.Default,size:o.TextSize.Default,isSubtle:!1,weight:o.TextWeight.Default,wrap:!0},spacing:10}})},"./src/enums.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(i=t.Size||(t.Size={}))[i.Auto=0]="Auto",i[i.Stretch=1]="Stretch",i[i.Small=2]="Small",i[i.Medium=3]="Medium",i[i.Large=4]="Large",(i=t.SizeUnit||(t.SizeUnit={}))[i.Weight=0]="Weight",i[i.Pixel=1]="Pixel",(i=t.TextSize||(t.TextSize={}))[i.Small=0]="Small",i[i.Default=1]="Default",i[i.Medium=2]="Medium",i[i.Large=3]="Large",i[i.ExtraLarge=4]="ExtraLarge",(i=t.Spacing||(t.Spacing={}))[i.None=0]="None",i[i.Small=1]="Small",i[i.Default=2]="Default",i[i.Medium=3]="Medium",i[i.Large=4]="Large",i[i.ExtraLarge=5]="ExtraLarge",i[i.Padding=6]="Padding",(i=t.TextWeight||(t.TextWeight={}))[i.Lighter=0]="Lighter",i[i.Default=1]="Default",i[i.Bolder=2]="Bolder",(i=t.TextColor||(t.TextColor={}))[i.Default=0]="Default",i[i.Dark=1]="Dark",i[i.Light=2]="Light",i[i.Accent=3]="Accent",i[i.Good=4]="Good",i[i.Warning=5]="Warning",i[i.Attention=6]="Attention",(i=t.HorizontalAlignment||(t.HorizontalAlignment={}))[i.Left=0]="Left",i[i.Center=1]="Center",i[i.Right=2]="Right",(i=t.VerticalAlignment||(t.VerticalAlignment={}))[i.Top=0]="Top",i[i.Center=1]="Center",i[i.Bottom=2]="Bottom",(i=t.ActionAlignment||(t.ActionAlignment={}))[i.Left=0]="Left",i[i.Center=1]="Center",i[i.Right=2]="Right",i[i.Stretch=3]="Stretch",(i=t.ImageStyle||(t.ImageStyle={}))[i.Default=0]="Default",i[i.Person=1]="Person",(i=t.ShowCardActionMode||(t.ShowCardActionMode={}))[i.Inline=0]="Inline",i[i.Popup=1]="Popup",(i=t.Orientation||(t.Orientation={}))[i.Horizontal=0]="Horizontal",i[i.Vertical=1]="Vertical",(i=t.FillMode||(t.FillMode={}))[i.Cover=0]="Cover",i[i.RepeatHorizontally=1]="RepeatHorizontally",i[i.RepeatVertically=2]="RepeatVertically",i[i.Repeat=3]="Repeat",(i=t.ActionIconPlacement||(t.ActionIconPlacement={}))[i.LeftOfTitle=0]="LeftOfTitle",i[i.AboveTitle=1]="AboveTitle",(i=t.InputTextStyle||(t.InputTextStyle={}))[i.Text=0]="Text",i[i.Tel=1]="Tel",i[i.Url=2]="Url",i[i.Email=3]="Email";var i=(r.Default="default",r.Emphasis="emphasis",r);function r(){}t.ContainerStyle=i,(i=t.ValidationError||(t.ValidationError={}))[i.Hint=0]="Hint",i[i.ActionTypeNotAllowed=1]="ActionTypeNotAllowed",i[i.CollectionCantBeEmpty=2]="CollectionCantBeEmpty",i[i.Deprecated=3]="Deprecated",i[i.ElementTypeNotAllowed=4]="ElementTypeNotAllowed",i[i.InteractivityNotAllowed=5]="InteractivityNotAllowed",i[i.InvalidPropertyValue=6]="InvalidPropertyValue",i[i.MissingCardType=7]="MissingCardType",i[i.PropertyCantBeNull=8]="PropertyCantBeNull",i[i.TooManyActions=9]="TooManyActions",i[i.UnknownActionType=10]="UnknownActionType",i[i.UnknownElementType=11]="UnknownElementType",i[i.UnsupportedCardVersion=12]="UnsupportedCardVersion",(t=t.ContainerFitStatus||(t.ContainerFitStatus={}))[t.FullyInContainer=0]="FullyInContainer",t[t.Overflowing=1]="Overflowing",t[t.FullyOutOfContainer=2]="FullyOutOfContainer"},"./src/host-config.ts":function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n("./src/enums.ts"),s=n("./src/utils.ts"),a=n("./src/shared.ts"),l=function(e){this.default="#000000",this.subtle="#666666",e&&(this.default=e.default||this.default,this.subtle=e.subtle||this.subtle)};t.TextColorDefinition=l;var c=function(e){this.allowCustomStyle=!1,e&&(this.allowCustomStyle=e.allowCustomStyle||this.allowCustomStyle)};t.AdaptiveCardConfig=c;var u=(p.prototype.toJSON=function(){return{imageSize:o.Size[this.imageSize],maxImageHeight:this.maxImageHeight}},p);function p(e){this.imageSize=o.Size.Medium,this.maxImageHeight=100,e&&(this.imageSize=(null!=e.imageSize?e:this).imageSize,this.maxImageHeight=s.getValueOrDefault(e.maxImageHeight,100))}t.ImageSetConfig=u;var d=(h.prototype.toJSON=function(){return{defaultPoster:this.defaultPoster,allowInlinePlayback:this.allowInlinePlayback}},h);function h(e){this.allowInlinePlayback=!0,e&&(this.defaultPoster=e.defaultPoster,this.allowInlinePlayback=e.allowInlinePlayback||this.allowInlinePlayback)}t.MediaConfig=d;var g=(f.prototype.getDefaultWeight=function(){return o.TextWeight.Default},f.prototype.toJSON=function(){return{size:o.TextSize[this.size],color:o.TextColor[this.color],isSubtle:this.isSubtle,weight:o.TextWeight[this.weight],wrap:this.wrap}},f);function f(e){this.size=o.TextSize.Default,this.color=o.TextColor.Default,this.isSubtle=!1,this.weight=o.TextWeight.Default,this.wrap=!0,e&&(this.size=s.parseHostConfigEnum(o.TextSize,e.size,o.TextSize.Default),this.color=s.parseHostConfigEnum(o.TextColor,e.color,o.TextColor.Default),this.isSubtle=e.isSubtle||this.isSubtle,this.weight=s.parseHostConfigEnum(o.TextWeight,e.weight,this.getDefaultWeight()),this.wrap=(null!=e.wrap?e:this).wrap)}t.FactTextDefinition=g;var m,y=(r(v,m=g),v.prototype.getDefaultWeight=function(){return o.TextWeight.Bolder},v);function v(e){var t=m.call(this,e)||this;return t.maxWidth=150,t.weight=o.TextWeight.Bolder,e&&(t.maxWidth=(null!=e.maxWidth?e:t).maxWidth,t.weight=s.parseHostConfigEnum(o.TextWeight,e.weight,o.TextWeight.Bolder)),t}t.FactTitleDefinition=y;var C=function(e){this.title=new y,this.value=new g,this.spacing=10,e&&(this.title=new y(e.title),this.value=new g(e.value),this.spacing=e.spacing&&null!=e.spacing?e.spacing&&e.spacing:this.spacing)};t.FactSetConfig=C;var b=(A.prototype.toJSON=function(){return{actionMode:o.ShowCardActionMode[this.actionMode],inlineTopMargin:this.inlineTopMargin,style:this.style}},A);function A(e){this.actionMode=o.ShowCardActionMode.Inline,this.inlineTopMargin=16,this.style=o.ContainerStyle.Emphasis,e&&(this.actionMode=s.parseHostConfigEnum(o.ShowCardActionMode,e.actionMode,o.ShowCardActionMode.Inline),this.inlineTopMargin=(null!=e.inlineTopMargin?e:this).inlineTopMargin,this.style=e.style&&"string"==typeof e.style?e.style:o.ContainerStyle.Emphasis)}t.ShowCardActionConfig=b;var x=(S.prototype.toJSON=function(){return{maxActions:this.maxActions,spacing:o.Spacing[this.spacing],buttonSpacing:this.buttonSpacing,showCard:this.showCard,preExpandSingleShowCardAction:this.preExpandSingleShowCardAction,actionsOrientation:o.Orientation[this.actionsOrientation],actionAlignment:o.ActionAlignment[this.actionAlignment]}},S);function S(e){if(this.maxActions=5,this.spacing=o.Spacing.Default,this.buttonSpacing=20,this.showCard=new b,this.preExpandSingleShowCardAction=!1,this.actionsOrientation=o.Orientation.Horizontal,this.actionAlignment=o.ActionAlignment.Left,this.iconPlacement=o.ActionIconPlacement.LeftOfTitle,this.allowTitleToWrap=!1,this.iconSize=24,e){this.maxActions=(null!=e.maxActions?e:this).maxActions,this.spacing=s.parseHostConfigEnum(o.Spacing,e.spacing&&e.spacing,o.Spacing.Default),this.buttonSpacing=(null!=e.buttonSpacing?e:this).buttonSpacing,this.showCard=new b(e.showCard),this.preExpandSingleShowCardAction=s.getValueOrDefault(e.preExpandSingleShowCardAction,!1),this.actionsOrientation=s.parseHostConfigEnum(o.Orientation,e.actionsOrientation,o.Orientation.Horizontal),this.actionAlignment=s.parseHostConfigEnum(o.ActionAlignment,e.actionAlignment,o.ActionAlignment.Left),this.iconPlacement=s.parseHostConfigEnum(o.ActionIconPlacement,e.iconPlacement,o.ActionIconPlacement.LeftOfTitle),this.allowTitleToWrap=(null!=e.allowTitleToWrap?e:this).allowTitleToWrap;try{var t=a.SizeAndUnit.parse(e.iconSize);t.unit==o.SizeUnit.Pixel&&(this.iconSize=t.physicalSize)}catch(e){}}}t.ActionsConfig=x;var I=(E.prototype.getTextColorDefinitionOrDefault=function(e,t){return new l(e||t)},E.prototype.parse=function(e){e&&(this.backgroundColor=e.backgroundColor,e.foregroundColors&&(this.foregroundColors.default=this.getTextColorDefinitionOrDefault(e.foregroundColors.default,{default:"#333333",subtle:"#EE333333"}),this.foregroundColors.dark=this.getTextColorDefinitionOrDefault(e.foregroundColors.dark,{default:"#000000",subtle:"#66000000"}),this.foregroundColors.light=this.getTextColorDefinitionOrDefault(e.foregroundColors.light,{default:"#FFFFFF",subtle:"#33000000"}),this.foregroundColors.accent=this.getTextColorDefinitionOrDefault(e.foregroundColors.accent,{default:"#2E89FC",subtle:"#882E89FC"}),this.foregroundColors.good=this.getTextColorDefinitionOrDefault(e.foregroundColors.good,{default:"#54A254",subtle:"#DD54A254"}),this.foregroundColors.warning=this.getTextColorDefinitionOrDefault(e.foregroundColors.warning,{default:"#E69500",subtle:"#DDE69500"}),this.foregroundColors.attention=this.getTextColorDefinitionOrDefault(e.foregroundColors.attention,{default:"#CC3300",subtle:"#DDCC3300"})),this.highlightBackgroundColor=e.highlightBackgroundColor,this.highlightForegroundColor=e.highlightForegroundColor)},Object.defineProperty(E.prototype,"isBuiltIn",{get:function(){return!1},enumerable:!0,configurable:!0}),E);function E(e){this.foregroundColors={default:new l,dark:new l,light:new l,accent:new l,good:new l,warning:new l,attention:new l},this.parse(e)}t.ContainerStyleDefinition=I;var w,_=(r(P,w=I),Object.defineProperty(P.prototype,"isBuiltIn",{get:function(){return!0},enumerable:!0,configurable:!0}),P);function P(){return null!==w&&w.apply(this,arguments)||this}var k=(T.prototype.toJSON=function(){var e=this,t=[];Object.keys(this._allStyles).forEach((function(n){e._allStyles[n].isBuiltIn||t.push({name:n,style:e._allStyles[n]})}));var n={default:this.default,emphasis:this.emphasis};return 0<t.length&&(n.customStyles=t),n},T.prototype.getStyleByName=function(e,t){return void 0===t&&(t=null),this._allStyles.hasOwnProperty(e)?this._allStyles[e]:t},Object.defineProperty(T.prototype,"default",{get:function(){return this._allStyles[o.ContainerStyle.Default]},enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"emphasis",{get:function(){return this._allStyles[o.ContainerStyle.Emphasis]},enumerable:!0,configurable:!0}),T);function T(e){if(this._allStyles={},this._allStyles[o.ContainerStyle.Default]=new _,this._allStyles[o.ContainerStyle.Emphasis]=new _,e&&(this._allStyles[o.ContainerStyle.Default].parse(e[o.ContainerStyle.Default]),this._allStyles[o.ContainerStyle.Emphasis].parse(e[o.ContainerStyle.Emphasis]),(e=e.customStyles)&&Array.isArray(e)))for(var t=0,n=e;t<n.length;t++){var i,r=n[t];!r||(i=r.name)&&"string"==typeof i&&(this._allStyles.hasOwnProperty(i)?this._allStyles[i].parse(r.style):this._allStyles[i]=new I(r.style))}}t.ContainerStyleSet=k;var M=(O.parse=function(e,t){if(!e)return null;var n=new O;return n._versionString=e,null!=(e=/(\d+).(\d+)/gi.exec(e))&&3==e.length?(n._major=parseInt(e[1]),n._minor=parseInt(e[2])):n._isValid=!1,!n._isValid&&t&&t.push({error:o.ValidationError.InvalidPropertyValue,message:"Invalid version string: "+n._versionString}),n},O.prototype.toString=function(){return this._isValid?this._major+"."+this._minor:this._versionString},O.prototype.compareTo=function(e){if(!this.isValid||!e.isValid)throw new Error("Cannot compare invalid version.");return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:0},Object.defineProperty(O.prototype,"major",{get:function(){return this._major},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"minor",{get:function(){return this._minor},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"isValid",{get:function(){return this._isValid},enumerable:!0,configurable:!0}),O);function O(e,t){void 0===e&&(e=1),void 0===t&&(t=1),this._isValid=!0,this._major=e,this._minor=t}t.Version=M;var D=(F.prototype.setCapability=function(e,t){this.capabilities||(this.capabilities={}),this.capabilities[e]=t},F.prototype.parse=function(e,t){if(e)for(var n in e){var i=e[n];"string"==typeof i&&("*"==i?this.setCapability(n,"*"):(i=M.parse(i,t)).isValid&&this.setCapability(n,i))}},F.prototype.hasCapability=function(e,t){return!(!this.capabilities||!this.capabilities.hasOwnProperty(e))&&("*"==t||"*"==this.capabilities[e]||t.compareTo(this.capabilities[e])<=0)},F.prototype.areAllMet=function(e){if(this.capabilities)for(var t in this.capabilities)if(!e.hasCapability(t,this.capabilities[t]))return!1;return!0},F);function F(){this.capabilities=null}function R(e){this.hostCapabilities=new D,this.choiceSetInputValueSeparator=",",this.supportsInteractivity=!0,this.fontFamily="Segoe UI,Segoe,Segoe WP,Helvetica Neue,Helvetica,sans-serif",this.spacing={small:3,default:8,medium:20,large:30,extraLarge:40,padding:15},this.separator={lineThickness:1,lineColor:"#EEEEEE"},this.fontSizes={small:12,default:14,medium:17,large:21,extraLarge:26},this.fontWeights={lighter:200,default:400,bolder:600},this.imageSizes={small:40,medium:80,large:160},this.containerStyles=new k,this.actions=new x,this.adaptiveCard=new c,this.imageSet=new u,this.media=new d,this.factSet=new C,this.cssClassNamePrefix=null,e&&(("string"==typeof e||e instanceof String)&&(e=JSON.parse(e)),this.choiceSetInputValueSeparator=(e&&"string"==typeof e.choiceSetInputValueSeparator?e:this).choiceSetInputValueSeparator,this.supportsInteractivity=(e&&"boolean"==typeof e.supportsInteractivity?e:this).supportsInteractivity,this.fontFamily=e.fontFamily||this.fontFamily,this.fontSizes={small:e.fontSizes&&e.fontSizes.small||this.fontSizes.small,default:e.fontSizes&&e.fontSizes.default||this.fontSizes.default,medium:e.fontSizes&&e.fontSizes.medium||this.fontSizes.medium,large:e.fontSizes&&e.fontSizes.large||this.fontSizes.large,extraLarge:e.fontSizes&&e.fontSizes.extraLarge||this.fontSizes.extraLarge},e.lineHeights&&(this.lineHeights={small:e.lineHeights.small,default:e.lineHeights.default,medium:e.lineHeights.medium,large:e.lineHeights.large,extraLarge:e.lineHeights.extraLarge}),this.fontWeights={lighter:e.fontWeights&&e.fontWeights.lighter||this.fontWeights.lighter,default:e.fontWeights&&e.fontWeights.default||this.fontWeights.default,bolder:e.fontWeights&&e.fontWeights.bolder||this.fontWeights.bolder},this.imageSizes={small:e.imageSizes&&e.imageSizes.small||this.imageSizes.small,medium:e.imageSizes&&e.imageSizes.medium||this.imageSizes.medium,large:e.imageSizes&&e.imageSizes.large||this.imageSizes.large},this.containerStyles=new k(e.containerStyles),this.spacing={small:e.spacing&&e.spacing.small||this.spacing.small,default:e.spacing&&e.spacing.default||this.spacing.default,medium:e.spacing&&e.spacing.medium||this.spacing.medium,large:e.spacing&&e.spacing.large||this.spacing.large,extraLarge:e.spacing&&e.spacing.extraLarge||this.spacing.extraLarge,padding:e.spacing&&e.spacing.padding||this.spacing.padding},this.separator={lineThickness:e.separator&&e.separator.lineThickness||this.separator.lineThickness,lineColor:e.separator&&e.separator.lineColor||this.separator.lineColor},this.actions=new x(e.actions||this.actions),this.adaptiveCard=new c(e.adaptiveCard||this.adaptiveCard),this.imageSet=new u(e.imageSet),this.factSet=new C(e.factSet))}t.HostCapabilities=D,R.prototype.getEffectiveSpacing=function(e){switch(e){case o.Spacing.Small:return this.spacing.small;case o.Spacing.Default:return this.spacing.default;case o.Spacing.Medium:return this.spacing.medium;case o.Spacing.Large:return this.spacing.large;case o.Spacing.ExtraLarge:return this.spacing.extraLarge;case o.Spacing.Padding:return this.spacing.padding;default:return 0}},R.prototype.paddingDefinitionToSpacingDefinition=function(e){return new a.SpacingDefinition(this.getEffectiveSpacing(e.top),this.getEffectiveSpacing(e.right),this.getEffectiveSpacing(e.bottom),this.getEffectiveSpacing(e.left))},R.prototype.makeCssClassName=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",i=0;i<e.length;i++)0<i&&(n+=" "),this.cssClassNamePrefix&&(n+=this.cssClassNamePrefix+"-"),n+=e[i];return n},r=R,t.HostConfig=r},"./src/shared.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("./src/enums.ts");function r(){this._isProcessed=!1,this._original=null,this._processed=null}function o(e,t){this.physicalSize=e,this.unit=t}function s(){}t.ContentTypes={applicationJson:"application/json",applicationXWwwFormUrlencoded:"application/x-www-form-urlencoded"},r.prototype.substituteInputValues=function(e,n){this._processed=this._original;for(var i,r=/\{{2}([a-z0-9_$@]+).value\}{2}/gi;null!=(i=r.exec(this._original));){for(var o,s=null,a=0;a<e.length;a++)if(e[a].id.toLowerCase()==i[1].toLowerCase()){s=e[a];break}s&&(o="",s.value&&(o=s.value),n===t.ContentTypes.applicationJson?o=(o=JSON.stringify(o)).slice(1,-1):n===t.ContentTypes.applicationXWwwFormUrlencoded&&(o=encodeURIComponent(o)),this._processed=this._processed.replace(i[0],o))}this._isProcessed=!0},r.prototype.getOriginal=function(){return this._original},r.prototype.get=function(){return this._isProcessed?this._processed:this._original},r.prototype.set=function(e){this._original=e,this._isProcessed=!1},n=r,t.StringWithSubstitutions=n,n=function(e,t,n,i){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0),this.left=0,this.top=0,this.right=0,this.bottom=0,this.top=e,this.right=t,this.bottom=n,this.left=i},t.SpacingDefinition=n,n=function(e,t,n,r){void 0===e&&(e=i.Spacing.None),void 0===t&&(t=i.Spacing.None),void 0===n&&(n=i.Spacing.None),void 0===r&&(r=i.Spacing.None),this.top=i.Spacing.None,this.right=i.Spacing.None,this.bottom=i.Spacing.None,this.left=i.Spacing.None,this.top=e,this.right=t,this.bottom=n,this.left=r},t.PaddingDefinition=n,o.parse=function(e,t){void 0===t&&(t=!1);var n=new o(0,i.SizeUnit.Weight),r=/^([0-9]+)(px|\*)?$/g.exec(e);if(t=t?3:2,r&&r.length>=t)return n.physicalSize=parseInt(r[1]),3==r.length&&"px"==r[2]&&(n.unit=i.SizeUnit.Pixel),n;throw new Error("Invalid size: "+e)},n=o,t.SizeAndUnit=n,s.generate=function(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return s.lut[255&e]+s.lut[e>>8&255]+s.lut[e>>16&255]+s.lut[e>>24&255]+"-"+s.lut[255&t]+s.lut[t>>8&255]+"-"+s.lut[t>>16&15|64]+s.lut[t>>24&255]+"-"+s.lut[63&n|128]+s.lut[n>>8&255]+"-"+s.lut[n>>16&255]+s.lut[n>>24&255]+s.lut[255&i]+s.lut[i>>8&255]+s.lut[i>>16&255]+s.lut[i>>24&255]},s.initialize=function(){for(var e=0;e<256;e++)s.lut[e]=(e<16?"0":"")+e.toString(16)},s.lut=[],n=s,(t.UUID=n).initialize()},"./src/text-formatters.ts":function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=(s.prototype.format=function(e,t){for(var n,i=t;null!=(n=this._regularExpression.exec(t));)i=i.replace(n[0],this.internalFormat(e,n));return i},s);function s(e){this._regularExpression=e}var a,l=(r(c,a=o),c.prototype.internalFormat=function(e,t){var n=new Date(Date.parse(t[1]));return"compact"!=(t=null!=t[2]?t[2].toLowerCase():"compact")?n.toLocaleDateString(e,{day:"numeric",weekday:t,month:t,year:"numeric"}):n.toLocaleDateString()},c);function c(){return null!==a&&a.apply(this,arguments)||this}var u,p=(r(d,u=o),d.prototype.internalFormat=function(e,t){return new Date(Date.parse(t[1])).toLocaleTimeString(e,{hour:"numeric",minute:"2-digit"})},d);function d(){return null!==u&&u.apply(this,arguments)||this}t.formatText=function(e,t){for(var n=[new l(/\{{2}DATE\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))(?:, ?(COMPACT|LONG|SHORT))?\)\}{2}/g),new p(/\{{2}TIME\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))\)\}{2}/g)],i=t,r=0;r<n.length;r++)i=n[r].format(e,i);return i}},"./src/utils.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("./src/enums.ts"),r=n("./src/shared.ts");function o(e,t){return e||t}function s(e){return null==e||""===e}function a(e,t,n){if(s(t))return n;for(var i in e)if(0<=parseInt(i,10)){var r=e[i];if(r&&"string"==typeof r&&r.toLowerCase()===t.toLowerCase())return parseInt(i,10)}return n}function l(e){var t=/#([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?/gi.exec(e);if(t&&t[4]){var n=parseInt(t[1],16)/255;return"rgba("+parseInt(t[2],16)+","+parseInt(t[3],16)+","+parseInt(t[4],16)+","+n+")"}return e}function c(e,t){for(t+=1;t<e.length&&"<"==e[t];)for(;t<e.length&&">"!=e[t++];);return t}t.generateUniqueId=function(){return"__ac-"+r.UUID.generate()},t.getValueOrDefault=o,t.isNullOrEmpty=s,t.appendChild=function(e,t){null!=t&&null!=t&&e.appendChild(t)},t.setProperty=function(e,t,n,i){void 0===i&&(i=void 0),!n||i&&i===n||(e[t]=n)},t.setEnumProperty=function(e,t,n,i,r){void 0!==r&&r===i||(t[n]=e[i])},t.parseBoolProperty=function(e,t){if("boolean"==typeof e)return e;if("string"==typeof e)switch(e.toLowerCase()){case"true":return!0;case"false":return!1;default:return t}return t},t.getEnumValueOrDefault=a,t.parseHostConfigEnum=function(e,t,n){return"string"==typeof t?a(e,t,n):"number"==typeof t?o(t,n):n},t.renderSeparation=function(e,t){if(0<e.spacing||0<e.lineThickness){var n=document.createElement("div");return n.className="ac-"+(t==i.Orientation.Horizontal?"horizontal":"vertical")+"-separator",t==i.Orientation.Horizontal?e.lineThickness?(n.style.paddingTop=e.spacing/2+"px",n.style.marginBottom=e.spacing/2+"px",n.style.borderBottom=e.lineThickness+"px solid "+l(e.lineColor)):n.style.height=e.spacing+"px":e.lineThickness?(n.style.paddingLeft=e.spacing/2+"px",n.style.marginRight=e.spacing/2+"px",n.style.borderRight=e.lineThickness+"px solid "+l(e.lineColor)):n.style.width=e.spacing+"px",n.style.overflow="hidden",n}return null},t.stringToCssColor=l,t.truncate=function(e,t,n){function i(){return-1<=t-e.scrollHeight}if(!i()){for(var r=e.innerHTML,o=function(t){e.innerHTML=r.substring(0,t)+"..."},s=function(e){for(var t=[],n=c(e,-1);n<e.length;)" "==e[n]&&t.push(n),n=c(e,n);return t}(r),a=0,l=s.length,u=0;a<l;){var p=Math.floor((a+l)/2);o(s[p]),i()?(u=s[p],a=p+1):l=p}if(o(u),n&&t-e.scrollHeight>=n-1){for(var d=c(r,u);d<r.length&&(o(d),i());)d=c(r,u=d);o(u)}}},t.getFitStatus=function(e,t){var n=e.offsetTop;return n+e.clientHeight<=t?i.ContainerFitStatus.FullyInContainer:n<t?i.ContainerFitStatus.Overflowing:i.ContainerFitStatus.FullyOutOfContainer}}},e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(i,r,function(e){return t[e]}.bind(null,r));return i},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s="./src/adaptivecards.ts");function e(i){if(n[i])return n[i].exports;var r=n[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var t,n}()},function(e,t,n){t=e.exports=n(34)(!1);var i=n(35),r=i(n(132)),o=i(n(133)),s=i(n(134)),a=i(n(135)),l=i(n(136)),c=i(n(137)),u=i(n(138)),p=i(n(139)),d=i(n(140)),h=i(n(141));t.push([e.i,".ac-image.ac-selectable {\r\n    cursor: pointer;\r\n}\r\n\r\n#actionable-message {\r\n    border-radius: 4px;\r\n    border: 1px solid #eeeeee;\r\n    background-color: #262626;\r\n    overflow: hidden;\r\n    margin: 12px 12px 20px 8px;\r\n}\r\n\r\na.ac-anchor {\r\n    text-decoration: underline;\r\n}\r\n\r\na.ac-anchor:link {\r\n    color: #2899f5;\r\n}\r\n\r\na.ac-anchor:visited {\r\n    color: #2899f5;\r\n}\r\n\r\na.ac-anchor:link:active {\r\n    color: #2899f5;\r\n}\r\n\r\na.ac-anchor:visited:active {\r\n    color: #2899f5;\r\n}\r\n\r\n.ac-container:not(.ac-adaptiveCard) {\r\n    outline: none;\r\n}\r\n\r\n.ac-adaptiveCard {\r\n    outline-color: #006ac1;\r\n}\r\n\r\n.ac-container.ac-selectable,\r\n.ac-columnSet.ac-selectable {\r\n    padding: 0px;\r\n    outline: none;\r\n    border: none;\r\n}\r\n\r\n.ac-container.ac-selectable:hover,\r\n.ac-columnSet.ac-selectable:hover,\r\n.ac-container.ac-selectable:focus,\r\n.ac-columnSet.ac-selectable:focus,\r\na.ac-anchor:focus {\r\n    background-color: rgba(255, 255, 255, 0.1);\r\n    outline: none;\r\n    border: none;\r\n}\r\n\r\n.ac-container.ac-selectable:active,\r\n.ac-columnSet.ac-selectable:active {\r\n    background-color: rgba(255, 255, 255, 0.15);\r\n    outline: none;\r\n    border: none;\r\n}\r\n\r\n.ac-pushButton {\r\n    /*default active */\r\n    vertical-align: middle;\r\n    cursor: default;\r\n    overflow: hidden;\r\n    font-family: 'Segoe UI';\r\n    font-size: 14px;\r\n    line-height: 20px;\r\n    letter-spacing: -0.15px;\r\n    font-weight: 500;\r\n    padding: 6px 8px 6px 8px;\r\n    -webkit-user-select: none;\r\n    -moz-user-select: none;\r\n    -ms-user-select: none;\r\n    user-select: none;\r\n    background-color: #1e1e1e;\r\n    color: #0078d4;\r\n    border-radius: 4px;\r\n    outline: none;\r\n    border: 1px solid #0078d4;\r\n    margin: 2px; /* needed for box-shadow */\r\n}\r\n\r\n.ac-pushButton.primary:enabled,\r\n.ac-pushButton.style-positive:enabled {\r\n    /*primary, positive active*/\r\n    background-color: #0078d4;\r\n    color: #000000;\r\n    border: 1px solid #0078d4;\r\n}\r\n\r\n.ac-pushButton.primary:hover:enabled,\r\n.ac-pushButton.style-positive:hover:enabled {\r\n    /*primary, positive hover*/\r\n    background-color: #106ebe;\r\n    color: #000000;\r\n    border: 1px solid #106ebe;\r\n}\r\n\r\n.ac-pushButton.primary:active:enabled,\r\n.ac-pushButton.style-positive:active:enabled {\r\n    /*primary, positive press*/\r\n    background-color: #aad2f3;\r\n    color: #000000;\r\n    border: 1px solid #aad2f3;\r\n}\r\n\r\n.ac-pushButton.primary:focus:enabled,\r\n.ac-pushButton.style-positive:focus:enabled {\r\n    /*primary, positive focus*/\r\n    background-color: #106ebe;\r\n    color: #000000;\r\n    border: 1px solid #106ebe;\r\n    box-shadow: 0 0 0 2px #14344f;\r\n}\r\n\r\n.ac-pushButton.primary:disabled,\r\n.ac-pushButton.style-positive:disabled,\r\n.ac-pushButton.style-destructive:disabled {\r\n    /*primary, positive, destructive disabled*/\r\n    background-color: #605e5c;\r\n    color: #000000;\r\n    border: 1px solid #605e5c;\r\n}\r\n\r\n.ac-pushButton.style-destructive:enabled {\r\n    /*destructive active*/\r\n    background-color: #e50000;\r\n    color: #000000;\r\n    border: 1px solid #e50000;\r\n}\r\n\r\n.ac-pushButton.style-destructive:hover:enabled {\r\n    /*destructive hover*/\r\n    background-color: #bf0000;\r\n    color: #000000;\r\n    border: 1px solid #bf0000;\r\n}\r\n\r\n.ac-pushButton.style-destructive:active:enabled {\r\n    /*destructive press*/\r\n    background-color: #ac0202;\r\n    color: #000000;\r\n    border: 1px solid #ac0202;\r\n}\r\n\r\n.ac-pushButton.style-destructive:focus:enabled {\r\n    /*destructive focus*/\r\n    background-color: #e50000;\r\n    color: #000000;\r\n    border: 1px solid #bf0000;\r\n    box-shadow: 0 0 0 2px #490e0e;\r\n}\r\n\r\n.ac-pushButton:hover:enabled {\r\n    /*default hover*/\r\n    background-color: #2b2b2b;\r\n    color: #106ebe;\r\n    border: 1px solid #106ebe;\r\n}\r\n\r\n.ac-pushButton:active:enabled {\r\n    /*default press*/\r\n    background-color: #2b2b2b;\r\n    color: #aad2f3;\r\n    border: 1px solid #aad2f3;\r\n}\r\n\r\n.ac-pushButton:focus:enabled {\r\n    /*default focus*/\r\n    background-color: #2b2b2b;\r\n    color: #106ebe;\r\n    border: 1px solid #106ebe;\r\n    box-shadow: 0 0 0 2px #14344f;\r\n}\r\n\r\n.ac-pushButton:disabled {\r\n    /*default disabled*/\r\n    background-color: #2b2b2b;\r\n    color: #605e5c;\r\n    border: 1px solid #605e5c;\r\n}\r\n\r\n.ac-input {\r\n    /*rest single line*/\r\n    font-family: 'Segoe UI';\r\n    font-size: 14px;\r\n    line-height: 20px;\r\n    color: #f3f2f1;\r\n    background-color: inherit;\r\n    border: 1px solid #d2d0ce;\r\n    border-radius: 4px;\r\n    padding: 4px 0px 4px 8px;\r\n}\r\n\r\n.ac-toggleinput {\r\n    font-family: 'Segoe UI';\r\n    font-size: 14px;\r\n    line-height: 20px;\r\n    color: #ffffff;\r\n    background-color: inherit;\r\n    padding: 4px 0px 4px 8px;\r\n}\r\n\r\n.ac-dateInput {\r\n    padding-bottom: 4px;\r\n    padding-top: 4px;\r\n    padding-right: 4px;\r\n    font-family: 'Segoe UI';\r\n    font-size: 14px;\r\n    line-height: 20px;\r\n    letter-spacing: -0.15px;\r\n}\r\n\r\n.ac-input.ac-textInput,\r\n.ac-input.ac-numberInput {\r\n    resize: none;\r\n    background-color: #1e1e1e;\r\n}\r\n\r\n.ac-numberInputError {\r\n    border: 1px solid #a4262c;\r\n    box-shadow: 0 0 0 2px #512022;\r\n}\r\n\r\n.ac-input.ac-textInput:focus,\r\n.ac-input.ac-textInput.ac-multiline:focus,\r\n.ac-input.ac-numberInput:focus,\r\n.ac-input.ac-textInput:hover,\r\n.ac-input.ac-textInput.ac-multiline:hover,\r\n.ac-input.ac-numberInput:hover {\r\n    border: 1px solid #0078d4;\r\n    color: #f3f2f1;\r\n}\r\n\r\n.checkBoxFocus /*done same as text*/ {\r\n    border: 1px solid #006ac1;\r\n    box-shadow: 0 0 0 2px #14344f;\r\n}\r\n\r\n.ac-multiline {\r\n    min-height: 72px;\r\n    box-sizing: border-box;\r\n}\r\n\r\n.ac-input.ac-textInput:focus::placeholder,\r\n.ac-input.ac-textInput.ac-multiline:focus::placeholder,\r\n.ac-input.ac-numberInput:focus::placeholder {\r\n    color: #707070;\r\n}\r\n\r\n.ac-input.ac-textInput::placeholder,\r\n.ac-input.ac-textInput.ac-multiline::placeholder,\r\n.ac-input.ac-numberInput::placeholder {\r\n    color: #707070;\r\n}\r\n\r\n.ac-input,\r\n.ac-multichoiceInput {\r\n    -webkit-appearance: none;\r\n    outline: none;\r\n}\r\n\r\n.ac-multichoiceInput:focus,\r\n.ac-multichoiceInput:hover {\r\n    border: 1px solid #0078d4;\r\n}\r\n\r\n.ac-multiInput,\r\n.ac-singleInput {\r\n    border: none;\r\n}\r\n\r\n.ac-openUrlIconNonPrimary {\r\n    background-position: right center;\r\n    background-repeat: no-repeat;\r\n    background-size: 14px 14px;\r\n    width: 22px;\r\n    height: 22px;\r\n    margin-left: 10px;\r\n    flex-shrink: 0;\r\n    background-image: url("+r+");\r\n}\r\n\r\n.ac-openUrlIconPrimary {\r\n    background-position: right center;\r\n    background-repeat: no-repeat;\r\n    background-size: 14px 14px;\r\n    width: 22px;\r\n    height: 22px;\r\n    margin-left: 10px;\r\n    flex-shrink: 0;\r\n    background-image: url("+o+");\r\n}\r\n\r\n.ac-openUrlIconDisabled {\r\n    background-position: right center;\r\n    background-repeat: no-repeat;\r\n    background-size: 14px 14px;\r\n    width: 22px;\r\n    height: 22px;\r\n    margin-left: 10px;\r\n    flex-shrink: 0;\r\n    background-image: url("+s+");\r\n}\r\n\r\n.iconDummyOpenUrl {\r\n    width: 0px;\r\n    height: 0px;\r\n    flex-shrink: 0;\r\n}\r\n\r\n.ac-input.ac-dropdown {\r\n    padding-bottom: 4px;\r\n    padding-top: 4px;\r\n    padding-left: 8px;\r\n    padding-right: 8px;\r\n    background-color: #1e1e1e;\r\n    appearance: auto;\r\n}\r\n\r\n.ac-input.ac-dropdown:focus,\r\n.ac-input.ac-dropdown:hover {\r\n    box-shadow: 0 0 0 2px #14344f;\r\n    color: #f3f2f1;\r\n    border: 1px solid #0078d4;\r\n    appearance: auto;\r\n}\r\n\r\ninput[type='radio'] {\r\n    /*done*/\r\n    -webkit-appearance: none;\r\n    height: 16px;\r\n    width: 16px;\r\n    background-size: 16px;\r\n    background-image: url("+a+");\r\n    outline: none;\r\n}\r\n\r\ninput[type='radio']:checked {\r\n    /*done*/\r\n    background-image: url("+l+");\r\n}\r\n\r\ninput[type='checkbox'] {\r\n    /*done*/\r\n    -webkit-appearance: none;\r\n    height: 16px;\r\n    width: 16px;\r\n    background-size: 16px;\r\n    background-image: url("+c+");\r\n    outline: none;\r\n    background-color: #1e1e1e;\r\n}\r\n\r\ninput[type='checkbox']:checked {\r\n    /*done*/\r\n    background-image: url("+u+");\r\n}\r\n\r\n.ac-spinner {\r\n    display: inline-block;\r\n    width: 16px;\r\n    height: 16px;\r\n    border: 2px solid;\r\n    border-radius: 50%;\r\n    border-top-color: transparent;\r\n    animation: spin 1s linear infinite;\r\n    -webkit-animation: spin 1s linear infinite;\r\n}\r\n\r\n.ac-pushButton .ac-spinner {\r\n    color: #0078d7;\r\n}\r\n\r\n.ac-pushButton.primary:enabled .ac-spinner {\r\n    color: #ffffff;\r\n}\r\n\r\n@keyframes spin {\r\n    to {\r\n        -webkit-transform: rotate(360deg);\r\n        transform: rotate(360deg);\r\n    }\r\n}\r\n@-webkit-keyframes spin {\r\n    to {\r\n        -webkit-transform: rotate(360deg);\r\n        transform: rotate(360deg);\r\n    }\r\n}\r\n\r\n#showHideOriginalMessage {\r\n    font-family: 'Segoe UI';\r\n    font-size: 12px;\r\n    color: #0078d7;\r\n    text-align: end;\r\n    padding: 16px;\r\n}\r\n\r\n#originalBodyContainer {\r\n    margin: -16px;\r\n    margin-top: 0px;\r\n    background-color: #262626;\r\n}\r\n\r\n.ac-overlay-spinner {\r\n    display: inline-block;\r\n    border-top-color: transparent !important;\r\n    animation: spin 1s linear infinite;\r\n    -webkit-animation: spin 1s linear infinite;\r\n    border: 2px solid #4ba0ff;\r\n    border-radius: 50%;\r\n    width: 18px;\r\n    height: 18px;\r\n    left: 50%;\r\n    position: relative;\r\n    margin-top: 8px;\r\n    margin-bottom: 16px;\r\n}\r\n\r\n.input-placeholder,\r\n::placeholder {\r\n    color: #707070;\r\n}\r\n\r\n.inlineExpandedShowCard {\r\n    /*tbd*/\r\n    padding: 8px 16px 16px 16px;\r\n    box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.2);\r\n    border-radius: 4px;\r\n    background-color: #323232;\r\n}\r\n\r\n.showCardHeaderDiv {\r\n    display: flex;\r\n    justify-content: space-between;\r\n    width: 100%;\r\n    margin-bottom: 8px;\r\n    vertical-align: middle;\r\n    line-height: 20px;\r\n}\r\n\r\n.showCardHeaderTitle {\r\n    box-sizing: border-box;\r\n    min-width: 0px;\r\n    font-size: 14px;\r\n    line-height: 20px;\r\n    letter-spacing: -0.15px;\r\n    font-family: 'Segoe UI';\r\n    color: #c3c3c3;\r\n    text-transform: capitalize;\r\n}\r\n\r\n.showCardCloseButton {\r\n    margin-left: auto;\r\n    margin-top: 3px;\r\n    font-family: 'Segoe UI';\r\n    font-size: 12px;\r\n    max-height: 100%;\r\n    min-width: 0px;\r\n    width: 14px;\r\n    height: 14px;\r\n    background-repeat: no-repeat;\r\n    background-position: left center;\r\n    background-size: contain;\r\n    background-image: url("+p+");\r\n}\r\n\r\ninput[type='number']::-webkit-outer-spin-button,\r\ninput[type='number']::-webkit-inner-spin-button {\r\n    -webkit-appearance: none;\r\n    margin: 0;\r\n}\r\n\r\n.noBorder {\r\n    border: none;\r\n    outline: none;\r\n}\r\n\r\n.amsnackbarwrapper {\r\n    text-align: center;\r\n}\r\n\r\n.amsnackbar {\r\n    display: inline-block;\r\n    visibility: hidden;\r\n    max-width: 500px;\r\n    font-family: 'Segoe UI';\r\n    font-size: 14px;\r\n    line-height: 20px;\r\n    background-color: #323232;\r\n    color: #e6e6e6;\r\n    border-radius: 5px;\r\n    text-align: center;\r\n    padding: 10px;\r\n    position: fixed;\r\n    z-index: 1;\r\n    top: 20px;\r\n    left: 50%;\r\n    transform: translate(-50%);\r\n    transform-origin: left center;\r\n    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);\r\n}\r\n\r\n.ac-input.ac-numberInput.error,\r\n.ac-input.ac-numberInput.error:focus {\r\n    border: 1px solid #a4262c;\r\n    box-shadow: 0 0 0 2px #512022;\r\n}\r\n\r\n.numberErrorElement {\r\n    padding: 4px 0px 4px 8px;\r\n    color: #a4262c;\r\n    font-size: 12px;\r\n}\r\n\r\n.required-asteriks {\r\n    color: rgb(228, 37, 43);\r\n    padding-right: 4px;\r\n}\r\n\r\n.required-text {\r\n    /*done*/\r\n    color: rgb(136, 136, 136);\r\n}\r\n\r\n.error-icon {\r\n    width: 16px;\r\n    height: 16px;\r\n    padding: 8px;\r\n    background-position: right center;\r\n    background-repeat: no-repeat;\r\n    background-size: 16px 16px;\r\n    background-image: url("+d+");\r\n}\r\n\r\n.success-icon {\r\n    width: 16px;\r\n    height: 16px;\r\n    padding: 8px;\r\n    background-position: right center;\r\n    background-repeat: no-repeat;\r\n    background-size: 16px 16px;\r\n    background-image: url("+h+");\r\n}\r\n\r\n.show {\r\n    visibility: visible;\r\n    -webkit-animation: fadein 0.5s;\r\n    animation: fadein 0.5s;\r\n}\r\n\r\n.fadeout-hide {\r\n    -webkit-animation: fadeout 0.5s;\r\n    animation: fadeout 0.5s;\r\n}\r\n\r\n.ac-requiredPlaceHolder {\r\n    font-size: 12px;\r\n    line-height: 20px;\r\n    font-family: 'Segoe UI';\r\n    color: #777777;\r\n    background-color: inherit;\r\n}\r\n\r\n.messageCardCompact-ac-image.ac-selectable {\r\n    cursor: pointer;\r\n}\r\n\r\na.messageCardCompact-ac-anchor {\r\n    text-decoration: none;\r\n}\r\n\r\na.messageCardCompact-ac-anchor:link {\r\n    color: #005a9e;\r\n}\r\n\r\na.messageCardCompact-ac-anchor:visited {\r\n    color: #005a9e;\r\n}\r\n\r\na.messageCardCompact-ac-anchor:link:active {\r\n    color: #004d84;\r\n}\r\n\r\na.messageCardCompact-ac-anchor:visited:active {\r\n    color: #004d84;\r\n}\r\n\r\n.messageCardCompact-ac-container.ac-selectable,\r\n.messageCardCompact-ac-columnSet.ac-selectable {\r\n    padding: 0px;\r\n}\r\n\r\n.messageCardCompact-ac-container.ac-selectable:hover,\r\n.messageCardCompact-ac-columnSet.ac-selectable:hover {\r\n    background-color: rgba(255, 255, 255, 0.1) !important;\r\n}\r\n\r\n.messageCardCompact-ac-container.ac-selectable:active,\r\n.messageCardCompact-ac-columnSet.ac-selectable:active {\r\n    background-color: rgba(255, 255, 255, 0.15) !important;\r\n}\r\n\r\n.messageCardCompact-ac-pushButton {\r\n    overflow: hidden;\r\n    text-overflow: ellipsis;\r\n    text-align: center;\r\n    vertical-align: middle;\r\n    cursor: default;\r\n    font-family: 'Segoe UI', sans-serif;\r\n    font-size: 12px;\r\n    font-weight: 600;\r\n    -webkit-user-select: none;\r\n    -moz-user-select: none;\r\n    -ms-user-select: none;\r\n    user-select: none;\r\n    color: #0078d7;\r\n    background-color: transparent;\r\n    border: none;\r\n    padding: 0;\r\n    margin: 0;\r\n}\r\n\r\n.messageCardCompact-ac-pushButton:hover {\r\n    cursor: pointer;\r\n}\r\n\r\n.messageCardCompact-ac-pushButton:active {\r\n    cursor: pointer;\r\n}\r\n\r\n.messageCardCompact-ac-pushButton.subdued {\r\n    color: #666666;\r\n}\r\n\r\n.messageCardCompact-ac-pushButton.subdued:hover {\r\n    color: #0078d7;\r\n}\r\n\r\n.messageCardCompact-ac-input {\r\n    font-family: 'Segoe UI', sans-serif;\r\n    font-size: 12px;\r\n    color: #707070;\r\n}\r\n\r\n.messageCardCompact-ac-input.ac-textInput {\r\n    resize: none;\r\n}\r\n\r\n.messageCardCompact-ac-input.ac-textInput.ac-multiline {\r\n    height: 72px;\r\n}\r\n\r\n.messageCardCompact-ac-input.ac-textInput,\r\n.messageCardCompact-ac-input.ac-numberInput,\r\n.messageCardCompact-ac-input.ac-dateInput,\r\n.messageCardCompact-ac-input.ac-timeInput {\r\n    height: 31px;\r\n}\r\n\r\n.messageCardCompact-ac-input.ac-textInput,\r\n.messageCardCompact-ac-input.ac-numberInput,\r\n.messageCardCompact-ac-input.ac-dateInput,\r\n.messageCardCompact-ac-input.ac-timeInput,\r\n.messageCardCompact-ac-input.ac-multichoiceInput {\r\n    border: 1px solid #dddddd;\r\n    padding: 4px 8px 4px 8px;\r\n}\r\n\r\n/* ACV2 specific styles */\r\n/* Invisible overlay to disable user interaction in the card */\r\n.aaf-invisible-overlay {\r\n    position: absolute;\r\n    left: 0;\r\n    top: 0;\r\n    width: 100%;\r\n    height: 100%;\r\n    background-color: transparent;\r\n    z-index: 1;\r\n}\r\n\r\n/* Overlay for all elements except buttons */\r\n.aaf-per-action-progress-overlay {\r\n    position: absolute;\r\n    left: 0;\r\n    top: 0;\r\n    width: 100%;\r\n    height: 100%;\r\n    background-color: rgba(0, 0, 0, 0.4);\r\n    display: flex;\r\n    justify-content: center;\r\n    align-items: center;\r\n}\r\n\r\n/* Overlay for auto-refresh action execution*/\r\n.aaf-per-action-progress-overlay.refresh {\r\n    align-items: start;\r\n    margin-top: 8px;\r\n    position: static;\r\n    height: 22px;\r\n}\r\n\r\n@keyframes aaf-spinner-rotate {\r\n    from {\r\n        transform: rotate(0);\r\n    }\r\n    to {\r\n        transform: rotate(360deg);\r\n    }\r\n}\r\n\r\n/* Spinner for all elements except buttons */\r\n.aaf-spinner {\r\n    width: 18px;\r\n    height: 18px;\r\n    border-radius: 50%;\r\n    border-width: 2px;\r\n    border-style: solid;\r\n    border-color: #4ba0ff #4ba0ff #4ba0ff transparent;\r\n    animation-name: aaf-spinner-rotate;\r\n    animation: spin 1s linear infinite;\r\n}\r\n\r\n/* Overlay for default button */\r\n.ac-pushButton .aaf-per-action-progress-overlay {\r\n    background-color: #000000;\r\n}\r\n\r\n/* Spinner for default button */\r\n.ac-pushButton .aaf-spinner {\r\n    border-color: #4ba0ff #4ba0ff #4ba0ff transparent;\r\n}\r\n\r\n/* Overlay for positive button */\r\n.ac-pushButton.style-positive .aaf-per-action-progress-overlay {\r\n    background-color: #4ba0ff;\r\n}\r\n\r\n/* Spinner for positive button */\r\n.ac-pushButton.style-positive .aaf-spinner {\r\n    border-color: transparent #000000 #000000 #000000;\r\n}\r\n\r\n/* Overlay for destructive button */\r\n.ac-pushButton.style-destructive .aaf-per-action-progress-overlay {\r\n    background-color: #e50000;\r\n}\r\n\r\n/* Spinner for destructive button */\r\n.ac-pushButton.style-destructive .aaf-spinner {\r\n    border-color: transparent #000000 #000000 #000000;\r\n}\r\n\r\n.ac-hidden {\r\n    display: none !important;\r\n}\r\n\r\n.ac-inlineActionButton {\r\n    overflow: hidden;\r\n    text-overflow: ellipsis;\r\n    text-align: center;\r\n    vertical-align: middle;\r\n    cursor: pointer;\r\n    font-family: 'Segoe UI', sans-serif;\r\n    font-size: 14px;\r\n    -webkit-user-select: none;\r\n    -moz-user-select: none;\r\n    -ms-user-select: none;\r\n    user-select: none;\r\n    border: none;\r\n    background-color: transparent;\r\n    height: 31px;\r\n}\r\n\r\n.ac-inlineActionButton.textOnly {\r\n    padding: 0 8px;\r\n}\r\n\r\n.ac-inlineActionButton.iconOnly {\r\n    padding: 0;\r\n}\r\n\r\n.ac-inlineActionButton:hover {\r\n    background-color: #eeeeee;\r\n}\r\n\r\n.ac-inlineActionButton:active {\r\n    background-color: #cccccc;\r\n}\r\n\r\n.ac-media-poster {\r\n}\r\n\r\n.ac-media-poster.empty {\r\n    height: 200px;\r\n    background-color: #f2f2f2;\r\n}\r\n\r\n.ac-media-playButton {\r\n    width: 56px;\r\n    height: 56px;\r\n    border: 1px solid #eeeeee;\r\n    border-radius: 28px;\r\n    box-shadow: 0px 0px 10px #eeeeee;\r\n    background-color: rgba(255, 255, 255, 0.9);\r\n    color: black;\r\n    cursor: pointer;\r\n}\r\n\r\n.ac-media-playButton-arrow {\r\n    color: black;\r\n    width: auto !important;\r\n    height: auto !important;\r\n}\r\n\r\n.ac-media-playButton:hover {\r\n    background-color: white;\r\n}\r\n\r\n/* Fix for markdown list is breaking in TextBlock*/\r\n.ac-textBlock > ul,\r\n.ac-textBlock > ol,\r\n.ac-textBlock > li {\r\n    width: auto !important;\r\n}\r\n",""])},function(e,t,n){t=e.exports=n(34)(!1);var i=n(35),r=i(n(142)),o=i(n(143)),s=i(n(144)),a=i(n(145)),l=i(n(146)),c=i(n(147)),u=i(n(148)),p=i(n(149)),d=i(n(150)),h=i(n(151));t.push([e.i,".ac-image.ac-selectable {\n    cursor: pointer;\n}\n\n#actionable-message {\n    border-radius: 4px;\n    border: 1px solid #e1e1e1;\n    background-color: #ffffff;\n    overflow: hidden;\n    margin: 12px 12px 20px 8px;\n}\n\na.ac-anchor {\n    text-decoration: underline;\n}\n\na.ac-anchor:link {\n    color: #005a9e;\n}\n\na.ac-anchor:visited {\n    color: #005a9e;\n}\n\na.ac-anchor:link:active {\n    color: #005a9e;\n}\n\na.ac-anchor:visited:active {\n    color: #005a9e;\n}\n\n.ac-container:not(.ac-adaptiveCard) {\n    outline: none;\n}\n\n.ac-adaptiveCard {\n    outline-color: #0767b7;\n}\n\n.ac-container.ac-selectable,\n.ac-columnSet.ac-selectable {\n    padding: 0px;\n    outline: none;\n    border: none;\n}\n\n.ac-container.ac-selectable:hover,\n.ac-columnSet.ac-selectable:hover,\n.ac-container.ac-selectable:focus,\n.ac-columnSet.ac-selectable:focus,\na.ac-anchor:focus {\n    background-color: rgba(0, 0, 0, 0.1);\n    outline: none;\n    border: none;\n}\n\n.ac-container.ac-selectable:active,\n.ac-columnSet.ac-selectable:active {\n    background-color: rgba(0, 0, 0, 0.15);\n    outline: none;\n    border: none;\n}\n\n.ac-pushButton {\n    /*default active*/\n    vertical-align: middle;\n    cursor: default;\n    overflow: hidden;\n    font-family: 'Segoe UI';\n    font-size: 14px;\n    line-height: 20px;\n    letter-spacing: -0.15px;\n    font-weight: 500;\n    padding: 6px 8px 6px 8px;\n    -webkit-user-select: none;\n    -moz-user-select: none;\n    -ms-user-select: none;\n    user-select: none;\n    background-color: #ffffff;\n    color: #3b3a39;\n    border-radius: 4px;\n    outline: none;\n    border: 1px solid #0078d4;\n    margin: 2px; /* needed for box-shadow */\n}\n\n.ac-pushButton.primary:enabled,\n.ac-pushButton.style-positive:enabled {\n    /*primary, positive active*/\n    background-color: #0078d7;\n    color: #ffffff;\n    border: 1px solid #0078d7;\n}\n\n.ac-pushButton.primary:hover:enabled,\n.ac-pushButton.style-positive:hover:enabled {\n    /*primary, positive hover*/\n    background-color: #106ebe;\n    color: #ffffff;\n    border: 1px solid #106ebe;\n}\n\n.ac-pushButton.primary:active:enabled,\n.ac-pushButton.style-positive:active:enabled {\n    /*primary, positive press*/\n    background-color: #005a9e;\n    color: #ffffff;\n    border: 1px solid #005a9e;\n}\n\n.ac-pushButton.primary:focus:enabled,\n.ac-pushButton.style-positive:focus:enabled {\n    /*primary, positive focus*/\n    background-color: #005a9e;\n    color: #ffffff;\n    border: 1px solid #005a9e;\n    box-shadow: 0 0 0 2px #e3eff9;\n}\n\n.ac-pushButton.primary:disabled,\n.ac-pushButton.style-positive:disabled,\n.ac-pushButton.style-destructive:disabled {\n    /*primary, positive, destructive disabled*/\n    background-color: #d2d0ce;\n    color: #ffffff;\n    border: 1px solid #d2d0ce;\n}\n\n.ac-pushButton.style-destructive:enabled {\n    /*destructive active*/\n    background-color: #e50000;\n    color: #ffffff;\n    border: 1px solid #e50000;\n}\n\n.ac-pushButton.style-destructive:hover:enabled {\n    /*destructive hover*/\n    background-color: #bf0000;\n    color: #ffffff;\n    border: 1px solid #bf0000;\n}\n\n.ac-pushButton.style-destructive:active:enabled {\n    /*destructive press*/\n    background-color: #ac0202;\n    color: #ffffff;\n    border: 1px solid #ac0202;\n}\n\n.ac-pushButton.style-destructive:focus:enabled {\n    /*destructive focus*/\n    background-color: #e50000;\n    color: #ffffff;\n    border: 1px solid #bf0000;\n    box-shadow: 0 0 0 2px #f3bebe;\n}\n\n.ac-pushButton:hover:enabled {\n    /*default hover*/\n    background-color: #eef6fc;\n    color: #3b3a39;\n    border: 1px solid #0078d4;\n}\n\n.ac-pushButton:active:enabled {\n    /*default press*/\n    background-color: #deecf9;\n    color: #3b3a39;\n    border: 1px solid #0078d4;\n}\n\n.ac-pushButton:focus:enabled {\n    /*default focus*/\n    border: 1px solid #0078d4;\n    background-color: #c7e0f4;\n    box-shadow: 0 0 0 2px #e3eff9;\n    color: #3b3a39;\n}\n\n.ac-pushButton:disabled {\n    /*default focus*/\n    background-color: #ffffff;\n    color: #979593;\n    border: 1px solid #edebe9;\n}\n\n.ac-input {\n    /*rest single line*/\n    font-family: 'Segoe UI';\n    font-size: 14px;\n    line-height: 20px;\n    color: #212121;\n    background-color: inherit;\n    border: 1px solid #605e5c;\n    border-radius: 4px;\n    padding: 4px 0px 4px 8px;\n}\n\n.ac-toggleinput {\n    font-family: 'Segoe UI';\n    font-size: 14px;\n    line-height: 20px;\n    color: #212121;\n    background-color: inherit;\n    padding: 4px 0px 4px 8px;\n}\n\n.ac-dateInput {\n    padding-bottom: 4px;\n    padding-top: 4px;\n    padding-right: 4px;\n    font-family: 'Segoe UI';\n    font-size: 14px;\n    line-height: 20px;\n    letter-spacing: -0.15px;\n}\n\n.ac-input.ac-textInput,\n.ac-input.ac-numberInput {\n    resize: none;\n    background-color: #ffffff;\n}\n\n.ac-numberInputError {\n    border: 1px solid #c8191f;\n    box-shadow: 0 0 0 2px #fbd6d7;\n}\n\n.ac-input.ac-textInput:focus,\n.ac-input.ac-textInput.ac-multiline:focus,\n.ac-input.ac-numberInput:focus,\n.ac-input.ac-textInput:hover,\n.ac-input.ac-textInput.ac-multiline:hover,\n.ac-input.ac-numberInput:hover {\n    border: 1px solid #0078d4;\n}\n\n.checkBoxFocus {\n    border: 1px solid #0767b7;\n    box-shadow: 0 0 0 2px #e3eff9;\n}\n\n.ac-multiline {\n    min-height: 72px;\n    box-sizing: border-box;\n}\n\n.ac-input.ac-textInput:focus::placeholder,\n.ac-input.ac-textInput.ac-multiline:focus::placeholder,\n.ac-input.ac-numberInput:focus::placeholder {\n    color: #797775;\n}\n\n.ac-input.ac-textInput::placeholder,\n.ac-input.ac-textInput.ac-multiline::placeholder,\n.ac-input.ac-numberInput::placeholder {\n    color: #797775;\n}\n\n.ac-input,\n.ac-multichoiceInput {\n    -webkit-appearance: none;\n    outline: none;\n}\n\n.ac-multichoiceInput:focus,\n.ac-multichoiceInput:hover {\n    border: 1px solid #0078d4;\n}\n\n.ac-multiInput,\n.ac-singleInput {\n    border: none;\n}\n\n.ac-openUrlIconNonPrimary {\n    background-position: right center;\n    background-repeat: no-repeat;\n    background-size: 14px 14px;\n    width: 22px;\n    height: 22px;\n    margin-left: 10px;\n    flex-shrink: 0;\n    background-image: url("+r+");\n}\n\n.ac-openUrlIconPrimary {\n    background-position: right center;\n    background-repeat: no-repeat;\n    background-size: 14px 14px;\n    width: 22px;\n    height: 22px;\n    margin-left: 10px;\n    flex-shrink: 0;\n    background-image: url("+o+");\n}\n\n.ac-openUrlIconDisabled {\n    background-position: right center;\n    background-repeat: no-repeat;\n    background-size: 14px 14px;\n    width: 22px;\n    height: 22px;\n    margin-left: 10px;\n    flex-shrink: 0;\n    background-image: url("+s+");\n}\n\n.iconDummyOpenUrl {\n    width: 0px;\n    height: 0px;\n    flex-shrink: 0;\n}\n\n.ac-input.ac-dropdown {\n    padding-bottom: 4px;\n    padding-top: 4px;\n    padding-left: 8px;\n    padding-right: 8px;\n    background-color: #ffffff;\n    appearance: auto;\n}\n\n.ac-input.ac-dropdown:focus,\n.ac-input.ac-dropdown:hover {\n    border: 1px solid #0767b3;\n    box-shadow: 0 0 0 2px #e3eff9;\n    appearance: auto;\n}\n\ninput[type='radio'] {\n    -webkit-appearance: none;\n    height: 16px;\n    width: 16px;\n    background-size: 16px;\n    background-image: url("+a+");\n    outline: none;\n}\n\ninput[type='radio']:checked {\n    background-image: url("+l+");\n}\n\ninput[type='checkbox'] {\n    -webkit-appearance: none;\n    height: 16px;\n    width: 16px;\n    background-size: 16px;\n    background-image: url("+c+");\n    outline: none;\n    background-color: #ffffff;\n}\n\ninput[type='checkbox']:checked {\n    background-image: url("+u+");\n}\n\n.ac-spinner {\n    display: inline-block;\n    width: 16px;\n    height: 16px;\n    border: 2px solid;\n    border-radius: 50%;\n    border-top-color: transparent;\n    animation: spin 1s linear infinite;\n    -webkit-animation: spin 1s linear infinite;\n}\n\n.ac-pushButton .ac-spinner {\n    color: #0078d7;\n}\n\n.ac-pushButton.primary:enabled .ac-spinner {\n    color: #ffffff;\n}\n\n@keyframes spin {\n    to {\n        -webkit-transform: rotate(360deg);\n        transform: rotate(360deg);\n    }\n}\n@-webkit-keyframes spin {\n    to {\n        -webkit-transform: rotate(360deg);\n        transform: rotate(360deg);\n    }\n}\n\n#showHideOriginalMessage {\n    font-family: 'Segoe UI';\n    font-size: 12px;\n    color: #0078d7;\n    text-align: end;\n    padding: 16px;\n}\n\n#originalBodyContainer {\n    margin: -16px;\n    margin-top: 0px;\n    background-color: white;\n}\n\n.ac-overlay-spinner {\n    display: inline-block;\n    border-top-color: transparent !important;\n    -webkit-animation: spin 1s linear infinite;\n    animation: spin 1s linear infinite;\n    border: 2px solid #0078d7;\n    border-radius: 50%;\n    width: 18px;\n    height: 18px;\n    left: 50%;\n    position: relative;\n    margin-top: 8px;\n    margin-bottom: 16px;\n}\n\n.input-placeholder,\n::placeholder {\n    color: #777777;\n}\n\n.inlineExpandedShowCard {\n    padding: 8px 16px 16px 16px;\n    box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.2);\n    border-radius: 4px;\n}\n\n.showCardHeaderDiv {\n    display: flex;\n    justify-content: space-between;\n    width: 100%;\n    margin-bottom: 8px;\n    vertical-align: middle;\n    line-height: 20px;\n}\n\n.showCardHeaderTitle {\n    box-sizing: border-box;\n    min-width: 0px;\n    font-size: 14px;\n    line-height: 20px;\n    letter-spacing: -0.15px;\n    font-family: 'Segoe UI';\n    color: #212121;\n    text-transform: capitalize;\n}\n\n.showCardCloseButton {\n    margin-left: auto;\n    margin-top: 3px;\n    font-family: 'Segoe UI';\n    font-size: 12px;\n    max-height: 100%;\n    min-width: 0px;\n    width: 14px;\n    height: 14px;\n    background-repeat: no-repeat;\n    background-position: left center;\n    background-size: contain;\n    background-image: url("+p+");\n}\n\ninput[type='number']::-webkit-outer-spin-button,\ninput[type='number']::-webkit-inner-spin-button {\n    -webkit-appearance: none;\n    margin: 0;\n}\n\n.noBorder {\n    border: none;\n    outline: none;\n}\n\n.amsnackbarwrapper {\n    text-align: center;\n}\n\n.amsnackbar {\n    display: inline-block;\n    visibility: hidden;\n    max-width: 500px;\n    font-family: 'Segoe UI';\n    font-size: 14px;\n    line-height: 20px;\n    background-color: #605d5a;\n    color: #ffffff;\n    border-radius: 5px;\n    text-align: center;\n    padding: 10px;\n    position: fixed;\n    z-index: 1;\n    top: 20px;\n    left: 50%;\n    transform: translate(-50%);\n    transform-origin: left center;\n    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);\n}\n\n.ac-input.ac-numberInput.error,\n.ac-input.ac-numberInput.error:focus {\n    border: 1px solid rgb(200, 25, 31);\n    box-shadow: 0 0 0 2px rgb(251, 214, 215);\n}\n\n.numberErrorElement {\n    padding: 4px 0px 4px 8px;\n    color: rgb(200, 25, 31);\n    font-size: 12px;\n}\n\n.required-asteriks {\n    color: rgb(228, 37, 43);\n    padding-right: 4px;\n}\n\n.required-text {\n    color: rgb(142, 142, 147);\n}\n\n.error-icon {\n    width: 16px;\n    height: 16px;\n    padding: 8px;\n    background-position: right center;\n    background-repeat: no-repeat;\n    background-size: 16px 16px;\n    background-image: url("+d+");\n}\n\n.success-icon {\n    width: 16px;\n    height: 16px;\n    padding: 8px;\n    background-position: right center;\n    background-repeat: no-repeat;\n    background-size: 16px 16px;\n    background-image: url("+h+");\n}\n\n.show {\n    visibility: visible;\n    -webkit-animation: fadein 0.5s;\n    animation: fadein 0.5s;\n}\n\n.fadeout-hide {\n    -webkit-animation: fadeout 0.5s;\n    animation: fadeout 0.5s;\n}\n\n.ac-requiredPlaceHolder {\n    font-size: 12px;\n    line-height: 20px;\n    font-family: 'Segoe UI';\n    color: #212121;\n    background-color: inherit;\n}\n\n.messageCardCompact-ac-image.ac-selectable {\n    cursor: pointer;\n}\n\na.messageCardCompact-ac-anchor {\n    text-decoration: none;\n}\n\na.messageCardCompact-ac-anchor:link {\n    color: #005a9e;\n}\n\na.messageCardCompact-ac-anchor:visited {\n    color: #005a9e;\n}\n\na.messageCardCompact-ac-anchor:link:active {\n    color: #004d84;\n}\n\na.messageCardCompact-ac-anchor:visited:active {\n    color: #004d84;\n}\n\n.messageCardCompact-ac-container.ac-selectable,\n.messageCardCompact-ac-columnSet.ac-selectable {\n    padding: 0px;\n}\n\n.messageCardCompact-ac-container.ac-selectable:hover,\n.messageCardCompact-ac-columnSet.ac-selectable:hover {\n    background-color: rgba(0, 0, 0, 0.1) !important;\n}\n\n.messageCardCompact-ac-container.ac-selectable:active,\n.messageCardCompact-ac-columnSet.ac-selectable:active {\n    background-color: rgba(0, 0, 0, 0.15) !important;\n}\n\n.messageCardCompact-ac-pushButton {\n    overflow: hidden;\n    text-overflow: ellipsis;\n    text-align: center;\n    vertical-align: middle;\n    cursor: default;\n    font-family: 'Segoe UI', sans-serif;\n    font-size: 12px;\n    font-weight: 600;\n    -webkit-user-select: none;\n    -moz-user-select: none;\n    -ms-user-select: none;\n    user-select: none;\n    color: #0078d7;\n    background-color: transparent;\n    border: none;\n    padding: 0;\n    margin: 0;\n}\n\n.messageCardCompact-ac-pushButton:hover {\n    cursor: pointer;\n}\n\n.messageCardCompact-ac-pushButton:active {\n    cursor: pointer;\n}\n\n.messageCardCompact-ac-pushButton.subdued {\n    color: #666666;\n}\n\n.messageCardCompact-ac-pushButton.subdued:hover {\n    color: #0078d7;\n}\n\n.messageCardCompact-ac-input {\n    font-family: 'Segoe UI', sans-serif;\n    font-size: 12px;\n    color: black;\n}\n\n.messageCardCompact-ac-input.ac-textInput {\n    resize: none;\n}\n\n.messageCardCompact-ac-input.ac-textInput.ac-multiline {\n    height: 72px;\n}\n\n.messageCardCompact-ac-input.ac-textInput,\n.messageCardCompact-ac-input.ac-numberInput,\n.messageCardCompact-ac-input.ac-dateInput,\n.messageCardCompact-ac-input.ac-timeInput {\n    height: 31px;\n}\n\n.messageCardCompact-ac-input.ac-textInput,\n.messageCardCompact-ac-input.ac-numberInput,\n.messageCardCompact-ac-input.ac-dateInput,\n.messageCardCompact-ac-input.ac-timeInput,\n.messageCardCompact-ac-input.ac-multichoiceInput {\n    border: 1px solid #dddddd;\n    padding: 4px 8px 4px 8px;\n}\n\n/* ACV2 specific styles */\n\n/* Invisible overlay to disable user interaction in the card */\n.aaf-invisible-overlay {\n    position: absolute;\n    left: 0;\n    top: 0;\n    width: 100%;\n    height: 100%;\n    background-color: transparent;\n    z-index: 1;\n}\n\n/* Overlay for all elements except buttons */\n.aaf-per-action-progress-overlay {\n    position: absolute;\n    left: 0;\n    top: 0;\n    width: 100%;\n    height: 100%;\n    background-color: rgba(255, 255, 255, 0.4);\n    display: flex;\n    justify-content: center;\n    align-items: center;\n}\n\n/* Overlay for auto-refresh action execution*/\n.aaf-per-action-progress-overlay.refresh {\n    align-items: start;\n    margin-top: 8px;\n    position: static;\n    height: 22px;\n}\n\n@keyframes aaf-spinner-rotate {\n    from {\n        transform: rotate(0);\n    }\n    to {\n        transform: rotate(360deg);\n    }\n}\n\n/* Spinner for all elements except buttons */\n.aaf-spinner {\n    width: 18px;\n    height: 18px;\n    border-radius: 50%;\n    border-width: 2px;\n    border-style: solid;\n    border-color: #0078d4 #0078d4 #0078d4 transparent;\n    animation-name: aaf-spinner-rotate;\n    animation: spin 1s linear infinite;\n}\n\n/* Overlay for default button */\n.ac-pushButton .aaf-per-action-progress-overlay {\n    background-color: #ffffff;\n}\n\n/* Spinner for default button */\n.ac-pushButton .aaf-spinner {\n    border-color: #0078d4 #0078d4 #0078d4 transparent;\n}\n\n/* Overlay for positive button */\n.ac-pushButton.style-positive .aaf-per-action-progress-overlay {\n    background-color: #0078d4;\n}\n\n/* Spinner for positive button */\n.ac-pushButton.style-positive .aaf-spinner {\n    border-color: transparent #ffffff #ffffff #ffffff;\n}\n\n/* Overlay for destructive button */\n.ac-pushButton.style-destructive .aaf-per-action-progress-overlay {\n    background-color: #e50000;\n}\n\n/* Spinner for destructive button */\n.ac-pushButton.style-destructive .aaf-spinner {\n    border-color: transparent #ffffff #ffffff #ffffff;\n}\n\n.ac-hidden {\n    display: none !important;\n}\n\n.ac-inlineActionButton {\n    overflow: hidden;\n    text-overflow: ellipsis;\n    text-align: center;\n    vertical-align: middle;\n    cursor: pointer;\n    font-family: 'Segoe UI', sans-serif;\n    font-size: 14px;\n    -webkit-user-select: none;\n    -moz-user-select: none;\n    -ms-user-select: none;\n    user-select: none;\n    border: none;\n    background-color: transparent;\n    height: 31px;\n}\n\n.ac-inlineActionButton.textOnly {\n    padding: 0 8px;\n}\n\n.ac-inlineActionButton.iconOnly {\n    padding: 0;\n}\n\n.ac-inlineActionButton:hover {\n    background-color: #eeeeee;\n}\n\n.ac-inlineActionButton:active {\n    background-color: #cccccc;\n}\n\n.ac-media-poster {\n}\n\n.ac-media-poster.empty {\n    height: 200px;\n    background-color: #f2f2f2;\n}\n\n.ac-media-playButton {\n    width: 56px;\n    height: 56px;\n    border: 1px solid #eeeeee;\n    border-radius: 28px;\n    box-shadow: 0px 0px 10px #eeeeee;\n    background-color: rgba(255, 255, 255, 0.9);\n    color: black;\n    cursor: pointer;\n}\n\n.ac-media-playButton-arrow {\n    color: black;\n    width: auto !important;\n    height: auto !important;\n}\n\n.ac-media-playButton:hover {\n    background-color: white;\n}\n\n/* Fix for markdown list is breaking in TextBlock*/\n.ac-textBlock > ul,\n.ac-textBlock > ol,\n.ac-textBlock > li {\n    width: auto !important;\n}\n",""])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CardObjectRegistry=void 0;var i=n(5),r=function(){function e(){this._items={}}return e.prototype.findByName=function(e){return this._items.hasOwnProperty(e)?this._items[e]:void 0},e.prototype.clear=function(){this._items={}},e.prototype.register=function(e,t,n){void 0===n&&(n=i.Versions.v1_0);var r=this.findByName(e);void 0!==r?r.objectType=t:r={typeName:e,objectType:t,schemaVersion:n},this._items[e]=r},e.prototype.unregister=function(e){delete this._items[e]},e.prototype.createInstance=function(e,t){var n=this.findByName(e);return n&&n.schemaVersion.compareTo(t)<=0?new n.objectType:void 0},e.prototype.getItemCount=function(){return Object.keys(this._items).length},e.prototype.getItemAt=function(e){var t=this;return Object.keys(this._items).map((function(e){return t._items[e]}))[e]},e}();t.CardObjectRegistry=r},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.CardObject=t.ValidationResults=void 0;var s=n(3),a=n(8),l=n(4),c=n(21),u=n(5),p=function(){function e(){this.allIds={},this.validationEvents=[]}return e.prototype.addFailure=function(e,t,n){this.validationEvents.push({phase:s.ValidationPhase.Validation,source:e,event:t,message:n})},e}();t.ValidationResults=p;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._shouldFallback=!1,t}return r(t,e),t.prototype.getSchemaKey=function(){return this.getJsonTypeName()},Object.defineProperty(t.prototype,"requires",{get:function(){return this.getValue(t.requiresProperty)},enumerable:!1,configurable:!0}),t.prototype.contains=function(e){return!!this._renderedElement&&this._renderedElement.contains(e)},t.prototype.preProcessPropertyValue=function(e,t){var n=void 0===t?this.getValue(e):t;if(l.GlobalSettings.allowPreProcessingPropertyValues){for(var i=this;i&&!i.onPreProcessPropertyValue;)i=i.parent;if(i&&i.onPreProcessPropertyValue)return i.onPreProcessPropertyValue(this,e,n)}return n},t.prototype.setParent=function(e){this._parent=e},t.prototype.setShouldFallback=function(e){this._shouldFallback=e},t.prototype.shouldFallback=function(){return this._shouldFallback||!this.requires.areAllMet(this.hostConfig.hostCapabilities)},t.prototype.getRootObject=function(){for(var e=this;e.parent;)e=e.parent;return e},t.prototype.internalValidateProperties=function(e){this.id&&(e.allIds.hasOwnProperty(this.id)?(1==e.allIds[this.id]&&e.addFailure(this,s.ValidationEvent.DuplicateId,a.Strings.errors.duplicateId(this.id)),e.allIds[this.id]+=1):e.allIds[this.id]=1)},t.prototype.validateProperties=function(){var e=new p;return this.internalValidateProperties(e),e},t.prototype.findDOMNodeOwner=function(e){return this.contains(e)?this:void 0},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedElement",{get:function(){return this._renderedElement},enumerable:!1,configurable:!0}),t.typeNameProperty=new u.StringProperty(u.Versions.v1_0,"type",void 0,void 0,void 0,(function(e){return e.getJsonTypeName()})),t.idProperty=new u.StringProperty(u.Versions.v1_0,"id"),t.requiresProperty=new u.SerializableObjectProperty(u.Versions.v1_2,"requires",c.HostCapabilities,!1,new c.HostCapabilities),o([u.property(t.idProperty)],t.prototype,"id",void 0),o([u.property(t.requiresProperty)],t.prototype,"requires",null),t}(u.SerializableObject);t.CardObject=d},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.HostCapabilities=void 0;var o=n(5),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._capabilities={},t}return r(t,e),t.prototype.getSchemaKey=function(){return"HostCapabilities"},t.prototype.internalParse=function(t,n){if(e.prototype.internalParse.call(this,t,n),t)for(var i in t){var r=t[i];if("string"==typeof r)if("*"==r)this.addCapability(i,"*");else{var s=o.Version.parse(r,n);s&&s.isValid&&this.addCapability(i,s)}}},t.prototype.internalToJSON=function(t,n){for(var i in e.prototype.internalToJSON.call(this,t,n),this._capabilities)t[i]=this._capabilities[i]},t.prototype.addCapability=function(e,t){this._capabilities[e]=t},t.prototype.removeCapability=function(e){delete this._capabilities[e]},t.prototype.clear=function(){this._capabilities={}},t.prototype.hasCapability=function(e,t){return!!this._capabilities.hasOwnProperty(e)&&("*"==t||"*"==this._capabilities[e]||t.compareTo(this._capabilities[e])<=0)},t.prototype.areAllMet=function(e){for(var t in this._capabilities)if(!e.hasCapability(t,this._capabilities[t]))return!1;return!0},t}(o.SerializableObject);t.HostCapabilities=s},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.SerializationContext=t.GlobalRegistry=t.AdaptiveCard=t.Authentication=t.TokenExchangeResource=t.AuthCardButton=t.RefreshDefinition=t.RefreshActionProperty=t.ContainerWithActions=t.ColumnSet=t.Column=t.Container=t.BackgroundImage=t.StylableCardElementContainer=t.ActionSet=t.ShowCardAction=t.HttpAction=t.HttpHeader=t.ToggleVisibilityAction=t.OpenUrlAction=t.ExecuteAction=t.SubmitAction=t.SubmitActionBase=t.Action=t.TimeInput=t.TimeProperty=t.DateInput=t.NumberInput=t.ChoiceSetInput=t.Choice=t.ToggleInput=t.TextInput=t.Input=t.Media=t.MediaSource=t.ImageSet=t.CardElementContainer=t.Image=t.FactSet=t.Fact=t.RichTextBlock=t.TextRun=t.TextBlock=t.BaseTextBlock=t.ActionProperty=t.CardElement=void 0;var s=n(3),a=n(4),l=n(6),c=n(10),u=n(41),p=n(20),d=n(5),h=n(19),g=n(8),f=n(42),m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._truncatedDueToOverflow=!1,t}return r(t,e),Object.defineProperty(t.prototype,"lang",{get:function(){return this.getValue(t.langProperty)||(this.parent?this.parent.lang:void 0)},set:function(e){this.setValue(t.langProperty,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getValue(t.isVisibleProperty)},set:function(e){a.GlobalSettings.useAdvancedCardBottomTruncation&&!e&&this.undoOverflowTruncation(),this.isVisible!==e&&(this.setValue(t.isVisibleProperty,e),this.updateRenderedElementVisibility(),this._renderedElement&&ae(this)),this._renderedElement&&this._renderedElement.setAttribute("aria-expanded",e.toString())},enumerable:!1,configurable:!0}),t.prototype.internalRenderSeparator=function(){var e=l.renderSeparation(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.spacing),lineThickness:this.separator?this.hostConfig.separator.lineThickness:void 0,lineColor:this.separator?this.hostConfig.separator.lineColor:void 0},this.separatorOrientation);if(a.GlobalSettings.alwaysBleedSeparators&&e&&this.separatorOrientation==s.Orientation.Horizontal){var t=this.getParentContainer();if(t&&t.getEffectivePadding()){var n=this.hostConfig.paddingDefinitionToSpacingDefinition(t.getEffectivePadding());e.style.marginLeft="-"+n.left+"px",e.style.marginRight="-"+n.right+"px"}}return e},t.prototype.updateRenderedElementVisibility=function(){var e=this.isDesignMode()||this.isVisible?this._defaultRenderedElementDisplayMode:"none";this._renderedElement&&(e?this._renderedElement.style.display=e:this._renderedElement.style.removeProperty("display")),this._separatorElement&&(this.parent&&this.parent.isFirstElement(this)?this._separatorElement.style.display="none":e?this._separatorElement.style.display=e:this._separatorElement.style.removeProperty("display"))},t.prototype.hideElementDueToOverflow=function(){this._renderedElement&&this.isVisible&&(this._renderedElement.style.visibility="hidden",this.isVisible=!1,ae(this,!1))},t.prototype.showElementHiddenDueToOverflow=function(){this._renderedElement&&!this.isVisible&&(this._renderedElement.style.removeProperty("visibility"),this.isVisible=!0,ae(this,!1))},t.prototype.handleOverflow=function(e){if(this.isVisible||this.isHiddenDueToOverflow()){var t=this.truncateOverflow(e);this._truncatedDueToOverflow=t||this._truncatedDueToOverflow,t?t&&!this.isVisible&&this.showElementHiddenDueToOverflow():this.hideElementDueToOverflow()}},t.prototype.resetOverflow=function(){var e=!1;return this._truncatedDueToOverflow&&(this.undoOverflowTruncation(),this._truncatedDueToOverflow=!1,e=!0),this.isHiddenDueToOverflow()&&this.showElementHiddenDueToOverflow(),e},t.prototype.getDefaultSerializationContext=function(){return new ye},t.prototype.createPlaceholderElement=function(){var e=this.getEffectiveStyleDefinition(),t=l.stringToCssColor(e.foregroundColors.default.subtle),n=document.createElement("div");return n.style.border="1px dashed "+t,n.style.padding="4px",n.style.minHeight="32px",n.style.fontSize="10px",n.style.color=t,n.innerText="Empty "+this.getJsonTypeName(),n},t.prototype.adjustRenderedElementSize=function(e){"auto"===this.height?e.style.flex="0 0 auto":e.style.flex="1 1 auto"},t.prototype.isDisplayed=function(){return void 0!==this._renderedElement&&this.isVisible&&this._renderedElement.offsetHeight>0},t.prototype.overrideInternalRender=function(){return this.internalRender()},t.prototype.applyPadding=function(){if(this.separatorElement&&this.separatorOrientation===s.Orientation.Horizontal)if(a.GlobalSettings.alwaysBleedSeparators&&!this.isBleeding()){var e=new a.PaddingDefinition;this.getImmediateSurroundingPadding(e);var t=this.hostConfig.paddingDefinitionToSpacingDefinition(e);this.separatorElement.style.marginLeft="-"+t.left+"px",this.separatorElement.style.marginRight="-"+t.right+"px"}else this.separatorElement.style.marginRight="0",this.separatorElement.style.marginLeft="0"},t.prototype.truncateOverflow=function(e){return!1},t.prototype.undoOverflowTruncation=function(){},t.prototype.getDefaultPadding=function(){return new a.PaddingDefinition},t.prototype.getHasBackground=function(){return!1},t.prototype.getPadding=function(){return this._padding},t.prototype.setPadding=function(e){this._padding=e},t.prototype.shouldSerialize=function(e){return void 0!==e.elementRegistry.findByName(this.getJsonTypeName())},Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCustomPadding",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"separatorOrientation",{get:function(){return s.Orientation.Horizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultStyle",{get:function(){return s.ContainerStyle.Default},enumerable:!1,configurable:!0}),t.prototype.parse=function(t,n){e.prototype.parse.call(this,t,n||new ye)},t.prototype.asString=function(){return""},t.prototype.isBleeding=function(){return!1},t.prototype.getEffectiveStyle=function(){return this.parent?this.parent.getEffectiveStyle():this.defaultStyle},t.prototype.getEffectiveStyleDefinition=function(){return this.hostConfig.containerStyles.getStyleByName(this.getEffectiveStyle())},t.prototype.getEffectiveTextStyleDefinition=function(){return this.parent?this.parent.getEffectiveTextStyleDefinition():this.hostConfig.textStyles.default},t.prototype.getForbiddenActionTypes=function(){return[]},t.prototype.getImmediateSurroundingPadding=function(e,t,n,i,r){if(void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===i&&(i=!0),void 0===r&&(r=!0),this.parent){var o=t&&this.parent.isTopElement(this),a=n&&this.parent.isRightMostElement(this),l=i&&this.parent.isBottomElement(this),c=r&&this.parent.isLeftMostElement(this),u=this.parent.getEffectivePadding();u&&(o&&u.top!=s.Spacing.None&&(e.top=u.top,o=!1),a&&u.right!=s.Spacing.None&&(e.right=u.right,a=!1),l&&u.bottom!=s.Spacing.None&&(e.bottom=u.bottom,l=!1),c&&u.left!=s.Spacing.None&&(e.left=u.left,c=!1)),(o||a||l||c)&&this.parent.getImmediateSurroundingPadding(e,o,a,l,c)}},t.prototype.getActionCount=function(){return 0},t.prototype.getActionAt=function(e){throw new Error(g.Strings.errors.indexOutOfRange(e))},t.prototype.remove=function(){return!!(this.parent&&this.parent instanceof w)&&this.parent.removeItem(this)},t.prototype.render=function(){return this._renderedElement=this.overrideInternalRender(),this._separatorElement=this.internalRenderSeparator(),this._renderedElement?(this.id&&(this._renderedElement.id=this.id),this.customCssSelector&&this._renderedElement.classList.add(this.customCssSelector),this._renderedElement.style.boxSizing="border-box",this._defaultRenderedElementDisplayMode=this._renderedElement.style.display?this._renderedElement.style.display:void 0,this.adjustRenderedElementSize(this._renderedElement),this.updateLayout(!1)):this.isDesignMode()&&(this._renderedElement=this.createPlaceholderElement()),this._renderedElement},t.prototype.updateLayout=function(e){void 0===e&&(e=!0),this.updateRenderedElementVisibility(),this.applyPadding()},t.prototype.indexOf=function(e){return-1},t.prototype.isDesignMode=function(){var e=this.getRootElement();return e instanceof ge&&e.designMode},t.prototype.isFirstElement=function(e){return!0},t.prototype.isLastElement=function(e){return!0},t.prototype.isAtTheVeryLeft=function(){return!this.parent||this.parent.isLeftMostElement(this)&&this.parent.isAtTheVeryLeft()},t.prototype.isAtTheVeryRight=function(){return!this.parent||this.parent.isRightMostElement(this)&&this.parent.isAtTheVeryRight()},t.prototype.isAtTheVeryTop=function(){return!this.parent||this.parent.isFirstElement(this)&&this.parent.isAtTheVeryTop()},t.prototype.isAtTheVeryBottom=function(){return!this.parent||this.parent.isLastElement(this)&&this.parent.isAtTheVeryBottom()},t.prototype.isBleedingAtTop=function(){return!1},t.prototype.isBleedingAtBottom=function(){return!1},t.prototype.isLeftMostElement=function(e){return!0},t.prototype.isRightMostElement=function(e){return!0},t.prototype.isTopElement=function(e){return this.isFirstElement(e)},t.prototype.isBottomElement=function(e){return this.isLastElement(e)},t.prototype.isHiddenDueToOverflow=function(){return void 0!==this._renderedElement&&"hidden"==this._renderedElement.style.visibility},t.prototype.getRootElement=function(){return this.getRootObject()},t.prototype.getParentContainer=function(){for(var e=this.parent;e;){if(e instanceof te)return e;e=e.parent}},t.prototype.getAllInputs=function(e){return void 0===e&&(e=!0),[]},t.prototype.getResourceInformation=function(){return[]},t.prototype.getElementById=function(e){return this.id===e?this:void 0},t.prototype.getActionById=function(e){},t.prototype.getEffectivePadding=function(){var e=this.getPadding();return e&&this.allowCustomPadding?e:this.getDefaultPadding()},Object.defineProperty(t.prototype,"hostConfig",{get:function(){return this._hostConfig?this._hostConfig:this.parent?this.parent.hostConfig:c.defaultHostConfig},set:function(e){this._hostConfig=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.parent?this.parent.indexOf(this):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInteractive",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInline",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVisibleSeparator",{get:function(){return!(!this.parent||!this.separatorElement)&&!this.parent.isFirstElement(this)&&(this.isVisible||this.isDesignMode())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"separatorElement",{get:function(){return this._separatorElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),t.langProperty=new d.StringProperty(d.Versions.v1_1,"lang",!0,/^[a-z]{2,3}$/gi),t.isVisibleProperty=new d.BoolProperty(d.Versions.v1_2,"isVisible",!0),t.separatorProperty=new d.BoolProperty(d.Versions.v1_0,"separator",!1),t.heightProperty=new d.ValueSetProperty(d.Versions.v1_1,"height",[{value:"auto"},{value:"stretch"}],"auto"),t.horizontalAlignmentProperty=new d.EnumProperty(d.Versions.v1_0,"horizontalAlignment",s.HorizontalAlignment,s.HorizontalAlignment.Left),t.spacingProperty=new d.EnumProperty(d.Versions.v1_0,"spacing",s.Spacing,s.Spacing.Default),o([d.property(t.horizontalAlignmentProperty)],t.prototype,"horizontalAlignment",void 0),o([d.property(t.spacingProperty)],t.prototype,"spacing",void 0),o([d.property(t.separatorProperty)],t.prototype,"separator",void 0),o([d.property(t.heightProperty)],t.prototype,"height",void 0),o([d.property(t.langProperty)],t.prototype,"lang",null),o([d.property(t.isVisibleProperty)],t.prototype,"isVisible",null),t}(p.CardObject);t.CardElement=m;var y=function(e){function t(t,n,i){void 0===i&&(i=[]);var r=e.call(this,t,n,void 0)||this;return r.targetVersion=t,r.name=n,r.forbiddenActionTypes=i,r}return r(t,e),t.prototype.parse=function(e,t,n){var i=e;return n.parseAction(i,t[this.name],this.forbiddenActionTypes,i.isDesignMode())},t.prototype.toJSON=function(e,t,n,i){i.serializeValue(t,this.name,n?n.toJSON(i):void 0,void 0,!0)},t}(d.PropertyDefinition);t.ActionProperty=y;var v=function(e){function t(t){var n=e.call(this)||this;return n.ariaHidden=!1,t&&(n.text=t),n}return r(t,e),t.prototype.populateSchema=function(n){e.prototype.populateSchema.call(this,n),n.remove(t.selectActionProperty)},Object.defineProperty(t.prototype,"text",{get:function(){return this.getValue(t.textProperty)},set:function(e){this.setText(e)},enumerable:!1,configurable:!0}),t.prototype.getFontSize=function(e){switch(this.effectiveSize){case s.TextSize.Small:return e.fontSizes.small;case s.TextSize.Medium:return e.fontSizes.medium;case s.TextSize.Large:return e.fontSizes.large;case s.TextSize.ExtraLarge:return e.fontSizes.extraLarge;default:return e.fontSizes.default}},t.prototype.getColorDefinition=function(e,t){switch(t){case s.TextColor.Accent:return e.accent;case s.TextColor.Dark:return e.dark;case s.TextColor.Light:return e.light;case s.TextColor.Good:return e.good;case s.TextColor.Warning:return e.warning;case s.TextColor.Attention:return e.attention;default:return e.default}},t.prototype.setText=function(e){this.setValue(t.textProperty,e)},t.prototype.init=function(e){this.size=e.size,this.weight=e.weight,this.color=e.color,this.isSubtle=e.isSubtle},t.prototype.asString=function(){return this.text},t.prototype.applyStylesTo=function(e){var t,n=this.hostConfig.getFontTypeDefinition(this.effectiveFontType);switch(n.fontFamily&&(e.style.fontFamily=n.fontFamily),this.effectiveSize){case s.TextSize.Small:t=n.fontSizes.small;break;case s.TextSize.Medium:t=n.fontSizes.medium;break;case s.TextSize.Large:t=n.fontSizes.large;break;case s.TextSize.ExtraLarge:t=n.fontSizes.extraLarge;break;default:t=n.fontSizes.default}e.style.fontSize=t+"px";var i,r=this.getColorDefinition(this.getEffectiveStyleDefinition().foregroundColors,this.effectiveColor);switch(e.style.color=l.stringToCssColor(this.effectiveIsSubtle?r.subtle:r.default),this.effectiveWeight){case s.TextWeight.Lighter:i=n.fontWeights.lighter;break;case s.TextWeight.Bolder:i=n.fontWeights.bolder;break;default:i=n.fontWeights.default}e.style.fontWeight=i.toString(),this.ariaHidden&&e.setAttribute("aria-hidden","true")},Object.defineProperty(t.prototype,"effectiveColor",{get:function(){return void 0!==this.color?this.color:this.getEffectiveTextStyleDefinition().color},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveFontType",{get:function(){return void 0!==this.fontType?this.fontType:this.getEffectiveTextStyleDefinition().fontType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveIsSubtle",{get:function(){return void 0!==this.isSubtle?this.isSubtle:this.getEffectiveTextStyleDefinition().isSubtle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveSize",{get:function(){return void 0!==this.size?this.size:this.getEffectiveTextStyleDefinition().size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveWeight",{get:function(){return void 0!==this.weight?this.weight:this.getEffectiveTextStyleDefinition().weight},enumerable:!1,configurable:!0}),t.textProperty=new d.StringProperty(d.Versions.v1_0,"text",!0),t.sizeProperty=new d.EnumProperty(d.Versions.v1_0,"size",s.TextSize),t.weightProperty=new d.EnumProperty(d.Versions.v1_0,"weight",s.TextWeight),t.colorProperty=new d.EnumProperty(d.Versions.v1_0,"color",s.TextColor),t.isSubtleProperty=new d.BoolProperty(d.Versions.v1_0,"isSubtle"),t.fontTypeProperty=new d.EnumProperty(d.Versions.v1_2,"fontType",s.FontType),t.selectActionProperty=new y(d.Versions.v1_1,"selectAction",["Action.ShowCard"]),o([d.property(t.sizeProperty)],t.prototype,"size",void 0),o([d.property(t.weightProperty)],t.prototype,"weight",void 0),o([d.property(t.colorProperty)],t.prototype,"color",void 0),o([d.property(t.fontTypeProperty)],t.prototype,"fontType",void 0),o([d.property(t.isSubtleProperty)],t.prototype,"isSubtle",void 0),o([d.property(t.textProperty)],t.prototype,"text",null),o([d.property(t.selectActionProperty)],t.prototype,"selectAction",void 0),t}(m);t.BaseTextBlock=v;var C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.wrap=!1,t._treatAsPlainText=!0,t.useMarkdown=!0,t}return r(t,e),t.prototype.restoreOriginalContent=function(){void 0!==this.renderedElement&&(this.maxLines&&this.maxLines>0&&(this.renderedElement.style.maxHeight=this._computedLineHeight*this.maxLines+"px"),this.renderedElement.innerHTML=this._originalInnerHtml)},t.prototype.truncateIfSupported=function(e){if(void 0!==this.renderedElement){var t=this.renderedElement.children,n=!t.length;if(n||1==t.length&&"p"==t[0].tagName.toLowerCase()){var i=n?this.renderedElement:t[0];return l.truncate(i,e,this._computedLineHeight),!0}}return!1},t.prototype.setText=function(t){e.prototype.setText.call(this,t),this._processedText=void 0},t.prototype.internalRender=function(){var e=this;if(this._processedText=void 0,this.text){var t=this.preProcessPropertyValue(v.textProperty),n=this.hostConfig,i=void 0;if(this.forElementId){var r=document.createElement("label");r.htmlFor=this.forElementId,i=r}else i=document.createElement("div");if(i.classList.add(n.makeCssClassName("ac-textBlock")),i.style.overflow="hidden",this.applyStylesTo(i),"heading"===this.style){i.setAttribute("role","heading");var o=this.hostConfig.textBlock.headingLevel;void 0!==o&&o>0&&i.setAttribute("aria-level",o.toString())}if(this.selectAction&&n.supportsInteractivity&&(i.onclick=function(t){t.preventDefault(),t.cancelBubble=!0,e.selectAction&&e.selectAction.execute()},this.selectAction.setupElementForAccessibility(i),i.classList.add(n.makeCssClassName("ac-selectable"))),!this._processedText){this._treatAsPlainText=!0;var s=u.formatText(this.lang,t);if(this.useMarkdown&&s){a.GlobalSettings.allowMarkForTextHighlighting&&(s=s.replace(/<mark>/g,"===").replace(/<\/mark>/g,"/==/"));var c=ge.applyMarkdown(s);if(c.didProcess&&c.outputHtml){if(this._processedText=c.outputHtml,this._treatAsPlainText=!1,a.GlobalSettings.allowMarkForTextHighlighting&&this._processedText){var p="",d=this.getEffectiveStyleDefinition();d.highlightBackgroundColor&&(p+="background-color: "+d.highlightBackgroundColor+";"),d.highlightForegroundColor&&(p+="color: "+d.highlightForegroundColor+";"),p&&(p='style="'+p+'"'),this._processedText=this._processedText.replace(/===/g,"<mark "+p+">").replace(/\/==\//g,"</mark>")}}else this._processedText=s,this._treatAsPlainText=!0}else this._processedText=s,this._treatAsPlainText=!0}if(this._processedText||(this._processedText=""),this._treatAsPlainText?i.innerText=this._processedText:i.innerHTML=this._processedText,i.firstElementChild instanceof HTMLElement){var h=i.firstElementChild;h.style.marginTop="0px",h.style.width="100%",this.wrap||(h.style.overflow="hidden",h.style.textOverflow="ellipsis")}i.lastElementChild instanceof HTMLElement&&(i.lastElementChild.style.marginBottom="0px");for(var g=i.getElementsByTagName("a"),f=0;f<g.length;f++){var m=g[f];m.classList.add(n.makeCssClassName("ac-anchor")),m.target="_blank",m.onclick=function(t){oe(e,t.target,t)&&(t.preventDefault(),t.cancelBubble=!0)},m.oncontextmenu=function(t){return!oe(e,t.target,t)||(t.preventDefault(),t.cancelBubble=!0,!1)}}return this.wrap?(i.style.wordWrap="break-word",this.maxLines&&this.maxLines>0&&(i.style.overflow="hidden",l.isInternetExplorer()||!a.GlobalSettings.useWebkitLineClamp?i.style.maxHeight=this._computedLineHeight*this.maxLines+"px":(i.style.removeProperty("line-height"),i.style.display="-webkit-box",i.style.webkitBoxOrient="vertical",i.style.webkitLineClamp=this.maxLines.toString()))):(i.style.whiteSpace="nowrap",i.style.textOverflow="ellipsis"),(a.GlobalSettings.useAdvancedTextBlockTruncation||a.GlobalSettings.useAdvancedCardBottomTruncation)&&(this._originalInnerHtml=i.innerHTML),i}},t.prototype.truncateOverflow=function(e){return e>=this._computedLineHeight&&this.truncateIfSupported(e)},t.prototype.undoOverflowTruncation=function(){if(this.restoreOriginalContent(),a.GlobalSettings.useAdvancedTextBlockTruncation&&this.maxLines){var e=this._computedLineHeight*this.maxLines;this.truncateIfSupported(e)}},t.prototype.applyStylesTo=function(t){switch(e.prototype.applyStylesTo.call(this,t),this.horizontalAlignment){case s.HorizontalAlignment.Center:t.style.textAlign="center";break;case s.HorizontalAlignment.Right:t.style.textAlign="end";break;default:t.style.textAlign="start"}var n=this.hostConfig.lineHeights;if(n)switch(this.effectiveSize){case s.TextSize.Small:this._computedLineHeight=n.small;break;case s.TextSize.Medium:this._computedLineHeight=n.medium;break;case s.TextSize.Large:this._computedLineHeight=n.large;break;case s.TextSize.ExtraLarge:this._computedLineHeight=n.extraLarge;break;default:this._computedLineHeight=n.default}else this._computedLineHeight=1.33*this.getFontSize(this.hostConfig.getFontTypeDefinition(this.effectiveFontType));t.style.lineHeight=this._computedLineHeight+"px"},t.prototype.getJsonTypeName=function(){return"TextBlock"},t.prototype.getEffectiveTextStyleDefinition=function(){return this.style?this.hostConfig.textStyles.getStyleByName(this.style):e.prototype.getEffectiveTextStyleDefinition.call(this)},t.prototype.updateLayout=function(t){void 0===t&&(t=!1),e.prototype.updateLayout.call(this,t),a.GlobalSettings.useAdvancedTextBlockTruncation&&this.maxLines&&this.isDisplayed()&&(this.restoreOriginalContent(),this.truncateIfSupported(this._computedLineHeight*this.maxLines))},t.wrapProperty=new d.BoolProperty(d.Versions.v1_0,"wrap",!1),t.maxLinesProperty=new d.NumProperty(d.Versions.v1_0,"maxLines"),t.styleProperty=new d.ValueSetProperty(d.Versions.v1_5,"style",[{value:"default"},{value:"heading"}]),o([d.property(t.wrapProperty)],t.prototype,"wrap",void 0),o([d.property(t.maxLinesProperty)],t.prototype,"maxLines",void 0),o([d.property(t.styleProperty)],t.prototype,"style",void 0),t}(v);t.TextBlock=C;var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.italic=!1,t.strikethrough=!1,t.highlight=!1,t.underline=!1,t}return r(t,e),t.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.add(v.selectActionProperty)},t.prototype.internalRender=function(){var e=this;if(this.text){var t=this.preProcessPropertyValue(v.textProperty),n=this.hostConfig,i=u.formatText(this.lang,t);i||(i="");var r=document.createElement("span");if(r.classList.add(n.makeCssClassName("ac-textRun")),this.applyStylesTo(r),this.selectAction&&n.supportsInteractivity){var o=document.createElement("a");o.classList.add(n.makeCssClassName("ac-anchor"));var s=this.selectAction.getHref();o.href=s||"",o.target="_blank",o.onclick=function(t){t.preventDefault(),t.cancelBubble=!0,e.selectAction&&e.selectAction.execute()},this.selectAction.setupElementForAccessibility(o),o.innerText=i,r.appendChild(o)}else r.innerText=i;return r}},t.prototype.applyStylesTo=function(t){if(e.prototype.applyStylesTo.call(this,t),this.italic&&(t.style.fontStyle="italic"),this.strikethrough&&(t.style.textDecoration="line-through"),this.highlight){var n=this.getColorDefinition(this.getEffectiveStyleDefinition().foregroundColors,this.effectiveColor);t.style.backgroundColor=l.stringToCssColor(this.effectiveIsSubtle?n.highlightColors.subtle:n.highlightColors.default)}this.underline&&(t.style.textDecoration="underline")},t.prototype.getJsonTypeName=function(){return"TextRun"},Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInline",{get:function(){return!0},enumerable:!1,configurable:!0}),t.italicProperty=new d.BoolProperty(d.Versions.v1_2,"italic",!1),t.strikethroughProperty=new d.BoolProperty(d.Versions.v1_2,"strikethrough",!1),t.highlightProperty=new d.BoolProperty(d.Versions.v1_2,"highlight",!1),t.underlineProperty=new d.BoolProperty(d.Versions.v1_3,"underline",!1),o([d.property(t.italicProperty)],t.prototype,"italic",void 0),o([d.property(t.strikethroughProperty)],t.prototype,"strikethrough",void 0),o([d.property(t.highlightProperty)],t.prototype,"highlight",void 0),o([d.property(t.underlineProperty)],t.prototype,"underline",void 0),t}(v);t.TextRun=b;var A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._inlines=[],t}return r(t,e),t.prototype.internalAddInline=function(e,t){if(void 0===t&&(t=!1),!e.isInline)throw new Error(g.Strings.errors.elementCannotBeUsedAsInline());if(void 0!==e.parent&&!t&&e.parent!=this)throw new Error(g.Strings.errors.inlineAlreadyParented());e.setParent(this),this._inlines.push(e)},t.prototype.internalParse=function(t,n){if(e.prototype.internalParse.call(this,t,n),this._inlines=[],Array.isArray(t.inlines))for(var i=0,r=t.inlines;i<r.length;i++){var o=r[i],s=void 0;if("string"==typeof o){var a=new b;a.text=o,s=a}else s=n.parseElement(this,o,!1);s&&this.internalAddInline(s,!0)}},t.prototype.internalToJSON=function(t,n){if(e.prototype.internalToJSON.call(this,t,n),this._inlines.length>0){for(var i=[],r=0,o=this._inlines;r<o.length;r++){var s=o[r];i.push(s.toJSON(n))}n.serializeValue(t,"inlines",i)}},t.prototype.internalRender=function(){if(this._inlines.length>0){var e=void 0;if(this.forElementId){var t=document.createElement("label");t.htmlFor=this.forElementId,e=t}else e=document.createElement("div");switch(e.className=this.hostConfig.makeCssClassName("ac-richTextBlock"),this.horizontalAlignment){case s.HorizontalAlignment.Center:e.style.textAlign="center";break;case s.HorizontalAlignment.Right:e.style.textAlign="end";break;default:e.style.textAlign="start"}for(var n=0,i=0,r=this._inlines;i<r.length;i++){var o=r[i].render();o&&(e.appendChild(o),n++)}if(n>0)return e}},t.prototype.asString=function(){for(var e="",t=0,n=this._inlines;t<n.length;t++)e+=n[t].asString();return e},t.prototype.getJsonTypeName=function(){return"RichTextBlock"},t.prototype.getInlineCount=function(){return this._inlines.length},t.prototype.getInlineAt=function(e){if(e>=0&&e<this._inlines.length)return this._inlines[e];throw new Error(g.Strings.errors.indexOutOfRange(e))},t.prototype.addInline=function(e){"string"==typeof e?this.internalAddInline(new b(e)):this.internalAddInline(e)},t.prototype.removeInline=function(e){var t=this._inlines.indexOf(e);return t>=0&&(this._inlines[t].setParent(void 0),this._inlines.splice(t,1),!0)},t}(m);t.RichTextBlock=A;var x=function(e){function t(t,n){var i=e.call(this)||this;return i.name=t,i.value=n,i}return r(t,e),t.prototype.getSchemaKey=function(){return"Fact"},t.titleProperty=new d.StringProperty(d.Versions.v1_0,"title"),t.valueProperty=new d.StringProperty(d.Versions.v1_0,"value"),o([d.property(t.titleProperty)],t.prototype,"name",void 0),o([d.property(t.valueProperty)],t.prototype,"value",void 0),t}(d.SerializableObject);t.Fact=x;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.internalRender=function(){var e=void 0,t=this.hostConfig;if(this.facts.length>0){(e=document.createElement("table")).style.borderWidth="0px",e.style.borderSpacing="0px",e.style.borderStyle="none",e.style.borderCollapse="collapse",e.style.display="block",e.style.overflow="hidden",e.classList.add(t.makeCssClassName("ac-factset")),e.setAttribute("role","presentation");for(var n=0;n<this.facts.length;n++){var i=document.createElement("tr");n>0&&(i.style.marginTop=t.factSet.spacing+"px");var r=document.createElement("td");r.style.padding="0",r.classList.add(t.makeCssClassName("ac-fact-title")),t.factSet.title.maxWidth&&(r.style.maxWidth=t.factSet.title.maxWidth+"px"),r.style.verticalAlign="top";var o=new C;o.setParent(this),o.text=!this.facts[n].name&&this.isDesignMode()?"Title":this.facts[n].name,o.size=t.factSet.title.size,o.color=t.factSet.title.color,o.isSubtle=t.factSet.title.isSubtle,o.weight=t.factSet.title.weight,o.wrap=t.factSet.title.wrap,o.spacing=s.Spacing.None,l.appendChild(r,o.render()),l.appendChild(i,r),(r=document.createElement("td")).style.width="10px",l.appendChild(i,r),(r=document.createElement("td")).style.padding="0",r.style.verticalAlign="top",r.classList.add(t.makeCssClassName("ac-fact-value")),(o=new C).setParent(this),o.text=this.facts[n].value,o.size=t.factSet.value.size,o.color=t.factSet.value.color,o.isSubtle=t.factSet.value.isSubtle,o.weight=t.factSet.value.weight,o.wrap=t.factSet.value.wrap,o.spacing=s.Spacing.None,l.appendChild(r,o.render()),l.appendChild(i,r),l.appendChild(e,i)}}return e},t.prototype.getJsonTypeName=function(){return"FactSet"},t.factsProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_0,"facts",x),o([d.property(t.factsProperty)],t.prototype,"facts",void 0),t}(m);t.FactSet=S;var I=function(e){function t(t,n,i,r){var o=e.call(this,t,n)||this;return o.targetVersion=t,o.name=n,o.internalName=i,o.fallbackProperty=r,o}return r(t,e),t.prototype.getInternalName=function(){return this.internalName},t.prototype.parse=function(e,t,n){var i=void 0,r=t[this.name];if(void 0===r)return this.defaultValue;var o=!1;if("string"==typeof r){try{var l=a.SizeAndUnit.parse(r,!0);l.unit==s.SizeUnit.Pixel&&(i=l.physicalSize,o=!0)}catch(e){}!o&&this.fallbackProperty&&(o=this.fallbackProperty.isValidValue(r,n))}return o||n.logParseEvent(e,s.ValidationEvent.InvalidPropertyValue,g.Strings.errors.invalidPropertyValue(r,this.name)),i},t.prototype.toJSON=function(e,t,n,i){i.serializeValue(t,this.name,"number"!=typeof n||isNaN(n)?void 0:n+"px")},t}(d.PropertyDefinition),E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.size=s.Size.Auto,t.style=s.ImageStyle.Default,t}return r(t,e),t.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.remove(m.heightProperty)},t.prototype.applySize=function(e){if(this.pixelWidth||this.pixelHeight)this.pixelWidth&&(e.style.width=this.pixelWidth+"px"),this.pixelHeight&&(e.style.height=this.pixelHeight+"px");else if(this.maxHeight){switch(this.size){case s.Size.Small:e.style.height=this.hostConfig.imageSizes.small+"px";break;case s.Size.Large:e.style.height=this.hostConfig.imageSizes.large+"px";break;default:e.style.height=this.hostConfig.imageSizes.medium+"px"}e.style.maxHeight=this.maxHeight+"px"}else{switch(this.size){case s.Size.Stretch:e.style.width="100%";break;case s.Size.Auto:e.style.maxWidth="100%";break;case s.Size.Small:e.style.width=this.hostConfig.imageSizes.small+"px";break;case s.Size.Large:e.style.width=this.hostConfig.imageSizes.large+"px";break;case s.Size.Medium:e.style.width=this.hostConfig.imageSizes.medium+"px"}e.style.maxHeight="100%"}},Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.internalRender=function(){var e=this,n=void 0;if(this.url){(n=document.createElement("div")).style.display="flex",n.style.alignItems="flex-start";var i=this.hostConfig;switch(this.selectAction&&i.supportsInteractivity&&(n.onkeypress=function(t){!e.selectAction||13!=t.keyCode&&32!=t.keyCode||(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},n.onclick=function(t){e.selectAction&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(n),n.classList.add(i.makeCssClassName("ac-selectable"))),this.horizontalAlignment){case s.HorizontalAlignment.Center:n.style.justifyContent="center";break;case s.HorizontalAlignment.Right:n.style.justifyContent="flex-end";break;default:n.style.justifyContent="flex-start"}var r=document.createElement("img");r.onload=function(t){re(e)},r.onerror=function(t){if(e.renderedElement){var n=e.getRootElement();if(e.renderedElement.innerHTML="",n&&n.designMode){var i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="center",i.style.backgroundColor="#EEEEEE",i.style.color="black",i.innerText=":-(",i.style.padding="10px",e.applySize(i),e.renderedElement.appendChild(i)}}re(e)},r.style.minWidth="0",r.classList.add(i.makeCssClassName("ac-image")),this.selectAction&&i.supportsInteractivity&&(this.selectAction.setupElementForAccessibility(r),r.classList.add(i.makeCssClassName("ac-selectable"))),this.applySize(r),this.style===s.ImageStyle.Person&&(r.style.borderRadius="50%",r.style.backgroundPosition="50% 50%",r.style.backgroundRepeat="no-repeat"),r.style.backgroundColor=l.stringToCssColor(this.backgroundColor),r.src=this.preProcessPropertyValue(t.urlProperty);var o=this.preProcessPropertyValue(t.altTextProperty);o&&(r.alt=o),n.appendChild(r)}return n},t.prototype.getJsonTypeName=function(){return"Image"},t.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return!n&&this.selectAction&&(n=this.selectAction.getActionById(t)),n},t.prototype.getResourceInformation=function(){return this.url?[{url:this.url,mimeType:"image"}]:[]},t.urlProperty=new d.StringProperty(d.Versions.v1_0,"url"),t.altTextProperty=new d.StringProperty(d.Versions.v1_0,"altText"),t.backgroundColorProperty=new d.StringProperty(d.Versions.v1_1,"backgroundColor"),t.styleProperty=new d.EnumProperty(d.Versions.v1_0,"style",s.ImageStyle,s.ImageStyle.Default),t.sizeProperty=new d.EnumProperty(d.Versions.v1_0,"size",s.Size,s.Size.Auto),t.pixelWidthProperty=new I(d.Versions.v1_1,"width","pixelWidth"),t.pixelHeightProperty=new I(d.Versions.v1_1,"height","pixelHeight",m.heightProperty),t.selectActionProperty=new y(d.Versions.v1_1,"selectAction",["Action.ShowCard"]),o([d.property(t.urlProperty)],t.prototype,"url",void 0),o([d.property(t.altTextProperty)],t.prototype,"altText",void 0),o([d.property(t.backgroundColorProperty)],t.prototype,"backgroundColor",void 0),o([d.property(t.sizeProperty)],t.prototype,"size",void 0),o([d.property(t.styleProperty)],t.prototype,"style",void 0),o([d.property(t.pixelWidthProperty)],t.prototype,"pixelWidth",void 0),o([d.property(t.pixelHeightProperty)],t.prototype,"pixelHeight",void 0),o([d.property(t.selectActionProperty)],t.prototype,"selectAction",void 0),t}(m);t.Image=E;var w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allowVerticalOverflow=!1,t}return r(t,e),t.prototype.populateSchema=function(n){e.prototype.populateSchema.call(this,n),this.isSelectable||n.remove(t.selectActionProperty)},t.prototype.isElementAllowed=function(e){return this.hostConfig.supportsInteractivity||!e.isInteractive},t.prototype.applyPadding=function(){if(e.prototype.applyPadding.call(this),this.renderedElement){var t=new a.SpacingDefinition;this.getEffectivePadding()&&(t=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),this.renderedElement.style.paddingTop=t.top+"px",this.renderedElement.style.paddingRight=t.right+"px",this.renderedElement.style.paddingBottom=t.bottom+"px",this.renderedElement.style.paddingLeft=t.left+"px",this.renderedElement.style.marginRight="0",this.renderedElement.style.marginLeft="0"}},Object.defineProperty(t.prototype,"isSelectable",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);for(var n=0;n<this.getItemCount();n++){var i=this.getItemAt(n);!this.hostConfig.supportsInteractivity&&i.isInteractive&&t.addFailure(this,s.ValidationEvent.InteractivityNotAllowed,g.Strings.errors.interactivityNotAllowed()),this.isElementAllowed(i)||t.addFailure(this,s.ValidationEvent.InteractivityNotAllowed,g.Strings.errors.elementTypeNotAllowed(i.getJsonTypeName())),i.internalValidateProperties(t)}this._selectAction&&this._selectAction.internalValidateProperties(t)},t.prototype.render=function(){var t=this,n=e.prototype.render.call(this);if(n){var i=this.hostConfig;this.allowVerticalOverflow&&(n.style.overflowX="hidden",n.style.overflowY="auto"),n&&this.isSelectable&&this._selectAction&&i.supportsInteractivity&&(n.onclick=function(e){void 0!==t._selectAction&&(e.preventDefault(),e.cancelBubble=!0,t._selectAction.execute())},n.onkeypress=function(e){void 0===t._selectAction||13!=e.keyCode&&32!=e.keyCode||(e.preventDefault(),e.cancelBubble=!0,t._selectAction.execute())},this._selectAction.setupElementForAccessibility(n),n.classList.add(i.makeCssClassName("ac-selectable")))}return n},t.prototype.updateLayout=function(t){if(void 0===t&&(t=!0),e.prototype.updateLayout.call(this,t),t)for(var n=0;n<this.getItemCount();n++)this.getItemAt(n).updateLayout()},t.prototype.getAllInputs=function(e){void 0===e&&(e=!0);for(var t=[],n=0;n<this.getItemCount();n++)t=t.concat(this.getItemAt(n).getAllInputs(e));return t},t.prototype.getResourceInformation=function(){for(var e=[],t=0;t<this.getItemCount();t++)e=e.concat(this.getItemAt(t).getResourceInformation());return e},t.prototype.getElementById=function(t){var n=e.prototype.getElementById.call(this,t);if(!n)for(var i=0;i<this.getItemCount()&&!(n=this.getItemAt(i).getElementById(t));i++);return n},t.prototype.findDOMNodeOwner=function(t){for(var n=void 0,i=0;i<this.getItemCount();i++)if(n=this.getItemAt(i).findDOMNodeOwner(t))return n;return e.prototype.findDOMNodeOwner.call(this,t)},t.selectActionProperty=new y(d.Versions.v1_1,"selectAction",["Action.ShowCard"]),o([d.property(t.selectActionProperty)],t.prototype,"_selectAction",void 0),t}(m);t.CardElementContainer=w;var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._images=[],t.imageSize=s.ImageSize.Medium,t}return r(t,e),t.prototype.internalRender=function(){var e=void 0;if(this._images.length>0){(e=document.createElement("div")).style.display="flex",e.style.flexWrap="wrap";for(var t=0,n=this._images;t<n.length;t++){var i=n[t];switch(this.imageSize){case s.ImageSize.Small:i.size=s.Size.Small;break;case s.ImageSize.Large:i.size=s.Size.Large;break;default:i.size=s.Size.Medium}i.maxHeight=this.hostConfig.imageSet.maxImageHeight;var r=i.render();r&&(r.style.display="inline-flex",r.style.margin="0px",r.style.marginRight="10px",l.appendChild(e,r))}}return e},t.prototype.getItemCount=function(){return this._images.length},t.prototype.getItemAt=function(e){return this._images[e]},t.prototype.getFirstVisibleRenderedItem=function(){return this._images&&this._images.length>0?this._images[0]:void 0},t.prototype.getLastVisibleRenderedItem=function(){return this._images&&this._images.length>0?this._images[this._images.length-1]:void 0},t.prototype.removeItem=function(e){if(e instanceof E){var t=this._images.indexOf(e);if(t>=0)return this._images.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},t.prototype.getJsonTypeName=function(){return"ImageSet"},t.prototype.addImage=function(e){if(e.parent)throw new Error("This image already belongs to another ImageSet");this._images.push(e),e.setParent(this)},t.prototype.indexOf=function(e){return e instanceof E?this._images.indexOf(e):-1},t.imagesProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_0,"images",E,(function(e,t){t.setParent(e)})),t.imageSizeProperty=new d.EnumProperty(d.Versions.v1_0,"imageSize",s.ImageSize,s.ImageSize.Medium),o([d.property(t.imagesProperty)],t.prototype,"_images",void 0),o([d.property(t.imageSizeProperty)],t.prototype,"imageSize",void 0),t}(w);t.ImageSet=_;var P=function(e){function t(t,n){var i=e.call(this)||this;return i.url=t,i.mimeType=n,i}return r(t,e),t.prototype.getSchemaKey=function(){return"MediaSource"},t.prototype.isValid=function(){return!(!this.mimeType||!this.url)},t.prototype.render=function(){var e=void 0;return this.isValid()&&((e=document.createElement("source")).src=this.url,e.type=this.mimeType),e},t.mimeTypeProperty=new d.StringProperty(d.Versions.v1_1,"mimeType"),t.urlProperty=new d.StringProperty(d.Versions.v1_1,"url"),o([d.property(t.mimeTypeProperty)],t.prototype,"mimeType",void 0),o([d.property(t.urlProperty)],t.prototype,"url",void 0),t}(d.SerializableObject);t.MediaSource=P;var k=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sources=[],t}return r(t,e),t.prototype.getPosterUrl=function(){return this.poster?this.poster:this.hostConfig.media.defaultPoster},t.prototype.processSources=function(){this._selectedSources=[],this._selectedMediaType=void 0;for(var e=0,n=this.sources;e<n.length;e++){var i=n[e],r=i.mimeType?i.mimeType.split("/"):[];if(2==r.length){if(!this._selectedMediaType){var o=t.supportedMediaTypes.indexOf(r[0]);o>=0&&(this._selectedMediaType=t.supportedMediaTypes[o])}r[0]==this._selectedMediaType&&this._selectedSources.push(i)}}},t.prototype.handlePlayButtonInvoke=function(e){if(this.hostConfig.media.allowInlinePlayback){if(e.preventDefault(),e.cancelBubble=!0,this.renderedElement){var n=this.renderMediaPlayer();this.renderedElement.innerHTML="",this.renderedElement.appendChild(n),n.play(),n.focus()}}else t.onPlay&&(e.preventDefault(),e.cancelBubble=!0,t.onPlay(this))},t.prototype.renderPoster=function(){var e=this,t=document.createElement("div");t.className=this.hostConfig.makeCssClassName("ac-media-poster"),t.setAttribute("role","contentinfo"),t.setAttribute("aria-label",this.altText?this.altText:g.Strings.defaults.mediaPlayerAriaLabel()),t.style.position="relative",t.style.display="flex";var n=this.getPosterUrl();if(n){var i=document.createElement("img");i.style.width="100%",i.style.height="100%",i.setAttribute("role","presentation"),i.onerror=function(e){i.parentNode&&i.parentNode.removeChild(i),t.classList.add("empty"),t.style.minHeight="150px"},i.src=n,t.appendChild(i)}else t.classList.add("empty"),t.style.minHeight="150px";if(this.hostConfig.supportsInteractivity&&this._selectedSources.length>0){var r=document.createElement("div");r.tabIndex=0,r.setAttribute("role","button"),r.setAttribute("aria-label",g.Strings.defaults.mediaPlayerPlayMedia()),r.className=this.hostConfig.makeCssClassName("ac-media-playButton"),r.style.display="flex",r.style.alignItems="center",r.style.justifyContent="center",r.onclick=function(t){e.handlePlayButtonInvoke(t)},r.onkeypress=function(t){13!=t.keyCode&&32!=t.keyCode||e.handlePlayButtonInvoke(t)};var o=document.createElement("div");o.className=this.hostConfig.makeCssClassName("ac-media-playButton-arrow"),o.style.width="12px",o.style.height="15px",o.style.borderTopWidth="7.5px",o.style.borderBottomWidth="7.5px",o.style.borderLeftWidth="12px",o.style.borderRightWidth="0",o.style.borderStyle="solid",o.style.borderTopColor="transparent",o.style.borderRightColor="transparent",o.style.borderBottomColor="transparent",o.style.transform="translate(1.2px,0px)",r.appendChild(o);var s=document.createElement("div");s.style.position="absolute",s.style.left="0",s.style.top="0",s.style.width="100%",s.style.height="100%",s.style.display="flex",s.style.justifyContent="center",s.style.alignItems="center",s.appendChild(r),t.appendChild(s)}return t},t.prototype.renderMediaPlayer=function(){var e;if("video"==this._selectedMediaType){var t=document.createElement("video"),n=this.getPosterUrl();n&&(t.poster=n),e=t}else e=document.createElement("audio");e.setAttribute("aria-label",this.altText?this.altText:g.Strings.defaults.mediaPlayerAriaLabel()),e.setAttribute("webkit-playsinline",""),e.setAttribute("playsinline",""),e.autoplay=!0,e.controls=!0,l.isMobileOS()&&(e.muted=!0),e.preload="none",e.style.width="100%";for(var i=0,r=this.sources;i<r.length;i++){var o=r[i].render();l.appendChild(e,o)}return e},t.prototype.internalRender=function(){var e=document.createElement("div");return e.className=this.hostConfig.makeCssClassName("ac-media"),this.processSources(),e.appendChild(this.renderPoster()),e},t.prototype.getJsonTypeName=function(){return"Media"},t.prototype.getResourceInformation=function(){var e=[],t=this.getPosterUrl();t&&e.push({url:t,mimeType:"image"});for(var n=0,i=this.sources;n<i.length;n++){var r=i[n];r.isValid()&&e.push({url:r.url,mimeType:r.mimeType})}return e},Object.defineProperty(t.prototype,"selectedMediaType",{get:function(){return this._selectedMediaType},enumerable:!1,configurable:!0}),t.sourcesProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_1,"sources",P),t.posterProperty=new d.StringProperty(d.Versions.v1_1,"poster"),t.altTextProperty=new d.StringProperty(d.Versions.v1_1,"altText"),t.supportedMediaTypes=["audio","video"],o([d.property(t.sourcesProperty)],t.prototype,"sources",void 0),o([d.property(t.posterProperty)],t.prototype,"poster",void 0),o([d.property(t.altTextProperty)],t.prototype,"altText",void 0),t}(m);t.Media=k;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getAllLabelIds=function(){var e=[];return this.labelledBy&&e.push(this.labelledBy),this._renderedLabelElement&&e.push(this._renderedLabelElement.id),this._renderedErrorMessageElement&&e.push(this._renderedErrorMessageElement.id),e},t.prototype.updateInputControlAriaLabelledBy=function(){if(this._renderedInputControlElement){var e=this.getAllLabelIds();e.length>0?this._renderedInputControlElement.setAttribute("aria-labelledby",e.join(" ")):this._renderedInputControlElement.removeAttribute("aria-labelledby")}},Object.defineProperty(t.prototype,"isNullable",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputControlElement",{get:function(){return this._renderedInputControlElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputControlContainerElement",{get:function(){return this._inputControlContainerElement},enumerable:!1,configurable:!0}),t.prototype.overrideInternalRender=function(){var e=this.hostConfig;this._outerContainerElement=document.createElement("div"),this._outerContainerElement.style.display="flex",this._outerContainerElement.style.flexDirection="column";var t=l.generateUniqueId();if(this.label){var n=new A;n.setParent(this),n.forElementId=t;var i=new b(this.label);if(n.addInline(i),this.isRequired){i.init(e.inputs.label.requiredInputs);var r=new b(e.inputs.label.requiredInputs.suffix);r.color=e.inputs.label.requiredInputs.suffixColor,r.ariaHidden=!0,n.addInline(r)}else i.init(e.inputs.label.optionalInputs);this._renderedLabelElement=n.render(),this._renderedLabelElement&&(this._renderedLabelElement.id=l.generateUniqueId(),this._renderedLabelElement.style.marginBottom=e.getEffectiveSpacing(e.inputs.label.inputSpacing)+"px",this._outerContainerElement.appendChild(this._renderedLabelElement))}if(this._inputControlContainerElement=document.createElement("div"),this._inputControlContainerElement.className=e.makeCssClassName("ac-input-container"),this._inputControlContainerElement.style.display="flex","stretch"===this.height&&(this._inputControlContainerElement.style.alignItems="stretch",this._inputControlContainerElement.style.flex="1 1 auto"),this._renderedInputControlElement=this.internalRender(),this._renderedInputControlElement)return this._renderedInputControlElement.id=t,this._renderedInputControlElement.style.minWidth="0px",this.isNullable&&this.isRequired&&(this._renderedInputControlElement.setAttribute("aria-required","true"),this._renderedInputControlElement.classList.add(e.makeCssClassName("ac-input-required"))),this._inputControlContainerElement.appendChild(this._renderedInputControlElement),this._outerContainerElement.appendChild(this._inputControlContainerElement),this.updateInputControlAriaLabelledBy(),this._outerContainerElement},t.prototype.valueChanged=function(){var e,t,n;this.isValid()&&this.resetValidationFailureCue(),this.onValueChanged&&this.onValueChanged(this),(n=(t=(e=this).getRootElement())&&t.onInputValueChanged?t.onInputValueChanged:ge.onInputValueChanged)&&n(e)},t.prototype.resetValidationFailureCue=function(){this.renderedInputControlElement&&(this.renderedInputControlElement.classList.remove(this.hostConfig.makeCssClassName("ac-input-validation-failed")),this.updateInputControlAriaLabelledBy(),this._renderedErrorMessageElement&&(this._outerContainerElement.removeChild(this._renderedErrorMessageElement),this._renderedErrorMessageElement=void 0))},t.prototype.showValidationErrorMessage=function(){if(this.renderedElement&&this.errorMessage&&a.GlobalSettings.displayInputValidationErrors){var e=new C;e.setParent(this),e.text=this.errorMessage,e.wrap=!0,e.init(this.hostConfig.inputs.errorMessage),this._renderedErrorMessageElement=e.render(),this._renderedErrorMessageElement&&(this._renderedErrorMessageElement.id=l.generateUniqueId(),this._outerContainerElement.appendChild(this._renderedErrorMessageElement),this.updateInputControlAriaLabelledBy())}},t.prototype.focus=function(){this._renderedInputControlElement&&this._renderedInputControlElement.focus()},t.prototype.isValid=function(){return!0},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.id||t.addFailure(this,s.ValidationEvent.PropertyCantBeNull,g.Strings.errors.inputsMustHaveUniqueId()),this.isRequired&&(this.label||t.addFailure(this,s.ValidationEvent.RequiredInputsShouldHaveLabel,"Required inputs should have a label"),this.errorMessage||t.addFailure(this,s.ValidationEvent.RequiredInputsShouldHaveErrorMessage,"Required inputs should have an error message"))},t.prototype.validateValue=function(){this.resetValidationFailureCue();var e=this.isRequired?this.isSet()&&this.isValid():this.isValid();return!e&&this.renderedInputControlElement&&(this.renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName("ac-input-validation-failed")),this.showValidationErrorMessage()),e},t.prototype.getAllInputs=function(e){return void 0===e&&(e=!0),[this]},Object.defineProperty(t.prototype,"isInteractive",{get:function(){return!0},enumerable:!1,configurable:!0}),t.labelProperty=new d.StringProperty(d.Versions.v1_3,"label",!0),t.isRequiredProperty=new d.BoolProperty(d.Versions.v1_3,"isRequired",!1),t.errorMessageProperty=new d.StringProperty(d.Versions.v1_3,"errorMessage",!0),o([d.property(t.labelProperty)],t.prototype,"label",void 0),o([d.property(t.isRequiredProperty)],t.prototype,"isRequired",void 0),o([d.property(t.errorMessageProperty)],t.prototype,"errorMessage",void 0),t}(m);t.Input=T;var M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isMultiline=!1,t.style=s.InputTextStyle.Text,t}return r(t,e),t.prototype.setupInput=function(e){var t=this;e.style.flex="1 1 auto",e.tabIndex=0,this.placeholder&&(e.placeholder=this.placeholder,e.setAttribute("aria-label",this.placeholder)),this.defaultValue&&(e.value=this.defaultValue),this.maxLength&&this.maxLength>0&&(e.maxLength=this.maxLength),e.oninput=function(){t.valueChanged()},e.onkeypress=function(e){e.ctrlKey&&"Enter"===e.code&&t.inlineAction&&t.inlineAction.execute()}},t.prototype.internalRender=function(){var e;return this.isMultiline?((e=document.createElement("textarea")).className=this.hostConfig.makeCssClassName("ac-input","ac-textInput","ac-multiline"),"stretch"===this.height&&(e.style.height="initial")):((e=document.createElement("input")).className=this.hostConfig.makeCssClassName("ac-input","ac-textInput"),e.type=s.InputTextStyle[this.style].toLowerCase()),this.setupInput(e),e},t.prototype.overrideInternalRender=function(){var t=this,n=e.prototype.overrideInternalRender.call(this);if(this.inlineAction){var i=document.createElement("button");if(i.className=this.hostConfig.makeCssClassName("ac-inlineActionButton"),i.onclick=function(e){e.preventDefault(),e.cancelBubble=!0,t.inlineAction&&t.inlineAction.execute()},this.inlineAction.iconUrl){i.classList.add("iconOnly");var r=document.createElement("img");r.style.height="100%",r.setAttribute("role","presentation"),r.style.display="none",r.onload=function(){r.style.removeProperty("display")},r.onerror=function(){i.removeChild(r),i.classList.remove("iconOnly"),i.classList.add("textOnly"),i.textContent=t.inlineAction&&t.inlineAction.title?t.inlineAction.title:g.Strings.defaults.inlineActionTitle()},r.src=this.inlineAction.iconUrl,i.appendChild(r),i.title=this.inlineAction.title?this.inlineAction.title:g.Strings.defaults.inlineActionTitle()}else i.classList.add("textOnly"),i.textContent=this.inlineAction.title?this.inlineAction.title:g.Strings.defaults.inlineActionTitle();this.inlineAction.setupElementForAccessibility(i,!0),i.style.marginLeft="8px",this.inputControlContainerElement.appendChild(i)}return n},t.prototype.getJsonTypeName=function(){return"Input.Text"},t.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return!n&&this.inlineAction&&(n=this.inlineAction.getActionById(t)),n},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){return!this.value||!this.regex||new RegExp(this.regex,"g").test(this.value)},Object.defineProperty(t.prototype,"value",{get:function(){return this.renderedInputControlElement?(this.isMultiline,this.renderedInputControlElement.value):void 0},enumerable:!1,configurable:!0}),t.valueProperty=new d.StringProperty(d.Versions.v1_0,"value"),t.maxLengthProperty=new d.NumProperty(d.Versions.v1_0,"maxLength"),t.isMultilineProperty=new d.BoolProperty(d.Versions.v1_0,"isMultiline",!1),t.placeholderProperty=new d.StringProperty(d.Versions.v1_0,"placeholder"),t.styleProperty=new d.EnumProperty(d.Versions.v1_0,"style",s.InputTextStyle,s.InputTextStyle.Text),t.inlineActionProperty=new y(d.Versions.v1_0,"inlineAction",["Action.ShowCard"]),t.regexProperty=new d.StringProperty(d.Versions.v1_3,"regex",!0),o([d.property(t.valueProperty)],t.prototype,"defaultValue",void 0),o([d.property(t.maxLengthProperty)],t.prototype,"maxLength",void 0),o([d.property(t.isMultilineProperty)],t.prototype,"isMultiline",void 0),o([d.property(t.placeholderProperty)],t.prototype,"placeholder",void 0),o([d.property(t.styleProperty)],t.prototype,"style",void 0),o([d.property(t.inlineActionProperty)],t.prototype,"inlineAction",void 0),o([d.property(t.regexProperty)],t.prototype,"regex",void 0),t}(T);t.TextInput=M;var O=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.valueOn="true",t.valueOff="false",t.wrap=!1,t}return r(t,e),t.prototype.updateInputControlAriaLabelledBy=function(){if(this._checkboxInputElement){var e=this.getAllLabelIds().join(" ");this._checkboxInputLabelElement&&this._checkboxInputLabelElement.id&&(e+=" "+this._checkboxInputLabelElement.id),e?this._checkboxInputElement.setAttribute("aria-labelledby",e):this._checkboxInputElement.removeAttribute("aria-labelledby")}},t.prototype.internalRender=function(){var e=this,t=document.createElement("div");if(t.className=this.hostConfig.makeCssClassName("ac-input","ac-toggleInput"),t.style.width="100%",t.style.display="flex",t.style.alignItems="center",this._checkboxInputElement=document.createElement("input"),this._checkboxInputElement.id=l.generateUniqueId(),this._checkboxInputElement.type="checkbox",this._checkboxInputElement.style.display="inline-block",this._checkboxInputElement.style.verticalAlign="middle",this._checkboxInputElement.style.margin="0",this._checkboxInputElement.style.flex="0 0 auto",this.title&&this._checkboxInputElement.setAttribute("aria-label",this.title),this.isRequired&&this._checkboxInputElement.setAttribute("aria-required","true"),this._checkboxInputElement.tabIndex=0,this.defaultValue==this.valueOn&&(this._checkboxInputElement.checked=!0),this._checkboxInputElement.onchange=function(){e.valueChanged()},l.appendChild(t,this._checkboxInputElement),this.title||this.isDesignMode()){var n=new C;if(n.setParent(this),n.forElementId=this._checkboxInputElement.id,n.hostConfig=this.hostConfig,n.text=this.title?this.title:this.getJsonTypeName(),n.useMarkdown=a.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,n.wrap=this.wrap,this._checkboxInputLabelElement=n.render(),this._checkboxInputLabelElement){this._checkboxInputLabelElement.id=l.generateUniqueId(),this._checkboxInputLabelElement.style.display="inline-block",this._checkboxInputLabelElement.style.flex="1 1 auto",this._checkboxInputLabelElement.style.marginLeft="6px",this._checkboxInputLabelElement.style.verticalAlign="middle";var i=document.createElement("div");i.style.width="6px",l.appendChild(t,i),l.appendChild(t,this._checkboxInputLabelElement)}}return t},Object.defineProperty(t.prototype,"isNullable",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getJsonTypeName=function(){return"Input.Toggle"},t.prototype.focus=function(){this._checkboxInputElement&&this._checkboxInputElement.focus()},t.prototype.isSet=function(){return this.isRequired?this.value===this.valueOn:!!this.value},Object.defineProperty(t.prototype,"value",{get:function(){return this._checkboxInputElement?this._checkboxInputElement.checked?this.valueOn:this.valueOff:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new d.StringProperty(d.Versions.v1_0,"value"),t.titleProperty=new d.StringProperty(d.Versions.v1_0,"title"),t.valueOnProperty=new d.StringProperty(d.Versions.v1_0,"valueOn",!0,void 0,"true",(function(e){return"true"})),t.valueOffProperty=new d.StringProperty(d.Versions.v1_0,"valueOff",!0,void 0,"false",(function(e){return"false"})),t.wrapProperty=new d.BoolProperty(d.Versions.v1_2,"wrap",!1),o([d.property(t.valueProperty)],t.prototype,"defaultValue",void 0),o([d.property(t.titleProperty)],t.prototype,"title",void 0),o([d.property(t.valueOnProperty)],t.prototype,"valueOn",void 0),o([d.property(t.valueOffProperty)],t.prototype,"valueOff",void 0),o([d.property(t.wrapProperty)],t.prototype,"wrap",void 0),t}(T);t.ToggleInput=O;var D=function(e){function t(t,n){var i=e.call(this)||this;return i.title=t,i.value=n,i}return r(t,e),t.prototype.getSchemaKey=function(){return"Choice"},t.titleProperty=new d.StringProperty(d.Versions.v1_0,"title"),t.valueProperty=new d.StringProperty(d.Versions.v1_0,"value"),o([d.property(t.titleProperty)],t.prototype,"title",void 0),o([d.property(t.valueProperty)],t.prototype,"value",void 0),t}(d.SerializableObject);t.Choice=D;var F=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isMultiSelect=!1,t.wrap=!1,t.choices=[],t}return r(t,e),Object.defineProperty(t.prototype,"isCompact",{get:function(){return"expanded"!==this.style},set:function(e){this.style=e?void 0:"expanded"},enumerable:!1,configurable:!0}),t.getUniqueCategoryName=function(){var e="__ac-category"+t.uniqueCategoryCounter;return t.uniqueCategoryCounter++,e},t.prototype.internalApplyAriaCurrent=function(){var e=this._selectElement.options;if(e)for(var t=0;t<e.length;t++)e[t].selected?e[t].setAttribute("aria-current","true"):e[t].removeAttribute("aria-current")},t.prototype.renderCompoundInput=function(e,t,n){var i=this,r=document.createElement("div");r.className=this.hostConfig.makeCssClassName("ac-input",e),r.style.width="100%",this._toggleInputs=[],this._labels=[];for(var o=0,s=this.choices;o<s.length;o++){var c=s[o],u=document.createElement("input");u.id=l.generateUniqueId(),u.type=t,u.style.margin="0",u.style.display="inline-block",u.style.verticalAlign="middle",u.style.flex="0 0 auto",u.name=this.id?this.id:this._uniqueCategoryName,this.isRequired&&u.setAttribute("aria-required","true"),c.value&&(u.value=c.value),c.title&&u.setAttribute("aria-label",c.title),n&&c.value&&n.indexOf(c.value)>=0&&(u.checked=!0),u.onchange=function(){i.valueChanged()},this._toggleInputs.push(u);var p=document.createElement("div");p.style.display="flex",p.style.alignItems="center",l.appendChild(p,u);var d=new C;d.setParent(this),d.forElementId=u.id,d.hostConfig=this.hostConfig,d.text=c.title?c.title:"Choice "+this._toggleInputs.length,d.useMarkdown=a.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,d.wrap=this.wrap;var h=d.render();if(this._labels.push(h),h){h.id=l.generateUniqueId(),h.style.display="inline-block",h.style.flex="1 1 auto",h.style.marginLeft="6px",h.style.verticalAlign="middle";var g=document.createElement("div");g.style.width="6px",l.appendChild(p,g),l.appendChild(p,h)}l.appendChild(r,p)}return r},t.prototype.updateInputControlAriaLabelledBy=function(){if((this.isMultiSelect||"expanded"===this.style)&&this._toggleInputs&&this._labels)for(var t=this.getAllLabelIds(),n=0;n<this._toggleInputs.length;n++){var i=t.join(" "),r=this._labels[n];r&&r.id&&(i+=" "+r.id),i?this._toggleInputs[n].setAttribute("aria-labelledby",i):this._toggleInputs[n].removeAttribute("aria-labelledby")}else e.prototype.updateInputControlAriaLabelledBy.call(this)},t.prototype.internalRender=function(){var e=this;if(this._uniqueCategoryName=t.getUniqueCategoryName(),this.isMultiSelect)return this.renderCompoundInput("ac-choiceSetInput-multiSelect","checkbox",this.defaultValue?this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator):void 0);if("expanded"===this.style)return this.renderCompoundInput("ac-choiceSetInput-expanded","radio",this.defaultValue?[this.defaultValue]:void 0);this._selectElement=document.createElement("select"),this._selectElement.className=this.hostConfig.makeCssClassName("ac-input","ac-multichoiceInput","ac-choiceSetInput-compact"),this._selectElement.style.width="100%";var n=document.createElement("option");n.selected=!0,n.disabled=!0,n.hidden=!0,n.value="",this.placeholder&&(n.text=this.placeholder),l.appendChild(this._selectElement,n);for(var i=0,r=this.choices;i<r.length;i++){var o=r[i],s=document.createElement("option");s.value=o.value,s.text=o.title,s.setAttribute("aria-label",o.title),o.value==this.defaultValue&&(s.selected=!0),l.appendChild(this._selectElement,s)}return this._selectElement.onchange=function(){e.internalApplyAriaCurrent(),e.valueChanged()},this.internalApplyAriaCurrent(),this._selectElement},t.prototype.getJsonTypeName=function(){return"Input.ChoiceSet"},t.prototype.focus=function(){this._toggleInputs&&(this.isMultiSelect||"expanded"===this.style)?this._toggleInputs.length>0&&this._toggleInputs[0].focus():e.prototype.focus.call(this)},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),0==this.choices.length&&t.addFailure(this,s.ValidationEvent.CollectionCantBeEmpty,g.Strings.errors.choiceSetMustHaveAtLeastOneChoice());for(var n=0,i=this.choices;n<i.length;n++){var r=i[n];r.title&&r.value||t.addFailure(this,s.ValidationEvent.PropertyCantBeNull,g.Strings.errors.choiceSetChoicesMustHaveTitleAndValue())}},t.prototype.isSet=function(){return!!this.value},Object.defineProperty(t.prototype,"value",{get:function(){if(this.isMultiSelect){if(!this._toggleInputs||0==this._toggleInputs.length)return;for(var e="",t=0,n=this._toggleInputs;t<n.length;t++)(o=n[t]).checked&&(""!=e&&(e+=this.hostConfig.choiceSetInputValueSeparator),e+=o.value);return e||void 0}if(this.isCompact)return this._selectElement&&this._selectElement.selectedIndex>0?this._selectElement.value:void 0;if(this._toggleInputs&&0!=this._toggleInputs.length)for(var i=0,r=this._toggleInputs;i<r.length;i++){var o;if((o=r[i]).checked)return o.value}},enumerable:!1,configurable:!0}),t.valueProperty=new d.StringProperty(d.Versions.v1_0,"value"),t.choicesProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_0,"choices",D),t.styleProperty=new d.ValueSetProperty(d.Versions.v1_0,"style",[{value:"compact"},{value:"expanded"}],"compact"),t.isMultiSelectProperty=new d.BoolProperty(d.Versions.v1_0,"isMultiSelect",!1),t.placeholderProperty=new d.StringProperty(d.Versions.v1_0,"placeholder"),t.wrapProperty=new d.BoolProperty(d.Versions.v1_2,"wrap",!1),t.uniqueCategoryCounter=0,o([d.property(t.valueProperty)],t.prototype,"defaultValue",void 0),o([d.property(t.styleProperty)],t.prototype,"style",void 0),o([d.property(t.isMultiSelectProperty)],t.prototype,"isMultiSelect",void 0),o([d.property(t.placeholderProperty)],t.prototype,"placeholder",void 0),o([d.property(t.wrapProperty)],t.prototype,"wrap",void 0),o([d.property(t.choicesProperty)],t.prototype,"choices",void 0),t}(T);t.ChoiceSetInput=F;var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.internalRender=function(){var e=this;return this._numberInputElement=document.createElement("input"),this._numberInputElement.setAttribute("type","number"),void 0!==this.min&&this._numberInputElement.setAttribute("min",this.min.toString()),void 0!==this.max&&this._numberInputElement.setAttribute("max",this.max.toString()),this._numberInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-numberInput"),this._numberInputElement.style.width="100%",this._numberInputElement.tabIndex=0,void 0!==this.defaultValue&&(this._numberInputElement.valueAsNumber=this.defaultValue),this.placeholder&&(this._numberInputElement.placeholder=this.placeholder,this._numberInputElement.setAttribute("aria-label",this.placeholder)),this._numberInputElement.oninput=function(){e.valueChanged()},this._numberInputElement},t.prototype.getJsonTypeName=function(){return"Input.Number"},t.prototype.isSet=function(){return void 0!==this.value&&!isNaN(this.value)},t.prototype.isValid=function(){if(void 0===this.value)return!this.isRequired;var e=!0;return void 0!==this.min&&(e=e&&this.value>=this.min),void 0!==this.max&&(e=e&&this.value<=this.max),e},Object.defineProperty(t.prototype,"value",{get:function(){return this._numberInputElement?this._numberInputElement.valueAsNumber:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new d.NumProperty(d.Versions.v1_0,"value"),t.placeholderProperty=new d.StringProperty(d.Versions.v1_0,"placeholder"),t.minProperty=new d.NumProperty(d.Versions.v1_0,"min"),t.maxProperty=new d.NumProperty(d.Versions.v1_0,"max"),o([d.property(t.valueProperty)],t.prototype,"defaultValue",void 0),o([d.property(t.minProperty)],t.prototype,"min",void 0),o([d.property(t.maxProperty)],t.prototype,"max",void 0),o([d.property(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(T);t.NumberInput=R;var V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.internalRender=function(){var e=this;return this._dateInputElement=document.createElement("input"),this._dateInputElement.setAttribute("type","date"),this.min&&this._dateInputElement.setAttribute("min",this.min),this.max&&this._dateInputElement.setAttribute("max",this.max),this.placeholder&&(this._dateInputElement.placeholder=this.placeholder,this._dateInputElement.setAttribute("aria-label",this.placeholder)),this._dateInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-dateInput"),this._dateInputElement.style.width="100%",this._dateInputElement.oninput=function(){e.valueChanged()},this.defaultValue&&(this._dateInputElement.value=this.defaultValue),this._dateInputElement},t.prototype.getJsonTypeName=function(){return"Input.Date"},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){if(!this.value)return!this.isRequired;var e=new Date(this.value),t=!0;if(this.min){var n=new Date(this.min);t=t&&e>=n}if(this.max){var i=new Date(this.max);t=t&&e<=i}return t},Object.defineProperty(t.prototype,"value",{get:function(){return this._dateInputElement?this._dateInputElement.value:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new d.StringProperty(d.Versions.v1_0,"value"),t.placeholderProperty=new d.StringProperty(d.Versions.v1_0,"placeholder"),t.minProperty=new d.StringProperty(d.Versions.v1_0,"min"),t.maxProperty=new d.StringProperty(d.Versions.v1_0,"max"),o([d.property(t.valueProperty)],t.prototype,"defaultValue",void 0),o([d.property(t.minProperty)],t.prototype,"min",void 0),o([d.property(t.maxProperty)],t.prototype,"max",void 0),o([d.property(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(T);t.DateInput=V;var B=function(e){function t(t,n){var i=e.call(this,t,n,(function(e,t,n,i){var r=n[t.name];if("string"==typeof r&&r&&/^[0-9]{2}:[0-9]{2}$/.test(r))return r}),(function(e,t,n,i,r){r.serializeValue(n,t.name,i)}))||this;return i.targetVersion=t,i.name=n,i}return r(t,e),t}(d.CustomProperty);t.TimeProperty=B;var N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.convertTimeStringToDate=function(e){return new Date("1973-09-04T"+e+":00Z")},t.prototype.internalRender=function(){var e=this;return this._timeInputElement=document.createElement("input"),this._timeInputElement.setAttribute("type","time"),this._timeInputElement.setAttribute("min",this.min),this._timeInputElement.setAttribute("max",this.max),this._timeInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-timeInput"),this._timeInputElement.style.width="100%",this._timeInputElement.oninput=function(){e.valueChanged()},this.placeholder&&(this._timeInputElement.placeholder=this.placeholder,this._timeInputElement.setAttribute("aria-label",this.placeholder)),this.defaultValue&&(this._timeInputElement.value=this.defaultValue),this._timeInputElement},t.prototype.getJsonTypeName=function(){return"Input.Time"},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){if(!this.value)return!this.isRequired;var e=t.convertTimeStringToDate(this.value),n=!0;if(this.min){var i=t.convertTimeStringToDate(this.min);n=n&&e>=i}if(this.max){var r=t.convertTimeStringToDate(this.max);n=n&&e<=r}return n},Object.defineProperty(t.prototype,"value",{get:function(){return this._timeInputElement?this._timeInputElement.value:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new B(d.Versions.v1_0,"value"),t.placeholderProperty=new d.StringProperty(d.Versions.v1_0,"placeholder"),t.minProperty=new B(d.Versions.v1_0,"min"),t.maxProperty=new B(d.Versions.v1_0,"max"),o([d.property(t.valueProperty)],t.prototype,"defaultValue",void 0),o([d.property(t.minProperty)],t.prototype,"min",void 0),o([d.property(t.maxProperty)],t.prototype,"max",void 0),o([d.property(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(T);t.TimeInput=N;var z=function(){function e(e,t){this._state=0,this._focusable=!0,this._parentContainerStyle=t,this.action=e}return e.prototype.updateCssStyle=function(){var e,t;if(this.action.parent&&this.action.renderedElement){var n=this.action.parent.hostConfig;switch(this.action.renderedElement.className=n.makeCssClassName("ac-pushButton"),this._parentContainerStyle&&this.action.renderedElement.classList.add("style-"+this._parentContainerStyle),this.action.updateActionButtonCssStyle(this.action.renderedElement,this._state),this.action.renderedElement.tabIndex=this.focusable?0:-1,this.action.renderedElement.classList.remove(n.makeCssClassName("expanded")),this.action.renderedElement.classList.remove(n.makeCssClassName("subdued")),this._state){case 1:this.action.renderedElement.classList.add(n.makeCssClassName("expanded"));break;case 2:this.action.renderedElement.classList.add(n.makeCssClassName("subdued"))}this.action.style&&(this.action.style===s.ActionStyle.Positive?(e=this.action.renderedElement.classList).add.apply(e,n.makeCssClassNames("primary","style-positive")):(t=this.action.renderedElement.classList).add.apply(t,n.makeCssClassNames("style-"+this.action.style.toLowerCase())))}},e.prototype.render=function(){var e=this;this.action.render(),this.action.renderedElement&&(this.action.renderedElement.onclick=function(t){t.preventDefault(),t.cancelBubble=!0,e.click(t)},this.action.renderedElement.onblur=function(t){e.blur()},this.updateCssStyle())},e.prototype.blur=function(){void 0!==this.onBlur&&this.onBlur(this)},e.prototype.click=function(e){void 0!==this.onClick&&this.onClick(this,e)},Object.defineProperty(e.prototype,"action",{get:function(){return this._action},set:function(e){this._action!==e&&(void 0!==this._action&&this._action.renderedElement&&this._action.renderedElement.removeAttribute("onclick"),this._action=e,this.render())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},set:function(e){this._state=e,this.updateCssStyle()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusable",{get:function(){return this._focusable},set:function(e){e!=this._focusable&&(this._focusable=e,this.updateCssStyle())},enumerable:!1,configurable:!0}),e}(),L=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=s.ActionStyle.Default,t.mode=s.ActionMode.Primary,t}return r(t,e),t.prototype.getDefaultSerializationContext=function(){return new ye},t.prototype.addCssClasses=function(e){},t.prototype.internalGetReferencedInputs=function(){return{}},t.prototype.internalPrepareForExecution=function(e){},t.prototype.internalValidateInputs=function(e){var t=[];if(e)for(var n=0,i=Object.keys(e);n<i.length;n++){var r=e[i[n]];r.validateValue()||t.push(r)}return t},t.prototype.shouldSerialize=function(e){return void 0!==e.actionRegistry.findByName(this.getJsonTypeName())},t.prototype.raiseExecuteActionEvent=function(){var e,t,n;this.onExecute&&this.onExecute(this),n=(t=(e=this).parent?e.parent.getRootElement():void 0)&&t.onExecuteAction?t.onExecuteAction:ge.onExecuteAction,e.prepareForExecution()&&n&&n(e)},t.prototype.getHref=function(){return""},t.prototype.getAriaRole=function(){return"button"},t.prototype.setupElementForAccessibility=function(e,t){if(void 0===t&&(t=!1),e.tabIndex=0,e.setAttribute("role",this.getAriaRole()),this.title&&(e.setAttribute("aria-label",this.title),e.title=this.title),this.tooltip){var n=t?this.title?"aria-description":"aria-label":"aria-description";e.setAttribute(n,this.tooltip),e.title=this.tooltip}},t.prototype.updateActionButtonCssStyle=function(e,t){void 0===t&&(t=0)},t.prototype.promoteAsPrimary=function(){if(this._actionCollection&&!this._actionCollection.findActionButton(this))return this._actionCollection.promoteAsPrimary(this)},t.prototype.parse=function(t,n){return e.prototype.parse.call(this,t,n||new ye)},t.prototype.render=function(){var e=this.hostConfig,t=document.createElement("button");this.addCssClasses(t),null!=this.expanded&&t.setAttribute("aria-expanded",this.expanded.toString()),t.type="button",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center";var n=document.createElement("div");if(n.style.overflow="hidden",n.style.textOverflow="ellipsis",e.actions.iconPlacement==s.ActionIconPlacement.AboveTitle||e.actions.allowTitleToWrap||(n.style.whiteSpace="nowrap"),this.title&&(n.innerText=this.title),this.setupElementForAccessibility(t,!0),this.iconUrl){var i=document.createElement("img");i.src=this.iconUrl,i.style.width=e.actions.iconSize+"px",i.style.height=e.actions.iconSize+"px",i.style.flex="0 0 auto",e.actions.iconPlacement==s.ActionIconPlacement.AboveTitle?(t.classList.add("iconAbove"),t.style.flexDirection="column",this.title&&(i.style.marginBottom="6px")):(t.classList.add("iconLeft"),i.style.maxHeight="100%",this.title&&(i.style.marginRight="6px")),t.appendChild(i),t.appendChild(n)}else t.classList.add("noIcon"),t.appendChild(n);this._renderedElement=t},t.prototype.execute=function(){this._actionCollection&&this._actionCollection.actionExecuted(this),this.raiseExecuteActionEvent()},t.prototype.prepareForExecution=function(){var e=this.getReferencedInputs(),t=this.internalValidateInputs(e);return t.length>0?(t[0].focus(),!1):(this.internalPrepareForExecution(e),!0)},t.prototype.remove=function(){return!!this._actionCollection&&this._actionCollection.removeAction(this)},t.prototype.getAllInputs=function(e){return void 0===e&&(e=!0),[]},t.prototype.getResourceInformation=function(){return this.iconUrl?[{url:this.iconUrl,mimeType:"image"}]:[]},t.prototype.getActionById=function(e){return this.id===e?this:void 0},t.prototype.getReferencedInputs=function(){return this.internalGetReferencedInputs()},t.prototype.validateInputs=function(){return this.internalValidateInputs(this.getReferencedInputs())},Object.defineProperty(t.prototype,"shouldPromoteAsPrimaryOnExecute",{get:function(){return"primary"===this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrimary",{get:function(){return this.style==s.ActionStyle.Positive},set:function(e){e?this.style=s.ActionStyle.Positive:this.style==s.ActionStyle.Positive&&(this.style=s.ActionStyle.Default)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hostConfig",{get:function(){return this.parent?this.parent.hostConfig:c.defaultHostConfig},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),t.titleProperty=new d.StringProperty(d.Versions.v1_0,"title"),t.iconUrlProperty=new d.StringProperty(d.Versions.v1_1,"iconUrl"),t.styleProperty=new d.ValueSetProperty(d.Versions.v1_2,"style",[{value:s.ActionStyle.Default},{value:s.ActionStyle.Positive},{value:s.ActionStyle.Destructive}],s.ActionStyle.Default),t.modeProperty=new d.ValueSetProperty(d.Versions.v1_5,"mode",[{value:s.ActionMode.Primary},{value:s.ActionMode.Secondary}],s.ActionMode.Primary),t.tooltipProperty=new d.StringProperty(d.Versions.v1_5,"tooltip"),o([d.property(t.titleProperty)],t.prototype,"title",void 0),o([d.property(t.iconUrlProperty)],t.prototype,"iconUrl",void 0),o([d.property(t.styleProperty)],t.prototype,"style",void 0),o([d.property(t.modeProperty)],t.prototype,"mode",void 0),o([d.property(t.tooltipProperty)],t.prototype,"tooltip",void 0),t}(p.CardObject);t.Action=L;var H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._isPrepared=!1,t}return r(t,e),t.prototype.internalGetReferencedInputs=function(){var e={};if("none"!==this.associatedInputs){for(var t=this.parent,n=[];t;)n=n.concat(t.getAllInputs(!1)),t=t.parent;for(var i=0,r=n;i<r.length;i++){var o=r[i];o.id&&(e[o.id]=o)}}return e},t.prototype.internalPrepareForExecution=function(e){if(this._originalData?this._processedData=JSON.parse(JSON.stringify(this._originalData)):this._processedData={},this._processedData&&e)for(var t=0,n=Object.keys(e);t<n.length;t++){var i=e[n[t]];i.id&&i.isSet()&&(this._processedData[i.id]="string"==typeof i.value?i.value:i.value.toString())}this._isPrepared=!0},Object.defineProperty(t.prototype,"data",{get:function(){return this._isPrepared?this._processedData:this._originalData},set:function(e){this._originalData=e,this._isPrepared=!1},enumerable:!1,configurable:!0}),t.dataProperty=new d.PropertyDefinition(d.Versions.v1_0,"data"),t.associatedInputsProperty=new d.CustomProperty(d.Versions.v1_3,"associatedInputs",(function(e,t,n,i){var r=n[t.name];if(void 0!==r&&"string"==typeof r)return"none"===r.toLowerCase()?"none":"auto"}),(function(e,t,n,i,r){r.serializeValue(n,t.name,i)})),o([d.property(t.dataProperty)],t.prototype,"_originalData",void 0),o([d.property(t.associatedInputsProperty)],t.prototype,"associatedInputs",void 0),t}(L);t.SubmitActionBase=H;var j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.JsonTypeName="Action.Submit",t}(H);t.SubmitAction=j;var U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.JsonTypeName="Action.Execute",t.verbProperty=new d.StringProperty(d.Versions.v1_4,"verb"),o([d.property(t.verbProperty)],t.prototype,"verb",void 0),t}(H);t.ExecuteAction=U;var J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.getAriaRole=function(){return"link"},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.url||t.addFailure(this,s.ValidationEvent.PropertyCantBeNull,g.Strings.errors.propertyMustBeSet("url"))},t.prototype.getHref=function(){return this.url},t.urlProperty=new d.StringProperty(d.Versions.v1_0,"url"),t.JsonTypeName="Action.OpenUrl",o([d.property(t.urlProperty)],t.prototype,"url",void 0),t}(L);t.OpenUrlAction=J;var q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.targetElements={},t}return r(t,e),t.prototype.updateAriaControlsAttribute=function(){if(this.targetElements){var e=Object.keys(this.targetElements);this._renderedElement&&(e.length>0?this._renderedElement.setAttribute("aria-controls",e.join(" ")):this._renderedElement.removeAttribute("aria-controls"))}},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.targetElements||t.addFailure(this,s.ValidationEvent.PropertyCantBeNull,g.Strings.errors.propertyMustBeSet("targetElements"))},t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.render=function(){e.prototype.render.call(this),this.updateAriaControlsAttribute()},t.prototype.execute=function(){if(this.parent)for(var e=0,t=Object.keys(this.targetElements);e<t.length;e++){var n=t[e],i=this.parent.getRootElement().getElementById(n);i&&("boolean"==typeof this.targetElements[n]?i.isVisible=this.targetElements[n]:i.isVisible=!i.isVisible)}},t.prototype.addTargetElement=function(e,t){void 0===t&&(t=void 0),this.targetElements[e]=t,this.updateAriaControlsAttribute()},t.prototype.removeTargetElement=function(e){delete this.targetElements[e],this.updateAriaControlsAttribute()},t.targetElementsProperty=new d.CustomProperty(d.Versions.v1_2,"targetElements",(function(e,t,n,i){var r={};if(Array.isArray(n[t.name]))for(var o=0,s=n[t.name];o<s.length;o++){var a=s[o];if("string"==typeof a)r[a]=void 0;else if("object"==typeof a){var c=a.elementId;"string"==typeof c&&(r[c]=l.parseBool(a.isVisible))}}return r}),(function(e,t,n,i,r){for(var o=[],s=0,a=Object.keys(i);s<a.length;s++){var l=a[s];"boolean"==typeof i[l]?o.push({elementId:l,isVisible:i[l]}):o.push(l)}r.serializeArray(n,t.name,o)}),{},(function(e){return{}})),t.JsonTypeName="Action.ToggleVisibility",o([d.property(t.targetElementsProperty)],t.prototype,"targetElements",void 0),t}(L);t.ToggleVisibilityAction=q;var W=function(e){function t(t,n){var i=e.call(this,t,n,void 0,(function(){return new a.StringWithSubstitutions}))||this;return i.targetVersion=t,i.name=n,i}return r(t,e),t.prototype.parse=function(e,t,n){var i=new a.StringWithSubstitutions;return i.set(l.parseString(t[this.name])),i},t.prototype.toJSON=function(e,t,n,i){i.serializeValue(t,this.name,n.getOriginal())},t}(d.PropertyDefinition),G=function(e){function t(t,n){void 0===t&&(t=""),void 0===n&&(n="");var i=e.call(this)||this;return i.name=t,i.value=n,i}return r(t,e),t.prototype.getSchemaKey=function(){return"HttpHeader"},t.prototype.getReferencedInputs=function(e,t){this._value.getReferencedInputs(e,t)},t.prototype.prepareForExecution=function(e){this._value.substituteInputValues(e,a.ContentTypes.applicationXWwwFormUrlencoded)},Object.defineProperty(t.prototype,"value",{get:function(){return this._value.get()},set:function(e){this._value.set(e)},enumerable:!1,configurable:!0}),t.nameProperty=new d.StringProperty(d.Versions.v1_0,"name"),t.valueProperty=new W(d.Versions.v1_0,"value"),o([d.property(t.nameProperty)],t.prototype,"name",void 0),o([d.property(t.valueProperty)],t.prototype,"_value",void 0),t}(d.SerializableObject);t.HttpHeader=G;var K=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._ignoreInputValidation=!1,t}return r(t,e),t.prototype.internalGetReferencedInputs=function(){var e=this.parent?this.parent.getRootElement().getAllInputs():[],t={};this._url.getReferencedInputs(e,t);for(var n=0,i=this.headers;n<i.length;n++)i[n].getReferencedInputs(e,t);return this._body.getReferencedInputs(e,t),t},t.prototype.internalPrepareForExecution=function(e){if(e){this._url.substituteInputValues(e,a.ContentTypes.applicationXWwwFormUrlencoded);for(var t=a.ContentTypes.applicationJson,n=0,i=this.headers;n<i.length;n++){var r=i[n];r.prepareForExecution(e),r.name&&"content-type"==r.name.toLowerCase()&&(t=r.value)}this._body.substituteInputValues(e,t)}},t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.internalValidateProperties=function(t){if(e.prototype.internalValidateProperties.call(this,t),this.url||t.addFailure(this,s.ValidationEvent.PropertyCantBeNull,g.Strings.errors.propertyMustBeSet("url")),this.headers.length>0)for(var n=0,i=this.headers;n<i.length;n++)i[n].name||t.addFailure(this,s.ValidationEvent.PropertyCantBeNull,g.Strings.errors.actionHttpHeadersMustHaveNameAndValue())},Object.defineProperty(t.prototype,"ignoreInputValidation",{get:function(){return this._ignoreInputValidation},set:function(e){this._ignoreInputValidation=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this._url.get()},set:function(e){this._url.set(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"body",{get:function(){return this._body.get()},set:function(e){this._body.set(e)},enumerable:!1,configurable:!0}),t.urlProperty=new W(d.Versions.v1_0,"url"),t.bodyProperty=new W(d.Versions.v1_0,"body"),t.methodProperty=new d.StringProperty(d.Versions.v1_0,"method"),t.headersProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_0,"headers",G),t.ignoreInputValidationProperty=new d.BoolProperty(d.Versions.v1_3,"ignoreInputValidation",!1),t.JsonTypeName="Action.Http",o([d.property(t.urlProperty)],t.prototype,"_url",void 0),o([d.property(t.bodyProperty)],t.prototype,"_body",void 0),o([d.property(t.methodProperty)],t.prototype,"method",void 0),o([d.property(t.headersProperty)],t.prototype,"headers",void 0),o([d.property(t.ignoreInputValidationProperty)],t.prototype,"_ignoreInputValidation",void 0),t}(L);t.HttpAction=K;var Y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.card=new fe,t}return r(t,e),t.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n);var i=t.card;i?this.card.parse(i,n):n.logParseEvent(this,s.ValidationEvent.PropertyCantBeNull,g.Strings.errors.showCardMustHaveCard())},t.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),this.card&&n.serializeValue(t,"card",this.card.toJSON(n))},t.prototype.addCssClasses=function(t){e.prototype.addCssClasses.call(this,t),this.parent&&t.classList.add(this.parent.hostConfig.makeCssClassName("expandable"))},t.prototype.raiseExecuteActionEvent=function(){this.hostConfig.actions.showCard.actionMode===s.ShowCardActionMode.Popup&&e.prototype.raiseExecuteActionEvent.call(this)},t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.card.internalValidateProperties(t)},t.prototype.updateActionButtonCssStyle=function(t,n){void 0===n&&(n=0),e.prototype.updateActionButtonCssStyle.call(this,t),this.parent&&(t.classList.add(this.parent.hostConfig.makeCssClassName("expandable")),t.setAttribute("aria-expanded",(1===n).toString()))},t.prototype.setParent=function(t){e.prototype.setParent.call(this,t),this.card.setParent(t)},t.prototype.getAllInputs=function(e){return void 0===e&&(e=!0),this.card.getAllInputs(e)},t.prototype.getResourceInformation=function(){return e.prototype.getResourceInformation.call(this).concat(this.card.getResourceInformation())},t.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);return n||(n=this.card.getActionById(t)),n},Object.defineProperty(t.prototype,"shouldPromoteAsPrimaryOnExecute",{get:function(){return!0},enumerable:!1,configurable:!0}),t.JsonTypeName="Action.ShowCard",t}(L);t.ShowCardAction=Y;var Z=function(e){function t(t){var n=e.call(this)||this;return n.actions=t,n.title=g.Strings.defaults.overflowButtonText(),n}return r(t,e),t.prototype.getActions=function(){return this.actions},t.prototype.getJsonTypeName=function(){return Y.JsonTypeName},t.prototype.execute=function(){var e,t,n,i,r,o=this;if(t=this,n=this.renderedElement,(void 0===(r=(i=t.parent?t.parent.getRootElement():void 0)&&i.onDisplayOverflowActionMenu?i.onDisplayOverflowActionMenu:ge.onDisplayOverflowActionMenu)||!r(t.getActions(),n))&&this.renderedElement){var s=new f.PopupMenu;s.hostConfig=this.hostConfig;for(var a=function(t){var n=new f.MenuItem(t.toString(),null!==(e=l.actions[t].title)&&void 0!==e?e:"");n.onClick=function(){var e=o.actions[t];if(e.shouldPromoteAsPrimaryOnExecute){var n=e.promoteAsPrimary();n&&(o.actions[t]=n)}s.closePopup(!1),e.execute()},s.items.add(n)},l=this,c=0;c<this.actions.length;c++)a(c);s.popup(this.renderedElement)}},t.JsonTypeName="Action.Overflow",t}(L),Q=function(){function e(e){this._renderedActionCount=0,this._items=[],this._buttons=[],this._owner=e}return e.prototype.isActionAllowed=function(e){var t=this._owner.getForbiddenActionTypes();if(t)for(var n=0,i=t;n<i.length;n++){var r=i[n];if(e.constructor===r)return!1}return!0},e.prototype.refreshContainer=function(){if(this._actionCardContainer.innerHTML="",this._actionCard){this._actionCardContainer.style.marginTop=this._renderedActionCount>0?this._owner.hostConfig.actions.showCard.inlineTopMargin+"px":"0px";var e=this._owner.getEffectivePadding();this._owner.getImmediateSurroundingPadding(e);var t=this._owner.hostConfig.paddingDefinitionToSpacingDefinition(e);this._actionCard&&(this._actionCard.style.paddingLeft=t.left+"px",this._actionCard.style.paddingRight=t.right+"px",this._actionCard.style.marginLeft="-"+t.left+"px",this._actionCard.style.marginRight="-"+t.right+"px",0==t.bottom||this._owner.isDesignMode()||(this._actionCard.style.paddingBottom=t.bottom+"px",this._actionCard.style.marginBottom="-"+t.bottom+"px"),l.appendChild(this._actionCardContainer,this._actionCard))}else this._actionCardContainer.style.marginTop="0px"},e.prototype.layoutChanged=function(){this._owner.getRootElement().updateLayout()},e.prototype.showActionCard=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),e.card.suppressStyle=t;var i=e.card.renderedElement&&!this._owner.isDesignMode()?e.card.renderedElement:e.card.render();this._actionCard=i,this._expandedAction=e,this.refreshContainer(),n&&(this.layoutChanged(),se(e,!0))},e.prototype.collapseExpandedAction=function(){for(var e=0,t=this._buttons;e<t.length;e++)t[e].state=0;var n=this._expandedAction;this._expandedAction=void 0,this._actionCard=void 0,this.refreshContainer(),n&&(this.layoutChanged(),se(n,!1))},e.prototype.expandShowCardAction=function(e,t){for(var n=this,i=!1,r=0,o=this._buttons;r<o.length;r++){var s=o[r];i&&(s.focusable=!1),s.action!==e?s.state=2:(s.state=1,i=!0,s.onBlur=function(e){for(var t=0,i=n._buttons;t<i.length;t++)i[t].focusable=!0})}this.showActionCard(e,!(this._owner.isAtTheVeryLeft()&&this._owner.isAtTheVeryRight()),t)},e.prototype.getParentContainer=function(){return this._owner instanceof te?this._owner:this._owner.getParentContainer()},e.prototype.promoteAsPrimary=function(e){if(this._buttons.length>1){var t=this._buttons[this._buttons.length-2],n=t.action;if(e.render(),n.renderedElement&&n.renderedElement.parentElement&&e.renderedElement)return t.action=e,n.renderedElement.parentElement.replaceChild(e.renderedElement,n.renderedElement),e.renderedElement.setAttribute("aria-posinset",(this._buttons.length-1).toString()),e.renderedElement.setAttribute("aria-setsize",this._buttons.length.toString()),e.renderedElement.setAttribute("role","menuitem"),n.renderedElement.removeAttribute("aria-posinset"),n.renderedElement.removeAttribute("aria-setsize"),n.renderedElement.removeAttribute("role"),n}},e.prototype.actionExecuted=function(e){e instanceof Y?e===this._expandedAction?this.collapseExpandedAction():this.expandShowCardAction(e,!0):this.collapseExpandedAction()},e.prototype.parse=function(e,t){if(this.clear(),Array.isArray(e))for(var n=0,i=e;n<i.length;n++){var r=i[n],o=t.parseAction(this._owner,r,[],!this._owner.isDesignMode());o&&this.addAction(o)}},e.prototype.toJSON=function(e,t,n){n.serializeArray(e,t,this._items)},e.prototype.getActionAt=function(e){return this._items[e]},e.prototype.getActionCount=function(){return this._items.length},e.prototype.getActionById=function(e){for(var t=void 0,n=0,i=this._items;n<i.length&&!(t=i[n].getActionById(e));n++);return t},e.prototype.validateProperties=function(e){this._owner.hostConfig.actions.maxActions&&this._items.length>this._owner.hostConfig.actions.maxActions&&e.addFailure(this._owner,s.ValidationEvent.TooManyActions,g.Strings.errors.tooManyActions(this._owner.hostConfig.actions.maxActions)),this._items.length>0&&!this._owner.hostConfig.supportsInteractivity&&e.addFailure(this._owner,s.ValidationEvent.InteractivityNotAllowed,g.Strings.errors.interactivityNotAllowed());for(var t=0,n=this._items;t<n.length;t++){var i=n[t];this.isActionAllowed(i)||e.addFailure(this._owner,s.ValidationEvent.ActionTypeNotAllowed,g.Strings.errors.actionTypeNotAllowed(i.getJsonTypeName())),i.internalValidateProperties(e)}},e.prototype.render=function(e,t){var n=this._owner.hostConfig;if(n.supportsInteractivity){var i,r,o,c,u=document.createElement("div"),p=n.actions.maxActions?Math.min(n.actions.maxActions,this._items.length):this._items.length;if(this._actionCardContainer=document.createElement("div"),this._renderedActionCount=0,n.actions.preExpandSingleShowCardAction&&1==p&&this._items[0]instanceof Y&&this.isActionAllowed(this._items[0]))this.showActionCard(this._items[0],!0),this._renderedActionCount=1;else{var d=document.createElement("div");if(d.className=n.makeCssClassName("ac-actionSet"),d.style.display="flex",d.setAttribute("role","menubar"),e==s.Orientation.Horizontal)if(d.style.flexDirection="row",this._owner.horizontalAlignment&&n.actions.actionAlignment!=s.ActionAlignment.Stretch)switch(this._owner.horizontalAlignment){case s.HorizontalAlignment.Center:d.style.justifyContent="center";break;case s.HorizontalAlignment.Right:d.style.justifyContent="flex-end";break;default:d.style.justifyContent="flex-start"}else switch(n.actions.actionAlignment){case s.ActionAlignment.Center:d.style.justifyContent="center";break;case s.ActionAlignment.Right:d.style.justifyContent="flex-end";break;default:d.style.justifyContent="flex-start"}else if(d.style.flexDirection="column",this._owner.horizontalAlignment&&n.actions.actionAlignment!=s.ActionAlignment.Stretch)switch(this._owner.horizontalAlignment){case s.HorizontalAlignment.Center:d.style.alignItems="center";break;case s.HorizontalAlignment.Right:d.style.alignItems="flex-end";break;default:d.style.alignItems="flex-start"}else switch(n.actions.actionAlignment){case s.ActionAlignment.Center:d.style.alignItems="center";break;case s.ActionAlignment.Right:d.style.alignItems="flex-end";break;case s.ActionAlignment.Stretch:d.style.alignItems="stretch";break;default:d.style.alignItems="flex-start"}var h=this.getParentContainer();if(h){var g=h.getEffectiveStyle(),f=[],m=[],y=this._items.filter(this.isActionAllowed.bind(this));if(this._owner.isDesignMode())f=y;else{y.forEach((function(e){return e.mode===s.ActionMode.Secondary?m.push(e):f.push(e)}));var v=f.splice(n.actions.maxActions);a.GlobalSettings.allowMoreThanMaxActionsInOverflowMenu&&m.push.apply(m,v);var C=!0;m.length>0&&(this._overflowAction||(this._overflowAction=new Z(m),this._overflowAction.setParent(this._owner),this._overflowAction._actionCollection=this),r=this._owner instanceof ge&&!this._owner.parent,C=!(void 0!==(c=(o=(i=this._overflowAction).parent?i.parent.getRootElement():void 0)&&o.onRenderOverflowActions?o.onRenderOverflowActions:ge.onRenderOverflowActions)&&c(i.getActions(),r))),this._overflowAction&&C&&f.push(this._overflowAction)}for(var b=0;b<f.length;b++){var A=this.findActionButton(f[b]);if(A||((A=new z(f[b],g)).onClick=function(e){e.action.execute()},this._buttons.push(A)),A.render(),A.action.renderedElement&&(f.length>1&&(A.action.renderedElement.setAttribute("aria-posinset",(b+1).toString()),A.action.renderedElement.setAttribute("aria-setsize",f.length.toString()),A.action.renderedElement.setAttribute("role","menuitem")),n.actions.actionsOrientation==s.Orientation.Horizontal&&n.actions.actionAlignment==s.ActionAlignment.Stretch?A.action.renderedElement.style.flex="0 1 100%":A.action.renderedElement.style.flex="0 1 auto",d.appendChild(A.action.renderedElement),this._renderedActionCount++,b<f.length-1&&n.actions.buttonSpacing>0)){var x=document.createElement("div");e===s.Orientation.Horizontal?(x.style.flex="0 0 auto",x.style.width=n.actions.buttonSpacing+"px"):x.style.height=n.actions.buttonSpacing+"px",l.appendChild(d,x)}}}var S=document.createElement("div");S.style.overflow="hidden",S.appendChild(d),l.appendChild(u,S)}l.appendChild(u,this._actionCardContainer);for(var I=0,E=this._buttons;I<E.length;I++){var w=E[I];if(1==w.state){this.expandShowCardAction(w.action,!1);break}}return this._renderedActionCount>0?u:void 0}},e.prototype.addAction=function(e){if(!e)throw new Error("The action parameter cannot be null.");if(e.parent&&e.parent!==this._owner||!(this._items.indexOf(e)<0))throw new Error(g.Strings.errors.actionAlreadyParented());this._items.push(e),e.parent||e.setParent(this._owner),e._actionCollection=this},e.prototype.removeAction=function(e){this.expandedAction&&this._expandedAction==e&&this.collapseExpandedAction();var t=this._items.indexOf(e);if(t>=0){this._items.splice(t,1),e.setParent(void 0),e._actionCollection=void 0;for(var n=0;n<this._buttons.length;n++)if(this._buttons[n].action==e){this._buttons.splice(n,1);break}return!0}return!1},e.prototype.clear=function(){this._items=[],this._buttons=[],this._expandedAction=void 0,this._renderedActionCount=0},e.prototype.getAllInputs=function(e){void 0===e&&(e=!0);var t=[];if(e)for(var n=0,i=this._items;n<i.length;n++){var r=i[n];t=t.concat(r.getAllInputs())}return t},e.prototype.findActionButton=function(e){for(var t=0,n=this._buttons;t<n.length;t++){var i=n[t];if(i.action==e)return i}},e.prototype.getResourceInformation=function(){for(var e=[],t=0,n=this._items;t<n.length;t++){var i=n[t];e=e.concat(i.getResourceInformation())}return e},Object.defineProperty(e.prototype,"renderedActionCount",{get:function(){return this._renderedActionCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expandedAction",{get:function(){return this._expandedAction},enumerable:!1,configurable:!0}),e}(),X=function(e){function t(){var t=e.call(this)||this;return t._actionCollection=new Q(t),t}return r(t,e),t.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this._actionCollection.parse(t.actions,n)},t.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),this._actionCollection.toJSON(t,"actions",n)},t.prototype.internalRender=function(){return this._actionCollection.render(void 0!==this.orientation?this.orientation:this.hostConfig.actions.actionsOrientation,this.isDesignMode())},t.prototype.isBleedingAtBottom=function(){return 0==this._actionCollection.renderedActionCount?e.prototype.isBleedingAtBottom.call(this):1==this._actionCollection.getActionCount()?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction},t.prototype.getJsonTypeName=function(){return"ActionSet"},t.prototype.getActionCount=function(){return this._actionCollection.getActionCount()},t.prototype.getActionAt=function(t){return t>=0&&t<this.getActionCount()?this._actionCollection.getActionAt(t):e.prototype.getActionAt.call(this,t)},t.prototype.getActionById=function(t){return this._actionCollection.getActionById(t)||e.prototype.getActionById.call(this,t)},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this._actionCollection.validateProperties(t)},t.prototype.addAction=function(e){this._actionCollection.addAction(e)},t.prototype.getAllInputs=function(e){return void 0===e&&(e=!0),e?this._actionCollection.getAllInputs():[]},t.prototype.getResourceInformation=function(){return this._actionCollection.getResourceInformation()},t.prototype.findDOMNodeOwner=function(t){for(var n=void 0,i=0;i<this.getActionCount();i++){var r=this.getActionAt(i);if(r&&(n=r.findDOMNodeOwner(t)))return n}return e.prototype.findDOMNodeOwner.call(this,t)},Object.defineProperty(t.prototype,"isInteractive",{get:function(){return!0},enumerable:!1,configurable:!0}),t.orientationProperty=new d.EnumProperty(d.Versions.v1_1,"orientation",s.Orientation),o([d.property(t.orientationProperty)],t.prototype,"orientation",void 0),t}(m);t.ActionSet=X;var $=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._bleed=!1,t}return r(t,e),Object.defineProperty(t.prototype,"style",{get:function(){if(this.allowCustomStyle){var e=this.getValue(t.styleProperty);if(e&&this.hostConfig.containerStyles.getStyleByName(e))return e}},set:function(e){this.setValue(t.styleProperty,e)},enumerable:!1,configurable:!0}),t.prototype.adjustRenderedElementSize=function(t){e.prototype.adjustRenderedElementSize.call(this,t),this.minPixelHeight&&(t.style.minHeight=this.minPixelHeight+"px")},t.prototype.applyBackground=function(){if(this.renderedElement){var e=this.hostConfig.containerStyles.getStyleByName(this.style,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));if(e.backgroundColor){var t=l.stringToCssColor(e.backgroundColor);this.renderedElement.style.backgroundColor=t,this.renderedElement.style.border="1px solid "+t}}},t.prototype.applyPadding=function(){if(e.prototype.applyPadding.call(this),this.renderedElement){var t=new a.SpacingDefinition;if(this.getEffectivePadding()&&(t=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),this.renderedElement.style.paddingTop=t.top+"px",this.renderedElement.style.paddingRight=t.right+"px",this.renderedElement.style.paddingBottom=t.bottom+"px",this.renderedElement.style.paddingLeft=t.left+"px",this.isBleeding()){var n=new a.PaddingDefinition;this.getImmediateSurroundingPadding(n);var i=this.hostConfig.paddingDefinitionToSpacingDefinition(n);this.renderedElement.style.marginRight="-"+i.right+"px",this.renderedElement.style.marginLeft="-"+i.left+"px",this.isDesignMode()||(this.renderedElement.style.marginTop="-"+i.top+"px",this.renderedElement.style.marginBottom="-"+i.bottom+"px"),this.separatorElement&&this.separatorOrientation==s.Orientation.Horizontal&&(this.separatorElement.style.marginLeft="-"+i.left+"px",this.separatorElement.style.marginRight="-"+i.right+"px")}else this.renderedElement.style.marginRight="0",this.renderedElement.style.marginLeft="0",this.renderedElement.style.marginTop="0",this.renderedElement.style.marginBottom="0",this.separatorElement&&this.separatorOrientation===s.Orientation.Horizontal&&(this.separatorElement.style.marginRight="0",this.separatorElement.style.marginLeft="0")}},t.prototype.getHasBackground=function(){for(var e=this.parent;e;){var n=e instanceof te&&e.backgroundImage.isValid();if(e instanceof t&&this.hasExplicitStyle&&(e.getEffectiveStyle()!=this.getEffectiveStyle()||n))return!0;e=e.parent}return!1},t.prototype.getDefaultPadding=function(){return this.getHasBackground()?new a.PaddingDefinition(s.Spacing.Padding,s.Spacing.Padding,s.Spacing.Padding,s.Spacing.Padding):e.prototype.getDefaultPadding.call(this)},t.prototype.getHasExpandedAction=function(){return!1},t.prototype.getBleed=function(){return this._bleed},t.prototype.setBleed=function(e){this._bleed=e},Object.defineProperty(t.prototype,"renderedActionCount",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasExplicitStyle",{get:function(){return void 0!==this.getValue(t.styleProperty)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCustomStyle",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isBleeding=function(){return(this.getHasBackground()||this.hostConfig.alwaysAllowBleed)&&this.getBleed()},t.prototype.internalValidateProperties=function(n){e.prototype.internalValidateProperties.call(this,n);var i=this.getValue(t.styleProperty);void 0!==i&&(this.hostConfig.containerStyles.getStyleByName(i)||n.addFailure(this,s.ValidationEvent.InvalidPropertyValue,g.Strings.errors.invalidPropertyValue(i,"style")))},t.prototype.render=function(){var t=e.prototype.render.call(this);return t&&this.getHasBackground()&&this.applyBackground(),t},t.prototype.getEffectiveStyle=function(){return this.style||e.prototype.getEffectiveStyle.call(this)},t.styleProperty=new d.ValueSetProperty(d.Versions.v1_0,"style",[{value:s.ContainerStyle.Default},{value:s.ContainerStyle.Emphasis},{targetVersion:d.Versions.v1_2,value:s.ContainerStyle.Accent},{targetVersion:d.Versions.v1_2,value:s.ContainerStyle.Good},{targetVersion:d.Versions.v1_2,value:s.ContainerStyle.Attention},{targetVersion:d.Versions.v1_2,value:s.ContainerStyle.Warning}]),t.bleedProperty=new d.BoolProperty(d.Versions.v1_2,"bleed",!1),t.minHeightProperty=new d.PixelSizeProperty(d.Versions.v1_2,"minHeight"),o([d.property(t.styleProperty)],t.prototype,"style",null),o([d.property(t.bleedProperty)],t.prototype,"_bleed",void 0),o([d.property(t.minHeightProperty)],t.prototype,"minPixelHeight",void 0),t}(w);t.StylableCardElementContainer=$;var ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getSchemaKey=function(){return"BackgroundImage"},t.prototype.internalParse=function(t,n){if("string"!=typeof t)return e.prototype.internalParse.call(this,t,n);this.resetDefaultValues(),this.url=t},t.prototype.apply=function(e){if(this.url&&e.renderedElement){switch(e.renderedElement.style.backgroundImage="url('"+e.preProcessPropertyValue(t.urlProperty,this.url)+"')",this.fillMode){case s.FillMode.Repeat:e.renderedElement.style.backgroundRepeat="repeat";break;case s.FillMode.RepeatHorizontally:e.renderedElement.style.backgroundRepeat="repeat-x";break;case s.FillMode.RepeatVertically:e.renderedElement.style.backgroundRepeat="repeat-y";break;case s.FillMode.Cover:default:e.renderedElement.style.backgroundRepeat="no-repeat",e.renderedElement.style.backgroundSize="cover"}switch(this.horizontalAlignment){case s.HorizontalAlignment.Center:e.renderedElement.style.backgroundPositionX="center";break;case s.HorizontalAlignment.Right:e.renderedElement.style.backgroundPositionX="right"}switch(this.verticalAlignment){case s.VerticalAlignment.Center:e.renderedElement.style.backgroundPositionY="center";break;case s.VerticalAlignment.Bottom:e.renderedElement.style.backgroundPositionY="bottom"}}},t.prototype.isValid=function(){return!!this.url},t.urlProperty=new d.StringProperty(d.Versions.v1_0,"url"),t.fillModeProperty=new d.EnumProperty(d.Versions.v1_2,"fillMode",s.FillMode,s.FillMode.Cover),t.horizontalAlignmentProperty=new d.EnumProperty(d.Versions.v1_2,"horizontalAlignment",s.HorizontalAlignment,s.HorizontalAlignment.Left),t.verticalAlignmentProperty=new d.EnumProperty(d.Versions.v1_2,"verticalAlignment",s.VerticalAlignment,s.VerticalAlignment.Top),o([d.property(t.urlProperty)],t.prototype,"url",void 0),o([d.property(t.fillModeProperty)],t.prototype,"fillMode",void 0),o([d.property(t.horizontalAlignmentProperty)],t.prototype,"horizontalAlignment",void 0),o([d.property(t.verticalAlignmentProperty)],t.prototype,"verticalAlignment",void 0),t}(d.SerializableObject);t.BackgroundImage=ee;var te=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.verticalContentAlignment=s.VerticalAlignment.Top,t._items=[],t._renderedItems=[],t}return r(t,e),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getValue(t.backgroundImageProperty)},enumerable:!1,configurable:!0}),t.prototype.insertItemAt=function(e,t,n){if(e.parent&&!n)throw new Error(g.Strings.errors.elementAlreadyParented());if(!e.isStandalone)throw new Error(g.Strings.errors.elementTypeNotStandalone(e.getJsonTypeName()));t<0||t>=this._items.length?this._items.push(e):this._items.splice(t,0,e),e.setParent(this)},t.prototype.supportsExcplitiHeight=function(){return!0},t.prototype.getItemsCollectionPropertyName=function(){return"items"},t.prototype.applyBackground=function(){this.backgroundImage.isValid()&&this.renderedElement&&this.backgroundImage.apply(this),e.prototype.applyBackground.call(this)},t.prototype.internalRender=function(){this._renderedItems=[];var e=this.hostConfig,t=document.createElement("div");switch(void 0!==this.rtl&&(t.dir=this.rtl?"rtl":"ltr"),t.classList.add(e.makeCssClassName("ac-container")),t.style.display="flex",t.style.flexDirection="column",a.GlobalSettings.useAdvancedCardBottomTruncation&&(t.style.minHeight="-webkit-min-content"),this.verticalContentAlignment){case s.VerticalAlignment.Center:t.style.justifyContent="center";break;case s.VerticalAlignment.Bottom:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}if(this._items.length>0)for(var n=0,i=this._items;n<i.length;n++){var r=i[n],o=this.isElementAllowed(r)?r.render():void 0;o&&(this._renderedItems.length>0&&r.separatorElement&&(r.separatorElement.style.flex="0 0 auto",l.appendChild(t,r.separatorElement)),l.appendChild(t,o),this._renderedItems.push(r))}else if(this.isDesignMode()){var c=this.createPlaceholderElement();c.style.width="100%",c.style.height="100%",t.appendChild(c)}return t},t.prototype.truncateOverflow=function(e){if(this.renderedElement){for(var t=this.renderedElement.offsetTop+e+1,n=function(e){var i=e.renderedElement;if(i)switch(l.getFitStatus(i,t)){case s.ContainerFitStatus.FullyInContainer:e.resetOverflow()&&n(e);break;case s.ContainerFitStatus.Overflowing:var r=t-i.offsetTop;e.handleOverflow(r);break;case s.ContainerFitStatus.FullyOutOfContainer:e.handleOverflow(0)}},i=0,r=this._items;i<r.length;i++){var o=r[i];n(o)}return!0}return!1},t.prototype.undoOverflowTruncation=function(){for(var e=0,t=this._items;e<t.length;e++)t[e].resetOverflow()},t.prototype.getHasBackground=function(){return this.backgroundImage.isValid()||e.prototype.getHasBackground.call(this)},t.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this.clear(),this.setShouldFallback(!1);var i=t[this.getItemsCollectionPropertyName()];if(Array.isArray(i))for(var r=0,o=i;r<o.length;r++){var s=o[r],a=n.parseElement(this,s,!this.isDesignMode());a&&this.insertItemAt(a,-1,!0)}},t.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),n.serializeArray(t,this.getItemsCollectionPropertyName(),this._items)},Object.defineProperty(t.prototype,"isSelectable",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getItemCount=function(){return this._items.length},t.prototype.getItemAt=function(e){return this._items[e]},t.prototype.getFirstVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedItems&&this._renderedItems.length>0)for(var e=0,t=this._renderedItems;e<t.length;e++){var n=t[e];if(n.isVisible)return n}},t.prototype.getLastVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedItems&&this._renderedItems.length>0)for(var e=this._renderedItems.length-1;e>=0;e--)if(this._renderedItems[e].isVisible)return this._renderedItems[e]},t.prototype.getJsonTypeName=function(){return"Container"},t.prototype.isFirstElement=function(e){for(var t=this.isDesignMode(),n=0,i=this._items;n<i.length;n++){var r=i[n];if(r.isVisible||t)return r==e}return!1},t.prototype.isLastElement=function(e){for(var t=this.isDesignMode(),n=this._items.length-1;n>=0;n--)if(this._items[n].isVisible||t)return this._items[n]==e;return!1},t.prototype.isRtl=function(){if(void 0!==this.rtl)return this.rtl;var e=this.getParentContainer();return!!e&&e.isRtl()},t.prototype.isBleedingAtTop=function(){var e=this.getFirstVisibleRenderedItem();return this.isBleeding()||!!e&&e.isBleedingAtTop()},t.prototype.isBleedingAtBottom=function(){var e=this.getLastVisibleRenderedItem();return this.isBleeding()||!!e&&e.isBleedingAtBottom()&&e.getEffectiveStyle()==this.getEffectiveStyle()},t.prototype.indexOf=function(e){return this._items.indexOf(e)},t.prototype.addItem=function(e){this.insertItemAt(e,-1,!1)},t.prototype.insertItemBefore=function(e,t){this.insertItemAt(e,this._items.indexOf(t),!1)},t.prototype.insertItemAfter=function(e,t){this.insertItemAt(e,this._items.indexOf(t)+1,!1)},t.prototype.removeItem=function(e){var t=this._items.indexOf(e);return t>=0&&(this._items.splice(t,1),e.setParent(void 0),this.updateLayout(),!0)},t.prototype.clear=function(){this._items=[],this._renderedItems=[]},t.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return this.backgroundImage.isValid()&&t.push({url:this.backgroundImage.url,mimeType:"image"}),t},t.prototype.getActionById=function(t){var n=e.prototype.getActionById.call(this,t);if(!n&&(this.selectAction&&(n=this.selectAction.getActionById(t)),!n))for(var i=0,r=this._items;i<r.length&&!(n=r[i].getActionById(t));i++);return n},Object.defineProperty(t.prototype,"padding",{get:function(){return this.getPadding()},set:function(e){this.setPadding(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAction",{get:function(){return this._selectAction},set:function(e){this._selectAction=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bleed",{get:function(){return this.getBleed()},set:function(e){this.setBleed(e)},enumerable:!1,configurable:!0}),t.backgroundImageProperty=new d.SerializableObjectProperty(d.Versions.v1_0,"backgroundImage",ee),t.verticalContentAlignmentProperty=new d.EnumProperty(d.Versions.v1_1,"verticalContentAlignment",s.VerticalAlignment,s.VerticalAlignment.Top),t.rtlProperty=new d.BoolProperty(d.Versions.v1_0,"rtl"),o([d.property(t.backgroundImageProperty)],t.prototype,"backgroundImage",null),o([d.property(t.verticalContentAlignmentProperty)],t.prototype,"verticalContentAlignment",void 0),o([d.property(t.rtlProperty)],t.prototype,"rtl",void 0),t}($);t.Container=te;var ne=function(e){function t(t){void 0===t&&(t="stretch");var n=e.call(this)||this;return n.width="stretch",n._computedWeight=0,n.width=t,n}return r(t,e),t.prototype.adjustRenderedElementSize=function(e){this.isDesignMode()?(e.style.minWidth="20px",e.style.minHeight=(this.minPixelHeight?Math.max(this.minPixelHeight,20):20)+"px"):(e.style.minWidth="0",this.minPixelHeight&&(e.style.minHeight=this.minPixelHeight+"px")),"auto"===this.width?e.style.flex="0 1 auto":"stretch"===this.width?e.style.flex="1 1 50px":this.width instanceof a.SizeAndUnit&&(this.width.unit==s.SizeUnit.Pixel?(e.style.flex="0 0 auto",e.style.width=this.width.physicalSize+"px"):e.style.flex="1 1 "+(this._computedWeight>0?this._computedWeight:this.width.physicalSize)+"%")},t.prototype.shouldSerialize=function(e){return!0},Object.defineProperty(t.prototype,"separatorOrientation",{get:function(){return s.Orientation.Vertical},enumerable:!1,configurable:!0}),t.prototype.getJsonTypeName=function(){return"Column"},Object.defineProperty(t.prototype,"hasVisibleSeparator",{get:function(){return!!(this.parent&&this.parent instanceof ie)&&void 0!==this.separatorElement&&!this.parent.isLeftMostElement(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),t.widthProperty=new d.CustomProperty(d.Versions.v1_0,"width",(function(e,t,n,i){var r=t.defaultValue,o=n[t.name],l=!1;if("number"!=typeof o||isNaN(o))if("auto"===o||"stretch"===o)r=o;else if("string"==typeof o)try{(r=a.SizeAndUnit.parse(o)).unit===s.SizeUnit.Pixel&&t.targetVersion.compareTo(i.targetVersion)>0&&(l=!0)}catch(e){l=!0}else l=!0;else r=new a.SizeAndUnit(o,s.SizeUnit.Weight);return l&&(i.logParseEvent(e,s.ValidationEvent.InvalidPropertyValue,g.Strings.errors.invalidColumnWidth(o)),r="auto"),r}),(function(e,t,n,i,r){i instanceof a.SizeAndUnit?i.unit===s.SizeUnit.Pixel?r.serializeValue(n,"width",i.physicalSize+"px"):r.serializeNumber(n,"width",i.physicalSize):r.serializeValue(n,"width",i)}),"stretch"),o([d.property(t.widthProperty)],t.prototype,"width",void 0),t}(te);t.Column=ne;var ie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._columns=[],t}return r(t,e),t.prototype.createColumnInstance=function(e,t){return t.parseCardObject(this,e,[],!this.isDesignMode(),(function(e){return e&&"Column"!==e?void 0:new ne}),(function(e,n){t.logParseEvent(void 0,s.ValidationEvent.ElementTypeNotAllowed,g.Strings.errors.elementTypeNotAllowed(e))}))},t.prototype.internalRender=function(){if(this._renderedColumns=[],this._columns.length>0){var e=this.hostConfig,t=document.createElement("div");switch(t.className=e.makeCssClassName("ac-columnSet"),t.style.display="flex",a.GlobalSettings.useAdvancedCardBottomTruncation&&(t.style.minHeight="-webkit-min-content"),this.horizontalAlignment){case s.HorizontalAlignment.Center:t.style.justifyContent="center";break;case s.HorizontalAlignment.Right:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}for(var n=0,i=0,r=this._columns;i<r.length;i++)(u=r[i]).width instanceof a.SizeAndUnit&&u.width.unit==s.SizeUnit.Weight&&(n+=u.width.physicalSize);for(var o=0,c=this._columns;o<c.length;o++){var u;if((u=c[o]).width instanceof a.SizeAndUnit&&u.width.unit==s.SizeUnit.Weight&&n>0){var p=100/n*u.width.physicalSize;u._computedWeight=p}var d=u.render();d&&(this._renderedColumns.length>0&&u.separatorElement&&(u.separatorElement.style.flex="0 0 auto",l.appendChild(t,u.separatorElement)),l.appendChild(t,d),this._renderedColumns.push(u))}return this._renderedColumns.length>0?t:void 0}},t.prototype.truncateOverflow=function(e){for(var t=0,n=this._columns;t<n.length;t++)n[t].handleOverflow(e);return!0},t.prototype.undoOverflowTruncation=function(){for(var e=0,t=this._columns;e<t.length;e++)t[e].resetOverflow()},Object.defineProperty(t.prototype,"isSelectable",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this._columns=[],this._renderedColumns=[];var i=t.columns;if(Array.isArray(i))for(var r=0,o=i;r<o.length;r++){var s=o[r],a=this.createColumnInstance(s,n);a&&this._columns.push(a)}},t.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),n.serializeArray(t,"columns",this._columns)},t.prototype.isFirstElement=function(e){for(var t=0,n=this._columns;t<n.length;t++){var i=n[t];if(i.isVisible)return i==e}return!1},t.prototype.isBleedingAtTop=function(){if(this.isBleeding())return!0;if(this._renderedColumns&&this._renderedColumns.length>0)for(var e=0,t=this._columns;e<t.length;e++)if(t[e].isBleedingAtTop())return!0;return!1},t.prototype.isBleedingAtBottom=function(){if(this.isBleeding())return!0;if(this._renderedColumns&&this._renderedColumns.length>0)for(var e=0,t=this._columns;e<t.length;e++)if(t[e].isBleedingAtBottom())return!0;return!1},t.prototype.getItemCount=function(){return this._columns.length},t.prototype.getFirstVisibleRenderedItem=function(){return this.renderedElement&&this._renderedColumns&&this._renderedColumns.length>0?this._renderedColumns[0]:void 0},t.prototype.getLastVisibleRenderedItem=function(){return this.renderedElement&&this._renderedColumns&&this._renderedColumns.length>0?this._renderedColumns[this._renderedColumns.length-1]:void 0},t.prototype.getColumnAt=function(e){return this._columns[e]},t.prototype.getItemAt=function(e){return this.getColumnAt(e)},t.prototype.getJsonTypeName=function(){return"ColumnSet"},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);for(var n=0,i=0,r=0,o=this._columns;r<o.length;r++){var a=o[r];"number"==typeof a.width?n++:"stretch"===a.width&&i++}n>0&&i>0&&t.addFailure(this,s.ValidationEvent.Hint,g.Strings.hints.dontUseWeightedAndStrecthedColumnsInSameSet())},t.prototype.addColumn=function(e){if(e.parent)throw new Error(g.Strings.errors.columnAlreadyBelongsToAnotherSet());this._columns.push(e),e.setParent(this)},t.prototype.removeItem=function(e){if(e instanceof ne){var t=this._columns.indexOf(e);if(t>=0)return this._columns.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},t.prototype.indexOf=function(e){return e instanceof ne?this._columns.indexOf(e):-1},t.prototype.isLeftMostElement=function(e){return 0==this._columns.indexOf(e)},t.prototype.isRightMostElement=function(e){return this._columns.indexOf(e)==this._columns.length-1},t.prototype.isTopElement=function(e){return this._columns.indexOf(e)>=0},t.prototype.isBottomElement=function(e){return this._columns.indexOf(e)>=0},t.prototype.getActionById=function(e){for(var t=void 0,n=0,i=this._columns;n<i.length&&!(t=i[n].getActionById(e));n++);return t},Object.defineProperty(t.prototype,"bleed",{get:function(){return this.getBleed()},set:function(e){this.setBleed(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return this.getPadding()},set:function(e){this.setPadding(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAction",{get:function(){return this._selectAction},set:function(e){this._selectAction=e},enumerable:!1,configurable:!0}),t}($);function re(e){var t=e.getRootElement(),n=t&&t.onImageLoaded?t.onImageLoaded:ge.onImageLoaded;n&&n(e)}function oe(e,t,n){var i=e.getRootElement(),r=i&&i.onAnchorClicked?i.onAnchorClicked:ge.onAnchorClicked;return void 0!==r&&r(e,t,n)}function se(e,t){var n=e.parent?e.parent.getRootElement():void 0,i=n&&n.onInlineCardExpanded?n.onInlineCardExpanded:ge.onInlineCardExpanded;i&&i(e,t)}function ae(e,t){void 0===t&&(t=!0);var n=e.getRootElement();t&&n.updateLayout();var i=n,r=i&&i.onElementVisibilityChanged?i.onElementVisibilityChanged:ge.onElementVisibilityChanged;void 0!==r&&r(e)}t.ColumnSet=ie;var le=function(e){function t(){var t=e.call(this)||this;return t._actionCollection=new Q(t),t}return r(t,e),t.prototype.internalParse=function(t,n){e.prototype.internalParse.call(this,t,n),this._actionCollection.parse(t.actions,n)},t.prototype.internalToJSON=function(t,n){e.prototype.internalToJSON.call(this,t,n),this._actionCollection.toJSON(t,"actions",n)},t.prototype.internalRender=function(){var t=e.prototype.internalRender.call(this);if(t){var n=this._actionCollection.render(this.hostConfig.actions.actionsOrientation,!1);return n&&(l.appendChild(t,l.renderSeparation(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.hostConfig.actions.spacing)},s.Orientation.Horizontal)),l.appendChild(t,n)),this.renderIfEmpty||t.children.length>0?t:void 0}},t.prototype.getHasExpandedAction=function(){return 0!=this.renderedActionCount&&(1==this.renderedActionCount?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction)},Object.defineProperty(t.prototype,"renderedActionCount",{get:function(){return this._actionCollection.renderedActionCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderIfEmpty",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getActionCount=function(){return this._actionCollection.getActionCount()},t.prototype.getActionAt=function(t){return t>=0&&t<this.getActionCount()?this._actionCollection.getActionAt(t):e.prototype.getActionAt.call(this,t)},t.prototype.getActionById=function(t){return this._actionCollection.getActionById(t)||e.prototype.getActionById.call(this,t)},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this._actionCollection&&this._actionCollection.validateProperties(t)},t.prototype.isLastElement=function(t){return e.prototype.isLastElement.call(this,t)&&0==this._actionCollection.getActionCount()},t.prototype.addAction=function(e){this._actionCollection.addAction(e)},t.prototype.clear=function(){e.prototype.clear.call(this),this._actionCollection.clear()},t.prototype.getAllInputs=function(t){void 0===t&&(t=!0);var n=e.prototype.getAllInputs.call(this,t);return t&&(n=n.concat(this._actionCollection.getAllInputs(t))),n},t.prototype.getResourceInformation=function(){return e.prototype.getResourceInformation.call(this).concat(this._actionCollection.getResourceInformation())},t.prototype.isBleedingAtBottom=function(){return 0==this._actionCollection.renderedActionCount?e.prototype.isBleedingAtBottom.call(this):1==this._actionCollection.getActionCount()?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction},Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),t}(te);t.ContainerWithActions=le;var ce=function(e){function t(t,n){var i=e.call(this,t,n,void 0)||this;return i.targetVersion=t,i.name=n,i}return r(t,e),t.prototype.parse=function(e,t,n){var i=n.parseAction(e.parent,t[this.name],[],!1);if(void 0!==i){if(i instanceof U)return i;n.logParseEvent(e,s.ValidationEvent.ActionTypeNotAllowed,g.Strings.errors.actionTypeNotAllowed(i.getJsonTypeName()))}n.logParseEvent(e,s.ValidationEvent.PropertyCantBeNull,g.Strings.errors.propertyMustBeSet("action"))},t.prototype.toJSON=function(e,t,n,i){i.serializeValue(t,this.name,n?n.toJSON(i):void 0,void 0,!0)},t}(d.PropertyDefinition);t.RefreshActionProperty=ce;var ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),Object.defineProperty(t.prototype,"action",{get:function(){return this.getValue(t.actionProperty)},set:function(e){this.setValue(t.actionProperty,e),e&&e.setParent(this.parent)},enumerable:!1,configurable:!0}),t.prototype.getSchemaKey=function(){return"RefreshDefinition"},t.actionProperty=new ce(d.Versions.v1_4,"action"),t.userIdsProperty=new d.StringArrayProperty(d.Versions.v1_4,"userIds"),o([d.property(t.actionProperty)],t.prototype,"action",null),o([d.property(t.userIdsProperty)],t.prototype,"userIds",void 0),t}(d.SerializableObject);t.RefreshDefinition=ue;var pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getSchemaKey=function(){return"AuthCardButton"},t.typeProperty=new d.StringProperty(d.Versions.v1_4,"type"),t.titleProperty=new d.StringProperty(d.Versions.v1_4,"title"),t.imageProperty=new d.StringProperty(d.Versions.v1_4,"image"),t.valueProperty=new d.StringProperty(d.Versions.v1_4,"value"),o([d.property(t.typeProperty)],t.prototype,"type",void 0),o([d.property(t.titleProperty)],t.prototype,"title",void 0),o([d.property(t.imageProperty)],t.prototype,"image",void 0),o([d.property(t.valueProperty)],t.prototype,"value",void 0),t}(d.SerializableObject);t.AuthCardButton=pe;var de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getSchemaKey=function(){return"TokenExchangeResource"},t.idProperty=new d.StringProperty(d.Versions.v1_4,"id"),t.uriProperty=new d.StringProperty(d.Versions.v1_4,"uri"),t.providerIdProperty=new d.StringProperty(d.Versions.v1_4,"providerId"),o([d.property(t.idProperty)],t.prototype,"id",void 0),o([d.property(t.uriProperty)],t.prototype,"uri",void 0),o([d.property(t.providerIdProperty)],t.prototype,"providerId",void 0),t}(d.SerializableObject);t.TokenExchangeResource=de;var he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getSchemaKey=function(){return"Authentication"},t.textProperty=new d.StringProperty(d.Versions.v1_4,"text"),t.connectionNameProperty=new d.StringProperty(d.Versions.v1_4,"connectionName"),t.buttonsProperty=new d.SerializableObjectCollectionProperty(d.Versions.v1_4,"buttons",pe),t.tokenExchangeResourceProperty=new d.SerializableObjectProperty(d.Versions.v1_4,"tokenExchangeResource",de,!0),o([d.property(t.textProperty)],t.prototype,"text",void 0),o([d.property(t.connectionNameProperty)],t.prototype,"connectionName",void 0),o([d.property(t.buttonsProperty)],t.prototype,"buttons",void 0),o([d.property(t.tokenExchangeResourceProperty)],t.prototype,"tokenExchangeResource",void 0),t}(d.SerializableObject);t.Authentication=he;var ge=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.designMode=!1,t}return r(t,e),Object.defineProperty(t.prototype,"refresh",{get:function(){return this.getValue(t.refreshProperty)},set:function(e){this.setValue(t.refreshProperty,e),e&&(e.parent=this)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"processMarkdown",{get:function(){throw new Error(g.Strings.errors.processMarkdownEventRemoved())},set:function(e){throw new Error(g.Strings.errors.processMarkdownEventRemoved())},enumerable:!1,configurable:!0}),t.applyMarkdown=function(e){var n={didProcess:!1};if(t.onProcessMarkdown)t.onProcessMarkdown(e,n);else if(window.markdownit){var i=window.markdownit;n.outputHtml=i().render(e),n.didProcess=!0}else console.warn(g.Strings.errors.markdownProcessingNotEnabled);return n},t.prototype.isVersionSupported=function(){return!!this.bypassVersionCheck||!(!this.version||!this.version.isValid||this.maxVersion.major<this.version.major||this.maxVersion.major==this.version.major&&this.maxVersion.minor<this.version.minor)},t.prototype.getDefaultSerializationContext=function(){return new ye(this.version)},t.prototype.getItemsCollectionPropertyName=function(){return"body"},t.prototype.internalParse=function(n,i){this._fallbackCard=void 0;var r=i.parseElement(void 0,n.fallback,!this.isDesignMode());r&&(this._fallbackCard=new t,this._fallbackCard.addItem(r)),e.prototype.internalParse.call(this,n,i)},t.prototype.internalToJSON=function(n,i){this.setValue(t.versionProperty,i.targetVersion),e.prototype.internalToJSON.call(this,n,i)},t.prototype.internalRender=function(){var t=e.prototype.internalRender.call(this);return a.GlobalSettings.useAdvancedCardBottomTruncation&&t&&t.style.removeProperty("minHeight"),t},t.prototype.getHasBackground=function(){return!0},t.prototype.getDefaultPadding=function(){return new a.PaddingDefinition(s.Spacing.Padding,s.Spacing.Padding,s.Spacing.Padding,s.Spacing.Padding)},t.prototype.shouldSerialize=function(e){return!0},Object.defineProperty(t.prototype,"renderIfEmpty",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bypassVersionCheck",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCustomStyle",{get:function(){return this.hostConfig.adaptiveCard&&this.hostConfig.adaptiveCard.allowCustomStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasBackground",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getJsonTypeName=function(){return"AdaptiveCard"},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),"AdaptiveCard"!==this.getValue(m.typeNameProperty)&&t.addFailure(this,s.ValidationEvent.MissingCardType,g.Strings.errors.invalidCardType()),this.bypassVersionCheck||this.version?this.isVersionSupported()||t.addFailure(this,s.ValidationEvent.UnsupportedCardVersion,g.Strings.errors.unsupportedCardVersion(this.version.toString(),this.maxVersion.toString())):t.addFailure(this,s.ValidationEvent.PropertyCantBeNull,g.Strings.errors.propertyMustBeSet("version"))},t.prototype.render=function(t){var n;return this.shouldFallback()&&this._fallbackCard?(this._fallbackCard.hostConfig=this.hostConfig,n=this._fallbackCard.render()):(n=e.prototype.render.call(this))&&(n.classList.add(this.hostConfig.makeCssClassName("ac-adaptiveCard")),a.GlobalSettings.setTabIndexAtCardRoot&&(n.tabIndex=0),this.speak&&n.setAttribute("aria-label",this.speak)),t&&(l.appendChild(t,n),this.updateLayout()),n},t.prototype.updateLayout=function(t){if(void 0===t&&(t=!0),e.prototype.updateLayout.call(this,t),a.GlobalSettings.useAdvancedCardBottomTruncation&&this.isDisplayed()){var n=this.hostConfig.getEffectiveSpacing(s.Spacing.Default);this.handleOverflow(this.renderedElement.offsetHeight-n)}},t.prototype.shouldFallback=function(){return e.prototype.shouldFallback.call(this)||!this.isVersionSupported()},Object.defineProperty(t.prototype,"hasVisibleSeparator",{get:function(){return!1},enumerable:!1,configurable:!0}),t.schemaUrl="http://adaptivecards.io/schemas/adaptive-card.json",t.$schemaProperty=new d.CustomProperty(d.Versions.v1_0,"$schema",(function(e,n,i,r){return t.schemaUrl}),(function(e,n,i,r,o){o.serializeValue(i,n.name,t.schemaUrl)})),t.versionProperty=new d.CustomProperty(d.Versions.v1_0,"version",(function(e,t,n,i){var r=d.Version.parse(n[t.name],i);return void 0===r&&(r=d.Versions.latest,i.logParseEvent(e,s.ValidationEvent.InvalidPropertyValue,g.Strings.errors.invalidCardVersion(r.toString()))),r}),(function(e,t,n,i,r){void 0!==i&&r.serializeValue(n,t.name,i.toString())}),d.Versions.v1_0),t.fallbackTextProperty=new d.StringProperty(d.Versions.v1_0,"fallbackText"),t.speakProperty=new d.StringProperty(d.Versions.v1_0,"speak"),t.refreshProperty=new d.SerializableObjectProperty(d.Versions.v1_4,"refresh",ue,!0),t.authenticationProperty=new d.SerializableObjectProperty(d.Versions.v1_4,"authentication",he,!0),o([d.property(t.versionProperty)],t.prototype,"version",void 0),o([d.property(t.fallbackTextProperty)],t.prototype,"fallbackText",void 0),o([d.property(t.speakProperty)],t.prototype,"speak",void 0),o([d.property(t.refreshProperty)],t.prototype,"refresh",null),o([d.property(t.authenticationProperty)],t.prototype,"authentication",void 0),t}(le);t.AdaptiveCard=ge;var fe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.suppressStyle=!1,t}return r(t,e),t.prototype.getSchemaKey=function(){return"InlineAdaptiveCard"},t.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.remove(ge.$schemaProperty,ge.versionProperty)},t.prototype.getDefaultPadding=function(){return new a.PaddingDefinition(this.suppressStyle?s.Spacing.None:s.Spacing.Padding,s.Spacing.Padding,this.suppressStyle?s.Spacing.None:s.Spacing.Padding,s.Spacing.Padding)},Object.defineProperty(t.prototype,"bypassVersionCheck",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultStyle",{get:function(){return this.suppressStyle?s.ContainerStyle.Default:this.hostConfig.actions.showCard.style?this.hostConfig.actions.showCard.style:s.ContainerStyle.Emphasis},enumerable:!1,configurable:!0}),t.prototype.render=function(t){var n=e.prototype.render.call(this,t);return n&&(n.setAttribute("aria-live","polite"),n.removeAttribute("tabindex")),n},t}(ge),me=function(){function e(){}return e.populateWithDefaultElements=function(e){e.clear(),e.register("Container",te),e.register("TextBlock",C),e.register("RichTextBlock",A,d.Versions.v1_2),e.register("TextRun",b,d.Versions.v1_2),e.register("Image",E),e.register("ImageSet",_),e.register("Media",k,d.Versions.v1_1),e.register("FactSet",S),e.register("ColumnSet",ie),e.register("ActionSet",X,d.Versions.v1_2),e.register("Input.Text",M),e.register("Input.Date",V),e.register("Input.Time",N),e.register("Input.Number",R),e.register("Input.ChoiceSet",F),e.register("Input.Toggle",O)},e.populateWithDefaultActions=function(e){e.clear(),e.register(J.JsonTypeName,J),e.register(j.JsonTypeName,j),e.register(Y.JsonTypeName,Y),e.register(q.JsonTypeName,q,d.Versions.v1_2),e.register(U.JsonTypeName,U,d.Versions.v1_4)},e.reset=function(){e.populateWithDefaultElements(e.elements),e.populateWithDefaultActions(e.actions)},e.elements=new h.CardObjectRegistry,e.actions=new h.CardObjectRegistry,e}();t.GlobalRegistry=me,me.reset();var ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.internalParseCardObject=function(e,t,n,i,r,o){var s=void 0;if(t&&"object"==typeof t){var c=l.parseString(t.type);if(c)if(n.indexOf(c)>=0)o(c,1);else{var u=!1;if((s=r(c))?(s.setParent(e),s.parse(t,this),u=a.GlobalSettings.enableFallback&&i&&s.shouldFallback()):(u=a.GlobalSettings.enableFallback&&i,o(c,0)),u){var p=t.fallback;!p&&e&&e.setShouldFallback(!0),"string"==typeof p&&"drop"===p.toLowerCase()?s=void 0:"object"==typeof p&&(s=this.internalParseCardObject(e,p,n,!0,r,o))}}}return s},t.prototype.cardObjectParsed=function(e,t){e instanceof L&&this.onParseAction?this.onParseAction(e,t,this):e instanceof m&&this.onParseElement&&this.onParseElement(e,t,this)},t.prototype.shouldSerialize=function(e){return e instanceof L?void 0!==this.actionRegistry.findByName(e.getJsonTypeName()):!(e instanceof m)||void 0!==this.elementRegistry.findByName(e.getJsonTypeName())},t.prototype.parseCardObject=function(e,t,n,i,r,o){var s=this.internalParseCardObject(e,t,n,i,r,o);return void 0!==s&&this.cardObjectParsed(s,t),s},t.prototype.parseElement=function(e,t,n){var i=this;return this.parseCardObject(e,t,[],n,(function(e){return i.elementRegistry.createInstance(e,i.targetVersion)}),(function(e,t){0===t?i.logParseEvent(void 0,s.ValidationEvent.UnknownElementType,g.Strings.errors.unknownElementType(e)):i.logParseEvent(void 0,s.ValidationEvent.ElementTypeNotAllowed,g.Strings.errors.elementTypeNotAllowed(e))}))},t.prototype.parseAction=function(e,t,n,i){var r=this;return this.parseCardObject(e,t,n,i,(function(e){return r.actionRegistry.createInstance(e,r.targetVersion)}),(function(e,t){0==t?r.logParseEvent(void 0,s.ValidationEvent.UnknownActionType,g.Strings.errors.unknownActionType(e)):r.logParseEvent(void 0,s.ValidationEvent.ActionTypeNotAllowed,g.Strings.errors.actionTypeNotAllowed(e))}))},Object.defineProperty(t.prototype,"elementRegistry",{get:function(){return this._elementRegistry?this._elementRegistry:me.elements},enumerable:!1,configurable:!0}),t.prototype.setElementRegistry=function(e){this._elementRegistry=e},Object.defineProperty(t.prototype,"actionRegistry",{get:function(){return this._actionRegistry?this._actionRegistry:me.actions},enumerable:!1,configurable:!0}),t.prototype.setActionRegistry=function(e){this._actionRegistry=e},t}(d.BaseSerializationContext);t.SerializationContext=ye},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.LoginRequestResponse=t.ErrorResponse=t.SuccessResponse=t.ActivityResponse=t.ActivityRequestError=t.ActivityRequestTrigger=void 0,function(e){e.Automatic="automatic",e.Manual="manual"}(t.ActivityRequestTrigger||(t.ActivityRequestTrigger={})),t.ActivityRequestError=function(e,t){this.code=e,this.message=t};var o=function(e){this.request=e};t.ActivityResponse=o;var s=function(e){function t(t,n){var i=e.call(this,t)||this;return i.request=t,i.rawContent=n,i}return r(t,e),t}(o);t.SuccessResponse=s;var a=function(e){function t(t,n){var i=e.call(this,t)||this;return i.request=t,i.error=n,i}return r(t,e),t}(o);t.ErrorResponse=a;var l=function(e){function t(t,n){var i=e.call(this,t)||this;i.request=t,i._auth=n;for(var r=0,o=i._auth.buttons;r<o.length;r++){var s=o[r];if("signin"===s.type&&void 0!==s.value)try{new URL(s.value),i.signinButton=s;break}catch(e){}}return i}return r(t,e),Object.defineProperty(t.prototype,"tokenExchangeResource",{get:function(){return this._auth.tokenExchangeResource},enumerable:!1,configurable:!0}),t}(o);t.LoginRequestResponse=l},function(e,t,n){"use strict";e.exports=n(58)},function(e,t,n){"use strict";e.exports=n(59)},function(e,t,n){"use strict";e.exports.encode=n(60),e.exports.decode=n(61),e.exports.format=n(62),e.exports.parse=n(63)},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t,n){"use strict";var i="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",o=new RegExp("^(?:"+i+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),s=new RegExp("^(?:"+i+"|"+r+")");e.exports.HTML_TAG_RE=o,e.exports.HTML_OPEN_CLOSE_TAG_RE=s},function(e,t,n){"use strict";e.exports.tokenize=function(e,t){var n,i,r,o,s=e.pos,a=e.src.charCodeAt(s);if(t)return!1;if(126!==a)return!1;if(r=(i=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(a),r<2)return!1;for(r%2&&(e.push("text","",0).content=o,r--),n=0;n<r;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:a,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},e.exports.postProcess=function(e){var t,n,i,r,o,s=[],a=e.delimiters,l=e.delimiters.length;for(t=0;t<l;t++)126===(i=a[t]).marker&&-1!==i.end&&(r=a[i.end],(o=e.tokens[i.token]).type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",(o=e.tokens[r.token]).type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="","text"===e.tokens[r.token-1].type&&"~"===e.tokens[r.token-1].content&&s.push(r.token-1));for(;s.length;){for(n=(t=s.pop())+1;n<e.tokens.length&&"s_close"===e.tokens[n].type;)n++;t!==--n&&(o=e.tokens[n],e.tokens[n]=e.tokens[t],e.tokens[t]=o)}}},function(e,t,n){"use strict";e.exports.tokenize=function(e,t){var n,i,r=e.pos,o=e.src.charCodeAt(r);if(t)return!1;if(95!==o&&42!==o)return!1;for(i=e.scanDelims(e.pos,42===o),n=0;n<i.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:i.length,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},e.exports.postProcess=function(e){var t,n,i,r,o,s,a=e.delimiters;for(t=e.delimiters.length-1;t>=0;t--)95!==(n=a[t]).marker&&42!==n.marker||-1!==n.end&&(i=a[n.end],s=t>0&&a[t-1].end===n.end+1&&a[t-1].token===n.token-1&&a[n.end+1].token===i.token+1&&a[t-1].marker===n.marker,o=String.fromCharCode(n.marker),(r=e.tokens[n.token]).type=s?"strong_open":"em_open",r.tag=s?"strong":"em",r.nesting=1,r.markup=s?o+o:o,r.content="",(r=e.tokens[i.token]).type=s?"strong_close":"em_close",r.tag=s?"strong":"em",r.nesting=-1,r.markup=s?o+o:o,r.content="",s&&(e.tokens[a[t-1].token].content="",e.tokens[a[n.end+1].token].content="",t--))}},function(e,t,n){"use strict";n.r(t);var i,r=n(11),o=n.n(r),s=n(17),a=n.n(s),l=0,c={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=a.a.locals||{},u.use=function(){return l++||(i=o()(a.a,c)),u},u.unuse=function(){l>0&&! --l&&(i(),i=null)},t.default=u},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,i=e[1]||"",r=e[3];if(!r)return i;if(t&&"function"==typeof btoa){var o=(n=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),s=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[i].concat(s).concat([o]).join("\n")}return[i].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];null!=o&&(i[o]=!0)}for(r=0;r<e.length;r++){var s=e[r];null!=s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){"use strict";e.exports=function(e,t){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)||t?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t,n){"use strict";n.r(t);var i,r=n(11),o=n.n(r),s=n(18),a=n.n(s),l=0,c={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=a.a.locals||{},u.use=function(){return l++||(i=o()(a.a,c)),u},u.unuse=function(){l>0&&! --l&&(i(),i=null)},t.default=u},function(e,t,n){class i{}i.Constants={ActionCardAction:"actioncard",ActionId:"actionId",Actions:{SwiftCardFailureStatusMessage:"Action could not be completed.",SuccessStatusMessage:"The action completed successfully.",FailureStatusMessage:"Something went wrong. Please try again later.",IsActionInShowCard:"isActionInShowCard"},ActionsProperty:"actions",ActivityImageProperty:"activityImage",ActivityImageStyleProperty:"activityImageStyle",ActivityImageTypeProperty:"activityImageType",ActivitySubtitleProperty:"activitySubtitle",ActivityTextProperty:"activityText",ActivityTitleProperty:"activityTitle",AdaptiveCard:"adaptiveCard",AdaptiveCardSerializedProperty:"AdaptiveCardSerialized",AdaptiveCardSignatureProperty:"AdaptiveCardSignature",AddInId:"addInId",AmContentId:"actionable-message",AmContentIdAndroid:"androidContainer",AmWrapperId:"amContentWrapper",AndroidClient:"android",AuthenticationUrl:"authenticationUrl",AutoInvokeAction:"autoInvokeAction",AutoInvokeOptions:"autoInvokeOptions",BackgroundColor:"backgroundColor",BackgroundImage:"backgroundImage",BodyContentTypeProperty:"bodyContentType",BodyProperty:"body",Bottom:"bottom",ChoiceSetInput:"ChoiceSetInput",ChoicesProperty:"choices",ClientTelemetry:"clientTelemetry",ClientType:"clientType",ClientVersion:"clientVersion",ConstrainWidth:"constrainWidth",CompactProperty:"compact",ConnectedAccountNotErrorString:"ConnectedAccountNotFoundError",ConnectorLoginLinkId:"ConnectorLoginActionId",ConnectorMessage:"connectorMessage",ConnectorSenderGuidDefaultValue:"00000000-0000-0000-0000-000000000000",ConnectorSenderGuidProperty:"ConnectorSenderGuid",connectorSenderGuidProperty:"connectorSenderGuid",ConsentPromptDisplayed:"ConsentPromptDisplayed",ConversationId:"conversationId",Culture:"culture",CustomHostConfigStyle:"customHostConfigStyle",DataProperty:"data",DateInput:"dateinput",DefaultStyle:"default",DesktopCommandId:"desktopCommandId",DisplayAppointmentFormAction:"action.displayappointmentform",DisplayId:"displayId",DisplayMessageFormAction:"action.displaymessageform",DisplayMessageProperty:"displayMessage",DisplayProperty:"display",ElementId:"elementId",ErrorCode:"errorCode",ErrorProperty:"error",Errors:"errors",EnableBodyTogglingProperty:"enableBodyToggling",Expanded:"expanded",EventName:"eventName",FactSet:"FactSet",FactsProperty:"facts",GroupMailbox:"Group",HasSucceeded:"hasSucceeded",HeadersProperty:"headers",HeroImageProperty:"heroImage",HideCardOnInvokeProperty:"hideCardOnInvoke",HideCardProperty:"hideCard",HideOriginalBodyProperty:"hideOriginalBody",Href:"href",HttpAction:"HttpAction",HttpForbiddenCode:"403",HttpPostAction:"httppost",HttpStatusCodeProperty:"httpStatusCode",HttpUnauthorizedCode:"401",IdProperty:"@id",IncludeTimeProperty:"includeTime",InitializationContext:"initializationContext",ImageProperty:"image",ImageSet:"ImageSet",ImagesProperty:"images",IncludeTimeProperty:"includeTime",InnerErrorCodeProperty:"innerErrorCode",InputIdProperty:"id",InputsProperty:"inputs",InvokeAddinCommandAction:"invokeaddincommand",InvokeAuthFlow:"invokeAuthFlow",IOsClient:"iOS",IsAdaptiveCardAction:"isAdaptiveCardAction",IsAutoInvokeAction:"isAutoInvokeAction",IsGroupEscalationMessage:"isGroupEscalationMessage",IsVisible:"isVisible",IsMoreAction:"isMoreAction",IsEnabledProperty:"isEnabled",IsEphemeralRefreshCardProperty:"isEphemeralRefreshCard",IsMultiSelectProperty:"isMultiSelect",IsMultilineProperty:"isMultiline",IsPrimaryAction:"isPrimary",IsRetryFlow:"isRetryFlow",IsRequiredProperty:"isRequired",IsShowCardExpanded:"isShowCardExpanded",IsHttpPostActionAvailableProperty:"isHttpPostActionAvailable",ItemId:"itemId",Left:"left",MacClient:"mac",MailboxType:"mailboxType",MarkdownProperty:"markdown",MaxLengthProperty:"maxLength",MerchantId:"merchantId",MessageCardSerializedProperty:"MessageCardSerialized",MessageCardContextProperty:"messageCardContext",MessageCardExtensionContextProperty:"MessageCardExtensionContext",messageCardExtensionContextProperty:"messageCardExtensionContext",MessageCardHidden:"MessageCardHidden",MessageCardRemoved:"MessageCardRemoved",MessageCardRendered:"MessageCardRendered",MessageId:"messageId",MessageProperty:"message",MessageType:"messageType",MoreAction:"MoreAction",MultiChoiceInput:"multichoiceinput",NameProperty:"name",HeightProperty:"height",OpenUriAction:"openuri",OriginatorProperty:"originator",Padding:"padding",PerformedAtProperty:"performedAt",PerformedActionsProperty:"performedActions",PerformedActionsSerializedProperty:"PerformedActionsSerialized",PixelWidth:"pixelWidth",PlaceHolderProperty:"placeholder",PostId:"postId",PotentialActionProperty:"potentialAction",ProductContext:"productContext",ProviderAccountUniqueId:"ProviderAccountUniqueId",providerAccountUniqueId:"providerAccountUniqueId",RefreshCardSerializedProperty:"refreshCardSerialized",RefreshCardSignatureProperty:"refreshCardSignature",CardUpdatesProperty:"cardUpdates",ReplaceElementAction:"ReplaceElement",RemoveElementAction:"RemoveElement",Response:"response",Resources:"resources",ResponseSerialized:"responseSerialized",RemoveCardProperty:"removeCard",Right:"right",SectionsProperty:"sections",Separator:"separator",ShowCardOnFailure:"showCardOnFailure",ShowOriginalCardProperty:"showOriginalCard",SizeProperty:"size",SmtpAddressesSerializedProperty:"SmtpAddressesSerialized",SmtpAddress:{SenderProperty:"Sender"},SourceProperty:"source",StartGroupProperty:"startGroup",StatusProperty:"status",StyleProperty:"style",SummaryProperty:"summary",TargetDomId:"targetDom",TargetElements:"targetElements",TargetProperty:"target",TargetsProperty:"targets",TextInput:"textinput",TextProperty:"text",ThemeColorProperty:"themeColor",ThreadId:"threadId",TimeZone:"timeZone",TitleProperty:"title",ToggleVisibilityClicked:"ToggleVisibilityActionClick",Top:"top",TypeProperty:"@type",UiCulture:"uiCulture",Url:"url",UserMailbox:"User",UserPerformedActionsProperty:"userPerformedActions",ValueProperty:"value",ViewAction:"viewaction",WinClient:"windows",RTL:"rtl",InitialCardProcessing:"InitialCardProcessing",FinalCardProcessing:"FinalCardProcessing",InitialCardRendering:"InitialCardRendering",FinalCardRendering:"FinalCardRendering",ShowCardCloseButtonAriaLabel:"Click here to close the {title} dialog",InputParameters:"InputParameters",DialogParameters:"DialogParameters",SupportedCardUpdateElementTypes:["ActionSet","ChoiceSetInput","Column","ColumnSet","Container","Input.Date","FactSet","Image","ImageSet","Input.Number","TextBlock","Input.Text","Input.Time","Input.Toggle"],OpenInBrowser:" Opens in a browser window",DateInputConstants:{SelectedDate:"selectedDate",SelectedDateWithTimeZone:"selectedDateWithTimeZone"}},i.getImageProxyUrl=function(e,t,n,i,r){if(t&&i&&e&&0!==e.toLowerCase().indexOf(n)&&0!==e.toLowerCase().indexOf(i)&&(0===e.toLowerCase().indexOf("http://")||0===e.toLowerCase().indexOf("https://"))){let t=i+escape(e);return null!=r&&(t+=`&${this.Constants.OriginatorProperty}=${r}`),t}return e},i.getAttachmentImageProxyUrl=function(e,t,n,i){return t&&e&&0===e.toLowerCase().indexOf(n)?i+escape(e):e},i.format=function(e,...t){if(e){var n=t,i=/[{}]/g;return e.replace(/\{\d+\}/g,(function(e){let t=n[e.replace(i,"")];return null==t&&(t=""),t}))}},i.htmlDecode=function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},i.formatDate=function(e){if(!e)return null;var t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],n=new Date(e),r=n.getFullYear(),o=(e=n.getDate(),["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][n.getDay()]);return t=t[n.getMonth()],i.format("{0}, {1} {2}, {3}",o,t,e,r)},i.replaceAll=function(e,t,n){return e.replace(new RegExp(t,"g"),n)},i.applyCSS=function(e){var t=document.head,n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.charset="UTF-8",n.id=this.Constants.CustomHostConfigStyle,n.href=e,t.appendChild(n)},i.assert=function(e,t){if(!e){if(t=t||"Assertion failed","undefined"!=typeof Error)throw new Error(t);throw t}},i.stringIsNullOrEmpty=function(e){return!e},i.isJsonString=function(e){try{JSON.parse(e)}catch(e){return!1}return!0},i.lookupElementWithId=function(e,t,n){return n&&t?document.querySelector(t).querySelector(`[id='${e}']`):document.getElementById(e)},t.Utils=i},function(e,t,n){"use strict";n.r(t),n.d(t,"OpenLaunchPageHostContext",(function(){return u})),n.d(t,"OpenLaunchPageAppContext",(function(){return c})),n.d(t,"MetaOSHubAdapter",(function(){return r})),n.d(t,"OpenLaunchPageAction",(function(){return p})),n.d(t,"initializeOpenLaunchPageAction",(function(){return d}));var i=n(0),r=function(){function e(){}return e.prototype.mapPropsToMetaOSDeepLinkProps=function(e){var t=e.appId,n=e.fallbackUrl,i=e.hostContext,r=e.appContext;return{appId:t,entityId:null==i?void 0:i.tabId,subEntityId:null==r?void 0:r.itemId,subEntityWebUrl:n}},e}(),o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function a(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}Object.create,Object.create;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.tryOpenMetaOSApp=function(e){try{var t=new URL(e.fallbackUrl);"http:"!==t.protocol.toLowerCase()&&"https:"!==t.protocol.toLowerCase()||window.open(t.href,"_blank")}catch(e){throw e}},t}(r),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.getSchemaKey=function(){return"OpenLaunchPageAppContext"},t.itemIdProperty=new i.StringProperty(i.Versions.v1_4,"itemId"),a([Object(i.property)(t.itemIdProperty)],t.prototype,"itemId",void 0),t}(i.SerializableObject),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.getSchemaKey=function(){return"OpenLaunchPageHostContext"},t.hostIdProperty=new i.StringProperty(i.Versions.v1_4,"hostId"),t.tabIdProperty=new i.StringProperty(i.Versions.v1_4,"tabId"),t.channelIdProperty=new i.StringProperty(i.Versions.v1_4,"channelId"),a([Object(i.property)(t.hostIdProperty)],t.prototype,"hostId",void 0),a([Object(i.property)(t.tabIdProperty)],t.prototype,"tabId",void 0),a([Object(i.property)(t.channelIdProperty)],t.prototype,"channelId",void 0),t}(i.SerializableObject),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.getJsonTypeName=function(){return t.jsonTypeName},t.prototype.execute=function(){t.metaOSHubAdapter.tryOpenMetaOSApp(this)},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.fallbackUrl||t.addFailure(this,i.ValidationEvent.PropertyCantBeNull,i.Strings.errors.propertyMustBeSet("fallbackUrl")),this.appId||t.addFailure(this,i.ValidationEvent.PropertyCantBeNull,i.Strings.errors.propertyMustBeSet("appId"))},t.jsonTypeName="Action.OpenLaunchPage",t.appIdProperty=new i.StringProperty(i.Versions.v1_4,"appId"),t.fallbackUrlProperty=new i.StringProperty(i.Versions.v1_4,"fallbackUrl"),t.appContextProperty=new i.SerializableObjectProperty(i.Versions.v1_4,"appContext",c,!0),t.hostContextProperty=new i.SerializableObjectProperty(i.Versions.v1_4,"hostContext",u,!0),t.metaOSHubAdapter=new l,a([Object(i.property)(t.appIdProperty)],t.prototype,"appId",void 0),a([Object(i.property)(t.fallbackUrlProperty)],t.prototype,"fallbackUrl",void 0),a([Object(i.property)(t.appContextProperty)],t.prototype,"appContext",void 0),a([Object(i.property)(t.hostContextProperty)],t.prototype,"hostContext",void 0),t}(i.Action),d=function(e,t){void 0===t&&(t=i.Versions.v1_4),i.GlobalRegistry.actions.register(p.jsonTypeName,p,t),void 0!==e&&e instanceof r&&(p.metaOSHubAdapter=e)}},function(e,t,n){class i{constructor(e,t={}){this.cardRenderInstance=i.createCardRendererInstance(e,t)}getCardRendererInstance(){return this.cardRenderInstance}static renderCard(e,t={},n){let r=i.createCardRendererInstance(e,t);r.renderCard(n),i.cacheCardRendererInstance(e,r)}static renderPrefetchedAutoInvokeCard(e,t={},n,r){let o=i.createCardRendererInstance(e,t);o.renderPrefetchedAutoInvokeCard(n,r),i.cacheCardRendererInstance(e,o)}static createCardRendererInstance(e,t={}){let i;return t=this.getContextByParsingIfNecessary(t),i=this.isAcV2Card(t)?new(0,n(40).CardRender)(e,t):new(0,n(152).CardRender)(e,t),i}static cacheCardRendererInstance(e,t){i.cachedCardRenderers||(i.cachedCardRenderers=new Map),i.cachedCardRenderers.set(e,t)}static getCachedCardRenderer(e){return i.cachedCardRenderers.get(e)}static saveAllInstanceStates(e,t,n,r=null){i.cachedCardRenderers&&0!==i.cachedCardRenderers.length&&i.cachedCardRenderers.forEach(((i,o)=>{o===t?i.saveInstanceState(e,n,r):i.saveInstanceState(e,!1,null)}))}static hideCardStatusMessage(){i.cachedCardRenderers&&0!==i.cachedCardRenderers.length&&i.cachedCardRenderers.forEach((e=>{e.hideCardStatusMessage()}))}static isAcV2Card(e){if(!e||!e.version)return!1;try{let t=e.version.split("."),n=parseInt(t[0]),i=0;return t.length>1&&(i=parseInt(t[1])),n>1||1===n&&i>=4}catch(e){return!1}}static getContextByParsingIfNecessary(e){if(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){console.log(t),e={}}}else e={};return e}}t.CardWrapper=i},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CardRender=void 0;var r=n(0),o=n(2),s=n(9),a=i(n(49)),l=i(n(51)),c=i(n(52)),u=n(54),p=n(7),d=i(n(116)),h=i(n(117)),g=function(){function e(e,t){var i=this;this.imagesCount=0,this.actionProgressInvisibleOverlay=null,this.perActionProgressOverlay=null,this.addExecuteActionProgressOverlay=function(e,t){var n=t.trigger===r.ActivityRequestTrigger.Automatic,o=document.createElement("div");o.className="aaf-invisible-overlay",i.actionProgressInvisibleOverlay=o,e.renderedElement.prepend(o);var s=i.getActionElement(e,t.action);s.style.position="relative";var a=document.createElement("div");a.className="aaf-per-action-progress-overlay".concat(n?" refresh":"");var l=document.createElement("div");if(l.className="aaf-spinner",a.appendChild(l),i.perActionProgressOverlay=a,s.prepend(a),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-label","loading"),s.setAttribute("aria-relevant","additions"),n){var c=6e3;i.context&&i.context.spinnerTimeout&&"number"==typeof i.context.spinnerTimeout&&(c=i.context.spinnerTimeout),i.refreshActionTimeoutTimer=setTimeout((function(){i.refreshActionTimedOut()}),c)}},this.removeExecuteActionProgressOverlay=function(e,t){var n=i.getActionElement(e,t.action);i.actionProgressInvisibleOverlay&&(e.renderedElement.removeChild(i.actionProgressInvisibleOverlay),i.actionProgressInvisibleOverlay=null),i.perActionProgressOverlay&&(n.removeChild(i.perActionProgressOverlay),i.perActionProgressOverlay=null,n.removeAttribute("aria-label")),n.style.position=null},this.onAnchorClicked=function(e,t){var n=t.href||"";return!!(i.clientManagerInstance instanceof p.WindowsBaseClientManager&&i.clientManagerInstance.supportCustomHyperlinkHandling&&n)&&(i.clientManagerInstance.HandleHyperlinkClickEvent(n),!0)},this.onImageLoaded=function(e){i.imagesCount&&(i.imagesCount--,0===i.imagesCount&&i.clientManagerInstance.notifyHeightChange())},this.onInlineCardExpanded=function(e,t){i.notifyHeightChangeForWindows(),i.clientManagerInstance.executeShowCardAction(e,t)},this.onParseElement=function(e,t,n){var o=i.clientManagerInstance.getImageProxyUrl();e instanceof r.Image?e.url=(0,s.getImageProxyUrl)(e.url,i.clientManagerInstance.supportImageProxy,i.clientManagerInstance.imageAttachmentBaseUrl,o,i.cardDetails.originator):e instanceof r.Media?e.poster=(0,s.getImageProxyUrl)(e.poster,i.clientManagerInstance.supportImageProxy,i.clientManagerInstance.imageAttachmentBaseUrl,o,i.cardDetails.originator):(e instanceof r.AdaptiveCard||e instanceof r.Container||e instanceof r.Column)&&e.backgroundImage instanceof r.BackgroundImage&&(e.backgroundImage.url=(0,s.getImageProxyUrl)(e.backgroundImage.url,i.clientManagerInstance.supportImageProxy,i.clientManagerInstance.imageAttachmentBaseUrl,o,i.cardDetails.originator))},this.onParseAction=function(e,t){e.potentialAction=e.getJsonTypeName()===o.MoreActionType?t.actions:t,e.iconUrl&&(e.iconUrl=(0,s.getImageProxyUrl)(e.iconUrl,i.clientManagerInstance.supportImageProxy,i.clientManagerInstance.imageAttachmentBaseUrl,i.clientManagerInstance.getImageProxyUrl()))},this.createSerializationContext=function(e){d.default.clientManager=i.clientManagerInstance;var t=new d.default;return t.onParseElement=i.onParseElement,t.onParseAction=i.onParseAction,t},this.onCardChanged=function(e){i.clientManagerInstance.notifyHeightChange(),i.adaptiveApplet.card.onAnchorClicked=i.onAnchorClicked},this.handleExecuteAction=function(e,t,n){var s={potentialAction:{type:o.ExecuteActionType,body:t,id:e.action.id},isAutoInvokeAction:e.trigger===r.ActivityRequestTrigger.Automatic};i.clientManagerInstance.executeAction(s,void 0)},this.executeActionCompletionHandler=function(e,t){try{t?console.log(t):e.getActivityResponse().success&&i.cardDetails.updateWithActionResponse(e)}catch(t){console.log("Error while updating card-details with action-response. ".concat(t)),i.clientManagerInstance.logException(t)}},this.activityRequestFailed=function(e,t){var n,s;return s="string"==typeof(null===(n=t.error)||void 0===n?void 0:n.message)?t.error.message:o.FailureStatusMessage,t.request.trigger===r.ActivityRequestTrigger.Automatic?i.clientManagerInstance.logFinalCardRenderingEnd():i.clientManagerInstance.displaySnackMessage(s,!1),-1},this.activityRequestSucceeded=function(e,t,n){var s,a=t.request.trigger===r.ActivityRequestTrigger.Automatic;s="string"==typeof n?n:o.SuccessStatusMessage,a?i.clientManagerInstance.logFinalCardRenderingEnd():i.clientManagerInstance.displaySnackMessage(s,!0)};try{this.logTimeStamp("constructor-start");var a=n(119).default;this.clientManagerInstance=new a(t,e),this.context=t,this.targetDom=e,this.clientManagerInstance instanceof p.AndroidBaseClientManager&&this.clientManagerInstance.logInitialCardProcessingStart(),(0,u.initialize)(this.clientManagerInstance),t.isDarkMode?(this.messageCardDarkStyles=n(33),this.messageCardDarkStyles.default&&this.messageCardDarkStyles.default.use()):(this.messageCardStyles=n(36),this.messageCardStyles.default&&this.messageCardStyles.default.use()),this.logTimeStamp("constructor-end")}catch(e){if(console.log(e.message),console.log(e.stack),null==this.clientManagerInstance)throw e;this.setCardVisible(!1),this.clientManagerInstance.logException(e)}}return e.prototype.renderCard=function(e){this.clientManagerInstance.logMessage("renderCard method called"),this.clientManagerInstance.supportSavingState&&this.context&&this.tryRestoreInstanceState(this.context.messageId,this.context.isShowCardJson);try{var t;if(this.logTimeStamp("renderCard-start"),this.cardDetails=new a.default(e,this.clientManagerInstance),console.log(JSON.stringify(this.cardDetails.extendedPropertyJson)),this.context.isShowCardJson&&null!=(t=document.querySelector(this.targetDom))&&t.classList.add("ac-showCard"),!this.context.isShowCardJson){var n=this.getClientTelemetryObject();this.clientManagerInstance.storeClientTelemetryProperties(n)}this.generateAdaptiveCardInstance(),this.logTimeStamp("renderCard-end")}catch(e){console.log(e.message),console.log(e.stack),this.clientManagerInstance.logException(e),this.setCardVisible(!1)}},e.prototype.notifyHeightChangeForWindows=function(){this.clientManagerInstance.notifyHeightChange()},e.prototype.getActionElement=function(e,t){var n,i=e.renderedElement;return t.renderedElement?i=t.renderedElement:(null===(n=t.parent)||void 0===n?void 0:n.renderedElement)&&(i=t.parent.renderedElement),i},e.prototype.generateAdaptiveCardInstance=function(){this.adaptiveApplet=new r.AdaptiveApplet,this.adaptiveApplet.channelAdapter=new c.default(this.cardDetails,this.context,this.handleExecuteAction,this.executeActionCompletionHandler),this.adaptiveApplet.onCreateSerializationContext=this.createSerializationContext,this.adaptiveApplet.onActivityRequestFailed=this.activityRequestFailed,this.adaptiveApplet.onActivityRequestSucceeded=this.activityRequestSucceeded,this.adaptiveApplet.onCreateProgressOverlay=this.addExecuteActionProgressOverlay,this.adaptiveApplet.onRemoveProgressOverlay=this.removeExecuteActionProgressOverlay,this.adaptiveApplet.onShowSigninPrompt=(0,h.default)(this.clientManagerInstance),this.adaptiveApplet.hostConfig=new r.HostConfig(this.clientManagerInstance.getACHostConfigs(this.context)[0]),this.setupHostCapabilities(),this.adaptiveApplet.setCard(this.cardDetails.adaptiveCardJson),this.adaptiveApplet.card.onInlineCardExpanded=this.onInlineCardExpanded,this.adaptiveApplet.card.onImageLoaded=this.onImageLoaded,this.adaptiveApplet.card.onAnchorClicked=this.onAnchorClicked,this.adaptiveApplet.onCardChanged=this.onCardChanged;var e=this.adaptiveApplet.renderedElement;this.processRenderedCard(e),this.clientManagerInstance.logInitialCardProcessingEnd(),this.renderAsHtml(e,this.targetDom),this.clientManagerInstance.logInitialCardRenderingEnd(),this.adaptiveApplet.card.refresh||this.clientManagerInstance.logFinalCardRenderingEnd()},e.prototype.setupHostCapabilities=function(){try{this.adaptiveApplet.hostConfig.hostCapabilities.parse(this.clientManagerInstance.getHostCapabilities(),null)}catch(e){console.log(e.message),this.clientManagerInstance.logException(e)}},e.prototype.renderAsHtml=function(e,t){var n=document.querySelector(t);(0,s.assert)(n,"Target DOM is missing in document DOM"),n&&e?(n.innerHTML="",n.appendChild(e),this.clientManagerInstance.logMessage("Adaptive card is added as child to the parent dom"),this.setCardVisible(!0)):this.setCardVisible(!1),this.addTooltipForAccessibility(),this.clientManagerInstance.postRender()},e.prototype.processRenderedCard=function(e){var t=e.querySelectorAll("h1, h2, h3, h4, h5, h6");Array.prototype.forEach.call(t,(function(e){e.style.lineHeight="1.33"}))},e.prototype.processAdaptiveCardActionResponse=function(e,t){try{var n=new l.default(e,this.clientManagerInstance);if(n.isAutoInvokeAction&&null==this.refreshActionTimeoutTimer)return;if(n.messageId&&Object.prototype.hasOwnProperty.call(this.context,o.MessageIdProperty)&&n.messageId!==this.context[o.MessageIdProperty])return;if(n.isActionInShowCard)this.processShowCardActionExecuteResponse(n,t);else{var i=this.adaptiveApplet.channelAdapter,r=t?new Error(t):void 0;i.httpActionExecuted(n,r),n.isAutoInvokeAction&&this.clientManagerInstance.logFinalCardProcessingEnd()}n.refreshCardSerialized&&this.clientManagerInstance.notifyRefreshCardResponse(JSON.stringify(n.actionResponseJson))}catch(e){console.log(e.message),console.log(e.stack),this.clientManagerInstance.logException(e),this.clientManagerInstance.logFinalCardProcessingEnd(),this.clientManagerInstance.logFinalCardRenderingEnd()}this.clearRefreshActionTimer()},e.prototype.processShowCardActionExecuteResponse=function(e,t){try{var n=e.getActivityResponse();if(n.success){try{n.content=JSON.parse(n.content)}catch(e){}if("string"==typeof n.content)this.clientManagerInstance.logMessage("Show card activity request returned a string."),this.clientManagerInstance.displaySnackMessage(n.content,!0);else if("object"==typeof n.content)if("AdaptiveCard"===n.content.type){this.cardDetails.updateWithActionResponse(e),this.adaptiveApplet.setCard(this.cardDetails.adaptiveCardJson);var i=this.adaptiveApplet.renderedElement;this.renderAsHtml(i,this.targetDom);var r=o.SuccessStatusMessage;this.clientManagerInstance.displaySnackMessage(r,!0)}else r=o.FailureStatusMessage,this.clientManagerInstance.displaySnackMessage(r,!1)}else"string"==typeof n.content?this.clientManagerInstance.displaySnackMessage(n.content,!1):(r=null!=t?t:o.FailureStatusMessage,this.clientManagerInstance.displaySnackMessage(r,!1))}catch(e){console.log(e.message),console.log(e.stack),this.clientManagerInstance.logException(e)}},e.prototype.logTimeStamp=function(e){var t=performance.now();null!=this.clientManagerInstance&&this.clientManagerInstance.logTimeStamp(e,t)},e.prototype.setCardVisible=function(e){!1===e?this.clientManagerInstance.setComponentVisibility(!1,!1,!0,!1):this.clientManagerInstance.setComponentVisibility(!0,!1,!this.cardDetails.hideOriginalBody,!0)},e.prototype.getClientTelemetryObject=function(){return{connectorSenderGuid:this.cardDetails.connectorSenderGuid,messageCardContext:this.cardDetails.messageCardContext,messageCardExtensionContext:this.cardDetails.messageCardExtensionContext,messageType:o.AdaptiveCardV2MessageType,originator:this.cardDetails.originator}},e.prototype.resetWebview=function(){this.clientManagerInstance instanceof p.WindowsBaseClientManager&&(this.messageCardDarkStyles&&this.messageCardDarkStyles.default.unuse(),this.messageCardStyles&&this.messageCardStyles.default.unuse(),this.clientManagerInstance.resetWebview())},e.prototype.refreshActionTimedOut=function(){this.processAdaptiveCardActionResponse({isAutoInvokeAction:!0,isActionInShowCard:!1,hasSucceeded:!1,responseSerialized:""},"Refresh request is timed out.")},e.prototype.clearRefreshActionTimer=function(){this.refreshActionTimeoutTimer&&(clearTimeout(this.refreshActionTimeoutTimer),this.refreshActionTimeoutTimer=void 0)},e.prototype.saveInstanceState=function(e,t,n){if(void 0===n&&(n=null),this.clientManagerInstance.supportSavingState)try{var i={},r=this.adaptiveApplet.card.getAllInputs();for(var s in r){var a=r[s],l=a.value?a.value:"";if(i[a.id]=l,a.actualValue&&(i[a.id]=a.actualValue),"Input.Date"===a.getJsonTypeName()){var c={};c[o.SelectedDateProperty]=a[o.SelectedDateProperty],c[o.SelectedDateWithTimeZoneProperty]=a[o.SelectedDateWithTimeZoneProperty],i[a.id]=c}}var u={};u.InputParameters=i,u.DialogParameters=n;var p=this.getLocalStorageKey(t,e,this.targetDom);window.localStorage.setItem(p,JSON.stringify(u))}catch(e){console.log(e);var d=new Error("Exception occurred while saving user input content");this.clientManagerInstance.logException(d)}},e.prototype.tryRestoreInstanceState=function(e,t){if(this.clientManagerInstance.supportSavingState)try{var n=this.getLocalStorageKey(t,e,this.targetDom),i=JSON.parse(window.localStorage.getItem(n));if((null==i?void 0:i.InputParameters)&&(this.clientManagerInstance.restoredInputs=i.InputParameters),(null==i?void 0:i.DialogParameters)&&this.clientManagerInstance instanceof p.AndroidBaseClientManager){var r=i.DialogParameters;if(r&&r.length>0&&r[0]){var o=void 0,s=r[0];switch(s.type){case"SHOW_CARD":this.clientManagerInstance.executeActionWithMessageId(s.params,e);break;case"INPUT_POPUP":var a=(o=JSON.parse(s.params)).popupProperties,l=o.isNumeric;this.clientManagerInstance.openPopup(a,l);break;case"CHOICE_PICKER":var c=(o=JSON.parse(s.params)).id,u=o.title,d=o.choices,h=o.selectedChoices,g=o.isRequired;this.clientManagerInstance.openChoicePickerWithSerializedValues(c,u,d,h,!1,g);break;case"DATE_INPUT":c=(o=JSON.parse(s.params)).id;var f=o.selectedDate;this.clientManagerInstance.openDatePicker(c,f,null,null);break;case"TIME_INPUT":c=(o=JSON.parse(s.params)).id;var m=o.selectedTime,y=o.placeholder;g=o.isRequired,this.clientManagerInstance.openTimePicker(c,m,y,g)}}}window.localStorage.removeItem(n)}catch(e){console.log(e);var v=new Error("Exception occured while restoring user input content");this.clientManagerInstance.logException(v)}},e.prototype.getLocalStorageKey=function(e,t,n){return this.context.useMultiCardInterface&&n&&(t+=n),e?t+e:t},e.prototype.addTooltipForAccessibility=function(){if(this.clientManagerInstance instanceof p.WindowsBaseClientManager||this.clientManagerInstance instanceof p.MacBaseClientManager){var e=document.getElementsByClassName("ac-anchor");Array.prototype.forEach.call(e,(function(e){e.getAttribute("title")||e.setAttribute("title",e.getAttribute("href"))}));var t=document.getElementsByClassName("ac-pushButton");Array.prototype.forEach.call(t,(function(e){e.getAttribute("aria-label")&&!e.getAttribute("title")&&e.setAttribute("title",e.getAttribute("aria-label"))}));var n=document.getElementsByClassName("ac-selectable");Array.prototype.forEach.call(n,(function(e){e.getAttribute("aria-label")&&e.setAttribute("title",e.getAttribute("aria-label"))}))}},e}();t.CardRender=g},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.formatText=void 0;var o=function(){function e(e){this._regularExpression=e}return e.prototype.format=function(e,t){var n;if(t){for(var i=t;null!=(n=this._regularExpression.exec(t));)i=i.replace(n[0],this.internalFormat(e,n));return i}return t},e}(),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.internalFormat=function(e,t){var n=new Date(Date.parse(t[1])),i=null!=t[2]?t[2].toLowerCase():"compact";return"compact"!=i?n.toLocaleDateString(e,{day:"numeric",weekday:i,month:i,year:"numeric"}):n.toLocaleDateString()},t}(o),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.internalFormat=function(e,t){return new Date(Date.parse(t[1])).toLocaleTimeString(e,{hour:"numeric",minute:"2-digit"})},t}(o);t.formatText=function(e,t){for(var n=t,i=0,r=[new s(/\{{2}DATE\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))(?:, ?(COMPACT|LONG|SHORT))?\)\}{2}/g),new a(/\{{2}TIME\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))\)\}{2}/g)];i<r.length;i++)n=r[i].format(e,n);return n}},function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(43),t),r(n(44),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MenuItem=void 0;var i=n(10),r=n(12),o=function(){function e(e,t){this.key=e,this._value=t}return e.prototype.click=function(){this.onClick&&this.onClick(this)},e.prototype.toString=function(){return this.value},e.prototype.render=function(e){var t=this;if(!this._element){var n=e||i.defaultHostConfig;this._element=document.createElement("span"),this._element.className=n.makeCssClassName("ac-ctrl ac-ctrl-dropdown-item"),this._element.innerText=this.value,this._element.setAttribute("role","menuitem"),this._element.setAttribute("aria-selected","false"),this._element.onmouseup=function(e){t.click()},this._element.onkeydown=function(e){e.key===r.Constants.keys.enter&&(t.click(),e.cancelBubble=!0)}}return this._element},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this._element&&(this._element.innerText=e)},enumerable:!1,configurable:!0}),e}();t.MenuItem=o},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PopupMenu=void 0;var o=n(12),s=n(45),a=function(e){function t(){var t=e.call(this)||this;return t._items=new s.Collection,t._renderedItems=[],t._selectedIndex=-1,t}return r(t,e),t.prototype.renderContent=function(){var e=document.createElement("div");e.className=this.hostConfig.makeCssClassName("ac-ctrl ac-popup"),e.setAttribute("role","listbox");for(var t=0;t<this._items.length;t++){var n=this._items.get(t).render(this.hostConfig);n.tabIndex=0,e.appendChild(n),t==this.selectedIndex&&n.focus(),this._renderedItems.push(n)}return e},t.prototype.keyDown=function(t){e.prototype.keyDown.call(this,t);var n=this._selectedIndex;switch(t.key){case o.Constants.keys.tab:this.closePopup(!0);break;case o.Constants.keys.up:(n<=0||--n<0)&&(n=this._renderedItems.length-1),this.selectedIndex=n,t.cancelBubble=!0;break;case o.Constants.keys.down:(n<0||++n>=this._renderedItems.length)&&(n=0),this.selectedIndex=n,t.cancelBubble=!0}},Object.defineProperty(t.prototype,"items",{get:function(){return this._items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){e>=0&&e<this._renderedItems.length&&(this._renderedItems[e].focus(),this._selectedIndex=e)},enumerable:!1,configurable:!0}),t}(n(46).PopupControl);t.PopupMenu=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0;var i=function(){function e(){this._items=[]}return e.prototype.get=function(e){return this._items[e]},e.prototype.add=function(e){this._items.push(e),this.onItemAdded&&this.onItemAdded(e)},e.prototype.remove=function(e){var t=this._items.indexOf(e);t>=0&&(this._items=this._items.splice(t,1),this.onItemRemoved&&this.onItemRemoved(e))},e.prototype.indexOf=function(e){return this._items.indexOf(e)},Object.defineProperty(e.prototype,"length",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),e}();t.Collection=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopupControl=void 0;var i=n(12),r=n(6),o=n(10),s=function(){function e(){this._isOpen=!1}return e.prototype.keyDown=function(e){e.key===i.Constants.keys.escape&&this.closePopup(!0)},e.prototype.render=function(e){var t=this,n=document.createElement("div");return n.tabIndex=0,n.className=this.hostConfig.makeCssClassName("ac-ctrl","ac-ctrl-popup-container"),n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true"),n.onkeydown=function(e){return t.keyDown(e),!e.cancelBubble},n.appendChild(this.renderContent()),n},e.prototype.focus=function(){this._popupElement&&this._popupElement.firstElementChild.focus()},e.prototype.popup=function(e){var t,n,i,o,s,a=this;if(!this._isOpen){this._overlayElement=document.createElement("div"),this._overlayElement.className=this.hostConfig.makeCssClassName("ac-ctrl-overlay"),this._overlayElement.tabIndex=0,this._overlayElement.style.width=document.documentElement.scrollWidth+"px",this._overlayElement.style.height=document.documentElement.scrollHeight+"px",this._overlayElement.onfocus=function(e){a.closePopup(!0)},document.body.appendChild(this._overlayElement);var l=e.getBoundingClientRect();this._popupElement=this.render(l),(t=this._popupElement.classList).remove.apply(t,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideLeftToRight","ac-ctrl-slideRightToLeft","ac-ctrl-slideTopToBottom","ac-ctrl-slideRightToLeft")),window.addEventListener("resize",(function(e){a.closePopup(!0)}));var c=e.getAttribute("aria-label");c&&this._popupElement.setAttribute("aria-label",c),this._overlayElement.appendChild(this._popupElement);var u,p=this._popupElement.getBoundingClientRect(),d=window.innerHeight-l.bottom,h=l.top,g=(window.innerWidth,l.left),f=(g=window.innerWidth-l.right,l.left),m=l.left+r.getScrollX();if(h<p.height&&d<p.height){var y=Math.min(p.height,window.innerHeight);if(this._popupElement.style.maxHeight=y+"px",u=y<p.height?r.getScrollY():r.getScrollY()+l.top+(l.height-y)/2,f<p.width&&g<p.width){var v=Math.min(p.width,window.innerWidth);this._popupElement.style.maxWidth=v+"px",m=v<p.width?r.getScrollX():r.getScrollX()+l.left+(l.width-v)/2}else g>=p.width?(m=r.getScrollX()+l.right,(n=this._popupElement.classList).add.apply(n,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideLeftToRight"))):(m=r.getScrollX()+l.left-p.width,(i=this._popupElement.classList).add.apply(i,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideRightToLeft")))}else d>=p.height?(u=r.getScrollY()+l.bottom,(o=this._popupElement.classList).add.apply(o,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideTopToBottom"))):(u=r.getScrollY()+l.top-p.height,(s=this._popupElement.classList).add.apply(s,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideBottomToTop"))),g<p.width&&(m=r.getScrollX()+l.right-p.width);this._popupElement.style.left=m+"px",this._popupElement.style.top=u+"px",this._popupElement.focus(),this._isOpen=!0}},e.prototype.closePopup=function(e){this._isOpen&&(document.body.removeChild(this._overlayElement),this._isOpen=!1,this.onClose&&this.onClose(this,e))},Object.defineProperty(e.prototype,"hostConfig",{get:function(){return this._hostConfig?this._hostConfig:o.defaultHostConfig},set:function(e){this._hostConfig=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),e}();t.PopupControl=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelAdapter=void 0,t.ChannelAdapter=function(){}},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdaptiveApplet=void 0;var o=n(3),s=n(6),a=n(4),l=n(23),c=n(8),u=n(22),p=n(5);function d(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(a.GlobalSettings.applets.logEnabled)if(a.GlobalSettings.applets.onLogEvent)a.GlobalSettings.applets.onLogEvent(e,t,n);else switch(e){case o.LogLevel.Warning:console.warn(t,n);break;case o.LogLevel.Error:console.error(t,n);break;default:console.log(t,n)}}var h=function(){function e(e,t,n){this.action=e,this.trigger=t,this.consecutiveRefreshes=n,this.attemptNumber=0}return e.prototype.retryAsync=function(){return i(this,void 0,void 0,(function(){return r(this,(function(e){return this.onSend&&this.onSend(this),[2]}))}))},e}(),g=function(){function e(){this._allowAutomaticCardUpdate=!1,this.renderedElement=document.createElement("div"),this.renderedElement.className="aaf-cardHost",this.renderedElement.style.position="relative",this.renderedElement.style.display="flex",this.renderedElement.style.flexDirection="column",this._cardHostElement=document.createElement("div"),this._refreshButtonHostElement=document.createElement("div"),this._refreshButtonHostElement.className="aaf-refreshButtonHost",this._refreshButtonHostElement.style.display="none",this.renderedElement.appendChild(this._cardHostElement),this.renderedElement.appendChild(this._refreshButtonHostElement)}return e.prototype.displayCard=function(e){if(!e.renderedElement)throw new Error("displayCard: undefined card.");s.clearElementChildren(this._cardHostElement),this._refreshButtonHostElement.style.display="none",this._cardHostElement.appendChild(e.renderedElement)},e.prototype.showManualRefreshButton=function(e){var t=this;if(!this.onShowManualRefreshButton||this.onShowManualRefreshButton(this)){this._refreshButtonHostElement.style.display="none";var n=void 0;if(this.onRenderManualRefreshButton)n=this.onRenderManualRefreshButton(this);else{var i=c.Strings.runtime.refreshThisCard();if(a.GlobalSettings.applets.refresh.mode===o.RefreshMode.Automatic){var r=c.Strings.runtime.automaticRefreshPaused();" "!==r[r.length-1]&&(r+=" "),i=c.Strings.runtime.clckToRestartAutomaticRefresh()}var d={type:"AdaptiveCard",version:"1.2",body:[{type:"RichTextBlock",horizontalAlignment:"right",inlines:[{type:"TextRun",text:i,selectAction:{type:"Action.Submit",id:"refreshCard"}}]}]},h=new u.AdaptiveCard;h.parse(d,new u.SerializationContext(p.Versions.v1_2)),h.onExecuteAction=function(n){"refreshCard"===n.id&&(s.clearElementChildren(t._refreshButtonHostElement),t.internalExecuteAction(e,l.ActivityRequestTrigger.Automatic,0))},n=h.render()}n&&(s.clearElementChildren(this._refreshButtonHostElement),this._refreshButtonHostElement.appendChild(n),this._refreshButtonHostElement.style.removeProperty("display"))}},e.prototype.createActivityRequest=function(e,t,n){var i=this;if(this.card){var r=new h(e,t,n);return r.onSend=function(e){e.attemptNumber++,i.internalSendActivityRequestAsync(r)},this.onPrepareActivityRequest&&!this.onPrepareActivityRequest(this,r,e)?void 0:r}throw new Error("createActivityRequest: no card has been set.")},e.prototype.createMagicCodeInputCard=function(t){var n={type:"AdaptiveCard",version:"1.0",body:[{type:"TextBlock",color:"attention",text:1===t?void 0:"That didn't work... let's try again.",wrap:!0,horizontalAlignment:"center"},{type:"TextBlock",text:'Please login in the popup. You will obtain a magic code. Paste that code below and select "Submit"',wrap:!0,horizontalAlignment:"center"},{type:"Input.Text",id:"magicCode",placeholder:"Enter magic code"},{type:"ActionSet",horizontalAlignment:"center",actions:[{type:"Action.Submit",id:e.submitMagicCodeActionId,title:"Submit"},{type:"Action.Submit",id:e.cancelMagicCodeAuthActionId,title:"Cancel"}]}]},i=new u.AdaptiveCard;return i.parse(n),i},e.prototype.cancelAutomaticRefresh=function(){this._allowAutomaticCardUpdate&&d(o.LogLevel.Warning,"Automatic card refresh has been cancelled as a result of the user interacting with the card."),this._allowAutomaticCardUpdate=!1},e.prototype.createSerializationContext=function(){return this.onCreateSerializationContext?this.onCreateSerializationContext(this):new u.SerializationContext},e.prototype.internalSetCard=function(e,t){var n=this;if("object"==typeof e&&"AdaptiveCard"===e.type&&(this._cardPayload=e),this._cardPayload)try{var i=new u.AdaptiveCard;this.hostConfig&&(i.hostConfig=this.hostConfig);var r=this.createSerializationContext();if(i.parse(this._cardPayload,r),(!this.onCardChanging||this.onCardChanging(this,this._cardPayload))&&(this._card=i,this._card.authentication&&this._card.authentication.tokenExchangeResource&&this.onPrefetchSSOToken&&this.onPrefetchSSOToken(this,this._card.authentication.tokenExchangeResource),this._card.onExecuteAction=function(e){n.cancelAutomaticRefresh(),n.internalExecuteAction(e,l.ActivityRequestTrigger.Manual,0)},this._card.onInputValueChanged=function(e){n.cancelAutomaticRefresh()},this._card.render(),this._card.renderedElement&&(this.displayCard(this._card),this.onCardChanged&&this.onCardChanged(this),this._card.refresh)))if(a.GlobalSettings.applets.refresh.mode===o.RefreshMode.Automatic&&t<a.GlobalSettings.applets.refresh.maximumConsecutiveAutomaticRefreshes)if(a.GlobalSettings.applets.refresh.timeBetweenAutomaticRefreshes<=0)d(o.LogLevel.Info,"Triggering automatic card refresh number "+(t+1)),this.internalExecuteAction(this._card.refresh.action,l.ActivityRequestTrigger.Automatic,t+1);else{d(o.LogLevel.Info,"Scheduling automatic card refresh number "+(t+1)+" in "+a.GlobalSettings.applets.refresh.timeBetweenAutomaticRefreshes+"ms");var s=this._card.refresh.action;this._allowAutomaticCardUpdate=!0,window.setTimeout((function(){n._allowAutomaticCardUpdate&&n.internalExecuteAction(s,l.ActivityRequestTrigger.Automatic,t+1)}),a.GlobalSettings.applets.refresh.timeBetweenAutomaticRefreshes)}else a.GlobalSettings.applets.refresh.mode!==o.RefreshMode.Disabled&&(d(o.LogLevel.Warning,t>0?"Stopping automatic refreshes after "+t+" consecutive refreshes.":"The card has a refresh section, but automatic refreshes are disabled."),(a.GlobalSettings.applets.refresh.allowManualRefreshesAfterAutomaticRefreshes||a.GlobalSettings.applets.refresh.mode===o.RefreshMode.Manual)&&(d(o.LogLevel.Info,"Showing manual refresh button."),this.showManualRefreshButton(this._card.refresh.action)))}catch(e){d(o.LogLevel.Error,"setCard: "+e)}},e.prototype.internalExecuteAction=function(e,t,n){if(e instanceof u.ExecuteAction){if(!this.channelAdapter)throw new Error("internalExecuteAction: No channel adapter set.");var i=this.createActivityRequest(e,t,n);i&&i.retryAsync()}this.onAction&&this.onAction(this,e)},e.prototype.createProgressOverlay=function(e){if(!this._progressOverlay)if(this.onCreateProgressOverlay)this._progressOverlay=this.onCreateProgressOverlay(this,e);else{this._progressOverlay=document.createElement("div"),this._progressOverlay.className="aaf-progress-overlay";var t=document.createElement("div");t.className="aaf-spinner",t.style.width="28px",t.style.height="28px",this._progressOverlay.appendChild(t)}return this._progressOverlay},e.prototype.removeProgressOverlay=function(e){this.onRemoveProgressOverlay&&this.onRemoveProgressOverlay(this,e),void 0!==this._progressOverlay&&(this.renderedElement.removeChild(this._progressOverlay),this._progressOverlay=void 0)},e.prototype.activityRequestSucceeded=function(e,t){this.onActivityRequestSucceeded&&this.onActivityRequestSucceeded(this,e,t)},e.prototype.activityRequestFailed=function(e){return this.onActivityRequestFailed?this.onActivityRequestFailed(this,e):a.GlobalSettings.applets.defaultTimeBetweenRetryAttempts},e.prototype.showAuthCodeInputDialog=function(t){var n=this;if(!this.onShowAuthCodeInputDialog||this.onShowAuthCodeInputDialog(this,t)){var i=this.createMagicCodeInputCard(t.attemptNumber);i.render(),i.onExecuteAction=function(i){if(n.card&&i instanceof u.SubmitAction)switch(i.id){case e.submitMagicCodeActionId:var r=void 0;i.data&&"string"==typeof i.data.magicCode&&(r=i.data.magicCode),r?(n.displayCard(n.card),t.authCode=r,t.retryAsync()):alert("Please enter the magic code you received.");break;case e.cancelMagicCodeAuthActionId:d(o.LogLevel.Warning,"Authentication cancelled by user."),n.displayCard(n.card);break;default:d(o.LogLevel.Error,"Unespected action taken from magic code input card (id = "+i.id+")"),alert(c.Strings.magicCodeInputCard.somethingWentWrong())}},this.displayCard(i)}},e.prototype.internalSendActivityRequestAsync=function(e){return i(this,void 0,void 0,(function(){var t,n,i,s;return r(this,(function(u){switch(u.label){case 0:if(!this.channelAdapter)throw new Error("internalSendActivityRequestAsync: channelAdapter is not set.");void 0!==(t=this.createProgressOverlay(e))&&this.renderedElement.appendChild(t),n=!1,i=function(){var t,i,u,p,h,g,f;return r(this,(function(r){switch(r.label){case 0:t=void 0,1===e.attemptNumber?d(o.LogLevel.Info,"Sending activity request to channel (attempt "+e.attemptNumber+")"):d(o.LogLevel.Info,"Re-sending activity request to channel (attempt "+e.attemptNumber+")"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,s.channelAdapter.sendRequestAsync(e)];case 2:return t=r.sent(),[3,4];case 3:return i=r.sent(),d(o.LogLevel.Error,"Activity request failed: "+i),s.removeProgressOverlay(e),n=!0,[3,4];case 4:if(!t)return[3,10];if(!(t instanceof l.SuccessResponse))return[3,5];if(s.removeProgressOverlay(e),void 0===t.rawContent)throw new Error("internalSendActivityRequestAsync: Action.Execute result is undefined");u=t.rawContent;try{u=JSON.parse(t.rawContent)}catch(e){}if("string"==typeof u)d(o.LogLevel.Info,"The activity request returned a string after "+e.attemptNumber+" attempt(s)."),s.activityRequestSucceeded(t,u);else{if("object"!=typeof u||"AdaptiveCard"!==u.type)throw new Error("internalSendActivityRequestAsync: Action.Execute result is of unsupported type ("+typeof t.rawContent+")");d(o.LogLevel.Info,"The activity request returned an Adaptive Card after "+e.attemptNumber+" attempt(s)."),s.internalSetCard(u,e.consecutiveRefreshes),s.activityRequestSucceeded(t,s.card)}return n=!0,[3,10];case 5:return t instanceof l.ErrorResponse?(p=s.activityRequestFailed(t))>=0&&e.attemptNumber<a.GlobalSettings.applets.maximumRetryAttempts?(d(o.LogLevel.Warning,"Activity request failed: "+t.error.message+". Retrying in "+p+"ms"),e.attemptNumber++,[4,new Promise((function(e,t){window.setTimeout((function(){e()}),p)}))]):[3,7]:[3,9];case 6:return r.sent(),[3,8];case 7:d(o.LogLevel.Error,"Activity request failed: "+t.error.message+". Giving up after "+e.attemptNumber+" attempt(s)"),s.removeProgressOverlay(e),n=!0,r.label=8;case 8:return[3,10];case 9:if(t instanceof l.LoginRequestResponse){if(d(o.LogLevel.Info,"The activity request returned a LoginRequestResponse after "+e.attemptNumber+" attempt(s)."),e.attemptNumber<=a.GlobalSettings.applets.maximumRetryAttempts){if(h=!0,t.tokenExchangeResource&&s.onSSOTokenNeeded&&(h=!s.onSSOTokenNeeded(s,e,t.tokenExchangeResource)),h){if(s.removeProgressOverlay(e),void 0===t.signinButton)throw new Error("internalSendActivityRequestAsync: the login request doesn't contain a valid signin URL.");d(o.LogLevel.Info,"Login required at "+t.signinButton.value),s.onShowSigninPrompt?s.onShowSigninPrompt(s,e,t.signinButton):(s.showAuthCodeInputDialog(e),g=window.screenX+(window.outerWidth-a.GlobalSettings.applets.authPromptWidth)/2,f=window.screenY+(window.outerHeight-a.GlobalSettings.applets.authPromptHeight)/2,window.open(t.signinButton.value,t.signinButton.title?t.signinButton.title:"Sign in","width="+a.GlobalSettings.applets.authPromptWidth+",height="+a.GlobalSettings.applets.authPromptHeight+",left="+g+",top="+f))}}else d(o.LogLevel.Error,"Authentication failed. Giving up after "+e.attemptNumber+" attempt(s)"),alert(c.Strings.magicCodeInputCard.authenticationFailed());return[2,"break"]}throw new Error("Unhandled response type: "+t.toString());case 10:return[2]}}))},s=this,u.label=1;case 1:return n?[3,3]:[5,i()];case 2:return"break"===u.sent()?[3,3]:[3,1];case 3:return[2]}}))}))},e.prototype.refreshCard=function(){this._card&&this._card.refresh&&this.internalExecuteAction(this._card.refresh.action,l.ActivityRequestTrigger.Manual,0)},e.prototype.setCard=function(e){this.internalSetCard(e,0)},Object.defineProperty(e.prototype,"card",{get:function(){return this._card},enumerable:!1,configurable:!0}),e.submitMagicCodeActionId="submitMagicCode",e.cancelMagicCodeAuthActionId="cancelMagicCodeAuth",e}();t.AdaptiveApplet=g},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(50)),o=n(2),s=function(){function e(t,n){var i;try{if(this.context=n.context,this.extendedPropertyJson=n.processData(t),!this.extendedPropertyJson.AdaptiveCardSerialized)throw new Error("ExtendedProperty must contain AdaptiveCardSerializedProperty");var r=this.extendedPropertyJson.AdaptiveCardSerialized;try{this.cardHash=e.getHash(r)}catch(e){console.log(e)}if(this.context&&this.context.showCardPayload?this.adaptiveCardJson=JSON.parse(this.context.showCardPayload):this.adaptiveCardJson=JSON.parse(r),this.hideOriginalBody=null===(i=this.adaptiveCardJson.hideOriginalBody)||void 0===i||i,this.originator=this.adaptiveCardJson.originator,this.messageCardContext=this.adaptiveCardJson.messageCardContext,this.connectorSenderGuid=this.extendedPropertyJson.ConnectorSenderGuid||o.DefaultConnectorSenderGuid,this.messageCardExtensionContext=this.extendedPropertyJson.MessageCardExtensionContext,this.extendedPropertyJson.SmtpAddressesSerialized){this.smtpAddressesSerialized=this.extendedPropertyJson.SmtpAddressesSerialized;try{var s=JSON.parse(this.smtpAddressesSerialized);this.senderAddress=s.Sender}catch(e){console.log("Unable to parse smtpAddressesSerialized. ".concat(e))}}this.extendedPropertyJson.AdaptiveCardSignature&&(this.adaptiveCardSignature=this.extendedPropertyJson.AdaptiveCardSignature),this.context&&this.context.userEmailAddress&&(this.userEmailAddress=this.context.userEmailAddress)}catch(e){throw console.log("Error while parsing extendedProperty in card-details - ".concat(e)),e}}return e.getHash=function(e){try{var t=r.default.hash(e),n=r.default.hexBytesToString(t);return btoa(n)}catch(e){throw new Error("Error while generating hash. "+e.message)}},e.prototype.updateWithActionResponse=function(t){var n=t.refreshCardSerialized;this.adaptiveCardSignature=t.refreshCardSignature;try{this.adaptiveCardJson=JSON.parse(n)}catch(e){throw"Unable to parse adaptiveCardSerialized"+e.message}try{this.cardHash=n?e.getHash(n):void 0}catch(e){throw new Error("Error while getting hash of refreshCardSerialized. "+e.message)}},e}();t.default=s},function(e,t){class n{static hash(e,t){const i=Object.assign({msgFormat:"string",outFormat:"hex"},t);switch(i.msgFormat){default:case"string":e=function(e){try{return(new TextEncoder).encode(e,"utf-8").reduce(((e,t)=>e+String.fromCharCode(t)),"")}catch(t){return unescape(encodeURIComponent(e))}}(e);break;case"hex-bytes":e=n.hexBytesToString(e)}const r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],s=(e+=String.fromCharCode(128)).length/4+2,a=Math.ceil(s/16),l=new Array(a);for(let t=0;t<a;t++){l[t]=new Array(16);for(let n=0;n<16;n++)l[t][n]=e.charCodeAt(64*t+4*n+0)<<24|e.charCodeAt(64*t+4*n+1)<<16|e.charCodeAt(64*t+4*n+2)<<8|e.charCodeAt(64*t+4*n+3)}const c=8*(e.length-1)/Math.pow(2,32),u=8*(e.length-1)>>>0;l[a-1][14]=Math.floor(c),l[a-1][15]=u;for(let e=0;e<a;e++){const t=new Array(64);for(let n=0;n<16;n++)t[n]=l[e][n];for(let e=16;e<64;e++)t[e]=n.σ1(t[e-2])+t[e-7]+n.σ0(t[e-15])+t[e-16]>>>0;let i=o[0],s=o[1],a=o[2],c=o[3],u=o[4],p=o[5],d=o[6],h=o[7];for(let e=0;e<64;e++){const o=h+n.Σ1(u)+n.Ch(u,p,d)+r[e]+t[e],l=n.Σ0(i)+n.Maj(i,s,a);h=d,d=p,p=u,u=c+o>>>0,c=a,a=s,s=i,i=o+l>>>0}o[0]=o[0]+i>>>0,o[1]=o[1]+s>>>0,o[2]=o[2]+a>>>0,o[3]=o[3]+c>>>0,o[4]=o[4]+u>>>0,o[5]=o[5]+p>>>0,o[6]=o[6]+d>>>0,o[7]=o[7]+h>>>0}for(let e=0;e<o.length;e++)o[e]=("00000000"+o[e].toString(16)).slice(-8);const p="hex-w"==i.outFormat?" ":"";return o.join(p)}static hexBytesToString(e){const t=e.replace(" ","");return""==t?"":t.match(/.{2}/g).map((e=>String.fromCharCode(parseInt(e,16)))).join("")}static ROTR(e,t){return t>>>e|t<<32-e}static Σ0(e){return n.ROTR(2,e)^n.ROTR(13,e)^n.ROTR(22,e)}static Σ1(e){return n.ROTR(6,e)^n.ROTR(11,e)^n.ROTR(25,e)}static σ0(e){return n.ROTR(7,e)^n.ROTR(18,e)^e>>>3}static σ1(e){return n.ROTR(17,e)^n.ROTR(19,e)^e>>>10}static Ch(e,t,n){return e&t^~e&n}static Maj(e,t,n){return e&t^e&n^t&n}}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(2),o=n(9);!function(e){e.Completed="Completed",e.Failed="Failed"}(i||(i={}));var s=function(){function e(e,t){this.isActionInShowCard=!1,this.isAutoInvokeAction=!1,this.isResponseParsed=!1;try{this.actionResponseJson="string"==typeof e?t.processData(e):e,this.actionResponseJson.messageId&&(this.messageId=this.actionResponseJson.messageId),"boolean"==typeof this.actionResponseJson.isActionInShowCard&&(this.isActionInShowCard=this.actionResponseJson.isActionInShowCard),"boolean"==typeof this.actionResponseJson.isAutoInvokeAction&&(this.isAutoInvokeAction=this.actionResponseJson.isAutoInvokeAction),(0,o.isJsonString)(this.actionResponseJson.responseSerialized)&&(this.responseJson=JSON.parse(this.actionResponseJson.responseSerialized),this.responseJson.refreshCardSerialized&&(this.refreshCardSerialized=this.responseJson.refreshCardSerialized),this.responseJson.refreshCardSignature&&(this.refreshCardSignature=this.responseJson.refreshCardSignature),this.status=this.responseJson.status,this.displayMessage=this.responseJson.displayMessage,this.errorMessage=this.responseJson.errorMessage,this.loginUrl=this.responseJson.loginUrl,this.oAuthCard=this.responseJson.oAuthCard?JSON.stringify(this.responseJson.oAuthCard):void 0),this.isResponseParsed=!0}catch(e){console.log("Error while parsing action response in card-details - ".concat(e)),this.isResponseParsed=!1}}return e.prototype.getFailureDisplayMessage=function(){var e=r.FailureStatusMessage;return this.displayMessage?e=this.displayMessage:this.errorMessage&&(e=this.errorMessage),e},e.prototype.getSuccessDisplayMessage=function(){var e=r.SuccessStatusMessage;return this.displayMessage&&(e=this.displayMessage),e},e.prototype.getActivityResponse=function(){var e,t,n;return this.isResponseParsed?this.status===i.Completed?n={success:!0,content:null!==(e=this.refreshCardSerialized)&&void 0!==e?e:this.getSuccessDisplayMessage()}:(this.oAuthCard||this.loginUrl)&&(n={success:!1,isAuth:!0,content:null!==(t=this.oAuthCard)&&void 0!==t?t:this.loginUrl}):n={success:!1,isAuth:!1,content:this.getFailureDisplayMessage()},n},e}();t.default=s},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),l=n(2),c=n(53),u=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.context=n,o.cardDetails=t,o.handleExecuteAction=i,o.executeActionCompletionHandler=r,o}return r(t,e),t.prototype.sendRequestAsync=function(e){return o(this,void 0,void 0,(function(){var t=this;return s(this,(function(n){return[2,new Promise((function(n,i){try{t.resolve=n,t.reject=i,t.request=e;var r=t.getActivityRequestData(e);if(t.context.isShowCardJson&&t.context.inputParameters)try{for(var o=r.value.action.data,s=t.context.inputParameters,u=o,p=0,d=s;p<d.length;p++){var h=d[p];h.id&&h.value&&(u[h.id]=h.value)}r.value.action.data=u}catch(e){}var g=JSON.stringify(r);t.handleExecuteAction(e,g)}catch(e){var f=new a.ErrorResponse(t.request,new a.ActivityRequestError(c.ErrorStateCode.ErrorHandling,l.FailureStatusMessage));t.resolve(f)}}))]}))}))},t.prototype.httpActionExecuted=function(e,t){try{if(void 0!==t){console.log(t);var n=new a.ErrorResponse(this.request,new a.ActivityRequestError(c.ErrorStateCode.ErrorNotNull,e.getFailureDisplayMessage()));this.resolve(n),this.executeActionCompletionHandler(void 0,t)}else{var i=e.getActivityResponse();i.success?(n=new a.SuccessResponse(this.request,i.content),this.resolve(n)):i.isAuth?(n=new a.LoginRequestResponse(this.request,this.getAuthenticationObjectForLoginRequest(i.content)),this.resolve(n)):(n=new a.ErrorResponse(this.request,new a.ActivityRequestError(c.ErrorStateCode.Failed,e.getFailureDisplayMessage())),this.resolve(n)),this.executeActionCompletionHandler(e,void 0)}}catch(t){console.log(t),n=new a.ErrorResponse(this.request,new a.ActivityRequestError(c.ErrorStateCode.ErrorHandling,e.getFailureDisplayMessage())),this.resolve(n),this.executeActionCompletionHandler(void 0,t)}},t.prototype.getActivityRequestData=function(e){var t={type:"invoke",name:"adaptiveCard/action",localTimestamp:"",localTimezone:"",channelData:{connectorSenderGuid:this.cardDetails.connectorSenderGuid,inputParameters:[],senderAddress:this.cardDetails.senderAddress,smtpAddressesSerialized:this.cardDetails.smtpAddressesSerialized,adaptiveCardSignature:this.cardDetails.adaptiveCardSignature,adaptiveCardHash:this.cardDetails.cardHash,clientTelemetry:{}},from:{id:this.cardDetails.userEmailAddress},value:{action:{type:"Action.Execute",id:e.action.id,verb:e.action.verb,data:e.action.data},trigger:e.trigger}};return e.authCode&&(t.value.state=e.authCode),t},t.prototype.getAuthenticationObjectForLoginRequest=function(e){var t;try{t=JSON.parse(e)}catch(n){t={buttons:[{type:"signin",value:e}]}}var n=new a.Authentication;return n.parse(t),n},t}(a.ChannelAdapter);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorStateCode=void 0,function(e){e.Failed="Failed",e.ErrorNotNull="ErrorNotNull",e.ErrorHandling="ErrorHandling"}(t.ErrorStateCode||(t.ErrorStateCode={}))},function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.initialize=void 0;var r=n(0),o=i(n(55)),s=i(n(56)),a=i(n(57)),l=i(n(24)),c=n(2),u=i(n(114)),p=i(n(115)),d=function(e,t){var n=(0,l.default)().render(e);t.didProcess=!0,t.outputHtml=n},h=!1;t.initialize=function(e){h||(function(e){r.GlobalRegistry.elements.register("ActionSet",o.default),s.default.clientManager=e,r.GlobalRegistry.actions.register(r.OpenUrlAction.JsonTypeName,s.default),u.default.clientManager=e,r.GlobalRegistry.actions.register(c.DisplayAppointmentFormActionType,u.default),p.default.clientManager=e,r.GlobalRegistry.actions.register(c.DisplayMessageFormActionType,p.default),(null==e?void 0:e.registerCustomElements)&&e.registerCustomElements(),e.supportCustomShowCardAction&&(a.default.clientManager=e,r.GlobalRegistry.actions.register(r.ShowCardAction.JsonTypeName,a.default)),r.GlobalRegistry.actions.unregister(r.SubmitAction.JsonTypeName)}(e),r.GlobalSettings.useMarkdownInRadioButtonAndCheckbox=!1,r.GlobalSettings.alwaysBleedSeparators=!0,r.GlobalSettings.allowMarkForTextHighlighting=!0,r.AdaptiveCard.onProcessMarkdown=d,r.GlobalSettings.applets.refresh.mode=r.RefreshMode.Automatic,r.GlobalSettings.applets.refresh.timeBetweenAutomaticRefreshes=-1,r.GlobalSettings.applets.refresh.maximumConsecutiveAutomaticRefreshes=1,r.GlobalSettings.applets.refresh.allowManualRefreshesAfterAutomaticRefreshes=!1,h=!0)}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.internalRender=function(){var t=e.prototype.internalRender.call(this),n=null==t?void 0:t.querySelector(".ac-actionSet");if(!n)return t;n.setAttribute("role",null);for(var i=0,r=Array.from(n.children);i<r.length;i++){var o=r[i];"BUTTON"===o.tagName&&o.setAttribute("role","button")}return t},t}(n(0).ActionSet);t.default=o},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),s=n(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.execute=function(){try{t.clientManager.executeAction(this)}catch(e){return}},t.prototype.render=function(){var n;e.prototype.render.call(this),(t.clientManager instanceof s.MacBaseClientManager||t.clientManager instanceof s.WindowsBaseClientManager)&&this.renderedElement&&(this.renderedElement.title="".concat(null!==(n=this.title)&&void 0!==n?n:""," URL: ").concat(this.getHref()))},t}(o.OpenUrlAction);t.default=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.execute=function(){var e=this.getRootObject();if(e instanceof o.AdaptiveCard){var n=e.getAllInputs();if(n){for(var i=[],r=0,s=Object.keys(n);r<s.length;r++){var a=n[s[r]];if(a.id&&a.isSet()){var l="string"==typeof a.value?a.value:a.value.toString(),c={id:a.id,value:l};i.push(c)}}this.data=i}}t.clientManager.executeAction(this)},t}(o.ShowCardAction);t.default=s},function(e,t,n){"use strict";var i=n(1),r=n(66),o=n(70),s=n(71),a=n(79),l=n(93),c=n(106),u=n(26),p=n(108),d={default:n(111),zero:n(112),commonmark:n(113)},h=/^(vbscript|javascript|file|data):/,g=/^data:image\/(gif|png|jpeg|webp);/;function f(e){var t=e.trim().toLowerCase();return!h.test(t)||!!g.test(t)}var m=["http:","https:","mailto:"];function y(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=p.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t))}function C(e,t){if(!(this instanceof C))return new C(e,t);t||i.isString(e)||(t=e||{},e="default"),this.inline=new l,this.block=new a,this.core=new s,this.renderer=new o,this.linkify=new c,this.validateLink=f,this.normalizeLink=y,this.normalizeLinkText=v,this.utils=i,this.helpers=i.assign({},r),this.options={},this.configure(e),t&&this.set(t)}C.prototype.set=function(e){return i.assign(this.options,e),this},C.prototype.configure=function(e){var t,n=this;if(i.isString(e)&&!(e=d[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},C.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var i=e.filter((function(e){return n.indexOf(e)<0}));if(i.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this},C.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var i=e.filter((function(e){return n.indexOf(e)<0}));if(i.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this},C.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},C.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},C.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},C.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},C.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=C},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},function(e,t,n){"use strict";var i={};function r(e,t,n){var o,s,a,l,c,u="";for("string"!=typeof t&&(n=t,t=r.defaultChars),void 0===n&&(n=!0),c=function(e){var t,n,r=i[e];if(r)return r;for(r=i[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}(t),o=0,s=e.length;o<s;o++)if(a=e.charCodeAt(o),n&&37===a&&o+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))u+=e.slice(o,o+3),o+=2;else if(a<128)u+=c[a];else if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&o+1<s&&(l=e.charCodeAt(o+1))>=56320&&l<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[o]);return u}r.defaultChars=";/?:@&=+$,-_.!~*'()#",r.componentChars="-_.!~*'()",e.exports=r},function(e,t,n){"use strict";var i={};function r(e,t){var n;return"string"!=typeof t&&(t=r.defaultChars),n=function(e){var t,n,r=i[e];if(r)return r;for(r=i[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t<e.length;t++)r[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,i,r,o,s,a,l,c="";for(t=0,i=e.length;t<i;t+=3)(r=parseInt(e.slice(t+1,t+3),16))<128?c+=n[r]:192==(224&r)&&t+3<i&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(c+=(l=r<<6&1984|63&o)<128?"��":String.fromCharCode(l),t+=3):224==(240&r)&&t+6<i&&(o=parseInt(e.slice(t+4,t+6),16),s=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&s))?(c+=(l=r<<12&61440|o<<6&4032|63&s)<2048||l>=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&r)&&t+9<i&&(o=parseInt(e.slice(t+4,t+6),16),s=parseInt(e.slice(t+7,t+9),16),a=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&s)&&128==(192&a))?((l=r<<18&1835008|o<<12&258048|s<<6&4032|63&a)<65536||l>1114111?c+="����":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):c+="�";return c}))}r.defaultChars=";/?:@&=+$,#",r.componentChars="",e.exports=r},function(e,t,n){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",(t+=e.search||"")+(e.hash||"")}},function(e,t,n){"use strict";function i(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var r=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,a=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(a),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};i.prototype.parse=function(e,t){var n,i,o,a,l,f=e;if(f=f.trim(),!t&&1===e.split("#").length){var m=s.exec(f);if(m)return this.pathname=m[1],m[2]&&(this.search=m[2]),this}var y=r.exec(f);if(y&&(o=(y=y[0]).toLowerCase(),this.protocol=y,f=f.substr(y.length)),(t||y||f.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(l="//"===f.substr(0,2))||y&&h[y]||(f=f.substr(2),this.slashes=!0)),!h[y]&&(l||y&&!g[y])){var v,C,b=-1;for(n=0;n<u.length;n++)-1!==(a=f.indexOf(u[n]))&&(-1===b||a<b)&&(b=a);for(-1!==(C=-1===b?f.lastIndexOf("@"):f.lastIndexOf("@",b))&&(v=f.slice(0,C),f=f.slice(C+1),this.auth=v),b=-1,n=0;n<c.length;n++)-1!==(a=f.indexOf(c[n]))&&(-1===b||a<b)&&(b=a);-1===b&&(b=f.length),":"===f[b-1]&&b--;var A=f.slice(0,b);f=f.slice(b),this.parseHost(A),this.hostname=this.hostname||"";var x="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!x){var S=this.hostname.split(/\./);for(n=0,i=S.length;n<i;n++){var I=S[n];if(I&&!I.match(p)){for(var E="",w=0,_=I.length;w<_;w++)I.charCodeAt(w)>127?E+="x":E+=I[w];if(!E.match(p)){var P=S.slice(0,n),k=S.slice(n+1),T=I.match(d);T&&(P.push(T[1]),k.unshift(T[2])),k.length&&(f=k.join(".")+f),this.hostname=P.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),x&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var M=f.indexOf("#");-1!==M&&(this.hash=f.substr(M),f=f.slice(0,M));var O=f.indexOf("?");return-1!==O&&(this.search=f.substr(O),f=f.slice(0,O)),f&&(this.pathname=f),g[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},i.prototype.parseHost=function(e){var t=o.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,t){if(e&&e instanceof i)return e;var n=new i;return n.parse(e,t),n}},function(e,t,n){"use strict";t.Any=n(27),t.Cc=n(28),t.Cf=n(65),t.P=n(13),t.Z=n(29)},function(e,t){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},function(e,t,n){"use strict";t.parseLinkLabel=n(67),t.parseLinkDestination=n(68),t.parseLinkTitle=n(69)},function(e,t,n){"use strict";e.exports=function(e,t,n){var i,r,o,s,a=-1,l=e.posMax,c=e.pos;for(e.pos=t+1,i=1;e.pos<l;){if(93===(o=e.src.charCodeAt(e.pos))&&0==--i){r=!0;break}if(s=e.pos,e.md.inline.skipToken(e),91===o)if(s===e.pos-1)i++;else if(n)return e.pos=c,-1}return r&&(a=e.pos),e.pos=c,a}},function(e,t,n){"use strict";var i=n(1).isSpace,r=n(1).unescapeAll;e.exports=function(e,t,n){var o,s,a=t,l={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(o=e.charCodeAt(t))||i(o))return l;if(62===o)return l.pos=t+1,l.str=r(e.slice(a+1,t)),l.ok=!0,l;92===o&&t+1<n?t+=2:t++}return l}for(s=0;t<n&&32!==(o=e.charCodeAt(t))&&!(o<32||127===o);)if(92===o&&t+1<n)t+=2;else{if(40===o&&s++,41===o){if(0===s)break;s--}t++}return a===t||0!==s||(l.str=r(e.slice(a,t)),l.lines=0,l.pos=t,l.ok=!0),l}},function(e,t,n){"use strict";var i=n(1).unescapeAll;e.exports=function(e,t,n){var r,o,s=0,a=t,l={ok:!1,pos:0,lines:0,str:""};if(t>=n)return l;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return l;for(t++,40===o&&(o=41);t<n;){if((r=e.charCodeAt(t))===o)return l.pos=t+1,l.lines=s,l.str=i(e.slice(a+1,t)),l.ok=!0,l;10===r?s++:92===r&&t+1<n&&(t++,10===e.charCodeAt(t)&&s++),t++}return l}},function(e,t,n){"use strict";var i=n(1).assign,r=n(1).unescapeAll,o=n(1).escapeHtml,s={};function a(){this.rules=i({},s)}s.code_inline=function(e,t,n,i,r){var s=e[t];return"<code"+r.renderAttrs(s)+">"+o(e[t].content)+"</code>"},s.code_block=function(e,t,n,i,r){var s=e[t];return"<pre"+r.renderAttrs(s)+"><code>"+o(e[t].content)+"</code></pre>\n"},s.fence=function(e,t,n,i,s){var a,l,c,u,p=e[t],d=p.info?r(p.info).trim():"",h="";return d&&(h=d.split(/\s+/g)[0]),0===(a=n.highlight&&n.highlight(p.content,h)||o(p.content)).indexOf("<pre")?a+"\n":d?(l=p.attrIndex("class"),c=p.attrs?p.attrs.slice():[],l<0?c.push(["class",n.langPrefix+h]):c[l][1]+=" "+n.langPrefix+h,u={attrs:c},"<pre><code"+s.renderAttrs(u)+">"+a+"</code></pre>\n"):"<pre><code"+s.renderAttrs(p)+">"+a+"</code></pre>\n"},s.image=function(e,t,n,i,r){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=r.renderInlineAsText(o.children,n,i),r.renderToken(e,t,n)},s.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},s.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},s.text=function(e,t){return o(e[t].content)},s.html_block=function(e,t){return e[t].content},s.html_inline=function(e,t){return e[t].content},a.prototype.renderAttrs=function(e){var t,n,i;if(!e.attrs)return"";for(i="",t=0,n=e.attrs.length;t<n;t++)i+=" "+o(e.attrs[t][0])+'="'+o(e.attrs[t][1])+'"';return i},a.prototype.renderToken=function(e,t,n){var i,r="",o=!1,s=e[t];return s.hidden?"":(s.block&&-1!==s.nesting&&t&&e[t-1].hidden&&(r+="\n"),r+=(-1===s.nesting?"</":"<")+s.tag,r+=this.renderAttrs(s),0===s.nesting&&n.xhtmlOut&&(r+=" /"),s.block&&(o=!0,1===s.nesting&&t+1<e.length&&("inline"===(i=e[t+1]).type||i.hidden||-1===i.nesting&&i.tag===s.tag)&&(o=!1)),r+=o?">\n":">")},a.prototype.renderInline=function(e,t,n){for(var i,r="",o=this.rules,s=0,a=e.length;s<a;s++)void 0!==o[i=e[s].type]?r+=o[i](e,s,t,n,this):r+=this.renderToken(e,s,t);return r},a.prototype.renderInlineAsText=function(e,t,n){for(var i="",r=0,o=e.length;r<o;r++)"text"===e[r].type?i+=e[r].content:"image"===e[r].type&&(i+=this.renderInlineAsText(e[r].children,t,n));return i},a.prototype.render=function(e,t,n){var i,r,o,s="",a=this.rules;for(i=0,r=e.length;i<r;i++)"inline"===(o=e[i].type)?s+=this.renderInline(e[i].children,t,n):void 0!==a[o]?s+=a[e[i].type](e,i,t,n,this):s+=this.renderToken(e,i,t,n);return s},e.exports=a},function(e,t,n){"use strict";var i=n(14),r=[["normalize",n(72)],["block",n(73)],["inline",n(74)],["linkify",n(75)],["replacements",n(76)],["smartquotes",n(77)]];function o(){this.ruler=new i;for(var e=0;e<r.length;e++)this.ruler.push(r[e][0],r[e][1])}o.prototype.process=function(e){var t,n,i;for(t=0,n=(i=this.ruler.getRules("")).length;t<n;t++)i[t](e)},o.prototype.State=n(78),e.exports=o},function(e,t,n){"use strict";var i=/\r[\n\u0085]?|[\u2424\u2028\u0085]/g,r=/\u0000/g;e.exports=function(e){var t;t=(t=e.src.replace(i,"\n")).replace(r,"�"),e.src=t}},function(e,t,n){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},function(e,t,n){"use strict";e.exports=function(e){var t,n,i,r=e.tokens;for(n=0,i=r.length;n<i;n++)"inline"===(t=r[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},function(e,t,n){"use strict";var i=n(1).arrayReplaceAt;function r(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,o,s,a,l,c,u,p,d,h,g,f,m,y,v,C,b,A=e.tokens;if(e.md.options.linkify)for(n=0,o=A.length;n<o;n++)if("inline"===A[n].type&&e.md.linkify.pretest(A[n].content))for(f=0,t=(s=A[n].children).length-1;t>=0;t--)if("link_close"!==(l=s[t]).type){if("html_inline"===l.type&&(b=l.content,/^<a[>\s]/i.test(b)&&f>0&&f--,r(l.content)&&f++),!(f>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(p=l.content,C=e.md.linkify.match(p),c=[],g=l.level,h=0,u=0;u<C.length;u++)m=C[u].url,y=e.md.normalizeLink(m),e.md.validateLink(y)&&(v=C[u].text,v=C[u].schema?"mailto:"!==C[u].schema||/^mailto:/i.test(v)?e.md.normalizeLinkText(v):e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),(d=C[u].index)>h&&((a=new e.Token("text","",0)).content=p.slice(h,d),a.level=g,c.push(a)),(a=new e.Token("link_open","a",1)).attrs=[["href",y]],a.level=g++,a.markup="linkify",a.info="auto",c.push(a),(a=new e.Token("text","",0)).content=v,a.level=g,c.push(a),(a=new e.Token("link_close","a",-1)).level=--g,a.markup="linkify",a.info="auto",c.push(a),h=C[u].lastIndex);h<p.length&&((a=new e.Token("text","",0)).content=p.slice(h),a.level=g,c.push(a)),A[n].children=s=i(s,t,c)}}else for(t--;s[t].level!==l.level&&"link_open"!==s[t].type;)t--}},function(e,t,n){"use strict";var i=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,r=/\((c|tm|r|p)\)/i,o=/\((c|tm|r|p)\)/gi,s={c:"©",r:"®",p:"§",tm:"™"};function a(e,t){return s[t.toLowerCase()]}function l(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(o,a)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function c(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||i.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(r.test(e.tokens[t].content)&&l(e.tokens[t].children),i.test(e.tokens[t].content)&&c(e.tokens[t].children))}},function(e,t,n){"use strict";var i=n(1).isWhiteSpace,r=n(1).isPunctChar,o=n(1).isMdAsciiPunct,s=/['"]/,a=/['"]/g;function l(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function c(e,t){var n,s,c,u,p,d,h,g,f,m,y,v,C,b,A,x,S,I,E,w,_;for(E=[],n=0;n<e.length;n++){for(s=e[n],h=e[n].level,S=E.length-1;S>=0&&!(E[S].level<=h);S--);if(E.length=S+1,"text"===s.type){p=0,d=(c=s.content).length;e:for(;p<d&&(a.lastIndex=p,u=a.exec(c));){if(A=x=!0,p=u.index+1,I="'"===u[0],f=32,u.index-1>=0)f=c.charCodeAt(u.index-1);else for(S=n-1;S>=0&&"softbreak"!==e[S].type&&"hardbreak"!==e[S].type;S--)if("text"===e[S].type){f=e[S].content.charCodeAt(e[S].content.length-1);break}if(m=32,p<d)m=c.charCodeAt(p);else for(S=n+1;S<e.length&&"softbreak"!==e[S].type&&"hardbreak"!==e[S].type;S++)if("text"===e[S].type){m=e[S].content.charCodeAt(0);break}if(y=o(f)||r(String.fromCharCode(f)),v=o(m)||r(String.fromCharCode(m)),C=i(f),(b=i(m))?A=!1:v&&(C||y||(A=!1)),C?x=!1:y&&(b||v||(x=!1)),34===m&&'"'===u[0]&&f>=48&&f<=57&&(x=A=!1),A&&x&&(A=!1,x=v),A||x){if(x)for(S=E.length-1;S>=0&&(g=E[S],!(E[S].level<h));S--)if(g.single===I&&E[S].level===h){g=E[S],I?(w=t.md.options.quotes[2],_=t.md.options.quotes[3]):(w=t.md.options.quotes[0],_=t.md.options.quotes[1]),s.content=l(s.content,u.index,_),e[g.token].content=l(e[g.token].content,g.pos,w),p+=_.length-1,g.token===n&&(p+=w.length-1),d=(c=s.content).length,E.length=S;continue e}A?E.push({token:n,pos:u.index,single:I,level:h}):x&&I&&(s.content=l(s.content,u.index,"’"))}else I&&(s.content=l(s.content,u.index,"’"))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&s.test(e.tokens[t].content)&&c(e.tokens[t].children,e)}},function(e,t,n){"use strict";var i=n(15);function r(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}r.prototype.Token=i,e.exports=r},function(e,t,n){"use strict";var i=n(14),r=[["table",n(80),["paragraph","reference"]],["code",n(81)],["fence",n(82),["paragraph","reference","blockquote","list"]],["blockquote",n(83),["paragraph","reference","blockquote","list"]],["hr",n(84),["paragraph","reference","blockquote","list"]],["list",n(85),["paragraph","reference","blockquote"]],["reference",n(86)],["heading",n(87),["paragraph","reference","blockquote"]],["lheading",n(88)],["html_block",n(89),["paragraph","reference","blockquote"]],["paragraph",n(91)]];function o(){this.ruler=new i;for(var e=0;e<r.length;e++)this.ruler.push(r[e][0],r[e][1],{alt:(r[e][2]||[]).slice()})}o.prototype.tokenize=function(e,t,n){for(var i,r=this.ruler.getRules(""),o=r.length,s=t,a=!1,l=e.md.options.maxNesting;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n))&&!(e.sCount[s]<e.blkIndent);){if(e.level>=l){e.line=n;break}for(i=0;i<o&&!r[i](e,s,n,!1);i++);e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),(s=e.line)<n&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}},o.prototype.parse=function(e,t,n,i){var r;e&&(r=new this.State(e,t,n,i),this.tokenize(r,r.line,r.lineMax))},o.prototype.State=n(92),e.exports=o},function(e,t,n){"use strict";var i=n(1).isSpace;function r(e,t){var n=e.bMarks[t]+e.blkIndent,i=e.eMarks[t];return e.src.substr(n,i-n)}function o(e){var t,n=[],i=0,r=e.length,o=0,s=0,a=!1,l=0;for(t=e.charCodeAt(i);i<r;)96===t?a?(a=!1,l=i):o%2==0&&(a=!0,l=i):124!==t||o%2!=0||a||(n.push(e.substring(s,i)),s=i+1),92===t?o++:o=0,++i===r&&a&&(a=!1,i=l+1),t=e.charCodeAt(i);return n.push(e.substring(s)),n}e.exports=function(e,t,n,s){var a,l,c,u,p,d,h,g,f,m,y,v;if(t+2>n)return!1;if(p=t+1,e.sCount[p]<e.blkIndent)return!1;if(e.sCount[p]-e.blkIndent>=4)return!1;if((c=e.bMarks[p]+e.tShift[p])>=e.eMarks[p])return!1;if(124!==(a=e.src.charCodeAt(c++))&&45!==a&&58!==a)return!1;for(;c<e.eMarks[p];){if(124!==(a=e.src.charCodeAt(c))&&45!==a&&58!==a&&!i(a))return!1;c++}for(d=(l=r(e,t+1)).split("|"),f=[],u=0;u<d.length;u++){if(!(m=d[u].trim())){if(0===u||u===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(m))return!1;58===m.charCodeAt(m.length-1)?f.push(58===m.charCodeAt(0)?"center":"right"):58===m.charCodeAt(0)?f.push("left"):f.push("")}if(-1===(l=r(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((h=(d=o(l.replace(/^\||\|$/g,""))).length)>f.length)return!1;if(s)return!0;for((g=e.push("table_open","table",1)).map=y=[t,0],(g=e.push("thead_open","thead",1)).map=[t,t+1],(g=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u<d.length;u++)(g=e.push("th_open","th",1)).map=[t,t+1],f[u]&&(g.attrs=[["style","text-align:"+f[u]]]),(g=e.push("inline","",0)).content=d[u].trim(),g.map=[t,t+1],g.children=[],g=e.push("th_close","th",-1);for(g=e.push("tr_close","tr",-1),g=e.push("thead_close","thead",-1),(g=e.push("tbody_open","tbody",1)).map=v=[t+2,0],p=t+2;p<n&&!(e.sCount[p]<e.blkIndent)&&-1!==(l=r(e,p).trim()).indexOf("|")&&!(e.sCount[p]-e.blkIndent>=4);p++){for(d=o(l.replace(/^\||\|$/g,"")),g=e.push("tr_open","tr",1),u=0;u<h;u++)g=e.push("td_open","td",1),f[u]&&(g.attrs=[["style","text-align:"+f[u]]]),(g=e.push("inline","",0)).content=d[u]?d[u].trim():"",g.children=[],g=e.push("td_close","td",-1);g=e.push("tr_close","tr",-1)}return g=e.push("tbody_close","tbody",-1),g=e.push("table_close","table",-1),y[1]=v[1]=p,e.line=p,!0}},function(e,t,n){"use strict";e.exports=function(e,t,n){var i,r,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(r=i=t+1;i<n;)if(e.isEmpty(i))i++;else{if(!(e.sCount[i]-e.blkIndent>=4))break;r=++i}return e.line=r,(o=e.push("code_block","code",0)).content=e.getLines(t,r,4+e.blkIndent,!0),o.map=[t,e.line],!0}},function(e,t,n){"use strict";e.exports=function(e,t,n,i){var r,o,s,a,l,c,u,p=!1,d=e.bMarks[t]+e.tShift[t],h=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>h)return!1;if(126!==(r=e.src.charCodeAt(d))&&96!==r)return!1;if(l=d,(o=(d=e.skipChars(d,r))-l)<3)return!1;if(u=e.src.slice(l,d),(s=e.src.slice(d,h)).indexOf(String.fromCharCode(r))>=0)return!1;if(i)return!0;for(a=t;!(++a>=n||(d=l=e.bMarks[a]+e.tShift[a])<(h=e.eMarks[a])&&e.sCount[a]<e.blkIndent);)if(e.src.charCodeAt(d)===r&&!(e.sCount[a]-e.blkIndent>=4||(d=e.skipChars(d,r))-l<o||(d=e.skipSpaces(d))<h)){p=!0;break}return o=e.sCount[t],e.line=a+(p?1:0),(c=e.push("fence","code",0)).info=s,c.content=e.getLines(t+1,a,o,!0),c.markup=u,c.map=[t,e.line],!0}},function(e,t,n){"use strict";var i=n(1).isSpace;e.exports=function(e,t,n,r){var o,s,a,l,c,u,p,d,h,g,f,m,y,v,C,b,A,x,S,I,E=e.lineMax,w=e.bMarks[t]+e.tShift[t],_=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(w++))return!1;if(r)return!0;for(l=h=e.sCount[t]+w-(e.bMarks[t]+e.tShift[t]),32===e.src.charCodeAt(w)?(w++,l++,h++,o=!1,b=!0):9===e.src.charCodeAt(w)?(b=!0,(e.bsCount[t]+h)%4==3?(w++,l++,h++,o=!1):o=!0):b=!1,g=[e.bMarks[t]],e.bMarks[t]=w;w<_&&(s=e.src.charCodeAt(w),i(s));)9===s?h+=4-(h+e.bsCount[t]+(o?1:0))%4:h++,w++;for(f=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),u=w>=_,v=[e.sCount[t]],e.sCount[t]=h-l,C=[e.tShift[t]],e.tShift[t]=w-e.bMarks[t],x=e.md.block.ruler.getRules("blockquote"),y=e.parentType,e.parentType="blockquote",I=!1,d=t+1;d<n&&(e.sCount[d]<e.blkIndent&&(I=!0),!((w=e.bMarks[d]+e.tShift[d])>=(_=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(w++)||I){if(u)break;for(A=!1,a=0,c=x.length;a<c;a++)if(x[a](e,d,n,!0)){A=!0;break}if(A){e.lineMax=d,0!==e.blkIndent&&(g.push(e.bMarks[d]),f.push(e.bsCount[d]),C.push(e.tShift[d]),v.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}g.push(e.bMarks[d]),f.push(e.bsCount[d]),C.push(e.tShift[d]),v.push(e.sCount[d]),e.sCount[d]=-1}else{for(l=h=e.sCount[d]+w-(e.bMarks[d]+e.tShift[d]),32===e.src.charCodeAt(w)?(w++,l++,h++,o=!1,b=!0):9===e.src.charCodeAt(w)?(b=!0,(e.bsCount[d]+h)%4==3?(w++,l++,h++,o=!1):o=!0):b=!1,g.push(e.bMarks[d]),e.bMarks[d]=w;w<_&&(s=e.src.charCodeAt(w),i(s));)9===s?h+=4-(h+e.bsCount[d]+(o?1:0))%4:h++,w++;u=w>=_,f.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(b?1:0),v.push(e.sCount[d]),e.sCount[d]=h-l,C.push(e.tShift[d]),e.tShift[d]=w-e.bMarks[d]}for(m=e.blkIndent,e.blkIndent=0,(S=e.push("blockquote_open","blockquote",1)).markup=">",S.map=p=[t,0],e.md.block.tokenize(e,t,d),(S=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=E,e.parentType=y,p[1]=e.line,a=0;a<C.length;a++)e.bMarks[a+t]=g[a],e.tShift[a+t]=C[a],e.sCount[a+t]=v[a],e.bsCount[a+t]=f[a];return e.blkIndent=m,!0}},function(e,t,n){"use strict";var i=n(1).isSpace;e.exports=function(e,t,n,r){var o,s,a,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(c++))&&45!==o&&95!==o)return!1;for(s=1;c<u;){if((a=e.src.charCodeAt(c++))!==o&&!i(a))return!1;a===o&&s++}return!(s<3||(r||(e.line=t+1,(l=e.push("hr","hr",0)).map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(o))),0))}},function(e,t,n){"use strict";var i=n(1).isSpace;function r(e,t){var n,r,o,s;return r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(n=e.src.charCodeAt(r++))&&45!==n&&43!==n||r<o&&(s=e.src.charCodeAt(r),!i(s))?-1:r}function o(e,t){var n,r=e.bMarks[t]+e.tShift[t],o=r,s=e.eMarks[t];if(o+1>=s)return-1;if((n=e.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=s)return-1;if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-r>=10)return-1}return o<s&&(n=e.src.charCodeAt(o),!i(n))?-1:o}e.exports=function(e,t,n,i){var s,a,l,c,u,p,d,h,g,f,m,y,v,C,b,A,x,S,I,E,w,_,P,k,T,M,O,D,F=!1,R=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(i&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(F=!0),(P=o(e,t))>=0){if(d=!0,T=e.bMarks[t]+e.tShift[t],v=Number(e.src.substr(T,P-T-1)),F&&1!==v)return!1}else{if(!((P=r(e,t))>=0))return!1;d=!1}if(F&&e.skipSpaces(P)>=e.eMarks[t])return!1;if(y=e.src.charCodeAt(P-1),i)return!0;for(m=e.tokens.length,d?(D=e.push("ordered_list_open","ol",1),1!==v&&(D.attrs=[["start",v]])):D=e.push("bullet_list_open","ul",1),D.map=f=[t,0],D.markup=String.fromCharCode(y),b=t,k=!1,O=e.md.block.ruler.getRules("list"),I=e.parentType,e.parentType="list";b<n;){for(_=P,C=e.eMarks[b],p=A=e.sCount[b]+P-(e.bMarks[t]+e.tShift[t]);_<C;){if(9===(s=e.src.charCodeAt(_)))A+=4-(A+e.bsCount[b])%4;else{if(32!==s)break;A++}_++}if((u=(a=_)>=C?1:A-p)>4&&(u=1),c=p+u,(D=e.push("list_item_open","li",1)).markup=String.fromCharCode(y),D.map=h=[t,0],x=e.blkIndent,w=e.tight,E=e.tShift[t],S=e.sCount[t],e.blkIndent=c,e.tight=!0,e.tShift[t]=a-e.bMarks[t],e.sCount[t]=A,a>=C&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!k||(R=!1),k=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=x,e.tShift[t]=E,e.sCount[t]=S,e.tight=w,(D=e.push("list_item_close","li",-1)).markup=String.fromCharCode(y),b=t=e.line,h[1]=b,a=e.bMarks[t],b>=n)break;if(e.sCount[b]<e.blkIndent)break;for(M=!1,l=0,g=O.length;l<g;l++)if(O[l](e,b,n,!0)){M=!0;break}if(M)break;if(d){if((P=o(e,b))<0)break}else if((P=r(e,b))<0)break;if(y!==e.src.charCodeAt(P-1))break}return(D=d?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(y),f[1]=b,e.line=b,e.parentType=I,R&&function(e,t){var n,i,r=e.level+2;for(n=t+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===r&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,m),!0}},function(e,t,n){"use strict";var i=n(1).normalizeReference,r=n(1).isSpace;e.exports=function(e,t,n,o){var s,a,l,c,u,p,d,h,g,f,m,y,v,C,b,A,x=0,S=e.bMarks[t]+e.tShift[t],I=e.eMarks[t],E=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(S))return!1;for(;++S<I;)if(93===e.src.charCodeAt(S)&&92!==e.src.charCodeAt(S-1)){if(S+1===I)return!1;if(58!==e.src.charCodeAt(S+1))return!1;break}for(c=e.lineMax,b=e.md.block.ruler.getRules("reference"),f=e.parentType,e.parentType="reference";E<c&&!e.isEmpty(E);E++)if(!(e.sCount[E]-e.blkIndent>3||e.sCount[E]<0)){for(C=!1,p=0,d=b.length;p<d;p++)if(b[p](e,E,c,!0)){C=!0;break}if(C)break}for(I=(v=e.getLines(t,E,e.blkIndent,!1).trim()).length,S=1;S<I;S++){if(91===(s=v.charCodeAt(S)))return!1;if(93===s){g=S;break}(10===s||92===s&&++S<I&&10===v.charCodeAt(S))&&x++}if(g<0||58!==v.charCodeAt(g+1))return!1;for(S=g+2;S<I;S++)if(10===(s=v.charCodeAt(S)))x++;else if(!r(s))break;if(!(m=e.md.helpers.parseLinkDestination(v,S,I)).ok)return!1;if(u=e.md.normalizeLink(m.str),!e.md.validateLink(u))return!1;for(a=S=m.pos,l=x+=m.lines,y=S;S<I;S++)if(10===(s=v.charCodeAt(S)))x++;else if(!r(s))break;for(m=e.md.helpers.parseLinkTitle(v,S,I),S<I&&y!==S&&m.ok?(A=m.str,S=m.pos,x+=m.lines):(A="",S=a,x=l);S<I&&(s=v.charCodeAt(S),r(s));)S++;if(S<I&&10!==v.charCodeAt(S)&&A)for(A="",S=a,x=l;S<I&&(s=v.charCodeAt(S),r(s));)S++;return!(S<I&&10!==v.charCodeAt(S)||!(h=i(v.slice(1,g)))||(o||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[h]&&(e.env.references[h]={title:A,href:u}),e.parentType=f,e.line=t+x+1),0))}},function(e,t,n){"use strict";var i=n(1).isSpace;e.exports=function(e,t,n,r){var o,s,a,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(c))||c>=u)return!1;for(s=1,o=e.src.charCodeAt(++c);35===o&&c<u&&s<=6;)s++,o=e.src.charCodeAt(++c);return!(s>6||c<u&&!i(o)||(r||(u=e.skipSpacesBack(u,c),(a=e.skipCharsBack(u,35,c))>c&&i(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,(l=e.push("heading_open","h"+String(s),1)).markup="########".slice(0,s),l.map=[t,e.line],(l=e.push("inline","",0)).content=e.src.slice(c,u).trim(),l.map=[t,e.line],l.children=[],(l=e.push("heading_close","h"+String(s),-1)).markup="########".slice(0,s)),0))}},function(e,t,n){"use strict";e.exports=function(e,t,n){var i,r,o,s,a,l,c,u,p,d,h=t+1,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";h<n&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)){if(e.sCount[h]>=e.blkIndent&&(l=e.bMarks[h]+e.tShift[h])<(c=e.eMarks[h])&&(45===(p=e.src.charCodeAt(l))||61===p)&&(l=e.skipChars(l,p),(l=e.skipSpaces(l))>=c)){u=61===p?1:2;break}if(!(e.sCount[h]<0)){for(r=!1,o=0,s=g.length;o<s;o++)if(g[o](e,h,n,!0)){r=!0;break}if(r)break}}return!!u&&(i=e.getLines(t,h,e.blkIndent,!1).trim(),e.line=h+1,(a=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(p),a.map=[t,e.line],(a=e.push("inline","",0)).content=i,a.map=[t,e.line-1],a.children=[],(a=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(p),e.parentType=d,!0)}},function(e,t,n){"use strict";var i=n(90),r=n(30).HTML_OPEN_CLOSE_TAG_RE,o=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+i.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,i){var r,s,a,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(l=e.src.slice(c,u),r=0;r<o.length&&!o[r][0].test(l);r++);if(r===o.length)return!1;if(i)return o[r][2];if(s=t+1,!o[r][1].test(l))for(;s<n&&!(e.sCount[s]<e.blkIndent);s++)if(c=e.bMarks[s]+e.tShift[s],u=e.eMarks[s],l=e.src.slice(c,u),o[r][1].test(l)){0!==l.length&&s++;break}return e.line=s,(a=e.push("html_block","",0)).map=[t,s],a.content=e.getLines(t,s,e.blkIndent,!0),!0}},function(e,t,n){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},function(e,t,n){"use strict";e.exports=function(e,t){var n,i,r,o,s,a,l=t+1,c=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(a=e.parentType,e.parentType="paragraph";l<u&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3||e.sCount[l]<0)){for(i=!1,r=0,o=c.length;r<o;r++)if(c[r](e,l,u,!0)){i=!0;break}if(i)break}return n=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(s=e.push("paragraph_open","p",1)).map=[t,e.line],(s=e.push("inline","",0)).content=n,s.map=[t,e.line],s.children=[],s=e.push("paragraph_close","p",-1),e.parentType=a,!0}},function(e,t,n){"use strict";var i=n(15),r=n(1).isSpace;function o(e,t,n,i){var o,s,a,l,c,u,p,d;for(this.src=e,this.md=t,this.env=n,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.parentType="root",this.level=0,this.result="",d=!1,a=l=u=p=0,c=(s=this.src).length;l<c;l++){if(o=s.charCodeAt(l),!d){if(r(o)){u++,9===o?p+=4-p%4:p++;continue}d=!0}10!==o&&l!==c-1||(10!==o&&l++,this.bMarks.push(a),this.eMarks.push(l),this.tShift.push(u),this.sCount.push(p),this.bsCount.push(0),d=!1,u=0,p=0,a=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}o.prototype.push=function(e,t,n){var r=new i(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},o.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),r(t));e++);return e},o.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!r(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},o.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,n,i){var o,s,a,l,c,u,p,d=e;if(e>=t)return"";for(u=new Array(t-e),o=0;d<t;d++,o++){for(s=0,p=l=this.bMarks[d],c=d+1<t||i?this.eMarks[d]+1:this.eMarks[d];l<c&&s<n;){if(a=this.src.charCodeAt(l),r(a))9===a?s+=4-(s+this.bsCount[d])%4:s++;else{if(!(l-p<this.tShift[d]))break;s++}l++}u[o]=s>n?new Array(s-n+1).join(" ")+this.src.slice(l,c):this.src.slice(l,c)}return u.join("")},o.prototype.Token=i,e.exports=o},function(e,t,n){"use strict";var i=n(14),r=[["text",n(94)],["newline",n(95)],["escape",n(96)],["backticks",n(97)],["strikethrough",n(31).tokenize],["emphasis",n(32).tokenize],["link",n(98)],["image",n(99)],["autolink",n(100)],["html_inline",n(101)],["entity",n(102)]],o=[["balance_pairs",n(103)],["strikethrough",n(31).postProcess],["emphasis",n(32).postProcess],["text_collapse",n(104)]];function s(){var e;for(this.ruler=new i,e=0;e<r.length;e++)this.ruler.push(r[e][0],r[e][1]);for(this.ruler2=new i,e=0;e<o.length;e++)this.ruler2.push(o[e][0],o[e][1])}s.prototype.skipToken=function(e){var t,n,i=e.pos,r=this.ruler.getRules(""),o=r.length,s=e.md.options.maxNesting,a=e.cache;if(void 0===a[i]){if(e.level<s)for(n=0;n<o&&(e.level++,t=r[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,a[i]=e.pos}else e.pos=a[i]},s.prototype.tokenize=function(e){for(var t,n,i=this.ruler.getRules(""),r=i.length,o=e.posMax,s=e.md.options.maxNesting;e.pos<o;){if(e.level<s)for(n=0;n<r&&!(t=i[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},s.prototype.parse=function(e,t,n,i){var r,o,s,a=new this.State(e,t,n,i);for(this.tokenize(a),s=(o=this.ruler2.getRules("")).length,r=0;r<s;r++)o[r](a)},s.prototype.State=n(105),e.exports=s},function(e,t,n){"use strict";function i(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,t){for(var n=e.pos;n<e.posMax&&!i(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}},function(e,t,n){"use strict";var i=n(1).isSpace;e.exports=function(e,t){var n,r,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;for(n=e.pending.length-1,r=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),o++;o<r&&i(e.src.charCodeAt(o));)o++;return e.pos=o,!0}},function(e,t,n){"use strict";for(var i=n(1).isSpace,r=[],o=0;o<256;o++)r.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){r[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,o=e.pos,s=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o<s){if((n=e.src.charCodeAt(o))<256&&0!==r[n])return t||(e.pending+=e.src[o]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),o++;o<s&&(n=e.src.charCodeAt(o),i(n));)o++;return e.pos=o,!0}}return t||(e.pending+="\\"),e.pos++,!0}},function(e,t,n){"use strict";e.exports=function(e,t){var n,i,r,o,s,a,l=e.pos;if(96!==e.src.charCodeAt(l))return!1;for(n=l,l++,i=e.posMax;l<i&&96===e.src.charCodeAt(l);)l++;for(r=e.src.slice(n,l),o=s=l;-1!==(o=e.src.indexOf("`",s));){for(s=o+1;s<i&&96===e.src.charCodeAt(s);)s++;if(s-o===r.length)return t||((a=e.push("code_inline","code",0)).markup=r,a.content=e.src.slice(l,o).replace(/[ \n]+/g," ").trim()),e.pos=s,!0}return t||(e.pending+=r),e.pos+=r.length,!0}},function(e,t,n){"use strict";var i=n(1).normalizeReference,r=n(1).isSpace;e.exports=function(e,t){var n,o,s,a,l,c,u,p,d,h="",g=e.pos,f=e.posMax,m=e.pos,y=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(l=e.pos+1,(a=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((c=a+1)<f&&40===e.src.charCodeAt(c)){for(y=!1,c++;c<f&&(o=e.src.charCodeAt(c),r(o)||10===o);c++);if(c>=f)return!1;for(m=c,(u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(h=e.md.normalizeLink(u.str),e.md.validateLink(h)?c=u.pos:h=""),m=c;c<f&&(o=e.src.charCodeAt(c),r(o)||10===o);c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<f&&m!==c&&u.ok)for(d=u.str,c=u.pos;c<f&&(o=e.src.charCodeAt(c),r(o)||10===o);c++);else d="";(c>=f||41!==e.src.charCodeAt(c))&&(y=!0),c++}if(y){if(void 0===e.env.references)return!1;if(c<f&&91===e.src.charCodeAt(c)?(m=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?s=e.src.slice(m,c++):c=a+1):c=a+1,s||(s=e.src.slice(l,a)),!(p=e.env.references[i(s)]))return e.pos=g,!1;h=p.href,d=p.title}return t||(e.pos=l,e.posMax=a,e.push("link_open","a",1).attrs=n=[["href",h]],d&&n.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=c,e.posMax=f,!0}},function(e,t,n){"use strict";var i=n(1).normalizeReference,r=n(1).isSpace;e.exports=function(e,t){var n,o,s,a,l,c,u,p,d,h,g,f,m,y="",v=e.pos,C=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(c=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=l+1)<C&&40===e.src.charCodeAt(u)){for(u++;u<C&&(o=e.src.charCodeAt(u),r(o)||10===o);u++);if(u>=C)return!1;for(m=u,(d=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(y=e.md.normalizeLink(d.str),e.md.validateLink(y)?u=d.pos:y=""),m=u;u<C&&(o=e.src.charCodeAt(u),r(o)||10===o);u++);if(d=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<C&&m!==u&&d.ok)for(h=d.str,u=d.pos;u<C&&(o=e.src.charCodeAt(u),r(o)||10===o);u++);else h="";if(u>=C||41!==e.src.charCodeAt(u))return e.pos=v,!1;u++}else{if(void 0===e.env.references)return!1;if(u<C&&91===e.src.charCodeAt(u)?(m=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?a=e.src.slice(m,u++):u=l+1):u=l+1,a||(a=e.src.slice(c,l)),!(p=e.env.references[i(a)]))return e.pos=v,!1;y=p.href,h=p.title}return t||(s=e.src.slice(c,l),e.md.inline.parse(s,e.md,e.env,f=[]),(g=e.push("image","img",0)).attrs=n=[["src",y],["alt",""]],g.children=f,g.content=s,h&&n.push(["title",h])),e.pos=u,e.posMax=C,!0}},function(e,t,n){"use strict";var i=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,r=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var n,o,s,a,l,c,u=e.pos;return!(60!==e.src.charCodeAt(u)||(n=e.src.slice(u)).indexOf(">")<0||(r.test(n)?(a=(o=n.match(r))[0].slice(1,-1),l=e.md.normalizeLink(a),!e.md.validateLink(l)||(t||((c=e.push("link_open","a",1)).attrs=[["href",l]],c.markup="autolink",c.info="auto",(c=e.push("text","",0)).content=e.md.normalizeLinkText(a),(c=e.push("link_close","a",-1)).markup="autolink",c.info="auto"),e.pos+=o[0].length,0)):!i.test(n)||(a=(s=n.match(i))[0].slice(1,-1),l=e.md.normalizeLink("mailto:"+a),!e.md.validateLink(l)||(t||((c=e.push("link_open","a",1)).attrs=[["href",l]],c.markup="autolink",c.info="auto",(c=e.push("text","",0)).content=e.md.normalizeLinkText(a),(c=e.push("link_close","a",-1)).markup="autolink",c.info="auto"),e.pos+=s[0].length,0))))}},function(e,t,n){"use strict";var i=n(30).HTML_TAG_RE;e.exports=function(e,t){var n,r,o,s=e.pos;return!(!e.md.options.html||(o=e.posMax,60!==e.src.charCodeAt(s)||s+2>=o||33!==(n=e.src.charCodeAt(s+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n)||!(r=e.src.slice(s).match(i))||(t||(e.push("html_inline","",0).content=e.src.slice(s,s+r[0].length)),e.pos+=r[0].length,0)))}},function(e,t,n){"use strict";var i=n(25),r=n(1).has,o=n(1).isValidEntityCode,s=n(1).fromCodePoint,a=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,c,u=e.pos,p=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1<p)if(35===e.src.charCodeAt(u+1)){if(c=e.src.slice(u).match(a))return t||(n="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),e.pending+=o(n)?s(n):s(65533)),e.pos+=c[0].length,!0}else if((c=e.src.slice(u).match(l))&&r(i,c[1]))return t||(e.pending+=i[c[1]]),e.pos+=c[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},function(e,t,n){"use strict";e.exports=function(e){var t,n,i,r,o=e.delimiters,s=e.delimiters.length;for(t=0;t<s;t++)if((i=o[t]).close)for(n=t-i.jump-1;n>=0;){if((r=o[n]).open&&r.marker===i.marker&&r.end<0&&r.level===i.level&&(!r.close&&!i.open||void 0===r.length||void 0===i.length||(r.length+i.length)%3!=0)){i.jump=t-n,i.open=!1,r.end=t,r.jump=0;break}n-=r.jump+1}}},function(e,t,n){"use strict";e.exports=function(e){var t,n,i=0,r=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i+=r[t].nesting,r[t].level=i,"text"===r[t].type&&t+1<o&&"text"===r[t+1].type?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}},function(e,t,n){"use strict";var i=n(15),r=n(1).isWhiteSpace,o=n(1).isPunctChar,s=n(1).isMdAsciiPunct;function a(e,t,n,i){this.src=e,this.env=n,this.md=t,this.tokens=i,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[]}a.prototype.pushPending=function(){var e=new i("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},a.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new i(e,t,n);return n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.pendingLevel=this.level,this.tokens.push(r),r},a.prototype.scanDelims=function(e,t){var n,i,a,l,c,u,p,d,h,g=e,f=!0,m=!0,y=this.posMax,v=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;g<y&&this.src.charCodeAt(g)===v;)g++;return a=g-e,i=g<y?this.src.charCodeAt(g):32,p=s(n)||o(String.fromCharCode(n)),h=s(i)||o(String.fromCharCode(i)),u=r(n),(d=r(i))?f=!1:h&&(u||p||(f=!1)),u?m=!1:p&&(d||h||(m=!1)),t?(l=f,c=m):(l=f&&(!m||p),c=m&&(!f||h)),{can_open:l,can_close:c,length:a}},a.prototype.Token=i,e.exports=a},function(e,t,n){"use strict";function i(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function r(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===r(e)}function s(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var a={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,n){var i=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var i=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(i)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var i=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(e){var t=e.re=n(107)(e.__opts__),i=e.__tlds__.slice();function a(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||i.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),i.push(t.src_xn),t.src_tlds=i.join("|"),t.email_fuzzy=RegExp(a(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(a(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(a(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(a(t.tpl_host_fuzzy_test),"i");var l=[];function c(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var i={validate:null,link:null};if(e.__compiled__[t]=i,"[object Object]"===r(n))return function(e){return"[object RegExp]"===r(e)}(n.validate)?i.validate=function(e){return function(t,n){var i=t.slice(n);return e.test(i)?i.match(e)[0].length:0}}(n.validate):o(n.validate)?i.validate=n.validate:c(t,n),void(o(n.normalize)?i.normalize=n.normalize:n.normalize?c(t,n):i.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===r(e)}(n)?c(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var u=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(s).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,t){var n=e.__index__,i=e.__last_index__,r=e.__text_cache__.slice(n,i);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=i+t,this.raw=r,this.text=r,this.url=r}function d(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||a.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=i({},a,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=i({},l,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},u(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},h.prototype.set=function(e){return this.__opts__=i(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,i,r,o,s,a,l;if(this.re.schema_test.test(e))for((a=this.re.schema_search).lastIndex=0;null!==(t=a.exec(e));)if(r=this.testSchemaAt(e,t[2],a.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(i=e.match(this.re.email_fuzzy))&&(o=i.index+i[1].length,s=i.index+i[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s)),this.__index__>=0},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var i=t?e.slice(t):e;this.test(i);)n.push(d(this,t)),i=i.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),u(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,u(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},function(e,t,n){"use strict";e.exports=function(e){var t={};return t.src_Any=n(27).source,t.src_Cc=n(28).source,t.src_Z=n(29).source,t.src_P=n(13).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t,n){(function(e,i){var r;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof i&&i;o.global!==o&&o.window!==o&&o.self;var s,a=2147483647,l=/^xn--/,c=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,h=String.fromCharCode;function g(e){throw new RangeError(p[e])}function f(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n]);return i}function m(e,t){var n=e.split("@"),i="";return n.length>1&&(i=n[0]+"@",e=n[1]),i+f((e=e.replace(u,".")).split("."),t).join(".")}function y(e){for(var t,n,i=[],r=0,o=e.length;r<o;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<o?56320==(64512&(n=e.charCodeAt(r++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),r--):i.push(t);return i}function v(e){return f(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+h(e)})).join("")}function C(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function b(e,t,n){var i=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;i+=36)e=d(e/35);return d(i+36*e/(e+38))}function A(e){var t,n,i,r,o,s,l,c,u,p,h,f=[],m=e.length,y=0,C=128,A=72;for((n=e.lastIndexOf("-"))<0&&(n=0),i=0;i<n;++i)e.charCodeAt(i)>=128&&g("not-basic"),f.push(e.charCodeAt(i));for(r=n>0?n+1:0;r<m;){for(o=y,s=1,l=36;r>=m&&g("invalid-input"),((c=(h=e.charCodeAt(r++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||c>d((a-y)/s))&&g("overflow"),y+=c*s,!(c<(u=l<=A?1:l>=A+26?26:l-A));l+=36)s>d(a/(p=36-u))&&g("overflow"),s*=p;A=b(y-o,t=f.length+1,0==o),d(y/t)>a-C&&g("overflow"),C+=d(y/t),y%=t,f.splice(y++,0,C)}return v(f)}function x(e){var t,n,i,r,o,s,l,c,u,p,f,m,v,A,x,S=[];for(m=(e=y(e)).length,t=128,n=0,o=72,s=0;s<m;++s)(f=e[s])<128&&S.push(h(f));for(i=r=S.length,r&&S.push("-");i<m;){for(l=a,s=0;s<m;++s)(f=e[s])>=t&&f<l&&(l=f);for(l-t>d((a-n)/(v=i+1))&&g("overflow"),n+=(l-t)*v,t=l,s=0;s<m;++s)if((f=e[s])<t&&++n>a&&g("overflow"),f==t){for(c=n,u=36;!(c<(p=u<=o?1:u>=o+26?26:u-o));u+=36)x=c-p,A=36-p,S.push(h(C(p+x%A,0))),c=d(x/A);S.push(h(C(c,0))),o=b(n,v,i==r),n=0,++i}++n,++t}return S.join("")}s={version:"1.4.1",ucs2:{decode:y,encode:v},decode:A,encode:x,toASCII:function(e){return m(e,(function(e){return c.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return m(e,(function(e){return l.test(e)?A(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return s}.call(t,n,t,e))||(e.exports=r)}()}).call(this,n(109)(e),n(110))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},function(e,t,n){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),s=n(2),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.execute=function(){try{t.clientManager.executeAction(this)}catch(e){return}},t.prototype.getJsonTypeName=function(){return s.DisplayAppointmentFormActionType},t}(o.Action);t.default=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),s=n(2),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.execute=function(){try{t.clientManager.executeAction(this)}catch(e){return}},t.prototype.getJsonTypeName=function(){return s.DisplayMessageFormActionType},t}(o.Action);t.default=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),s=n(2),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.parseElement=function(n,i,r){var a;if(!0===t.clientManager.supportMoreAction&&(n instanceof o.ContainerWithActions||n instanceof o.ActionSet)&&(null==i?void 0:i.actions)){var l=i.actions,c=l.length;if(c>2&&"Action.More"!==l[c-1].type){var u=l.splice(1),p={type:s.MoreActionType,title:"".concat(c-1," More Actions"),actions:u};l.push(p),i.actions=l}}var d=e.prototype.parseElement.call(this,n,i,r);if((!(null===(a=null==d?void 0:d.getJsonTypeName())||void 0===a?void 0:a.startsWith("Input."))||d.id)&&("Input.Toggle"!==(null==d?void 0:d.getJsonTypeName())||d.title))return d},t}(o.SerializationContext);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(118),o=function(e,t){var n,r,o=null===(n=e.renderedElement)||void 0===n?void 0:n.children[0],s=null===(r=e.renderedElement)||void 0===r?void 0:r.children[1];t.renderedElement&&(o&&((0,i.clearElementChildren)(o),o.appendChild(t.renderedElement)),s&&(s.style.display="none"))};t.default=function(e){return function(t,n,s){var a,l,c=(a={type:"AdaptiveCard",version:"1.4",body:[{type:"TextBlock",color:"attention",text:1===n.attemptNumber?void 0:"That didn't work... let's try again.",wrap:!0,horizontalAlignment:"center"},{type:"TextBlock",text:'Please login in the popup. You will obtain a magic code. Paste that code below and select "Submit"',wrap:!0,horizontalAlignment:"center"},{type:"Input.Text",id:"magicCode",placeholder:"Enter magic code",isRequired:!0,errorMessage:"Please enter the magic code you received"},{type:"ActionSet",horizontalAlignment:"center",actions:[{type:"Action.Execute",id:r.AuthActionId.SubmitMagicCodeActionId,title:"Submit",verb:"Submit"},{type:"Action.Execute",id:r.AuthActionId.CancelMagicCodeAuthActionId,title:"Cancel",verb:"Cancel",associatedInputs:"none"}]}]},(l=new i.AdaptiveCard).parse(a),l);c.render(),c.onExecuteAction=function(e){if(t.card&&e instanceof i.ExecuteAction)switch(e.id){case r.AuthActionId.SubmitMagicCodeActionId:var s;e.data&&"string"==typeof e.data.magicCode&&(s=e.data.magicCode)&&(o(t,t.card),n.authCode=s,n.retryAsync());break;case r.AuthActionId.CancelMagicCodeAuthActionId:o(t,t.card)}},o(t,c),e.openAuthWindow(s.value)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthActionId=void 0,function(e){e.SubmitMagicCodeActionId="submitMagicCode",e.CancelMagicCodeAuthActionId="cancelMagicCodeAuth"}(t.AuthActionId||(t.AuthActionId={}))},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),a=n(9),l=n(38),c=n(120),u=n(121),p=n(122),d=n(123),h=n(124),g=n(125),f=n(126),m=n(127),y=n(7),v=n(128),C=n(129),b=n(2),A=n(130),x=o(n(131)),S=function(e){function t(t){var n=e.call(this)||this;return n.context=t,n.bodyPadding=12,n.containerPadding=16,n.factKeyTopPadding=16,n.factValueTopPadding=4,n.checkboxRightMargin=8,n.imageMargin=4,n.supportImageProxy=!0,n.supportCustomShowCardAction=!1,n.supportReverseRowForChoiceSet=!1,n.supportDynamicTheming=!0,n.imageAttachmentBaseUrl=v.ImageAttachmentBaseUrl,n.snackBarTimer=null,n.adaptiveCardHostConfig=C.DefaultHostConfigLightMode,n.adaptiveCardDarkModeHostConfig=C.DefaultHostConfigDarkMode,n}return r(t,e),t.prototype.getHostCapabilities=function(){var e;return(null===(e=this.context)||void 0===e?void 0:e.hostCapabilities)?this.context.hostCapabilities:{AADAuthentication:"*"}},t.prototype.registerCustomElements=function(){d.CustomChoiceSetInput.clientManager=this,s.GlobalRegistry.elements.register("Input.ChoiceSet",d.CustomChoiceSetInput),c.CustomDateInput.clientManager=this,s.GlobalRegistry.elements.register("Input.Date",c.CustomDateInput),s.GlobalRegistry.elements.register("FactSet",g.CustomFactSet),s.GlobalRegistry.elements.register("Media",u.CustomMedia),h.CustomToggleInput.clientManager=this,s.GlobalRegistry.elements.register("Input.Toggle",h.CustomToggleInput),A.CustomToggleVisibilityAction.clientManager=this,s.GlobalRegistry.actions.register(s.ToggleVisibilityAction.JsonTypeName,A.CustomToggleVisibilityAction),s.GlobalRegistry.elements.register("Input.Text",m.DesktopCustomTextInput),s.GlobalRegistry.elements.register("Input.Number",f.BaseCustomNumberInput),x.default.clientManager=this,s.GlobalRegistry.actions.register(b.InvokeAddinActionType,x.default);var e=new p.CustomMetaOSHubAdapter;p.CustomMetaOSHubAdapter.clientManager=this,(0,l.initializeOpenLaunchPageAction)(e)},t.prototype.getACHostConfigs=function(e){try{if(this.supportDynamicTheming&&((null==e?void 0:e.stylesheet)&&(0,a.applyCSS)(e.stylesheet),null==e?void 0:e.hostConfig))return[e.hostConfig]}catch(e){}return(null==e?void 0:e.isDarkMode)?[this.adaptiveCardDarkModeHostConfig]:[this.adaptiveCardHostConfig]},t.prototype.getContainerWidth=function(){return(window.innerWidth||document.body.clientWidth)-2*this.bodyPadding-2*this.containerPadding-4},t.prototype.processData=function(e){return e},t.prototype.postRender=function(){this.notifyHeightChange()},t.prototype.storeClientTelemetryProperties=function(e){this.postWebViewMessage("storeClientTelemetryProperties",JSON.stringify(e))},t.prototype.onToggleClicked=function(){},t.prototype.setComponentVisibility=function(e,t,n,i){var r,o,s,a=document.getElementById("actionable-message"),l=document.getElementById("mainframe"),c=document.getElementById("amWrapperDiv"),u="640px",p=null!==(o=null===(r=this.context)||void 0===r?void 0:r.backgroundColor)&&void 0!==o?o:"";if(c&&i)if(null===(s=this.context)||void 0===s?void 0:s.hostConfig){var d="center";this.context.hostConfig.cardMaximumWidth&&"number"==typeof(u=this.context.hostConfig.cardMaximumWidth)&&(u+="px"),this.context.hostConfig.cardHorizontalAlignment&&(d=this.context.hostConfig.cardHorizontalAlignment),this.context.hostConfig.cardHostBackgroundColor&&(p=this.context.hostConfig.cardHostBackgroundColor),c.style.maxWidth=u,"center"===d&&(c.style.margin="auto")}else c.style.margin="auto",c.style.maxWidth=u;p&&(document.body.style.backgroundColor=p),c&&(c.style.display=e?"block":"none"),a&&(a.style.display=e?"block":"none"),l&&(l.style.display=n?"block":"none"),!1===e&&this.postWebViewMessage("hideCardAndShowBody")},t.prototype.resetWebview=function(){var e=document.getElementById("actionable-message"),t=document.getElementById("mainframe"),n=document.getElementById("amWrapperDiv"),i=document.querySelectorAll("#"+b.CustomHostConfigStyleId);n&&(n.style.display="none",n.style.margin="",n.style.maxWidth="",n.parentElement&&(this.context&&this.context.backgroundColor?document.body.style.backgroundColor=this.context.backgroundColor:document.body.style.backgroundColor="")),e&&(e.style.display="none",e.innerHTML=""),t&&(t.style.display="none"),i.forEach((function(e){e.parentNode.removeChild(e)}));var r=document.getElementById("amSnackBar");r&&(r.innerHTML="",r.className=""),this.snackBarTimer&&clearTimeout(this.snackBarTimer);var o=document.getElementsByClassName("ac-overlay-spinner")[0];o&&o.parentNode.removeChild(o)},t.prototype.displayLoginMessage=function(e,t,n){},t.prototype.displaySnackMessage=function(e,t){var n=this,i=5e3;this.context&&this.context.snackbarTimeout&&"number"==typeof this.context.snackbarTimeout&&(i=this.context.snackbarTimeout);var r=document.getElementById("amSnackBar");r.innerHTML="",r.className="",r.classList.add("amsnackbar");var o=document.getElementById("amSnackBarSpan");o||(o=document.createElement("span")),o.className="",o.id="amSnackBarSpan",t?o.classList.add("success-icon"):o.classList.add("error-icon"),r.appendChild(o);var s=document.getElementById("snackMessage");s||(s=document.createElement("span")),s.id="snackMessage",s.setAttribute("style","padding-left:8px;"),s.setAttribute("role","alert"),s.innerHTML=e,r.appendChild(s),r.classList.add("show"),this.snackBarTimer&&(clearTimeout(this.snackBarTimer),this.snackBarTimer=null),this.snackBarTimer=setTimeout((function(){r.classList.add("fadeout-hide"),r.classList.remove("show"),n.snackBarTimer=null}),i)},t.prototype.executeAction=function(e,t){var n,i;try{var r={potentialAction:e.potentialAction,isAutoInvokeAction:null!==(n=e.isAutoInvokeAction)&&void 0!==n&&n,isAdaptiveCardAction:!0},o=null===(i=e.getJsonTypeName)||void 0===i?void 0:i.call(e);Object.prototype.hasOwnProperty.call(r.potentialAction,"type")&&Object.prototype.hasOwnProperty.call(r.potentialAction,"fallback")&&o!==r.potentialAction.type&&(r.potentialAction=r.potentialAction.fallback),e.data&&Array.isArray(e.data)&&(r.data=JSON.stringify(e.data)),this.postWebViewMessage("onActionSubmit",JSON.stringify(r))}catch(e){console.log(e)}},t.prototype.executeAuthFlowForHttpAction=function(e,t,n,i){},t.prototype.openAuthWindow=function(e){this.postWebViewMessage("openAuthWindow",e)},t.prototype.updateExplicitMessageCardProperty=function(){},t.prototype.logEventTelemetry=function(e){var t={eventName:e};this.postWebViewMessage("logEventTelemetry",JSON.stringify(t))},t.prototype.logEventTelemetryWithActionId=function(e,t){var n={eventName:e,actionId:t};this.postWebViewMessage("logEventTelemetry",JSON.stringify(n))},t.prototype.logTimeStamp=function(e,t){},t.prototype.logException=function(e){},t.prototype.logMessage=function(e){},t.prototype.notifyHeightChange=function(){var e,t=document&&document.documentElement?document.documentElement.offsetHeight:0,n=((e={})[b.HeightProperty]=t,e);this.postWebViewMessage("notifyHeightChange",JSON.stringify(n))},t.prototype.notifyRefreshCardResponse=function(e){this.postWebViewMessage("handleRefreshCard",e)},t.prototype.logInitialCardProcessingEnd=function(){this.postWebViewMessage("logInitialCardProcessingEnd")},t.prototype.logInitialCardRenderingEnd=function(){this.postWebViewMessage("logInitialCardRenderingEnd")},t.prototype.logFinalCardProcessingEnd=function(){this.postWebViewMessage("logFinalCardProcessingEnd")},t.prototype.logFinalCardRenderingEnd=function(){this.postWebViewMessage("logFinalCardRenderingEnd")},t.prototype.executeShowCardAction=function(e,t){try{var n={potentialAction:e.potentialAction,isAutoInvokeAction:e.isAutoInvokeAction,isAdaptiveCardAction:!0,isShowCardExpanded:t};null!=e.data&&e.data.length>0&&(n.data=JSON.stringify(e.data)),this.postWebViewMessage("onActionSubmit",JSON.stringify(n))}catch(e){}},t.prototype.HandleHyperlinkClickEvent=function(e){this.postWebViewMessage("onHyperlinkClicked",e)},t.prototype.getWebview=function(){var e=window&&window.chrome;return e&&e.webview},t.prototype.postWebViewMessage=function(e,t){var n=this.getWebview();n&&"function"==typeof n.postMessage&&n.postMessage({notificationType:e,asyncContext:t})},t.prototype.getImageProxyUrl=function(){return v.DefaultImageProxyUrl},t}(y.WindowsBaseClientManager);t.default=S},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CustomDateInput=void 0;var o=n(0),s=n(9),a=n(2),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selectedDate=null,t}return r(t,e),t.prototype.internalRender=function(){var t=this;this.defaultValue&&(this.selectedDate=(0,s.formatDate)(this.defaultValue)),this.placeholder=this.placeholder||a.DefaultPlaceholderTextForDateInput;var n=e.prototype.internalRender.call(this);return n.setAttribute("aria-label",this.getAriaLabel(this.placeholder,this.selectedDate)),n.oninput=function(){t.selectedDate=(0,s.formatDate)(t.value),n.setAttribute("aria-label",t.getAriaLabel(t.placeholder,t.selectedDate)),t.valueChanged()},n},t.prototype.getAriaLabel=function(e,t){return"Date Input "+e+" "+(t||"")+" Use numeric keys or arrow keys to change value. Use tab or arrow keys to move to next field"},t.clientManager=null,t}(o.DateInput);t.CustomDateInput=l},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CustomMedia=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.internalRender=function(){var t=this,n=e.prototype.internalRender.call(this),i=null==n?void 0:n.children[0];if(!i)return n;var r=i.querySelector("."+this.hostConfig.makeCssClassName("ac-media-playButton"));return r&&(r.addEventListener("click",(function(){var e=t.renderedElement.querySelector("audio")||t.renderedElement.querySelector("video");e&&e.setAttribute("controlsList","nodownload")})),r.addEventListener("keypress",(function(e){if("Enter"==e.code||"Space"==e.code){var n=t.renderedElement.querySelector("audio")||t.renderedElement.querySelector("video");n&&n.setAttribute("controlsList","nodownload")}}))),n},t}(n(0).Media);t.CustomMedia=o},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CustomMetaOSHubAdapter=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.tryOpenMetaOSApp=function(e){try{return t.clientManager.executeAction(e),Promise.resolve()}catch(e){return Promise.reject()}},t}(n(38).MetaOSHubAdapter);t.CustomMetaOSHubAdapter=o},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CustomChoiceSetInput=void 0;var o=n(0),s=n(2),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.toggleInputs=[],t.labels=[],t}return r(t,e),t.prototype.internalRender=function(){var e=this;if(this.isMultiSelect){u=this.defaultValue?this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator):null,(c=document.createElement("div")).className="ac-input ac-multiInput",c.style.width="100%",this.toggleInputs=[];for(var t=0,n=this.choices;t<n.length;t++)a=n[t],c.appendChild(this.renderChoiceInputElement(a,!0,u));return c}if(this.isCompact){this.placeholder=this.placeholder||s.DefaultPlaceHolderTextForChoiceSetInput,this.compactSelectElement=document.createElement("select"),this.compactSelectElement.className=this.hostConfig.makeCssClassName("ac-input","ac-dropdown"),this.compactSelectElement.style.width="100%";var i=document.createElement("option");i.selected=!0,i.disabled=!0,i.hidden=!0,i.value="",i.text=this.placeholder,this.compactSelectElement.appendChild(i);for(var r=0,o=this.choices;r<o.length;r++){var a=o[r],l=document.createElement("option");l.text=a.title,l.value=a.value,l.setAttribute("aria-label",a.title),a.value===this.defaultValue&&(l.selected=!0),this.compactSelectElement.appendChild(l)}return this.compactSelectElement.onchange=function(){e.valueChanged()},this.compactSelectElement}var c,u=this.defaultValue?[this.defaultValue]:null;(c=document.createElement("div")).className="ac-input ac-singleInput",c.style.width="100%",this.toggleInputs=[];for(var p=0,d=this.choices;p<d.length;p++)a=d[p],c.appendChild(this.renderChoiceInputElement(a,!1,u));return c},t.prototype.updateInputControlAriaLabelledBy=function(){if(this.isMultiSelect||!this.isCompact)for(var t=this.getAllLabelIds(),n=0;n<this.toggleInputs.length;n++){var i=t.join(" "),r=this.labels[n];r&&r.id&&(i+=" "+r.id),i?this.toggleInputs[n].setAttribute("aria-labelledby",i):this.toggleInputs[n].removeAttribute("aria-labelledby")}else e.prototype.updateInputControlAriaLabelledBy.call(this)},t.prototype.focus=function(){this.isMultiSelect||"expanded"===this.style?this.toggleInputs.length>0&&this.toggleInputs[0].focus():e.prototype.focus.call(this)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.isMultiSelect){if(!this.toggleInputs||0==this.toggleInputs.length)return null;for(var e="",t=0,n=this.toggleInputs;t<n.length;t++)(o=n[t]).checked&&(""!==e&&(e+=this.hostConfig.choiceSetInputValueSeparator),e+=o.value);return""===e?null:e}if(this.isCompact)return this.compactSelectElement?this.compactSelectElement.value:null;if(!this.toggleInputs||0==this.toggleInputs.length)return null;for(var i=0,r=this.toggleInputs;i<r.length;i++){var o;if((o=r[i]).checked)return o.value}return null},enumerable:!1,configurable:!0}),t.prototype.renderChoiceInputElement=function(e,n,i){var r=this,s=document.createElement("input");s.type=n?"checkbox":"radio",s.value=e.value,s.style.margin="0",s.style.display="inline-block",s.style.verticalAlign="middle",s.style.flex="0 0 auto",s.style.marginRight=(t.clientManager.checkboxRightMargin||"0")+"px",s.style.marginTop="8px",s.style.marginBottom="8px",s.setAttribute("aria-label",e.title),s.onchange=s.onclick=function(e){e.stopPropagation(),r.valueChanged()},n||(s.name=this.id,s.setAttribute("aria-hidden","true")),this.isRequired&&s.setAttribute("aria-required","true"),i&&e.value&&i.indexOf(e.value)>=0&&(s.checked=!0),this.toggleInputs.push(s);var a=new o.TextBlock;a.setParent(this),a.forElementId=s.id,a.hostConfig=this.hostConfig,a.text=e.title,a.useMarkdown=o.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,a.wrap=this.wrap;var l=a.render();l.style.display="inline-block",l.style.flex="1 1 auto",l.style.marginLeft="10px",l.style.marginRight="16px",l.style.paddingLeft="2px",l.style.verticalAlign="middle",n||l.setAttribute("aria-hidden","true"),this.labels.push(l);var c=document.createElement("div");return c.style.display="flex",c.style.alignItems="center",c.appendChild(s),c.appendChild(l),c.setAttribute("label",e.title),c.setAttribute("aria-label",e.title),c.setAttribute("role",n?"checkbox":"radio"),s.checked?c.setAttribute("aria-checked","true"):c.setAttribute("aria-checked","false"),c.style.outline="none",n?(c.onclick=function(){s.checked=!s.checked,r.valueChanged(),s.checked?c.setAttribute("aria-checked","true"):c.setAttribute("aria-checked","false")},l.onclick=function(e){e.stopPropagation(),s.checked=!s.checked,r.valueChanged(),s.checked?c.setAttribute("aria-checked","true"):c.setAttribute("aria-checked","false"),s.focus()}):(c.onclick=function(){r.valueChanged(),s.checked=!0},l.onclick=function(e){e.stopPropagation(),s.checked=!0,r.valueChanged(),s.focus()}),s.onfocus=function(){l.classList.add("checkBoxFocus")},s.addEventListener("focusout",(function(){l.classList.remove("checkBoxFocus")})),l.addEventListener("focusout",(function(){l.classList.remove("checkBoxFocus")})),c},t.clientManager=null,t}(o.ChoiceSetInput);t.CustomChoiceSetInput=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CustomToggleInput=void 0;var o=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.internalRender=function(){var e=this,n=document.createElement("div");if(n.className=this.hostConfig.makeCssClassName("ac-toggleinput"),n.style.width="100%",n.style.display="flex",n.style.alignItems="center",this.checkboxInputElement=document.createElement("input"),this.checkboxInputElement.id=(0,o.generateUniqueId)(),this.checkboxInputElement.type="checkbox",this.checkboxInputElement.style.display="inline-block",this.checkboxInputElement.style.verticalAlign="middle",this.checkboxInputElement.style.margin="0",this.checkboxInputElement.style.flex="0 0 auto",this.checkboxInputElement.setAttribute("aria-label",this.title||this.getJsonTypeName()),this.checkboxInputElement.tabIndex=0,this.defaultValue===this.valueOn&&(this.checkboxInputElement.checked=!0),this.checkboxInputElement.onchange=function(){e.valueChanged()},n.appendChild(this.checkboxInputElement),this.title){var i=new o.TextBlock;i.setParent(this),i.forElementId=this.checkboxInputElement.id,i.hostConfig=this.hostConfig,i.text=this.title||this.getJsonTypeName(),i.useMarkdown=o.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,i.wrap=this.wrap,this.checkboxInputLabelElement=i.render(),this.checkboxInputLabelElement&&(this.checkboxInputLabelElement.id=(0,o.generateUniqueId)(),this.checkboxInputLabelElement.style.display="inline-block",this.checkboxInputLabelElement.style.flex="1 1 auto",this.checkboxInputLabelElement.style.marginLeft="6px",this.checkboxInputLabelElement.style.verticalAlign="middle",n.appendChild(this.checkboxInputLabelElement),this.checkboxInputElement.addEventListener("focus",(function(){e.checkboxInputLabelElement.classList.add("checkBoxFocus")})),this.checkboxInputElement.addEventListener("focusout",(function(){e.checkboxInputLabelElement.classList.remove("checkBoxFocus")})),this.checkboxInputElement.style.marginRight=t.clientManager.checkboxRightMargin+"px")}return n},t.prototype.focus=function(){this.checkboxInputElement&&this.checkboxInputElement.focus()},t.prototype.isSet=function(){return this.isRequired?this.value===this.valueOn:!!this.value},Object.defineProperty(t.prototype,"value",{get:function(){return this.checkboxInputElement?this.checkboxInputElement.checked?this.valueOn:this.valueOff:void 0},enumerable:!1,configurable:!0}),t.prototype.updateInputControlAriaLabelledBy=function(){if(this.checkboxInputElement){var e=this.getAllLabelIds().join(" ");this.checkboxInputLabelElement&&this.checkboxInputLabelElement.id&&(e+=" "+this.checkboxInputLabelElement.id),e?this.checkboxInputElement.setAttribute("aria-labelledby",e):this.checkboxInputElement.removeAttribute("aria-labelledby")}},t.clientManager=null,t}(o.ToggleInput);t.CustomToggleInput=s},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CustomFactSetMobile=t.CustomFactSet=void 0;var o=n(0),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.internalParse=function(t,n){if(e.prototype.internalParse.call(this,t,n),this.facts=[],t.facts)for(var i=t.facts,r=0;r<i.length;r++)if(i[r].title&&i[r].value){var s=new o.Fact;s.name=i[r].title,s.value=i[r].value,this.facts.push(s)}},t}(o.FactSet);t.CustomFactSet=s;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.internalRender=function(){var e=null;if(this.facts.length){(e=document.createElement("div")).style.borderWidth="0px",e.style.borderSpacing="0px",e.style.borderStyle="none",e.style.borderCollapse="collapse",e.style.display="block",e.style.overflow="hidden";for(var n=!0,i=0,r=this.facts;i<r.length;i++){var o=r[i],s=this.createTextBlock(o.name,this.hostConfig.factSet.title),a=this.createTextBlock(o.value,this.hostConfig.factSet.value),l=s.render(),c=a.render();this.hostConfig.factSet,n?n=!1:(l.style.marginTop=t.clientManager.factKeyTopPadding+"px",c.style.marginTop=t.clientManager.factValueTopPadding+"px"),e.appendChild(l),e.appendChild(c)}}return e},t.prototype.createTextBlock=function(e,t){var n=new o.TextBlock;return n.hostConfig=this.hostConfig,n.text=e,n.size=t.size,n.color=t.color,n.isSubtle=t.isSubtle,n.weight=t.weight,n.wrap=t.wrap,n.spacing=o.Spacing.None,n},t.clientManager=null,t}(s);t.CustomFactSetMobile=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CustomNumberInput=t.BaseCustomNumberInput=void 0;var o=n(0),s=n(7),a=n(2),l=function(e){function t(){var t=e.call(this)||this;return t.originalErrorMessage="",t.onValueChanged=t.validateOnChange,t}return r(t,e),t.prototype.internalRender=function(){"number"==typeof this.min&&"number"==typeof this.max&&this.min>this.max&&(this.min=null,this.max=null),this.originalErrorMessage=this.errorMessage||a.DefaultErrorMessage,this.placeholder=this.placeholder||a.DefaultPlaceHolderTextForNumberInput;var t=e.prototype.internalRender.call(this);return this.addNumInputEventListeners(t),t},t.prototype.addNumInputEventListeners=function(e){e.addEventListener("paste",(function(e){var t=e.clipboardData.getData("text/plain");Number.isNaN(parseFloat(t))&&e.preventDefault()})),e.addEventListener("keydown",(function(e){var t;t=e.key,!Number.isNaN(parseInt(t))||function(t){if("ArrowLeft"===t||"ArrowUp"===t||"ArrowDown"===t||"ArrowRight"===t||"Backspace"===t||"Tab"===t||"Enter"===t||"Shift"===t||"End"===t||"Home"===t)return!0;var n=e.target;return"Minus"===t&&n.validity.valid&&!n.value.length}(e.code)||function(e,t){return t&&("keyC"===e||"KeyV"===e||"KeyX"===e)}(e.code,e.ctrlKey||e.metaKey)||function(e){return!e.shiftKey&&"Period"===e.code&&e.target.value.split(".").length<=1}(e)||e.preventDefault()}))},t.prototype.validateOnChange=function(e){var t=e.errorMessage;e.isSet()&&!e.isValid()?void 0!==e.min&&void 0!==e.max?e.errorMessage="Select a value between "+e.min+" and "+e.max:void 0!==e.min?e.errorMessage="Select a value greater than "+e.min:void 0!==e.max&&(e.errorMessage="Select a value less than "+e.max):e.isRequired&&!e.isSet()?e.errorMessage=e.originalErrorMessage:e.errorMessage="",t!==e.errorMessage&&e.validateValue()},t}(o.NumberInput);t.BaseCustomNumberInput=l;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.openNumberPop=function(){var e,n={id:this.id,placeholder:this.placeholder,isRequired:this.isRequired,min:this.min,max:this.max,value:isNaN(this.value)?"":this.value.toString()};null===(e=t.clientManager)||void 0===e||e.openNumberPop(n),t.clientManager instanceof s.IOSBaseClientManager&&(this.inputControlContainerElement.setAttribute("aria-labelledby",this.renderedInputControlElement.id),t.clientManager.focusableElement=this.inputControlContainerElement)},t.prototype.setNumber=function(e){this.numberInputElementReference.value=e,this.valueChanged()},t.prototype.overrideInternalRender=function(){var n,i=this,r=e.prototype.overrideInternalRender.call(this);return r?((null===(n=t.clientManager.context)||void 0===n?void 0:n.isShowCardJson)||(this.numberInputElementReference.readOnly=!1,t.clientManager instanceof s.IOSBaseClientManager&&this.numberInputElementReference.removeAttribute("aria-label"),this.numberInputElementReference.onfocus=function(){i.numberInputElementReference.blur(),i.openNumberPop()},r.numberInputInstance=this),r):r},t.prototype.internalRender=function(){var t=e.prototype.internalRender.call(this);return this.numberInputElementReference=t,this.getRestoredState(t),t},t.prototype.getRestoredState=function(e){Object.prototype.hasOwnProperty.call(t.clientManager.restoredInputs,this.id)&&(e.value=t.clientManager.restoredInputs[this.id])},t.clientManager=null,t}(l);t.CustomNumberInput=c},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CustomTextInput=t.DesktopCustomTextInput=void 0;var o=n(0),s=n(9),a=n(2),l=n(7),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.overrideInternalRender=function(){var t=e.prototype.overrideInternalRender.call(this),n=null==t?void 0:t.querySelector(".ac-inlineActionButton");return n&&!n.title&&(n.title=this.getTitleForInlineActionButton(n)),t},t.prototype.internalRender=function(){return this.placeholder=this.placeholder||a.DefaultPlaceHolderTextForTextInput,e.prototype.internalRender.call(this)},t.prototype.getTitleForInlineActionButton=function(e){var t,n=e.textContent;if((null===(t=this.inlineAction)||void 0===t?void 0:t.getJsonTypeName())===o.OpenUrlAction.JsonTypeName){var i=this.inlineAction.getHref();return"".concat(n,". URL: ").concat(i)}return n},t}(o.TextInput);t.DesktopCustomTextInput=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isMultilineTypeGuard=function(e){return t.isMultiline},t}return r(t,e),t.prototype.openTextPop=function(){var e;this.actualValue=this.actualValue?this.actualValue:this.value;var n={id:this.id,placeholder:this.placeholder,isRequired:this.isRequired,isMultiline:this.actualMultiline,maxLength:this.maxLength,style:this.style,value:this.actualValue};null===(e=t.clientManager)||void 0===e||e.openTextPop(n),t.clientManager instanceof l.IOSBaseClientManager&&(this.inputControlContainerElement.setAttribute("aria-labelledby",this.renderedInputControlElement.id),t.clientManager.focusableElement=this.inputControlContainerElement)},t.prototype.setText=function(e,t){this.actualValue=e,this.textInputElementReference.value=t,this.valueChanged()},t.prototype.overrideInternalRender=function(){var n,i=this,r=e.prototype.overrideInternalRender.call(this);return r?((null===(n=t.clientManager.context)||void 0===n?void 0:n.isShowCardJson)||(this.textInputElementReference.removeAttribute("aria-label"),this.textInputElementReference.readOnly=!1,this.textInputElementReference.onfocus=function(){i.textInputElementReference.blur(),i.openTextPop()},r.textInputInstance=this),r):r},t.prototype.internalRender=function(){var n,i=this;this.actualMultiline=this.isMultiline,this.placeholder=this.placeholder||a.DefaultPlaceHolderTextForTextInput,(null===(n=t.clientManager.context)||void 0===n?void 0:n.isShowCardJson)||(this.isMultiline=!1);var r=(this.isMultiline,e.prototype.internalRender.call(this));return this.textInputElementReference=r,this.getRestoredState(r),t.clientManager.supportDynamicTextArea&&this.isMultilineTypeGuard(r)&&(r.rows=1,r.style.overflowY="hidden",r.style.resize="none",r.style.boxSizing="border-box",document.addEventListener("input",(function(e){var t=e.target;"textarea"===t.tagName.toLowerCase()&&(r.style.height="0",i.autoExpand(t,41,90))}),!1)),r},t.prototype.autoExpand=function(e,t,n){var i=parseInt(window.getComputedStyle(e).height)-e.clientHeight;e.style.height="0",e.style.overflowY="hidden";var r=e.scrollHeight+i;r<t&&(r=t),r>n&&(e.style.overflowY="visible",r=n),e.style.height=r+"px"},t.prototype.getRestoredState=function(e){Object.prototype.hasOwnProperty.call(t.clientManager.restoredInputs,this.id)&&(this.actualValue=t.clientManager.restoredInputs[this.id],e.value=(0,s.replaceAll)(this.actualValue,"\n"," "))},t.clientManager=null,t}(o.TextInput);t.CustomTextInput=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageAttachmentBaseUrl=t.DefaultImageProxyUrl=void 0,t.DefaultImageProxyUrl="http://www.actionablemessage.olk/imgproxy?src=",t.ImageAttachmentBaseUrl="cid:"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultHostConfigDarkMode=t.DefaultHostConfigLightMode=void 0,t.DefaultHostConfigLightMode={choiceSetInputValueSeparator:",",supportsInteractivity:!0,fontFamily:"Segoe UI",spacing:{small:8,default:16,medium:16,large:24,extraLarge:32,padding:16},separator:{lineThickness:1,lineColor:"#E1E1E1"},fontSizes:{small:12,default:14,medium:16,large:18,extraLarge:20},fontWeights:{lighter:300,default:400,bolder:500},imageSizes:{small:40,medium:160,large:320},containerStyles:{default:{foregroundColors:{default:{default:"#000000",subtle:"#000000"},dark:{default:"#000000",subtle:"#000000"},light:{default:"#605E5C",subtle:"#605E5C"},accent:{default:"#005A9E",subtle:"#005A9E"},good:{default:"#0B6A0B",subtle:"#0B6A0B"},warning:{default:"#8F6900",subtle:"#8F6900"},attention:{default:"#D13438",subtle:"#D13438"},hyperlink:{default:"#005A9E",subtle:"#005A9E"},white:{default:"#FFFFFF",subtle:"#FFFFFF"}},backgroundColor:"#FFFFFF"},emphasis:{foregroundColors:{default:{default:"#000000",subtle:"#000000"},dark:{default:"#000000",subtle:"#000000"},light:{default:"#605E5C",subtle:"#605E5C"},accent:{default:"#005A9E",subtle:"#005A9E"},good:{default:"#0B6A0B",subtle:"#0B6A0B"},warning:{default:"#8F6900",subtle:"#8F6900"},attention:{default:"#D13438",subtle:"#D13438"},hyperlink:{default:"#005A9E",subtle:"#005A9E"},white:{default:"#FFFFFF",subtle:"#FFFFFF"}},backgroundColor:"#F8F8F8"},accent:{foregroundColors:{default:{default:"#000000",subtle:"#605E5C"},dark:{default:"#000000",subtle:"#605E5C"},light:{default:"#605E5C",subtle:"#605E5C"},accent:{default:"#005A9E",subtle:"#005A9E"},good:{default:"#0B6A0B",subtle:"#0B6A0B"},warning:{default:"#8F6900",subtle:"#8F6900"},attention:{default:"#D13438",subtle:"#D13438"},hyperlink:{default:"#005A9E",subtle:"#005A9E"},white:{default:"#FFFFFF",subtle:"#FFFFFF"}},backgroundColor:"#EBF6FF"},good:{foregroundColors:{default:{default:"#000000",subtle:"#605E5C"},dark:{default:"#000000",subtle:"#605E5C"},light:{default:"#605E5C",subtle:"#605E5C"},accent:{default:"#005A9E",subtle:"#005A9E"},good:{default:"#0B6A0B",subtle:"#0B6A0B"},warning:{default:"#8F6900",subtle:"#8F6900"},attention:{default:"#D13438",subtle:"#D13438"},hyperlink:{default:"#005A9E",subtle:"#005A9E"},white:{default:"#FFFFFF",subtle:"#FFFFFF"}},backgroundColor:"#F1FFF1"},warning:{foregroundColors:{default:{default:"#000000",subtle:"#605E5C"},dark:{default:"#000000",subtle:"#605E5C"},light:{default:"#605E5C",subtle:"#605E5C"},accent:{default:"#005A9E",subtle:"#005A9E"},good:{default:"#0B6A0B",subtle:"#0B6A0B"},warning:{default:"#8F6900",subtle:"#8F6900"},attention:{default:"#D13438",subtle:"#D13438"},hyperlink:{default:"#005A9E",subtle:"#005A9E"},white:{default:"#FFFFFF",subtle:"#FFFFFF"}},backgroundColor:"#FFF8E4"},attention:{foregroundColors:{default:{default:"#000000",subtle:"#605E5C"},dark:{default:"#000000",subtle:"#605E5C"},light:{default:"#605E5C",subtle:"#605E5C"},accent:{default:"#005A9E",subtle:"#005A9E"},good:{default:"#0B6A0B",subtle:"#0B6A0B"},warning:{default:"#8F6900",subtle:"#8F6900"},attention:{default:"#D13438",subtle:"#D13438"},hyperlink:{default:"#005A9E",subtle:"#005A9E"},white:{default:"#FFFFFF",subtle:"#FFFFFF"}},backgroundColor:"#FFF2F3"}},actions:{maxActions:5,spacing:"",buttonSpacing:8,showCard:{actionMode:"Inline",style:"default"},preExpandSingleShowCardAction:!0,actionsOrientation:"Horizontal"},adaptiveCard:{allowCustomStyle:!0},imageSet:{imageSize:"Medium",maxImageHeight:102},factSet:{title:{size:"Default",color:"Default",isSubtle:!0,weight:"Lighter",wrap:!0},value:{size:"Default",color:"Default",isSubtle:!1,weight:"Default",wrap:!0},spacing:8}},t.DefaultHostConfigDarkMode={choiceSetInputValueSeparator:",",supportsInteractivity:!0,fontFamily:"Segoe UI",spacing:{small:8,default:16,medium:16,large:24,extraLarge:32,padding:16},separator:{lineThickness:1,lineColor:"#EEEEEE"},fontSizes:{small:12,default:14,medium:16,large:18,extraLarge:20},fontWeights:{lighter:300,default:400,bolder:500},imageSizes:{small:40,medium:160,large:320},containerStyles:{default:{foregroundColors:{default:{default:"#FFFFFF",subtle:"#D2D0CE"},dark:{default:"#FFFFFF",subtle:"#FFFFFF"},light:{default:"#D2D0CE",subtle:"#D2D0CE"},accent:{default:"#62D3FF",subtle:"#62D3FF"},good:{default:"#6DDC96",subtle:"#6DDC96"},warning:{default:"#F8D22A",subtle:"#F8D22A"},attention:{default:"#FFB2BD",subtle:"#FFB2BD"}},backgroundColor:"#212121"},emphasis:{foregroundColors:{default:{default:"#FFFFFF",subtle:"#D2D0CE"},dark:{default:"#FFFFFF",subtle:"#FFFFFF"},light:{default:"#D2D0CE",subtle:"#D2D0CE"},accent:{default:"#62D3FF",subtle:"#62D3FF"},good:{default:"#6DDC96",subtle:"#6DDC96"},warning:{default:"#F8D22A",subtle:"#F8D22A"},attention:{default:"#FFB2BD",subtle:"#FFB2BD"}},backgroundColor:"#404040"},accent:{foregroundColors:{default:{default:"#FFFFFF",subtle:"#D2D0CE"},dark:{default:"#FFFFFF",subtle:"#FFFFFF"},light:{default:"#D2D0CE",subtle:"#D2D0CE"},accent:{default:"#62D3FF",subtle:"#62D3FF"},good:{default:"#6DDC96",subtle:"#6DDC96"},warning:{default:"#F8D22A",subtle:"#F8D22A"},attention:{default:"#FFB2BD",subtle:"#FFB2BD"}},backgroundColor:"#025498"},good:{foregroundColors:{default:{default:"#FFFFFF",subtle:"#D2D0CE"},dark:{default:"#FFFFFF",subtle:"#FFFFFF"},light:{default:"#D2D0CE",subtle:"#D2D0CE"},accent:{default:"#62D3FF",subtle:"#62D3FF"},good:{default:"#6DDC96",subtle:"#6DDC96"},warning:{default:"#F8D22A",subtle:"#F8D22A"},attention:{default:"#FFB2BD",subtle:"#FFB2BD"}},backgroundColor:"#076107"},warning:{foregroundColors:{default:{default:"#FFFFFF",subtle:"#D2D0CE"},dark:{default:"#FFFFFF",subtle:"#FFFFFF"},light:{default:"#D2D0CE",subtle:"#D2D0CE"},accent:{default:"#62D3FF",subtle:"#62D3FF"},good:{default:"#6DDC96",subtle:"#6DDC96"},warning:{default:"#F8D22A",subtle:"#F8D22A"},attention:{default:"#FFB2BD",subtle:"#FFB2BD"}},backgroundColor:"#704B1B"},attention:{foregroundColors:{default:{default:"#FFFFFF",subtle:"#D2D0CE"},dark:{default:"#FFFFFF",subtle:"#FFFFFF"},light:{default:"#D2D0CE",subtle:"#D2D0CE"},accent:{default:"#62D3FF",subtle:"#62D3FF"},good:{default:"#6DDC96",subtle:"#6DDC96"},warning:{default:"#F8D22A",subtle:"#F8D22A"},attention:{default:"#FFB2BD",subtle:"#FFB2BD"}},backgroundColor:"#8B2323"}},actions:{maxActions:5,spacing:"",buttonSpacing:8,showCard:{actionMode:"Inline",style:"default"},preExpandSingleShowCardAction:!0,actionsOrientation:"Horizontal"},adaptiveCard:{allowCustomStyle:!0},imageSet:{imageSize:"Medium",maxImageHeight:102},factSet:{title:{size:"Default",color:"Default",isSubtle:!0,weight:"Lighter",wrap:!0},value:{size:"Default",color:"Default",isSubtle:!1,weight:"Default",wrap:!0},spacing:8}}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CustomToggleVisibilityAction=void 0;var o=n(0),s=n(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.execute=function(){if(this.parent){for(var e=[],n=this.parent.getRootElement(),i=0,r=Object.entries(this.targetElements);i<r.length;i++){var o=r[i],a=o[0],c=o[1],u=n.getElementById(a);if(u){var p=!1;"boolean"==typeof c?(p=c&&!u.isVisible,u.isVisible=c):(p=!u.isVisible,u.isVisible=!u.isVisible),p&&e.push(u)}}1===e.length&&e[0].renderedElement?l(e[0].renderedElement):l(n.renderedElement),t.clientManager instanceof s.WindowsBaseClientManager&&t.clientManager.notifyHeightChange()}},t}(o.ToggleVisibilityAction);function l(e){if(e){var t=e.tabIndex;!Number.isInteger(t)||t<0?(e.tabIndex=-1,e.focus(),e.tabIndex=t):e.focus()}}t.CustomToggleVisibilityAction=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),s=n(2),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.execute=function(){try{t.clientManager.executeAction(this)}catch(e){return}},t.prototype.getJsonTypeName=function(){return s.InvokeAddinActionType},t}(o.Action);t.default=a},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAAHfgQuIAAAAAXNSR0IArs4c6QAABJpJREFUaAXtWjtoFUEUXTX+MIo/BE0RBC1sxMbERiQRRUEEQQsLbTRp/MRKtMoqYpVGQSVNRBBUEkihoJUBFRsFoyBWigqmEVTiBxGNnjOZ2cybzOxn3u76ou/CefO5n3Pnzu57s5sEgVt+T4duwK0Pgt8WZTQXdaTRT93YVEY6cjolVjnN4SaoZkDZCrwzjPoxfm/MiWGHbZJzg5qiw0xol6ZsMpWaLghilcryKzpM34YLyki2y6SddVMMWzHcohzQdnHGuSdUQnoAq411UrgEwahszSZMKsAC00ONkxyV3aS2ATOMynRDII2EMHJdWFb/A5glgQA9iTHAJWb0qJhRx+WpzdO2GRA+aR1pp6qc2pGGLGSFJDE69U4Fwtt0Yi7uAqCBWdEo1ThHpxO94xyj6LbOFHJUm9qLdYzY1mLMrTfGuQ8fICK30wZBZlOknWuLSbdZI70h+wF/vRg8T2lBMJUwv74p3YDgUQoxW+XHbhmUMee4YuVBeEIjir2jmEQ1hH0+/j6EQ5LoOzNOIeQIaafuJ/azSNyVGRvH+7smNmqMsk4YUxw/FUv6VLrO9guR6NUpLYZ1y3YM1O1RRNuokxXR/+RaQOLXkGc2rJJV1G1xBFrfUtoCcyEKz0yDS1WQmc9EZuyXMjZPBWpBolPxRGd6eY4VCUkpFYRnx+dy+/wgCfRyCkK1hz9yowoCPswtAh4Ca424o76/FkacaMjEZwJ3gO3R7HhH3BFqhYbOa/gLXiS7DphkUcC8CLk/jHUR2BtFt3TyICQZ5QxwSPRiPqrZQybLMlKOAedEL+HDd4WzEFeR7U8g45eDqoLXmWYeAnwBKDuBm6Ln/lihq3xKelUG2IT2nh4sTd+HUH/pk4ajwsZ3DyuCZBnUCbNUK5VtvaSpypTF6N8vKavBL9ZXWcqS0ZbxK76832BiJUDSK0BewmeV4zLYUTPoa0yoTPJuee6dkqKOnpkKIk5uxnL5ZLUZWAXMN3R5D3kY4GWT5li8GHY8XCwETKGOxynnXc5FDQGZqpOTPXl9hYeXF0Bc3kG7YfAR405gOVCrwqvrLaAvjOPVQLcxL14fK8NbUNayrENy/AOgypctd7AJUFKxQF6z+k49VlY11m5EPqPAE2CpzI25LgHWALyXnaJXI3Ra/R3FDtDybaye412M+aDhEj533wd4qx2kke4ccqIGZB9yUH9mUPkNYo6Pa5lFBWAbZvbO16EL4fR82O8DeCt5ix4w9I5SneNpuOt5sN9TXcgJbz1wODFdeI+HDP5zgc7P/sm8mXWCMO/glngNmLsG6LxjGPO311fa4DgEsGCT7lOdKIRBUTIXgW8DOh+PaHtyINRjhnq8qm5ePVBC/zz034Bt0o79rQCr3S/nCml4uZQhvSBpAXjfHQYeAaVIWQt8jtVsKGVFBklZl6hBW96wvsDyal0MU30Hi6lreVHrO1herYth+i92UP0JjiXUX18UU9L8o5o5fzYpTmFCP6xexriof6ExuasdtyIAX02o/LlZjbag7ZjkI4synIrtEPLnWTdW+CabOzoMcKtrdaF8XzMCDADcHKf8AbrG8/djJQulAAAAAElFTkSuQmCC"},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAAHfgQuIAAAAAXNSR0IArs4c6QAABsdJREFUaAXtWl1sFFUUPnd2IGmLWiwoIEWQHyX+ETUEAYmiRpH+AFET6e+TPvuCURONhmjwhfjqU1sKJPoA7dIooiAEBUXRaEJEiCQqgiD0R1pouzvX70z3DnenM7M7s8t20e7D3nvPPed857v/c2eIfH6rW6Q08PetTz0Ra7grHZmTSWmkldMKLheGq5xWDKwUaaqpgoIy6trljW6F0lIqFwa965bTcx/KaaOELFjTIueqiqoW2a/yo1LGDYw2sNKmokIf5Tsl6GoWDuWGNll20aJLnp3i5WBtq6xQAEg3ZjSs3S4rlYHu0NQL7jwbdLxgh+mEyjosD2wAnZvbaaChW1kvi+q4LLUuUD8J2qRX+OYlvWJUUFla7L7KqKhqkxukddW5qGmXy5IJOuhn5OapWthkI3elnxM2isVoVTJJH2fdOGwkYvRYZ4P4xHasoP1QWM46Va3yYV0ncAAoIyNGD8YbxFHdMDBURoLCPbqRitAXkRXEBFoQrxMndCSV9zXM1NKBoSrvXul1ZGg3Djp3Kxb137246DLMiEq1+mc9O3QHmfLoyjPQ8VyFr85jaGBx2ZZNxGmAJn3QVSd+TZOlCjUd8oZkN/VxEcwOw/cS0140IMg0TlI+skpWb5WTaZguAoyRnuxqEp9h/XiHLABm5SFLJWxmUwcG6BzAyDDokXijOKhMdzWK16pb5Pm8ANZslzOSg3QaYGSYtDheL44oID2NN4vNOQGu2S5nDw/SKYBRTND9nU3iRx1A5cE89tHzIsnlSIDYJRcMSToOMDIm0sL4evGzcu6VgnkCI9ceJ5EAAXaIJtBcv9HpBapkkQAxoiuUg7Bp5MUtLJDS/38Afsd0vY6rqhlySTW/No69eNdukUsTSfoyF8dBtmaMlnU0iK9Y59rsFq3yEkkq8woi74OGVxU/MIchHg5+wdYx3yuiTDJ+LMGy1eunB9/74PtRVW9qYGfRwK2qIsu0PwgMy9lBgC3DPjuEHX8i+zRTzM5i9ZieJUhWaiByCL6XQPnKriZRwgc6NhxZ2sIzCwRd3SqPwP1DYHYZYKW6cqS1VHfgzoPJ9xg0i9A9/QCbpNdjSlh5HaU4xf0EgEVgdgnHijQwMuhpOYGm5I0hmvEYmnEhmPWB2U06M853NYrdnOaFIcCOoxkXosl6wGwUGAOpX84MAXYSYPzAf3FXFvtkTgwxQE4xGPrs76BNGauPwzoyIObZb2A1G2Dn0GdTVZO50+o2+QbOND1KHgkQYKcxiysxQM4A7FblzCu1JKXNw9CAGPpHATYDzE5jgMzwAgmShQYE2PsA+wbMZgY59qsLPUrBihf4sIu8gx+aoWMZMTMOGLHh/M3Gm9S/bSLWjFGTSmqKGHBmM5dvE5vmCSxX87HVnMFiHHkF8UQeAZvGGKoeeVyJ5nAQVo78UgbDxrxA1duAqlCsKV/Vd1vUh54IPebSCPJtNnXTy5ZFa9Gd83F6GPWGI5+NAPABvC3ZhPujtzP5rW2X9+IK+yXsjOmnTxiCeBkOjM96+bAJ8qW5laT9UIp5KV1LGZ8bSkrodnVtFAYLR7NJA5epCwxX+NkJHKleR49tdBQEdZTHqHFrvbDvHB15EWX40qAHLxdAbKkW1iBGwzqUl+OVx6tKbuIIt0EV0JrbcDCqU+ViS9fskOWJPtrdk6DFWmxXMDFrcUv5KctwJ7tcq8OzqDbPMJYz3pXrxoXKYyjefHmA9gz30gMKMzV/qzF/9yqZVxr6ROrl5FrJqrfJKXKYPsdTyX0OBp6pY5Ke6WwWBxyZlkEn7UdxZIgKOlCUBNe2yVuGJe21huhuFTt67B9cpK/qrBeBd3OpR2x78WTboiK4boucPpSkvUMW3aWIIe01DXqqo1F8rcmyzhYFwXXtciaI7RtM0jwncoEdWeJlTrOwr1cdecjMmBLEFjULe+8Xgwmao+LGSn7BNOmJnXXiByXLJR0TgiA2h4lh/52lBX8exB7vqBd8Zxbqh1d4d4gEHYDP2/Bm7U39ZFRQgjVb5LykRftAzLmEwGrwV8yklSB2LBQrXTlBLzI5FsH3W0ico19BCILYnUwMnzY4F80g9ie+J1iJLxeO67HmO18QgjjnHkbg5Xbwgv6IGfYnGSfzTcbLX0EI4vlsshd4IWQ4xv23f+MEr/f+He/B8R4s8hYYH6JF3kEZwzNwPehcLuH4VJnRoggV0uLW+HCohiHoPRUzDqzr8ep2p/api6oqypTj5Hg5bhWgzodlIE80lveijJ+PH54jkzjjrlCfAymfNkFVKPTNtsKNlPJQlHQCz387aDJtjlcLfP44+vcv6Xpt45NLlMAAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAAHfgQuIAAAAAXNSR0IArs4c6QAABoBJREFUaAXtml1sVEUUx3fbxaQtKgitgIAgH0r8jBqCFImoRDEx9DMpbSpNH+qzLxg10WiIBl+Ir33TpLy0pfhgED9AmioofkUTIpZIotZqq7Wl3bZKaf2dm3tuZnfv3b13v7qGbnKZmTNnzv/8z52ZO3NoKOTxq6qqmiviny89+kMh0YjvdGROxdaIacc04kwUxbVjmkk7wzGqdkOhipqamm6IV1i0aNGSoqKiN+Llofr6+hUJQhFgboN2UI9qPaEU3KTeJu20qKjrCbZtwbFjxxzKzc3NZePj4xOuL8XNQHV19TIFoH4w5cCGhoY1OiDGoKvQ1vDqE3nSAJjcYtBoJB0Yr2y2IxUVFWUCHQ6HD5kdXvW5ubnnZYwTZi9FldfU1ByYnZ11jIcRVCLoU4X4Mp6nBiwig+I74wdr26a0B3eP+w6ODIpEIrt6enretwwptFp1K0WH2fKQ2RcxG251GcQqe+Do0aNfm/1JXZVBxcXFd5mD1ENPRHvQ5u7u7n4TSeueA1NFOqmrat2t/B8NtIJDBDtYHb+4cTFlTLU12va9OnSAn5JZNgiI6y4cbmtrKx0aGtLd94gfj01QZmM7c+QnU6b11tbW60dGRi5LG7tncWJbRMFSzRM14qdsbGxcOjk5CdZIiJm+G4c+Yrt43QL0Y8CvDh+z8itXrgwBJoweZsX36ViW14uEethzZaiin5JPxKrp6ekBwEKEeCvGz7mNw4HDGQECtA6gSzwSunsJ3XduQDAv7uzsvCp9aQESms28jws20BaAfnADUhnMZ1hCIZknaQFi6AyMNnjNTgVyK9MC5F0sczPmR5b25ubHuJvOtQH4lVB3O666hSSozLBr4Vibd11d3faZmZlPgxrzq885o7Krq+sz0c/J14I1N4HtMjeHsj5pZFfxAhMHLIbsHD+yc2xy8yiVTK4lbFtjXnqwPUXfI9ofUTB2998Rvq0dfkrGRJOBYbsPIpXo/Ut5ndiMCDMBY/dY6QfErw5gZ7C9DdvT2C6BqXXF1K0tELNUoBg/B9iDgE0BVmrqK6Apy6gO2DcYuI8nCthi0xgOzGZ1lhLG7wUMwxN8imLA+Lo8WVJSsjxrDAE7Txi3AHgZZjeazKTOp+yElFkBBOwCYJuxNwqzpWLY65dxSAG7KGCEcSQVmDiRESAT5BJgkl34kzB6fpTZfZwQpw0I2M8ArYPZEMzKxXu3HxF4mTPNqPalBQjYAAbWADYIs5vVmEcZsw4DAwIml8xVgA0AtsoDxFMcGBCgt3i+AGy1p9UkHYGXBUCyDaa9FQZmmMR5X10LgL7CFERpIaRBouVLd95Cut+Xe+kpxdiOsE3184nZxK4+iL20dxAPX/Zje4VgaH9YKoClfRBWQ16lgLEdymnA+lmA2ijUUlL1ExMTl4lW4DkXQ1CyYMPDw89hqBqyctVI+B+OLAdhkogfIuKvpbLLKeVubpTPohdz+rTHleFznZsNi6AkzVE4zSMXrbz+IDjAdfVWTRsFAYf0Yki/h987vcaFWQ8voXBQFQB8t7S09JmOjg4r56jyQiolaRCNRo/j03bDr3+4S9TAZQf/WfGCyuVueEAblEeYLk1Gu6CqLS0tS8bGxk5Abqs6xguZhsNezsUfiIzZuEP7pJQDm7POUE6ZKzcH56vOVLyJqfjh6Ojo/QamrN+neSEnDVlCNfCJNMFCDgX79u1bTjb2Y24l9xgwUfLNT5Fv7jVkThXSp2lYU5R6b0ESZF+owMmTU1NTdzqeh0LjENsDsaS5OfuK7XwdCoog62cl6+kkzx1KjLcwBrEncPxzlQUpC4IgxFaz853i2Wg4/zf13awxK71qyANV55Ugm8da1tcnEFuvXvPG/uK7+DjfxW9Vlkk5LwQhtl6I8axV5yE2DLHHICY5s0C/2tra2whSL1P7Fuy8Yp6M8koQYhvZ7k9BzExC/EEm+VGInQ/EylCGXJuQExHlqxTO0S8vBCF2u03MTDT/ZhO7YPia9WpeCPLGzuL5EvGeKfQrU3EXb+xi1tm4GMwLQT+JUxffsiIKfL/KCmoejSwQzGOwcwK18AZzEtY8Gl14g3kMdk6grok36CSXOMc5f7qXk3DmyGic3w4fgZPU9psoHLSxG7lNlxV6Vk3jJNk1/jbvHfzfqzLho3Uprav9fOZFTWcyqUPsKmnDnfrnQGrLyV2IYB4y2+pHOqVMxX6I9ZSXlx9ub2+fdDPyH7p9p8sHah8ZAAAAAElFTkSuQmCC"},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAAH7+Yj7AAAAAXNSR0IArs4c6QAABXNJREFUWAnNWE9sVEUY/+btbilYdosaDCQcak28oMZYLxpJiF4NESUe9eQB9VIotI0ipbpbKOBB5eBFPXjwTzSNiSeNUaMXqSTaI9IDCSBReW9bpX+2b/z95u3b93+3ZbfAHN6bb+abb34z8/2bEfFL2flYytVBn0z5kyNWLBE1HWtLISf1HUFr2Z4LiIrjBgRqx+f2RugWRMV5I5sjLpuc5epd0nRQXNyEPSpSsavx9myaUzQrZdsJurleM0XQJCEGFWoWOWH3y4r6WkRfkpHe3ZE+Q2itZMJ5O9FRcZaibaf+2xFtCFFl54pHlW0dak6vVpxjlhTyD6X3hlq1fj1ENamW7QtWC0X0R/dB/dwxn8r8F3L3eH0V+9dMpsRi4w0nq3dLY2ug9qmSqFpaH0XvD5LPvypDPb8ZvtPOnbKgXhSlT6D/upRK2+RlNZ8qAwwKOqCl2SGljeTyKvan0S4iSlOJKFdzqrEVVMCK/X1z7lX2QmjeaPNI6f5VDmnBphagDzANbnZHiu62jJ0tytW25VF9RGaAEKVY7IUuLZr6jXwmqo/Jkp6R0d4HosN5/CEljXamUBTE0z2tN/q96YrN3rIzjv19zWNUC6hfRr3Po2VGCrknZWhzYquyBXIkQ45ynxYtA6LUJfzPSl4fkUO9f9QFJ35Jge/pHnGcyxCwUbQ6JN36Qxks/WNGTs4/KLXaOxC8C/1HZaQ0lpAYaaDF8HBa+XEOomUxzNBkUwsPpJnbSRtEu+ehJIQyWKzldMPCKTQREBuGHeZcQ91bfj0EUz3ioWwNshqsdVB5o2vDvRkb22BvXaEzhufyTK81e2sOevaaQuATWkEHCsOEkgG6L5pUh4rexiX3dUSa51OncSgdKoyGor6CA7B/F885tie54tQoANkI3NCSm+k9VjULbZ9x2gg0Pk1dFzrLGy0KB8ugHynU9EhqHOnNJkygDzJfnrJXukubZNmZXxNSz6GcD/vFpMkZJsSILqtfDhb/8ueL/Gn7rrwludyzcnjzF+G+pED2Ts5tleWVb1HbWWeehUpgj3S3oZUaB6oj9b7IL11ghCVEcKKa+wpO9Bm0+pPVGRqBDHRo8mD4DMLGl5K33k0LbgFbtNYaIJ35insGq2V2WoXiHsck72dub1R+QNF2au5L2PrDaCxiEX9KztofP4JggFdLB8g8YNH5CMFynxFkqb0yXPw5PrgtmmbkaugHFq7kM9lQekEGYV6xkgQYJNfnJF96QobUv7ExnSVpmjXnR2zGw2mZQwDQpB/V85h9i1hqd8d3rNWyvB39DmzXpFS8z79ZeAA9K6M7xE3buldGi3+3krcu/Sadci9ANl10P43Jc1x0AUzc6FtuFTiumHMTA7F4bglIvReRnSarzHJ867JdGUKJgRku3RiwWSZ3Jq9yP8gYcvObfSzI6y1YzwAQzOIide3mI8mY0cMyS2zYQdw6jOfPYL5lzYhGwMYdPGtiIm8yt0sxWBCngc0y9zUC4zXrdik+FtwlLe8yqd4E2l0duaK0u0imSt59dDx60TV3T2SF7b7YtAOQczMzJZZ6CUIdG5i5uO7nWMFV2VB4VA5suugzruufV9jF5V+QNGwVy3ounOFEARKF9xT6CUDuw4Bz0tW1Z92AEtjS0hTmQqKAjGa49DwsV4c3IwnQ7zVAq8xy8XQoy4g5Z8SFrrYbChlvLbzWuLIfoAqQP4bE5FgcmA8jG6DPwT8znWr1AHb3IKgeCFvBVv8k2pqSgvUNPMDFhKOv2FvwFrpDlt2nEKX2wNc+jvE5jJ/H+JN4DDvlZyycIqusDmDaaL5a1ixMrB/BA+x2ANgOAPijGOePN0NtgsC05N2pqEWmCUxv+x+PniWAgUGu6gAAAABJRU5ErkJggg=="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAAH7+Yj7AAAAAXNSR0IArs4c6QAABXZJREFUWAm9WUlsHEUU/dXTUQCN3T4kznK1WSS44bDdEAe4BARhkcghBzgBEiiBEFtksSNmwhKSSIAUiUhEIkiETSiIG1cWiZwwS1gOXIIdQJoeDwQUzzT/dfWfqq7unmmPRy5pXFW/fr16tf3/u0wkqRaeoVpzN6oqltUakbQh9wgaTvJY+Xwsay50m3K7d1up1liSiqJ62KEo0j0grVR2eCnB8duI2u0PeSBOrT+IIHjmq7jqkVKHqLqxK6CZMWWwXOy4D/9Bp+lgtg9N0cbM641mXMX4+EkCFyuVRjQcX1p6ANOzQHSRJ4KCUUTt5cYEtdVnRNFFmh67EyJJWhEriVnnpQRRL2SREjom+877nT4AKdCTd+tqPZzzUw125cTtRE9/qSVRtF8PjerMmFE7cYdRSqQGsdbQyptvZKUvTCdLscXlalyHcl5aV9mkl6fXhNCRl0hzTNYqC6YWoQS5RnQ16uFBPr2HXLFTb1EQbKEnFah3kwHstYtd9YKCovf5aDyMVg1YjlEBmiXmaav4AC7TL5a4XBEHIWJrktxb6eQnp1nqRKeZ+Y43eUM3GJldKgASFT44fDWIrhMB7TqrbyxO3PQFopFNugmnLuKL4jDq9ksKeg2Lzk3rT74tk0TjN/QFSvDmNeAbUZXCsGsG3VHL1XEWg83m2KBXvXGWInqoHICldVVwDe1WlyFJA1o6bP8P86K9YIus8jytq9xFz41csmRxsRgQzXA5qrOdWU+xYb7I+TfkRwdo79ivLpDUs4B6PX9nBW0JRNPNE8ufEacEK70xSkW0b7TC7Lv+0jAcdEPAaDqAg4tBtVmCsxhkd2V6R5ptKWrAPM8jGmVybakOQhXhAR+PARJu0dvWkU3sp+rpf4rGkSs5w0bKNiI+TRr3U9TZlReBQW9ZzWUBT97jQph6LzBoKZrKAl5ml3b8VgMipb//0pbHnaa0x3m0JQsY2zs+nsduMaoAe3GC3Z+zZkZDSuezgGgCKDznsW1EXbCf0xsgEHYeeeewy9+y7CZb3i0jvrr0IzMDGId5/RI7KT82Q1fai7m6fcy90yf2z562aWxtV5vg9DnpNWTTvSo8mLIkgjCbAjM+SIqjhmBWuhrzJZJauMCmP/GdIizIOYSn50c+sluzgGh9ZWmcrrQ/51L+7it1mG3gARtIyvmA0urmGGi58xSHIPdzU/5gbh9Tn2cj/DH53ut5zs2opUv9CcaRf4djnZLLmsbvUeOTWvGecLfA7ZBP8LXoavovPL0qL+OO1KuOg7c+2CWxh61qTrVI4Zj/Df9ZM3IYF+4WY2JsJ5kVjMOPJlvPYW+lM2LfKm99MDopdkET1LcMwVS1b/+1UWixiZ7AZdJbrE3A2pCDE8Y3BD4H5BM2O+lqYpbYJ8cvIp2jWZ0hS0Ds1HaixR/058Tjn/Z3n+Tt8ZPYechsLDiXWP8gwXTmuN7nGzRlJDklbMNvXyezPlfOzwMGgcZbWLHvdd+VEBMazA0PJhfYM5hPRmm0czz6YDAEI+PXEz3GREfGbQ1TdomV2krTPVVS6ic+g3h3ix5NNRRVbKIbryXC4PLNC2Kn7iVa+G7lq100Hql3B3sWsIlu4G9of/2QiSWMOfDXdpBfqnib9xdOpKgBF+DMTt26853y57MIz5YnEY7xJCv99rTBhl22PpYNQQyCyKXT+YBXMy0fNoEiPHwTe96DdoSTJQJyR8L31jRYAGFENPuCR+TDXeaQJSgtMdEmolw8HRbrif4guX5FmOVnijmXmMCVGxiRTrO5h4k+yx1X67NbTOZVGh09KhGLkMnLyxHM64ln82XvPrahN5OKtvIebeUJcM4JT054M4yQ878y/M4nvZ6e8uBF9j/Fr+s/h6QsDAAAAABJRU5ErkJggg=="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAAGWB6gOAAAAAXNSR0IArs4c6QAAAW9JREFUWAljYMACGEFicnJy/5HlmJA5MDZxgnzqTjANCJqRoAUYhmMIYHUowgoIC0MXugIQn3qKsJmOIcboveD//8t18hgSMAHdpodUdBP1fEdPkxgZnoMjGBRWsHAhi2Zk6GSBacQX6DA1uGhgpJQTFQC4DEAWHzUIOTSws6kWRpB0tPB/B8N/hnLsdhEQBSZGLk4GBQKqiJdm9KbENVB7tiYwMrKAvERhqgYbR7XAHjWIcDIYDaPRMCIcAoRVMDEACyas7SvCelFUsIBKN/mY+Q+AxYkkigyxHGAtC1IKLmpDV/1n+/adoQnIjyPbQGItRlcHDBGg0CKgh+pWhzH+Alf9QMeAffZgSQLD51v70bXQlA+MHkn56PnlQDfEAS2SguR9aDDT2zEgn366uQ/iYagbqFYYQUylnBx1EKEwHA2h0RAiFAKE5EfT0GgIEQoBQvKjaYhQCEFGHkCNI2A/DTSsM2AA2kAbMPtxWQwAsbtIn+j/0mAAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAAGWB6gOAAAAAXNSR0IArs4c6QAAAxhJREFUWAnlV79rFEEUfnsGT88QbfLrKjs1UTshiBJILISzsdAy+A8YsDqTiIVwkoBE0X9ALbXVyqCeaAgRGxMrGwuNGoVIfqiJmHXe27xlZnZmd/Z2E4RscW/mvW++982b2dk5AMPjoa9y1/flWAE7q4vfyFcfPkyWnMWWVkBH7/VZchqHU0T+8YwJZISSEQNhNkY5ZaJRPEK3ykQwuLo4D79/fCEcB9NNTE9h6kcmbwLFCucBVlB95AhjgsK9vnkmdGADAb21mdBHTMcuPYLHF6iu8OLKUQWAyCaGi9UjIFr9UTSZADhAAekM1Pfgs9MCGwfLTg/GkrPJA2xtH6oNE03WTii0YSUVb0yHFlS8k7wbGaoQ4fadGGyHU7e/QrGljTFkcT399fUIAYOMxWbC/ltzMH3jtCD4ayWIJeJgGttwsfUkAZHYB3rAuS82Y6kERWd8EtCr3PNHQWyoJGBcXLypXiErCSfIudhMm8E2pAg/UdPjFSWt8oooEUsHSSYG28RrNK8gUimSSfAbKT8K0WTtpBxT2nEkCFSI/qwsiC9xt0KAnbWl7+F0dCUMVoiCM8aD+lAXx4nkycVWqomNBMEKETqITOzT50OHJBI8n9SaIFZ+IkQYRDLP2wGBkughJxNw27r8+lHKA2zWqMgGjvPnSCQOprhMrrFCaTfshyxkG6crfUXOPfB3/vwF10T2AXE+dbqqyAUXTOK+mNDVh+e9NVp9IebDlgvh2QQFqAoNA8JVDhZ/q6vCYmS7oSG33ShzZ2lvX0F43ONFD+/g+o1Rrqj1SJNBWdooZGqsD5Y/zUJzuTvx1N80QWmF8KStgrCsC+9f0ax6Lj+NXJOZQLf4EcWKLH2ccaqIPt4q6PjIS/rbOTXaR3f35nIX9FSFsL3tOgf1swphUuN9n4Ns8f6Pwpbn3sGezoNC2DPYta9DEtIvKvI2dTWZny1eZZ0E8QBFWMcBKDQVcxHC/CjIumQMki3+3cILBW7YN3fOUsj0N0wek7adShCT4z0L99hmPNv3pHatZlChLH89XTMl4f4HDSaN/wAbxSgqB+b1qQAAAABJRU5ErkJggg=="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAEFCu8CAAAAAXNSR0IArs4c6QAAAflJREFUSA21VjtywjAQxUxmoE6TnIGcIElHn4Yz5AB0cAToOEDOkCZ9unCDcAbSZJIOKmef8BMrWWtLw8QzZu3d91nJkobBIHWtVqu6lc9POqrAP40HSqcUPU2DWkkUdTKlRIFz3Gw2N7jPmVBloAFa3hMAiAtDVg+Hw/t4PJ7GFkGn2iIoUIWACgmMSyRv5/P5FwFWRF9VVf04IkBQkp72lgAHslwu74D3RLzgigViwgmVILLQECZWBy3H2CHugMKeGBMIYEwKrNfrDwL6IgQE/9aHs+vC3rJNG3WqwE2wbvMNF4vFA9J9ZD1G4LMmR5O4ujxRu3J1IJciIR8QkWDLIFukJFGT5dlcOX7TgcBLltlUnidy7zgm1hhbRN0eQGydBMZgjJpEJxL1hIHsiSkS1VNkR+wiWeQqh5QiD4/H44u1WUlgxDjlvPnFu2u12SbXo9Foxkkh+NKIEUlzr6LzLfvi6QqCYvSMQxeHnEzgDt//UuNm6qDp1pFozuDlvyJeCJJHgoqN+zQCQ5ji6iOdUOFvLidpSKkckRwM9RA7DQlMiaKG7y6haPqzDA1jpIsXWLZhPMqmiaLRgdNrGBvpLdNVaxpqBdOwRKwE2zIsIcft53C9YQ44NrDeu7ScIf401HV9LwLFq84yRV4by+G9lbP0sQv/L7U/AdTX+D9OklMAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA8BJREFUWAnNWEFoE0EUze6GpK0gCUWbLY14teBRkGhBDx60RejFi3dvIlTwIuRQ6KVgsXjz7sVLQKyCFVqoFsFbhfYqrWRTpSQItklIsr63+bNs2kh3appk4Gf+7Pz/38v8mdmZNSKapVQqJff39ycNw7gF1wuu645CH2UY6Hnoeajb0JeHhoaWEolEkX1hixHWcHd3d7rRaDyE/QTAomH8QK4GuzXTNF+MjIzkQvkcZwQi1+r1+jzsMmJbRb0CsDeoN6PRaJ4jwz6OVK1W42iN49ld1DchMQjLumVZT0Dsc7PZ/vefI4SAluM4z+D2iK4AK6CajcVir4aHh3/z2XFlb2/vbLVavQ+7LOKlxH7Rtu3HiFdv59+WULFYTBwcHLyGA+dJBc5zkIVUKvWnXZDjnhUKhTMgNAN5Cts4ZHlwcPBeMpksHfY9QohkyuXyOpwvcVQg0yDy5bDjSdogdhVxc5AU4m4NDAxkDpMyg4FhaHFkhMwG0nOlU2SIw1iMCTLfiCFYVpBDi57P559DXMwdB/kfa+nsYIOxiUEsYgZD+ymT1fQJnRUs0xudHJkgoNKZPmwjq2jHsfquq9Xnp0yWNlfTnC4Zx/m+REHw0IUYxKKDwqbuEeKmBz0DA07iBXboFNeN3KHo+NCWWMSEmhEOTUKyA9NmFsxPtLTprFsEa5Z+ioPJdxPaE5AqNz12drMIJnf/CXIx8aKcwhLku2kl7A7cScKCuUIO5GIih9yNmU++m3pSFDa5cFKnhcVmT9g0QRV22sRQ8e0c4Vu7V4QUNrkwZR4hNHpGSGGTC1PmcmTQ8Hftbo9UANtlyhwhYHebSADPwyYXpsxLlZz0AjbhVYztO8TRenUEoytscuH+sy2d46hXRdeqbPvipJbDUWNis2wzZR+poeYZuCdFYaNeNrhd46D0E41GPB4/p7tbO87Obbi+5D8xDPOBbaff6/wrnrsrlcovpMvEsfa8KfemNQSJyYFcJx5GlmRcHObcMUVMJ4BgxuCzRi5c9hHemyRIlgdy0U+9EqwsgRQHj5Bc4niwT0FmdJgwTUjWD0pTD+9NLGLCY11dJP3NsO+OsHKmXQTbOFjnTvuQTwxiQRbVeRp6a4GRhVvABwhvHhunQUpuHBvEIBYxgyy8OaQeYOnVeaNEvQXDy1gBX3k7UP3/WzMWYzI2MQSr5Urtz6EgWF9dpRUxDiXS1h8fGxQp1rL65qFm5HkVdfc/xwi4X/He1BcfrHxGosgnvSlMSl4O0khtu096O3jOT3pvdT/p/QUb50gRXt3i0QAAAABJRU5ErkJggg=="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABCdJREFUWAnNWE1rE0EYbnbTpGlBEkrSJFgvnix4FEq0YJEexCLUgxd/gwoVRCh4KPQiWKz+Bj0IUvDjYoWI1SJ4a7HFa4UkjZQEwbYJ+fB5tjPL7jrZbrcbycBk3pl5532ezMc772yo75ipWq0m9vb2roVCoSkMPdNut7OQszQDuQC5AHEb8srg4OC7eDxeYZ/XFPKquLOzM9NqtW5DfwJgYS/jQK4BvVVN056NjIwsexpzlBKIXGw2m4+glxO6dZR5gL1GuRkOhwucGfZxphqNBmdrDG3XUU4iR5CZ1nRdvw9iXw6r6t+OMwSDerFYfIxhdzkUYCUU85FI5Pnw8PBvth2Vdnd3T9Xr9VvQewh7aaG/lMlk7sFeUzVeSahSqcT39/dfYgD3SQ2DF5AX0+n0H5WRo9pKpdIQCM0iz0E3irwSi8VuJhKJqnPsP4RI5uDgYA2Dz3FWkGdA5KtzoJ86iI3D7jJyGna3BgYGck5SmtUwFHXOjCCzgeW5EBQZ4tAWbYLMBjEElm7lYJMLhcIT5Db2ThHrf9rWGWCFtolBLGJaTZtLJk7TZ3TWcEwvBzkzVkApc/ngRj6iHsXpuyRPn7lk4mjzNC10mwxJEYNYlCU2ZYMQnR7kHBS4iRfZ8T8SsYgJrJzgcEhIeGBymAdzX0fb7Q9gA8ewZV4hr0OWjpKzRKx5jpUcNN5NqE8g1+n02BlkIhnslzcobyDHnbYFJr3/BLlouCinoci7Ke/VAzuNdqpbyFzB0hT7+/unUBLcTAIzTw7kokGB3pibmXdTYMlJBnfeZDKZ/KECkNjkwk09KpQ2Vcp+2o5DxoE9qmEwb+c+3toqcOz+s8yqPlWbDzImNrlwyQxCqCgJwUfkkb/jhFxVEbC2+SHD8RKbXLhkbTaiYnpt1mVC8wvIUQxadiPllwxxLNhtLllRgGdEaSsQuzxAw1PkjqROQkaAGdjkwiUzlkpEejYyspLNZhmkKUkFQKZPYpMLl2xbAI9JAqpSRSoIMg7sbS7ZBzaiZAzsmpyk4IE/YZzh9Nz8jKtRdEpslCshumsESmVUWtFoNOnFWyOGWYKdOwTCNBdPQoZxd61W+wU7GsLalCbeTauwHREBOXFck5ypk5IhiMCMQFw133C8+mWkiGUYcmVj6SyXy/IlYWn1LhILrsSIHG3hh3jEMbBPI896NZlKpRjL+E7EIiYMrMmHJE+ZkfiIowCFOTAfP2zt3i8xiEUEiU3ZJCRiWm5WwwF2O8gHGT6t+UZbkvE0ZHuCko699F7sp/VukBIvjnViEIuYVhbmDLERp6bJFyXKLSiexwn4FuTy0RZt0jYxBJbtSa28UHvqKS2nj1OJE9kbHxskKZbwD73xOcZKShDrjQ9WTmLik940NiUfB6NYWtUnvZ9o5ye9t+Z14DTUof4Xgq4GPQe+7R4AAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAA9tJREFUaAXtmj9oFEEUxu9iiIoKRiSgIilMISnELjbi5WLAIkELrSQ2mjT+SWOhIFyihY2dRK0UKwVFCwWFaBSFNNqoqFUQhVyhoEGjaDSev3dcjneT2012l525w33wcW/ezLz5vnl7u3t7m0rViRUKhYNgCgSydJ3oS6HqM1ybg/JtCDrB4fg3YdaeV0F2aiWJukAbWBUmaYA5k4y9mk6nZxaaA681jDkAVlcZK32HgXfBSJAGR8F3YNNGqhBedAiiLeCFF+FGyUSnVO0OyADb1h52QXivZ+5DsNk3BwMveu1AzPFJ8nf6kvPoZF4rmADa8jSu64BUL6sD+F/AAFjnkdt5GG5t4APQJm2J53RQBN5UgT/4Hc4V+BCAXzuQSmmTSrbKND5zukMCevBdn9zOu+C6FXzSAvDfAvkuFg0/B8omp9WWUp98vFR+TbkwliNrDKxVxITvDi4zeRWrcEXgEhVZ8HqkxlpzEbedxUaBvpN5TrsTcR/9iHhfGP1mWexDXDfL3Qf6pmOcdhfi5PbNtCkV+CrfQW1DqtO5C7Ee8FMTxB8DK7zI0dcMngK5GhyqWYGQ2wtmgLZ7NJZ5iasa17Pxh6oOshyERx+QS5a22zSaAlPRGfCdC4RDP5g1eF2jXbytrGuBiBg0hEnzMgh/MjQSOqsgPE4YXKQ5Aub9pAtURSOpE4FwOG3wkOa5QEK8BhuJrQsUIQYHaZ7x4hs4biS3JpB15Qe2HIKmnQwswm+Ckd2KQNZsAHLyMG3Qj2uoPmOF2AWyXiOQ0762vzQGQglgEnM7wSMgR0TltZKAtlgFslATkAu2Nrmg94UVJ/OYL08G5qxf5wp38dQZFumz+nKG3gK71JTf+Pu5ab6hYmHc8u9BJm/QCawIRJzcHMuP6Yxa/Bf+PsTJw67YzIpA2J8FGaXiB/4exI2qWCyuLYEbFftv+D2Ie6Jisbm2BJ5CgTylk9uuI4h7FpsiI7EVgQh6zbrbjLWtNMPfpVuhF32RRGD0PXSbIamg2/2PvnpSweh76DZDUkG3+x999aSC0ffQbYakgm73P/rqSQWj76HbDEkF3e5/9NX/iwpOq32q2bebFMcKl0eSJmd5qFU2qeBEuZVKdTNhqWrXg9trkNR6io+9hxGl7QqNuhAJzw4gb1PM2TSOvDlZNvkLS94/eQWK73qVet7xKQ9l86V2rX1IAbYA+RtAv8h0jCd45zXZ4t/DiMwSfACi/V2sM9v3H7NkFoEFvXTxLEpQ3gHbCd7rzjryL8G11xQn/CsqVjpcjxPfDTaBiuOZdq3YLETkHbVxcKFUoKrc/gG0MdOGYtdPIgAAAABJRU5ErkJggg=="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABPBJREFUaAXtml1oHFUUx//nZs00psVapWilxI82u/ogvilCMKZW+9BqBYtKqVBEEBv8wIqZbZWhNpuUWsEPSqlC1YrYN0sUAq1VqxREH6RimdnWaimmkoe4tla7yWauZ3bdOzObpHG3zN1Z3IFlzz179tzzu+fOmZk7l9Aoh2k/DokdgLyimpAT1RjX1VbK7dx/VXBevKKuQVfTOdGxaszLtlMzaI3OxcTYMki5hI3mlQ0j+ZbiVxid78Gi8Vn9G+33I3/+MZCcP8VWigU8dTdwzFMSRspYSsImu5fn+SB/Llf6qAVBO5FJbai5G+vEQuQLBxju1ul8lDLoZc10htigezqjSHUubqnZv2UvYrjPGC41k49SSsfH+ASW3TMZRaenEa4CW2ryv+lkBy7gqxAc4QyI9gX9JbDZ7kFBPqmURDn+04sQbUPIXH9G6eMk9J1YAnf8ECdlsQqL6DRkogeYXMt6pU6ggKdUCzTJhXUFBju/8XUxk8zjPKUnDjLDtX5kdBKitQf9N55Cn+OrWRJcle70NXIYAzGGS2dvg5z8MgRHZGMOuopwPoiSBCQtDLSOKjlugpm9He6kNy2vVqERHYWRuAtWakTpKgSuorIloJv9ehQw1iaaThek+yn351+Xib6D0X4frMVjF4ujVEUvZlHv39LZ5YA7zInw4UBHYLQsmxZOyJwKmehsvAHN7Eq47lDoxoPoc1w1/15YS88qkKDgtr0P0Nd8ucjx5/mpt2pB43rKpv0QF5QPOYTLVBhEwzCMB/HCNReUrlIY7PidVV1ldTwBTWcdX4v3cJB+fSD6GEby4f9031qm4+/4TVHTeYLPt3dDxY/wEcOtqRbO44wXYNp+hqvlbs6eHxfRHhiptQxX8AKu9ojPFDWdPi4oAyEA70mjP9nLxcK/9woZzN7wR2p22+gs0vYWzlwYDmJH8THqEuC8gOsP2Oe8Cle+FBo9oq0YTG4M6Wps1G+KFh+wnbd4WgZu9j0KkcZAsiKbNdLx3+oDaHERSTvvcDFZHwpd0LPIJF8P6S6xoR/Qkgnk7b18d/KIH7tXRPiZNJPa7euqkNL23XDxMp9wx9CafC54OdELaMlW5J19DLfaD5+fQYnWYyC119dVKbn4gAdoEUN2I5/9nv/9dtmDviLz2uk2htvP0zIAhwkO5FE+52qHK5IwXPkg97qy6H3ryeD239oxmvuER7nb75zyaJFr0J/yFrsiO/QAjv3BVTEAR/gLJFajv/NAZGT/OtYDGFwcAp2DECsZ7nDUcJ5/PYCJls0oFHiRiIiXSHoZ7lsdcPoAX1n6I3d2hy6oYD/6qmiwV41yE1DjYEfSVTODkQyrRqfNDGoc7Ei6amYwkmHV6LSZQY2DHUlXzQxGMqwanTYzqHGwI+mqmcFIhlWj0/9BBgl/qgF1g5trlDbeQvqXwIagYqjnggF7+2R+Ugqi5XjjuKHajSC4f68KhSmFz8M/eDud9isDKW/AiLurYSC9zUFE21T8wHkYVx4MtEHYZs9DTv7A7ws61A9EP/MSOy/Kihl3ECnbegjCNfg9BO8PpRW8oOxvVBB4Gpmb3wyGVNoQW9xxCCbnTbENe9AX/I6jp/J1d6mKbk0d4iXgezifpxqST9AuzFmwqhLOYwlnrDRdN3IiH+Bz8yaetnPjCey9cpOjHOcRTsxOeAma4fgHjhdcXV83v2sAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABTRJREFUaAXtWm1oHEUYft/dS+I1iV+U2p5KEftDGmj9Z0hNyO3eXSq0fqCiULRIFUotfmBBEfVHEapoQVFCEaF+IUpBKkFt7nbvJKYHon9aiQhBQ/1IJIiWtpekyd28vnO4H3e5tLnL5nZPbjmY2Wdm555nnpmd2ZlBaJDLMIb3AOFhILqqGspKNZn9zIsCXqtWnOTbMAIB8MdaKjhU/lAmk+mgfF4XRJsQqbM83dt75Y/1kcj7XV1d85crN9zRcedsLvcwgLi6Qt5rieBxxhcZhlZmIsK0YewnEq8wtsbCVz1EZTAWj0tyNV0nTw6vm5uBFAvcUqmAooPSNdNIDXEb76+UaXUx2lxr+aPJZGQuRyYB3LJUGUVLRX5BduD+pTKtGo44CagcrKV80zQ3ziF8UyZuChA+dZcXMs1hjQq01wIR8Sz3vWdDreGhvr6+KQsPUsgtblNhYT7NnG508fpNbWnVRD6/i0DYcIgE7LPvAAqo0nZNG/jWhQUqahjGZhZnMKkNNjHEX1BRtWg0esZMpWxYRkJA0GMjiCc0LRFYcZlM8laRFylulmstzvyW/KmNQL9d1yctzB3Kl8w6GyA4bccDFkmnh28TC/QVi7vGooYIp69YA/Ft2xLTFlYeSoGqBXLfu+x4ZOWtZ8jNspcKhS9YnDMuI34fbu8Y6Onp+ftSXBYN9JfK7Ecai4uDKBxncfbYzM0y29555R3d3d3nyjnxeH7WhZ1bNPK7En2PZgxjB4sbYiKOOITM2usgUUmcJNwWDn8AiKPF0QDwmcA6yF8P9wkSHzPnFkm8eCGcUEKt92zdGp2zoPKwt7f3H8Z6LTyQAs1k8iESdJSAXO8HOL4+csMDy5m3WuJkGLgmyuPYYyzsPebmiAP8hJ27v1pxUmCgHDSSySd5sv+GJGZd3JeOarH4oxw60xMrcRlhYBxk554DoBJxPE8dZHF7ahUn9QdCIDt3kJ075DYEFTwsP6NYHI8QtV++CzSN5Ovs3ItuCYjKy3osccCN1Rr3rQ/KD2zTMN4mIdyTfVAUeJ6bZYmbtYqTz/kikMUpaSP1Ln+DPlJKHp/SYok3S7GV3dVdIH/LhdKp1Ic8FDxoUZf9jH97Wdw7FlZNyNO5KJB4SS5MbYhEnnYPJ3Xtg2NjY60iP3/MLY6FFPiTbbcWG6hJXLEiSHxUXJEgse/Pycnd7sqpm4PZbDY8Nfn7Zyxmu0WAnVvg+116InHMwmoKiSLOc+J6J16nYeLUqeH2mdyFL93imMRFUOjeFYtzq6kQr4uDf03DobJFrRlQ1Lt1PVa6vlCB4EqhughkkvbiEH+Fn+fpxQ4WN7JS8st5vi4CUW15AfJ5XiQiVFHd36/HvlsOOS/y1EWgpmljTLbbC8LVllHXYaJacl7kbwr0ohb9LKPpoJ+178V/Nx30ohb9LKPpoJ+178V/Nx30ohb9LKPpoJ+178V/Nx30ohb9LKPpoJ+178V///8d5LXJC1ZN8TaOc7jGAgMejoyMlHDmLY/zbsoKL+f9bAOE8fHx8Tb7vgEi+fnZnSU0FcXRwwkK78N97mSgm36dmDjSKCLl4SB27FWHP+ZUVZXHvOwLR0dHOy/OzvzAOz4bbRRwApBSCErF41FOPn9izLWNTxVu4dYntwGcvXxUntDj8bfcrIoHYuWJQxBoyD07d2JDxRG/1mNxrXxHuPgW1fWBNO8TxDjxTEOJ+o8s8z6ihlp2louTySWOyeY6PzdzgM+o3MWnhW5mRzsCKrjAvKaZfRYVGCwatATRfwHV6LKD2QTj4wAAAABJRU5ErkJggg=="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABFhJREFUWAnNmUtIVFEYx//njm/H1AolS4y0gmoTUUQtImhvSRFE1C7CatMTIcoiiOixKhftijZRGK7aFBE9iELaRFBpFJWWmFaOj9GZOX3/c8eZO+PNx+SdmQ90nHvnnO8359xzzvf/q5BqnPxQi3CkHtBroFEFpaukK/4wuqBVF5S8QrXDZ7Xh3NJO+9bMfqsZfby5owKjoYPQeptArXK2LchRWFCSYy51D4QwEtLO28KJN1DqHvJyrqK5rifx5r/fTQ+wucePkf4jUJGjAub3SauNNYWoX1GCLXVFWFSai7lFvoQsfUNhfP09hgcdQ2h7O4Bnn4cRJrNCANq6hILyy2iuCCQ0cnkzNWDT+wYg3CJglXPyLZzYNBf71pVhfrE9Wi59ul7qHQzh+stfuPC4D3+CEYL+AHyNOL+s1bVB9OK/AbVWaHp/Sp6x03k+rRrXl+Pk5vmYV5w4UpN17nbv52AY5x71ouVFP0bDSsZUnRHIszL9Sc+E3dod8MqXQvQM3hC4HZV+H1p3L8SGmiK3fClfe/55CA23vuFHICx9qDuoKN6Lw9XDyR1ayRdkAahxuNUL8vHqwOJZh2NOfmH2zRwcCJOTuZNi4nwFd52WBgfY8Mn+mhk/a0n9T/q2tMCH3atLcf9dAN8DoZV42Kfx9OpjZ6NEYi4IHblb6bcUv111Wa7zs579/eXXGNZe+yTTHdFQ1nbnwolPMbcSWa1cEHzm0gXHb81czMncZscwLPZ4xAG5z8lWwtU62wtiOkPPnMxNBrPnRhvZU8wTIjjWOSfP8n88VvvfW8l0gNw+wy1oycVO/BmNBJCfW8sTxx7BYOgQTwhuwv+7z7klnu415iYDWcyRKg2jU6y38vjiCZHpIANZzHlvAFmVyMHPs3Wmx5cXX4YMZCEThM2ySyaYg9+LhKn0ySLEhJRzMsVSz0mwKsmWiLPoNZYMpSky07nvTTUQMRZhs1gJs9gsL5x46k3VkVf3yUImsnEVV41Xwl4lTKXfKJMAavc6LJVOZ72NsHGKu6khsi0Mk7BxBLsocPqHWThmR1DPGNElbDKClIYAS55sCYotE8Imi0R0qwTVV7ZEnEW1W0ZUCxmlYbZEjEUEv2UUv4hq6lZKw0wHGchihL64EXY1I4qfopq6NdNBBlvgiwshYQPSjhDFT1HNojFTwdxkIIuxSGKA9ErEjqDip6jOVDC3cR1ojUT9G3sESUSvROwIKn6K6nQHczI3GQxLFCAOaIwcXyPtCCr+dO6LzMWcthUifo3DVIoDktgYOeoM7Yj6m18xOComj8fBHMwVtUDo0ySYSbaqc0IY0+jdbSlkd9BdaNuzyDONzJEj3OvuoBCIP3N++c5kEylxBAlKl4lGjjRgQyp+L55J9sm+Y3DM6eJwTRzB8dHMavttHJKvDgOzVAzM41ljYDohp7CAqSGSJQPLNz5j3lvACaC0SMSFgN5qdKvjXmZNdAdI7M80/RviL5eWC7SyM/fYAAAAAElFTkSuQmCC"},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA8JJREFUWAnFV0FoE0EUfbtNm0LRm1Jz8GI9mIAHQSiCBQWlVRQEPQmevCjSQw9iWpTQUgUPPRSkF689KQgVqSgoKGhB8KIbBOulh7bozSI0tc363uwm2djZTVpS+iHJZv78//78mfn/rYNmpeB1YM09BWxcRBlZOE6GpvpIFuH7i3BRBNpm0FF+i0JuLVAlfzvJamoLXjdKuMenqwTZS+AyfPyAQ1A4/Ej8DMcyHDvEOS7n/ObgNNIYZSDLZkrMV3wAk9/TWP47gnJ5iLZddPqSgE+R7niOQs9Pq7/C/H6U1i4woMsMpJ9z/sB1J9DdPo7BwyWbjT0ArXoVz+iol8Dv4Tq3MZ6dszmIHRsp9qLsP2QgJxn4HDpxyZaNzQEMfzuK8voLGh1gSofwIDcZC9KMIu8NcnsmuJgltLedw9iRL1Gz+gDMyv1PBN/DVV/B/ezr6ORtPw8XzzAbTxjECjqd49FMuFWn2nOTdq68leAC0ELkU1kVhrBCqQWgA2f2nGlv1corKPqVT22pMAxWoAy2IEj9PA/cZ+55X9Ru0/NdL4d1/zpXc5a6g6F+gY5fIeU8xljO22QTHch773gwj3ErerQVKaML7nmXOe3RydFnFaKSM0HwGzxUzJwf1Wb5J4t1DCJfnELaH6JzeyHSjdrwP4a15abDQkPH+EUHH7j6gajX6rPmrGKWoKerY4kPzhteu4HYIPIefeEEC9U+15RXVTgVmTjRypsGlxMGamziHBJLmCztTCVru8qrKpxNtOdg2rcstDG2FkNhCZPYrmksqu1x5VUHTvV9qyIbc1gthsISJptaipGoo4VNxTLZnPa6A2ebFDNmbopdFzSzjFbGACpdzTq3ctWsygaDCbYG0wTQwMcOqn2YvWX62c/jZSFe1VCTYEtMB0suDxjZTJXZWDyywm1bEmyFSWzX0CgxGZEJm6i8mitjUyaMyUa2NhGWMEnheAjJ4XRlDJOxzDa13ZmyaBoM0SauLwjLXO22GdcQSMPhSKPiRLUdLK9NC+camzgDYgmT5NUN6/U0I+qHaJRN1FhU2x33UeJ2KO2ak9QHhBHwxWlhB91Q7HUV1wyHA/psMYSB3mJ5nWLXi2nHYDvOJrdj8USRVWHWyXBxFHe++hCH2ymRb2EIKxQewlBEncVeRSDF4Vot8mnIKTEMVgBQC0C8XdRZ7FUEspVB1EjpksGIvCPUAlBAeotxU+cZxAqDmG3Jdijt8iWfouX/vSnV0/JK2nf1xaQSxK6+mlWC0K+ysSsvp9EggkB25PX8HxMGtXJNekL7AAAAAElFTkSuQmCC"},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAOVJREFUWAntmLENwlAMRO9HCLECC5Bh2IE1iChQRAF7MAOwCgoLsEKElHxim0h0pjIpzgUFLu7pfTc5YGKTlKfOc7TNASlvkLEMZUx4IqczFuUedXrNNFxgkLcDTPyogCG7bSS7MiAzA6RijVN5C6XaPdbou4u+zgBUaPj4TNEwEn5cXb8ZDEj/mcYPgbx3oCEa8gx4e94QDXkGvD1viIY8A96eN0RDngFvzxuiIc+At+cN0ZBnwNvbDUklIiMf/tEzZn4YrP2QfkbqGGkhqnssUt9ZnjIABiRlkfQz/y6sYlX8lvYG5l47/xbUu7kAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAehJREFUWAntmM1Kw0AQxydWbKmKHuxHwBZvtX69gL3oG+gD6KXFR7AnKZ58BfEmPoIerQf1EUR6k4KI9qy0osT9Z3chlGySrWnSQwZKQ/ZjfvOfmZAs0YSZYfO0rBnqd07JsA7IIjNSRoPeyDIuKVM5oZbxPW07BwxZxwwmerMFYL77HfhuTtkEUCZuEwwcKOo0uQUvGDiQ24SY7iVAfsInCk2UQrnZFD0clenmcFnJFVnKANOul2l7JUsLGbVb9YgyBv0BCbNRTNPT+4D2rl6Vm4wdaBhm56JLvc/feIB0YUA5NoVGgfEEumadcM86Ahvr2qgwnkCLrBNqrCPuGmXKa0AtZVN0Wy+RLGC/mhkOVpmyfdYJ6Ij1QjowFGDajRJtFjP2Wl0YT4U+WCfsso4A1JqAKsyp0xcGjCcQBt2gii5QYcH4Ag1DVfM8fU4oWTMyTVDV6zmDPb1MWUPORU6lVgWUOZ8iCbNl8poBDOb+x/hXR/M50Os9uq3Nug6F3ukNaPBjUZgwdFY1AikkI0b06BwUeiWXDhdGONECwhrUB6AeX77sXxhpkgHjn3+XOe8EuAZU7bwbYKb+FG2F9F3orUiA/PRKFAqmEI5E4jbBwFOG85m4TTDw5xAOi3A+E/eBVdyiuPn/A/Mu7sgeVfFlAAAAAElFTkSuQmCC"},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAW9JREFUSA29lrFuwjAQhu2C0h0G3oFH6MjeobxKpUrNAwQJqa9Ch+4Z2zfoOzDQnQhkfBdMHNk+n1OHDCE4//2fz8ldLMSdDwm897fXLynFTEwe11VV7XPOoSzLhTgfd0qJv8324/mhNZdzPfAkzk2NgkzEFtbU4I0JaV8EymnxIqX8VUotc0E7mFqCN6we5IFLCheuoFgNXV7K6wbMBaVgwOgB/wuNwbzAoVAOLAhMhXJhJJALTYFFgTFoKowFDEFhHGoWaretM14ZOW8pGnlOTjZakwoDWzYQxDYUg7GD8DIDPRzXXtr+uceZnaGdHT4zPbvRltSBTYoVrsYYL40PZpo6dS/0eMgl5RhyNDY8CEwxStF6gSkGZvbcGAfIDTQg+5cT2wNyAmyA7zrmcQPGhD7z0BjlhUBKEDKNjYc8sbWpU/M5pGtQUKxV3SC63eBxB/prL1UHvW/8Flpgipoy494zUP2N+IGNMDcuq+4CbIPjL/ptxfEAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAr5JREFUWAnNmEFO3EAQRe2QXRBilkEhSxacIBKbbFigoEgcg9yBO3CWCKIoRMCGA4QFBxgkZokUNqAsJv+1q6BNxqS7MfKU9Kfa7apff9x2u9t1lWnT6XSklE/CpvBeWDHIVVeGsfyRcFjX9bV8/yYhO8Kx8EdINWLJ2elNkcg2hDPB7U6N78IX4aOwJiwaaNPHOWKIdYNjo1iYkheEfWeTnwi7wlIqKbGWQ64bnAupHCFOCcvCD2O4ld8T3mSRRMHkGgdcGNzLUUh3k0DhQsD4Zx+6o/POwGWccqHG06IUxDD5lfml9ru8kv+PhlM4FzBqdQ+fTvo9w5XpXYzLhVvw+2rf+1teATxNGOPc2zC1ikQH1LBacjOePnX6o70X5SU1lXsIkoKjIOXwsGBnUXdVqYNJD+MyZj9NIVM/LdKEA2oJPnQPk6c6mU2x3QSef0Ka1HxBEFHT8o8DsQ5GAlM8s2rypBerUl6wuC+1rUQmT2qjYfRKidvCa+FEL8LfqUR9xVnNE9OwjSDe2tjXxg3y67U3EbRqEi4GkdIU9dqrCGI9g7GWGcq89gp3+Y2ALZaqadLLnjJqUts4brhCPn/UpYJ6yPPaUwRNjPBtD8SlFF57gqCH8Sulq6pvSs1+dUTl7u9j5p+xnViXP7V2ltNcwqL/OUZtbMwV+hmaVfXZ/BDOax9xhz/r1aH8LeHSsJX7b5TXenWEfHUWv1xNiFywywJB7ZcrBKIqXn4ol6vjliVISbOXHyaqaIEm0uIhU+7sBZoJmq8lrIman0W+CYq3QWxVet95wCmkbYNM1PxsFBGE6R8gyjeMbIuG20o3koIohs/vKTXD7oA5I3ndTaxAju8s1Ayc3btVF9DlRcDT51MChMN8jnksUEKYPF/8g5UvjB7X7zyWKD7psVNhc8B6fNYnPWZsPukd5H7S+wvedC/MfUPfOwAAAABJRU5ErkJggg=="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAudJREFUWAnNmL9qFFEUxrMGhKCRbCdibIT4CkKaFbEQbdKbB1jfIb1lfISkt1IhqCRVKjuLQNoISSkkjcFi/f0m58KdMLM7M7vRPfDt/XfOd76dmXvnzu0ttLTRaNQn5BV4AR6BBwGKhdPACeVX8LnX6/2inL0hZAPsgz+gqelrzMbMFEG2Dg5Bsksqe+AtGIA1cDdg3T7H9NE3mRzrnYURvAi2ExvlGRiCe01J9Y0YY5PJudiUo/AjYAV8CYbflFvgTiuSzNnY4JBLk3slc6mv6giOgOY/e1rv3W5EruCkKHKMF4WTtyldmR/UH7ZLOdlbTiC3Zq7628dgema8MjMXk+TKDdJztZ36SyUOzibN+zyz21RKkjXMEbkoKmYfnWlqb2VxN1olp5NFOywlosNFT/Mydp5NJdIGDXNFTops8aThaqoNG/C0doF3CXwAPsy3cwLarm3aftFPpQ9c4l1VGy96Oem4OpyK+Qa0E3BdkIunudXQX+BnE2h744i7jMGZizml/aSKx9xA21TQblHl/VPl3LUPzkZi5MfXd5+2e4v2aiQ9inLqAuIlSD6C5+AMPGMbckxZZyn3quqOlYatVXnT/1hUjVX14dv4yqR4cwPtWEEXRZUtRHLIS8Z8EF0sX+b9VXV8WouRhzi3L9qFjfOiOhot1yR5F+NjReHTSUwIWo4c5xNvWQS8HydqGjHBX7plB5Fs4GCd4VMpalox5oNjEBoObOxEY+K0x68kinbn25T/cXjStN9RUKuF8Zqo77S12kUvT1xXJz4tjG8U1PrVQUy6UlSnFlN+daga0tYv1xA11ZWJ3EP/FXb1co3Ojau+dtsPYu4b39WIr95+SMjg/GzQQtB8bWFD1Pxs8kPQfH0Ghaj5+VBUkMYDrqj0wehL9f99Sl9JKkTNz2FDEhVXy9mXlgSqxYbcpf7fHsfkokKYi+eNH1j1riee1EaUR3qvgUd67serjvR+0u+R3qe2R3p/AUv8odLzw6w/AAAAAElFTkSuQmCC"},function(e,t,n){var i=null;window.markdownit=n(24),window.AdaptiveCards=n(16),t.CardRender=class{constructor(e,t=null){try{this.logTimeStamp("constructor-start");const r=n(153).initialize;this.ClientManagerClass=n(156).ClientManager,t&&t.isDarkMode?(this.messageCardDarkStyles=n(33),this.messageCardDarkStyles.default&&this.messageCardDarkStyles.default.use()):(this.messageCardStyles=n(36),this.messageCardStyles.default&&this.messageCardStyles.default.use()),this.MessageCardConverterClass=n(173).MessageCardConverter,this.UtilsClass=n(37).Utils,r(),this.clientManagerInstance=new this.ClientManagerClass(t,e),i=this,this.context=t,this.constants=this.UtilsClass.Constants,this.clientManagerInstance.supportSavingState&&this.context&&this.tryRestoreInstanceState(this.context.messageId,this.context.isShowCardJson,e),this.messageCardConverterInstance=new this.MessageCardConverterClass(this.clientManagerInstance,this.UtilsClass),this.targetDom=e,this.currentAction=this.constants.InitialCardProcessing,this.clientManagerInstance.logInitialCardProcessingStart&&this.clientManagerInstance.logInitialCardProcessingStart(),this.isAutoInvokeSpinnerVisible=!1,null!=i&&(this.clientManagerInstance.supportInlineShowCard&&(AdaptiveCards.AdaptiveCard.onInlineCardExpanded=function(e,t){i.onInlineCardExpanded(e,t)}),AdaptiveCards.AdaptiveCard.onExecuteAction=function(e){i.onExecuteAction(e)},AdaptiveCards.AdaptiveCard.onParseElement=function(e,t){i.onParseElement(e,t)},AdaptiveCards.AdaptiveCard.onParseAction=function(e,t){i.onParseAction(e,t)},AdaptiveCards.AdaptiveCard.onAnchorClicked=function(e,t){return i.onAnchorClicked(e,t)},AdaptiveCards.AdaptiveCard.onImageLoaded=function(e){i.onImageLoaded(e)},AdaptiveCards.AdaptiveCard.useMarkdownInRadioButtonAndCheckbox=!1,AdaptiveCards.AdaptiveCard.alwaysBleedSeparators=!0,AdaptiveCards.AdaptiveCard.allowMarkForTextHighlighting=!0),this.WorkingStatusMessage="Working on it",this.PleaseLoginContinueMessage="LOG IN",this.OutlookBaseUrl="https://outlook.office.com",this.logTimeStamp("constructor-end")}catch(e){if(console.log(e.message),console.log(e.stack),null==this.clientManagerInstance)throw e;this.clientManagerInstance.logException(e)}}renderCard(e){this.clientManagerInstance.logMessage("renderCard method called"),this.ignoreAutoInvokeAction=null;try{if(this.logTimeStamp("renderCard-start"),this.extendedPropertyJson=this.clientManagerInstance.processData(e),console.log(JSON.stringify(this.extendedPropertyJson)),this.allPerformedActions=[],null!=this.extendedPropertyJson[this.constants.AdaptiveCardSerializedProperty])if(null!=this.context&&null!=this.context.showCardPayload){this.adaptiveCardJson=JSON.parse(this.context.showCardPayload),this.adaptiveCardJson.version=this.context.version;var t=document.querySelector(this.targetDom);null!=t&&t.classList.add("ac-showCard"),this.generateAdaptiveCardInstance(!0)}else this.adaptiveCardJson=JSON.parse(this.extendedPropertyJson[this.constants.AdaptiveCardSerializedProperty]),this.generateAdaptiveCardInstance(!1);else if("AdaptiveCard"==this.extendedPropertyJson.type)this.adaptiveCardJson=this.extendedPropertyJson,this.generateAdaptiveCardInstance(!1);else if(this.clientManagerInstance.supportMessageCard&&null!=this.extendedPropertyJson[this.constants.MessageCardSerializedProperty]){if(this.messageCardJson=JSON.parse(this.extendedPropertyJson[this.constants.MessageCardSerializedProperty]),null!=this.extendedPropertyJson[this.constants.PerformedActionsSerializedProperty]){for(var n=JSON.parse(this.extendedPropertyJson[this.constants.PerformedActionsSerializedProperty])[this.constants.UserPerformedActionsProperty],r=0;r<n.length;r++)this.allPerformedActions=this.allPerformedActions.concat(n[r][this.constants.PerformedActionsProperty]);this.allPerformedActions.sort(i.sortFunction)}this.convertToAdaptiveCardInstance(!1)}else"MessageCard"==this.extendedPropertyJson.type&&(this.messageCardJson=this.extendedPropertyJson,this.convertToAdaptiveCardInstance(!1));this.logTimeStamp("renderCard-end")}catch(e){console.log(e.message),console.log(e.stack),this.clientManagerInstance.logException(e),this.setCardVisible(!1)}}renderPrefetchedAutoInvokeCard(e,t){try{this.setCardVisible(!1),this.logTimeStamp("renderCard-start"),this.extendedPropertyJson=this.clientManagerInstance.processData(t),console.log(JSON.stringify(this.extendedPropertyJson)),this.allPerformedActions=[];var n=!1;if(e){var i=this.clientManagerInstance.processData(e);if(this.isJsonString(i[this.constants.ResponseSerialized])){var r=JSON.parse(i[this.constants.ResponseSerialized]);if(!0===r[this.constants.RemoveCardProperty])null!=this.extendedPropertyJson[this.constants.AdaptiveCardSerializedProperty]&&(this.adaptiveCardJson=JSON.parse(this.extendedPropertyJson[this.constants.AdaptiveCardSerializedProperty]),this.populateClientTelemetryObjectFromExtendedProperty(extendedPropertyJson,this.adaptiveCardJson),this.setCardVisible(!1),this.clientManagerInstance.updateExplicitMessageCardProperty(),this.clientManagerInstance.logEventTelemetry(this.constants.MessageCardRemoved),this.clientManagerInstance.logFinalCardProcessingEnd(),this.currentAction="",n=!0);else if(!0===r[this.constants.HideCardProperty])null!=this.extendedPropertyJson[this.constants.AdaptiveCardSerializedProperty]&&(this.adaptiveCardJson=JSON.parse(this.extendedPropertyJson[this.constants.AdaptiveCardSerializedProperty]),this.populateClientTelemetryObjectFromExtendedProperty(extendedPropertyJson,this.adaptiveCardJson),this.setCardVisible(!1),this.clientManagerInstance.logEventTelemetry(this.constants.MessageCardHidden),this.clientManagerInstance.logFinalCardProcessingEnd(),this.currentAction="",n=!0);else if(this.StringIsNullOrEmpty(r[this.constants.RefreshCardSerializedProperty]))!0===r[this.constants.ShowOriginalCardProperty]&&null!=this.extendedPropertyJson[this.constants.AdaptiveCardSerializedProperty]&&(this.adaptiveCardJson=JSON.parse(this.extendedPropertyJson[this.constants.AdaptiveCardSerializedProperty]),this.generateAdaptiveCardInstance(!0),n=!0);else{var o=JSON.parse(r[this.constants.RefreshCardSerializedProperty]);"AdaptiveCard"===o.type&&(this.adaptiveCardJson=o,this.generateAdaptiveCardInstance(!0),this.logTimeStamp("renderCard-end"),n=!0)}}}if(0==n){var s=!0;if(null!=this.extendedPropertyJson[this.constants.AdaptiveCardSerializedProperty]){let e=JSON.parse(this.extendedPropertyJson[this.constants.AdaptiveCardSerializedProperty]);if(null!=e[this.constants.AutoInvokeOptions]){let t=e[this.constants.AutoInvokeOptions];null!=t[this.constants.ShowCardOnFailure]&&(s=t[this.constants.ShowCardOnFailure])}}1==s&&null!=this.extendedPropertyJson[this.constants.AdaptiveCardSerializedProperty]?(this.adaptiveCardJson=JSON.parse(this.extendedPropertyJson[this.constants.AdaptiveCardSerializedProperty]),this.generateAdaptiveCardInstance(!0)):this.setCardVisible(!1)}}catch(e){console.log(e.message),console.log(e.stack),this.clientManagerInstance.logException(e),this.setCardVisible(!1)}}convertToAdaptiveCardInstance(e){this.logTimeStamp("conversion-start"),this.ignoreAutoInvokeAction=e,this.adaptiveCardInstance=this.messageCardConverterInstance.parseMessageCard(this.messageCardJson),this.logTimeStamp("conversion-end"),this.httpActionList=[];var t=!0;this.imagesCount=this.adaptiveCardInstance.imagesCount,this.populateClientTelemetryObject(),this.clientManagerInstance.storeClientTelemetryProperties(this.clientTelemetryJson),!1===this.ignoreAutoInvokeAction&&null!=this.adaptiveCardInstance.autoInvokeAction&&!0===this.adaptiveCardInstance.autoInvokeAction.hideCardOnInvoke&&(t=!1);var n=this.getRenderedAdaptiveCard();this.currentAction===this.constants.InitialCardProcessing?(this.clientManagerInstance.logInitialCardProcessingEnd(),this.currentAction=this.constants.InitialCardRendering):this.currentAction===this.constants.FinalCardProcessing&&(this.clientManagerInstance.logFinalCardProcessingEnd(),this.currentAction=this.constants.FinalCardRendering),null==n?(this.setCardVisible(!1),this.currentAction===this.constants.InitialCardRendering?(this.clientManagerInstance.logInitialCardRenderingEnd(),!0!==this.ignoreAutoInvokeAction&&void 0!==this.adaptiveCardInstance.autoInvokeAction||(this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction="")):this.currentAction===this.constants.FinalCardRendering&&(this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction="")):(this.setCardVisible(t),this.renderAsHtml(n)),!1===this.ignoreAutoInvokeAction&&null!=this.adaptiveCardInstance.autoInvokeAction&&this.onExecuteAction(this.adaptiveCardInstance.autoInvokeAction)}generateAdaptiveCardInstance(e){this.logTimeStamp("conversion-start"),this.ignoreAutoInvokeAction=e,this.adaptiveCardInstance=new AdaptiveCards.AdaptiveCard,this.adaptiveCardInstance.hideOriginalBody=this.adaptiveCardJson[this.constants.HideOriginalBodyProperty]||!1,this.adaptiveCardInstance.enableBodyToggling=this.adaptiveCardJson[this.constants.EnableBodyTogglingProperty]||!1,this.adaptiveCardInstance.isHttpPostActionAvailable=!1,this.adaptiveCardInstance.isConstrainWidth=void 0===this.adaptiveCardJson[this.constants.ConstrainWidth]||this.adaptiveCardJson[this.constants.ConstrainWidth],this.adaptiveCardInstance.rtl=this.adaptiveCardJson[this.constants.RTL]||!1,null!=this.adaptiveCardJson[this.constants.MessageCardContextProperty]&&(this.adaptiveCardInstance.messageCardContext=this.adaptiveCardJson[this.constants.MessageCardContextProperty]),null!=this.adaptiveCardJson[this.constants.OriginatorProperty]&&(this.adaptiveCardInstance.originator=this.adaptiveCardJson[this.constants.OriginatorProperty]);var t=!0;if(this.httpActionList=[],this.openUrlList=[],this.emptyActionButtonTitleList=[],this.imagesCount=0,this.adaptiveCardInstance.hostConfig=new AdaptiveCards.HostConfig(this.clientManagerInstance.getACHostConfigs(this.context)[0]),this.context&&this.context.hostCapabilities)try{var n=new AdaptiveCards.HostCapabilities;n.parse(this.context.hostCapabilities,null),this.adaptiveCardInstance.hostConfig.hostCapabilities=n}catch(e){console.log(e.message)}else this.clientManagerInstance.capabilities&&(this.adaptiveCardInstance.hostConfig.hostCapabilities=this.clientManagerInstance.capabilities);if(this.adaptiveCardInstance.parse(this.adaptiveCardJson),!this.adaptiveCardInstance.isVersionSupported())throw"Adaptive card Version not supported";null!=this.adaptiveCardJson[this.constants.AutoInvokeAction]&&(this.adaptiveCardInstance.autoInvokeAction=this.createActionInstance("Action.Http",this.adaptiveCardInstance),this.adaptiveCardInstance.autoInvokeAction.setParent(this.adaptiveCardInstance),this.adaptiveCardInstance.autoInvokeAction.parse(this.adaptiveCardJson[this.constants.AutoInvokeAction]),this.adaptiveCardInstance.autoInvokeAction.isAutoInvokeAction=!0),null!=this.adaptiveCardJson[this.constants.AutoInvokeOptions]&&(this.adaptiveCardInstance.autoInvokeOptions=this.adaptiveCardJson[this.constants.AutoInvokeOptions]),!1===this.ignoreAutoInvokeAction&&null!=this.adaptiveCardInstance.autoInvokeAction&&!0===this.adaptiveCardInstance.autoInvokeAction.hideCardOnInvoke&&(t=!1),this.logTimeStamp("conversion-end"),null!=this.context&&(null==this.context||void 0!==this.context.isShowCardJson&&!1!==this.context.isShowCardJson)||(this.populateClientTelemetryObject(),this.clientManagerInstance.storeClientTelemetryProperties(this.clientTelemetryJson));var i=this.getRenderedAdaptiveCard();if(this.currentAction===this.constants.InitialCardProcessing?(this.clientManagerInstance.logInitialCardProcessingEnd(),this.currentAction=this.constants.InitialCardRendering):this.currentAction===this.constants.FinalCardProcessing&&(this.clientManagerInstance.logFinalCardProcessingEnd(),this.currentAction=this.constants.FinalCardRendering),this.adaptiveCardJson&&this.adaptiveCardJson.requires&&this.adaptiveCardInstance.hostConfig.hostCapabilities){var r=this.adaptiveCardJson.requires,o=new AdaptiveCards.HostCapabilities;o.parse(r,null),o.areAllMet(this.adaptiveCardInstance.hostConfig.hostCapabilities)||(i=null)}null==i?(this.setCardVisible(!1),this.currentAction===this.constants.InitialCardRendering?(this.clientManagerInstance.logInitialCardRenderingEnd(),!0!==this.ignoreAutoInvokeAction&&void 0!==this.adaptiveCardInstance.autoInvokeAction||(this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction="")):this.currentAction===this.constants.FinalCardRendering&&(this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction="")):(this.setCardVisible(t),this.renderAsHtml(i)),!1===this.ignoreAutoInvokeAction&&null!=this.adaptiveCardInstance.autoInvokeAction&&this.adaptiveCardInstance.autoInvokeAction.execute()}sortFunction(e,t){return e[i.constants.performedAtProperty]>t[i.constants.performedAtProperty]?1:t[i.constants.performedAtProperty]>e[i.constants.performedAtProperty]?-1:0}showStatusMessage(e,t,n,i){if(null!=n._items)for(var r=0;r<n._items.length;r++)if(this.showStatusMessage(e,t,n._items[r],i))return!0;if(n instanceof AdaptiveCards.ActionSet&&null!=n._actionCollection&&null!=n._actionCollection.items)for(r=0;r<n._actionCollection.items.length;r++)if(this.showStatusMessage(e,t,n._actionCollection.items[r],i))return!0;if(n instanceof AdaptiveCards.ShowCardAction&&null!=n.card&&null!=n.card._items)for(r=0;r<n.card._items.length;r++)if(this.showStatusMessage(e,t,n.card._items[r],!1))return n.setStatus(t),!0;return n instanceof AdaptiveCards.Action&&null!=n.id&&n.id===e&&(!0===i&&n.setStatus(t),!0)}populateClientTelemetryObject(){this.clientTelemetryJson={};var e="00000000-0000-0000-0000-000000000000";this.extendedPropertyJson[this.constants.ConnectorSenderGuidProperty]&&(e=this.extendedPropertyJson[this.constants.ConnectorSenderGuidProperty]),this.clientTelemetryJson[this.constants.connectorSenderGuidProperty]=e,this.extendedPropertyJson[this.constants.ProviderAccountUniqueId]&&(this.clientTelemetryJson[this.constants.providerAccountUniqueId]=this.extendedPropertyJson[this.constants.ProviderAccountUniqueId]),this.clientTelemetryJson[this.constants.IsHttpPostActionAvailableProperty]=this.adaptiveCardInstance.isHttpPostActionAvailable,this.adaptiveCardInstance.messageCardContext&&(this.clientTelemetryJson[this.constants.MessageCardContextProperty]=this.adaptiveCardInstance.messageCardContext),this.extendedPropertyJson[this.constants.MessageCardExtensionContextProperty]&&(this.clientTelemetryJson[this.constants.messageCardExtensionContextProperty]=this.extendedPropertyJson[this.constants.MessageCardExtensionContextProperty]),null!=this.adaptiveCardInstance&&null!=this.messageCardJson?this.clientTelemetryJson[this.constants.MessageType]=this.constants.ConnectorMessage:null!=this.adaptiveCardInstance&&(this.clientTelemetryJson[this.constants.MessageType]=this.constants.AdaptiveCard),null!=this.adaptiveCardInstance.originator&&(this.clientTelemetryJson[this.constants.OriginatorProperty]=this.adaptiveCardInstance.originator)}populateClientTelemetryObjectFromExtendedProperty(e,t){this.clientTelemetryJson={};var n="00000000-0000-0000-0000-000000000000";e[this.constants.ConnectorSenderGuidProperty]&&(n=e[this.constants.ConnectorSenderGuidProperty]),this.clientTelemetryJson[this.constants.connectorSenderGuidProperty]=n,e[this.constants.ProviderAccountUniqueId]&&(this.clientTelemetryJson[this.constants.providerAccountUniqueId]=e[this.constants.ProviderAccountUniqueId]),this.clientTelemetryJson[this.constants.IsHttpPostActionAvailableProperty]=!0,null!=t[this.constants.MessageCardContextProperty]&&(this.clientTelemetryJson[this.constants.MessageCardContextProperty]=t[this.constants.MessageCardContextProperty]),e[this.constants.MessageCardExtensionContextProperty]&&(this.clientTelemetryJson[this.constants.messageCardExtensionContextProperty]=e[this.constants.MessageCardExtensionContextProperty]),this.clientTelemetryJson[this.constants.MessageType]=this.constants.AdaptiveCard,t[this.constants.OriginatorProperty]&&(this.clientTelemetryJson[this.constants.OriginatorProperty]=t[this.constants.OriginatorProperty])}renderAsHtml(e){var t=document.querySelector(this.targetDom);this.UtilsClass.assert(t,"Target DOM is missing in document DOM"),t&&e&&(t.innerHTML="",t.appendChild(e),this.allInputInstances=this.adaptiveCardInstance.getAllInputs(),this.handleInputValueChanged(this.allInputInstances),this.adaptiveCardInstance.updateLayout(),this.clientManagerInstance.logMessage("Adaptive card is added as child to the parent dom"));for(var n=0;n<this.allPerformedActions.length;n++){var i=this.allPerformedActions[n];null!=i[this.constants.DisplayMessageProperty]&&null!=i[this.constants.ActionId]&&this.showStatusMessage(i[this.constants.ActionId],this.getStatusMessageJson(i[this.constants.DisplayMessageProperty]),this.adaptiveCardInstance,!0)}this.addOpenUrlIcon(),this.hideEmptyTitleActionButtons(),this.addTooltipForAccessibility(),this.clientManagerInstance.postRender(),this.currentAction===this.constants.InitialCardRendering?(this.clientManagerInstance.logInitialCardRenderingEnd(),!0!==this.ignoreAutoInvokeAction&&void 0!==this.adaptiveCardInstance.autoInvokeAction||(this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction="")):this.currentAction===this.constants.FinalCardRendering&&(this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction="")}handleActionsIncaseOfAutoInvoke(){const e=document.getElementsByClassName("ac-pushButton");e&&(Array.from(e).map((e=>e.disabled=this.isAutoInvokeSpinnerVisible||null!=e.classList&&e.classList.contains("ac-disabledAction"))),this.addOpenUrlIcon())}addOpenUrlIcon(){if(this.openUrlList)for(let s=0;s<this.openUrlList.length;s++){var e=this.openUrlList[s].renderedElement;if(e&&e.classList&&e.innerText){var t=e.innerText;if(e.innerText="",null===e.querySelector("#openUrlButton")){var n=document.createElement("span");n.id="iconDummyOpenUrl",n.classList.add("iconDummyOpenUrl"),n.style.display="inline-block",n.innerText=" ",e.appendChild(n);var i=document.createElement("span");i.id="openUrlButton",i.classList.add("openUrlButton"),i.style.margin="auto",i.innerText=t,i.style.overflow="hidden",i.style.textOverflow="ellipsis",i.style.whiteSpace="nowrap",e.appendChild(i);var r=t;r=r.concat(this.constants.OpenInBrowser),e.setAttribute("aria-label",r);var o=document.createElement("span");o.id="iconOpenUrl",o.style.display="inline-block",o.innerText=" ",e.appendChild(o),1==e.disabled?o.classList.add("ac-openUrlIconDisabled"):1===this.clientManagerInstance.actionButtonsCount||this.openUrlList[s].isPrimary?o.classList.add("ac-openUrlIconNonPrimary"):o.classList.add("ac-openUrlIconPrimary")}}}}hideEmptyTitleActionButtons(){if(this.emptyActionButtonTitleList)for(let e=0;e<this.emptyActionButtonTitleList.length;e++){let t=this.emptyActionButtonTitleList[e].renderedElement;t&&"button"===t.type&&(t.style.display="none")}}addTooltipForAccessibility(){{const e=document.getElementsByClassName("ac-anchor");Array.prototype.forEach.call(e,(function(e){e.getAttribute("title")||e.setAttribute("title",e.getAttribute("href"))}));const t=document.getElementsByClassName("ac-pushButton");Array.prototype.forEach.call(t,(function(e){e.getAttribute("aria-label")&&e.setAttribute("title",e.getAttribute("aria-label"))}));const n=document.getElementsByClassName("ac-selectable");Array.prototype.forEach.call(n,(function(e){e.getAttribute("aria-label")&&e.setAttribute("title",e.getAttribute("aria-label"))}))}}displayErrorMessage(e){if(!e.isAutoInvokeAction&&e.data)for(var t=0;t<e.data.length;t++)if(e.data[t].validationErrors&&e.data[t].validationErrors.length>0)return this.clientManagerInstance.displaySnackMessage(e.data[t].validationErrors[0].message,!1),!0;return!1}displayMessageFromClient(e,t){this.clientManagerInstance.displaySnackMessage(e,t)}showAutoInvokeSpinner(){this.isAutoInvokeSpinnerVisible=!0,this.handleActionsIncaseOfAutoInvoke();let e=document.querySelector(this.targetDom),t=document.createElement("div");t.className="ac-overlay-spinner",e.parentElement.prepend(t),this.notifyHeightChangeForWindows();var n=6e3;this.context&&this.context.spinnerTimeout&&"number"==typeof this.context.spinnerTimeout&&(n=this.context.spinnerTimeout),this.autoInvokeSpinnerTimer=setTimeout((function(){i.hideAutoInvokeSpinner()}),n)}hideAutoInvokeSpinner(){this.isAutoInvokeSpinnerVisible=!1,this.autoInvokeSpinnerTimer=null,this.handleActionsIncaseOfAutoInvoke(),this.allInputInstances&&this.handleInputValueChanged(this.allInputInstances);let e=document.getElementsByClassName("ac-overlay-spinner")[0];e&&e.parentNode.removeChild(e),this.notifyHeightChangeForWindows()}onInlineCardExpanded(e,t){if(e instanceof AdaptiveCards.ShowCardAction){if(t&&e.card&&e.card._renderedElement){let t=e._actionCollection;if(t&&t._owner.hostConfig.actions.preExpandSingleShowCardAction&&1===(t._owner.hostConfig.actions.maxActions?Math.min(t._owner.hostConfig.actions.maxActions,t.items.length):t.items.length))return;this.showCardActionRef=e;var n=e.card._renderedElement,r=document.createElement("div");r.className="inlineExpandedShowCard",r.id="inlineExpandedShowCard";var o=document.createElement("div");o.className="showCardHeaderDiv";var s=document.createElement("div");s.className="showCardHeaderTitle",s.innerHTML=e.title,o.appendChild(s);var a=document.createElement("div");a.className="showCardCloseButton",a.setAttribute("role","button"),a.tabIndex=0,a.addEventListener("keyup",(function(e){13===e.keyCode&&e.currentTarget.click()}));var l=this.constants.ShowCardCloseButtonAriaLabel;l=l.replace(/{title}/g,e.title),a.setAttribute("aria-label",l);var c=i;for(a.onclick=function(){c.CollapseExpandedShowCardDialog()},o.appendChild(a),r.appendChild(o);n.hasChildNodes();)r.appendChild(n.firstChild);n.style.padding="0px",n.appendChild(r);var u=document.querySelectorAll(".ac-pushButton"),p=document.getElementById("inlineExpandedShowCard");Array.prototype.forEach.call(u,(function(e){if(p&&!p.contains(e)){if(e.querySelector("#openUrlButton")){var t=e.querySelector("#iconOpenUrl");t.classList=null,t.classList.add("ac-openUrlIconDisabled")}e.disabled=!0}})),this.addOpenUrlIcon(),this.handleInputValueChanged(this.allInputInstances);var d=p.querySelector(".ac-textInput, .ac-numberInput");d&&d.focus(),this.notifyHeightChangeForWindows()}this.clientManagerInstance.executeShowCardAction(e,null!=this.adaptiveCardJson,t)}}onExecuteAction(e){this.displayErrorMessage(e)||(e.isAutoInvokeAction&&this.showAutoInvokeSpinner(),null!=this.messageCardJson?this.onExecuteMessageCardAction(e):null!=this.adaptiveCardJson&&this.onExecuteAdaptiveCardAction(e))}onExecuteMessageCardAction(e){var t=null;if(null!=e.renderedElement&&"button"===e.renderedElement.type&&(t="button",this.addOpenUrlIcon()),!this.previousActionExecuting){if(this.actionNeedsSpinner(e)&&(this.previousActionExecuting=!0,this.previousAction=e,null!=e.renderedElement&&"button"===e.renderedElement.type)){for(var n=0;n<e.renderedElement.children.length;n++)e.renderedElement.children[n].style.visibility="hidden";var i=document.createElement("div");i.className="ac-spinner",i.style.position="absolute",e.renderedElement.appendChild(i),e.renderedElement.setAttribute("aria-live","assertive"),e.renderedElement.setAttribute("aria-label","loading"),e.renderedElement.setAttribute("aria-relevant","additions")}this.clientManagerInstance.executeAction(e,!1,t)}}onExecuteAdaptiveCardAction(e){var t=null;if(null!=e.renderedElement&&"button"===e.renderedElement.type?(t="button",1==this.clientManagerInstance.actionButtonsCount&&e.renderedElement.classList.add("primary"),this.addOpenUrlIcon()):e.parent instanceof AdaptiveCards.TextBlock?t="inline":e.isAutoInvokeAction||(t="selectAction"),!this.previousActionExecuting){if(this.clientManagerInstance.MoreActionClass&&e instanceof this.clientManagerInstance.MoreActionClass?this.previousAction=e:this.actionNeedsSpinner(e)&&(this.previousActionExecuting=!0,this.previousAction=e),this.actionNeedsSpinner(e))if(null!=e.renderedElement&&"button"===e.renderedElement.type){for(var n=0;n<e.renderedElement.children.length;n++)e.renderedElement.children[n].style.visibility="hidden";var i=document.createElement("div");i.className="ac-spinner",i.style.position="absolute",e.renderedElement.appendChild(i),e.renderedElement.setAttribute("aria-live","assertive"),e.renderedElement.setAttribute("aria-label","loading"),e.renderedElement.setAttribute("aria-relevant","additions")}else if(e.parent instanceof AdaptiveCards.TextBlock||e.parent instanceof AdaptiveCards.Image||e.parent instanceof AdaptiveCards.ColumnSet||e.parent instanceof AdaptiveCards.Column||e.parent instanceof AdaptiveCards.Container){var r=document.createElement("div");r.className="ac-overlayDiv",r.style.width="16px",r.style.height="16px",r.style.position="absolute",r.style.margin="auto",r.style.left="0px",r.style.right="0px",r.style.top="0px",r.style.bottom="0px";var o=document.createElement("div");o.className="ac-spinner",o.classList.add("ac-inline-spinner"),o.style.width="14px",o.style.height="14px",r.appendChild(o);var s=e.parent.renderedElement;e.parent instanceof AdaptiveCards.Image&&(s=e.parent.renderedElement.children[0]);var a=s.childNodes;for(n=0;n<a.length;n++)a[n].style&&(a[n].style.opacity=.25);s.appendChild(r),s.style.position="relative"}this.clientManagerInstance.executeAction(e,!0,t)}}addInputParameters(e){var t={};if(this.context){let e=this.context.inputParameters;if(e)for(let n=0;n<e.length;n++)t[e[n].id]=e[n].value}var n=this.adaptiveCardInstance.getAllInputs();if(n)for(var i=0;i<n.length;i++){var r=null;if(null!=n[i].value){r=n[i].actualValue?n[i].actualValue:n[i].value;var o=n[i].validate?n[i].validate():null,s={id:n[i].id,value:r};o&&o.length>0&&(s.validationErrors=o),t[s.id]=s.value}}for(var a in e.data=[],t)e.data.push({id:a,value:t[a]})}onParseElement(e,t){try{"boolean"==typeof t[this.constants.IsVisible]&&(e.isVisible=t[this.constants.IsVisible]);var n=e.getJsonTypeName();if("Image"===n){this.imagesCount++,e.backgroundColor=t[this.constants.BackgroundColor];let n=this.UtilsClass.getImageProxyUrl(t[this.constants.Url],this.clientManagerInstance.supportImageProxy,this.clientManagerInstance.imageAttachmentBaseUrl,this.clientManagerInstance.getImageProxyUrl(),this.adaptiveCardInstance.originator);n=this.UtilsClass.getAttachmentImageProxyUrl(n,this.clientManagerInstance.supportAttachmentImageProxy,this.clientManagerInstance.imageAttachmentBaseUrl,this.clientManagerInstance.imageAttachmentProxyUrl),t[this.constants.Url]=n}if("BackgroundImage"===n){this.imagesCount++;let e=this.UtilsClass.getImageProxyUrl(t[this.constants.Url],this.clientManagerInstance.supportImageProxy,this.clientManagerInstance.imageAttachmentBaseUrl,this.clientManagerInstance.getImageProxyUrl(),this.adaptiveCardInstance.originator);e=this.UtilsClass.getAttachmentImageProxyUrl(e,this.clientManagerInstance.supportAttachmentImageProxy,this.clientManagerInstance.imageAttachmentBaseUrl,this.clientManagerInstance.imageAttachmentProxyUrl),t[this.constants.Url]=e}if(e instanceof AdaptiveCards.Input&&(t[this.constants.InputIdProperty]||e.remove()||(e.isVisible=!1),e.isRequired=t[this.constants.IsRequiredProperty]||!1,e.onValueChanged=i.onInputValueChanged),e instanceof AdaptiveCards.DateInput&&(e.placeholder=t[this.constants.PlaceHolderProperty]),e instanceof AdaptiveCards.ChoiceSetInput&&(e.choiceList=t[this.constants.ChoicesProperty]),e instanceof AdaptiveCards.Container||e instanceof AdaptiveCards.ColumnSet){var r=t[this.constants.Padding];if(r)if("string"==typeof r){var o=AdaptiveCards.getEnumValueOrDefault(AdaptiveCards.Spacing,r,AdaptiveCards.Spacing.None);e.padding=new AdaptiveCards.PaddingDefinition(o,o,o,o)}else"object"==typeof r&&(e.padding=new AdaptiveCards.PaddingDefinition(AdaptiveCards.getEnumValueOrDefault(AdaptiveCards.Spacing,r[this.constants.Top],AdaptiveCards.Spacing.None),AdaptiveCards.getEnumValueOrDefault(AdaptiveCards.Spacing,r[this.constants.Right],AdaptiveCards.Spacing.None),AdaptiveCards.getEnumValueOrDefault(AdaptiveCards.Spacing,r[this.constants.Bottom],AdaptiveCards.Spacing.None),AdaptiveCards.getEnumValueOrDefault(AdaptiveCards.Spacing,r[this.constants.Left],AdaptiveCards.Spacing.None)));const n=t[this.constants.BackgroundImage];if(n)if("string"==typeof n){this.imagesCount++;let e=this.UtilsClass.getImageProxyUrl(t[this.constants.BackgroundImage],this.clientManagerInstance.supportImageProxy,this.clientManagerInstance.imageAttachmentBaseUrl,this.clientManagerInstance.getImageProxyUrl(),this.adaptiveCardInstance.originator);e=this.UtilsClass.getAttachmentImageProxyUrl(e,this.clientManagerInstance.supportAttachmentImageProxy,this.clientManagerInstance.imageAttachmentBaseUrl,this.clientManagerInstance.imageAttachmentProxyUrl),t[this.constants.BackgroundImage]=e}else if("object"==typeof n){let e=n.url;if(e){this.imagesCount++;let t=this.UtilsClass.getImageProxyUrl(e,this.clientManagerInstance.supportImageProxy,this.clientManagerInstance.imageAttachmentBaseUrl,this.clientManagerInstance.getImageProxyUrl(),this.adaptiveCardInstance.originator);t=this.UtilsClass.getAttachmentImageProxyUrl(t,this.clientManagerInstance.supportAttachmentImageProxy,this.clientManagerInstance.imageAttachmentBaseUrl,this.clientManagerInstance.imageAttachmentProxyUrl),n.url=t}}}if((e instanceof AdaptiveCards.ContainerWithActions||e instanceof AdaptiveCards.ActionSet)&&!0===i.clientManagerInstance.supportMoreAction&&t[this.constants.ActionsProperty]){var s=t[this.constants.ActionsProperty],a=s.length;if(s.length>2&&"Action.More"!==s[s.length-1].type){var l={type:"Action.More",title:a-1+" More Actions",actions:s.splice(1)};s.push(l),t[this.constants.ActionsProperty]=s}}}catch(e){this.clientManagerInstance.logException(e)}}onParseAction(e,t){try{e instanceof AdaptiveCards.OpenUrlAction&&this.openUrlList.push(e),t.title&&0!==t.title.length||this.emptyActionButtonTitleList.push(e),e.potentialAction=t,e.isAutoInvokeAction=!1,e.hideCardOnInvoke=t[this.constants.HideCardOnInvokeProperty]||!1,e.isPrimary=t[this.constants.IsPrimaryAction]||!1,e.isActionDisabled=!1===t[this.constants.IsEnabledProperty],e instanceof AdaptiveCards.HttpAction&&(this.httpActionList.push(e),this.adaptiveCardInstance.isHttpPostActionAvailable=!0)}catch(e){this.clientManagerInstance.logException(e)}}onInputValueChanged(e){e.placeHolderElement&&(e.placeHolderElement.style.display=e.value?"block":"none"),!1!==e.isRequired&&i.handleInputValueChanged(i.allInputInstances)}handleInputValueChanged(e){for(var t in this.logTimeStamp("handleInputValueChanged-start"),this.httpActionList){var n=this.httpActionList[t];if(n.renderedElement){var i=n.inputIds,r=!0;for(var o in i){var s=null,a=null;for(var l in e)if(i[o]===e[l].id){a=e[l],s=e[l].value;break}if(null!==a&&!1!==a.isRequired&&!0===a.isRequired&&0==(r=a instanceof AdaptiveCards.ToggleInput&&a._checkboxInputElement?a._checkboxInputElement.checked:a instanceof AdaptiveCards.NumberInput?a.ValueInRange(a.value):!this.StringIsNullOrEmpty(s)))break}!1===r?n.renderedElement.disabled=!0:(document.getElementById("inlineExpandedShowCard"),n.renderedElement.disabled=n.isActionDisabled)}}this.logTimeStamp("handleInputValueChanged-end")}onAnchorClicked(e,t){var n=t[this.constants.Href]||"";if(0===n.toLowerCase().indexOf("action:")){var i=n.split(":")[1];if(i===this.constants.ConnectorLoginLinkId)return this.clientManagerInstance.executePleaseLoginAction(this.ConnectorsLoginUrl),!0;var r=this.findInlineActionById(i,e);return null!=r&&(r.execute(),!0)}return!(!this.clientManagerInstance.supportCustomHyperlinkHandling||!n||(this.clientManagerInstance.HandleHyperlinkClickEvent(n),0))}onImageLoaded(e){this.imagesCount&&(this.imagesCount--,0===this.imagesCount&&this.clientManagerInstance.notifyHeightChange())}findInlineActionById(e,t){var n=null;if(null==e)return n;var i=this.adaptiveCardJson[this.constants.Resources];if(null===i)return n;var r=i[this.constants.ActionsProperty];if(null==r)return n;for(var o=0;o<r.length;o++)if(r[o].id===e){var s=r[o];(n=this.createActionInstance(s.type,t))&&n.parse(s);break}return n}setCardVisible(e){!1===e?this.clientManagerInstance.setComponentVisibility(!1,!1,!0,!1):this.clientManagerInstance.setComponentVisibility(!0,this.adaptiveCardInstance.enableBodyToggling,!this.adaptiveCardInstance.hideOriginalBody,this.adaptiveCardInstance.isConstrainWidth)}showMoreActionWorkingStatus(){if(null!=this.adaptiveCardJson){this.previousAction&&(this.previousActionExecuting=!0);for(var e=0;e<this.previousAction.renderedElement.children.length;e++)this.previousAction.renderedElement.children[e].style.visibility="hidden";var t=document.createElement("div");t.className="ac-spinner",t.style.position="absolute",this.previousAction.renderedElement.appendChild(t)}}updateActionStatus(){if(null!=this.previousAction){if(null!=this.previousAction.renderedElement&&"button"===this.previousAction.renderedElement.type){this.previousAction.renderedElement.setAttribute("aria-label",this.previousAction.title);var e=this.previousAction.renderedElement.getElementsByClassName("ac-spinner");e.length>0&&this.previousAction.renderedElement.removeChild(e[0]);for(var t=0;t<this.previousAction.renderedElement.children.length;t++)this.previousAction.renderedElement.children[t].style.visibility="visible"}else if(this.previousAction.parent instanceof AdaptiveCards.TextBlock||this.previousAction.parent instanceof AdaptiveCards.Image||this.previousAction.parent instanceof AdaptiveCards.ColumnSet||this.previousAction.parent instanceof AdaptiveCards.Column||this.previousAction.parent instanceof AdaptiveCards.Container){var n=this.previousAction.parent.renderedElement.getElementsByClassName("ac-overlayDiv");if(n.length>0){var i=n[0].parentNode;i.removeChild(n[0]);var r=i.childNodes;for(t=0;t<r.length;t++)r[t].style&&(r[t].style.opacity=1)}}this.CollapseExpandedShowCardDialog()}this.previousActionExecuting=!1}processMessageCardActionResponse(e){this.updateActionStatus();var t=this.clientManagerInstance.processData(e);this.hasCardUpdates=!1,!0===t[this.constants.IsAutoInvokeAction]?this.processMessageCardAutoInvokeActionResponse(t):this.processMessageCardHttpActionResponse(t)}processMessageCardHttpActionResponse(e){try{try{var t=!1,n=e[this.constants.ActionId];if(this.isJsonString(e[this.constants.ResponseSerialized])){var i=JSON.parse(e[this.constants.ResponseSerialized]);if(!0===i[this.constants.RemoveCardProperty])this.setCardVisible(!1),this.clientManagerInstance.updateExplicitMessageCardProperty(),this.clientManagerInstance.logEventTelemetry(this.constants.MessageCardRemoved);else if(!0===i[this.constants.HideCardProperty])this.setCardVisible(!1),this.clientManagerInstance.logEventTelemetry(this.constants.MessageCardHidden);else if(this.StringIsNullOrEmpty(i[this.constants.InnerErrorCodeProperty])||i[this.constants.InnerErrorCodeProperty]!==this.constants.ConnectedAccountNotErrorString||this.StringIsNullOrEmpty(i[this.constants.AuthenticationUrl]))if(this.StringIsNullOrEmpty(i[this.constants.RefreshCardSerializedProperty]))if(!0===i[this.constants.ShowOriginalCardProperty])this.renderAsHtml(this.getRenderedAdaptiveCard()),this.setCardVisible(!0);else{var r,o;r=this.StringIsNullOrEmpty(i[this.constants.DisplayMessageProperty])?i[this.constants.InnerErrorCodeProperty]?this.constants.Actions.SwiftCardFailureStatusMessage:this.constants.Actions.SuccessStatusMessage:i[this.constants.DisplayMessageProperty],i[this.constants.InnerErrorCodeProperty],o=this.getStatusMessageJson(r),this.showStatusMessage(n,o,this.adaptiveCardInstance,!0),this.notifyHeightChangeForWindows()}else this.messageCardJson=JSON.parse(i[this.constants.RefreshCardSerializedProperty]),this.allPerformedActions=[],this.convertToAdaptiveCardInstance(!0),this.handleNotifyHeightChange(),this.clientManagerInstance.notifyRefreshCardResponse(JSON.stringify(e));else this.ConnectorsLoginUrl=i[this.constants.AuthenticationUrl],this.showStatusMessage(n,this.getLoginMessageJson(i[this.constants.DisplayMessageProperty],this.constants.ConnectorLoginLinkId),this.adaptiveCardInstance,!0),this.clientManagerInstance.logEventTelemetry(this.constants.ConsentPromptDisplayed),this.notifyHeightChangeForWindows(),this.errorMessageActionId=n}else t=!0}catch(e){console.log(e.message),console.log(e.stack),t=!0,this.clientManagerInstance.logException(e)}!0===t&&null!=n&&(this.showStatusMessage(n,this.getStatusMessageJson(this.constants.Actions.SwiftCardFailureStatusMessage,this.clientManagerInstance.errorStatusImageUrl),this.adaptiveCardInstance,!0),this.notifyHeightChangeForWindows())}catch(e){console.log(e.message),console.log(e.stack),this.clientManagerInstance.logException(e)}}processMessageCardAutoInvokeActionResponse(e){if(!1===this.isAutoInvokeSpinnerVisible)return this.clientManagerInstance.logFinalCardProcessingEnd(),this.clientManagerInstance.logFinalCardRenderingEnd(),void(this.currentAction="");try{this.currentAction=this.constants.FinalCardProcessing;var t=!0;if(null!=this.messageCardJson[this.constants.AutoInvokeOptions]&&null!=this.messageCardJson[this.constants.AutoInvokeOptions][this.constants.ShowCardOnFailure]&&(t=this.messageCardJson[this.constants.AutoInvokeOptions][this.constants.ShowCardOnFailure]),this.isJsonString(e[this.constants.ResponseSerialized])){var n=JSON.parse(e[this.constants.ResponseSerialized]);n[this.constants.InnerErrorCodeProperty]||n[this.constants.AuthenticationUrl]?(this.setCardVisible(t),this.clientManagerInstance.logFinalCardProcessingEnd(),this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction=""):!0===n[this.constants.RemoveCardProperty]?(this.setCardVisible(!1),this.clientManagerInstance.updateExplicitMessageCardProperty(),this.clientManagerInstance.logEventTelemetry(this.constants.MessageCardRemoved),this.clientManagerInstance.logFinalCardProcessingEnd(),null==this.adaptiveCardInstance.autoInvokeAction||this.adaptiveCardInstance.autoInvokeAction.hideCardOnInvoke||this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction=""):!0===n[this.constants.HideCardProperty]?(this.setCardVisible(!1),this.clientManagerInstance.logEventTelemetry(this.constants.MessageCardHidden),this.clientManagerInstance.logFinalCardProcessingEnd(),null==this.adaptiveCardInstance.autoInvokeAction||this.adaptiveCardInstance.autoInvokeAction.hideCardOnInvoke||this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction=""):this.StringIsNullOrEmpty(n[this.constants.RefreshCardSerializedProperty])?!0===n[this.constants.ShowOriginalCardProperty]?(this.clientManagerInstance.logFinalCardProcessingEnd(),this.currentAction=this.constants.FinalCardRendering,this.renderAsHtml(this.getRenderedAdaptiveCard()),this.setCardVisible(!0)):!1===n[this.constants.ShowOriginalCardProperty]&&(this.clientManagerInstance.logFinalCardProcessingEnd(),this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction="",this.setCardVisible(!1)):(this.messageCardJson=JSON.parse(n[this.constants.RefreshCardSerializedProperty]),this.allPerformedActions=[],this.convertToAdaptiveCardInstance(!0),this.handleNotifyHeightChange(),this.clientManagerInstance.notifyRefreshCardResponse(JSON.stringify(e)))}else this.setCardVisible(t),this.clientManagerInstance.logFinalCardProcessingEnd(),this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction=""}catch(e){console.log(e.message),console.log(e.stack),this.setCardVisible(!1),this.clientManagerInstance.logException(e),this.clientManagerInstance.logFinalCardProcessingEnd(),this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction=""}this.hideAutoInvokeSpinner()}processAdaptiveCardActionResponse(e,t=null){let n=this.previousAction;this.updateActionStatus();var i=this.clientManagerInstance.processData(e);let r=this.UtilsClass.MessageId;i.hasOwnProperty(r)&&this.context.hasOwnProperty(r)&&i[r]!==this.context[r]||(this.hasCardUpdates=!1,!0===i[this.constants.IsAutoInvokeAction]?this.processAdaptiveCardAutoInvokeActionResponse(i):this.processAdaptiveCardHttpActionResponse(i,n,t))}processAdaptiveCardHttpActionResponse(e,t,n=null){try{try{var i=!1;if(this.isJsonString(e[this.constants.ResponseSerialized])){var r=JSON.parse(e[this.constants.ResponseSerialized]);if(!0===r[this.constants.RemoveCardProperty])this.setCardVisible(!1),this.clientManagerInstance.updateExplicitMessageCardProperty(),this.clientManagerInstance.logEventTelemetry(this.constants.MessageCardRemoved);else if(!0===r[this.constants.HideCardProperty])this.setCardVisible(!1),this.clientManagerInstance.logEventTelemetry(this.constants.MessageCardHidden);else if(this.tryHandleCardUpdates(r))this.handleNotifyHeightChange(),this.clientManagerInstance.notifyRefreshCardResponse(JSON.stringify(e));else if(this.tryHandleRefreshCard(r))this.handleNotifyHeightChange(),this.clientManagerInstance.notifyRefreshCardResponse(JSON.stringify(e));else if(!0===r[this.constants.ShowOriginalCardProperty])this.renderAsHtml(this.getRenderedAdaptiveCard()),this.setCardVisible(!0);else{let n="Unknown";if(null!=r[this.constants.StatusProperty]&&(n=r[this.constants.StatusProperty]),r[this.constants.InnerErrorCodeProperty]&&(n="Failed"),"completed"===n||"Completed"===n){let e=this.constants.Actions.SuccessStatusMessage;null!=r[this.constants.DisplayMessageProperty]&&(e=r[this.constants.DisplayMessageProperty]),this.clientManagerInstance.displaySnackMessage(e,!0)}else{let n=null;r[this.constants.Errors]&&Array.isArray(r[this.constants.Errors])&&(n=r[this.constants.Errors][0]);let i=this.constants.Actions.FailureStatusMessage;if(n&&n[this.constants.MessageProperty]?i=n[this.constants.MessageProperty]:r[this.constants.DisplayMessageProperty]&&(i=r[this.constants.DisplayMessageProperty]),e.hasOwnProperty(this.constants.IsRetryFlow)&&!1===e[this.constants.IsRetryFlow]&&t&&this.ShouldHandleAuthErrors(r,n)){let e="";n[this.constants.HttpStatusCodeProperty]===this.constants.HttpUnauthorizedCode&&n[this.constants.Url]?e=n[this.constants.Url]:r[this.constants.AuthenticationUrl]&&(e=r[this.constants.AuthenticationUrl]),this.clientManagerInstance.executeAuthFlowForHttpAction(t,n,e,i)}else this.clientManagerInstance.displaySnackMessage(i,!1)}}}else n?this.clientManagerInstance.displaySnackMessage(n,!1):i=!0}catch(e){console.log(e.message),console.log(e.stack),i=!0,this.clientManagerInstance.logException(e)}!0===i&&this.clientManagerInstance.displaySnackMessage(this.constants.Actions.FailureStatusMessage,!1)}catch(e){console.log(e.message),console.log(e.stack),this.clientManagerInstance.logException(e)}}processAdaptiveCardAutoInvokeActionResponse(e){if(!1===this.isAutoInvokeSpinnerVisible)return this.clientManagerInstance.logFinalCardProcessingEnd(),this.clientManagerInstance.logFinalCardRenderingEnd(),void(this.currentAction="");try{this.currentAction=this.constants.FinalCardProcessing;var t=!0;if(null!=this.adaptiveCardInstance.autoInvokeOptions&&null!=this.adaptiveCardInstance.autoInvokeOptions[this.constants.ShowCardOnFailure]&&(t=this.adaptiveCardInstance.autoInvokeOptions[this.constants.ShowCardOnFailure]),this.isJsonString(e[this.constants.ResponseSerialized])){var n=JSON.parse(e[this.constants.ResponseSerialized]);!0===n[this.constants.RemoveCardProperty]?(this.setCardVisible(!1),this.clientManagerInstance.updateExplicitMessageCardProperty(),this.clientManagerInstance.logEventTelemetry(this.constants.MessageCardRemoved),this.clientManagerInstance.logFinalCardProcessingEnd(),null==this.adaptiveCardInstance.autoInvokeAction||this.adaptiveCardInstance.autoInvokeAction.hideCardOnInvoke||this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction=""):!0===n[this.constants.HideCardProperty]?(this.setCardVisible(!1),this.clientManagerInstance.logEventTelemetry(this.constants.MessageCardHidden),this.clientManagerInstance.logFinalCardProcessingEnd(),null==this.adaptiveCardInstance.autoInvokeAction||this.adaptiveCardInstance.autoInvokeAction.hideCardOnInvoke||this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction=""):this.tryHandleCardUpdates(n)?(this.handleNotifyHeightChange(),this.clientManagerInstance.logFinalCardProcessingEnd(),this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction="",this.clientManagerInstance.notifyRefreshCardResponse(JSON.stringify(e))):this.tryHandleRefreshCard(n)?(this.handleNotifyHeightChange(),this.clientManagerInstance.notifyRefreshCardResponse(JSON.stringify(e))):!0===n[this.constants.ShowOriginalCardProperty]?(this.clientManagerInstance.logFinalCardProcessingEnd(),this.currentAction=this.constants.FinalCardRendering,this.renderAsHtml(this.getRenderedAdaptiveCard()),this.setCardVisible(!0)):"Failed"===n[this.constants.StatusProperty]||n[this.constants.InnerErrorCodeProperty]?(this.setCardVisible(t),this.clientManagerInstance.logFinalCardProcessingEnd(),this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction=""):(this.clientManagerInstance.logFinalCardProcessingEnd(),this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction="")}else this.setCardVisible(t),this.clientManagerInstance.logFinalCardProcessingEnd(),this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction=""}catch(e){console.log(e.message),console.log(e.stack),this.setCardVisible(!1),this.clientManagerInstance.logException(e),this.clientManagerInstance.logFinalCardProcessingEnd(),this.clientManagerInstance.logFinalCardRenderingEnd(),this.currentAction=""}this.hideAutoInvokeSpinner()}ShouldHandleAuthErrors(e,t){return!(!e||!e[this.constants.AuthenticationUrl]&&(!t||!t[this.constants.HttpStatusCodeProperty]||t[this.constants.HttpStatusCodeProperty]!==this.constants.HttpUnauthorizedCode&&t[this.constants.HttpStatusCodeProperty]!==this.constants.HttpForbiddenCode))}isSupportedCardUpdateElementType(e){return this.constants.SupportedCardUpdateElementTypes.includes(e)}tryHandleCardUpdates(e){if(!e[this.constants.CardUpdatesProperty])return!1;const t=e[this.constants.CardUpdatesProperty];let n=0;try{for(const i of t){let t;if(!i.elementId||!(t=document.getElementById(i.elementId)))continue;const r=this.adaptiveCardInstance.getElementById(i.elementId);if(r&&this.isSupportedCardUpdateElementType(r.getJsonTypeName())){switch(i.action){case this.constants.ReplaceElementAction:if(!this.isSupportedCardUpdateElementType(i.element.type))continue;const e=this.createElementInstance(i.element.type);e.parse(i.element),r.parent.insertItemBefore(e,r),r.remove();const n=e.render();n.setAttribute("role","alert"),t.replaceWith(n);break;case this.constants.RemoveElementAction:r.remove(),t.remove();break;default:return!1}if(!this.StringIsNullOrEmpty(e[this.constants.RefreshCardSerializedProperty])){let t=JSON.parse(e[this.constants.RefreshCardSerializedProperty]);t&&"AdaptiveCard"===t.type&&(this.adaptiveCardJson=t)}n++}}return 0!==n}catch(e){return!1}}tryHandleRefreshCard(e){if(this.StringIsNullOrEmpty(e[this.constants.RefreshCardSerializedProperty]))return!1;var t=JSON.parse(e[this.constants.RefreshCardSerializedProperty]);return"AdaptiveCard"===t.type?(this.adaptiveCardJson=t,this.generateAdaptiveCardInstance(!0)):"MessageCard"===t["@type"]&&(this.messageCardJson=t,this.allPerformedActions=[],this.convertToAdaptiveCardInstance(!0)),!0}handleNotifyHeightChange(){this.clientManagerInstance.notifyHeightChange()}getLoginMessageJson(e,t){return{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",padding:{top:"large",right:"default",bottom:"large",left:"default"},version:"1.0",style:"emphasis",body:[{type:"TextBlock",text:e+" [Please login to continue](action:"+t+")",size:"default",spacing:"small",wrap:!0}]}}getStatusMessageJson(e,t){return t?{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",padding:{top:"large",right:"default",bottom:"large",left:"default"},version:"1.0",style:"emphasis",body:[{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:e,size:"default",spacing:"small",wrap:!0}]},{type:"Column",width:"auto",items:[{type:"Image",url:t,pixelWidth:18}]}]}]}:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",padding:{top:"large",right:"default",bottom:"large",left:"default"},version:"1.0",style:"emphasis",body:[{type:"TextBlock",text:e,size:"default",spacing:"small",wrap:!0}]}}hideCardStatusMessage(){null!=this.errorMessageActionId&&(this.showStatusMessage(this.errorMessageActionId,null,this.adaptiveCardInstance,!0),this.notifyHeightChangeForWindows())}showWorkingStatusMessage(e){null!=e&&this.showStatusMessage(e,this.getStatusMessageJson(this.WorkingStatusMessage,this.clientManagerInstance.spinnerUrl),this.adaptiveCardInstance,!0)}isJsonString(e){try{JSON.parse(e)}catch(e){return!1}return!0}logTimeStamp(e){var t=performance.now();null!=this.clientManagerInstance&&this.clientManagerInstance.logTimeStamp(e,t)}getRenderedAdaptiveCard(){if(null==this.adaptiveCardInstance)return null;this.logTimeStamp("renderHTML-start");var e=this.adaptiveCardInstance.render();if(e){var t=e.querySelectorAll("h1, h2, h3, h4, h5, h6");if(Array.prototype.forEach.call(t,(function(e){e.style.lineHeight=1.33})),null!=this.clientManagerInstance.actionButtonsCount){var n=e.querySelectorAll(".ac-pushButton");this.clientManagerInstance.actionButtonsCount=n.length,1==n.length&&n[0].classList.add("primary")}this.clientManagerInstance.supportMessageCard&&this.messageCardJson&&this.messageCardConverterInstance.applyMessageCardStyling(e,this.messageCardJson)}return this.logTimeStamp("renderHTML-end"),e}actionNeedsSpinner(e){return!e.isAutoInvokeAction&&(e instanceof this.clientManagerInstance.HttpActionClass||e instanceof this.clientManagerInstance.DisplayMessageFormActionClass||e instanceof this.clientManagerInstance.DisplayAppointmentFormActionClass)}createActionInstance(e,t){var n=AdaptiveCards.AdaptiveCard.actionTypeRegistry.createInstance(e);return n&&n.setParent(t),n}createElementInstance(e,t){var n=AdaptiveCards.AdaptiveCard.elementTypeRegistry.createInstance(e);return n&&n.setParent(t),n}StringIsNullOrEmpty(e){return!e}CollapseExpandedShowCardDialog(){if(this.showCardActionRef){var e=document.querySelectorAll(".ac-pushButton");e&&Array.prototype.forEach.call(e,(function(e){if(e.disabled=!1,e.querySelector("#openUrlButton")){var t=e.querySelector("#iconOpenUrl");t.classList=null,e.isPrimary||e.classList.contains("primary")?t.classList.add("ac-openUrlIconNonPrimary"):t.classList.add("ac-openUrlIconPrimary")}})),this.handleInputValueChanged(this.allInputInstances),this.showCardActionRef._actionCollection.collapseExpandedAction(),this.showCardActionRef._renderedElement.focus(),this.showCardActionRef=null,this.notifyHeightChangeForWindows()}}saveInstanceState(e,t,n=null){let i;if(!this.clientManagerInstance.supportSavingState)return;const r={};for(i in this.allInputInstances){const e=this.allInputInstances[i];let t=e.value?e.value:"";if(r[e.id]=t,e.actualValue&&(r[e.id]=e.actualValue),e.selectedDate&&e.selectedDateWithTimeZone){const t=this.constants.DateInputConstants.SelectedDate,n=this.constants.DateInputConstants.SelectedDateWithTimeZone;var o={};o[t]=e.selectedDate,o[n]=e.selectedDateWithTimeZone,r[e.id]=o}}const s={};s[this.constants.InputParameters]=r,s[this.constants.DialogParameters]=n,i=this.getLocalStorageKey(t,e,this.targetDom),window.localStorage.setItem(i,JSON.stringify(s))}tryRestoreInstanceState(e,t,n){let i;if(!this.clientManagerInstance.supportSavingState)return;const r=this.getLocalStorageKey(t,e,n),o=JSON.parse(window.localStorage.getItem(r));if(o&&o.hasOwnProperty(this.constants.InputParameters)&&(this.clientManagerInstance.restoredInputs=o[this.constants.InputParameters]),o&&o.hasOwnProperty(this.constants.DialogParameters)){const e=o[this.constants.DialogParameters];if(e&&e.length>0&&e[0]){const t=e[0];switch(t.type){case"MORE_ACTIONS":case"SHOW_CARD":this.clientManagerInstance.executeStoredAction&&this.clientManagerInstance.executeStoredAction(t.params);break;case"INPUT_POPUP":{i=JSON.parse(t.params);const e=JSON.parse(i.popupProperties);i.isNumeric?this.clientManagerInstance.openNumberPop(e):this.clientManagerInstance.openTextPop(e);break}case"CHOICE_PICKER":{i=JSON.parse(t.params);const e=i.id,n=i.title,r=i.choices,o=i.selectedChoices,s=!1,a=i.isRequired;this.clientManagerInstance.openChoicePickerWithSerializedValues(e,n,r,o,s,a);break}case"DATE_INPUT":{i=JSON.parse(t.params);const e=i.id,n=i.selectedDate;this.clientManagerInstance.openDatePicker(e,n,"",!1,"","");break}}}}window.localStorage.removeItem(r)}getLocalStorageKey(e,t,n){return this.context.useMultiCardInterface&&n&&(t+=n),e?t+e:t}notifyHeightChangeForWindows(){i.clientManagerInstance.notifyHeightChange()}resetWebview(){this.messageCardDarkStyles&&this.messageCardDarkStyles.default.unuse(),this.messageCardStyles&&this.messageCardStyles.default.unuse(),i.clientManagerInstance.resetWebview(),this.autoInvokeSpinnerTimer&&clearTimeout(this.autoInvokeSpinnerTimer)}}},function(e,t,n){const i=n(154).initialize,r=n(155).initialize;t.initialize=()=>{i(),r()}},function(e,t,n){const i=n(16).CardElement,r=()=>{const e=i.prototype.render;i.prototype.render=function(t){const n=e.call(this,t);return n&&this.id&&(n.id=this.id),n}};t.initialize=()=>{r()}},function(e,t,n){const i=n(16).ColumnSet,r=()=>{i.prototype.insertItemAt=function(e,t,n){if(e.parent&&!n)throw new Error("The element already belongs to another container.");t<0||t>=this._columns.length?this._columns.push(e):this._columns.splice(t,0,e),e.setParent(this)}},o=()=>{i.prototype.insertItemBefore=function(e,t){this.insertItemAt(e,this._columns.indexOf(t),!1)}},s=()=>{i.prototype.insertItemBefore=function(e,t){this.insertItemAt(e,this._columns.indexOf(t)+1,!1)}};t.initialize=()=>{r(),o(),s()}},function(e,t,n){var i=null;t.ClientManager=class{constructor(e){i=this,this.supportMoreAction=!1,this.supportInvokeAddinAction=!0,this.supportDisplayAppointmentFormAction=!0,this.supportDisplayMessageFormAction=!0,this.supportTransactionAction=!1,this.supportImageProxy=!0,this.supportAttachmentImageProxy=!0,this.supportMessageCard=!0,this.supportDynamicTextArea=!1,this.supportReverseRowForChoiceSet=!1,this.supportInlineShowCard=!0,this.supportDynamicTheming=!0,this.supportCustomHyperlinkHandling=!0,this.resolveDependencies(),this.themeConfigs=[],this.themeConfigs.push(new this.ThemeClass(this.constants.DefaultStyle,{choiceSetInputValueSeparator:";",supportsInteractivity:!0,fontFamily:"Segoe UI",fontSizes:{small:12,default:14,medium:16,large:18,extraLarge:20},fontWeights:{lighter:200,default:400,bolder:600},imageSizes:{small:40,medium:80,large:160},containerStyles:{default:{foregroundColors:{default:{default:"#212121",subtle:"#8e8e93"},dark:{default:"#1F1F1F",subtle:"#707070"},light:{default:"#707070",subtle:"#8e8e93"},accent:{default:"#0078d7",subtle:"#69afe5"},good:{default:"#0A8533",subtle:"#0A8533"},warning:{default:"#FFA800",subtle:"#F2BE4D"},attention:{default:"#E4252B",subtle:"#F17A7D"}},backgroundColor:"#FFFFFF"},emphasis:{foregroundColors:{default:{default:"#212121",subtle:"#8e8e93"},dark:{default:"#1F1F1F",subtle:"#707070"},light:{default:"#707070",subtle:"#8e8e93"},accent:{default:"#0078d7",subtle:"#69afe5"},good:{default:"#0a8031",subtle:"#5BA975"},warning:{default:"#FFA800",subtle:"#F2BE4D"},attention:{default:"#DA1B21",subtle:"#F17A7D"}},backgroundColor:"#F8F8F8"}},spacing:{small:8,default:16,medium:16,large:24,extraLarge:32,padding:16},separator:{lineThickness:1,lineColor:"#E1E1E1"},actions:{maxActions:5,spacing:"Default",buttonSpacing:8,showCard:{actionMode:"Inline",inlineTopMargin:16,style:"emphasis"},preExpandSingleShowCardAction:!0,actionsOrientation:"Horizontal"},adaptiveCard:{allowCustomStyle:!0},imageSet:{imageSize:"Medium",maxImageHeight:100},factSet:{title:{size:"Default",color:"Default",isSubtle:!0,weight:"Lighter",warp:!0},value:{size:"Default",color:"Default",isSubtle:!1,weight:"Default",warp:!0},spacing:8}},this.constants.WinClient,null,!0,!0,!0,!0,!0,!0,!1)),this.themeConfigs.push(new this.ThemeClass(this.constants.CompactProperty,{choiceSetInputValueSeparator:";",supportsInteractivity:!0,fontFamily:"Segoe UI",fontSizes:{small:10,default:12,medium:14,large:16,extraLarge:18},fontWeights:{lighter:200,default:400,bolder:600},imageSizes:{small:16,medium:32,large:64},containerStyles:{default:{foregroundColors:{default:{default:"#212121",subtle:"#8e8e93"},dark:{default:"#1F1F1F",subtle:"#707070"},light:{default:"#707070",subtle:"#8e8e93"},accent:{default:"#0078d7",subtle:"#69afe5"},good:{default:"#0A8533",subtle:"#0A8533"},warning:{default:"#FFA800",subtle:"#F2BE4D"},attention:{default:"#E4252B",subtle:"#F17A7D"}},backgroundColor:"#eaeaea"},emphasis:{foregroundColors:{default:{default:"#212121",subtle:"#8e8e93"},dark:{default:"#1F1F1F",subtle:"#707070"},light:{default:"#707070",subtle:"#8e8e93"},accent:{default:"#0078d7",subtle:"#69afe5"},good:{default:"#0a8031",subtle:"#5BA975"},warning:{default:"#FFA800",subtle:"#F2BE4D"},attention:{default:"#DA1B21",subtle:"#F17A7D"}},backgroundColor:"#F8F8F8"}},spacing:{small:10,default:12,medium:14,large:16,extraLarge:18,padding:8},separator:{lineThickness:1,lineColor:"#E1E1E1"},actions:{maxActions:5,spacing:"Default",buttonSpacing:20,showCard:{actionMode:"Inline",inlineTopMargin:10,style:"emphasis"},preExpandSingleShowCardAction:!0,actionsOrientation:"Horizontal"},adaptiveCard:{allowCustomStyle:!0},imageSet:{imageSize:"Medium",maxImageHeight:100},factSet:{title:{size:"Default",color:"Default",isSubtle:!0,weight:"Lighter",warp:!0},value:{size:"Default",color:"Default",isSubtle:!1,weight:"Default",warp:!0},spacing:8}},this.constants.WinClient,"messageCardCompact",!1,!1,!1,!1,!0,!0,!1)),this.adaptiveCardHostConfig={choiceSetInputValueSeparator:",",supportsInteractivity:!0,fontFamily:"Segoe UI",spacing:{small:8,default:16,medium:16,large:24,extraLarge:32,padding:16},separator:{lineThickness:1,lineColor:"#E1E1E1"},fontSizes:{small:12,default:14,medium:16,large:18,extraLarge:20},fontWeights:{lighter:300,default:400,bolder:500},imageSizes:{small:40,medium:160,large:320},containerStyles:{default:{foregroundColors:{default:{default:"#212121",subtle:"#8e8e93"},dark:{default:"#1F1F1F",subtle:"#707070"},light:{default:"#707070",subtle:"#8e8e93"},accent:{default:"#0078d7",subtle:"#69afe5"},good:{default:"#0A8533",subtle:"#5BA975"},warning:{default:"#FFA800",subtle:"#F2BE4D"},attention:{default:"#E4252B",subtle:"#F17A7D"},hyperlink:{default:"#005A9E",subtle:"#005A9E"},white:{default:"#FFFFFF",subtle:"#FFFFFF"}},backgroundColor:"#FFFFFF"},emphasis:{foregroundColors:{default:{default:"#212121",subtle:"#8e8e93"},dark:{default:"#1F1F1F",subtle:"#707070"},light:{default:"#707070",subtle:"#8e8e93"},accent:{default:"#0078d7",subtle:"#69afe5"},good:{default:"#0a8031",subtle:"#5BA975"},warning:{default:"#FFA800",subtle:"#F2BE4D"},attention:{default:"#DA1B21",subtle:"#F17A7D"},hyperlink:{default:"#005A9E",subtle:"#005A9E"},white:{default:"#FFFFFF",subtle:"#FFFFFF"}},backgroundColor:"#F8F8F8"},customStyles:[{name:"outlookHeader",style:{foregroundColors:{default:{default:"#ffffff",subtle:"#8e8e93"},dark:{default:"#1f1f1f",subtle:"#707070"},light:{default:"#707070",subtle:"#8e8e93"},accent:{default:"#0078d4",subtle:"#69AFE5"},good:{default:"#0A8533",subtle:"#5BA975"},warning:{default:"#FFA800",subtle:"#F2BE4D"},attention:{default:"#E4252B",subtle:"#F17a7D"},white:{default:"#FFFFFF",subtle:"#FFFFFF"}},backgroundColor:"#0078D4"}}]},actions:{maxActions:5,spacing:"",buttonSpacing:8,showCard:{actionMode:"Inline",style:"default"},preExpandSingleShowCardAction:!0,actionsOrientation:"Horizontal"},adaptiveCard:{allowCustomStyle:!0},imageSet:{imageSize:"Medium",maxImageHeight:102},factSet:{title:{size:"Default",color:"Default",isSubtle:!0,weight:"Lighter",wrap:!0},value:{size:"Default",color:"Default",isSubtle:!1,weight:"Default",wrap:!0},spacing:8}},this.adaptiveCardDarkModeHostConfig={choiceSetInputValueSeparator:",",supportsInteractivity:!0,fontFamily:"Segoe UI",spacing:{small:8,default:16,medium:16,large:24,extraLarge:32,padding:16},separator:{lineThickness:1,lineColor:"#EEEEEE"},fontSizes:{small:12,default:14,medium:16,large:18,extraLarge:20},fontWeights:{lighter:300,default:400,bolder:500},imageSizes:{small:40,medium:160,large:320},containerStyles:{default:{foregroundColors:{default:{default:"#F3F2F1",subtle:"#D2D0CE"},dark:{default:"#F3F2F1",subtle:"#D2D0CE"},light:{default:"#F3F2F1",subtle:"#D2D0CE"},accent:{default:"#2899F5",subtle:"#2899F5"},good:{default:"#37A660",subtle:"#37A660"},warning:{default:"#F8D22A",subtle:"#F8D22A"},attention:{default:"#D83A01",subtle:"#D83A01"},hyperlink:{default:"#4BA0FF",subtle:"#4BA0FF"},white:{default:"#FFFFFF",subtle:"#FFFFFF"}},backgroundColor:"#262626"},emphasis:{foregroundColors:{default:{default:"#F3F2F1",subtle:"#D2D0CE"},dark:{default:"#F3F2F1",subtle:"#D2D0CE"},light:{default:"#F3F2F1",subtle:"#D2D0CE"},accent:{default:"#2899F5",subtle:"#2899F5"},good:{default:"#37A660",subtle:"#37A660"},warning:{default:"#F8D22A",subtle:"#F8D22A"},attention:{default:"#D13438",subtle:"#D13438"},hyperlink:{default:"#ABA0FF",subtle:"#ABA0FF"},white:{default:"#FFFFFF",subtle:"#FFFFFF"}},backgroundColor:"#363636"},customStyles:[{name:"outlookHeader",style:{foregroundColors:{default:{default:"#ffffff",subtle:"#8e8e93"},dark:{default:"#f8f8f8",subtle:"#acacac"},light:{default:"#939393",subtle:"#777777"},accent:{default:"#0086f0",subtle:"#085898"},good:{default:"#0eb244",subtle:"#0f7331"},warning:{default:"#ebb510",subtle:"#957512"},attention:{default:"#ff474c",subtle:"#a13336"},white:{default:"#FFFFFF",subtle:"#FFFFFF"}},backgroundColor:"#0078D4"}}]},actions:{maxActions:5,spacing:"",buttonSpacing:8,showCard:{actionMode:"Inline",style:"default"},preExpandSingleShowCardAction:!0,actionsOrientation:"Horizontal"},adaptiveCard:{allowCustomStyle:!0},imageSet:{imageSize:"Medium",maxImageHeight:102},factSet:{title:{size:"Default",color:"Default",isSubtle:!0,weight:"Lighter",wrap:!0},value:{size:"Default",color:"Default",isSubtle:!1,weight:"Default",wrap:!0},spacing:8}},this.spinnerUrl="https://messagecarddemo.blob.core.windows.net/messagecard/LoadingSpinner_iOS.gif",this.successStatusImageUrl="https://messagecarddemo.blob.core.windows.net/messagecard/success_iOS.png",this.errorStatusImageUrl="https://messagecarddemo.blob.core.windows.net/messagecard/error_iOS.png",this.imageAttachmentBaseUrl="cid:",this.imageAttachmentProxyUrl="http://www.actionablemessage.olk/img?src=",this.imageProxyUrl="http://www.actionablemessage.olk/imgproxy?src=",this.choiceInputDefaultPlaceHolderText="Select an option",this.dateInputDefaultPlaceHolderText="Select a date",this.numberInputDefaultPlaceHolderText="Enter a number",this.textInputDefaultPlaceHolderText="Type here",this.VALUE_TOO_SMALL_STRING_KEY="The number in '{0}' must be greater than {1}",this.VALUE_TOO_LARGE_STRING_KEY="The number in '{0}' must be less than {1}",this.bodyPadding=12,this.containerPadding=16,this.factKeyTopPadding=16,this.factValueTopPadding=4,this.checkboxRightMargin=8,this.imageMargin=4,this.context=e,this.containerWidth=this.getContainerWidth(),this.setHostCapabilities(),this.snackBarTimer=null}setHostCapabilities(){this.capabilities=new AdaptiveCards.HostCapabilities,this.capabilities.parse({AADAuthentication:"*"},null)}resolveDependencies(){this.ImageClass=n(157).Image,this.FactSetClass=n(158).FactSet,this.ImageSetClass=n(159).ImageSet,this.NumberInputClass=n(160).NumberInput,this.TextInputClass=n(161).TextInput,this.HttpActionClass=n(162).HttpAction,this.ToggleVisibilityActionClass=n(163).ToggleVisibilityAction,this.InvokeAddinActionClass=n(164).InvokeAddinAction,this.DisplayAppointmentFormActionClass=n(165).DisplayAppointmentFormAction,this.DisplayMessageFormActionClass=n(166).DisplayMessageFormAction,this.TransactionActionClass=n(167).TransactionAction,this.ThemeClass=n(168).Theme,this.UtilsClass=n(37).Utils,this.Separator=n(169).Separator,this.ToggleInputClass=n(170).ToggleInput,this.DateInputClass=n(171).DateInput,this.ChoiceSetInputClass=n(172).ChoiceSetInput,this.constants=this.UtilsClass.Constants,AdaptiveCards.AdaptiveCard.elementTypeRegistry.registerType("Separator",(function(){return new i.Separator(i)})),AdaptiveCards.AdaptiveCard.elementTypeRegistry.registerType("Image",(function(){return new i.ImageClass})),AdaptiveCards.AdaptiveCard.elementTypeRegistry.registerType("ImageSet",(function(){return new i.ImageSetClass(i)})),AdaptiveCards.AdaptiveCard.elementTypeRegistry.unregisterType("Input.Time"),AdaptiveCards.AdaptiveCard.elementTypeRegistry.registerType("Input.Text",(function(){return new i.TextInputClass(i)})),AdaptiveCards.AdaptiveCard.elementTypeRegistry.registerType("Input.Number",(function(){return new i.NumberInputClass(i)})),AdaptiveCards.AdaptiveCard.elementTypeRegistry.registerType("FactSet",(function(){return new i.FactSetClass(i)})),AdaptiveCards.AdaptiveCard.elementTypeRegistry.registerType("ImageSet",(function(){return new i.ImageSetClass(i)})),AdaptiveCards.AdaptiveCard.actionTypeRegistry.unregisterType("Action.Submit"),AdaptiveCards.AdaptiveCard.actionTypeRegistry.registerType("Action.Http",(function(){return new i.HttpActionClass(i)})),AdaptiveCards.AdaptiveCard.actionTypeRegistry.registerType("Action.ToggleVisibility",(function(){return new i.ToggleVisibilityActionClass(i)})),AdaptiveCards.AdaptiveCard.elementTypeRegistry.registerType("Input.Toggle",(function(){return new i.ToggleInputClass(i)})),AdaptiveCards.AdaptiveCard.elementTypeRegistry.registerType("Input.ChoiceSet",(function(){return new i.ChoiceSetInputClass(i)})),AdaptiveCards.AdaptiveCard.elementTypeRegistry.registerType("Input.Date",(function(){return new i.DateInputClass(i)})),this.supportInvokeAddinAction&&AdaptiveCards.AdaptiveCard.actionTypeRegistry.registerType("Action.InvokeAddInCommand",(function(){return new i.InvokeAddinActionClass(i)})),this.supportDisplayAppointmentFormAction&&AdaptiveCards.AdaptiveCard.actionTypeRegistry.registerType("Action.DisplayAppointmentForm",(function(){return new i.DisplayAppointmentFormActionClass(i)})),this.supportDisplayMessageFormAction&&AdaptiveCards.AdaptiveCard.actionTypeRegistry.registerType("Action.DisplayMessageForm",(function(){return new i.DisplayMessageFormActionClass(i)})),this.supportTransactionAction&&AdaptiveCards.AdaptiveCard.actionTypeRegistry.registerType("Action.Transaction",(function(){return new i.TransactionActionClass(i)})),AdaptiveCards.AdaptiveCard.elementTypeRegistry.registerType("ActionSet",(function(){return new AdaptiveCards.ActionSet})),AdaptiveCards.AdaptiveCard.elementTypeRegistry.registerType("Column",(function(){return new AdaptiveCards.Column}))}getElementInstance(e){var t=null;switch(e){case this.constants.ImageSet:t=new this.ImageSetClass(this);break;case this.constants.FactSet:t=new this.FactSetClass(this);break;case this.constants.HttpAction:t=new this.HttpActionClass(this);break;case this.constants.Separator:t=new this.Separator(this);break;case this.constants.InvokeAddinCommandAction:t=new this.InvokeAddinActionClass(this);break;case this.constants.DisplayAppointmentFormAction:t=new this.DisplayAppointmentFormActionClass(this);break;case this.constants.DisplayMessageFormAction:t=new this.DisplayMessageFormActionClass(this);break;case this.constants.DateInput:t=new this.DateInputClass(this);break;case this.constants.ChoiceSetInput:t=new this.ChoiceSetInputClass(this)}return t}getThemeConfigs(){return this.themeConfigs}getACHostConfigs(e){try{if(this.supportDynamicTheming&&null!=e&&(e.stylesheet&&this.UtilsClass.applyCSS(e.stylesheet),e.hostConfig)){let t=e.hostConfig;if(t)return[t]}}catch(e){}return e&&e.isDarkMode?[this.adaptiveCardDarkModeHostConfig]:[this.adaptiveCardHostConfig]}getContainerWidth(){return(window.innerWidth||document.body.clientWidth)-2*this.bodyPadding-2*this.containerPadding-4}processData(e){return e}postRender(){this.notifyHeightChange()}storeClientTelemetryProperties(e){this.postWebViewMessage("storeClientTelemetryProperties",JSON.stringify(e))}onToggleClicked(){}setComponentVisibility(e,t,n,i){var r=document.getElementById("actionable-message"),o=document.getElementById("mainframe"),s=document.getElementById("amWrapperDiv"),a="640px",l=this.context&&this.context.backgroundColor?this.context.backgroundColor:"";if(s&&i)if(this.context&&this.context.hostConfig){var c="center";this.context.hostConfig.cardMaximumWidth&&"number"==typeof(a=this.context.hostConfig.cardMaximumWidth)&&(a+="px"),this.context.hostConfig.cardHorizontalAlignment&&(c=this.context.hostConfig.cardHorizontalAlignment),this.context.hostConfig.cardHostBackgroundColor&&(l=this.context.hostConfig.cardHostBackgroundColor),s.style.maxWidth=a,"center"===c&&(s.style.margin="auto")}else s.style.margin="auto",s.style.maxWidth=a;l&&(document.body.style.backgroundColor=l),s&&(s.style.display=e?"block":"none"),r&&(r.style.display=e?"block":"none"),o&&(o.style.display=n?"block":"none"),!1===e&&this.postWebViewMessage("hideCardAndShowBody")}resetWebview(){var e=document.getElementById("actionable-message"),t=document.getElementById("mainframe"),n=document.getElementById("amWrapperDiv"),i=document.querySelectorAll("#"+this.constants.CustomHostConfigStyle);n&&(n.style.display="none",n.style.margin="",n.style.maxWidth="",n.parentElement&&(this.context&&this.context.backgroundColor?document.body.style.backgroundColor=this.context.backgroundColor:document.body.style.backgroundColor="")),e&&(e.style.display="none",e.innerHTML=""),t&&(t.style.display="none"),i.forEach((function(e){e.parentNode.removeChild(e)}));var r=document.getElementById("amSnackBar");r&&(r.innerHTML="",r.classList=""),this.snackBarTimer&&clearTimeout(this.snackBarTimer);let o=document.getElementsByClassName("ac-overlay-spinner")[0];o&&o.parentNode.removeChild(o)}displayLoginMessage(e,t,n){}displaySnackMessage(e,t){var n=5e3;this.context&&this.context.snackbarTimeout&&"number"==typeof this.context.snackbarTimeout&&(n=this.context.snackbarTimeout);var r=document.getElementById("amSnackBar");r.innerHTML="",r.classList="",r.classList.add("amsnackbar");var o=document.getElementById("amSnackBarSpan");o||(o=document.createElement("span")),o.classList="",o.id="amSnackBarSpan",t?o.classList.add("success-icon"):o.classList.add("error-icon"),r.appendChild(o);var s=document.getElementById("snackMessage");s||(s=document.createElement("span")),s.id="snackMessage",s.setAttribute("style","padding-left:8px;"),s.setAttribute("role","alert"),s.innerHTML=e,r.appendChild(s),r.classList.add("show"),this.snackBarTimer&&(clearTimeout(this.snackBarTimer),this.snackBarTimer=null),this.snackBarTimer=setTimeout((function(){r.classList.add("fadeout-hide"),r.classList.remove("show"),i.snackBarTimer=null}),n)}executeAction(e,t,n){try{var i={[this.constants.PotentialActionProperty]:e.potentialAction,[this.constants.IsAutoInvokeAction]:e.isAutoInvokeAction,[this.constants.IsAdaptiveCardAction]:t};e.data&&Array.isArray(e.data)&&(i[this.constants.DataProperty]=JSON.stringify(e.data)),this.postWebViewMessage("onActionSubmit",JSON.stringify(i))}catch(e){}}executeAuthFlowForHttpAction(e,t,n,i){try{var r={[this.constants.PotentialActionProperty]:e.potentialAction,[this.constants.ErrorProperty]:t,[this.constants.InvokeAuthFlow]:!0,[this.constants.AuthenticationUrl]:n,[this.constants.DisplayMessageProperty]:i};e.data&&Array.isArray(e.data)&&(r[this.constants.DataProperty]=JSON.stringify(e.data)),this.postWebViewMessage("onActionSubmit",JSON.stringify(r))}catch(e){}}executePleaseLoginAction(e){if(e){var t={[this.constants.PotentialActionProperty]:{"@type":"ConnectorsLoginAction",loginUrl:e},[this.constants.IsAutoInvokeAction]:!1,[this.constants.IsAdaptiveCardAction]:!1};this.postWebViewMessage("onActionSubmit",JSON.stringify(t))}}updateExplicitMessageCardProperty(){}logEventTelemetry(e){let t={eventName:e};this.postWebViewMessage("logEventTelemetry",JSON.stringify(t))}logEventTelemetryWithActionId(e,t){let n={eventName:e,actionId:t};this.postWebViewMessage("logEventTelemetry",JSON.stringify(n))}logTimeStamp(e,t){}logException(e){}logMessage(e){}notifyHeightChange(){var e=document&&document.documentElement?document.documentElement.offsetHeight:0,t={[this.constants.HeightProperty]:e};this.postWebViewMessage("notifyHeightChange",JSON.stringify(t))}notifyRefreshCardResponse(e){this.postWebViewMessage("handleRefreshCard",e)}logInitialCardProcessingEnd(){this.postWebViewMessage("logInitialCardProcessingEnd")}logInitialCardRenderingEnd(){this.postWebViewMessage("logInitialCardRenderingEnd")}logFinalCardProcessingEnd(){this.postWebViewMessage("logFinalCardProcessingEnd")}logFinalCardRenderingEnd(){this.postWebViewMessage("logFinalCardRenderingEnd")}executeShowCardAction(e,t,n){try{var i={[this.constants.PotentialActionProperty]:e.potentialAction,[this.constants.IsAutoInvokeAction]:e.isAutoInvokeAction,[this.constants.IsAdaptiveCardAction]:t,[this.constants.IsShowCardExpanded]:n};null!=e.data&&e.data.length>0&&(i[this.constants.DataProperty]=JSON.stringify(e.data)),this.postWebViewMessage("onActionSubmit",JSON.stringify(i))}catch(e){}}HandleHyperlinkClickEvent(e){this.supportCustomHyperlinkHandling&&this.postWebViewMessage("onHyperlinkClicked",e)}getWebview(){const e=window&&window.chrome;return e&&e.webview}postWebViewMessage(e,t){const n=this.getWebview();n&&"function"==typeof n.postMessage&&n.postMessage({notificationType:e,asyncContext:t})}getImageProxyUrl(){return this.imageProxyUrl}}},function(e,t,n){class i extends AdaptiveCards.Image{constructor(){super()}internalRender(){var e=super.internalRender();if(!e)return e;var t=e.children[0];t.alt&&"undefined"!==t.alt||(t.alt="User defined image"),e.removeChild(e.lastChild);var n=document.createElement("div");return n.style.display="flex",n.style.alignItems="flex-start",n.style.width="100%",n.style.justifyContent=e.style.justifyContent,n.style.boxSizing=e.style.boxSizing,n.style.flex=e.style.flex,n.appendChild(t),e.appendChild(n),e}}t.Image=i},function(e,t,n){class i extends AdaptiveCards.FactSet{constructor(e){super(),this.clientManagerInstance=e}parse(e){if(super.parse(e),this.facts=[],null!=e.facts){var t=e.facts;this.facts=[];for(var n=0;n<t.length;n++)if(t[n].title&&t[n].value){var i=new AdaptiveCards.Fact;i.name=t[n].title,i.value=t[n].value,i.speak=t[n].speak,this.facts.push(i)}}}}t.FactSet=i},function(e,t,n){class i extends AdaptiveCards.ImageSet{constructor(e){super(),this.clientManagerInstance=e}parse(e,t){if(this.imageSize=AdaptiveCards.getEnumValueOrDefault(AdaptiveCards.Size,e.imageSize,AdaptiveCards.Size.Medium),e.images){var n=e.images;this._images=[];for(var i=0;i<n.length;i++){var r=new this.clientManagerInstance.ImageClass;r.parse(n[i],t),this.addImage(r)}}}internalRender(){var e=null,t=(this.clientManagerInstance.getContainerWidth()-8)/2;if(this._images.length>0){(e=document.createElement("div")).style.margin="-"+this.clientManagerInstance.imageMargin+"px",e.style.display="flex",e.style.flexWrap="wrap";for(var n=0;n<this._images.length;n++){this._images[n].size=this.imageSize;var i=this._images[n].render();i.style.display="inline-flex";var r=i.children[0].children[0];switch(i.style.margin=this.clientManagerInstance.imageMargin+"px",r.style.maxHeight=this.hostConfig.imageSet.maxImageHeight+"px",this.imageSize){case AdaptiveCards.Size.Auto:r.style.width="auto",r.style.maxWidth=t+"px";break;case AdaptiveCards.Size.Stretch:r.style.width=t+"px",r.style.maxWidth=t+"px"}e.appendChild(i)}}return e}}t.ImageSet=i},function(e,t,n){class i extends AdaptiveCards.NumberInput{constructor(e){super(),this.clientManagerInstance=e,this.utils=this.clientManagerInstance.UtilsClass}openNumberPop(){if(null!=this.clientManagerInstance){var e={id:this.id,placeholder:this.placeholder,isRequired:this.isRequired,min:this.min,max:this.max,value:this.value};this.clientManagerInstance.openNumberPop(e)}}setNumber(e){this._numberInputElement.value=e,this.handleInputChanged&&this.handleInputChanged()}internalRender(){var e=this;this.placeholder=this.placeholder||this.clientManagerInstance.numberInputDefaultPlaceHolderText,this.isRequired&&(this.placeholder=this.placeholder+"*");var t=super.internalRender();return t.addEventListener("keydown",(function(e){var t;t=e.key,!Number.isNaN(parseInt(t))||function(t){return 8===t||9===t||13===t||27===t||t>=35&&t<=40||46===t||189===t&&e.target.validity.valid&&!e.target.value.length}(e.keyCode)||function(e){return(e.ctrlKey||e.metaKey)&&(67===e.keyCode||88===e.keyCode||86===e.keyCode)}(e)||function(e){return!e.shiftKey&&190===e.keyCode&&e.target.value.split(".").length<=1}(e)||e.preventDefault()})),t.addEventListener("paste",(function(e){var t=e.clipboardData.getData("text/plain");Number.isNaN(parseFloat(t))&&e.preventDefault()})),t.addEventListener("input",(function(n){var i=parseFloat(n.target.getAttribute("min")),r=parseFloat(n.target.getAttribute("max"));const o=n.target.validity.valid,s=n.target.value.length,a=o&&!s,l=!o&&n.target.validity.badInput,c=!o&&(n.target.validity.rangeOverflow||n.target.validity.rangeUnderflow);var u;a||!l&&!c?((u=e.inputElement.querySelector("#numberErrorElement"))&&(t.classList.remove("error"),u.remove()),e.hasSomeError=!0):(t.classList.add("error"),null===(u=e.inputElement.querySelector("#numberErrorElement"))&&((u=document.createElement("div")).id="numberErrorElement",u.className="numberErrorElement",e.inputElement.appendChild(u),e.hasSomeError=!0),c?Number.isNaN(i)?u.innerText="Select a value less than "+r:Number.isNaN(r)?u.innerText="Select a value greater than "+i:u.innerText="Select a value between "+i+" and "+r:u.innerText="Please enter a valid number")})),this.getRestoredState(t),this.inputElement=document.createElement("div"),!this.clientManagerInstance.supportInputPop||this.clientManagerInstance.context&&this.clientManagerInstance.context.isShowCardJson||(this.handleInputChanged=t.oninput,t.readOnly="true",t.onfocus=function(){t.blur(),e.openNumberPop()},this.inputElement.numberInputInstance=this),this.clientManagerInstance.showPlaceholderDivOnInputFocus&&(this.placeHolderElement=document.createElement("span"),this.placeHolderElement.className="ac-placeHolder",this.placeHolderElement.innerText=this.placeholder,this.placeHolderElement.style.display=this.value?"block":"none",this.inputElement.appendChild(this.placeHolderElement)),this.inputElement.appendChild(t),this.inputElement}ValueInRange(e){let t=!1,n=parseFloat(e);if(!Number.isNaN(n)){var i=parseFloat(this.min),r=parseFloat(this.max);t=Number.isNaN(i)||Number.isNaN(r)?Number.isNaN(i)?!!Number.isNaN(r)||n<=r:n>=i:n>=i&&n<=r}return t}validate(){if(!this.value&&!this.isRequired)return[];var e=Number(this.value),t=this.min?Number(this.min):void 0,n=this.max?Number(this.max):void 0;return this.placeholder,t&&e<t?[{error:AdaptiveCards.ValidationError.InvalidPropertyValue,message:this.utils.format(this.clientManagerInstance.VALUE_TOO_SMALL_STRING_KEY,this.placeholder,t)}]:n&&e>n?[{error:AdaptiveCards.ValidationError.InvalidPropertyValue,message:this.utils.format(this.clientManagerInstance.VALUE_TOO_LARGE_STRING_KEY,this.placeholder,n)}]:[]}getRestoredState(e){this.clientManagerInstance.restoredInputs&&this.clientManagerInstance.restoredInputs.hasOwnProperty(this.id)&&(e.value=this.clientManagerInstance.restoredInputs[this.id])}}t.NumberInput=i},function(e,t,n){class i extends AdaptiveCards.TextInput{constructor(e){super(),this.clientManagerInstance=e}openTextPop(e){if(null!=this.clientManagerInstance){this.actualValue=this.actualValue?this.actualValue:this.value;var t={id:this.id,placeholder:this.placeholder,isRequired:this.isRequired,isMultiline:e,maxLength:this.maxLength,style:this.style,value:this.actualValue};this.clientManagerInstance.openTextPop(t)}}setText(e,t){this.actualValue=e,this._inputElement.value=t,this.handleInputChanged&&this.handleInputChanged()}internalRender(){var e=this,t=this.isMultiline;this.placeholder=this.placeholder||this.clientManagerInstance.textInputDefaultPlaceHolderText,this.isRequired&&(this.placeholder=this.placeholder+"*"),!this.clientManagerInstance.supportInputPop||this.clientManagerInstance.context&&this.clientManagerInstance.context.isShowCardJson||(this.isMultiline=!1);var n=super.internalRender();this.getRestoredState(n);var i=document.createElement("div");return!this.clientManagerInstance.supportInputPop||this.clientManagerInstance.context&&this.clientManagerInstance.context.isShowCardJson||(this.handleInputChanged=n.oninput,n.readOnly="true",n.onfocus=function(){n.blur(),e.openTextPop(t)},i.textInputInstance=this),this.clientManagerInstance.showPlaceholderDivOnInputFocus&&(this.placeHolderElement=document.createElement("span"),this.placeHolderElement.className="ac-placeHolder",this.placeHolderElement.innerText=this.placeholder,this.placeHolderElement.style.display=this.value?"block":"none",i.appendChild(this.placeHolderElement)),this.clientManagerInstance.supportDynamicTextArea&&this.isMultiline&&(n.rows="1",n.style.overflowY="hidden",n.resize="none",n.style.boxSizing="border-box",document.addEventListener("input",(function(t){"textarea"===t.target.tagName.toLowerCase()&&(n.style.height=0,e.autoExpand(t.target,41,90))}),!1)),i.appendChild(n),i}autoExpand(e,t,n){var i=parseInt(window.getComputedStyle(e).height)-e.clientHeight;e.style.height=0,e.style.overflowY="hidden";var r=e.scrollHeight+i;r<t&&(r=t),r>n&&(e.style.overflowY="visible",r=n),e.style.height=r+"px"}getRestoredState(e){this.clientManagerInstance.restoredInputs&&this.clientManagerInstance.restoredInputs.hasOwnProperty(this.id)&&(this.actualValue=this.clientManagerInstance.restoredInputs[this.id],e.value=this.clientManagerInstance.UtilsClass.replaceAll(this.actualValue,"\n"," "))}}t.TextInput=i},function(e,t,n){class i extends AdaptiveCards.HttpAction{constructor(e){super(),this.hideCardOnInvoke=!1,this.constants=e.constants,this.inputIds=[]}parse(e){super.parse(e),this.inputIds=this.extractInputIds(e)}parseMessageCardAction(e){if(this.method="POST",this.body=e[this.constants.BodyProperty],this.title=e[this.constants.NameProperty],this.url=e[this.constants.TargetProperty],this.id=e[this.constants.IdProperty],this.isPrimary=e[this.constants.IsPrimaryAction]||!1,null!=e[this.constants.HeadersProperty])for(var t=e[this.constants.HeadersProperty],n=0;n<t.length;n++){var i=new AdaptiveCards.HttpHeader;i.name=t[n][this.constants.NameProperty],i.value=t[n][this.constants.ValueProperty],this.headers.push(i)}null!=e[this.constants.BodyContentTypeProperty]&&(this.bodyContentType=e[this.constants.BodyContentTypeProperty]),null!=e[this.constants.HideCardOnInvokeProperty]&&(this.hideCardOnInvoke=e[this.constants.HideCardOnInvokeProperty]),this.inputIds=this.extractInputIds(e)}prepare(e){this.data=[];for(var t=0;t<e.length;t++)if(-1!=this.inputIds.indexOf(e[t].id)){var n=null;if(null!=e[t].value){n=e[t].actualValue?e[t].actualValue:e[t].value;var i=e[t].validate(),r={id:e[t].id,value:n};i&&i.length>0&&(r.validationErrors=i),this.data.push(r)}}}extractInputIds(e){for(var t,n=/\{{2}([a-z0-9_$@-]+).value\}{2}/gi,i=[];null!=(t=n.exec(e.url));)i.push(t[1]);for(;null!=(t=n.exec(e.body));)i.push(t[1]);if(null!=e.headers)for(var r=e.headers,o=0;o<r.length;o++){var s=r[o];if(s.value)for(;null!=(t=n.exec(s.value));)i.push(t[1])}return i}}t.HttpAction=i},function(e,t,n){class i extends AdaptiveCards.Action{constructor(e){super(),this.targetElements=[],this.constants=e.constants,this.ClientManagerInstance=e}getJsonTypeName(){return"Action.ToggleVisibility"}parse(e){super.parse(e),this.targetElements=e[this.constants.TargetElements]}execute(){super.execute();const e=this.id?this.id:"";if(this.ClientManagerInstance.logEventTelemetryWithActionId(this.constants.ToggleVisibilityClicked,e),this.targetElements){const e=[],t=this.parent.getRootElement();for(let n=0;n<this.targetElements.length;n++){const i=this.targetElements[n];let r,o=!1;"string"==typeof i?(r=t.getElementById(i),r&&(o=!r.isVisible,r.isVisible=!r.isVisible)):"object"==typeof i&&i.hasOwnProperty(this.constants.ElementId)&&i.hasOwnProperty(this.constants.IsVisible)&&(r=t.getElementById(i[this.constants.ElementId]),r&&(o=i.isVisible&&!r.isVisible,r.isVisible=i.isVisible)),o&&e.push(r)}1===e.length&&e[0].renderedElement?r(e[0].renderedElement):t.renderedElement&&r(t.renderedElement),this.ClientManagerInstance.notifyHeightChange()}}}function r(e){if(!e)return;const t=e.tabIndex;!Number.isInteger(t)||t<0?(e.tabIndex=-1,e.focus(),e.tabIndex=t):e.focus()}t.ToggleVisibilityAction=i},function(e,t,n){class i extends AdaptiveCards.Action{constructor(e){super(),this.constants=e.constants}getJsonTypeName(){return"Action.InvokeAddInCommand"}parse(e){super.parse(e),this.addinId=e[this.constants.AddInId],this.desktopCommandId=e[this.constants.DesktopCommandId],this.initializationContext=e[this.constants.InitializationContext]}}t.InvokeAddinAction=i},function(e,t,n){class i extends AdaptiveCards.Action{constructor(e){super(),this.constants=e.constants}getJsonTypeName(){return"Action.DisplayAppointmentForm"}parse(e){super.parse(e),this.itemId=e[this.constants.ItemId]}}t.DisplayAppointmentFormAction=i},function(e,t,n){class i extends AdaptiveCards.Action{constructor(e){super(),this.constants=e.constants}getJsonTypeName(){return"Action.DisplayMessageForm"}parse(e){super.parse(e),this.itemId=e[this.constants.ItemId]}}t.DisplayMessageFormAction=i},function(e,t,n){class i extends AdaptiveCards.Action{constructor(e){super(),this.constants=e.constants}getJsonTypeName(){return"Action.Transaction"}parse(e){super.parse(e),e[this.constants.InitializationContext]&&(this.merchantId=e[this.constants.InitializationContext][this.constants.MerchantId],this.displayId=e[this.constants.InitializationContext][this.constants.DisplayId],this.productContext=e[this.constants.InitializationContext][this.constants.ProductContext])}}t.TransactionAction=i},function(e,t,n){t.Theme=class{constructor(e,t,n,i,r,o,s,a,l,c,u){this.style=e,this.hostConfig=t,this.client=n,this.cssPrefix=i,this.allowCardTitle=r,this.allowFacts=o,this.allowHeroImage=s,this.allowImages=a,this.allowActionCard=l,this.allowAutoInvokeAction=c,this.allowDisplayMoreAction=u}}},function(e,t,n){class i extends AdaptiveCards.CardElement{constructor(e){super(),this.thickness=.5}getJsonTypeName(){return"Separator"}internalRender(){var e=document.createElement("div");return e.style.paddingTop="0.25px",e.style.paddingBottom="0.25px",e.style.borderTop=this.thickness+"px solid rgb(225, 225, 225)",e.style.marginRight="-16px",e.style.marginLeft="-16px",e}}t.Separator=i},function(e,t,n){class i extends AdaptiveCards.ToggleInput{constructor(e){super(),this.clientManagerInstance=e}internalRender(){if(this.title){var e=this,t=document.createElement("div");t.style.alignItems="center",t.className=this.hostConfig.makeCssClassName("ac-toggleinput"),t.style.width="100%",t.style.display="flex",this._checkboxInputElement=document.createElement("input"),this._checkboxInputElement.type="checkbox",this._checkboxInputElement.style.display="inline-block",this._checkboxInputElement.style.verticalAlign="middle",this._checkboxInputElement.style.margin="0",this._checkboxInputElement.style.flex="0 0 auto",this._checkboxInputElement.setAttribute("aria-label",this.title?this.title:this.getJsonTypeName()),this._checkboxInputElement.tabIndex=0,this.defaultValue==this.valueOn&&(this._checkboxInputElement.checked=!0),this._checkboxInputElement.onchange=function(){e.valueChanged()};var n=null;if(this.title){var i=new AdaptiveCards.TextBlock;i.hostConfig=this.hostConfig,i.text=this.title,i.useMarkdown=AdaptiveCards.AdaptiveCard.useMarkdownInRadioButtonAndCheckbox,i.wrap=!0,(n=i.render()).style.display="inline-block",n.style.flex="1 1 auto",n.style.verticalAlign="middle",n.style.paddingLeft="8px",n.addEventListener("click",(e=>{e.stopPropagation(),this._checkboxInputElement.checked=!this._checkboxInputElement.checked,this.valueChanged(),this._checkboxInputElement.focus()})),n.addEventListener("focusout",(()=>{this.classList.remove("checkBoxFocus")}))}if(this._checkboxInputElement.style.marginRight=this.clientManagerInstance.checkboxRightMargin+"px",e.isRequired){var r=document.createElement("span");r.classList.add("required-asteriks"),r.innerHTML="*",t.appendChild(r)}return t.appendChild(this._checkboxInputElement),this.title&&(t.appendChild(n),this._checkboxInputElement.addEventListener("focus",(()=>{n.classList.add("checkBoxFocus")})),this._checkboxInputElement.addEventListener("focusout",(()=>{n.classList.remove("checkBoxFocus")}))),t}}}t.ToggleInput=i},function(e,t,n){class i extends AdaptiveCards.DateInput{constructor(e){super(),this.clientManagerInstance=e}parse(e){super.parse(e),this.min=e.min,this.max=e.max}internalRender(){let e=super.internalRender();var t=this;return this.defaultValue?this.selectedDate=this.clientManagerInstance.UtilsClass.formatDate(this.defaultValue):this.selectedDate=null,this.placeholder=this.placeholder||this.clientManagerInstance.dateInputDefaultPlaceHolderText,e.setAttribute("aria-label",this.getAriaLabel(this.placeholder,this.selectedDate?this.selectedDate:"")),this.isRequired&&(this.placeholder=this.placeholder+"*"),this.min&&e.setAttribute("min",this.min),this.max&&e.setAttribute("max",this.max),e.onchange=function(){t.valueChanged()},e}getAriaLabel(e,t){return"Date Input "+e+" "+t+" Use numeric keys or arrow keys to change value. Use tab or arrow keys to move to next field"}}t.DateInput=i},function(e,t,n){class i extends AdaptiveCards.ChoiceSetInput{constructor(e){super(),this.clientManagerInstance=e}internalRender(){var e=this;if(this.isMultiSelect){var t,n=this.defaultValue?this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator):null;(t=document.createElement("div")).className="ac-input ac-multiInput",t.style.width="100%",this._toggleInputs=[];const e=this.choices.length;var i=!1;for(1===e&&this.isRequired&&(i=!0),s=0;s<e;s++)t.appendChild(this.getCheckboxElement(this.choices[s],n,i));return this.isRequired&&!i&&(this.isRequiredElement=document.createElement("span"),this.isRequiredElement.className="ac-requiredPlaceHolder",this.isRequiredElement.innerText="*Required",this.isRequiredElement.style.marginTop="8px",this.isRequiredElement.style.marginBottom="8px",t.appendChild(this.isRequiredElement)),t}if(this.isCompact){var r=this.placeholder||this.clientManagerInstance.choiceInputDefaultPlaceHolderText;this._selectElement=document.createElement("select"),this._selectElement.className=this.hostConfig.makeCssClassName("ac-input","ac-dropdown"),this._selectElement.style.width="100%";var o=document.createElement("option");this._selectElement.setAttribute("aria-label",r),this.isRequired&&(r+="*"),o.selected=!0,o.disabled=!0,o.hidden=!0,o.value="",r&&(o.text=r),this._selectElement.appendChild(o);for(var s=0;s<this.choices.length;s++){var a=document.createElement("option");o.setAttribute("aria-hidden","true"),a.value=this.choices[s].value,a.text=this.choices[s].title,a.setAttribute("aria-label",this.choices[s].title),this.choices[s].value==this.defaultValue&&(a.selected=!0),this._selectElement.appendChild(a)}return this._selectElement.onchange=function(){e.valueChanged()},this._selectElement}for((t=document.createElement("div")).className="ac-input ac-singleInput",t.style.width="100%",this._toggleInputs=[],s=0;s<this.choices.length;s++)t.appendChild(this.getRadioElement(this.choices[s]));return this.isRequired&&(this.isRequiredElement=document.createElement("span"),this.isRequiredElement.className="ac-requiredPlaceHolder",this.isRequiredElement.innerText="*Required",this.isRequiredElement.style.marginTop="8px",this.isRequiredElement.style.marginBottom="8px",t.appendChild(this.isRequiredElement)),t}get value(){if(this.isMultiSelect){if(!this._toggleInputs||0==this._toggleInputs.length)return null;var e="";for(t=0;t<this._toggleInputs.length;t++)this._toggleInputs[t].checked&&(""!=e&&(e+=this.hostConfig.choiceSetInputValueSeparator),e+=this._toggleInputs[t].value);return""==e?null:e}if(this.isCompact)return this._selectElement?this._selectElement.value:null;if(!this._toggleInputs||0==this._toggleInputs.length)return null;for(var t=0;t<this._toggleInputs.length;t++)if(this._toggleInputs[t].checked)return this._toggleInputs[t].value;return null}getCheckboxElement(e,t,n){var i=this,r=document.createElement("input");r.type="checkbox",r.style.margin="0",r.style.display="inline-block",r.style.verticalAlign="middle",r.value=e.value,r.style.flex="0 0 auto",r.style.marginRight=this.clientManagerInstance.checkboxRightMargin+"px",r.setAttribute("aria-label",e.title),r.style.marginTop="8px",r.style.marginBottom="8px",r.onchange=r.onclick,r.onclick=function(e){e.stopPropagation(),i.valueChanged()},t&&t.indexOf(e.value)>=0&&(r.checked=!0),this._toggleInputs.push(r);var o=new AdaptiveCards.TextBlock;o.hostConfig=this.hostConfig,o.text=e.title,o.useMarkdown=AdaptiveCards.AdaptiveCard.useMarkdownInRadioButtonAndCheckbox,o.wrap=!0;var s=o.render();s.style.display="inline-block",s.style.flex="1 1 auto",s.style.verticalAlign="middle",s.style.marginRight="16px",s.style.marginLeft="10px",s.style.paddingLeft="2px";var a=document.createElement("div");if(a.style.display="flex",this.clientManagerInstance.checkboxPaddding&&(a.style.paddingBottom=this.clientManagerInstance.checkboxPaddding+"px",a.style.paddingTop=this.clientManagerInstance.checkboxPaddding+"px"),this.clientManagerInstance&&this.clientManagerInstance.supportReverseRowForChoiceSet&&(a.style.flexDirection="row-reverse"),a.style.alignItems="center",n){var l=document.createElement("span");l.classList.add("required-asteriks"),l.innerHTML="*",a.appendChild(l)}return a.appendChild(r),a.appendChild(s),a.setAttribute("label",e.title),a.setAttribute("aria-label",e.title),a.setAttribute("role","checkbox"),r.checked?a.setAttribute("aria-checked","true"):a.setAttribute("aria-checked","false"),a.style.outline="none",a.onclick=function(){r.checked=!r.checked,i.valueChanged(),r.checked?a.setAttribute("aria-checked","true"):a.setAttribute("aria-checked","false")},r.onfocus=function(){s.classList.add("checkBoxFocus")},r.addEventListener("focusout",(function(){s.classList.remove("checkBoxFocus")})),s.onclick=function(e){e.stopPropagation(),r.checked=!r.checked,i.valueChanged(),r.checked?a.setAttribute("aria-checked","true"):a.setAttribute("aria-checked","false"),r.focus()},s.addEventListener("focusout",(function(){this.classList.remove("checkBoxFocus")})),a}getRadioElement(e){var t=this,n=document.createElement("input");n.type="radio",n.style.margin="0",n.style.display="inline-block",n.style.verticalAlign="middle",n.name=this.id,n.value=e.value,n.style.flex="0 0 auto",n.style.marginRight=this.clientManagerInstance.checkboxRightMargin+"px",n.style.marginTop="8px",n.style.marginBottom="8px",n.setAttribute("aria-hidden","true"),n.setAttribute("aria-label",e.title),n.onchange=n.onclick,n.onclick=function(e){e.stopPropagation(),t.valueChanged()},e.value==this.defaultValue&&(n.checked=!0),this._toggleInputs.push(n);var i=new AdaptiveCards.TextBlock;i.hostConfig=this.hostConfig,i.text=e.title,i.wrap=!0,i.useMarkdown=AdaptiveCards.AdaptiveCard.useMarkdownInRadioButtonAndCheckbox;var r=i.render();r.style.display="inline-block",r.style.flex="1 1 auto",r.style.verticalAlign="middle",r.style.marginRight="16px",r.style.marginLeft="10px",r.style.paddingLeft="2px",r.setAttribute("aria-hidden","true");var o=document.createElement("div");return o.style.display="flex",o.style.alignItems="center",o.appendChild(n),o.appendChild(r),o.setAttribute("label",e.title),o.setAttribute("aria-label",e.title),o.setAttribute("role","radio"),o.children[0].checked?o.setAttribute("aria-checked","true"):o.setAttribute("aria-checked","false"),o.style.outline="none",o.onclick=function(){this.children[0].checked=!0,t.valueChanged()},n.onfocus=function(){r.classList.add("checkBoxFocus")},n.addEventListener("focusout",(function(){r.classList.remove("checkBoxFocus")})),r.onclick=function(e){e.stopPropagation(),o.children[0].checked=!o.children[0].checked,t.valueChanged(),o.children[0].checked?o.setAttribute("aria-checked","true"):o.setAttribute("aria-checked","false"),n.focus()},r.addEventListener("focusout",(function(){this.classList.remove("checkBoxFocus")})),o}}t.ChoiceSetInput=i},function(e,t,n){t.MessageCardConverter=class{constructor(e,t){if(null==e)throw new Error("null clientManagerInstance");this.clientManagerInstance=e,this.UtilsClass=t,this.constants=this.UtilsClass.Constants,this.themes=this.clientManagerInstance.getThemeConfigs(),this.summary="",this.themeColor="",this.style=this.constants.DefaultStyle}parseMessageCard(e){if(this.adaptiveCard=new AdaptiveCards.AdaptiveCard,this.adaptiveCard.imagesCount=0,this.adaptiveCard.hideOriginalBody=!1,this.adaptiveCard.enableBodyToggling=!1,this.adaptiveCard.isHttpPostActionAvailable=!1,this.summary=e[this.constants.SummaryProperty],this.themeColor=e[this.constants.ThemeColorProperty],null!=e[this.constants.MessageCardContextProperty]&&(this.adaptiveCard.messageCardContext=e[this.constants.MessageCardContextProperty]),null!=e[this.constants.OriginatorProperty]&&(this.adaptiveCard.originator=e[this.constants.OriginatorProperty]),e[this.constants.StyleProperty]&&(this.style=e[this.constants.StyleProperty]),null!=e[this.constants.HideOriginalBodyProperty]&&(this.adaptiveCard.hideOriginalBody=e[this.constants.HideOriginalBodyProperty]),this.theme=this.getThemeByStyle(this.style),this.adaptiveCard.hostConfig=new AdaptiveCards.HostConfig(this.theme.hostConfig),this.theme.cssPrefix&&(this.adaptiveCard.hostConfig.cssClassNamePrefix=this.theme.cssPrefix),this.theme.allowCardTitle&&null!=e[this.constants.TitleProperty]){const t=new AdaptiveCards.TextBlock;t.text=e[this.constants.TitleProperty],t.size=AdaptiveCards.TextSize.Large,t.wrap=!0,this.adaptiveCard.addItem(t)}if(null!=e[this.constants.TextProperty]){const t=new AdaptiveCards.TextBlock;t.text=e[this.constants.TextProperty],t.wrap=!0,this.adaptiveCard.addItem(t)}if(null!=e[this.constants.SectionsProperty]){const t=e[this.constants.SectionsProperty];for(let e=0;e<t.length;e++){const n=this.parseSection(t[e]);this.adaptiveCard.addItem(n)}}if(null!=e[this.constants.PotentialActionProperty]){const t=this.parseActionSet(e[this.constants.PotentialActionProperty]);this.adaptiveCard.addItem(t)}return this.theme.allowAutoInvokeAction&&null!=e[this.constants.AutoInvokeAction]&&(this.adaptiveCard.autoInvokeAction=this.parseHttpAction(e[this.constants.AutoInvokeAction]),this.adaptiveCard.autoInvokeAction.potentialAction=e[this.constants.AutoInvokeAction],this.adaptiveCard.autoInvokeAction.isAutoInvokeAction=!0),this.theme.allowAutoInvokeAction&&null!=e[this.constants.AutoInvokeOptions]&&(this.adaptiveCard.autoInvokeOptions=e[this.constants.AutoInvokeOptions]),this.adaptiveCard}parseSection(e){const t=new AdaptiveCards.Container;if(e[this.constants.MarkdownProperty],"boolean"==typeof e[this.constants.StartGroupProperty]&&e[this.constants.StartGroupProperty]?(t.separator=!0,t.spacing=AdaptiveCards.Spacing.Large):t.spacing=AdaptiveCards.Spacing.Medium,null!=e[this.constants.TitleProperty]){const n=new AdaptiveCards.TextBlock;n.text=e[this.constants.TitleProperty],n.size=AdaptiveCards.TextSize.Medium,n.wrap=!0,t.addItem(n)}if(t.style="emphasis"==e[this.constants.StyleProperty]?AdaptiveCards.ContainerStyle.Emphasis:AdaptiveCards.ContainerStyle.Default,null!=e[this.constants.ActivityTitleProperty]||null!=e[this.constants.ActivitySubtitleProperty]||null!=e[this.constants.ActivityTextProperty]||null!=e[this.constants.ActivityImageProperty]){const n=new AdaptiveCards.ColumnSet;let i;if(null!=e[this.constants.ActivityImageProperty]&&""!=e[this.constants.ActivityImageProperty]){i=new AdaptiveCards.Column;const t=new AdaptiveCards.Image;this.adaptiveCard.imagesCount++,t.size=e[this.constants.SizeProperty]?e[this.constants.SizeProperty]:AdaptiveCards.Size.Small,e[this.constants.ActivityImageTypeProperty]&&"article"===e[this.constants.ActivityImageTypeProperty]?(t.style=AdaptiveCards.ImageStyle.Default,t.size=AdaptiveCards.Size.Medium,i.width=new AdaptiveCards.SizeAndUnit(80,AdaptiveCards.SizeUnit.Pixel)):t.style=e[this.constants.ActivityImageStyleProperty]?e[this.constants.ActivityImageStyleProperty]:AdaptiveCards.ImageStyle.Person,t.url=this.UtilsClass.getImageProxyUrl(e[this.constants.ActivityImageProperty],this.clientManagerInstance.supportImageProxy,this.clientManagerInstance.imageAttachmentBaseUrl,this.clientManagerInstance.getImageProxyUrl()),t.url=this.UtilsClass.getAttachmentImageProxyUrl(e[this.constants.ActivityImageProperty],this.clientManagerInstance.supportAttachmentImageProxy,this.clientManagerInstance.imageAttachmentBaseUrl,this.clientManagerInstance.imageAttachmentProxyUrl),i.addItem(t),n.addColumn(i)}if(i=new AdaptiveCards.Column,null!=e[this.constants.ActivityTitleProperty]){const t=new AdaptiveCards.TextBlock;t.text=e[this.constants.ActivityTitleProperty],t.wrap=!0,t.spacing=AdaptiveCards.Spacing.None,i.addItem(t)}if(null!=e[this.constants.ActivitySubtitleProperty]){const t=new AdaptiveCards.TextBlock;t.text=e[this.constants.ActivitySubtitleProperty],t.weight=AdaptiveCards.TextWeight.Lighter,t.isSubtle=!0,t.wrap=!0,t.spacing=AdaptiveCards.Spacing.None,i.addItem(t)}if(null!=e[this.constants.ActivityTextProperty]){const t=new AdaptiveCards.TextBlock;t.text=e[this.constants.ActivityTextProperty],t.wrap=!0,t.spacing=AdaptiveCards.Spacing.None,i.addItem(t)}n.addColumn(i),t.addItem(n)}if(this.theme.allowHeroImage&&null!=e[this.constants.HeroImageProperty]){var n=this.parseImage(e[this.constants.HeroImageProperty]);n.size=AdaptiveCards.Size.Auto,t.addItem(n)}if(null!=e[this.constants.TextProperty]){const n=new AdaptiveCards.TextBlock;n.text=e[this.constants.TextProperty],n.wrap=!0,t.addItem(n)}if(this.theme.allowFacts&&null!=e[this.constants.FactsProperty]){const n=this.parseFactSet(e[this.constants.FactsProperty]);t.addItem(n)}if(this.theme.allowImages&&null!=e[this.constants.ImagesProperty]){const n=this.parseImageSet(e[this.constants.ImagesProperty]);t.addItem(n)}if(null!=e[this.constants.PotentialActionProperty]){const n=this.parseActionSet(e[this.constants.PotentialActionProperty]);t.addItem(n)}return t}parseActionSet(e){const t=new AdaptiveCards.ActionSet;t.spacing=AdaptiveCards.Spacing.Medium;const n=e;1==n.length&&n[0][this.constants.TypeProperty]===this.constants.ActionCardAction?t.spacing=AdaptiveCards.Spacing.Default:t.spacing=AdaptiveCards.Spacing.Small;for(let e=0;e<n.length;e++){const i=n[e];let r=null;switch(i[this.constants.TypeProperty].toLowerCase()){case this.constants.OpenUriAction:r=this.parseOpenUrlAction(i);break;case this.constants.ViewAction:r=this.parseViewAction(i);break;case this.constants.HttpPostAction:r=this.parseHttpAction(i);break;case this.constants.ActionCardAction:this.theme.allowActionCard&&(r=this.parseShowCardAction(i));break;case this.constants.InvokeAddinCommandAction:r=this.parseInvokeAddinCommandAction(i);break;case this.constants.DisplayAppointmentFormAction:r=this.parseDisplayAppointmentFormAction(i);break;case this.constants.DisplayMessageFormAction:r=this.parseDisplayMessageFormAction(i)}r&&(r.potentialAction=i,r.isAutoInvokeAction=!1,t.addAction(r))}return t}parseOpenUrlAction(e){const t=new AdaptiveCards.OpenUrlAction;return t.title=e[this.constants.NameProperty],t.id=e[this.constants.IdProperty],t.isPrimary=e[this.constants.IsPrimaryAction]||!1,null!=e[this.constants.TargetsProperty]&&(t.url=this.getClientSpecificUri(e[this.constants.TargetsProperty])),t}parseViewAction(e){const t=new AdaptiveCards.OpenUrlAction;return t.title=e[this.constants.NameProperty],t.id=e[this.constants.IdProperty],t.isPrimary=e[this.constants.IsPrimaryAction]||!1,null!=e[this.constants.TargetProperty]&&(t.url=this.getClientSpecificUri(e[this.constants.TargetProperty])),t}parseHttpAction(e){const t=this.clientManagerInstance.getElementInstance(this.constants.HttpAction);return this.adaptiveCard.isHttpPostActionAvailable=!0,t.parseMessageCardAction(e),t}parseShowCardAction(e){const t=new AdaptiveCards.ShowCardAction;t.id=e[this.constants.IdProperty],t.title=e[this.constants.NameProperty],t.isPrimary=e[this.constants.IsPrimaryAction]||!1;const n=e[this.constants.InputsProperty];if(n)for(let e=0;e<n.length;e++){const i=n[e];let r=null;switch(i[this.constants.TypeProperty]?i[this.constants.TypeProperty].toLowerCase():""){case this.constants.TextInput:r=this.parseTextInput(i);break;case this.constants.DateInput:r=this.parseDateInput(i);break;case this.constants.MultiChoiceInput:r=this.parseChoiceSetInput(i)}r&&t.card.addItem(r)}const i=e[this.constants.ActionsProperty];return i&&t.card.addItem(this.parseActionSet(i)),t}parseInvokeAddinCommandAction(e){const t=this.clientManagerInstance.getElementInstance(this.constants.InvokeAddinCommandAction);return t.title=e[this.constants.NameProperty],t.addInId=e[this.constants.AddInId],t.desktopCommandId=e[this.constants.DesktopCommandId],t.initializationContext=e[this.constants.InitializationContext],t}parseDisplayAppointmentFormAction(e){const t=this.clientManagerInstance.getElementInstance(this.constants.DisplayAppointmentFormAction);return t.itemId=e[this.constants.ItemId],t.id=e[this.constants.IdProperty],t.title=e[this.constants.NameProperty],t}parseDisplayMessageFormAction(e){const t=this.clientManagerInstance.getElementInstance(this.constants.DisplayMessageFormAction);return t.itemId=e[this.constants.ItemId],t.id=e[this.constants.IdProperty],t.title=e[this.constants.NameProperty],t}parseTextInput(e){var t=new AdaptiveCards.TextInput;return this.parseInput(t,e),t.isMultiline=e[this.constants.IsMultilineProperty],t.maxLength=e[this.constants.MaxLengthProperty],t}parseDateInput(e){var t=this.clientManagerInstance.getElementInstance(this.constants.DateInput);return this.parseInput(t,e),t.includeTime=!1,e[this.constants.IncludeTimeProperty]&&(t.includeTime=!0),t}parseChoiceSetInput(e){var t=new AdaptiveCards.ChoiceSetInput;this.parseInput(t,e);var n=e[this.constants.ChoicesProperty];if(t.choiceList=n,n)for(var i=0;i<n.length;i++){var r=new AdaptiveCards.Choice;r.display=n[i][this.constants.DisplayProperty],r.title=n[i][this.constants.DisplayProperty],r.value=n[i][this.constants.ValueProperty],t.choices.push(r)}return t.isMultiSelect=e[this.constants.IsMultiSelectProperty],t.isCompact=!(e[this.constants.StyleProperty]===this.constants.Expanded),t}parseInput(e,t){e.id=t[this.constants.InputIdProperty],e.defaultValue=t[this.constants.ValueProperty],e.placeholder=t[this.constants.TitleProperty],e.isRequired=t[this.constants.IsRequiredProperty]||!1}parseImage(e,t=AdaptiveCards.Size.Medium,n=AdaptiveCards.ImageStyle.Default){const i=new AdaptiveCards.Image;return this.adaptiveCard.imagesCount++,i.url=this.UtilsClass.getImageProxyUrl(e[this.constants.ImageProperty],this.clientManagerInstance.supportImageProxy,this.clientManagerInstance.imageAttachmentBaseUrl,this.clientManagerInstance.getImageProxyUrl()),i.url=this.UtilsClass.getAttachmentImageProxyUrl(e[this.constants.ImageProperty],this.clientManagerInstance.supportAttachmentImageProxy,this.clientManagerInstance.imageAttachmentBaseUrl,this.clientManagerInstance.imageAttachmentProxyUrl),i.size=e[this.constants.SizeProperty]?e[this.constants.SizeProperty]:t,i}parseImageSet(e){const t=new AdaptiveCards.ImageSet,n=e;for(let e=0;e<n.length;e++){const i=this.parseImage(n[e],AdaptiveCards.Size.Large);t.addImage(i)}return t}parseFactSet(e){const t=new AdaptiveCards.FactSet,n=e;for(let e=0;e<n.length;e++){const i=new AdaptiveCards.Fact;i.name=n[e][this.constants.NameProperty],i.value=n[e][this.constants.ValueProperty],t.facts.push(i)}return t}getThemeByStyle(e){for(var t=0;t<this.themes.length;t++)if(this.themes[t].style==e)return this.themes[t];for(t=0;t<this.themes.length;t++)if(this.themes[t].style==this.constants.DefaultStyle)return this.themes[t]}getClientSpecificUri(e){for(var t=0;t<e.length;t++)if(e[t].os==this.theme.client)return e[t].uri;for(t=0;t<e.length;t++)if(e[t].os==this.constants.DefaultStyle)return e[t].uri}applyMessageCardStyling(e,t){e.style.borderWidth="1px 1px 1px 3px",e.style.borderStyle="solid",t.themeColor?e.style.borderLeftColor=this.normalizeHexColor(t.themeColor):(e.style.borderLeftColor="#eeeeee",e.style.borderLeftWidth="1px"),e.style.borderTopColor="#eeeeee",e.style.borderRightColor="#eeeeee",e.style.borderBottomColor="#eeeeee"}normalizeHexColor(e){return"#"+e.replace(/[^0-9A-F]/gi,"")}}}]);e.exports=t}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}(()=>{"use strict";const e=n(189),t=new class{entries={};add(e,t){this.getCallbacks(e).push(t)}getCallbacks(e){const t=e.toUpperCase();return void 0===this.entries[t]&&(this.entries[t]=[]),this.entries[t]}};let i=null;t.add("renderCard",(t=>{t&&(i=new e.CardWrapper("#actionable-message",t.context).getCardRendererInstance(),i.renderCard(t.content))})),t.add("resetView",(()=>{i?.resetWebview(),i=null})),t.add("processAdaptiveCardActionResponse",(e=>{e&&i?.processAdaptiveCardActionResponse(e)})),t.add("processMessageCardActionResponse",(e=>{e&&i?.processMessageCardActionResponse(e)})),t.add("hideCardStatusMessage",(()=>{i?.hideCardStatusMessage()})),t.add("updateActionStatus",(()=>{i?.updateActionStatus()})),t.add("displayMessageFromClient",(e=>{e&&i?.displayMessageFromClient(e.message,e.hasSucceeded)}));const r=window&&window.chrome&&window.chrome.webview;r&&"function"==typeof r.addEventListener&&r.addEventListener("message",(e=>{if(e.data&&e.data.eventType){const n=t.getCallbacks(e.data.eventType);for(let t=0;t<n.length;++t)n[t]?.(e.data.payload)}}))})()})();